]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
Use function_arg_info for TARGET_FUNCTION_ARG_ADVANCE
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2
3 * target.def (function_arg_advance): Take a function_arg_info instead
4 of a mode, type and named flag.
5 * doc/tm.texi: Regenerate.
6 * targhooks.h (default_function_arg_advance): Take a function_arg_info
7 instead of a mode, type and named flag.
8 * targhooks.c (default_function_arg_advance): Likewise.
9 * calls.c (initialize_argument_information): Update call to
10 targetm.calls.function_arg_advance.
11 (emit_library_call_value_1): Likewise.
12 * dse.c (get_call_args): Likewise.
13 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14 * function.c (assign_parms, gimplify_parameters): Likewise.
15 * var-tracking.c (prepare_call_arguments): Likewise.
16 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
17 function_arg_info instead of a mode, type and named flag.
18 (aarch64_setup_incoming_varargs): Update call accordingly.
19 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
20 function_arg_info instead of a mode, type and named flag.
21 (alpha_setup_incoming_varargs): Update call accordingly.
22 * config/arc/arc.c (arc_function_arg_advance): Take a
23 function_arg_info instead of a mode, type and named flag.
24 (arc_setup_incoming_varargs): Update call accordingly.
25 * config/arm/arm.c (arm_function_arg_advance): Take a
26 function_arg_info instead of a mode, type and named flag.
27 (cmse_func_args_or_return_in_stack): Update call accordingly.
28 (arm_function_ok_for_sibcall): Likewise.
29 (cmse_nonsecure_call_clear_caller_saved): Likewise.
30 * config/avr/avr.c (avr_function_arg_advance): Take a
31 function_arg_info instead of a mode, type and named flag.
32 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
33 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
34 (c6x_call_saved_register_used): Update call accordingly.
35 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
36 function_arg_info instead of a mode, type and named flag.
37 * config/cris/cris.c (cris_function_arg_advance): Likewise.
38 * config/csky/csky.c (csky_function_arg_advance): Likewise.
39 (csky_setup_incoming_varargs): Update call accordingly.
40 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
41 function_arg_info instead of a mode, type and named flag.
42 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
43 * config/frv/frv.c (frv_function_arg_advance): Likewise.
44 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
45 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
46 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
47 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
48 (ix86_setup_incoming_varargs): Update call accordingly.
49 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
50 function_arg_info instead of a mode, type and named flag.
51 (ia64_setup_incoming_varargs): Update call accordingly.
52 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
53 function_arg_info instead of a mode, type and named flag.
54 (iq2000_expand_prologue): Update call accordingly.
55 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
56 function_arg_info instead of a mode, type and named flag.
57 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
58 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
59 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
60 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
61 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
62 Likewise.
63 (microblaze_expand_prologue): Update call accordingly.
64 * config/mips/mips.c (mips_function_arg_advance): Take a
65 function_arg_info instead of a mode, type and named flag.
66 (mips_setup_incoming_varargs): Update call accordingly.
67 (mips_output_args_xfer): Likewise.
68 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
69 function_arg_info instead of a mode, type and named flag.
70 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
71 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
72 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
73 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
74 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
75 (nios2_setup_incoming_varargs): Update call accordingly.
76 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
77 function_arg_info instead of a mode, type and named flag.
78 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
79 * config/pa/pa.c (pa_function_arg_advance): Likewise.
80 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
81 * config/pru/pru.c (pru_function_arg_advance): Likewise.
82 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
83 (riscv_setup_incoming_varargs): Update call accordingly.
84 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
85 function_arg_info instead of a mode, type and named flag.
86 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
87 Likewise.
88 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
89 (rs6000_parm_needs_stack): Update call accordingly.
90 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
91 instead of a mode, type and named flag.
92 * config/s390/s390.c (s390_function_arg_advance): Likewise.
93 (s390_call_saved_register_used): Update call accordingly.
94 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
95 instead of a mode, type and named flag.
96 (sh_output_mi_thunk): Update call accordingly.
97 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
98 function_arg_info instead of a mode, type and named flag.
99 * config/spu/spu.c (spu_function_arg_advance): Likewise.
100 (spu_setup_incoming_varargs): Update call accordingly.
101 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
102 function_arg_info instead of a mode, type and named flag.
103 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
104 (tilegx_setup_incoming_varargs): Update call accordingly.
105 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
106 function_arg_info instead of a mode, type and named flag.
107 (tilegx_setup_incoming_varargs): Update call accordingly.
108 * config/v850/v850.c (v850_function_arg_advance): Take a
109 function_arg_info instead of a mode, type and named flag.
110 * config/vax/vax.c (vax_function_arg_advance): Likewise.
111 * config/visium/visium.c (visium_function_arg_advance): Likewise.
112 (visium_setup_incoming_varargs): Update call accordingly.
113 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
114 function_arg_info instead of a mode, type and named flag.
115
116 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
117
118 * target.def (function_arg, function_incoming_arg): Take a
119 function_arg_info instead of a mode, tree and named flag.
120 * doc/tm.texi: Regenerate.
121 * targhooks.h (default_function_arg): Take a function_arg_info
122 instead of a mode, tree and named flag.
123 (default_function_incoming_arg): Likewise.
124 * targhooks.c (default_function_arg): Likewise.
125 (default_function_incoming_arg): Likewise.
126 * calls.h (function_arg_info::end_marker_p): New function.
127 (function_arg_info::end_marker): Likewise.
128 * calls.c (prepare_call_address, initialize_argument_information)
129 (expand_call, emit_library_call_value_1): Update calls to
130 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
131 * dse.c: Include calls.h.
132 (get_call_args): Update call to targetm.calls.function_arg.
133 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
134 * var-tracking.c (prepare_call_arguments): Likewise.
135 * function.c (assign_parm_find_entry_rtl): Update call to
136 targetm.calls.function_incoming_arg.
137 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
138 function_arg_info instead of a mode, tree and named flag.
139 * config/alpha/alpha.c (alpha_function_arg): Likewise.
140 * config/arc/arc.c (arc_function_arg): Likewise.
141 * config/arm/arm.c (arm_function_arg): Likewise.
142 (cmse_func_args_or_return_in_stack): Update call accordingly.
143 (arm_function_ok_for_sibcall): Likewise.
144 (cmse_nonsecure_call_clear_caller_saved): Likewise.
145 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
146 instead of a mode, tree and named flag.
147 * config/bfin/bfin.c (bfin_function_arg): Likewise.
148 * config/c6x/c6x.c (c6x_function_arg): Likewise.
149 (c6x_call_saved_register_used): Update call accordingly.
150 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
151 instead of a mode, tree and named flag.
152 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
153 (cris_function_arg_1): Likewise.
154 * config/csky/csky.c (csky_function_arg): Likewise.
155 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
156 * config/fr30/fr30.c (fr30_function_arg): Likewise.
157 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
158 (frv_function_arg_1): Likewise.
159 * config/ft32/ft32.c (ft32_function_arg): Likewise.
160 * config/gcn/gcn.c (gcn_function_arg): Likewise.
161 * config/h8300/h8300.c (h8300_function_arg): Likewise.
162 * config/i386/i386.c (ix86_function_arg): Likewise.
163 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
164 (ia64_function_arg_1): Likewise.
165 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
166 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
167 accordingly.
168 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
169 instead of a mode, tree and named flag.
170 * config/m32c/m32c.c (m32c_function_arg): Likewise.
171 * config/m32r/m32r.c (m32r_function_arg): Likewise.
172 * config/m68k/m68k.c (m68k_function_arg): Likewise.
173 * config/mcore/mcore.c (mcore_function_arg): Likewise.
174 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
175 (microblaze_expand_prologue): Update call accordingly.
176 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
177 instead of a mode, tree and named flag.
178 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
179 (mmix_function_arg_1): Likewise.
180 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
181 * config/moxie/moxie.c (moxie_function_arg): Likewise.
182 * config/msp430/msp430.c (msp430_function_arg): Likewise.
183 * config/nds32/nds32.c (nds32_function_arg): Likewise.
184 * config/nios2/nios2.c (nios2_function_arg): Likewise.
185 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
186 (nvptx_function_incoming_arg): Likewise.
187 * config/or1k/or1k.c (or1k_function_arg): Likewise.
188 * config/pa/pa.c (pa_function_arg): Likewise.
189 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
190 * config/pru/pru.c (pru_function_arg): Likewise.
191 * config/riscv/riscv.c (riscv_function_arg): Likewise.
192 * config/rl78/rl78.c (rl78_function_arg): Likewise.
193 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
194 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
195 (rs6000_parm_needs_stack): Update call accordingly.
196 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
197 instead of a mode, tree and named flag.
198 * config/s390/s390.c (s390_function_arg): Likewise.
199 (s390_call_saved_register_used): Update call accordingly.
200 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
201 instead of a mode, tree and named flag.
202 (sh_output_mi_thunk): Update call accordingly.
203 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
204 (sparc_function_incoming_arg): Take a function_arg_info instead of
205 a mode, tree and named flag.
206 * config/spu/spu.c (spu_function_arg): Likewise.
207 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
208 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
209 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
210 * config/v850/v850.c (v850_function_arg): Likewise.
211 * config/vax/vax.c (vax_function_arg): Likewise.
212 * config/visium/visium.c (visium_function_arg): Likewise.
213 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
214 (xtensa_function_incoming_arg): Likewise.
215
216 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
217
218 * target.def (setup_incoming_varargs): Take a function_arg_info
219 instead of a mode and tree.
220 * doc/tm.texi: Regenerate.
221 * targhooks.h (default_setup_incoming_varargs): Take a
222 function_arg_info instead of a mode and tree.
223 * targhooks.c (default_setup_incoming_varargs): Likewise.
224 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
225 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
226 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
227 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
228 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
229 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
230 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
231 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
232 Likewise.
233 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
234 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
235 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
236 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
237 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
238 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
239 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
240 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
241 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
242 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
243 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
244 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
245 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
246 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
247 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
248 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
249 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
250 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
251 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
252 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
253 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
254 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
255 * function.c (assign_parms_setup_varargs): Update call to
256 targetm.calls.setup_incoming_varargs.
257
258 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
259
260 * target.def (pass_by_reference): Take a function_arg_info instead
261 of a mode, type and named flag.
262 * doc/tm.texi: Regenerate.
263 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
264 accordingly.
265 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
266 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
267 function_arg_info instead of a mode, type and named flag.
268 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
269 * calls.h (pass_by_reference): Take a function_arg_info instead of a
270 mode, type and named flag.
271 * calls.c (pass_by_reference): Likewise.
272 (pass_va_arg_by_reference): Update call accordingly.
273 (initialize_argument_information): Likewise.
274 (emit_library_call_value_1): Likewise.
275 * function.c (assign_parm_find_data_types): Likewise.
276 * var-tracking.c (prepare_call_arguments): Likewise.
277 * stor-layout.c: Include calls.h.
278 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
279 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
280 function_arg_info instead of a mode, type and named flag.
281 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
282 * config/arc/arc.c (arc_pass_by_reference): Likewise.
283 * config/arm/arm.c (arm_pass_by_reference): Likewise.
284 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
285 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
286 (c6x_call_saved_register_used): Update call to pass_by_reference.
287 * config/cris/cris.c (cris_pass_by_reference): Take a
288 function_arg_info instead of a mode, type and named flag.
289 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
290 function_arg_info instead of a mode, type and named flag.
291 (epiphany_arg_partial_bytes): Update call accordingly.
292 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
293 function_arg_info instead of a mode, type and named flag.
294 (ft32_arg_partial_bytes): Update call accordingly.
295 * config/i386/i386.c (ix86_pass_by_reference): Take a
296 function_arg_info instead of a mode, type and named flag.
297 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
298 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
299 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
300 (m32r_return_in_memory): Update call accordingly.
301 * config/mips/mips.c (mips_pass_by_reference): Take a
302 function_arg_info instead of a mode, type and named flag.
303 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
304 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
305 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
306 (moxie_arg_partial_bytes): Update call accordingly.
307 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
308 function_arg_info instead of a mode, type and named flag.
309 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
310 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
311 * config/pa/pa.c (pa_pass_by_reference): Likewise.
312 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
313 (riscv_return_in_memory): Update call accordingly.
314 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
315 function_arg_info instead of a mode, type and named flag.
316 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
317 (rs6000_parm_needs_stack): Update call to pass_by_reference.
318 * config/s390/s390.c (s390_pass_by_reference): Take a
319 function_arg_info instead of a mode, type and named flag.
320 (s390_call_saved_register_used): Update call accordingly.
321 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
322 instead of a mode, type and named flag.
323 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
324 * config/spu/spu.c (spu_pass_by_reference): Likewise.
325 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
326 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
327 * config/v850/v850.c (v850_pass_by_reference): Likewise.
328 * config/visium/visium.c (visium_pass_by_reference): Likewise.
329
330 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
331
332 * target.def (arg_partial_bytes): Take a function_arg_info instead
333 of a mode, type and named flag.
334 * doc/tm.texi: Regenerate.
335 * target.h (function_arg_info): Declare.
336 * calls.h (function_arg_info): New class.
337 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
338 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
339 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
340 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
341 * calls.c (initialize_argument_information): Update call to
342 targetm.calls.partial_bytes.
343 (emit_library_call_value_1): Likewise.
344 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
345 * function.c (assign_parm_find_entry_rtl): Likewise.
346 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
347 function_arg_info instead of a mode, type and named flag.
348 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
349 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
350 (cmse_func_args_or_return_in_stack): Update accordingly.
351 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
352 function_arg_info instead of a mode, type and named flag.
353 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
354 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
355 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
356 * config/fr30/fr30.c: Include calls.h.
357 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
358 type and named flag.
359 * config/frv/frv.c: Include calls.h.
360 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
361 type and named flag.
362 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
363 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
364 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
365 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
366 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
367 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
368 * config/microblaze/microblaze.c (function_arg_partial_bytes):
369 Likewise.
370 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
371 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
372 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
373 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
374 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
375 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
376 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
377 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
378 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
379 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
380 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
381 (rs6000_parm_needs_stack): Update call accordingly.
382 * config/sh/sh.c (sh_arg_partial_bytes): Take a
383 function_arg_info instead of a mode, type and named flag.
384 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
385 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
386
387 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
388
389 * calls.h (must_pass_va_arg_in_stack): Declare.
390 * calls.c (must_pass_va_arg_in_stack): New function.
391 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
392 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
393 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
394 Likewise.
395 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
396
397 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
398
399 * calls.h (pass_va_arg_by_reference): Declare.
400 * calls.c (pass_va_arg_by_reference): New function.
401 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
402 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
403 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
404 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
405 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
406 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
407 (mips_gimplify_va_arg_expr): Likewise.
408 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
409 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
410 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
411 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
412 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
413 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
414 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
415 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
416 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
417 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
418 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
419
420 2019-08-20 Richard Biener <rguenther@suse.de>
421
422 PR target/91498
423 * config/i386/i386-features.c (general_scalar_chain::convert_op):
424 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
425 (convert_scalars_to_vector): Add timode_p parameter and use it
426 to guard TImode-only operation.
427 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
428 (pass_stv::execute): Pass down timode_p.
429
430 2019-08-20 Lili Cui <lili.cui@intel.com>
431
432 * common/config/i386/i386-common.c
433 (processor_names): Add tigerlake and cooperlake.
434 (processor_alias_table): Add tigerlake and cooperlake.
435 * config.gcc: Add -march=tigerlake and cooperlake.
436 * config/i386/driver-i386.c
437 (host_detect_local_cpu): Detect tigerlake and cooperlake.
438 Add "has_avx" to classify processor.
439 * config/i386/i386-builtins.c (processor_model) :
440 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
441 (arch_names_table): Add tigerlake and cooperlake.
442 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
443 and PROCESSOR_COOPERLAKE.
444 * config/i386/i386-c.c
445 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
446 * config/i386/i386-options.c
447 (m_TIGERLAKE) : Define.
448 (m_COOPERLAKE) : Ditto.
449 (m_CORE_AVX512): Ditto.
450 (processor_cost_table): Add cascadelake.
451 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
452 * config/i386/i386.h
453 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
454 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
455 (PTA_MOVDIRI): Ditto.
456 (PTA_MOVDIR64B): Ditto.
457 (PTA_COOPERLAKE) : Ditto.
458 (PTA_TIGERLAKE) : Ditto.
459 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
460 * doc/extend.texi: Add tigerlake and cooperlake.
461 * doc/invoke.texi: Add tigerlake and cooperlake.
462
463 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
464
465 * doc/install.texi (Specific, alpha): Remove note to use
466 binutils 2.11.2 or later.
467
468 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
469
470 PR middle-end/89544
471 * function.c (assign_parm_find_stack_rtl): Use larger alignment
472 when possible.
473
474 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
475
476 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
477 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
478 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
479 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
480 * config/aarch64/constraints.md (Dt): New constraint
481 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
482
483 2019-08-19 Richard Biener <rguenther@suse.de>
484
485 PR tree-optimization/91403
486 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
487 cases we can handle with tail-recursion...
488 (follow_ssa_edge_expr): ... here. Do so.
489
490 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
491
492 PR target/91441
493 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
494 implemented for -fsanitize=kernel-address, and merge check logic
495 with -fsanitize=address.
496
497 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
498
499 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
500 for cpu and machine. Factor 64/32b builtins.
501
502 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
503
504 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
505 gone, point to sourceforge.net.
506
507 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
508
509 * doc/ux.texi (User Experience Guidelines): Update reference.
510
511 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
512
513 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
514 not LGPL".
515
516 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
517
518 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
519 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
520
521 2019-08-16 Martin Sebor <msebor@redhat.com>
522
523 * tree.def (TYPE_SIZE): Clarify.
524 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
525
526 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
527
528 PR tree-optimization/91109
529 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
530 * lra.c (lra): Use lra_need_for_scratch_reg_p.
531 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
532
533 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
534
535 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
536 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
537 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
538 (uavg<mode>3_ceil): New expander.
539 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
540 mode iterator when creating CONST1_RTX.
541 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
542 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
543 mode iterator for const1_operand predicate.
544
545 2019-08-16 Richard Biener <rguenther@suse.de>
546
547 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
548 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
549 follow_ssa_edge.
550 (follow_ssa_edge_in_condition_phi_branch): Likewise.
551 (analyze_evolution_in_loop): Likewise.
552 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
553 (follow_ssa_edge_expr): ... here. Refactor code.
554
555 2019-08-16 Richard Biener <rguenther@suse.de>
556
557 PR target/91469
558 * config/i386/i386-features.c
559 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
560
561 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
562
563 PR other/91255
564 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
565 only if subst_name matches curr_attr string.
566
567 2019-08-16 Richard Biener <rguenther@suse.de>
568
569 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
570 stmt at gsi_p, instead replace it with a NOP removed later.
571 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
572 that became dead because of that.
573
574 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
575
576 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
577 for which we can't represent a range.
578 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
579 set_varying.
580 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
581 Set VR_UNDEFINED if type is not supported.
582 * tree-ssanames.c (get_range_info): Pass type to set_varying.
583 * tree-vrp.c (value_range_base::check): Assert that a varying has
584 min/max set.
585 (value_range_base::equal_p): Early bail for undefines.
586 (value_range_base::set_varying): Accept a type.
587 (value_range::set_varying): Same.
588 (value_range_base::type): VARYING can have a type, while UNDEFINE
589 is typeless.
590 (value_range_base::dump): Print type for VARYING nodes.
591 (value_range_base::set): Add type to VARYING.
592 (extract_range_from_multiplicative_op): Pass type to set_varying.
593 (extract_range_from_binary_expr): Same.
594 (value_range_base::intersect_helper): Same.
595 (value_range_base::union_helper): Same.
596 (value_range_base::normalize_symbolics): Same.
597 (determine_value_range_1): Same.
598 * tree-vrp.h (class value_range_base): Add type to set_varying.
599 Add prototype for dump(void).
600 Add prototype for supports_type_p.
601 (class value_range): Add type to set_varying.
602 Add prototype for dump(void).
603 * vr-values.c (set_value_range_to_truthvalue): Pass type to
604 set_varying.
605 (vr_values::get_lattice_entry): Set varying even if propagation
606 finished.
607 Pass type to set_varying.
608 (vr_values::get_value_range): Remove vr_const_varying.
609 Reallocate the lattice if needed.
610 (vr_values::update_value_range): Pass type to set_varying.
611 (vr_values::extract_range_for_var_from_comparison_expr): Same.
612 (vr_values::extract_range_from_binary_expr): Same.
613 (vr_values::extract_range_from_unary_expr): Same.
614 (vr_values::extract_range_from_cond_expr): Same.
615 (vr_values::check_for_binary_op_overflow): Same.
616 (vr_values::extract_range_basic): Same.
617 (vr_values::extract_range_from_assignment): Same.
618 (vr_values::vr_values): Increase size of num_vr_values.
619 (vr_values::extract_range_from_phi_node): Pass type to
620 set_varying.
621
622 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
623
624 PR target/90878
625 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
626 for costs of hard register moves.
627 (ix86_register_move_cost): Likewise.
628 * config/i386/i386.h (processor_costs): Move costs of hard
629 register moves to hard_register. Add int_load, int_store,
630 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
631 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
632 for costs of RTL expressions.
633 * config/i386/x86-tune-costs.h: Move costs of hard register
634 moves to hard_register. Duplicate int_load, int_store,
635 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
636 sse_load, sse_store for costs of RTL expressions.
637
638 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
639
640 * target.def (setup_incoming_vararg_bounds): Remove.
641 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
642 * doc/tm.texi: Regenerate.
643 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
644 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
645 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
646 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
647
648 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
649
650 MSP430: Fix lines over 80 characters long in
651 config/msp430/*.{c,h} files
652
653 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
654 specifier in string.
655 (msp430_select_hwmult_lib): Split line more than 80 characters long.
656 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
657 redundant old comment.
658 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
659 Split line more than 80 characters long.
660 * config/msp430/msp430.c (msp430_option_override): Likewise.
661 (msp430_return_in_memory): Likewise.
662 (msp430_gimplify_va_arg_expr): Likewise.
663 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
664 (msp430_legitimate_constant): Likewise.
665 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
666 (msp430_attr): Likewise.
667 (msp430_data_attr): Likewise.
668 (msp430_start_function): Likewise.
669 (gen_prefix): Likewise.
670 (msp430_init_sections): Likewise.
671 (msp430_select_section): Likewise.
672 (msp430_function_section): Likewise.
673 (msp430_unique_section): Likewise.
674 (msp430_output_aligned_decl_common): Likewise.
675 (msp430_do_not_relax_short_jumps): Likewise.
676 (msp430_init_builtins): Likewise.
677 (msp430_expand_delay_cycles): Likewise.
678 (msp430_expand_prologue): Likewise.
679 (msp430_expand_epilogue): Likewise.
680 (msp430_expand_helper): Likewise.
681 (msp430_split_movsi): Likewise.
682 (msp430_print_operand): Likewise.
683 (msp430_return_addr_rtx): Likewise.
684 (msp430x_extendhisi): Likewise.
685 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
686 (ASM_SPEC): Likewise.
687 Remove very obvious comments.
688 (LIB_SPEC): Split line more than 80 characters long.
689 (EH_RETURN_HANDLER_RTX): Likewise.
690 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
691
692 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
693
694 MSP430: Fix whitespace errors and incorrect indentation in
695 config/msp430/*.{c,h} files
696
697 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
698 (msp430_select_hwmult_lib): Likewise.
699 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
700 (msp430_extract_mcu_data): Likewise.
701 (struct t_msp430_mcu_data): Likewise.
702 * config/msp430/msp430.c (struct machine_function): Remove whitespace
703 before left square bracket.
704 (msp430_option_override): Fix indentation.
705 (msp430_hard_regno_nregs_with_padding): Likewise.
706 (msp430_initial_elimination_offset): Likewise.
707 (msp430_special_register_convention_p): Remove whitespace before left
708 square bracket and after exclamation mark.
709 (msp430_evaluate_arg): Likewise.
710 (msp430_callee_copies): Fix indentation.
711 (msp430_gimplify_va_arg_expr): Likewise.
712 (msp430_function_arg_advance): Remove whitespace before left square
713 bracket.
714 (reg_ok_for_addr): Likewise.
715 (msp430_preserve_reg_p): Likewise.
716 (msp430_compute_frame_info): Likewise.
717 (msp430_asm_output_addr_const_extra): Add space between function name
718 and open parenthesis.
719 (has_section_name): Fix indentation.
720 (msp430_attr): Remove trailing whitespace.
721 (msp430_section_attr): Likewise.
722 (msp430_data_attr): Likewise.
723 (struct msp430_attribute_table): Fix comment and whitespace.
724 (msp430_start_function): Remove whitespace before left square bracket.
725 Add space between function name and open parenthesis.
726 (msp430_select_section): Remove trailing whitespace.
727 (msp430_section_type_flags): Remove trailing whitespace.
728 (msp430_unique_section): Remove space before closing parenthesis.
729 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
730 (msp430_builtins): Remove whitespace before left square bracket.
731 (msp430_init_builtins): Fix indentation.
732 (msp430_expand_prologue): Remove whitespace before left square bracket.
733 Remove space before closing parenthesis.
734 (msp430_expand_epilogue): Remove whitespace before left square bracket.
735 (msp430_split_movsi): Remove space before closing parenthesis.
736 (helper_function_name_mappings): Fix indentation.
737 (msp430_use_f5_series_hwmult): Fix whitespace.
738 (use_32bit_hwmult): Likewise.
739 (msp430_no_hwmult): Likewise.
740 (msp430_output_labelref): Remove whitespace before left square bracket.
741 (msp430_print_operand_raw): Likewise.
742 (msp430_print_operand_addr): Likewise.
743 (msp430_print_operand): Add two spaces after '.' in comment.
744 Fix trailing whitespace.
745 (msp430x_extendhisi): Fix indentation.
746 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
747 tab.
748 (PC_REGNUM): Likewise.
749 (STACK_POINTER_REGNUM): Likewise.
750 (CC_REGNUM): Likewise.
751
752 2019-08-15 Richard Biener <rguenther@suse.de>
753
754 PR target/91454
755 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
756 helper.
757 (general_scalar_chain::make_vector_copies): Use it.
758
759 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
760
761 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
762
763 2019-08-15 Martin Liska <mliska@suse.cz>
764
765 * tree-ssa-dce.c (propagate_necessity): We can't reach now
766 operators with no arguments.
767 (eliminate_unnecessary_stmts): Likewise here.
768
769 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
770
771 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
772 <case COMPARE>: Revert 2019-08-14 change.
773 (convertible_comparison_p): Revert 2019-08-14 change. Return false
774 for (TARGET_64BIT || mode != DImode).
775
776 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
777
778 * tree-vrp.c (value_range_base::set): Merge in code from
779 value_range_base::set_and_canonicalize.
780 Enforce canonicalization at set time.
781 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
782 (value_range_base::set_undefined): Inline call to set().
783 (value_range_base::set_varying): Same.
784 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
785 (vrp_val_max): New argument handle_pointers.
786 (vrp_val_min): Same.
787 (ranges_from_anti_range): Same.
788 (extract_range_into_wide_ints): Use tree argument instead of sign
789 and precision.
790 (extract_range_from_multiplicative_op): Take in tree type instead
791 of precision and sign. Adapt function for canonicalized ranges.
792 (extract_range_from_binary_expr): Pass type to
793 extract_range_from_multiplicative_op.
794 Adapt for canonicalized ranges.
795 (extract_range_from_unary_expr): Same.
796 (value_range_base::intersect_helper): Adjust for canonicalized
797 ranges.
798 (value_range_base::union_helper): Same.
799 (value_range_base::normalize_symbolics): New.
800 * tree-vrp.h (class value_range_base): Remove
801 set_and_canonicalize.
802 New prototype for normalize_symbolics.
803 (class value_range): Remove set_and_canonicalize.
804 (vrp_val_min): Adjust prototype.
805 (vrp_val_max): Same.
806 * vr-values.c
807 (vr_values::extract_range_for_var_from_comparison_expr): Call set
808 instead of set_and_canonicalize.
809
810 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
811
812 PR middle-end/91444
813 * tree-vect-stmts.c (vectorizable_call): Check that the function
814 is a BUILT_IN_MD function before passing it to
815 targetm.vectorize.builtin_md_vectorized_function.
816
817 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
818
819 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
820 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
821 (aarch64_select_early_remat_modes): Use it.
822
823 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
824
825 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
826 16 for SVE predicates even if they are fixed-length.
827
828 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
829
830 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
831 operand order match the MOV /Z alias.
832
833 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
834
835 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
836 the vector pattern as an aarch64_svpattern argument. Update the
837 overloaded caller accordingly.
838 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
839 (aarch64_output_sve_vector_inc_dec): Likewise.
840
841 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
842
843 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
844 multiplication case, try to compute VG * (lowest set bit) directly
845 rather than always basing the multiplication on VG. Use
846 expand_mult for the multiplication if we can.
847
848 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
849
850 * config/aarch64/aarch64-protos.h
851 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
852 (aarch64_sve_inc_dec_immediate_p): Rename to...
853 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
854 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
855 (aarch64_output_sve_scalar_inc_dec): Declare.
856 (aarch64_output_sve_inc_dec_immediate): Rename to...
857 (aarch64_output_sve_vector_inc_dec): ...this.
858 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
859 (aarch64_output_sve_scalar_inc_dec): New functions.
860 (aarch64_output_sve_addvl_addpl): Remove the base and offset
861 arguments. Only handle true ADDVL and ADDPL instructions;
862 don't emit an INC or DEC.
863 (aarch64_sve_inc_dec_immediate_p): Rename to...
864 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
865 (aarch64_output_sve_inc_dec_immediate): Rename to...
866 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
867 aarch64_sve_vector_inc_dec_immediate_p.
868 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
869 (aarch64_sve_plus_immediate): New predicates.
870 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
871 rather than aarch64_sve_addvl_addpl_immediate.
872 (aarch64_sve_inc_dec_immediate): Rename to...
873 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
874 aarch64_sve_vector_inc_dec_immediate_p.
875 (aarch64_sve_add_operand): Update accordingly.
876 * config/aarch64/constraints.md (Uai): New constraint.
877 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
878 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
879 operand into a register if it satisfies aarch64_sve_plus_immediate.
880 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
881 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
882 * config/aarch64/aarch64-sve.md (add<mode>3): Call
883 aarch64_output_sve_vector_inc_dec instead of
884 aarch64_output_sve_inc_dec_immediate.
885
886 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
887
888 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
889 (UNSPEC_REVW): New constants.
890 (elem_bits): New mode attribute.
891 (SVE_INT_UNARY): New int iterator.
892 (optab): Handle UNSPEC_REV[BHW].
893 (sve_int_op): New int attribute.
894 (min_elem_bits): Handle VNx16QI and the predicate modes.
895 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
896 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
897 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
898 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
899 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
900 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
901 unspecs based on the total width of the reversed data.
902 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
903 reinterpret followed by a subreg on big-endian targets.
904
905 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
906 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
907
908 * config/aarch64/aarch64-sve.md
909 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
910 alternatives in which one of the inputs is in the same register
911 as the output.
912
913 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
914
915 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
916 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
917
918 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
919
920 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
921 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
922
923 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
924 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
925
926 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
927 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
928 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
929
930 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
931 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
932
933 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
934 Add an alternative that uses reversed shifts.
935
936 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
937
938 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
939 struct.
940
941 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
942
943 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
944 a commutativity marker.
945
946 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
947 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
948
949 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
950 (aarch64_prepare_sve_cond_int_fma): Declare.
951 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
952 (aarch64_prepare_sve_int_fma): New functions.
953 (aarch64_prepare_sve_cond_int_fma): Likewise.
954 * config/aarch64/aarch64-sve.md
955 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
956 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
957 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
958 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
959 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
960 (*madd<mode>): Rename to...
961 (*fma<mode>4): ...this.
962 (*msub<mode>): Rename to...
963 (*fnma<mode>4): ...this.
964
965 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
966 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
967
968 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
969 Print 2.0 naturally.
970 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
971 * config/aarch64/predicates.md
972 (aarch64_sve_float_negated_arith_immediate): New predicate,
973 renamed from aarch64_sve_float_arith_with_sub_immediate.
974 (aarch64_sve_float_arith_with_sub_immediate): Test for both
975 positive and negative constants.
976 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
977 or an aarch64_sve_float_arith_with_sub_immediate.
978 * config/aarch64/constraints.md (vsN): Use
979 aarch64_sve_float_negated_arith_immediate.
980 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
981 iterator.
982 (sve_pred_fp_rhs2_immediate): New int attribute.
983 * config/aarch64/aarch64-sve.md
984 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
985 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
986 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
987 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
988 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
989 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
990
991 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
992 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
993
994 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
995 (*aarch64_cond_abd<SVE_F:mode>_3)
996 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
997
998 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
999 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1000
1001 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
1002 (*aarch64_cond_<su>abd<mode>_any): New patterns.
1003
1004 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1005 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1006
1007 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
1008 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
1009 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
1010 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
1011 optabs.
1012 * optabs.h (create_convert_operand_from): Expand comment.
1013 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
1014 when mapping scalar rtxes to vector operands.
1015 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
1016 ashiftrt and lshiftrt.
1017 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
1018 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
1019 (*cond_<optab><mode>_any_const): New patterns.
1020
1021 2019-08-15 Martin Liska <mliska@suse.cz>
1022
1023 PR ipa/91438
1024 * cgraph.c (cgraph_node::remove): When setting
1025 n->origin = NULL for all nested functions, reset
1026 also next_nested.
1027
1028 2019-08-15 Martin Liska <mliska@suse.cz>
1029
1030 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
1031 and next_nested.
1032
1033 2019-08-15 Martin Liska <mliska@suse.cz>
1034
1035 PR ipa/91404
1036 * passes.c (order): Remove.
1037 (uid_hash_t): Likewise).
1038 (remove_cgraph_node_from_order): Remove from set
1039 of pointers (cgraph_node *).
1040 (insert_cgraph_node_to_order): New.
1041 (duplicate_cgraph_node_to_order): New.
1042 (do_per_function_toporder): Register all 3 cgraph hooks.
1043 Skip removed_nodes now as we know about all of them.
1044
1045 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
1046
1047 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
1048 <case E_V8QImode>: Use vector_set path for
1049 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1050 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
1051 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1052
1053 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
1054
1055 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
1056
1057 2019-08-14 Martin Sebor <msebor@redhat.com>
1058
1059 PR tree-optimization/91294
1060 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
1061 source length as exact.
1062
1063 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
1064
1065 * doc/extend.texi: Add "noinit" attribute documentation.
1066 * doc/sourcebuild.texi: Add noinit effective target documentation.
1067 * varasm.c (default_section_type_flags): Add support for "noinit"
1068 section.
1069 (default_elf_select_section): Add support for "noinit" attribute.
1070 * config/msp430/msp430.c (msp430_attribute_table): Remove
1071 "noinit" entry.
1072
1073 2019-08-14 Richard Biener <rguenther@suse.de>
1074 Uroš Bizjak <ubizjak@gmail.com>
1075
1076 PR target/91154
1077 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
1078 mode arguments.
1079 (scalar_chain::smode): New member.
1080 (scalar_chain::vmode): Likewise.
1081 (dimode_scalar_chain): Rename to...
1082 (general_scalar_chain): ... this.
1083 (general_scalar_chain::general_scalar_chain): Take mode arguments.
1084 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
1085 base with TImode and V1TImode.
1086 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
1087 (general_scalar_chain::vector_const_cost): Adjust for SImode
1088 chains.
1089 (general_scalar_chain::compute_convert_gain): Likewise. Add
1090 {S,U}{MIN,MAX} support.
1091 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
1092 (general_scalar_chain::make_vector_copies): Likewise. Handle
1093 non-DImode chains appropriately.
1094 (general_scalar_chain::convert_reg): Likewise.
1095 (general_scalar_chain::convert_op): Likewise.
1096 (general_scalar_chain::convert_insn): Likewise. Add
1097 fatal_insn_not_found if the result is not recognized.
1098 (convertible_comparison_p): Pass in the scalar mode and use that.
1099 (general_scalar_to_vector_candidate_p): Likewise. Rename from
1100 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
1101 (scalar_to_vector_candidate_p): Remove by inlining into single
1102 caller.
1103 (general_remove_non_convertible_regs): Rename from
1104 dimode_remove_non_convertible_regs.
1105 (remove_non_convertible_regs): Remove by inlining into single caller.
1106 (convert_scalars_to_vector): Handle SImode and DImode chains
1107 in addition to TImode chains.
1108 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
1109 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
1110 (*<maxmin>di3_doubleword): Likewise.
1111
1112 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1113 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1114
1115 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
1116 (*cond_bic<mode>_any): New patterns.
1117
1118 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1119
1120 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
1121 take the equivalent mask, as well as a bit count.
1122 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
1123 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
1124 (aarch64_sve_pred_and_operand): New predicates.
1125 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
1126 code attribute.
1127 * config/aarch64/aarch64-sve.md
1128 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
1129 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
1130
1131 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1132
1133 * config/aarch64/aarch64-sve.md
1134 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
1135 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
1136 New patterns.
1137
1138 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1139 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1140
1141 * config/aarch64/aarch64-sve.md
1142 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
1143 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
1144
1145 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1146 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1147
1148 * config/aarch64/aarch64-sve.md
1149 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
1150 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
1151
1152 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1153
1154 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
1155 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
1156 New pattern.
1157
1158 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1159 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1160
1161 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
1162
1163 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1164 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1165
1166 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
1167 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
1168 (aarch64_print_operand): Add support for %I.
1169 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
1170 Bitcast floating-point constants to the corresponding integer constant.
1171 (aarch64_float_const_representable_p): Handle vectors as well
1172 as scalars.
1173 (aarch64_expand_sve_vcond): Make sure that the operands are valid
1174 for the new vcond_mask_<mode><vpred> expander.
1175 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
1176 test aarch64_float_const_representable_p.
1177 (aarch64_sve_reg_or_dup_imm): New predicate.
1178 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
1179 gen_vcond_mask_<mode><vpred> instead of
1180 gen_aarch64_sve_dup<mode>_const.
1181 (vcond_mask_<mode><vpred>): Turn into a define_expand that
1182 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
1183 for operands 1 and 2 respectively. Force operand 2 into a
1184 register if operand 1 is a register. Fold old define_insn...
1185 (aarch64_sve_dup<mode>_const): ...and this define_insn...
1186 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
1187 floating-point constants that can be moved as integers. Add
1188 alternatives for MOV /M and FMOV /M.
1189 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
1190 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
1191 1 and 2 respectively.
1192 * config/aarch64/constraints.md (Ufc): Handle vectors as well
1193 as scalars.
1194 (vss): New constraint.
1195
1196 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1197
1198 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
1199 (aarch64_sve_float_maxmin_operand): New predicates.
1200 * config/aarch64/constraints.md (vsB): New constraint.
1201 (vsM): Fix typo.
1202 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
1203 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
1204 UNSPEC_COND_FMINNM.
1205 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
1206 Use aarch64_sve_float_maxmin_operand for operand 2.
1207 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
1208 Add alternatives for the constant forms.
1209
1210 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1211
1212 * config/aarch64/constraints.md (vsb): New constraint.
1213 (vsm): Generalize description.
1214 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
1215 iterator.
1216 (sve_imm_con): Handle smax, smin, umax and umin.
1217 (sve_imm_prefix): New code attribute.
1218 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
1219 (aarch64_sve_vsb_operand): New predicates.
1220 (aarch64_sve_mul_immediate): Rename to...
1221 (aarch64_sve_vsm_immediate): ...this.
1222 (aarch64_sve_mul_operand): Rename to...
1223 (aarch64_sve_vsm_operand): ...this.
1224 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
1225 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
1226 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
1227 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
1228 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
1229 add movprfx support for the immediate alternatives.
1230 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
1231 of the above.
1232 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
1233 for operand 3.
1234
1235 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1236
1237 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
1238 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
1239 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
1240
1241 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1242
1243 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
1244 (optab, sve_int_op): Handle them.
1245 * config/aarch64/aarch64-sve.md: Expand comment.
1246
1247 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1248
1249 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
1250 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
1251 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
1252
1253 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1254
1255 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
1256 (aarch64_expand_sve_const_pred_trn): New functions.
1257 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
1258 use the above functions when the parameter is true.
1259 (aarch64_expand_sve_const_pred): Update call accordingly.
1260 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
1261 Rename to...
1262 (@aarch64_sve_<perm_insn><mode>): ...this.
1263
1264 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1265
1266 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
1267 Declare.
1268 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
1269 (aarch64_sve_emit_int_cmp): New functions.
1270 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
1271 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
1272 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
1273 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
1274 (UNSPEC_PRED_Z): New unspec.
1275 (set_clobber_cc_nzc): Delete.
1276 * config/aarch64/aarch64-sve.md: Add a block comment about
1277 UNSPEC_PRED_Z.
1278 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
1279 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
1280 the old pattern with that name. Use UNSPEC_PRED_Z instead of
1281 UNSPEC_MERGE_PTRUE.
1282 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
1283 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
1284 check for compatible predicates.
1285 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
1286 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
1287 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
1288 comparisons above.
1289
1290 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1291
1292 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
1293 * config/aarch64/aarch64-sve.md: Add a section describing it.
1294 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
1295 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
1296 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
1297 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
1298 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
1299 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
1300 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
1301 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
1302 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
1303 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
1304 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
1305 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
1306 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
1307 (aarch64_evpc_rev_local): Update accordingly.
1308
1309 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1310
1311 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
1312 iterators.
1313 (SVE_BHSI, SVE_SDI): Tweak comment.
1314 (SVE_HSDI): Likewise. Fix definition.
1315 (SVE_SDF): New mode iterator.
1316 (elem_bits): New mode attribute.
1317 (SVE_COND_FCVT): New int iterator.
1318 * config/aarch64/aarch64-sve.md
1319 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
1320 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
1321 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
1322 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
1323 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
1324 ...these new patterns.
1325 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
1326 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
1327 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
1328 Merge into...
1329 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
1330 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
1331 ...these new patterns.
1332 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
1333 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
1334 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
1335 ...this new pattern.
1336 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
1337 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
1338 ...this new pattern.
1339 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
1340
1341 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1342
1343 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
1344 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
1345 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
1346 unspecs.
1347 (optab, su): Handle them.
1348 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
1349 * config/aarch64/aarch64-sve.md
1350 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
1351 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
1352 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
1353 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
1354 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
1355 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
1356 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
1357 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
1358 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
1359 FIXUORS.
1360 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
1361 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
1362 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
1363 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
1364 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
1365 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
1366 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
1367 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
1368 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
1369 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
1370 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
1371 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
1372 of UNSPEC_FLOAT_CONVERT.
1373 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
1374 aarch64_sve_extend<mode><Vwide>2.
1375
1376 2019-08-14 Richard Biener <rguenther@suse.de>
1377
1378 PR target/91154
1379 * config/i386/i386-features.c
1380 (dimode_scalar_chain::compute_convert_gain): Compute and dump
1381 individual instruction gain. Fix reg-reg copy GRP cost. Use
1382 ix86_cost->sse_op for vector instruction costs.
1383
1384 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1385
1386 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
1387 (cmp_op): Handle it.
1388 (SVE_COND_FP_CMP): Rename to...
1389 (SVE_COND_FP_CMP_I0): ...this.
1390 (SVE_FP_CMP): Remove.
1391 * config/aarch64/aarch64-sve.md
1392 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
1393 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
1394 using unspecs to represent the comparison.
1395 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
1396 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
1397 accordingly.
1398 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
1399 (aarch64_unspec_cond_code): Move after integer code. Handle
1400 UNORDERED.
1401 (aarch64_emit_sve_predicated_cond): Replace with...
1402 (aarch64_emit_sve_fp_cond): ...this new function.
1403 (aarch64_emit_sve_or_conds): Replace with...
1404 (aarch64_emit_sve_or_fp_conds): ...this new function.
1405 (aarch64_emit_sve_inverted_cond): Replace with...
1406 (aarch64_emit_sve_invert_fp_cond): ...this new function.
1407 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
1408
1409 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1410
1411 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
1412 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
1413 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
1414 SVE_HSD instead of SVE_SD.
1415
1416 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1417 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1418
1419 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
1420 iterator.
1421 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
1422 attributes.
1423 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
1424 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
1425 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
1426 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
1427 (*div<SVE_F:mode>3): Generalize to...
1428 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
1429
1430 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1431 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1432
1433 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
1434 constants.
1435 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
1436 predicate.
1437 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
1438 Declare.
1439 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
1440 function.
1441 * config/aarch64/aarch64-sve.md: Add a block comment about the
1442 handling of predicated FP operations.
1443 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
1444 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
1445 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
1446 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
1447 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
1448 operand.
1449 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
1450 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
1451 operand.
1452 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
1453 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
1454 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
1455 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
1456 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
1457 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
1458 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
1459 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
1460 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
1461 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
1462 strictness operands. Use aarch64_sve_pred_dominates_p to check
1463 whether the predicate on the conditional operation is suitable
1464 for merging. Split patterns into the canonical equal-predicate form.
1465 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
1466 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
1467
1468 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1469 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1470
1471 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
1472 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
1473 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
1474 rtx codes.
1475 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
1476 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
1477 unspecs.
1478
1479 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1480 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1481
1482 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
1483 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
1484 actually has, rather than relying on REG_EQUAL notes.
1485 Make the insn operand order match the SVE operand order.
1486 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
1487 the SVE operand order.
1488
1489 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1490
1491 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
1492 (aarch64_emit_set_immediate): Likewise.
1493 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
1494 (aarch64_pfalse_reg): Likewise.
1495 (aarch64_convert_sve_data_to_pred): New function.
1496 (aarch64_sve_move_pred_via_while): Take an optional target register
1497 and the required register mode.
1498 (aarch64_expand_sve_const_pred_1): New function.
1499 (aarch64_expand_sve_const_pred): Likewise.
1500 (aarch64_expand_mov_immediate): Build an all-true predicate
1501 if the significant bits of the immediate are all true. Use
1502 aarch64_expand_sve_const_pred for all compile-time predicate constants.
1503 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
1504 before register allocation.
1505 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
1506 a VNx16BI PTRUE when splitting the memory alternative.
1507 (vec_duplicate<mode>): Update accordingly.
1508 (*pred_cmp<cmp_op><mode>): Rename to...
1509 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
1510
1511 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1512
1513 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
1514 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
1515 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
1516 (UNSPEC_PTEST): New unspec.
1517 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
1518 * config/aarch64/iterators.md (data_bytes): New mode attribute.
1519 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
1520 * config/aarch64/aarch64-sve.md: Add a new section describing the
1521 handling of UNSPEC_PTEST.
1522 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
1523 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
1524 (ptest_ptrue<mode>): Replace with...
1525 (aarch64_ptest<mode>): ...this new pattern.
1526 (cbranch<mode>4): Update after above changes.
1527 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
1528 UNSPEC_PTEST_PTRUE.
1529 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
1530 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
1531 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
1532
1533 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
1534
1535 PR lto/91287
1536 * builtins.c (builtin_with_linkage_p): New function.
1537 * builtins.h (builtin_with_linkage_p): New function.
1538 * symtab.c (write_symbol): Remove redundant assert.
1539 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
1540 Remove FIXME and use builtin_with_linkage_p.
1541
1542 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1543
1544 PR middle-end/91421
1545 * tree-core.h (function_decl::function_code): Change type to
1546 unsigned int.
1547 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
1548 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
1549 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
1550 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
1551 is BUILT_IN_NORMAL.
1552 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
1553 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
1554 (fndecl_built_in_p): Change the type of the "name" argument to
1555 unsigned int.
1556 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
1557 after check for DECL_BUILT_IN_CLASS.
1558 * cgraphclones.c (build_function_decl_skip_args): Use
1559 set_decl_built_in_function.
1560 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
1561 * ipa-split.c (split_function): Likewise.
1562 * langhooks.c (add_builtin_function_common): Likewise.
1563 * omp-simd-clone.c (simd_clone_create): Likewise.
1564 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
1565 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
1566 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
1567 DECL_FUNCTION_CODE.
1568 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
1569 instead of DECL_FUNCTION_CODE.
1570 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
1571 instead of DECL_FUNCTION_CODE.
1572 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
1573 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
1574 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
1575 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
1576 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
1577 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
1578 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
1579 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
1580 (alpha_gimple_fold_builtin): Likewise.
1581 * config/arc/arc.c (arc_expand_builtin): Likewise.
1582 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
1583 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
1584 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
1585 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
1586 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
1587 * config/frv/frv.c (frv_expand_builtin): Likewise.
1588 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
1589 (gcn_expand_builtin): Likewise.
1590 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
1591 (fold_builtin_cpu): Likewise.
1592 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
1593 * config/i386/i386.c (ix86_fold_builtin): Likewise.
1594 (ix86_gimple_fold_builtin): Likewise.
1595 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
1596 (ia64_expand_builtin): Likewise.
1597 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
1598 * config/mips/mips.c (mips_expand_builtin): Likewise.
1599 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
1600 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
1601 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
1602 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
1603 * config/pa/pa.c (pa_expand_builtin): Likewise.
1604 * config/pru/pru.c (pru_expand_builtin): Likewise.
1605 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
1606 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1607 Likewise.
1608 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
1609 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
1610 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
1611 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
1612 (rs6000_builtin_reciprocal): Likewise.
1613 * config/rx/rx.c (rx_expand_builtin): Likewise.
1614 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
1615 * config/s390/s390.c (s390_expand_builtin): Likewise.
1616 * config/sh/sh.c (sh_expand_builtin): Likewise.
1617 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
1618 (sparc_fold_builtin): Likewise.
1619 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
1620 * config/spu/spu.c (spu_expand_builtin): Likewise.
1621 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
1622 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
1623 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
1624 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
1625 (xtensa_expand_builtin): Likewise.
1626
1627 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1628
1629 PR middle-end/91421
1630 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
1631 before the DECL_FUNCTION_CODE.
1632 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
1633 to check for a BUILT_IN_ALLOCA call.
1634 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
1635 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
1636 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
1637 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
1638 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
1639 for BUILT_IN_NORMAL functions.
1640 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
1641 test for BUILT_IN_TM_ABORT.
1642 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
1643 to check for a BUILT_IN_STACK_RESTORE call.
1644 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
1645 * tree-ssa-threadedge.c
1646 (record_temporary_equivalences_from_stmts_at_dest): Check for a
1647 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
1648 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
1649 test for a BUILT_IN_NORMAL call instead of a negative test for
1650 an internal function call.
1651
1652 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1653
1654 * tree.h (build_vector_a_then_b): Declare.
1655 * tree.c (build_vector_a_then_b): New function.
1656 * fold-const-call.c (fold_while_ult): Likewise.
1657 (fold_const_call): Use it to handle IFN_WHILE_ULT.
1658 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
1659 (aarch64_svpattern): New enum.
1660 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
1661 constants through aarch64_expand_mov_immediate.
1662 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
1663 than general_operand as the predicate for operand 1.
1664 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
1665 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
1666 insn_type.
1667 (simd_immediate_info::simd_immediate_info): New overload that
1668 takes a scalar_int_mode and an svpattern.
1669 (simd_immediate_info::u): Add a "pattern" field.
1670 (svpattern_token): New function.
1671 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
1672 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
1673 (aarch64_sve_move_pred_via_while): New functions.
1674 (aarch64_expand_mov_immediate): Try using
1675 aarch64_sve_move_pred_via_while for predicates that contain N ones
1676 followed by M zeros but that do not correspond to a VLnnn pattern.
1677 (aarch64_sve_pred_valid_immediate): New function.
1678 (aarch64_simd_valid_immediate): Use it instead of dealing directly
1679 with PTRUE and PFALSE.
1680 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
1681 forms.
1682
1683 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
1684
1685 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
1686 flag.
1687 (darwin_override_options): Likewise.
1688 * config/darwin.h: Likewise.
1689 * config/darwin.opt: Likewise.
1690 * config/i386/i386.c (output_pic_addr_const): Likewise.
1691 * config/rs6000/darwin.h: Likewise.
1692 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
1693 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
1694 ... this TARGET_MACHO_SYMBOL_STUBS.
1695 (FUNCTION_PROFILER):Likewise.
1696 * config/i386/i386.h: Likewise.
1697
1698 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
1699
1700 * config/i386/i386-expand.c (ix86_expand_vector_extract)
1701 <case E_V2SImode>: Use vec_extr path for
1702 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1703 <case E_V8QImode>: Ditto.
1704 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
1705 Use SWI48 mode iterator. Use %k to output operand 0.
1706 (*mmx_pextrw): New insn pattern.
1707 (*mmx_pextrb): Ditto.
1708 (*mmx_pextrb_zext): Ditto.
1709
1710 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
1711
1712 * target.def (libc_has_function, libc_has_fast_function): Improve
1713 documentation strings.
1714 * doc/tm.texi: Regenerate.
1715
1716 2019-08-13 Caroline Tice <cmtice@google.com>
1717
1718 PR other/91396
1719 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
1720 vtv_end.o or vtv_end_preinit.o files if !static.
1721
1722 2019-08-13 Olivier Hainque <hainque@adacore.com>
1723
1724 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
1725
1726 2019-08-13 Olivier Hainque <hainque@adacore.com>
1727
1728 * rtlanal.c (tablejump_casesi_pattern): New function, to
1729 determine if a tablejump insn is a casesi dispatcher. Extracted
1730 from patch_jump_insn.
1731 * rtl.h (tablejump_casesi_pattern): Declare.
1732 * cfgrtl.c (patch_jump_insn): Use it.
1733 * dwarf2cfi.c (create_trace_edges): Use it.
1734
1735 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
1736
1737 PR target/81800
1738 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
1739 operand is larger than a long int.
1740
1741 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1742
1743 * machmode.h (opt_mode::else_mode): New function.
1744 (opt_mode::else_blk): Use it.
1745 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
1746 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
1747 (aarch64_gen_stepped_int_parallel): Likewise.
1748 (aarch64_stepped_int_parallel_p): Likewise.
1749 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
1750 argument.
1751 * config/aarch64/aarch64.c
1752 (aarch64_expand_sve_widened_duplicate): Delete.
1753 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
1754 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
1755 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
1756 argument. Use early returns in the !CONST_INT_P handling.
1757 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
1758 than handling some inline.
1759 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
1760 from...
1761 (aarch64_simd_container_mode): ...here.
1762 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
1763 (aarch64_sve_ld1rq_operand_p): New functions.
1764 * config/aarch64/predicates.md (descending_int_parallel)
1765 (aarch64_sve_ld1rq_operand): New predicates.
1766 * config/aarch64/constraints.md (UtQ): New constraint.
1767 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
1768 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
1769 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
1770 (@aarch64_sve_reinterpret<mode>): New expander.
1771 (*aarch64_sve_reinterpret<mode>): New pattern.
1772 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
1773 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
1774 (*sve_ld1rq<Vesize>): Replace with...
1775 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
1776
1777 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
1778
1779 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
1780 16:12.
1781
1782 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1783
1784 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
1785 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
1786 (msp430_check_path_for_devices): New.
1787 (parse_devices_csv_1): New.
1788 (parse_devices_csv): New.
1789 (msp430_extract_mcu_data): Try to find devices.csv and search for the
1790 MCU data in devices.csv before using the hard-coded data.
1791 Warn if devices.csv isn't found and the MCU wasn't found in the
1792 hard-coded data either.
1793 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
1794 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
1795 Search for devices.csv on -I and -L paths.
1796 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
1797 msp430_set_driver_var.
1798 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
1799 -mdevices-csv-loc=.
1800 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
1801 searched for devices.csv.
1802 (mwarn-devices-csv): Document option.
1803
1804 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1805
1806 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
1807 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
1808 Use a single Dn alternative instead of separate Dz and Dm
1809 alternatives. Use aarch64_output_sve_move_immediate.
1810 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
1811 function.
1812 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
1813 for predicates too.
1814 (aarch64_output_sve_mov_immediate): Handle predicate modes.
1815 (aarch64_output_ptrue): Delete.
1816
1817 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1818
1819 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
1820 INDEX.
1821 (simd_immediate_info::value, simd_immediate_info::step)
1822 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
1823 with...
1824 (simd_immediate_info::u): ...this new union.
1825 (simd_immediate_info::simd_immediate_info): Update accordingly.
1826 (aarch64_output_simd_mov_immediate): Likewise.
1827 (aarch64_output_sve_mov_immediate): Likewise.
1828
1829 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1830
1831 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
1832 extra_gcc_objs.
1833 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
1834 (msp430_select_cpu): New spec function.
1835 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
1836 MCU data.
1837 * config/msp430/msp430-devices.c: New file.
1838 * config/msp430/msp430-devices.h: New file.
1839 * config/msp430/msp430.c: Remove msp430_mcu_data.
1840 (msp430_option_override): Use msp430_extract_mcu_data to extract
1841 MCU data.
1842 (msp430_use_f5_series_hwmult): Likewise.
1843 (use_32bit_hwmult): Likewise.
1844 (msp430_no_hwmult): Likewise.
1845 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
1846 assembler.
1847 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
1848 and -mcpu option.
1849 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
1850 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
1851 Remove hard-coded MCU multilib data.
1852
1853 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1854
1855 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
1856 based on the mode instead of testing properties of it.
1857
1858 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1859
1860 * doc/md.texi: Document the x and y constraints for AArch64.
1861 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
1862 (FP_LO8_REGS): New reg_class.
1863 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
1864 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
1865 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
1866 * config/aarch64/predicates.md (aarch64_simd_register): Use
1867 FP_REGNUM_P instead of checking the classes manually.
1868 * config/aarch64/constraints.md (y): New constraint.
1869
1870 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1871
1872 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
1873 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
1874 * config/aarch64/aarch64-simd.md
1875 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
1876 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
1877 from the asm template.
1878 * config/aarch64/aarch64-sve.md
1879 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
1880 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
1881 from the asm template.
1882 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
1883 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
1884 from the asm template.
1885 * config/aarch64/aarch64-simd-builtins.def: Update comment.
1886
1887 2019-08-13 Martin Liska <mliska@suse.cz>
1888
1889 * value-prof.c (gimple_ic_transform): Add new line.
1890 Print details with MSG_NOTE.
1891
1892 2019-08-13 Martin Liska <mliska@suse.cz>
1893
1894 * doc/invoke.texi: Document automatic detection of jobserver.
1895 * lto-wrapper.c (run_gcc): Detect jobserver always.
1896
1897 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
1898
1899 * config/i386/i386-expand.c (ix86_expand_vector_set)
1900 <case E_V2SImode>: Use vec_merge path for
1901 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1902 <case E_V8QImode>: Ditto.
1903 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
1904 (*mmx_pinsrb): Ditto.
1905
1906 2019-08-12 Jakub Jelinek <jakub@redhat.com>
1907
1908 PR target/83250
1909 PR target/91340
1910 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
1911 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
1912 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
1913 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
1914 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
1915
1916 2019-08-12 Richard Biener <rguenther@suse.de>
1917
1918 PR lto/91375
1919 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
1920 flag_devirtualize.
1921
1922 2019-08-12 Richard Biener <rguenther@suse.de>
1923
1924 PR driver/91130
1925 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
1926 lang_mask option, always use CL_DRIVER.
1927 (get_options_from_collect_gcc_options): Adjust.
1928 (find_and_merge_options): Likewise.
1929 (run_gcc): Likewise.
1930
1931 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1932
1933 * ipa-predicate.c (add_condition): Restore inverted test.
1934
1935 2019-08-10 Jakub Jelinek <jakub@redhat.com>
1936
1937 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
1938 (enum omp_clause_device_type_kind): New enum.
1939 (struct tree_omp_clause): Add subcode.device_type_kind.
1940 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
1941 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
1942 for device_type clause.
1943 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
1944 * tree-pretty-print.c (dump_omp_clause): Likewise.
1945
1946 PR target/91408
1947 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
1948 vector_operand.
1949
1950 2019-09-09 Vladimir Makarov <vmakarov@redhat.com>
1951
1952 * reload1.c (finish_spills): Do not check ira_conflicts_p when
1953 handling spilled pseudos.
1954
1955 2019-09-09 Richard Earnshaw <rearnsha@arm.com>
1956
1957 PR target/91386
1958 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
1959 to preserve the contents of the original insns.
1960
1961 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
1962
1963 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
1964 (addsi3_compare_op2): Likewise.
1965
1966 2019-08-09 Martin Liska <mliska@suse.cz>
1967
1968 * alias.c (alias_ptr_types_compatible_p): Strengten
1969 type comparison in LTO mode.
1970
1971 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
1972
1973 PR middle-end/90313
1974 * tree-tailcall.c (find_tail_calls): Reject calls that might
1975 read from an escaped RESULT_DECL.
1976
1977 2019-08-09 Martin Liska <mliska@suse.cz>
1978
1979 * doc/invoke.texi: Document the option value.
1980 * lto-wrapper.c (run_gcc): Set auto_parallel
1981 only with -flto=auto.
1982
1983 2019-08-09 Martin Liska <mliska@suse.cz>
1984
1985 * opts.c (common_handle_option): Error for an invalid argument
1986 to -flto=.
1987
1988 2019-08-09 Martin Liska <mliska@suse.cz>
1989
1990 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
1991 use dump_printf to report optimization.
1992 (sem_variable::merge): Likwise.
1993 (sem_item_optimizer::merge_classes): Use dump_printf to report
1994 ICF hits.
1995
1996 2019-08-09 Martin Liska <mliska@suse.cz>
1997
1998 * value-prof.c (gimple_divmod_fixed_value_transform):
1999 Use dump_printf_loc.
2000 (gimple_mod_pow2_value_transform): Likewise.
2001 (gimple_mod_subtract_transform): Likewise.
2002 (init_node_map): Likewise.
2003 (gimple_ic_transform): Likewise.
2004 (gimple_stringops_transform): Likewise.
2005
2006 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
2007
2008 * doc/extend.texi: Add const qualifier to ld intrinsics.
2009
2010 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
2011
2012 * config/rs6000/dfp.md (D64_D128): Rename to ...
2013 (DDTD): ... this, throughout.
2014 (dfp_suffix): Rename to ...
2015 (q): ... this, throughout.
2016
2017 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
2018
2019 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
2020 (dfp_suffix): Ditto.
2021 (adddd3, addtd3): Merge to ...
2022 (add<mode>3 for D64_D128): ... this.
2023 (subdd3, subtd3): Merge to ...
2024 (sub<mode>3 for D64_D128): ... this.
2025 (muldd3, multd3): Merge to ...
2026 (mul<mode>3 for D64_D128): ... this.
2027 (divdd3, divtd3): Merge to ...
2028 (div<mode>3 for D64_D128): ... this.
2029 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
2030 (*cmp<mode>_internal1 for D64_D128): ... this.
2031 (ftruncdd2, ftrunctd2): Merge to ...
2032 (ftrunc<mode>2 for D64_D128): ... this.
2033 (fixdddi2, fixtddi2): Merge to ...
2034 (fix<mode>di2 for D64_D128): ... this.
2035
2036 2019-08-08 Jim Wilson <jimw@sifive.com>
2037
2038 PR target/91229
2039 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
2040 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
2041 Pass into recursive call.
2042 (riscv_flatten_aggregate_argument): New arg. Pass to
2043 riscv_flatten_aggregate_field.
2044 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
2045 riscv_flatten_aggregate_argument twice, with false and true as last
2046 arg. Process result twice. Compare results and warn if different.
2047 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
2048
2049 2019-08-08 Martin Liska <mliska@suse.cz>
2050
2051 PR bootstrap/91352
2052 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
2053 * lto-wrapper.c (jobserver_active_p): Likewise.
2054
2055 2019-08-08 Martin Liska <mliska@suse.cz>
2056
2057 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
2058 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
2059 (create_version_clone_with_body): Likewise.
2060
2061 2019-08-08 Jakub Jelinek <jakub@redhat.com>
2062
2063 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
2064 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
2065 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
2066 GOVD_EXPLICIT flags.
2067 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
2068 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
2069 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
2070 call install_var_field with mask 11 instead of 3.
2071 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
2072 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
2073
2074 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2075
2076 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
2077 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
2078
2079 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2080
2081 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
2082 MOVPRFX alternatives. Make the GPR alternatives more expensive
2083 than the FPR ones.
2084
2085 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2086
2087 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
2088 Disparage the GPR alternative relative to the FPR one.
2089 Fix handling of 8-bit and 16-bit FPR values.
2090
2091 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2092
2093 * config/aarch64/iterators.md (BITWISEV): Delete.
2094 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
2095 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
2096 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
2097 UNSPEC_FMINNMV, UNSPEC_FMINV.
2098 (bit_reduc_op): Delete.
2099 (sve_int_op): New int attribute.
2100 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
2101 UNSPEC_FMINNMV, UNSPEC_FMINV.
2102 * config/aarch64/aarch64-sve.md
2103 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
2104 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
2105 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
2106 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
2107 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
2108 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
2109 new patterns.
2110 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
2111 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
2112 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
2113 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
2114 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
2115 new patterns.
2116
2117 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2118
2119 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
2120 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
2121 (fms<mode>4, *fms<mode>4): Replace with...
2122 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
2123 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
2124 Use unspecs instead of rtx codes.
2125 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
2126 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
2127
2128 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2129
2130 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
2131 int iterator.
2132 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
2133 * config/aarch64/aarch64-sve.md
2134 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
2135 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
2136 use a single unspec for the rhs.
2137 (*<su><maxmin><mode>3): Delete.
2138 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
2139
2140 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2141
2142 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
2143 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
2144 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
2145 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
2146 (optab, sve_fp_op): Handle them.
2147 (SVE_FP_UNARY): Delete.
2148 (optab): Remove sqrt entry.
2149 (sve_fp_op): Remove neg, abs and sqrt entries.
2150 (SVE_COND_FP_UNARY): New int iterator.
2151 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
2152 (*<frint_pattern><mode>2): Delete.
2153 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
2154 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
2155 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
2156 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
2157
2158 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2159
2160 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
2161
2162 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2163
2164 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
2165 (UNSPEC_COND_FADD): ...this.
2166 (UNSPEC_COND_SUB): Rename to...
2167 (UNSPEC_COND_FSUB): ...this.
2168 (UNSPEC_COND_MUL): Rename to...
2169 (UNSPEC_COND_FMUL): ...this.
2170 (UNSPEC_COND_DIV): Rename to...
2171 (UNSPEC_COND_FDIV): ...this.
2172 (UNSPEC_COND_MAX): Rename to...
2173 (UNSPEC_COND_FMAXNM): ...this.
2174 (UNSPEC_COND_MIN): Rename to...
2175 (UNSPEC_COND_FMINNM): ...this.
2176 (UNSPEC_COND_LT): Rename to...
2177 (UNSPEC_COND_FCMLT): ...this.
2178 (UNSPEC_COND_LE): Rename to...
2179 (UNSPEC_COND_FCMLE): ...this.
2180 (UNSPEC_COND_EQ): Rename to...
2181 (UNSPEC_COND_FCMEQ): ...this.
2182 (UNSPEC_COND_NE): Rename to...
2183 (UNSPEC_COND_FCMNE): ...this.
2184 (UNSPEC_COND_GE): Rename to...
2185 (UNSPEC_COND_FCMGE): ...this.
2186 (UNSPEC_COND_GT): Rename to...
2187 (UNSPEC_COND_FCMGT): ...this.
2188 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
2189 (sve_fp_op_rev): Update accordingly.
2190 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
2191
2192 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2193
2194 * config/aarch64/aarch64-sve.md: Reorganize contents and add
2195 banner comments.
2196 * config/aarch64/check-sve-md.awk: New file.
2197 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
2198 (insn-conditions.md): Depend on it.
2199
2200 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
2201
2202 PR target/91385
2203 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
2204 (*negsi2_cmpz_zext): Ditto.
2205
2206 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2207
2208 * config/aarch64/iterators.md (commutative): Remove.
2209
2210 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
2211
2212 PR driver/91130
2213 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
2214 processing COLLECT_GCC_OPTIONS.
2215 (run_gcc): Likewise.
2216
2217 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
2218
2219 PR tree-optimization/91109
2220 * lra-remat.c (update_scratch_ops): Remove assignment of the
2221 hard register.
2222
2223 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2224
2225 * data-streamer.h (streamer_write_poly_uint64): Declare.
2226 (streamer_read_poly_uint64): Likewise.
2227 * data-streamer-in.c (streamer_read_poly_uint64): New function.
2228 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
2229 * ipa-predicate.h (condition::size): Turn into a poly_int64.
2230 (add_condition): Take a poly_int64 size.
2231 * ipa-predicate.c (add_condition): Likewise.
2232 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
2233 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
2234 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
2235 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
2236 condition::size as a poly_int64.
2237 (unmodified_parm_1): Take a poly_int64 size pointer.
2238 (unmodified_parm): Likewise.
2239 (unmodified_parm_or_parm_agg_item): Likewise.
2240 (set_cond_stmt_execution_predicate): Update accordingly.
2241 (set_switch_stmt_execution_predicate): Likewise.
2242 (will_be_nonconstant_expr_predicate): Likewise.
2243 (will_be_nonconstant_predicate): Likewise.
2244 (inline_read_section): Stream condition::size as a poly_int.
2245 (ipa_fn_summary_write): Likewise.
2246
2247 2019-08-07 Martin Liska <mliska@suse.cz>
2248
2249 * fold-const.c (twoval_comparison_p): Replace int
2250 with bool as a return type.
2251 (simple_operand_p): Likewise.
2252 (operand_equal_p): Replace int with bool as a return type.
2253 * fold-const.h (operand_equal_p): Likewise.
2254
2255 2019-08-07 Jakub Jelinek <jakub@redhat.com>
2256
2257 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
2258 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
2259 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
2260 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
2261 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
2262 * tree-pretty-print.c (dump_omp_clause): Likewise.
2263 * tree-nested.c (convert_nonlocal_omp_clauses,
2264 convert_local_omp_clauses): Likewise.
2265 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
2266 Likewise.
2267 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
2268 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
2269 clause with array or reference to array types, no matter what type
2270 except for reference it has.
2271
2272 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
2273
2274 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
2275
2276 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
2277
2278 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
2279 (arch_canonicalize): Support rv32g and rv64g and fix error
2280 handling.
2281
2282 2019-08-06 Martin Liska <mliska@suse.cz>
2283
2284 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
2285 and DECL_IS_OPERATOR_DELETE_P.
2286
2287 2019-08-06 Jakub Jelinek <jakub@redhat.com>
2288
2289 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
2290 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
2291 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
2292 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
2293 (gimplify_omp_for): Don't do C++ random access iterator clause
2294 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
2295 don't predetermine the artificial iterator in case of C++ random
2296 access iterators as lastprivate, but private. For OMP_LOOP, force
2297 bind expr around simd body and force for_pre_body before the
2298 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
2299 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
2300 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
2301 diff var of C++ random access iterators. Handle
2302 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
2303 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
2304 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
2305 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
2306 * omp-low.c (lower_rec_input_clauses): For
2307 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
2308 variables instead of default constructing them.
2309 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
2310 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
2311 is_taskloop_ctx check from the assert to the guarding condition.
2312
2313 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
2314
2315 * config/riscv/multilib-generator: (canonical_order): New.
2316 (arch_canonicalize): Dito.
2317 Apply arch_canonicalize for alts.
2318
2319 2019-08-05 Martin Sebor <msebor@redhat.com>
2320
2321 * doc/extend.texi (Common Variable Attributes): Document alias
2322 attribute.
2323
2324 2019-08-05 Marek Polacek <polacek@redhat.com>
2325
2326 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
2327 * doc/invoke.texi: Document -Wcomma-subscript.
2328
2329 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
2330
2331 * tree-core.h (tree_function_decl): Make function_code an
2332 independent field. Group the remaining bitfields into bytes
2333 and move decl_type so that it contines to be at a byte boundary.
2334 Leave 12 bits for future expansion.
2335
2336 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
2337
2338 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
2339 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
2340 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
2341 IFN_MASK_STORE.
2342
2343 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
2344
2345 * gimple.h (gimple_move_vops): Declare.
2346 * gimple.c (gimple_move_vops): New function
2347 * gimple-fold.c (replace_call_with_call_and_fold)
2348 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
2349 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
2350 (gimple_fold_call): Use it.
2351 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
2352 * tree-call-cdce.c (use_internal_fn): Likewise.
2353 * tree-if-conv.c (predicate_load_or_store): Likewise.
2354 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
2355 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
2356 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
2357 (update_call_from_tree): Likewise.
2358 * tree-vect-stmts.c (vectorizable_load): Likewise.
2359 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
2360
2361 2019-08-05 Martin Liska <mliska@suse.cz>
2362
2363 PR c++/91334
2364 * tree-ssa-dce.c (propagate_necessity): Handle new operators
2365 with not arguments.
2366 (eliminate_unnecessary_stmts): Likewise.
2367
2368 2019-08-05 Richard Biener <rguenther@suse.de>
2369
2370 PR middle-end/91169
2371 * fold-const.c (get_array_ctor_element_at_index): Create
2372 offset_ints according to the sign of the index type and treat
2373 that as signed if it is obviously so.
2374
2375 2019-08-05 Jakub Jelinek <jakub@redhat.com>
2376
2377 PR target/91341
2378 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
2379 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
2380 _mm256_storeu2_m128i): New function.
2381
2382 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
2383
2384 * config/riscv/riscv.c (riscv_promote_function_mode): New.
2385 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
2386
2387 2019-08-05 Alan Modra <amodra@gmail.com>
2388
2389 PR target/91349
2390 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
2391 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
2392
2393 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
2394
2395 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
2396 bug that was fixed in Tcl 8.6.1.
2397
2398 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
2399
2400 * config/rs6000/future.md: New file.
2401 * config/rs6000/rs6000.md: Include future.md.
2402 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
2403
2404 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2405
2406 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
2407 check to use targetm.slow_unaligned_access instead.
2408
2409 * function.c (assign_param_data_one): Remove unused data members.
2410
2411 2019-08-02 Steve Ellcey <sellcey@marvell.com>
2412
2413 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
2414 build_distinct_type_copy.
2415 (simd_clone_adjust_argument_types): Ditto.
2416 (simd_clone_adjust): Call build_distinct_type_copy here.
2417 (expand_simd_clones): Ditto.
2418
2419 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
2420
2421 PR target/91201
2422 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
2423
2424 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
2425
2426 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
2427 from 'const void *'.
2428 (sort_locs_in_loop_postorder_cmp): Likewise.
2429
2430 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
2431
2432 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
2433 (hot-bb-count-ws-permille): Likewise.
2434 (hot-bb-frequency-fraction): Likewise.
2435 (unlikely-bb-count-fraction): Likewise.
2436 * params.def (hot-bb-count-fraction): Rework description.
2437 (hot-bb-count-ws-permille): Likewise.
2438 (hot-bb-frequency-fraction): Likewise.
2439 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
2440 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
2441
2442 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
2443
2444 PR target/91323
2445 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
2446 Return false.
2447
2448 2019-08-02 Richard Biener <rguenther@suse.de>
2449
2450 * vec.h (vec::sort): Add gcc_qsort_r support.
2451 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
2452 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
2453 to gcc_qsort_r style callback.
2454 (sort_locs_in_loop_postorder_cmp): Likewise.
2455 (analyze_memory_references): Use gcc_sort_r interfaces.
2456 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
2457
2458 2019-08-02 Martin Liska <mliska@suse.cz>
2459
2460 PR lto/91313
2461 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
2462 to detect working job server.
2463 (driver::detect_jobserver): Test whether jobserver
2464 is active from GCC driver. That will prevent situation where
2465 GCC is invoked from a LD plugin and the linker already uses
2466 file descriptors suggested by make. That leads to a wrong
2467 detection.
2468 * gcc.h (driver): Add detect_jobserver.
2469 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
2470 not scanning for --jobserver-auth prefix.
2471
2472 2019-08-02 Jakub Jelinek <jakub@redhat.com>
2473
2474 PR tree-optimization/91201
2475 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
2476 V16QImode extraction without sse4.1 try to use V4SImode lowpart
2477 extraction.
2478
2479 2019-08-01 Martin Sebor <msebor@redhat.com>
2480
2481 PR c++/90947
2482 * tree.c (type_initializer_zero_p): Define.
2483 * tree.h (type_initializer_zero_p): New function.
2484
2485 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
2486
2487 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
2488
2489 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
2490
2491 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
2492 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
2493 * predict.c (maybe_hot_count_p): Likewise.
2494 (maybe_hot_bb_p): Tweak comment.
2495 (maybe_hot_edge_p): Likewise.
2496 (probably_never_executed): Likewise. Minor tweak.
2497 (probably_never_executed_bb_p): Likewise.
2498 (unlikely_executed_edge_p): Likewise.
2499 (probably_never_executed_edge_p): Likewise.
2500 (optimize_function_for_size_p): Likewise.
2501 (optimize_function_for_speed_p): Likewise.
2502 (function_optimization_type): Likewise.
2503 (optimize_bb_for_size_p): Likewise.
2504 (optimize_bb_for_speed_p): Likewise.
2505 (bb_optimization_type): Likewise.
2506 (optimize_edge_for_size_p): Likewise.
2507 (optimize_edge_for_speed_p): Likewise.
2508 (optimize_insn_for_size_p): Likewise.
2509 (optimize_insn_for_speed_p): Likewise.
2510 (optimize_loop_for_size_p): Likewise.
2511 (optimize_loop_for_speed_p): Likewise.
2512 (optimize_loop_nest_for_speed_p): Likewise.
2513 (optimize_loop_nest_for_size_p): Likewise.
2514 (predictable_edge_p): Likewise.
2515 (handle_missing_profiles): Minor tweak.
2516
2517 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
2518
2519 * config/rs6000/predicates.md (pcrel_external_address): Update
2520 comment.
2521
2522 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
2523
2524 PR target/85693
2525 * config/i386/mmx.md (usadv8qi): New expander.
2526
2527 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
2528
2529 PR c++/90590
2530 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
2531 with reserved names that are in a system header.
2532
2533 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
2534
2535 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
2536 (*vec_extractv2si_0_zext_sse4): New insn pattern.
2537 (*vec_extractv2si_0_zext): Ditto.
2538 (*vec_extractv2si_1): Add (rm,x) alternative.
2539 (*vec_extractv2si_1_zext): New insn pattern.
2540 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
2541 insn constraint.
2542
2543 2019-08-01 Richard Biener <rguenther@suse.de>
2544
2545 * domwalk.c (bb_postorder): Remove static variable.
2546 (cmp_bb_postorder): Adjust.
2547 (sort_bbs_postorder): Adjust and use gcc_sort_r.
2548 (dom_walker::walk): Adjust.
2549
2550 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
2551
2552 * sort.cc (sort_r_ctx): New struct.
2553 (reorder23): Make templated on context type.
2554 (reorder45): Ditto.
2555 (cmp1): Ditto. Adjust signature.
2556 (netsort): Ditto.
2557 (mergesort): Ditto.
2558 [CHECKING_P] (cmp2to3): New static function. Use it...
2559 (gcc_qsort) [CHECKING_P]: ...here.
2560 (gcc_sort_r): New function.
2561 * system.h (sort_r_cmp_fn): New function typedef.
2562 (qsort_chk): Adjust signature.
2563 (gcc_sort_r): Declare.
2564 * vec.c (qsort_chk_error): Adjust.
2565 (qsort_chk): Adjust.
2566
2567 2019-08-01 Richard Biener <rguenther@suse.de>
2568
2569 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
2570 (compute_antic): Localize it here.
2571
2572 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
2573
2574 * common/config/riscv/riscv-common.c: Check -march string ends
2575 with null.
2576
2577 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
2578
2579 * ipa-devirt.c (type_warning_cmp): Make static.
2580 (decl_warning_cmp): Ditto.
2581
2582 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
2583
2584 PR target/91050
2585 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
2586 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
2587 use of deleted rs6000_dejagnu_cpu_index variable.
2588 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
2589 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
2590 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
2591 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
2592 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
2593 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
2594
2595 2019-07-31 Richard Biener <rguenther@suse.de>
2596
2597 PR tree-optimization/91280
2598 * tree-ssa-structalias.c (get_constraint_for_component_ref):
2599 Decompose MEM_REF manually for offset handling.
2600
2601 2019-07-31 Richard Biener <rguenther@suse.de>
2602
2603 PR tree-optimization/91293
2604 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
2605 of reduction stmts.
2606
2607 2019-07-31 Matt Thomas <matt@3am-software.com>
2608 Nick Hudson <nick@nthcliff.demon.co.uk>
2609 Matthew Green <mrg@eterna.com.au>
2610 Maya Rashish <coypu@sdf.org>
2611
2612 * config.gcc (hppa*-*-netbsd*): New target.
2613 * config/pa/pa-netbsd.h: New file.
2614 * config/pa/pa32-netbsd.h: New file.
2615
2616 2019-07-31 Jakub Jelinek <jakub@redhat.com>
2617
2618 PR tree-optimization/91201
2619 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
2620
2621 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
2622
2623 * config/gcn/gcn-valu.md
2624 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
2625 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
2626 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
2627 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
2628 struct ilist. Add nops for delayeduse insns.
2629 * config/gcn/gcn.md (delayeduse): New attribute.
2630 (*movbi): Remove s_waitcnt from stores.
2631 (*mov<mode>_insn): Likewise.
2632 (*movti_insn): Likewise. Add delayeduse attribute.
2633 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
2634 (atomic_store<mode>): Remove or adjust s_waitcnt.
2635
2636 2019-07-31 Richard Biener <rguenther@suse.de>
2637
2638 * vr-values.h (vr_values::swap_vr_value): New.
2639 (vr_values::free_value_range): likewise.
2640 * vr-values.c (vr_values::swap_vr_value): Implement.
2641 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
2642 Do not return a range or take a var.
2643 (evrp_range_analyzer::stack): Change back to recording a non-const
2644 value_range *.
2645 * gimple-ssa-evrp-analyze.c
2646 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
2647 value-range.
2648 (evrp_range_analyzer::pop_to_marker): Adjust.
2649 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
2650 (evrp_range_analyzer::pop_value_range): Likewise. Free the
2651 no longer needed value-range.
2652
2653 2019-07-31 Martin Liska <mliska@suse.cz>
2654
2655 * tree-ssa-dce.c (propagate_necessity): Delete operator can
2656 have size and (or) alignment as 2nd and later arguments.
2657 Mark all of them as necessary.
2658
2659 2019-07-31 Richard Biener <rguenther@suse.de>
2660
2661 PR tree-optimization/91178
2662 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
2663 Use tail-recursion.
2664
2665 2019-07-31 Jakub Jelinek <jakub@redhat.com>
2666
2667 PR tree-optimization/91201
2668 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
2669 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
2670 TARGET_AVX512F.
2671 (reduc_plus_scal_<mode>): Improve formatting by introducing
2672 a temporary.
2673
2674 2019-07-31 Sudakshina Das <sudi.das@arm.com>
2675
2676 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
2677 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
2678 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
2679 (aarch64_init_tme_builtins): New.
2680 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
2681 (aarch64_expand_builtin_tme): New.
2682 (aarch64_expand_builtin): Handle TME builtins.
2683 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
2684 __ARM_FEATURE_TME when enabled.
2685 * config/aarch64/aarch64-option-extensions.def: Add "tme".
2686 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
2687 (TARGET_TME): New.
2688 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
2689 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
2690 UNSPECV_TCANCEL.
2691 (tstart, ttest, tcommit, tcancel): New instructions.
2692 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
2693 (__tcancel, __ttest): New.
2694 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
2695 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
2696 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
2697 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
2698 * config/arm/types.md: Add new tme type attr.
2699 * doc/invoke.texi: Document "tme".
2700
2701 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
2702
2703 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
2704 warn_unused_result attribute.
2705 (cmse_check_address_range): Add warn_unused_result attribute.
2706
2707 2019-07-31 Richard Biener <rguenther@suse.de>
2708
2709 PR tree-optimization/91257
2710 * tree-vrp.c (union_ranges): Unify equality and less tests
2711 by using compare_values. Re-order cheap tests first.
2712
2713 2019-07-31 Jakub Jelinek <jakub@redhat.com>
2714
2715 PR middle-end/91301
2716 * gimplify.c (gimplify_omp_for): If for class iterator on
2717 distribute parallel for there is no data sharing clause
2718 on inner_for_stmt, look for private clause on combined
2719 parallel too and if found, move it to inner_for_stmt.
2720
2721 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
2722
2723 * lra-int.h (lra_operand_data): Remove early_clobber field.
2724 (lra_insn_reg): Likewise.
2725 * lra.c (debug_operand_data): Update accordingly.
2726 (setup_operand_alternative): Likewise.
2727 (new_insn_reg): Likewise. Remove early_clobber parameter.
2728 (collect_non_operand_hard_regs): Update call accordingly.
2729 Don't assign to lra_insn_reg::early_clobber.
2730 (add_regs_to_insn_regno_info): Remove early_clobber parameter
2731 and update calls to new_insn_reg.
2732 (lra_update_insn_regno_info): Update calls accordingly.
2733 * lra-constraints.c (update_and_check_small_class_inputs): Take the
2734 alternative number as a parameter and test whether the operand
2735 is earlyclobbered in that particular alternative.
2736 (process_alt_operands): Update call accordingly. Use per-alternative
2737 checks for earyclobber here too.
2738 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
2739 against zero for IRA_UNKNOWN_ALT.
2740
2741 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
2742
2743 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
2744
2745 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
2746
2747 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
2748 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
2749
2750 2019-07-30 Martin Liska <mliska@suse.cz>
2751
2752 PR ipa/89330
2753 * cgraph.c (cgraph_edge::make_direct): Use
2754 edge->indirect_unknown_callee as edge->resolve_speculation can
2755 deallocate edge which is this pointer.
2756
2757 2019-07-30 Richard Biener <rguenther@suse.de>
2758
2759 PR tree-optimization/91257
2760 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
2761
2762 2019-07-30 Martin Liska <mliska@suse.cz>
2763
2764 * doc/invoke.texi: Document new behavior.
2765 * lto-wrapper.c (cpuset_popcount): New function
2766 is a copy of libgomp/config/linux/proc.c.
2767 (init_num_threads): Likewise.
2768 (run_gcc): Automatically detect core count for -flto.
2769 (jobserver_active_p): New function.
2770
2771 2019-07-30 Richard Biener <rguenther@suse.de>
2772
2773 PR tree-optimization/91257
2774 * bitmap.h (bitmap_ior_into_and_free): Declare.
2775 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
2776 whether to add the unliked element to the freelist.
2777 (bitmap_list_insert_element_after): Add defaulted param for
2778 an already allocated element.
2779 (bitmap_ior_into_and_free): New function.
2780 * tree-ssa-structalias.c (condense_visit): Reduce the
2781 ponts-to and edge bitmaps of the SCC members in a
2782 logarithmic fashion rather than all to one.
2783
2784 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
2785
2786 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
2787 parameter. When nonnull, make sure that the addition or subtraction
2788 has the same condition.
2789 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
2790 for CFN_COND_MUL too.
2791
2792 2019-07-30 Richard Biener <rguenther@suse.de>
2793
2794 PR tree-optimization/91291
2795 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
2796 constant values.
2797
2798 2019-07-30 Jakub Jelinek <jakub@redhat.com>
2799
2800 PR middle-end/91216
2801 * omp-low.c (global_nonaddressable_vars): New variable.
2802 (use_pointer_for_field): For global decls, if they are non-addressable,
2803 remember it in the global_nonaddressable_vars bitmap, if they are
2804 addressable and in the global_nonaddressable_vars bitmap, ignore their
2805 TREE_ADDRESSABLE bit.
2806 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
2807 vars in global_nonaddressable_vars bitmap.
2808 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
2809
2810 PR target/91150
2811 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
2812 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
2813 comparison to unsigned HOST_WIDE_INT before shifting it left.
2814
2815 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
2816
2817 * config/i386/i386.md (movstrict<mode>): Use register_operand
2818 predicate for operand 0. Add expander condition. Assert that
2819 operand 0 is a SUBREG RTX.
2820 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
2821 Update operand constraints and insn condition.
2822 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
2823 (zero_extendqihi2_and): Do not call gen_movstrictqi.
2824 (*setcc_qi_slp): Use register_operand predicate for operand 0.
2825 Update operand 0 constraints.
2826 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
2827
2828 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2829
2830 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
2831 when -m{code,data}-region are used without -mlarge.
2832 * config/msp430/msp430.c (msp430_option_override): Error when a
2833 non-default code or data region is used without -mlarge.
2834 (msp430_section_attr): Emit a warning and do not add upper/lower/either
2835 attributes when they are used without -mlarge.
2836
2837 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2838
2839 PR target/70320
2840 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
2841
2842 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
2843
2844 PR middle-end/91242
2845 * wide-int.h (generic_wide_int::sext_elt): New function.
2846 * inchash.h (hash::add_wide_int): Use it instead of elt.
2847
2848 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2849
2850 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
2851 CODE_FOR_arm_##.
2852 * config/arm/arm.md (<crc_variant>): Rename to...
2853 (arm_<crc_variant>): ... This.
2854 (<cdp>): Rename to...
2855 (arm_<cdp>): ... This.
2856 (<ldc>): Rename to...
2857 (arm_<ldc>): ... This.
2858 (<stc>): Rename to...
2859 (arm_<stc>): ... This.
2860 (<mcr>): Rename to...
2861 (arm_<mcr>): ... This.
2862 (<mrc>): Rename to...
2863 (arm_<mrc>): ... This.
2864 (<mcrr>): Rename to...
2865 (arm_<mcrr>): ... This.
2866 (<mrrc>): Rename to...
2867 (arm_<mrrc>): ... This.
2868
2869 2019-07-29 Richard Biener <rguenther@suse.de>
2870
2871 PR tree-optimization/91257
2872 * tree-ssa-sccvn.h (struct vn_avail): New.
2873 (struct vn_ssa_aux): Add avail member.
2874 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
2875 member, add m_avail_freelist one.
2876 (rpo_elim::~rpo_elim): Remove.
2877 (rpo_elim::eliminate_avail): Adjust to new avail tracking
2878 data structure.
2879 (rpo_elim::eliminate_push_avail): Likewise.
2880 (do_unwind): Likewise.
2881 (do_rpo_vn): Likewise.
2882
2883 2019-07-29 Richard Biener <rguenther@suse.de>
2884
2885 PR tree-optimization/91257
2886 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
2887 most cases, instead call compare_values which handles the
2888 symbolic ranges we handle specially.
2889 (compare_values_warnv): Do not call operand_less_p but open-code
2890 the effective fold calls. Avoid converting so much.
2891
2892 2019-07-29 Martin Liska <mliska@suse.cz>
2893
2894 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
2895 remove LHS of operator new call. It's handled latter.
2896
2897 2019-07-29 Richard Biener <rguenther@suse.de>
2898
2899 PR tree-optimization/91267
2900 * vr-values.c (vr_values::update_value_range): Add early return
2901 for effectively VARYING lattice entry.
2902
2903 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
2904
2905 PR debug/86638
2906 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
2907 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
2908 necessary if keep_all_vdefs_p is true.
2909 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
2910 that keep_all_vdefs_p is false.
2911 (mark_all_reaching_defs_necessary): Likewise.
2912 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
2913
2914 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
2915
2916 * common.opt (Og): Change the initial value of flag_dse to 0.
2917 * opts.c (default_options_table): Move OPT_ftree_dse from
2918 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
2919 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
2920 entry before the OPT_ftree_sra entry.
2921 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
2922 of flags disabled by Og.
2923
2924 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
2925
2926 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
2927 variables for -Og.
2928
2929 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
2930
2931 * doc/sourcebuild.texi (check-function-bodies): Document.
2932
2933 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
2934
2935 * simplify-rtx.c (simplify_const_unary_operation): Fold a
2936 VEC_DUPLICATE of a fixed-length vector even if the result
2937 is variable-length. Likewise fold a duplicate of a
2938 variable-length vector if the variable-length vector is
2939 itself a duplicate of a fixed-length sequence.
2940 (test_vector_ops_duplicate): Test more cases.
2941
2942 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
2943
2944 * vector-builder.h (vector_builder): Add a shape template parameter.
2945 (vector_builder::new_unary_operation): New function, generalizing
2946 the old tree_vector_builder function.
2947 (vector_builder::new_binary_operation): Likewise.
2948 (vector_builder::binary_encoded_nelts): Likewise.
2949 * int-vector-builder.h (int_vector_builder): Update template
2950 parameters to vector_builder.
2951 (int_vector_builder::shape_nelts): New function.
2952 * rtx-vector-builder.h (rtx_vector_builder): Update template
2953 parameters to vector_builder.
2954 (rtx_vector_builder::shape_nelts): New function.
2955 (rtx_vector_builder::nelts_of): Likewise.
2956 (rtx_vector_builder::npatterns_of): Likewise.
2957 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
2958 * tree-vector-builder.h (tree_vector_builder): Update template
2959 parameters to vector_builder.
2960 (tree_vector_builder::shape_nelts): New function.
2961 (tree_vector_builder::nelts_of): Likewise.
2962 (tree_vector_builder::npatterns_of): Likewise.
2963 (tree_vector_builder::nelts_per_pattern_of): Likewise.
2964 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
2965 (tree_vector_builder::new_binary_operation): Delete.
2966 (tree_vector_builder::binary_encoded_nelts): Likewise.
2967 * simplify-rtx.c: Include rtx-vector-builder.h.
2968 (distributes_over_addition_p): New function.
2969 (simplify_const_unary_operation)
2970 (simplify_const_binary_operation): Generalize handling of vector
2971 constants to include variable-length vectors.
2972 (test_vector_ops_series): Add more tests.
2973
2974 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
2975
2976 PR lto/91222
2977 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
2978 than INDENTIFIER_POINTER.
2979
2980 2019-07-28 Martin Liska <mliska@suse.cz>
2981
2982 PR ipa/89330
2983 * cgraph.c (symbol_table::create_edge): Always allocate
2984 a cgraph_edge.
2985 (symbol_table::free_edge): Store summary_id to
2986 edge_released_summary_ids if != -1;
2987 * cgraph.h (NEXT_FREE_NODE): Remove.
2988 (SET_NEXT_FREE_NODE): Likewise.
2989 (NEXT_FREE_EDGE): Likewise.
2990 (symbol_table::release_symbol): Store summary_id to
2991 cgraph_released_summary_ids if != -1;
2992 (symbol_table::allocate_cgraph_symbol): Always allocate
2993 a cgraph_node.
2994
2995 2019-07-28 Alan Modra <amodra@gmail.com>
2996
2997 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
2998 gen_sibcall.
2999
3000 2019-07-28 Alan Modra <amodra@gmail.com>
3001
3002 PR target/91135
3003 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
3004 define.
3005 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
3006 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
3007 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
3008
3009 2019-07-28 Alan Modra <amodra@gmail.com>
3010
3011 PR target/91050
3012 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
3013 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
3014 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
3015 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
3016 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
3017 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
3018 in asm_default spec.
3019 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
3020 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
3021
3022 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
3023
3024 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
3025
3026 2019-07-26 Tamar Christina <tamar.christina@arm.com>
3027
3028 PR target/89517
3029 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
3030 * config/aarch64/aarch64-option-extensions.def: Add new comments
3031 and restore easier to read options.
3032
3033 2019-07-26 Tamar Christina <tamar.christina@arm.com>
3034
3035 * convert.c (convert_to_real_1): Move part of conversion code...
3036 * match.pd: ...To here.
3037
3038 2019-07-26 Martin Jambor <mjambor@suse.cz>
3039
3040 PR ipa/89330
3041 * ipa-inline-transform.c (check_speculations_1): New function.
3042 (push_all_edges_in_set_to_vec): Likewise.
3043 (check_speculations): Use check_speculations_1, new parameter
3044 new_edges.
3045 (inline_call): Pass new_edges to check_speculations.
3046 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
3047 NULL.
3048 (speculation_useful_p): Early return true if edge is inlined, remove
3049 later checks for inline_failed.
3050
3051 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
3052
3053 PR rtl-optimization/91223
3054 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
3055 matching with INOUT operand.
3056
3057 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
3058
3059 * stmt.c (expand_case): Try to narrow the index type if it's larger
3060 than a word. Tidy up.
3061
3062 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
3063
3064 * cif-code.def (NEVER_CALL): New code.
3065 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
3066 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
3067
3068 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
3069
3070 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
3071 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
3072
3073 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3074
3075 * ipa-devirt.c (add_type_duplicate): Fix return value.
3076
3077 2019-07-25 Richard Biener <rguenther@suse.de>
3078
3079 * tree-vrp.c (extract_range_from_multiplicative_op): Add
3080 type parameter and use it instead of guessing expression
3081 type from the first operand.
3082 (extract_range_from_binary_expr): Pass expr_type down.
3083
3084 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3085
3086 * config/arm/arm.md (SATrev): Change to code attribute.
3087 (*satsi_<SAT:code>): Adjust for the above.
3088 (*satsi_<SAT:code>_shift): Likewise.
3089
3090 2019-07-25 Richard Biener <rguenther@suse.de>
3091
3092 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
3093 Make value_range * temporary const.
3094 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
3095 Likewise.
3096 (evrp_range_analyzer::record_ranges_from_): Likewise.
3097 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
3098 deal with having recorded a const one.
3099 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
3100 Return a const value_range *.
3101 (evrp_range_analyzer::pop_value_range): Likewise.
3102 (evrp_range_analyzer::stack): Record const value_range *s.
3103 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
3104 Adjust.
3105 * gimple-ssa-sprintf.c (get_int_range): Likewise.
3106 (format_integer): Likewise.
3107 (sprintf_dom_walker::handle_gimple_call): Likewise.
3108 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
3109 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
3110 (vrp_prop::get_value_range): Adjust.
3111 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
3112 modifying the lattice in-place.
3113 (vrp_prop::visit_stmt): Likewise.
3114 * vr-values.c (vr_values::get_lattice_entry): New private method.
3115 (vr_values::get_value_range): Wrap it and return a const
3116 value_range *.
3117 (vr_values::set_def_to_varying): New.
3118 (vr_values::set_defs_to_varying): Use it.
3119 (vr_values::update_value_range): Likewise.
3120 (vr_values::vrp_stmt_computes_nonzero): Adjust.
3121 (values::op_with_constant_singleton_va): Likewise.
3122 (vr_values::extract_range_for_var_from_co): Likewise.
3123 (vr_values::extract_range_from_ssa_name): Likewise.
3124 (vr_values::extract_range_from_cond_expr): Likewise.
3125 (vr_values::extract_range_basic): Likewise.
3126 (compare_ranges): Take const value_range *, adjust.
3127 (compare_range_with_value): Likewise.
3128 (vrp_valueize): Adjust.
3129 (vrp_valueize_1): Likewise.
3130 (vr_values::get_vr_for_comparison): Return a const value_range *.
3131 (vr_values::compare_name_with_value): Adjust.
3132 (vr_values::compare_names): Likewise.
3133 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
3134 Likewise.
3135 (vr_values::vrp_evaluate_conditional): Likewise.
3136 (find_case_label_ranges): Take a const value_range *.
3137 (vr_values::vrp_visit_switch_stmt): Adjust.
3138 (vr_values::extract_range_from_phi_node): Likewise.
3139 (vr_values::simplify_div_or_mod_using_ran): Likewise.
3140 (vr_values::simplify_abs_using_ranges): Likewise.
3141 (test_for_singularity): Take a const value_range *.
3142 (range_fits_type_p): Likewise.
3143 (vr_values::simplify_cond_using_ranges_1): Adjust.
3144 (vr_values::simplify_cond_using_ranges_2): Likewise.
3145 (vr_values::simplify_switch_using_ranges): Likewise.
3146 (vr_values::simplify_float_conversion_usi): Likewise.
3147 (vr_values::two_valued_val_range_p): Likewise.
3148 * vr-values.h (vr_values::get_value_range): Return a const
3149 value_range *.
3150 (vr_values::set_def_to_varying): New.
3151 (vr_values::get_lattice_entry): New private method.
3152 (vr_values::get_vr_for_comparison): Return a const value_range *.
3153
3154 2019-07-25 Martin Liska <mliska@suse.cz>
3155 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
3156
3157 PR c++/23383
3158 * common.opt: Add -fallocation-dce
3159 * gimple.c (gimple_call_operator_delete_p): New.
3160 * gimple.h (gimple_call_operator_delete_p): Likewise.
3161 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
3162 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
3163 DECL_IS_OPERATOR_DELETE_P.
3164 (mark_all_reaching_defs_necessary_1): Likewise.
3165 (propagate_necessity): Likewise.
3166 (eliminate_unnecessary_stmts): Handle
3167 gimple_call_operator_delete_p.
3168 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
3169 Add packing of OPERATOR_DELETE.
3170 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
3171 Similarly here.
3172 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
3173 (DECL_SET_IS_OPERATOR_DELETE): New.
3174 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
3175
3176 2019-07-25 Martin Liska <mliska@suse.cz>
3177
3178 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
3179 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
3180 * coverage.c (coverage_begin_function): Likewise.
3181 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
3182 * gimple.c (gimple_call_nonnull_result_p): Likewise.
3183 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
3184 (sem_item::hash_referenced_symbol_properties): Likewise.
3185 * lto-streamer-out.c (hash_tree): Likewise.
3186 * predict.c (expr_expected_value_1): Likewise.
3187 * tree-inline.c (expand_call_inline): Likewise.
3188 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
3189 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
3190 * tree-core.h (enum function_decl_type): New enum.
3191 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
3192 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
3193 (set_function_decl_type): Likewise.
3194 (DECL_IS_OPERATOR_NEW_P): New.
3195 (DECL_SET_IS_OPERATOR_NEW): Likewise.
3196 (DECL_LAMBDA_FUNCTION): Likewise.
3197 (DECL_LAMBDA_FUNCTION_P): Likewise.
3198 (DECL_IS_OPERATOR_NEW): Remove.
3199 (DECL_SET_LAMBDA_FUNCTION): Likewise.
3200
3201 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
3202
3203 * ipa-profile.c (get_most_common_single_value): Use
3204 get_nth_most_common_value.
3205 * profile.c (sort_hist_value): New function.
3206 (compute_value_histograms): Call sort_hist_value to sort the
3207 values after loading from disk.
3208 * value-prof.c (get_most_common_single_value): Rename to ...
3209 get_nth_most_common_value. Add input params n, return
3210 the n_th value and count.
3211 (gimple_divmod_fixed_value_transform): Use
3212 get_nth_most_common_value.
3213 (gimple_ic_transform): Likewise.
3214 (gimple_stringops_transform): Likewise.
3215 * value-prof.h (get_most_common_single_value): Add input params
3216 n, default to 0.
3217
3218 2019-07-25 Richard Biener <rguenther@suse.de>
3219
3220 PR tree-optimization/91236
3221 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
3222 size of CONSTRUCTOR write. Fix buffer size we pass to
3223 native_encode_expr.
3224
3225 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3226
3227 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
3228 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
3229 r273773.
3230
3231 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3232
3233 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
3234 explicitly disabled with --disable-initfini-array.
3235
3236 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3237
3238 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
3239 if-exists.
3240
3241 2019-07-24 Martin Sebor <msebor@redhat.com>
3242
3243 PR tree-optimization/91183
3244 PR tree-optimization/86688
3245 * builtins.c (compute_objsize): Handle MEM_REF.
3246 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
3247 (get_min_string_length): Remove.
3248 (count_nonzero_bytes): New function.
3249 (handle_char_store): Rename...
3250 (handle_store): to this. Handle multibyte stores via integer types.
3251 (strlen_check_and_optimize_stmt): Adjust conditional and the called
3252 function name.
3253
3254 2019-07-24 Martin Sebor <msebor@redhat.com>
3255
3256 PR driver/80545
3257 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
3258 (diagnostic_report_diagnostic): Same.
3259 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
3260 (diagnostic_context::lang_mask): New data member.
3261 * ipa-pure-const.c (suggest_attribute): Use
3262 lang_hooks.option_lang_mask ().
3263 * opts-common.c (option_enabled): Handle new argument.
3264 (get_option_state): Pass an additional argument.
3265 * opts.c (print_filtered_help): Print supported languages for
3266 unsupported options. Adjust printing of current state.
3267 * opts.h (option_enabled): Add argument.
3268 * toplev.c (print_switch_values): Use lang_mask.
3269 (general_init): Set global_dc->lang_mask.
3270
3271 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
3272
3273 PR bootstrap/87030
3274 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
3275
3276 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
3277
3278 * cgraphunit.c (symbol_table::compile): Start and stop
3279 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
3280 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
3281
3282 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
3283
3284 * gimplify.c (flag_instrument_functions_exclude_p): Include
3285 namespace/class information in the printable name.
3286 * opts.c (add_comma_separated_to_vector): Add NUL terminator
3287 to tokens entered into the vector.
3288
3289 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
3290
3291 * tree-nested.c (build_simple_mem_ref_notrap): New function.
3292 (get_static_chain): Call it instead of build_simple_mem_ref.
3293 (get_frame_field): Likewise.
3294 (get_nonlocal_debug_decl): Likewise.
3295 (convert_nonlocal_reference_op): Likewise.
3296
3297 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
3298
3299 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
3300 declaration.
3301 (arc_compute_frame_size): Millicode is disabled when compiling
3302 ISR.
3303 (arc_return_address_register): Likewise.
3304 (arc_compute_function_type): Likewise.
3305 (arc_compute_frame_size): Likewise.
3306 (secondary_reload_info): Likewise.
3307 (arc_get_unalign): Likewise.
3308 (arc_can_use_return_insn): Declare.
3309 * config/arc/arc.c (AUX_LP_START): Define
3310 (AUX_LP_END): Likewise.
3311 (arc_frame_info): Update gmask member to 64-bit datum.
3312 (GMASK_LEN): Update.
3313 (arc_compute_function_type): Make it static, move it forward.
3314 (arc_must_save_register): Update, consider the extra regs.
3315 (arc_compute_millicode_save_restore_regs): Update to use the 64
3316 bit gmask.
3317 (arc_compute_frame_size): Likewise.
3318 (arc_enter_leave_p): Likewise.
3319 (arc_save_callee_saves): Likewise.
3320 (arc_restore_callee_saves): Likewise.
3321 (arc_save_callee_enter): Likewise.
3322 (arc_restore_callee_leave): Likewise.
3323 (arc_save_callee_milli): Likewise.
3324 (arc_restore_callee_milli): Likewise.
3325 (arc_expand_prologue): Add new interrupt handling.
3326 (arc_return_address_register): Make it static, move it forward.
3327 (arc_expand_epilogue): Add new interrupt handling.
3328 (arc_get_unalign): Delete.
3329 (arc_epilogue_uses): Make sure we do not remove the extra
3330 saved/restored registers when interrupt.
3331 (arc_can_use_return_insn): New function.
3332 (push_reg): Likewise.
3333 (pop_reg): Likewise.
3334 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
3335 procedures.
3336 (arc_restore_callee_saves): Likewise, but restoring.
3337 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
3338 (R33_REG): Likewise.
3339 (R34_REG): Likewise.
3340 (R35_REG): Likewise.
3341 (R36_REG): Likewise.
3342 (R37_REG): Likewise.
3343 (R38_REG): Likewise.
3344 (R39_REG): Likewise.
3345 (R45_REG): Likewise.
3346 (R46_REG): Likewise.
3347 (R47_REG): Likewise.
3348 (R48_REG): Likewise.
3349 (R49_REG): Likewise.
3350 (R50_REG): Likewise.
3351 (R51_REG): Likewise.
3352 (R52_REG): Likewise.
3353 (R53_REG): Likewise.
3354 (R54_REG): Likewise.
3355 (R55_REG): Likewise.
3356 (R56_REG): Likewise.
3357 (R58_REG): Likewise.
3358 (type): Add rtie attribute.
3359 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
3360 (movsi_insn): Accept moves to lp_count.
3361 (rtie): Update pattern.
3362 (simple_return): Simplify it, don't use this pattern as a return
3363 from an interrupt.
3364 (arc600_rtie): New pattern.
3365 (p_return_i): Clean up.
3366 (return): Likewise.
3367 * config/arc/builtins.def (rtie): Only available for non ARC6xx
3368 family CPUs.
3369 * config/arc/predicates.md (move_src_operand): Consider lp_count
3370 as a register.
3371
3372 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
3373
3374 * config/s390/predicates.md (addv_const_operand): New predicate.
3375 * config/s390/s390-modes.def (CCO): New condition code mode.
3376 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
3377 (s390_branch_condition_mask): Likewise.
3378 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
3379 ("mulv<mode>4"): New expanders.
3380 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
3381 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
3382 pattern definitions.
3383
3384 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3385
3386 PR middle-end/91166
3387 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
3388 (define_predicates): Add entry for uniform_vector_p.
3389 (vec_same_elem_p): New match pattern.
3390
3391 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
3392
3393 PR bootstrap/87030
3394 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
3395 * config/i386/darwin32-biarch.h .. to here.
3396 * config/i386/darwin64-biarch.h: Adjust comments.
3397 * config/rs6000/darwin32-biarch.h: Likewise.
3398 * config/rs6000/darwin64-biarch.h: Likewise.
3399 * config.gcc: Missed commit from r273746
3400 (*-*-darwin*): Don't include CPU t-darwin here.
3401 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
3402 an error message if i686-darwin configuration is attempted for
3403 Darwin >= 18.
3404
3405 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
3406
3407 PR bootstrap/87030
3408 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
3409 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
3410 an error message if i686-darwin configuration is attempted for
3411 Darwin >= 18.
3412 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
3413 (powerpc-*-darwin*): Use biarch files where needed.
3414 (powerpc64-*-darwin*): Likewise.
3415 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
3416 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
3417 arch case.
3418 * config/i386/darwin32-biarch.h: New.
3419 * config/i386/darwin64.h: Rename.
3420 * config/i386/darwin64-biarch.h: To this.
3421 * config/i386/t-darwin: Rename.
3422 * config/i386/t-darwin32-biarch: To this.
3423 * config/i386/t-darwin64: Rename.
3424 * config/i386/t-darwin64-biarch: To this.
3425 * config/rs6000/darwin32-biarch.h: New.
3426 * config/rs6000/darwin64.h: Rename.
3427 * config/rs6000/darwin64-biarch.h: To this.
3428 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
3429 arch case.
3430 * config/rs6000/t-darwin8: Rename.
3431 * config/rs6000/t-darwin32-biarch: To this.
3432 * config/rs6000/t-darwin64 Rename.
3433 * config/rs6000/t-darwin64-biarch: To this.
3434
3435 2019-07-23 Martin Sebor <msebor@redhat.com>
3436
3437 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
3438
3439 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
3440
3441 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
3442 (rh): New alias for it.
3443
3444 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
3445
3446 * gdbhooks.py: Pass replace=True to
3447 gdb.printing.register_pretty_printer.
3448
3449 2019-07-23 Richard Biener <rguenther@suse.de>
3450
3451 PR debug/91231
3452 * lto-streamer-in.c (input_function): Drop inline-entry markers
3453 that ended up with an unknown location block.
3454
3455 2019-07-23 Richard Biener <rguenther@suse.de>
3456
3457 PR tree-optimization/83518
3458 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
3459 init from a constant even when partial defs are already recorded.
3460
3461 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3462
3463 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
3464 * config/i386/znver1.md: Enable patterns for znver2 and add store
3465 variants which use extra AGU unit.
3466
3467 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3468
3469 * config/i386/i386-options.c (ix86_option_override_internal): Default
3470 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
3471 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
3472 for ZNVER2.
3473
3474 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3475
3476 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
3477 (znver2_costs): Update 256 bit SSE costs and multiplication.
3478
3479 2019-07-23 Jan Beulich <jbeulich@suse.com>
3480
3481 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
3482 Require only AVX512F.
3483 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
3484 alternative expanding to vpternlog.
3485
3486 2019-07-23 Martin Liska <mliska@suse.cz>
3487
3488 * dwarf2out.c (gen_producer_string): Canonize -flto=N
3489 to -flto in dwarf producer string.
3490
3491 2019-07-23 Richard Biener <rguenther@suse.de>
3492
3493 * tree-cfg.c (label_for_bb): Remove global var.
3494 (main_block_label): Take label_for_bb as argument.
3495 (cleanup_dead_labels_eh): Likewise, adjust.
3496 (cleanup_dead_labels): Adjust.
3497
3498 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
3499
3500 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
3501 Configurations): Add documentation for __builtin_mtfsf.
3502
3503 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
3504
3505 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
3506 * config/riscv/riscv.c (riscv_constant_alignment): Use
3507 riscv_align_data_type.
3508 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
3509 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
3510 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
3511 * config/riscv/riscv.opt (malign-data): New.
3512 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
3513
3514 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
3515
3516 * cgraph.c (dump_graphviz): New function.
3517 * cgraph.h (dump_graphviz): New function.
3518 * symtab.c (dump_graphviz): New function.
3519
3520 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
3521
3522 * config/aarch64/aarch64-simd.md
3523 (*aarch64_simd_sra<mode>): New.
3524 * config/aarch64/iterators.md
3525 (SHIFTRT): New iterator.
3526 (sra_op): New attribute.
3527
3528 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3529
3530 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
3531 callee-saved regs R4->R10 in an interrupt function that calls another
3532 function.
3533
3534 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
3535
3536 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
3537 (_mm_blendv_epi8): New.
3538
3539 2019-07-22 Richard Biener <rguenther@suse.de>
3540
3541 PR tree-optimization/91221
3542 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
3543 restrict partial-def handling of empty constructors and
3544 memset to refs with known offset.
3545
3546 2019-07-22 Jan Beulich <jbeulich@suse.com>
3547
3548 * config/i386/sse.md (ternlogsuffix): New.
3549 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
3550 AVX512F is in use.
3551 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
3552
3553 2019-07-22 Martin Liska <mliska@suse.cz>
3554
3555 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
3556 comment.
3557 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
3558
3559 2019-07-22 Martin Liska <mliska@suse.cz>
3560
3561 * lto-section-in.c (lto_get_section_data):
3562 Use new function get_compression.
3563 * lto-streamer-out.c (produce_lto_section): Use
3564 set_compression to encode compression algorithm.
3565 * lto-streamer.h (struct lto_section): Do not
3566 use bitfields in the format.
3567
3568 2019-07-22 Martin Liska <mliska@suse.cz>
3569
3570 PR driver/91172
3571 * opts-common.c (decode_cmdline_option): Decode
3572 argument of -Werror and check it for a wrong language.
3573 * opts-global.c (complain_wrong_lang): Remove such case.
3574
3575 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
3576
3577 * config/arc/arc.c (prepare_move_operands): Always use an
3578 intermediate register when storing a TLS symbols.
3579
3580 2019-07-22 Stafford Horne <shorne@gmail.com>
3581
3582 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
3583 force_reg.
3584
3585 2019-07-22 Stafford Horne <shorne@gmail.com>
3586
3587 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
3588 and munordered-float validations.
3589 * config/or1k/constraints.md (d): New register constraint.
3590 * config/or1k/predicates.md (fp_comparison_operator): New.
3591 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
3592 operands.
3593 (or1k_expand_compare): Normalize unordered comparisons.
3594 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
3595 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
3596 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
3597 * config/or1k/or1k.md (type): Add fpu.
3598 (fpu): New instruction reservation.
3599 (F, f, fr, fi, FI, FOP, fop): New.
3600 (<fop><F:mode>3): New ALU instruction definition.
3601 (float<fi><F:mode>2): New conversion instruction definition.
3602 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
3603 (fpcmpcc): New code iterator.
3604 (*sf_fp_insn): New instruction definition.
3605 (cstore<F:mode>4): New expand definition.
3606 (cbranch<F:mode>4): New expand definition.
3607 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
3608 munordered-float): New options.
3609 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
3610 munordered-float.
3611
3612 2019-07-22 Stafford Horne <shorne@gmail.com>
3613
3614 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
3615 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
3616 documenation to be more clear.
3617 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
3618 more clear.
3619 * config/or1k/or1k.opt (mrori): New option.
3620 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
3621 msfimm, mshftimm): Rewrite documentation to be more clear.
3622 * config/or1k/or1k.md (insn_support): Add ror and rori.
3623 (enabled): Add conditions for ror and rori.
3624 (rotrsi3): Replace condition for shftimm with ror and rori.
3625
3626 2019-07-22 Stafford Horne <shorne@gmail.com>
3627
3628 PR target/90363
3629 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
3630 (extend<mode>si2): Update predicate.
3631 * config/or1k/predicates.md (volatile_mem_operand): New.
3632 (reg_or_mem_operand): New.
3633
3634 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
3635
3636 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
3637 * config/rs6000/rs6000-call.c: ... to here.
3638
3639 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3640
3641 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
3642 memory.
3643
3644 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3645
3646 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
3647
3648 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3649
3650 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
3651
3652 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3653
3654 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
3655 (any_memory_operand): New predicate.
3656 (reg_or_mem_operand): Use it.
3657
3658 2019-07-20 Jakub Jelinek <jakub@redhat.com>
3659
3660 PR target/91204
3661 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
3662
3663 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
3664
3665 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
3666 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
3667
3668 2019-07-20 Jakub Jelinek <jakub@redhat.com>
3669
3670 * tree.def (OMP_LOOP): New tree code.
3671 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
3672 (enum omp_clause_bind_kind): New enum.
3673 (struct tree_omp_clause): Add subcode.bind_kind.
3674 * tree.h (OMP_LOOP_CHECK): Rename to ...
3675 (OMP_LOOPING_CHECK): ... this.
3676 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
3677 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
3678 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
3679 (OMP_CLAUSE_BIND_KIND): Define.
3680 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
3681 bind clause entries.
3682 (walk_tree_1): Handle OMP_CLAUSE_BIND.
3683 * tree-pretty-print.c (dump_omp_clause): Likewise.
3684 (dump_generic_node): Handle OMP_LOOP.
3685 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
3686 (in_omp_construct): New variable.
3687 (is_gimple_stmt): Handle OMP_LOOP.
3688 (gimplify_scan_omp_clauses): For lastprivate don't set
3689 check_non_private if code == OMP_LOOP. For reduction clause
3690 on OMP_LOOP combined with parallel or teams propagate as shared
3691 on the combined construct. Handle OMP_CLAUSE_BIND.
3692 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
3693 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
3694 for constructs from a loop construct to gimplify_scan_omp_clauses.
3695 Don't predetermine iterator linear on OMP_SIMD from loop construct.
3696 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
3697 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
3698 to match the implicit ORT_TARGET construct around whole body.
3699 Temporarily clear in_omp_construct when processing body.
3700 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
3701 etc. temporarily set in_omp_construct when processing body.
3702 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
3703 * omp-low.c (struct omp_context): Add loop_p.
3704 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
3705 in that the original var might be private.
3706 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
3707 (check_omp_nesting_restrictions): Adjust nesting restrictions for
3708 addition of loop construct.
3709 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
3710
3711 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
3712 lastprivate non-addressable iterator of a collapse(1) simd.
3713
3714 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
3715
3716 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
3717 as in rs6000.c.
3718
3719 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
3720
3721 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
3722 refer to default conditions. Warn for the 'y' spec which is ignored
3723 by current linkers.
3724
3725 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
3726
3727 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
3728 cpu_supports_info, builtin_hash_struct, builtin_hasher,
3729 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
3730 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
3731 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
3732 init_cumulative_args, rs6000_promote_function_mode,
3733 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
3734 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
3735 rs6000_function_arg_boundary, rs6000_parm_offset,
3736 rs6000_parm_start, rs6000_arg_size,
3737 rs6000_darwin64_record_arg_advance_flush,
3738 rs6000_darwin64_record_arg_advance_recurse,
3739 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
3740 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
3741 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
3742 rs6000_mixed_function_arg, rs6000_psave_function_arg,
3743 rs6000_finish_function_arg, rs6000_function_arg,
3744 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
3745 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
3746 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
3747 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
3748 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
3749 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
3750 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
3751 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
3752 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
3753 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
3754 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
3755 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
3756 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
3757 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
3758 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
3759 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
3760 get_element_number, altivec_expand_vec_set_builtin,
3761 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
3762 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
3763 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
3764 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
3765 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
3766 rs6000_expand_builtin, rs6000_vector_type,
3767 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
3768 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
3769 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
3770 to rs6000-call.c.
3771 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
3772 cpu_supports_info, builtin_hash_struct, builtin_hasher,
3773 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
3774 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
3775 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
3776 init_cumulative_args, rs6000_promote_function_mode,
3777 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
3778 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
3779 rs6000_function_arg_boundary, rs6000_parm_offset,
3780 rs6000_parm_start, rs6000_arg_size,
3781 rs6000_darwin64_record_arg_advance_flush,
3782 rs6000_darwin64_record_arg_advance_recurse,
3783 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
3784 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
3785 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
3786 rs6000_mixed_function_arg, rs6000_psave_function_arg,
3787 rs6000_finish_function_arg, rs6000_function_arg,
3788 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
3789 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
3790 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
3791 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
3792 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
3793 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
3794 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
3795 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
3796 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
3797 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
3798 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
3799 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
3800 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
3801 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
3802 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
3803 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
3804 get_element_number, altivec_expand_vec_set_builtin,
3805 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
3806 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
3807 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
3808 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
3809 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
3810 rs6000_expand_builtin, rs6000_vector_type,
3811 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
3812 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
3813 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
3814 to here from rs6000.c.
3815 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
3816 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
3817 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
3818 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
3819 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
3820 rs6000_return_in_memory, rs6000_return_in_msb,
3821 rs6000_pass_by_reference, setup_incoming_varargs,
3822 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
3823 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
3824 rs6000_function_arg_padding, rs6000_function_arg,
3825 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
3826 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
3827 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
3828 rs6000_passes_long_double, rs6000_passes_vector,
3829 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
3830 altivec_builtin_mask_for_load) Add declarations.
3831 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
3832 * config/config.gcc: Add new source file rs6000-call.c to garbage
3833 collector and extra_objs.
3834
3835 2019-07-19 Jeff Law <law@redhat.com>
3836
3837 PR tree-optimization/86061
3838 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
3839 strncpy. Drop some trivial dead code.
3840 (maybe_trim_memstar_call): Handle strncpy.
3841
3842 2019-07-19 Richard Biener <rguenther@suse.de>
3843
3844 PR tree-optimization/91211
3845 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
3846 memset encoding size.
3847
3848 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
3849
3850 PR target/91204
3851 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
3852
3853 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
3854
3855 PR ipa/91194
3856 * ipa-inline.c (recursive_inlining): Fix limits check.
3857
3858 2019-07-19 Richard Biener <rguenther@suse.de>
3859
3860 PR tree-optimization/91200
3861 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
3862 no PHI nodes in middle-bb.
3863
3864 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
3865
3866 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
3867 to +sve-bitperm.
3868 * config/aarch64/aarch64-option-extensions.def: Likewise.
3869
3870 2019-07-19 Jakub Jelinek <jakub@redhat.com>
3871
3872 PR middle-end/91190
3873 * function.c (insert_temp_slot_address): Store into the hash table
3874 a copy of address to avoid RTL sharing issues.
3875
3876 2019-07-19 Richard Biener <rguenther@suse.de>
3877
3878 PR tree-optimization/91207
3879 Revert
3880 2019-07-17 Richard Biener <rguenther@suse.de>
3881
3882 PR tree-optimization/91178
3883 * tree-vect-stmts.c (get_group_load_store_type): For SLP
3884 loads with a gap larger than the vector size always use
3885 VMAT_STRIDED_SLP.
3886 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
3887 avoid loading vectors that are only contained in the gap
3888 and thus are not needed.
3889
3890 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
3891
3892 * config/i386/i386.md (*addqi_2_slp): Remove.
3893 (*<code>qi_2_slp): Ditto.
3894
3895 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
3896
3897 * config/rs6000/predicates.md (prefixed_mem_operand): Call
3898 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
3899 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
3900 Rename function from rs6000_prefixed_address.
3901 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
3902 TARGET_HAS_TOC.
3903 (TARGET_TOC): Likewise.
3904 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
3905 rs6000.h.
3906 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
3907 TARGET_HAS_TOC.
3908 (TARGET_TOC): Likewise.
3909 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
3910 rs6000.h.
3911 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
3912 TARGET_HAS_TOC.
3913 (TARGET_TOC): Likewise.
3914 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
3915 check to require -mcmodel=medium for pc-relative addressing.
3916 (create_TOC_reference): Add assertion for TARGET_TOC.
3917 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
3918 TARGET_NO_TOC.
3919 (rs6000_emit_move): Likewise.
3920 (TOC_alias_set): Rename TOC alias set static variable from 'set'
3921 to 'TOC_alias_set'.
3922 (get_TOC_alias_set): Likewise.
3923 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
3924 TARGET_NO_TOC.
3925 (rs6000_can_eliminate): Likewise.
3926 (rs6000_prefixed_address_mode_p): Rename function from
3927 rs6000_prefixed_address.
3928 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
3929 TARGET_HAS_TOC and not pc-relative.
3930 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
3931 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
3932 TARGET_HAS_TOC.
3933 (TARGET_TOC): Likewise.
3934 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
3935 rs6000.h.
3936
3937 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
3938
3939 PR target/91188
3940 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
3941 for operand 0. Do not use (match_dup) to match operand 1 with
3942 operand 0. Add check in insn constraint that either input operand
3943 matches operand 0. Use SWI12 mode iterator to also handle
3944 HImode operands.
3945 (*and<mode>_1_slp): Ditto.
3946 (*<code>qi_1_slp): Ditto.
3947 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
3948 Do not use (match_dup) to match operand 1 with operand 0. Add
3949 check in insn constraint that operand 1 matches operand 0.
3950 Use SWI12 mode iterator to also handle HImode operands.
3951 (*ashl<mode>3_1_slp): Ditto.
3952 (*<shift_insn><mode>3_1_slp): Ditto.
3953 (*<rotate_insn><mode>3_1_slp): Ditto.
3954
3955 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
3956
3957 * config/arm/arm-builtins.c
3958 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
3959 (arm_expand_unop_builtin): Likewise.
3960 * config/arm/crypto.md
3961 (crypto_sha1h): Convert from define_insn to define_expand.
3962 (crypto_<crypto_pattern>): Likewise.
3963 (crypto_sha1h_lb): New define_insn.
3964 (crypto_<crypto_pattern>_lb): Likewise.
3965
3966 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
3967
3968 PR target/90317
3969 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
3970 (vsha1cq_u32): Likewise.
3971 (vsha1pq_u32): Likewise.
3972 (vsha1mq_u32): Likewise.
3973 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
3974 vec select.
3975 (crypto_sha1c): Correct vec select.
3976 (crypto_sha1m): Likewise.
3977 (crypto_sha1p): Likewise.
3978
3979 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
3980
3981 * config/arm/predicates.md (arm_borrow_operation): New predicate.
3982 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
3983 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
3984 (subdi_zesidi_zesidi): Likewise.
3985 (negdi2_compare, negdi2_insn): Likewise.
3986 (negdi_extensidi): Likewise.
3987 (negdi_zero_extendsidi): Likewise.
3988 (arm_cmpdi_insn): Likewise.
3989 (subsi3_carryin): Use arm_borrow_operation.
3990 (subsi3_carryin_const): Likewise.
3991 (subsi3_carryin_const0): Likewise.
3992 (subsi3_carryin_compare): Likewise.
3993 (subsi3_carryin_compare_const): Likewise.
3994 (subsi3_carryin_compare_const0): Likewise.
3995 (subsi3_carryin_shift): Likewise.
3996 (rsbsi3_carryin_shift): Likewise.
3997 (negsi2_carryin_compare): Likewise.
3998
3999 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
4000
4001 PR tree-optimization/91137
4002 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
4003 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
4004 Init, use and fini the above new field.
4005 (determine_base_object_1): New function.
4006 (determine_base_object): Reimplement using walk_tree.
4007
4008 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
4009
4010 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
4011 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
4012 CLEANUP_FORCE_FAST_DCE is set.
4013 * ifcvt.c (rest_of_handle_if_conversion): Pass
4014 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
4015 if-conversion succeeded.
4016
4017 2019-07-18 Richard Biener <rguenther@suse.de>
4018
4019 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
4020 branches to make code less indented.
4021
4022 2019-07-17 Alexandre Oliva <oliva@adacore.com>
4023
4024 PR middle-end/81824
4025 * attribs.c (decls_mismatched_attributes): Simplify the logic
4026 that avoids duplicates and false positives.
4027
4028 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
4029
4030 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
4031 data into data section when generating PIC code.
4032 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
4033 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
4034 generating code for SOM targets earlier than HP-UX 11. Otherwise,
4035 return 2 for SOM and 0 for other targets.
4036
4037 2019-07-17 Jeff Law <law@redhat.com>
4038
4039 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
4040 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
4041 avoid unexpected switch statement fallthru.
4042
4043 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
4044
4045 * config/i386/i386.md (*add<dwi>3_doubleword):
4046 Remove redundant constraints.
4047 (*add<mode>_1): Ditto.
4048 (*addhi_1): Ditto.
4049 (*addqi_1): Ditto.
4050 (*addqi_1_slp): Ditto.
4051 (*add<mode>_2): Ditto.
4052 (*addv<mode>4): Ditto.
4053 (*sub<dwi>3_doubleword): Ditto.
4054 (*sub<mode>_1): Ditto.
4055 (*subqi_1_slp): Ditto.
4056 (*sub<mode>_2): Ditto.
4057 (*subv<mode>4): Ditto.
4058 (*sub<mode>_3): Ditto.
4059 (@add<mode>3_carry): Ditto.
4060 (@sub<mode>3_carry): Ditto.
4061 (*add<mode>3_cc_overflow_1): Ditto.
4062 (*add<mode>3_zext_cc_overflow_2): Ditto.
4063 (*anddi_1): Ditto.
4064 (*and<mode>_1): Ditto.
4065 (*andqi_1): Ditto.
4066 (*andqi_1_slp): Ditto.
4067 (*anddi_2): Ditto.
4068 (*andqi_2_maybe_si): Ditto.
4069 (*and<mode>_2): Ditto.
4070 (*andqi_2_slp): Ditto.
4071 (*<code><mode>_1): Ditto.
4072 (*<code>qi_1): Ditto.
4073 (*<code>qi_1_slp): Ditto.
4074 (*<code><mode>_2): Ditto.
4075 (*<code>qi_2_slp): Ditto.
4076
4077 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
4078
4079 * alias.c (record_component_aliases): Do not simplify pointed-to
4080 types of ODR types.
4081
4082 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
4083
4084 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
4085 partial reg stall on alternative 2.
4086
4087 2019-07-17 Richard Biener <rguenther@suse.de>
4088
4089 PR tree-optimization/91178
4090 * tree-ssa.c (release_defs_bitset): Iterate from higher to
4091 lower SSA names to avoid quadratic behavior in the common case.
4092 * tree-data-ref.c (split_constant_offset): Add limit argument
4093 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
4094 (split_constant_offset_1): Add limit argument and use it to
4095 limit SSA def walking. Optimize the common plus/minus case.
4096
4097 2019-07-17 Richard Biener <rguenther@suse.de>
4098
4099 PR tree-optimization/91178
4100 * tree-vect-stmts.c (get_group_load_store_type): For SLP
4101 loads with a gap larger than the vector size always use
4102 VMAT_STRIDED_SLP.
4103 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
4104 avoid loading vectors that are only contained in the gap
4105 and thus are not needed.
4106
4107 2019-07-17 Richard Biener <rguenther@suse.de>
4108
4109 PR tree-optimization/91180
4110 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
4111 computation for memset partial defs.
4112
4113 2019-07-17 Jakub Jelinek <jakub@redhat.com>
4114
4115 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
4116 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
4117 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
4118 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
4119 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
4120 * omp-grid.c (grid_process_grid_body,
4121 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
4122 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
4123 == GF_OMP_FOR_KIND_SIMD.
4124 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
4125 check_omp_nesting_restrictions, scan_omp_1_stmt,
4126 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
4127 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
4128 omp_find_scan): Likewise.
4129 * omp-expand.c (expand_omp_for): Likewise.
4130 * omp-general.c (omp_extract_for_data): Likewise.
4131
4132 PR tree-optimization/91157
4133 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
4134 a vector boolean with scalar mode.
4135 (expand_vector_condition): Handle first operand being a vector boolean
4136 with scalar mode.
4137 (expand_vector_operations_1): For comparisons, don't bail out early
4138 if the return type is vector boolean with scalar mode, but comparison
4139 operand type is not.
4140
4141 2019-07-17 Richard Biener <rguenther@suse.de>
4142
4143 PR tree-optimization/91181
4144 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
4145 IFN_LOADs as calls.
4146
4147 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
4148
4149 * config/i386/i386.md (*testdi_1): Match CCZmode for
4150 constants that might have the SImode sign bit set.
4151 (*testqi_1_maybe_si): Remove "!" constraint modifier.
4152 Use correct constraints for pentium pairing.
4153 (*test<mode>_1): Ditto.
4154
4155 2019-07-16 Jeff Law <law@redhat.com>
4156
4157 PR rtl-optimization/91173
4158 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
4159 SSA_NAME with a constant value, fold its value into the offset
4160 and clear the base before calling gen_addr_rtx.
4161
4162 2019-07-16 Jakub Jelinek <jakub@redhat.com>
4163
4164 PR rtl-optimization/91164
4165 * dse.c (rest_of_handle_dse): If dead edges have been purged,
4166 invalidate dominance info.
4167
4168 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4169
4170 * read-md.h (md_reader::record_potential_iterator_use): Add a
4171 file_location parameter.
4172 * read-rtl.c (attribute_use::loc): New field.
4173 (map_attr_string): Take a file_location parameter. Report cases
4174 in which attributes map to multiple distinct values.
4175 (apply_attribute_uses): Update call accordingly.
4176 (md_reader::handle_overloaded_name): Likewise.
4177 (md_reader::apply_iterator_to_string): Likewise. Skip empty
4178 nonnull strings.
4179 (record_attribute_use): Take a file_location parameter.
4180 Initialize attribute_use::loc.
4181 (md_reader::record_potential_iterator_use): Take a file_location
4182 parameter. Update call to record_attribute_use.
4183 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
4184 (rtx_reader::read_rtx_code): Likewise.
4185 (rtx_reader::read_rtx_operand): Likewise. Record a location
4186 for implicitly-expanded empty strings.
4187
4188 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4189
4190 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
4191 Use file_location instead of separate fields.
4192 (md_reader::set_md_ptr_loc): Take a file_location instead of a
4193 separate filename and line number.
4194 * read-md.c (ptr_loc): As above.
4195 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
4196 (md_reader::fprint_md_ptr_loc): Likewise.
4197 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
4198 instead of a separate filename and line number.
4199 (md_reader::read_string): Update call accordingly.
4200
4201 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4202
4203 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
4204 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
4205 leaving the choice between SFDF and P implicit.
4206 (*mov<mode>_update2): Likewise.
4207 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
4208 rather than leaving the choice betweem IBM128 and GPR implicit.
4209 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
4210 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
4211 QHSI implicit.
4212 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
4213 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
4214 * config/rs6000/vsx.md
4215 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
4216 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
4217 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
4218 and VSX_EXTRACT_I implicit.
4219
4220 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4221
4222 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
4223 Explicitly use <MOVEP1:MODE> for the mode attribute.
4224
4225 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
4226
4227 PR bootstrap/91176
4228 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
4229
4230 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
4231
4232 PR target/91050
4233 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
4234 .machine directive.
4235
4236 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
4237
4238 * config/i386/i386.md (@test<mode>_ccno_1):
4239 Rename from test<mode>_ccno_1.
4240 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
4241 (*testqi_1_maybe_si): Remove modrm attribute.
4242 (*test<mode>_1): Ditto.
4243 * config/i386/i386-expand.c (ix86_split_idivmod): Use
4244 gen_test_ccno_1 and gen_extend_insn.
4245
4246 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
4247
4248 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
4249 to 0.
4250
4251 2019-07-15 Richard Biener <rguenther@suse.de>
4252
4253 PR middle-end/91162
4254 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
4255 node make sure to replace all uses with something valid.
4256
4257 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
4258
4259 PR tree-optimization/88497
4260 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
4261 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
4262 function undistribute_bitref_for_vector.
4263 (undistribute_bitref_for_vector): New function.
4264 (cleanup_vinfo_map): Likewise.
4265 (sort_by_mach_mode): Likewise.
4266
4267 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
4268
4269 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
4270 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
4271 and testdi_ccno_1 using SWI48 mode attribute.
4272 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
4273 x86_64_szext_general_operand.
4274 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
4275 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
4276 instead of genera_operand mode attribute.
4277
4278 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
4279
4280 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
4281 fopen and fclose to their respective types.
4282 (DotFn.invoke): Ditto.
4283
4284 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
4285
4286 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
4287 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
4288 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
4289 (array_index_predicate): Remove.
4290 (analyze_function_body): Account cost for variable ofsetted array
4291 indexing.
4292 (estimate_node_size_and_time): Do not compute array index hint.
4293 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
4294 (inline_read_section): Do not read array index hint.
4295 (ipa_fn_summary_write): Do not write array index hint.
4296 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
4297 * ipa-cp.c (hint_time_bonus): Remove.
4298 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
4299 (ipa_fnsummary): Remove array_index.
4300 * ipa-inline.c (want_inline_small_function_p): Do not use
4301 array_index.
4302 (edge_badness): Likewise.
4303 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
4304
4305 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
4306
4307 PR target/91148
4308 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
4309 superfluous "builtin function" phrasing.
4310
4311 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
4312
4313 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
4314 Break out from ...
4315 (aliasing_component_refs_walk): Break out from ...
4316 (aliasing_component_refs_p): ... here.
4317
4318 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
4319
4320 PR target/91148
4321 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
4322 "builtin function" phrasing.
4323
4324 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4325
4326 PR target/90723
4327 * recog.h (temporary_volatile_ok): New class.
4328 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
4329 volatile_ok temporarily to true using temporary_volatile_ok.
4330 * expr.c (emit_block_move_via_cpymem): Likewise.
4331 * optabs.c (maybe_legitimize_operand): Likewise.
4332
4333 2019-07-13 Jakub Jelinek <jakub@redhat.com>
4334
4335 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
4336 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
4337 uses inside of order(concurrent) constructs.
4338 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
4339 OMP_CLAUSE_ORDER is seen.
4340 * omp-low.c (struct omp_context): Add order_concurrent member.
4341 (scan_sharing_clauses): Set ctx->order_concurrent if
4342 OMP_CLAUSE_ORDER is seen.
4343 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
4344 of simd order(concurrent). Diagnose constructs not allowed inside of
4345 for order(concurrent).
4346 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
4347 complaining about static double setjmp (double); or class static
4348 methods or non-global namespace setjmps.
4349 (omp_runtime_api_call): New function.
4350 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
4351 order(concurrent) loops.
4352
4353 2019-07-12 Martin Sebor <msebor@redhat.com>
4354
4355 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
4356 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
4357 * tree-vrp.c (vrp_prop::check_mem_ref): Use
4358 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
4359
4360 2019-07-12 Jan Hubicka <jh@suse.cz>
4361
4362 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
4363 (indirect_refs_may_alias_p): ... here.
4364 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
4365 mem refs in the access paths.
4366
4367 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
4368
4369 PR tree-optimization/89430
4370 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
4371 store elimination for local variable without address escape.
4372
4373 2019-07-12 Jeff Law <law@redhat.com>
4374
4375 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
4376 for the ".far" section.
4377
4378 2019-07-12 Richard Biener <rguenther@suse.de>
4379
4380 PR tree-optimization/91145
4381 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
4382 chain check.
4383
4384 2019-07-12 Alexandre Oliva <oliva@adacore.com>
4385
4386 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
4387 rather than this_state as the lowering context for the ELSE
4388 seq in a GIMPLE_EH_ELSE.
4389
4390 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
4391
4392 * vector-builder.h (vector_builder::elt): Allow already-supplied
4393 elements to be read back before building is complete.
4394
4395 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
4396
4397 PR rtl-optimization/91136
4398 * df-core.c (ACCESSING REFS): Fix typos in comment.
4399 * resource.c (mark_target_live_reg): Add artificial defs that occur at
4400 the beginning of the block to the initial set of live registers.
4401
4402 2019-07-12 Richard Biener <rguenther@suse.de>
4403
4404 * fold-const.h (get_array_ctor_element_at_index): Adjust.
4405 * fold-const.c (get_array_ctor_element_at_index): Add
4406 ctor_idx output parameter informing the caller where in
4407 the constructor the element was (not) found. Add early exit
4408 for when the ctor is sorted.
4409 * gimple-fold.c (fold_array_ctor_reference): Support constant
4410 folding across multiple array elements.
4411
4412 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
4413
4414 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
4415 doesn't have location, set the current location to the function's end.
4416
4417 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
4418
4419 * config/aarch64/aarch64.md (*compare_condjump<mode>)
4420 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
4421 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
4422 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
4423 * config/aarch64/aarch64-simd.md
4424 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
4425 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
4426 * config/aarch64/aarch64-sve.md
4427 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
4428 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
4429
4430 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
4431
4432 * doc/md.texi: Document that @ patterns can have different
4433 numbers of operands.
4434 * genemit.c (handle_overloaded_gen): Handle this case.
4435 * genopinit.c (handle_overloaded_gen): Likewise.
4436 * gensupport.c (replace_operands_with_dups): Iterate over
4437 the new rtx's format rather than the old one's.
4438
4439 2019-07-12 Jakub Jelinek <jakub@redhat.com>
4440
4441 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
4442 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
4443 order clause entries.
4444 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
4445 * tree-pretty-print.c (dump_omp_clause): Likewise.
4446 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
4447 Likewise.
4448 * omp-low.c (scan_sharing_clauses): Likewise.
4449 * tree-nested.c (convert_nonlocal_omp_clauses,
4450 convert_local_omp_clauses): Likewise.
4451
4452 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
4453
4454 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
4455 fallthrough target of current basic block isn't the placed
4456 right next.
4457
4458 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
4459
4460 PR target/90980
4461 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
4462 (_mm512_storeu_epi64): Likewise.
4463 (_mm512_loadu_epi32): Likewise.
4464 (_mm512_storeu_epi32): Likewise.
4465 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
4466 (_mm_storeu_epi64): Likewise.
4467 (_mm256_storeu_epi32): Likewise.
4468 (_mm_storeu_epi32): Likewise.
4469
4470 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
4471
4472 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
4473
4474 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
4475
4476 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
4477 Handle Modula-2.
4478
4479 2019-07-11 Jakub Jelinek <jakub@redhat.com>
4480
4481 PR target/91124
4482 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
4483 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
4484 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
4485 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
4486 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
4487 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
4488 define_insns.
4489 (ufix_truncv2dfv2si2<mask_name>): Change into ...
4490 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
4491 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
4492 define_insns.
4493 (sse2_cvttpd2dq<mask_name>): Change into ...
4494 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
4495 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
4496 (*sse2_cvtpd2dq<mask_name>): Change into ...
4497 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
4498 Add "C" constraint to const0_operand.
4499 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
4500 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
4501 changes.
4502
4503 PR target/91124
4504 * config/i386/i386-builtin-types.def
4505 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
4506 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
4507 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
4508 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
4509 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
4510 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
4511 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
4512 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
4513 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
4514 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
4515 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
4516 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
4517 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
4518 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
4519 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
4520 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
4521 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
4522 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
4523 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
4524 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
4525 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
4526 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
4527 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
4528 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
4529 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
4530 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
4531 __builtin_ia32_vpdpbusd_v4si_maskz,
4532 __builtin_ia32_vpdpbusds_v16si_mask,
4533 __builtin_ia32_vpdpbusds_v16si_maskz,
4534 __builtin_ia32_vpdpbusds_v8si_mask,
4535 __builtin_ia32_vpdpbusds_v8si_maskz,
4536 __builtin_ia32_vpdpbusds_v4si_mask,
4537 __builtin_ia32_vpdpbusds_v4si_maskz,
4538 __builtin_ia32_vpdpwssd_v16si_mask,
4539 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
4540 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
4541 __builtin_ia32_vpdpwssd_v4si_maskz,
4542 __builtin_ia32_vpdpwssds_v16si_mask,
4543 __builtin_ia32_vpdpwssds_v16si_maskz,
4544 __builtin_ia32_vpdpwssds_v8si_mask,
4545 __builtin_ia32_vpdpwssds_v8si_maskz,
4546 __builtin_ia32_vpdpwssds_v4si_mask,
4547 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
4548 suffixed types rather than *_INT.
4549 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
4550 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
4551 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
4552 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
4553 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
4554 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
4555
4556 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
4557
4558 * tree-vrp.c (intersect_ranges): If we know the intersection is
4559 empty, there is no need to conservatively add anything else to
4560 the set.
4561
4562 2019-07-11 Richard Biener <rguenther@suse.de>
4563
4564 PR middle-end/91131
4565 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
4566 when the object is volatile and we have not cleared it even though
4567 there are no nonzero elements.
4568
4569 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
4570
4571 * config/rs6000/predicates.md (cint34_operand): Update
4572 SIGNED_34BIT_OFFSET_P call.
4573 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
4574 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
4575 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
4576 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
4577 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
4578 argument.
4579 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
4580 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
4581 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
4582 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
4583 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
4584
4585 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
4586
4587 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
4588 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
4589 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
4590 (DEF_MIN_OSX_VERSION): New.
4591
4592 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
4593
4594 * fold-const.c (fold_relational_const): Fix folding of
4595 vector-to-scalar NE_EXPRs.
4596 (test_vector_folding): Add more tests.
4597
4598 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
4599
4600 PR target/91060
4601 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
4602 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
4603 (vec_setv2di_internal): Reexpress as...
4604 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
4605 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
4606 rather than gen_neon_vset_lane<mode>.
4607
4608 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
4609
4610 PR target/91102
4611 * lra-constraints.c (process_alt_operands): Don't match user
4612 defined regs only if they are early clobbers.
4613
4614 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
4615
4616 * wide-int.h (wi::lshift): Reject negative values for the fast path.
4617
4618 2019-07-10 Richard Biener <rguenther@suse.de>
4619
4620 PR tree-optimization/91126
4621 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
4622 native encoding offset for BYTES_BIG_ENDIAN.
4623 (vn_reference_lookup_3): Likewise.
4624
4625 2019-07-10 Richard Biener <rguenther@suse.de>
4626
4627 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
4628 LHS whenever possible.
4629
4630 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
4631
4632 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
4633 from ...; work also on duplicated types.
4634 (nonoverlapping_component_refs_since_match): ... here
4635 (ncr_type_uid): Break out from ...
4636 (ncr_compar): ... here; look for TYPE_UID of canonical type if
4637 available.
4638 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
4639 the types and nonoverlapping_component_refs_p_1 to disambiguate.
4640
4641 2019-07-09 Martin Sebor <msebor@redhat.com>
4642
4643 PR tree-optimization/90989
4644 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
4645 optimization to just single character stores.
4646
4647 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
4648
4649 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
4650 Swap operands only once.
4651
4652 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
4653
4654 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
4655 for both call instructions.
4656
4657 2019-07-09 John Darrington <john@darrington.wattle.id.au>
4658
4659 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
4660 rather than GET_MODE_BITSIZE to better handle partial integer modes.
4661
4662 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
4663
4664 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
4665 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
4666 function from rs6000-logue.c back to rs6000.c.
4667 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
4668
4669 2019-07-09 Martin Sebor <msebor@redhat.com>
4670
4671 PR c++/61339
4672 * auto-profile.c: Change class-key of PODs to struct and others
4673 to class.
4674 * basic-block.h: Same.
4675 * bitmap.c (bitmap_alloc): Same.
4676 * bitmap.h: Same.
4677 * builtins.c (expand_builtin_prefetch): Same.
4678 (expand_builtin_interclass_mathfn): Same.
4679 (expand_builtin_strlen): Same.
4680 (expand_builtin_mempcpy_args): Same.
4681 (expand_cmpstr): Same.
4682 (expand_builtin___clear_cache): Same.
4683 (expand_ifn_atomic_bit_test_and): Same.
4684 (expand_builtin_thread_pointer): Same.
4685 (expand_builtin_set_thread_pointer): Same.
4686 * caller-save.c (setup_save_areas): Same.
4687 (replace_reg_with_saved_mem): Same.
4688 (insert_restore): Same.
4689 (insert_save): Same.
4690 (add_used_regs): Same.
4691 * cfg.c (get_bb_copy): Same.
4692 (set_loop_copy): Same.
4693 * cfg.h: Same.
4694 * cfganal.h: Same.
4695 * cfgexpand.c (alloc_stack_frame_space): Same.
4696 (add_stack_var): Same.
4697 (add_stack_var_conflict): Same.
4698 (add_scope_conflicts_1): Same.
4699 (update_alias_info_with_stack_vars): Same.
4700 (expand_used_vars): Same.
4701 * cfghooks.c (redirect_edge_and_branch_force): Same.
4702 (delete_basic_block): Same.
4703 (split_edge): Same.
4704 (make_forwarder_block): Same.
4705 (force_nonfallthru): Same.
4706 (duplicate_block): Same.
4707 (lv_flush_pending_stmts): Same.
4708 * cfghooks.h: Same.
4709 * cfgloop.c (flow_loops_cfg_dump): Same.
4710 (flow_loop_nested_p): Same.
4711 (superloop_at_depth): Same.
4712 (get_loop_latch_edges): Same.
4713 (flow_loop_dump): Same.
4714 (flow_loops_dump): Same.
4715 (flow_loops_free): Same.
4716 (flow_loop_nodes_find): Same.
4717 (establish_preds): Same.
4718 (flow_loop_tree_node_add): Same.
4719 (flow_loop_tree_node_remove): Same.
4720 (flow_loops_find): Same.
4721 (find_subloop_latch_edge_by_profile): Same.
4722 (find_subloop_latch_edge_by_ivs): Same.
4723 (mfb_redirect_edges_in_set): Same.
4724 (form_subloop): Same.
4725 (merge_latch_edges): Same.
4726 (disambiguate_multiple_latches): Same.
4727 (disambiguate_loops_with_multiple_latches): Same.
4728 (flow_bb_inside_loop_p): Same.
4729 (glb_enum_p): Same.
4730 (get_loop_body_with_size): Same.
4731 (get_loop_body): Same.
4732 (fill_sons_in_loop): Same.
4733 (get_loop_body_in_dom_order): Same.
4734 (get_loop_body_in_custom_order): Same.
4735 (release_recorded_exits): Same.
4736 (get_loop_exit_edges): Same.
4737 (num_loop_branches): Same.
4738 (remove_bb_from_loops): Same.
4739 (find_common_loop): Same.
4740 (delete_loop): Same.
4741 (cancel_loop): Same.
4742 (verify_loop_structure): Same.
4743 (loop_preheader_edge): Same.
4744 (loop_exit_edge_p): Same.
4745 (single_exit): Same.
4746 (loop_exits_to_bb_p): Same.
4747 (loop_exits_from_bb_p): Same.
4748 (get_loop_location): Same.
4749 (record_niter_bound): Same.
4750 (get_estimated_loop_iterations_int): Same.
4751 (max_stmt_executions_int): Same.
4752 (likely_max_stmt_executions_int): Same.
4753 (get_estimated_loop_iterations): Same.
4754 (get_max_loop_iterations): Same.
4755 (get_max_loop_iterations_int): Same.
4756 (get_likely_max_loop_iterations): Same.
4757 * cfgloop.h (simple_loop_desc): Same.
4758 (get_loop): Same.
4759 (loop_depth): Same.
4760 (loop_outer): Same.
4761 (loop_iterator::next): Same.
4762 (loop_outermost): Same.
4763 * cfgloopanal.c (mark_irreducible_loops): Same.
4764 (num_loop_insns): Same.
4765 (average_num_loop_insns): Same.
4766 (expected_loop_iterations_unbounded): Same.
4767 (expected_loop_iterations): Same.
4768 (mark_loop_exit_edges): Same.
4769 (single_likely_exit): Same.
4770 * cfgloopmanip.c (fix_bb_placement): Same.
4771 (fix_bb_placements): Same.
4772 (remove_path): Same.
4773 (place_new_loop): Same.
4774 (add_loop): Same.
4775 (scale_loop_frequencies): Same.
4776 (scale_loop_profile): Same.
4777 (create_empty_if_region_on_edge): Same.
4778 (create_empty_loop_on_edge): Same.
4779 (loopify): Same.
4780 (unloop): Same.
4781 (fix_loop_placements): Same.
4782 (copy_loop_info): Same.
4783 (duplicate_loop): Same.
4784 (duplicate_subloops): Same.
4785 (loop_redirect_edge): Same.
4786 (can_duplicate_loop_p): Same.
4787 (duplicate_loop_to_header_edge): Same.
4788 (mfb_keep_just): Same.
4789 (has_preds_from_loop): Same.
4790 (create_preheader): Same.
4791 (create_preheaders): Same.
4792 (lv_adjust_loop_entry_edge): Same.
4793 (loop_version): Same.
4794 * cfgloopmanip.h: Same.
4795 * cgraph.h: Same.
4796 * cgraphbuild.c: Same.
4797 * combine.c (make_extraction): Same.
4798 * config/i386/i386-features.c: Same.
4799 * config/i386/i386-features.h: Same.
4800 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
4801 (ix86_emit_outlined_ms2sysv_restore): Same.
4802 (ix86_noce_conversion_profitable_p): Same.
4803 (ix86_init_cost): Same.
4804 (ix86_simd_clone_usable): Same.
4805 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
4806 Wstruct-not-pod.
4807 * coretypes.h: Same.
4808 * data-streamer-in.c (string_for_index): Change class-key of PODs
4809 to struct and others to class.
4810 (streamer_read_indexed_string): Same.
4811 (streamer_read_string): Same.
4812 (bp_unpack_indexed_string): Same.
4813 (bp_unpack_string): Same.
4814 (streamer_read_uhwi): Same.
4815 (streamer_read_hwi): Same.
4816 (streamer_read_gcov_count): Same.
4817 (streamer_read_wide_int): Same.
4818 * data-streamer.h (streamer_write_bitpack): Same.
4819 (bp_unpack_value): Same.
4820 (streamer_write_char_stream): Same.
4821 (streamer_write_hwi_in_range): Same.
4822 (streamer_write_record_start): Same.
4823 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
4824 (add_cross_iteration_register_deps): Same.
4825 (build_intra_loop_deps): Same.
4826 * df-core.c (df_analyze): Same.
4827 (loop_post_order_compute): Same.
4828 (loop_inverted_post_order_compute): Same.
4829 * df-problems.c (df_rd_alloc): Same.
4830 (df_rd_simulate_one_insn): Same.
4831 (df_rd_local_compute): Same.
4832 (df_rd_init_solution): Same.
4833 (df_rd_confluence_n): Same.
4834 (df_rd_transfer_function): Same.
4835 (df_rd_free): Same.
4836 (df_rd_dump_defs_set): Same.
4837 (df_rd_top_dump): Same.
4838 (df_lr_alloc): Same.
4839 (df_lr_reset): Same.
4840 (df_lr_local_compute): Same.
4841 (df_lr_init): Same.
4842 (df_lr_confluence_n): Same.
4843 (df_lr_free): Same.
4844 (df_lr_top_dump): Same.
4845 (df_lr_verify_transfer_functions): Same.
4846 (df_live_alloc): Same.
4847 (df_live_reset): Same.
4848 (df_live_init): Same.
4849 (df_live_confluence_n): Same.
4850 (df_live_finalize): Same.
4851 (df_live_free): Same.
4852 (df_live_top_dump): Same.
4853 (df_live_verify_transfer_functions): Same.
4854 (df_mir_alloc): Same.
4855 (df_mir_reset): Same.
4856 (df_mir_init): Same.
4857 (df_mir_confluence_n): Same.
4858 (df_mir_free): Same.
4859 (df_mir_top_dump): Same.
4860 (df_word_lr_alloc): Same.
4861 (df_word_lr_reset): Same.
4862 (df_word_lr_init): Same.
4863 (df_word_lr_confluence_n): Same.
4864 (df_word_lr_free): Same.
4865 (df_word_lr_top_dump): Same.
4866 (df_md_alloc): Same.
4867 (df_md_simulate_one_insn): Same.
4868 (df_md_reset): Same.
4869 (df_md_init): Same.
4870 (df_md_free): Same.
4871 (df_md_top_dump): Same.
4872 * df-scan.c (df_insn_delete): Same.
4873 (df_insn_rescan): Same.
4874 (df_notes_rescan): Same.
4875 (df_sort_and_compress_mws): Same.
4876 (df_install_mws): Same.
4877 (df_refs_add_to_chains): Same.
4878 (df_ref_create_structure): Same.
4879 (df_ref_record): Same.
4880 (df_def_record_1): Same.
4881 (df_find_hard_reg_defs): Same.
4882 (df_uses_record): Same.
4883 (df_get_conditional_uses): Same.
4884 (df_get_call_refs): Same.
4885 (df_recompute_luids): Same.
4886 (df_get_entry_block_def_set): Same.
4887 (df_entry_block_defs_collect): Same.
4888 (df_get_exit_block_use_set): Same.
4889 (df_exit_block_uses_collect): Same.
4890 (df_mws_verify): Same.
4891 (df_bb_verify): Same.
4892 * df.h (df_scan_get_bb_info): Same.
4893 * doc/tm.texi: Same.
4894 * dse.c (record_store): Same.
4895 * dumpfile.h: Same.
4896 * emit-rtl.c (const_fixed_hasher::equal): Same.
4897 (set_mem_attributes_minus_bitpos): Same.
4898 (change_address): Same.
4899 (adjust_address_1): Same.
4900 (offset_address): Same.
4901 * emit-rtl.h: Same.
4902 * except.c (dw2_build_landing_pads): Same.
4903 (sjlj_emit_dispatch_table): Same.
4904 * explow.c (allocate_dynamic_stack_space): Same.
4905 (emit_stack_probe): Same.
4906 (probe_stack_range): Same.
4907 * expmed.c (store_bit_field_using_insv): Same.
4908 (store_bit_field_1): Same.
4909 (store_integral_bit_field): Same.
4910 (extract_bit_field_using_extv): Same.
4911 (extract_bit_field_1): Same.
4912 (emit_cstore): Same.
4913 * expr.c (emit_block_move_via_cpymem): Same.
4914 (expand_cmpstrn_or_cmpmem): Same.
4915 (set_storage_via_setmem): Same.
4916 (emit_single_push_insn_1): Same.
4917 (expand_assignment): Same.
4918 (store_constructor): Same.
4919 (expand_expr_real_2): Same.
4920 (expand_expr_real_1): Same.
4921 (try_casesi): Same.
4922 * flags.h: Same.
4923 * function.c (try_fit_stack_local): Same.
4924 (assign_stack_local_1): Same.
4925 (assign_stack_local): Same.
4926 (cut_slot_from_list): Same.
4927 (insert_slot_to_list): Same.
4928 (max_slot_level): Same.
4929 (move_slot_to_level): Same.
4930 (temp_address_hasher::equal): Same.
4931 (remove_unused_temp_slot_addresses): Same.
4932 (assign_temp): Same.
4933 (combine_temp_slots): Same.
4934 (update_temp_slot_address): Same.
4935 (preserve_temp_slots): Same.
4936 * function.h: Same.
4937 * fwprop.c: Same.
4938 * gcc-rich-location.h: Same.
4939 * gcov.c: Same.
4940 * genattrtab.c (check_attr_test): Same.
4941 (check_attr_value): Same.
4942 (convert_set_attr_alternative): Same.
4943 (convert_set_attr): Same.
4944 (check_defs): Same.
4945 (copy_boolean): Same.
4946 (get_attr_value): Same.
4947 (expand_delays): Same.
4948 (make_length_attrs): Same.
4949 (min_fn): Same.
4950 (make_alternative_compare): Same.
4951 (simplify_test_exp): Same.
4952 (tests_attr_p): Same.
4953 (get_attr_order): Same.
4954 (clear_struct_flag): Same.
4955 (gen_attr): Same.
4956 (compares_alternatives_p): Same.
4957 (gen_insn): Same.
4958 (gen_delay): Same.
4959 (find_attrs_to_cache): Same.
4960 (write_test_expr): Same.
4961 (walk_attr_value): Same.
4962 (write_attr_get): Same.
4963 (eliminate_known_true): Same.
4964 (write_insn_cases): Same.
4965 (write_attr_case): Same.
4966 (write_attr_valueq): Same.
4967 (write_attr_value): Same.
4968 (write_dummy_eligible_delay): Same.
4969 (next_comma_elt): Same.
4970 (find_attr): Same.
4971 (make_internal_attr): Same.
4972 (copy_rtx_unchanging): Same.
4973 (gen_insn_reserv): Same.
4974 (check_tune_attr): Same.
4975 (make_automaton_attrs): Same.
4976 (handle_arg): Same.
4977 * genextract.c (gen_insn): Same.
4978 (VEC_char_to_string): Same.
4979 * genmatch.c (print_operand): Same.
4980 (lower): Same.
4981 (parser::parse_operation): Same.
4982 (parser::parse_capture): Same.
4983 (parser::parse_c_expr): Same.
4984 (parser::parse_simplify): Same.
4985 (main): Same.
4986 * genoutput.c (output_operand_data): Same.
4987 (output_get_insn_name): Same.
4988 (compare_operands): Same.
4989 (place_operands): Same.
4990 (process_template): Same.
4991 (validate_insn_alternatives): Same.
4992 (validate_insn_operands): Same.
4993 (gen_expand): Same.
4994 (note_constraint): Same.
4995 * genpreds.c (write_one_predicate_function): Same.
4996 (add_constraint): Same.
4997 (process_define_register_constraint): Same.
4998 (write_lookup_constraint_1): Same.
4999 (write_lookup_constraint_array): Same.
5000 (write_insn_constraint_len): Same.
5001 (write_reg_class_for_constraint_1): Same.
5002 (write_constraint_satisfied_p_array): Same.
5003 * genrecog.c (optimize_subroutine_group): Same.
5004 * gensupport.c (process_define_predicate): Same.
5005 (queue_pattern): Same.
5006 (remove_from_queue): Same.
5007 (process_rtx): Same.
5008 (is_predicable): Same.
5009 (change_subst_attribute): Same.
5010 (subst_pattern_match): Same.
5011 (alter_constraints): Same.
5012 (alter_attrs_for_insn): Same.
5013 (shift_output_template): Same.
5014 (alter_output_for_subst_insn): Same.
5015 (process_one_cond_exec): Same.
5016 (subst_dup): Same.
5017 (process_define_cond_exec): Same.
5018 (mnemonic_htab_callback): Same.
5019 (gen_mnemonic_attr): Same.
5020 (read_md_rtx): Same.
5021 * ggc-page.c: Same.
5022 * gimple-loop-interchange.cc (dump_reduction): Same.
5023 (dump_induction): Same.
5024 (loop_cand::~loop_cand): Same.
5025 (free_data_refs_with_aux): Same.
5026 (tree_loop_interchange::interchange_loops): Same.
5027 (tree_loop_interchange::map_inductions_to_loop): Same.
5028 (tree_loop_interchange::move_code_to_inner_loop): Same.
5029 (compute_access_stride): Same.
5030 (compute_access_strides): Same.
5031 (proper_loop_form_for_interchange): Same.
5032 (tree_loop_interchange_compute_ddrs): Same.
5033 (prune_datarefs_not_in_loop): Same.
5034 (prepare_data_references): Same.
5035 (pass_linterchange::execute): Same.
5036 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
5037 (unroll_jam_possible_p): Same.
5038 (fuse_loops): Same.
5039 (adjust_unroll_factor): Same.
5040 (tree_loop_unroll_and_jam): Same.
5041 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
5042 (loop_versioning::expensive_stmt_p): Same.
5043 (loop_versioning::version_for_unity): Same.
5044 (loop_versioning::dump_inner_likelihood): Same.
5045 (loop_versioning::find_per_loop_multiplication): Same.
5046 (loop_versioning::analyze_term_using_scevs): Same.
5047 (loop_versioning::record_address_fragment): Same.
5048 (loop_versioning::analyze_expr): Same.
5049 (loop_versioning::analyze_blocks): Same.
5050 (loop_versioning::prune_conditions): Same.
5051 (loop_versioning::merge_loop_info): Same.
5052 (loop_versioning::add_loop_to_queue): Same.
5053 (loop_versioning::decide_whether_loop_is_versionable): Same.
5054 (loop_versioning::make_versioning_decisions): Same.
5055 (loop_versioning::implement_versioning_decisions): Same.
5056 * gimple-ssa-evrp-analyze.c
5057 (evrp_range_analyzer::record_ranges_from_phis): Same.
5058 * gimple-ssa-store-merging.c (split_store::split_store): Same.
5059 (count_multiple_uses): Same.
5060 (split_group): Same.
5061 (imm_store_chain_info::output_merged_store): Same.
5062 (pass_store_merging::process_store): Same.
5063 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
5064 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
5065 (is_max): Same.
5066 (alloca_call_type): Same.
5067 (pass_walloca::execute): Same.
5068 * gimple-streamer-in.c (input_phi): Same.
5069 (input_gimple_stmt): Same.
5070 * gimple-streamer.h: Same.
5071 * godump.c (go_force_record_alignment): Same.
5072 (go_format_type): Same.
5073 (go_output_type): Same.
5074 (go_output_fndecl): Same.
5075 (go_output_typedef): Same.
5076 (keyword_hash_init): Same.
5077 (find_dummy_types): Same.
5078 * graph.c (draw_cfg_nodes_no_loops): Same.
5079 (draw_cfg_nodes_for_loop): Same.
5080 * hard-reg-set.h (hard_reg_set_iter_next): Same.
5081 * hsa-brig.c: Same.
5082 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
5083 * hsa-dump.c (dump_hsa_cfun): Same.
5084 * hsa-gen.c (gen_function_def_parameters): Same.
5085 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
5086 * input.c (dump_line_table_statistics): Same.
5087 (test_lexer): Same.
5088 * input.h: Same.
5089 * internal-fn.c (get_multi_vector_move): Same.
5090 (expand_load_lanes_optab_fn): Same.
5091 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
5092 (expand_GOMP_SIMT_EXIT): Same.
5093 (expand_GOMP_SIMT_LAST_LANE): Same.
5094 (expand_GOMP_SIMT_ORDERED_PRED): Same.
5095 (expand_GOMP_SIMT_VOTE_ANY): Same.
5096 (expand_GOMP_SIMT_XCHG_BFLY): Same.
5097 (expand_GOMP_SIMT_XCHG_IDX): Same.
5098 (expand_addsub_overflow): Same.
5099 (expand_neg_overflow): Same.
5100 (expand_mul_overflow): Same.
5101 (expand_call_mem_ref): Same.
5102 (expand_mask_load_optab_fn): Same.
5103 (expand_scatter_store_optab_fn): Same.
5104 (expand_gather_load_optab_fn): Same.
5105 * ipa-cp.c (ipa_get_parm_lattices): Same.
5106 (print_all_lattices): Same.
5107 (ignore_edge_p): Same.
5108 (build_toporder_info): Same.
5109 (free_toporder_info): Same.
5110 (push_node_to_stack): Same.
5111 (ipcp_lattice<valtype>::set_contains_variable): Same.
5112 (set_agg_lats_to_bottom): Same.
5113 (ipcp_bits_lattice::meet_with): Same.
5114 (set_single_call_flag): Same.
5115 (initialize_node_lattices): Same.
5116 (ipa_get_jf_ancestor_result): Same.
5117 (ipcp_verify_propagated_values): Same.
5118 (propagate_scalar_across_jump_function): Same.
5119 (propagate_context_across_jump_function): Same.
5120 (propagate_bits_across_jump_function): Same.
5121 (ipa_vr_operation_and_type_effects): Same.
5122 (propagate_vr_across_jump_function): Same.
5123 (set_check_aggs_by_ref): Same.
5124 (set_chain_of_aglats_contains_variable): Same.
5125 (merge_aggregate_lattices): Same.
5126 (agg_pass_through_permissible_p): Same.
5127 (propagate_aggs_across_jump_function): Same.
5128 (call_passes_through_thunk_p): Same.
5129 (propagate_constants_across_call): Same.
5130 (devirtualization_time_bonus): Same.
5131 (good_cloning_opportunity_p): Same.
5132 (context_independent_aggregate_values): Same.
5133 (gather_context_independent_values): Same.
5134 (perform_estimation_of_a_value): Same.
5135 (estimate_local_effects): Same.
5136 (value_topo_info<valtype>::add_val): Same.
5137 (add_all_node_vals_to_toposort): Same.
5138 (value_topo_info<valtype>::propagate_effects): Same.
5139 (ipcp_propagate_stage): Same.
5140 (ipcp_discover_new_direct_edges): Same.
5141 (same_node_or_its_all_contexts_clone_p): Same.
5142 (cgraph_edge_brings_value_p): Same.
5143 (gather_edges_for_value): Same.
5144 (create_specialized_node): Same.
5145 (find_more_scalar_values_for_callers_subset): Same.
5146 (find_more_contexts_for_caller_subset): Same.
5147 (copy_plats_to_inter): Same.
5148 (intersect_aggregates_with_edge): Same.
5149 (find_aggregate_values_for_callers_subset): Same.
5150 (cgraph_edge_brings_all_agg_vals_for_node): Same.
5151 (decide_about_value): Same.
5152 (decide_whether_version_node): Same.
5153 (spread_undeadness): Same.
5154 (identify_dead_nodes): Same.
5155 (ipcp_store_vr_results): Same.
5156 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
5157 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
5158 (redirect_to_unreachable): Same.
5159 (edge_set_predicate): Same.
5160 (evaluate_conditions_for_known_args): Same.
5161 (evaluate_properties_for_edge): Same.
5162 (ipa_fn_summary_t::duplicate): Same.
5163 (ipa_call_summary_t::duplicate): Same.
5164 (dump_ipa_call_summary): Same.
5165 (ipa_dump_fn_summary): Same.
5166 (eliminated_by_inlining_prob): Same.
5167 (set_cond_stmt_execution_predicate): Same.
5168 (set_switch_stmt_execution_predicate): Same.
5169 (compute_bb_predicates): Same.
5170 (will_be_nonconstant_expr_predicate): Same.
5171 (phi_result_unknown_predicate): Same.
5172 (analyze_function_body): Same.
5173 (compute_fn_summary): Same.
5174 (estimate_edge_devirt_benefit): Same.
5175 (estimate_edge_size_and_time): Same.
5176 (estimate_calls_size_and_time): Same.
5177 (estimate_node_size_and_time): Same.
5178 (remap_edge_change_prob): Same.
5179 (remap_edge_summaries): Same.
5180 (ipa_merge_fn_summary_after_inlining): Same.
5181 (ipa_fn_summary_generate): Same.
5182 (inline_read_section): Same.
5183 (ipa_fn_summary_read): Same.
5184 (ipa_fn_summary_write): Same.
5185 * ipa-fnsummary.h: Same.
5186 * ipa-hsa.c (ipa_hsa_read_section): Same.
5187 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
5188 * ipa-icf.c (sem_function::param_used_p): Same.
5189 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
5190 * ipa-inline.c (edge_badness): Same.
5191 (inline_small_functions): Same.
5192 * ipa-polymorphic-call.c
5193 (ipa_polymorphic_call_context::stream_out): Same.
5194 * ipa-predicate.c (predicate::remap_after_duplication): Same.
5195 (predicate::remap_after_inlining): Same.
5196 (predicate::stream_out): Same.
5197 * ipa-predicate.h: Same.
5198 * ipa-profile.c (ipa_profile_read_summary): Same.
5199 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
5200 (count_formal_params): Same.
5201 (ipa_dump_param): Same.
5202 (ipa_alloc_node_params): Same.
5203 (ipa_print_node_jump_functions_for_edge): Same.
5204 (ipa_print_node_jump_functions): Same.
5205 (ipa_load_from_parm_agg): Same.
5206 (get_ancestor_addr_info): Same.
5207 (ipa_compute_jump_functions_for_edge): Same.
5208 (ipa_analyze_virtual_call_uses): Same.
5209 (ipa_analyze_stmt_uses): Same.
5210 (ipa_analyze_params_uses_in_bb): Same.
5211 (update_jump_functions_after_inlining): Same.
5212 (try_decrement_rdesc_refcount): Same.
5213 (ipa_impossible_devirt_target): Same.
5214 (update_indirect_edges_after_inlining): Same.
5215 (combine_controlled_uses_counters): Same.
5216 (ipa_edge_args_sum_t::duplicate): Same.
5217 (ipa_write_jump_function): Same.
5218 (ipa_write_indirect_edge_info): Same.
5219 (ipa_write_node_info): Same.
5220 (ipa_read_edge_info): Same.
5221 (ipa_prop_read_section): Same.
5222 (read_replacements_section): Same.
5223 * ipa-prop.h (ipa_get_param_count): Same.
5224 (ipa_get_param): Same.
5225 (ipa_get_type): Same.
5226 (ipa_get_param_move_cost): Same.
5227 (ipa_set_param_used): Same.
5228 (ipa_get_controlled_uses): Same.
5229 (ipa_set_controlled_uses): Same.
5230 (ipa_get_cs_argument_count): Same.
5231 * ipa-pure-const.c (analyze_function): Same.
5232 (pure_const_read_summary): Same.
5233 * ipa-ref.h: Same.
5234 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
5235 * ipa-split.c (test_nonssa_use): Same.
5236 (dump_split_point): Same.
5237 (dominated_by_forbidden): Same.
5238 (split_part_set_ssa_name_p): Same.
5239 (find_split_points): Same.
5240 * ira-build.c (finish_loop_tree_nodes): Same.
5241 (low_pressure_loop_node_p): Same.
5242 * ira-color.c (ira_reuse_stack_slot): Same.
5243 * ira-int.h: Same.
5244 * ira.c (setup_reg_equiv): Same.
5245 (print_insn_chain): Same.
5246 (ira): Same.
5247 * loop-doloop.c (doloop_condition_get): Same.
5248 (add_test): Same.
5249 (record_reg_sets): Same.
5250 (doloop_optimize): Same.
5251 * loop-init.c (loop_optimizer_init): Same.
5252 (fix_loop_structure): Same.
5253 * loop-invariant.c (merge_identical_invariants): Same.
5254 (compute_always_reached): Same.
5255 (find_exits): Same.
5256 (may_assign_reg_p): Same.
5257 (find_invariants_bb): Same.
5258 (find_invariants_body): Same.
5259 (replace_uses): Same.
5260 (can_move_invariant_reg): Same.
5261 (free_inv_motion_data): Same.
5262 (move_single_loop_invariants): Same.
5263 (change_pressure): Same.
5264 (mark_ref_regs): Same.
5265 (calculate_loop_reg_pressure): Same.
5266 * loop-iv.c (biv_entry_hasher::equal): Same.
5267 (iv_extend_to_rtx_code): Same.
5268 (check_iv_ref_table_size): Same.
5269 (clear_iv_info): Same.
5270 (latch_dominating_def): Same.
5271 (iv_get_reaching_def): Same.
5272 (iv_constant): Same.
5273 (iv_subreg): Same.
5274 (iv_extend): Same.
5275 (iv_neg): Same.
5276 (iv_add): Same.
5277 (iv_mult): Same.
5278 (get_biv_step): Same.
5279 (record_iv): Same.
5280 (analyzed_for_bivness_p): Same.
5281 (record_biv): Same.
5282 (iv_analyze_biv): Same.
5283 (iv_analyze_expr): Same.
5284 (iv_analyze_def): Same.
5285 (iv_analyze_op): Same.
5286 (iv_analyze): Same.
5287 (iv_analyze_result): Same.
5288 (biv_p): Same.
5289 (eliminate_implied_conditions): Same.
5290 (simplify_using_initial_values): Same.
5291 (shorten_into_mode): Same.
5292 (canonicalize_iv_subregs): Same.
5293 (determine_max_iter): Same.
5294 (check_simple_exit): Same.
5295 (find_simple_exit): Same.
5296 (get_simple_loop_desc): Same.
5297 * loop-unroll.c (report_unroll): Same.
5298 (decide_unrolling): Same.
5299 (unroll_loops): Same.
5300 (loop_exit_at_end_p): Same.
5301 (decide_unroll_constant_iterations): Same.
5302 (unroll_loop_constant_iterations): Same.
5303 (compare_and_jump_seq): Same.
5304 (unroll_loop_runtime_iterations): Same.
5305 (decide_unroll_stupid): Same.
5306 (unroll_loop_stupid): Same.
5307 (referenced_in_one_insn_in_loop_p): Same.
5308 (reset_debug_uses_in_loop): Same.
5309 (analyze_iv_to_split_insn): Same.
5310 * lra-eliminations.c (lra_debug_elim_table): Same.
5311 (setup_can_eliminate): Same.
5312 (form_sum): Same.
5313 (lra_get_elimination_hard_regno): Same.
5314 (lra_eliminate_regs_1): Same.
5315 (eliminate_regs_in_insn): Same.
5316 (update_reg_eliminate): Same.
5317 (init_elimination): Same.
5318 (lra_eliminate): Same.
5319 * lra-int.h: Same.
5320 * lra-lives.c (initiate_live_solver): Same.
5321 * lra-remat.c (create_remat_bb_data): Same.
5322 * lra-spills.c (lra_spill): Same.
5323 * lra.c (lra_set_insn_recog_data): Same.
5324 (lra_set_used_insn_alternative_by_uid): Same.
5325 (init_reg_info): Same.
5326 (expand_reg_info): Same.
5327 * lto-cgraph.c (output_symtab): Same.
5328 (read_identifier): Same.
5329 (get_alias_symbol): Same.
5330 (input_node): Same.
5331 (input_varpool_node): Same.
5332 (input_ref): Same.
5333 (input_edge): Same.
5334 (input_cgraph_1): Same.
5335 (input_refs): Same.
5336 (input_symtab): Same.
5337 (input_offload_tables): Same.
5338 (output_cgraph_opt_summary): Same.
5339 (input_edge_opt_summary): Same.
5340 (input_cgraph_opt_section): Same.
5341 * lto-section-in.c (lto_free_raw_section_data): Same.
5342 (lto_create_simple_input_block): Same.
5343 (lto_free_function_in_decl_state_for_node): Same.
5344 * lto-streamer-in.c (lto_tag_check_set): Same.
5345 (lto_location_cache::revert_location_cache): Same.
5346 (lto_location_cache::input_location): Same.
5347 (lto_input_location): Same.
5348 (stream_input_location_now): Same.
5349 (lto_input_tree_ref): Same.
5350 (lto_input_eh_catch_list): Same.
5351 (input_eh_region): Same.
5352 (lto_init_eh): Same.
5353 (make_new_block): Same.
5354 (input_cfg): Same.
5355 (fixup_call_stmt_edges): Same.
5356 (input_struct_function_base): Same.
5357 (input_function): Same.
5358 (lto_read_body_or_constructor): Same.
5359 (lto_read_tree_1): Same.
5360 (lto_read_tree): Same.
5361 (lto_input_scc): Same.
5362 (lto_input_tree_1): Same.
5363 (lto_input_toplevel_asms): Same.
5364 (lto_input_mode_table): Same.
5365 (lto_reader_init): Same.
5366 (lto_data_in_create): Same.
5367 * lto-streamer-out.c (output_cfg): Same.
5368 * lto-streamer.h: Same.
5369 * modulo-sched.c (duplicate_insns_of_cycles): Same.
5370 (generate_prolog_epilog): Same.
5371 (mark_loop_unsched): Same.
5372 (dump_insn_location): Same.
5373 (loop_canon_p): Same.
5374 (sms_schedule): Same.
5375 * omp-expand.c (expand_omp_for_ordered_loops): Same.
5376 (expand_omp_for_generic): Same.
5377 (expand_omp_for_static_nochunk): Same.
5378 (expand_omp_for_static_chunk): Same.
5379 (expand_omp_simd): Same.
5380 (expand_omp_taskloop_for_inner): Same.
5381 (expand_oacc_for): Same.
5382 (expand_omp_atomic_pipeline): Same.
5383 (mark_loops_in_oacc_kernels_region): Same.
5384 * omp-offload.c (oacc_xform_loop): Same.
5385 * omp-simd-clone.c (simd_clone_adjust): Same.
5386 * optabs-query.c (get_traditional_extraction_insn): Same.
5387 * optabs.c (expand_vector_broadcast): Same.
5388 (expand_binop_directly): Same.
5389 (expand_twoval_unop): Same.
5390 (expand_twoval_binop): Same.
5391 (expand_unop_direct): Same.
5392 (emit_indirect_jump): Same.
5393 (emit_conditional_move): Same.
5394 (emit_conditional_neg_or_complement): Same.
5395 (emit_conditional_add): Same.
5396 (vector_compare_rtx): Same.
5397 (expand_vec_perm_1): Same.
5398 (expand_vec_perm_const): Same.
5399 (expand_vec_cond_expr): Same.
5400 (expand_vec_series_expr): Same.
5401 (maybe_emit_atomic_exchange): Same.
5402 (maybe_emit_sync_lock_test_and_set): Same.
5403 (expand_atomic_compare_and_swap): Same.
5404 (expand_atomic_load): Same.
5405 (expand_atomic_store): Same.
5406 (maybe_emit_op): Same.
5407 (valid_multiword_target_p): Same.
5408 (create_integer_operand): Same.
5409 (maybe_legitimize_operand_same_code): Same.
5410 (maybe_legitimize_operand): Same.
5411 (create_convert_operand_from_type): Same.
5412 (can_reuse_operands_p): Same.
5413 (maybe_legitimize_operands): Same.
5414 (maybe_gen_insn): Same.
5415 (maybe_expand_insn): Same.
5416 (maybe_expand_jump_insn): Same.
5417 (expand_insn): Same.
5418 * optabs.h (create_expand_operand): Same.
5419 (create_fixed_operand): Same.
5420 (create_output_operand): Same.
5421 (create_input_operand): Same.
5422 (create_convert_operand_to): Same.
5423 (create_convert_operand_from): Same.
5424 * optinfo.h: Same.
5425 * poly-int.h: Same.
5426 * predict.c (optimize_insn_for_speed_p): Same.
5427 (optimize_loop_for_size_p): Same.
5428 (optimize_loop_for_speed_p): Same.
5429 (optimize_loop_nest_for_speed_p): Same.
5430 (get_base_value): Same.
5431 (predicted_by_loop_heuristics_p): Same.
5432 (predict_extra_loop_exits): Same.
5433 (predict_loops): Same.
5434 (predict_paths_for_bb): Same.
5435 (predict_paths_leading_to): Same.
5436 (propagate_freq): Same.
5437 (pass_profile::execute): Same.
5438 * predict.h: Same.
5439 * profile-count.c (profile_count::differs_from_p): Same.
5440 (profile_probability::differs_lot_from_p): Same.
5441 * profile-count.h: Same.
5442 * profile.c (branch_prob): Same.
5443 * regrename.c (free_chain_data): Same.
5444 (mark_conflict): Same.
5445 (create_new_chain): Same.
5446 (merge_overlapping_regs): Same.
5447 (init_rename_info): Same.
5448 (merge_chains): Same.
5449 (regrename_analyze): Same.
5450 (regrename_do_replace): Same.
5451 (scan_rtx_reg): Same.
5452 (record_out_operands): Same.
5453 (build_def_use): Same.
5454 * regrename.h: Same.
5455 * reload.h: Same.
5456 * reload1.c (init_reload): Same.
5457 (maybe_fix_stack_asms): Same.
5458 (copy_reloads): Same.
5459 (count_pseudo): Same.
5460 (count_spilled_pseudo): Same.
5461 (find_reg): Same.
5462 (find_reload_regs): Same.
5463 (select_reload_regs): Same.
5464 (spill_hard_reg): Same.
5465 (fixup_eh_region_note): Same.
5466 (set_reload_reg): Same.
5467 (allocate_reload_reg): Same.
5468 (compute_reload_subreg_offset): Same.
5469 (reload_adjust_reg_for_icode): Same.
5470 (emit_input_reload_insns): Same.
5471 (emit_output_reload_insns): Same.
5472 (do_input_reload): Same.
5473 (inherit_piecemeal_p): Same.
5474 * rtl.h: Same.
5475 * sanopt.c (maybe_get_dominating_check): Same.
5476 (maybe_optimize_ubsan_ptr_ifn): Same.
5477 (can_remove_asan_check): Same.
5478 (maybe_optimize_asan_check_ifn): Same.
5479 (sanopt_optimize_walker): Same.
5480 * sched-deps.c (add_dependence_list): Same.
5481 (chain_to_prev_insn): Same.
5482 (add_insn_mem_dependence): Same.
5483 (create_insn_reg_set): Same.
5484 (maybe_extend_reg_info_p): Same.
5485 (sched_analyze_reg): Same.
5486 (sched_analyze_1): Same.
5487 (get_implicit_reg_pending_clobbers): Same.
5488 (chain_to_prev_insn_p): Same.
5489 (deps_analyze_insn): Same.
5490 (deps_start_bb): Same.
5491 (sched_free_deps): Same.
5492 (init_deps): Same.
5493 (init_deps_reg_last): Same.
5494 (free_deps): Same.
5495 * sched-ebb.c: Same.
5496 * sched-int.h: Same.
5497 * sched-rgn.c (add_branch_dependences): Same.
5498 (concat_insn_mem_list): Same.
5499 (deps_join): Same.
5500 (sched_rgn_compute_dependencies): Same.
5501 * sel-sched-ir.c (reset_target_context): Same.
5502 (copy_deps_context): Same.
5503 (init_id_from_df): Same.
5504 (has_dependence_p): Same.
5505 (change_loops_latches): Same.
5506 (bb_top_order_comparator): Same.
5507 (make_region_from_loop_preheader): Same.
5508 (sel_init_pipelining): Same.
5509 (get_loop_nest_for_rgn): Same.
5510 (make_regions_from_the_rest): Same.
5511 (sel_is_loop_preheader_p): Same.
5512 * sel-sched-ir.h (inner_loop_header_p): Same.
5513 (get_all_loop_exits): Same.
5514 * selftest.h: Same.
5515 * sese.c (sese_build_liveouts): Same.
5516 (sese_insert_phis_for_liveouts): Same.
5517 * sese.h (defined_in_sese_p): Same.
5518 * sreal.c (sreal::stream_out): Same.
5519 * sreal.h: Same.
5520 * streamer-hooks.h: Same.
5521 * target-globals.c (save_target_globals): Same.
5522 * target-globals.h: Same.
5523 * target.def: Same.
5524 * target.h: Same.
5525 * targhooks.c (default_has_ifunc_p): Same.
5526 (default_empty_mask_is_expensive): Same.
5527 (default_init_cost): Same.
5528 * targhooks.h: Same.
5529 * toplev.c: Same.
5530 * tree-affine.c (aff_combination_mult): Same.
5531 (aff_combination_expand): Same.
5532 (aff_combination_constant_multiple_p): Same.
5533 * tree-affine.h: Same.
5534 * tree-cfg.c (build_gimple_cfg): Same.
5535 (replace_loop_annotate_in_block): Same.
5536 (replace_uses_by): Same.
5537 (remove_bb): Same.
5538 (dump_cfg_stats): Same.
5539 (gimple_duplicate_sese_region): Same.
5540 (gimple_duplicate_sese_tail): Same.
5541 (move_block_to_fn): Same.
5542 (replace_block_vars_by_duplicates): Same.
5543 (move_sese_region_to_fn): Same.
5544 (print_loops_bb): Same.
5545 (print_loop): Same.
5546 (print_loops): Same.
5547 (debug): Same.
5548 (debug_loops): Same.
5549 * tree-cfg.h: Same.
5550 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
5551 (chrec_fold_multiply_poly_poly): Same.
5552 (chrec_evaluate): Same.
5553 (chrec_component_in_loop_num): Same.
5554 (reset_evolution_in_loop): Same.
5555 (is_multivariate_chrec): Same.
5556 (chrec_contains_symbols): Same.
5557 (nb_vars_in_chrec): Same.
5558 (chrec_convert_1): Same.
5559 (chrec_convert_aggressive): Same.
5560 * tree-chrec.h: Same.
5561 * tree-core.h: Same.
5562 * tree-data-ref.c (dump_data_dependence_relation): Same.
5563 (canonicalize_base_object_address): Same.
5564 (data_ref_compare_tree): Same.
5565 (prune_runtime_alias_test_list): Same.
5566 (get_segment_min_max): Same.
5567 (create_intersect_range_checks): Same.
5568 (conflict_fn_no_dependence): Same.
5569 (object_address_invariant_in_loop_p): Same.
5570 (analyze_ziv_subscript): Same.
5571 (analyze_siv_subscript_cst_affine): Same.
5572 (analyze_miv_subscript): Same.
5573 (analyze_overlapping_iterations): Same.
5574 (build_classic_dist_vector_1): Same.
5575 (add_other_self_distances): Same.
5576 (same_access_functions): Same.
5577 (build_classic_dir_vector): Same.
5578 (subscript_dependence_tester_1): Same.
5579 (subscript_dependence_tester): Same.
5580 (access_functions_are_affine_or_constant_p): Same.
5581 (get_references_in_stmt): Same.
5582 (loop_nest_has_data_refs): Same.
5583 (graphite_find_data_references_in_stmt): Same.
5584 (find_data_references_in_bb): Same.
5585 (get_base_for_alignment): Same.
5586 (find_loop_nest_1): Same.
5587 (find_loop_nest): Same.
5588 * tree-data-ref.h (dr_alignment): Same.
5589 (ddr_dependence_level): Same.
5590 * tree-if-conv.c (fold_build_cond_expr): Same.
5591 (add_to_predicate_list): Same.
5592 (add_to_dst_predicate_list): Same.
5593 (phi_convertible_by_degenerating_args): Same.
5594 (idx_within_array_bound): Same.
5595 (all_preds_critical_p): Same.
5596 (pred_blocks_visited_p): Same.
5597 (predicate_bbs): Same.
5598 (build_region): Same.
5599 (if_convertible_loop_p_1): Same.
5600 (is_cond_scalar_reduction): Same.
5601 (predicate_scalar_phi): Same.
5602 (remove_conditions_and_labels): Same.
5603 (combine_blocks): Same.
5604 (version_loop_for_if_conversion): Same.
5605 (versionable_outer_loop_p): Same.
5606 (ifcvt_local_dce): Same.
5607 (tree_if_conversion): Same.
5608 (pass_if_conversion::gate): Same.
5609 * tree-if-conv.h: Same.
5610 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
5611 * tree-loop-distribution.c (bb_top_order_cmp): Same.
5612 (free_rdg): Same.
5613 (stmt_has_scalar_dependences_outside_loop): Same.
5614 (copy_loop_before): Same.
5615 (create_bb_after_loop): Same.
5616 (const_with_all_bytes_same): Same.
5617 (generate_memset_builtin): Same.
5618 (generate_memcpy_builtin): Same.
5619 (destroy_loop): Same.
5620 (build_rdg_partition_for_vertex): Same.
5621 (compute_access_range): Same.
5622 (data_ref_segment_size): Same.
5623 (latch_dominated_by_data_ref): Same.
5624 (compute_alias_check_pairs): Same.
5625 (fuse_memset_builtins): Same.
5626 (finalize_partitions): Same.
5627 (find_seed_stmts_for_distribution): Same.
5628 (prepare_perfect_loop_nest): Same.
5629 * tree-parloops.c (lambda_transform_legal_p): Same.
5630 (loop_parallel_p): Same.
5631 (reduc_stmt_res): Same.
5632 (add_field_for_name): Same.
5633 (create_call_for_reduction_1): Same.
5634 (replace_uses_in_bb_by): Same.
5635 (transform_to_exit_first_loop_alt): Same.
5636 (try_transform_to_exit_first_loop_alt): Same.
5637 (transform_to_exit_first_loop): Same.
5638 (num_phis): Same.
5639 (gen_parallel_loop): Same.
5640 (gather_scalar_reductions): Same.
5641 (get_omp_data_i_param): Same.
5642 (try_create_reduction_list): Same.
5643 (oacc_entry_exit_single_gang): Same.
5644 (parallelize_loops): Same.
5645 * tree-pass.h: Same.
5646 * tree-predcom.c (determine_offset): Same.
5647 (last_always_executed_block): Same.
5648 (split_data_refs_to_components): Same.
5649 (suitable_component_p): Same.
5650 (valid_initializer_p): Same.
5651 (find_looparound_phi): Same.
5652 (insert_looparound_copy): Same.
5653 (add_looparound_copies): Same.
5654 (determine_roots_comp): Same.
5655 (predcom_tmp_var): Same.
5656 (initialize_root_vars): Same.
5657 (initialize_root_vars_store_elim_1): Same.
5658 (initialize_root_vars_store_elim_2): Same.
5659 (finalize_eliminated_stores): Same.
5660 (initialize_root_vars_lm): Same.
5661 (remove_stmt): Same.
5662 (determine_unroll_factor): Same.
5663 (execute_pred_commoning_cbck): Same.
5664 (base_names_in_chain_on): Same.
5665 (combine_chains): Same.
5666 (pcom_stmt_dominates_stmt_p): Same.
5667 (try_combine_chains): Same.
5668 (prepare_initializers_chain_store_elim): Same.
5669 (prepare_initializers_chain): Same.
5670 (prepare_initializers): Same.
5671 (prepare_finalizers_chain): Same.
5672 (prepare_finalizers): Same.
5673 (insert_init_seqs): Same.
5674 * tree-scalar-evolution.c (loop_phi_node_p): Same.
5675 (compute_overall_effect_of_inner_loop): Same.
5676 (add_to_evolution_1): Same.
5677 (add_to_evolution): Same.
5678 (follow_ssa_edge_binary): Same.
5679 (follow_ssa_edge_expr): Same.
5680 (backedge_phi_arg_p): Same.
5681 (follow_ssa_edge_in_condition_phi_branch): Same.
5682 (follow_ssa_edge_in_condition_phi): Same.
5683 (follow_ssa_edge_inner_loop_phi): Same.
5684 (follow_ssa_edge): Same.
5685 (analyze_evolution_in_loop): Same.
5686 (analyze_initial_condition): Same.
5687 (interpret_loop_phi): Same.
5688 (interpret_condition_phi): Same.
5689 (interpret_rhs_expr): Same.
5690 (interpret_expr): Same.
5691 (interpret_gimple_assign): Same.
5692 (analyze_scalar_evolution_1): Same.
5693 (analyze_scalar_evolution): Same.
5694 (analyze_scalar_evolution_for_address_of): Same.
5695 (get_instantiated_value_entry): Same.
5696 (loop_closed_phi_def): Same.
5697 (instantiate_scev_name): Same.
5698 (instantiate_scev_poly): Same.
5699 (instantiate_scev_binary): Same.
5700 (instantiate_scev_convert): Same.
5701 (instantiate_scev_not): Same.
5702 (instantiate_scev_r): Same.
5703 (instantiate_scev): Same.
5704 (resolve_mixers): Same.
5705 (initialize_scalar_evolutions_analyzer): Same.
5706 (scev_reset_htab): Same.
5707 (scev_reset): Same.
5708 (derive_simple_iv_with_niters): Same.
5709 (simple_iv_with_niters): Same.
5710 (expression_expensive_p): Same.
5711 (final_value_replacement_loop): Same.
5712 * tree-scalar-evolution.h (block_before_loop): Same.
5713 * tree-ssa-address.h: Same.
5714 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
5715 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
5716 (record_edge_info): Same.
5717 * tree-ssa-live.c (var_map_base_fini): Same.
5718 (remove_unused_locals): Same.
5719 * tree-ssa-live.h: Same.
5720 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
5721 (pass_ch_vect::execute): Same.
5722 (pass_ch::process_loop_p): Same.
5723 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
5724 (movement_possibility): Same.
5725 (outermost_invariant_loop): Same.
5726 (stmt_cost): Same.
5727 (determine_max_movement): Same.
5728 (invariantness_dom_walker::before_dom_children): Same.
5729 (move_computations): Same.
5730 (may_move_till): Same.
5731 (force_move_till_op): Same.
5732 (force_move_till): Same.
5733 (memref_free): Same.
5734 (record_mem_ref_loc): Same.
5735 (set_ref_stored_in_loop): Same.
5736 (mark_ref_stored): Same.
5737 (sort_bbs_in_loop_postorder_cmp): Same.
5738 (sort_locs_in_loop_postorder_cmp): Same.
5739 (analyze_memory_references): Same.
5740 (mem_refs_may_alias_p): Same.
5741 (find_ref_loc_in_loop_cmp): Same.
5742 (rewrite_mem_ref_loc::operator): Same.
5743 (first_mem_ref_loc_1::operator): Same.
5744 (sm_set_flag_if_changed::operator): Same.
5745 (execute_sm_if_changed_flag_set): Same.
5746 (execute_sm): Same.
5747 (hoist_memory_references): Same.
5748 (ref_always_accessed::operator): Same.
5749 (refs_independent_p): Same.
5750 (record_dep_loop): Same.
5751 (ref_indep_loop_p_1): Same.
5752 (ref_indep_loop_p): Same.
5753 (can_sm_ref_p): Same.
5754 (find_refs_for_sm): Same.
5755 (loop_suitable_for_sm): Same.
5756 (store_motion_loop): Same.
5757 (store_motion): Same.
5758 (fill_always_executed_in): Same.
5759 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
5760 (estimated_unrolled_size): Same.
5761 (loop_edge_to_cancel): Same.
5762 (remove_exits_and_undefined_stmts): Same.
5763 (remove_redundant_iv_tests): Same.
5764 (unloop_loops): Same.
5765 (estimated_peeled_sequence_size): Same.
5766 (try_peel_loop): Same.
5767 (canonicalize_loop_induction_variables): Same.
5768 (canonicalize_induction_variables): Same.
5769 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
5770 (name_info): Same.
5771 (stmt_after_inc_pos): Same.
5772 (contains_abnormal_ssa_name_p): Same.
5773 (niter_for_exit): Same.
5774 (find_bivs): Same.
5775 (mark_bivs): Same.
5776 (find_givs_in_bb): Same.
5777 (find_induction_variables): Same.
5778 (find_interesting_uses_cond): Same.
5779 (outermost_invariant_loop_for_expr): Same.
5780 (idx_find_step): Same.
5781 (add_candidate_1): Same.
5782 (add_iv_candidate_derived_from_uses): Same.
5783 (alloc_use_cost_map): Same.
5784 (prepare_decl_rtl): Same.
5785 (generic_predict_doloop_p): Same.
5786 (computation_cost): Same.
5787 (determine_common_wider_type): Same.
5788 (get_computation_aff_1): Same.
5789 (get_use_type): Same.
5790 (determine_group_iv_cost_address): Same.
5791 (iv_period): Same.
5792 (difference_cannot_overflow_p): Same.
5793 (may_eliminate_iv): Same.
5794 (determine_set_costs): Same.
5795 (cheaper_cost_pair): Same.
5796 (compare_cost_pair): Same.
5797 (iv_ca_cand_for_group): Same.
5798 (iv_ca_recount_cost): Same.
5799 (iv_ca_set_remove_invs): Same.
5800 (iv_ca_set_no_cp): Same.
5801 (iv_ca_set_add_invs): Same.
5802 (iv_ca_set_cp): Same.
5803 (iv_ca_add_group): Same.
5804 (iv_ca_cost): Same.
5805 (iv_ca_compare_deps): Same.
5806 (iv_ca_delta_reverse): Same.
5807 (iv_ca_delta_commit): Same.
5808 (iv_ca_cand_used_p): Same.
5809 (iv_ca_delta_free): Same.
5810 (iv_ca_new): Same.
5811 (iv_ca_free): Same.
5812 (iv_ca_dump): Same.
5813 (iv_ca_extend): Same.
5814 (iv_ca_narrow): Same.
5815 (iv_ca_prune): Same.
5816 (cheaper_cost_with_cand): Same.
5817 (iv_ca_replace): Same.
5818 (try_add_cand_for): Same.
5819 (get_initial_solution): Same.
5820 (try_improve_iv_set): Same.
5821 (find_optimal_iv_set_1): Same.
5822 (create_new_iv): Same.
5823 (rewrite_use_compare): Same.
5824 (remove_unused_ivs): Same.
5825 (determine_scaling_factor): Same.
5826 * tree-ssa-loop-ivopts.h: Same.
5827 * tree-ssa-loop-manip.c (create_iv): Same.
5828 (compute_live_loop_exits): Same.
5829 (add_exit_phi): Same.
5830 (add_exit_phis): Same.
5831 (find_uses_to_rename_use): Same.
5832 (find_uses_to_rename_def): Same.
5833 (find_uses_to_rename_in_loop): Same.
5834 (rewrite_into_loop_closed_ssa): Same.
5835 (check_loop_closed_ssa_bb): Same.
5836 (split_loop_exit_edge): Same.
5837 (ip_end_pos): Same.
5838 (ip_normal_pos): Same.
5839 (copy_phi_node_args): Same.
5840 (gimple_duplicate_loop_to_header_edge): Same.
5841 (can_unroll_loop_p): Same.
5842 (determine_exit_conditions): Same.
5843 (scale_dominated_blocks_in_loop): Same.
5844 (niter_for_unrolled_loop): Same.
5845 (tree_transform_and_unroll_loop): Same.
5846 (rewrite_all_phi_nodes_with_iv): Same.
5847 * tree-ssa-loop-manip.h: Same.
5848 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
5849 (number_of_iterations_ne): Same.
5850 (assert_no_overflow_lt): Same.
5851 (assert_loop_rolls_lt): Same.
5852 (number_of_iterations_lt): Same.
5853 (adjust_cond_for_loop_until_wrap): Same.
5854 (tree_simplify_using_condition): Same.
5855 (simplify_using_initial_conditions): Same.
5856 (simplify_using_outer_evolutions): Same.
5857 (loop_only_exit_p): Same.
5858 (ssa_defined_by_minus_one_stmt_p): Same.
5859 (number_of_iterations_popcount): Same.
5860 (number_of_iterations_exit): Same.
5861 (find_loop_niter): Same.
5862 (finite_loop_p): Same.
5863 (chain_of_csts_start): Same.
5864 (get_val_for): Same.
5865 (loop_niter_by_eval): Same.
5866 (derive_constant_upper_bound_ops): Same.
5867 (do_warn_aggressive_loop_optimizations): Same.
5868 (record_estimate): Same.
5869 (get_cst_init_from_scev): Same.
5870 (record_nonwrapping_iv): Same.
5871 (idx_infer_loop_bounds): Same.
5872 (infer_loop_bounds_from_ref): Same.
5873 (infer_loop_bounds_from_array): Same.
5874 (infer_loop_bounds_from_pointer_arith): Same.
5875 (infer_loop_bounds_from_signedness): Same.
5876 (bound_index): Same.
5877 (discover_iteration_bound_by_body_walk): Same.
5878 (maybe_lower_iteration_bound): Same.
5879 (estimate_numbers_of_iterations): Same.
5880 (estimated_loop_iterations): Same.
5881 (estimated_loop_iterations_int): Same.
5882 (max_loop_iterations): Same.
5883 (max_loop_iterations_int): Same.
5884 (likely_max_loop_iterations): Same.
5885 (likely_max_loop_iterations_int): Same.
5886 (estimated_stmt_executions_int): Same.
5887 (max_stmt_executions): Same.
5888 (likely_max_stmt_executions): Same.
5889 (estimated_stmt_executions): Same.
5890 (stmt_dominates_stmt_p): Same.
5891 (nowrap_type_p): Same.
5892 (loop_exits_before_overflow): Same.
5893 (scev_var_range_cant_overflow): Same.
5894 (scev_probably_wraps_p): Same.
5895 (free_numbers_of_iterations_estimates): Same.
5896 * tree-ssa-loop-niter.h: Same.
5897 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
5898 (idx_analyze_ref): Same.
5899 (analyze_ref): Same.
5900 (gather_memory_references_ref): Same.
5901 (mark_nontemporal_store): Same.
5902 (emit_mfence_after_loop): Same.
5903 (may_use_storent_in_loop_p): Same.
5904 (mark_nontemporal_stores): Same.
5905 (should_unroll_loop_p): Same.
5906 (volume_of_dist_vector): Same.
5907 (add_subscript_strides): Same.
5908 (self_reuse_distance): Same.
5909 (insn_to_prefetch_ratio_too_small_p): Same.
5910 * tree-ssa-loop-split.c (split_at_bb_p): Same.
5911 (patch_loop_exit): Same.
5912 (find_or_create_guard_phi): Same.
5913 (easy_exit_values): Same.
5914 (connect_loop_phis): Same.
5915 (connect_loops): Same.
5916 (compute_new_first_bound): Same.
5917 (split_loop): Same.
5918 (tree_ssa_split_loops): Same.
5919 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
5920 (is_maybe_undefined): Same.
5921 (tree_may_unswitch_on): Same.
5922 (simplify_using_entry_checks): Same.
5923 (tree_unswitch_single_loop): Same.
5924 (tree_unswitch_loop): Same.
5925 (tree_unswitch_outer_loop): Same.
5926 (empty_bb_without_guard_p): Same.
5927 (used_outside_loop_p): Same.
5928 (get_vop_from_header): Same.
5929 (hoist_guard): Same.
5930 * tree-ssa-loop.c (gate_oacc_kernels): Same.
5931 (get_lsm_tmp_name): Same.
5932 * tree-ssa-loop.h: Same.
5933 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
5934 (build_and_add_sum): Same.
5935 (no_side_effect_bb): Same.
5936 (get_ops): Same.
5937 (linearize_expr): Same.
5938 (should_break_up_subtract): Same.
5939 (linearize_expr_tree): Same.
5940 * tree-ssa-scopedtables.c: Same.
5941 * tree-ssa-scopedtables.h: Same.
5942 * tree-ssa-structalias.c (condense_visit): Same.
5943 (label_visit): Same.
5944 (dump_pred_graph): Same.
5945 (perform_var_substitution): Same.
5946 (move_complex_constraints): Same.
5947 (remove_preds_and_fake_succs): Same.
5948 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
5949 (determine_bb_domination_status): Same.
5950 (duplicate_thread_path): Same.
5951 (thread_through_all_blocks): Same.
5952 * tree-ssa-threadupdate.h: Same.
5953 * tree-streamer-in.c (streamer_read_string_cst): Same.
5954 (input_identifier): Same.
5955 (unpack_ts_type_common_value_fields): Same.
5956 (unpack_ts_block_value_fields): Same.
5957 (unpack_ts_translation_unit_decl_value_fields): Same.
5958 (unpack_ts_omp_clause_value_fields): Same.
5959 (streamer_read_tree_bitfields): Same.
5960 (streamer_alloc_tree): Same.
5961 (lto_input_ts_common_tree_pointers): Same.
5962 (lto_input_ts_vector_tree_pointers): Same.
5963 (lto_input_ts_poly_tree_pointers): Same.
5964 (lto_input_ts_complex_tree_pointers): Same.
5965 (lto_input_ts_decl_minimal_tree_pointers): Same.
5966 (lto_input_ts_decl_common_tree_pointers): Same.
5967 (lto_input_ts_decl_non_common_tree_pointers): Same.
5968 (lto_input_ts_decl_with_vis_tree_pointers): Same.
5969 (lto_input_ts_field_decl_tree_pointers): Same.
5970 (lto_input_ts_function_decl_tree_pointers): Same.
5971 (lto_input_ts_type_common_tree_pointers): Same.
5972 (lto_input_ts_type_non_common_tree_pointers): Same.
5973 (lto_input_ts_list_tree_pointers): Same.
5974 (lto_input_ts_vec_tree_pointers): Same.
5975 (lto_input_ts_exp_tree_pointers): Same.
5976 (lto_input_ts_block_tree_pointers): Same.
5977 (lto_input_ts_binfo_tree_pointers): Same.
5978 (lto_input_ts_constructor_tree_pointers): Same.
5979 (lto_input_ts_omp_clause_tree_pointers): Same.
5980 (streamer_read_tree_body): Same.
5981 * tree-streamer.h: Same.
5982 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
5983 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
5984 (vect_analyze_possibly_independent_ddr): Same.
5985 (vect_analyze_data_ref_dependence): Same.
5986 (vect_compute_data_ref_alignment): Same.
5987 (vect_enhance_data_refs_alignment): Same.
5988 (vect_analyze_data_ref_access): Same.
5989 (vect_check_gather_scatter): Same.
5990 (vect_find_stmt_data_reference): Same.
5991 (vect_create_addr_base_for_vector_ref): Same.
5992 (vect_setup_realignment): Same.
5993 (vect_supportable_dr_alignment): Same.
5994 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
5995 (adjust_phi_and_debug_stmts): Same.
5996 (vect_set_loop_mask): Same.
5997 (add_preheader_seq): Same.
5998 (vect_maybe_permute_loop_masks): Same.
5999 (vect_set_loop_masks_directly): Same.
6000 (vect_set_loop_condition_masked): Same.
6001 (vect_set_loop_condition_unmasked): Same.
6002 (slpeel_duplicate_current_defs_from_edges): Same.
6003 (slpeel_add_loop_guard): Same.
6004 (slpeel_can_duplicate_loop_p): Same.
6005 (create_lcssa_for_virtual_phi): Same.
6006 (iv_phi_p): Same.
6007 (vect_update_ivs_after_vectorizer): Same.
6008 (vect_gen_vector_loop_niters_mult_vf): Same.
6009 (slpeel_update_phi_nodes_for_loops): Same.
6010 (slpeel_update_phi_nodes_for_guard1): Same.
6011 (find_guard_arg): Same.
6012 (slpeel_update_phi_nodes_for_guard2): Same.
6013 (slpeel_update_phi_nodes_for_lcssa): Same.
6014 (vect_do_peeling): Same.
6015 (vect_create_cond_for_alias_checks): Same.
6016 (vect_loop_versioning): Same.
6017 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
6018 (vect_inner_phi_in_double_reduction_p): Same.
6019 (vect_analyze_scalar_cycles_1): Same.
6020 (vect_fixup_scalar_cycles_with_patterns): Same.
6021 (vect_get_loop_niters): Same.
6022 (bb_in_loop_p): Same.
6023 (vect_get_max_nscalars_per_iter): Same.
6024 (vect_verify_full_masking): Same.
6025 (vect_compute_single_scalar_iteration_cost): Same.
6026 (vect_analyze_loop_form_1): Same.
6027 (vect_analyze_loop_form): Same.
6028 (vect_active_double_reduction_p): Same.
6029 (vect_analyze_loop_operations): Same.
6030 (neutral_op_for_slp_reduction): Same.
6031 (vect_is_simple_reduction): Same.
6032 (vect_model_reduction_cost): Same.
6033 (get_initial_def_for_reduction): Same.
6034 (get_initial_defs_for_reduction): Same.
6035 (vect_create_epilog_for_reduction): Same.
6036 (vectorize_fold_left_reduction): Same.
6037 (vectorizable_reduction): Same.
6038 (vectorizable_induction): Same.
6039 (vectorizable_live_operation): Same.
6040 (loop_niters_no_overflow): Same.
6041 (vect_get_loop_mask): Same.
6042 (vect_transform_loop_stmt): Same.
6043 (vect_transform_loop): Same.
6044 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
6045 (vect_determine_precisions): Same.
6046 (vect_pattern_recog_1): Same.
6047 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
6048 * tree-vect-stmts.c (stmt_vectype): Same.
6049 (process_use): Same.
6050 (vect_init_vector_1): Same.
6051 (vect_truncate_gather_scatter_offset): Same.
6052 (get_group_load_store_type): Same.
6053 (vect_build_gather_load_calls): Same.
6054 (vect_get_strided_load_store_ops): Same.
6055 (vectorizable_simd_clone_call): Same.
6056 (vectorizable_store): Same.
6057 (permute_vec_elements): Same.
6058 (vectorizable_load): Same.
6059 (vect_transform_stmt): Same.
6060 (supportable_widening_operation): Same.
6061 * tree-vectorizer.c (vec_info::replace_stmt): Same.
6062 (vec_info::free_stmt_vec_info): Same.
6063 (vect_free_loop_info_assumptions): Same.
6064 (vect_loop_vectorized_call): Same.
6065 (set_uid_loop_bbs): Same.
6066 (vectorize_loops): Same.
6067 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
6068 * tree.c (add_tree_to_fld_list): Same.
6069 (fld_type_variant_equal_p): Same.
6070 (fld_decl_context): Same.
6071 (fld_incomplete_type_of): Same.
6072 (free_lang_data_in_binfo): Same.
6073 (need_assembler_name_p): Same.
6074 (find_decls_types_r): Same.
6075 (get_eh_types_for_runtime): Same.
6076 (find_decls_types_in_eh_region): Same.
6077 (find_decls_types_in_node): Same.
6078 (assign_assembler_name_if_needed): Same.
6079 * value-prof.c (stream_out_histogram_value): Same.
6080 * value-prof.h: Same.
6081 * var-tracking.c (use_narrower_mode): Same.
6082 (prepare_call_arguments): Same.
6083 (vt_expand_loc_callback): Same.
6084 (resolve_expansions_pending_recursion): Same.
6085 (vt_expand_loc): Same.
6086 * varasm.c (const_hash_1): Same.
6087 (compare_constant): Same.
6088 (tree_output_constant_def): Same.
6089 (simplify_subtraction): Same.
6090 (get_pool_constant): Same.
6091 (output_constant_pool_2): Same.
6092 (output_constant_pool_1): Same.
6093 (mark_constants_in_pattern): Same.
6094 (mark_constant_pool): Same.
6095 (get_section_anchor): Same.
6096 * vr-values.c (compare_range_with_value): Same.
6097 (vr_values::extract_range_from_phi_node): Same.
6098 * vr-values.h: Same.
6099 * web.c (unionfind_union): Same.
6100 * wide-int.h: Same.
6101
6102 2019-07-09 Martin Sebor <msebor@redhat.com>
6103
6104 PR c++/61339
6105 * align.h: Change class-key from class to struct and vice versa
6106 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
6107 * alloc-pool.h: Same.
6108 * asan.c (shadow_mem_size): Same.
6109 * auto-profile.c: Same.
6110 * basic-block.h: Same.
6111 * bitmap.h: Same.
6112 * cfgexpand.c (set_rtl): Same.
6113 (expand_one_stack_var_at): Same.
6114 * cfghooks.h: Same.
6115 * cfgloop.h: Same.
6116 * cgraph.h: Same.
6117 * config/i386/i386.h: Same.
6118 * df-problems.c (df_print_bb_index): Same.
6119 * df-scan.c: Same.
6120 * df.h (df_single_use): Same.
6121 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
6122 (layout::annotation_line_showed_range_p): Same.
6123 (get_printed_columns): Same.
6124 (correction::ensure_terminated): Same.
6125 (line_corrections::~line_corrections): Same.
6126 * dojump.h: Same.
6127 * dse.c: Same.
6128 * dump-context.h: Same.
6129 * dumpfile.h: Same.
6130 * dwarf2out.c: Same.
6131 * edit-context.c: Same.
6132 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
6133 * flags.h: Same.
6134 * function.c (assign_stack_local): Same.
6135 * function.h: Same.
6136 * gcc.c: Same.
6137 * gcov.c (block_info::block_info): Same.
6138 * genattrtab.c: Same.
6139 * genextract.c: Same.
6140 * genmatch.c (comparison_code_p): Same.
6141 (id_base::id_base): Same.
6142 (decision_tree::print): Same.
6143 * genoutput.c: Same.
6144 * genpreds.c (write_one_predicate_function): Same.
6145 * genrecog.c (validate_pattern): Same.
6146 (find_operand_positions): Same.
6147 (optimize_subroutine_group): Same.
6148 (merge_pattern_transition::merge_pattern_transition): Same.
6149 (merge_pattern_info::merge_pattern_info): Same.
6150 (merge_state_result::merge_state_result): Same.
6151 (merge_into_state): Same.
6152 * gensupport.c: Same.
6153 * gensupport.h: Same.
6154 * ggc-common.c (init_ggc_heuristics): Same.
6155 * ggc-tests.c (test_union): Same.
6156 * gimple-loop-interchange.cc (dump_induction): Same.
6157 * gimple-loop-versioning.cc: Same.
6158 * gimple-match.h (gimple_match_cond::any_else): Same.
6159 * gimple-ssa-backprop.c: Same.
6160 * gimple-ssa-sprintf.c: Same.
6161 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
6162 Same.
6163 (store_immediate_info::store_immediate_info): Same.
6164 (merged_store_group::apply_stores): Same.
6165 (get_location_for_stmts): Same.
6166 * gimple-ssa-strength-reduction.c: Same.
6167 * gimple-ssa-warn-alloca.c: Same.
6168 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
6169 * godump.c (go_type_decl): Same.
6170 * hash-map-tests.c (test_map_of_strings_to_int): Same.
6171 * hash-map.h: Same.
6172 * hash-set-tests.c (test_set_of_strings): Same.
6173 * hsa-brig.c: Same.
6174 * hsa-common.h: Same.
6175 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
6176 * input.c (assert_loceq): Same.
6177 * input.h: Same.
6178 * ipa-cp.c: Same.
6179 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
6180 * ipa-fnsummary.h: Same.
6181 * ipa-inline.h: Same.
6182 * ipa-prop.h: Same.
6183 * ipa-split.c (visit_bb): Same.
6184 * ira-int.h (minmax_set_iter_next): Same.
6185 * loop-invariant.c: Same.
6186 * loop-iv.c: Same.
6187 * lra-eliminations.c: Same.
6188 * lra-int.h: Same.
6189 * lra-lives.c (mark_regno_dead): Same.
6190 * lra-remat.c: Same.
6191 * lra-spills.c: Same.
6192 * lto-streamer.h: Same.
6193 * mem-stats.h: Same.
6194 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
6195 * omp-low.c (omp_clause_aligned_alignment): Same.
6196 * optabs-query.h (get_vcond_eq_icode): Same.
6197 * optabs.h: Same.
6198 * opts.c (wrap_help): Same.
6199 * poly-int.h: Same.
6200 * predict.c (predict_paths_leading_to_edge): Same.
6201 * pretty-print.h: Same.
6202 * profile-count.h: Same.
6203 * read-md.h: Same.
6204 * read-rtl-function.c: Same.
6205 * ree.c: Same.
6206 * reginfo.c: Same.
6207 * regrename.c: Same.
6208 * regrename.h: Same.
6209 * reload.h: Same.
6210 * rtl-iter.h: Same.
6211 * rtl.h (costs_add_n_insns): Same.
6212 * sanopt.c: Same.
6213 * sched-int.h: Same.
6214 * sel-sched-ir.h: Same.
6215 * selftest.h: Same.
6216 * sese.h (vec_find): Same.
6217 * stmt.c: Same.
6218 * target-globals.h: Same.
6219 * tree-affine.c (aff_combination_find_elt): Same.
6220 * tree-affine.h: Same.
6221 * tree-data-ref.h: Same.
6222 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
6223 * tree-predcom.c: Same.
6224 * tree-scalar-evolution.c (find_var_scev_info): Same.
6225 * tree-ssa-alias.h: Same.
6226 * tree-ssa-ccp.c: Same.
6227 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
6228 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
6229 (rewrite_mem_refs): Same.
6230 (execute_sm_if_changed): Same.
6231 (hoist_memory_references): Same.
6232 * tree-ssa-loop-ivopts.c (operator<=): Same.
6233 * tree-ssa-loop.h: Same.
6234 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
6235 * tree-ssa-structalias.c: Same.
6236 * tree-switch-conversion.h (cluster::cluster): Same.
6237 (simple_cluster::simple_cluster): Same.
6238 * tree-vect-patterns.c (type_conversion_p): Same.
6239 * tree-vectorizer.c (dump_stmt_cost): Same.
6240 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
6241 * tree.c (protected_set_expr_location): Same.
6242 * tree.h (desired_pro_or_demotion_p): Same.
6243 (fndecl_built_in_p): Same.
6244 * unique-ptr-tests.cc: Same.
6245 * var-tracking.c (delete_variable_part): Same.
6246 * varasm.c (assemble_real): Same.
6247 (tree_output_constant_def): Same.
6248 * vec.c: Same.
6249 * wide-int-bitmask.h: Same.
6250 * wide-int.h (decompose): Same.
6251
6252 2019-07-09 Richard Biener <rguenther@suse.de>
6253
6254 PR tree-optimization/91114
6255 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
6256 find a vector type isn't fatal.
6257
6258 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
6259
6260 * config/aarch64/aarch64-simd.md
6261 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
6262 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
6263 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
6264 (*aarch64_crypto_aese_fused,
6265 *aarch64_crypto_aesd_fused): Update to new definition.
6266 * config/aarch64/aarch64.c
6267 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
6268
6269 2019-07-09 Richard Biener <rguenther@suse.de>
6270
6271 * gimple-match.h (gimple_match_op::resimplify): New.
6272 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
6273 gimple_resimplify4, gimple_resimplify5): Remove.
6274 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
6275 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
6276 Make static.
6277 (gimple_match_op::resimplify): New.
6278 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
6279 according to availability. Use gimple_match_op::resimplify.
6280
6281 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
6282
6283 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
6284
6285 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
6286
6287 * config/arm/crypto.md:
6288 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
6289 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
6290 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
6291 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
6292 * config/arm/arm.c
6293 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
6294 * config/arm/aarch-common-protos.h
6295 (aarch_crypto_can_dual_issue): Remove.
6296 * config/arm/aarch-common.c
6297 (aarch_crypto_can_dual_issue): Likewise.
6298 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
6299 * config/arm/cortex-a53.md: Likewise.
6300 * config/arm/cortex-a57.md: Likewise.
6301 * config/arm/iterators.md:
6302 (CRYPTO_BINARY): Redefine.
6303 (CRYPTO_UNARY): Removed.
6304 (CRYPTO_AES, CRYPTO_AESMC): New.
6305
6306 2019-07-09 Richard Biener <rguenther@suse.de>
6307
6308 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
6309 (vn_reference_lookup_3): If the main ref has no access path recorded
6310 but orig_ref has use it to do access-path based disambiguation.
6311 (vn_reference_lookup_pieces): Adjust.
6312 (vn_reference_lookup): Pass down original ref if we valueized.
6313
6314 2019-07-09 Martin Liska <mliska@suse.cz>
6315
6316 * doc/extend.texi: Document influence on loop
6317 optimizers.
6318
6319 2019-07-09 Martin Liska <mliska@suse.cz>
6320
6321 * lto-compress.c (lto_normalized_zstd_level): Do not use
6322 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
6323 of libzstd. One can use 0 as a default compression level.
6324
6325 2019-07-09 Martin Liska <mliska@suse.cz>
6326
6327 * doc/invoke.texi: Add link from -fprofile-dir option.
6328 Use better wording for 'gcno filename'.
6329
6330 2019-07-08 Martin Sebor <msebor@redhat.com>
6331
6332 PR middle-end/71924
6333 PR middle-end/90549
6334 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
6335 comment.
6336 (args_loc_t): New type.
6337 (args_loc_t, locmap_t): same.
6338 (diag_returned_locals): New function.
6339 (is_addr_local): Same.
6340 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
6341 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
6342 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
6343
6344 2019-07-08 Jakub Jelinek <jakub@redhat.com>
6345
6346 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
6347 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
6348 and casts in offset when different, both through gimple stmts
6349 and through trees. Rewritten using loops to minimize code duplication
6350 for each operand.
6351
6352 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
6353
6354 * emit-rtl.c (set_insn_locations): New function moved from...
6355 * function.c (set_insn_locations): ...here.
6356 * ira-emit.c (emit_moves): Propagate location of the first instruction
6357 to the inserted move instructions.
6358 * reg-stack.c (compensate_edge): Set the location if the sequence is
6359 inserted on the edge.
6360 * rtl.h (set_insn_locations): Declare.
6361
6362 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
6363
6364 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
6365 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
6366 .machine string.
6367
6368 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
6369
6370 PR rtl-optimization/88233
6371 * common.opt (fsplit-wide-types-early): New option.
6372 * common/config/rs6000/rs6000-common.c
6373 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
6374 OPT_LEVELS_ALL.
6375 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
6376 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
6377 flag_split_wide_types_early.
6378 (pass_data_lower_subreg3): New.
6379 (pass_lower_subreg3): New.
6380 (make_pass_lower_subreg3): New.
6381 * passes.def (pass_lower_subreg2): Move after the loop passes.
6382 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
6383 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
6384 the pass pipeline; its previous place is taken by ...
6385 (make_pass_lower_subreg3): ... this.
6386
6387 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
6388
6389 * config/s390/s390.c (s390_shift_truncation_mask): Define.
6390 (TARGET_SHIFT_TRUNCATION_MASK): Define.
6391
6392 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
6393
6394 * config/s390/constraints.md: Add new jsc constraint.
6395 * config/s390/predicates.md: New predicates.
6396 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
6397 * config/s390/s390.c (s390_valid_shift_count): New function.
6398 (print_shift_count_operand): Use s390_valid_shift_count.
6399 (print_operand): Likewise.
6400 * config/s390/s390.md: Use new predicate.
6401 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
6402 * config/s390/vector.md: Use new predicate.
6403
6404 2019-07-08 Andrew Waterman <andrew@sifive.com>
6405 Jim Wilson <jimw@sifive.com>
6406
6407 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
6408 bitsize instead of BITS_PER_WORD.
6409
6410 2019-07-08 Martin Liska <mliska@suse.cz>
6411
6412 * collect2.c (defined): Revert to before r254460.
6413 (scan_prog_file): Revert to before r254460.
6414
6415 2019-07-08 Richard Biener <rguenther@suse.de>
6416
6417 PR tree-optimization/83518
6418 * tree-ssa-sccvn.c: Include splay-tree.h.
6419 (struct pd_range, struct pd_data): New.
6420 (struct vn_walk_cb_data): Add data to track partial definitions.
6421 (vn_walk_cb_data::~vn_walk_cb_data): New.
6422 (vn_walk_cb_data::push_partial_def): New.
6423 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
6424 (vn_reference_lookup_2): When partial defs are registered give up.
6425 (vn_reference_lookup_3): Track partial defs for memset and
6426 constructor zeroing and for defs from constants.
6427
6428 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
6429
6430 * doc/install.texi (bootstrap-Og): Document.
6431
6432 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
6433
6434 * config/riscv/pic.md (*local_pic_load_s<mode>)
6435 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
6436 referenced by <mode>, giving...
6437 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
6438 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
6439 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
6440 use <X:MODE> for the mode attribute.
6441
6442 2019-07-07 Jeff Law <law@redhat.com>
6443
6444 PR tree-optimization/91090
6445 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
6446 in handling of ranges to simplify switch statements.
6447
6448 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
6449
6450 * config/darwin.c (darwin_override_options): Make a final check on PIC
6451 options.
6452
6453 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
6454
6455 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
6456 on for kernel code.
6457
6458 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
6459
6460 PR target/91068
6461 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
6462 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
6463 instead of matching them to "l" output operands.
6464
6465 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
6466
6467 * config/mips/mips.c (mips_split_move): Zero-initialize addr
6468 and check whether addr.reg is nonnull before using it.
6469
6470 2019-07-06 Jakub Jelinek <jakub@redhat.com>
6471
6472 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
6473 ctx->for_simd_scan_phase simd copy the outer var to the privatized
6474 variable(s). For conditional lastprivate look through outer
6475 GIMPLE_OMP_SCAN context.
6476 (lower_omp_1): For conditional lastprivate look through outer
6477 GIMPLE_OMP_SCAN context.
6478
6479 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
6480 member to combined_into_simd_safelen1.
6481 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
6482 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
6483 clauses if ctx->combined_into_simd_safelen1 put statements after the
6484 predicate conditionalized block rather than into it.
6485
6486 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6487
6488 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
6489 operand 1.
6490 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
6491 Make the choice of <mode> explicit, giving...
6492 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
6493
6494 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6495
6496 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
6497 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
6498 of .md attributes.
6499 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
6500 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
6501 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
6502 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
6503 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
6504 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
6505 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
6506 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
6507 (*avx512f_scatterdi<mode>): Likewise.
6508 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
6509
6510 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6511
6512 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
6513 specify the mode iterator referenced by <mode>, giving...
6514 (*push1_h8300hs_<QHI:mode>): ...this.
6515
6516 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6517
6518 * config/gcn/gcn-valu.md
6519 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
6520 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
6521 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
6522 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
6523 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
6524 but using the _exec comparison patterns.
6525 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
6526 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
6527 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
6528 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
6529 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
6530 but using the _exec comparison patterns.
6531
6532 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6533
6534 * config/arm/sync.md
6535 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
6536 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
6537 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
6538 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
6539 <SIDI:cas_cmp_str>.
6540
6541 2019-07-06 Jakub Jelinek <jakub@redhat.com>
6542
6543 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
6544 (maybe_lookup_ctx): Add forward declaration.
6545 (omp_find_scan): Likewise. Walk into body of simd if composited
6546 with worksharing loop.
6547 (scan_omp_simd_scan): New function.
6548 (scan_omp_1_stmt): Call it.
6549 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
6550 ctx->for_simd_scan_phase.
6551 (lower_rec_input_clauses): Do much less work for inscan reductions
6552 in ctx->for_simd_scan_phase is_simd regions.
6553 (lower_omp_scan): Set is_simd also on simd constructs composited
6554 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
6555 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
6556 emit their body after in simd constructs composited with worksharing
6557 loop.
6558 (lower_omp_for_scan): Handle worksharing loop composited with simd.
6559
6560 * omp-low.c (omp_find_scan): Make static.
6561 (lower_omp_for_scan): Fix order of merge arguments in input phase of
6562 the second loop, var2 represents the first partial sum and so needs
6563 to go before rprivb[ivar].
6564
6565 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
6566
6567 * config/rs6000/rs6000-logue.c: Remove unused code.
6568
6569 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
6570
6571 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
6572
6573 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
6574
6575 PR target/90712
6576 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
6577 check with a frame laid out check.
6578
6579 2019-07-05 Richard Biener <rguenther@suse.de>
6580
6581 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
6582 when comparing against a store with possibly the same value.
6583
6584 2019-07-05 Richard Biener <rguenther@suse.de>
6585
6586 PR tree-optimization/91091
6587 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
6588 (walk_non_aliased_vuses): Likewise.
6589 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
6590 (get_continuation_for_phi): New tbaa_p parameter and pass
6591 it down.
6592 (walk_non_aliased_vuses): Likewise.
6593 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
6594 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
6595 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
6596 Likewise.
6597 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
6598 (adjust_offsets_for_equal_base_address): New function.
6599 (vn_reference_lookup_3): Use it to catch more base equivalences.
6600 Handle and pass down tbaa_p flag.
6601 (vn_reference_lookup_pieces): Adjust.
6602 (vn_reference_lookup): Remove alias-set altering, instead pass
6603 down false as tbaa_p.
6604
6605 2019-07-05 Richard Biener <rguenther@suse.de>
6606
6607 PR tree-optimization/91091
6608 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
6609 accesses can happen with -fno-strict-aliasing.
6610
6611 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
6612
6613 * tree-ssa-alias.c (alias_stats): Add
6614 nonoverlapping_component_refs_since_match_p_must_overlap.
6615 (dump_alias_stats): Print it.
6616 (nonoverlapping_component_refs_since_match_p): Add early exit.
6617 (nonoverlapping_component_refs_p): Do not account early exit.
6618
6619 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
6620
6621 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
6622 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
6623 (emit_eh_dispatch): Delete.
6624 (lower_catch): Emit the eh_dispatch manually and set the location of
6625 the first catch statement onto it.
6626 (lower_eh_filter): Emit the eh_dispatch manually and set location.
6627 (lower_eh_dispatch): Propagate location.
6628 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
6629 (eliminate_build): Likewise.
6630
6631 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
6632
6633 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
6634 phi nodes if possible.
6635 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
6636 location info on the newly created statement.
6637 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
6638 newly created increment if needed.
6639
6640 2019-07-04 Jakub Jelinek <jakub@redhat.com>
6641
6642 PR middle-end/78884
6643 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
6644 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
6645 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
6646 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
6647 ctx->add_safelen1 is set.
6648
6649 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
6650 GOMP_loop_start at the start of second worksharing loop in a scan.
6651 For nowait, don't emit GOMP_loop_end_nowait at the end of first
6652 worksharing loop in a scan even if there are conditional lastprivates,
6653 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
6654
6655 2019-07-04 Jan Hubicka <jh@suse.cz>
6656
6657 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
6658 Fix check for match in the ref walk.
6659
6660 2019-07-04 Martin Liska <mliska@suse.cz>
6661
6662 * tree-ssa-loop-niter.c
6663 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
6664 (estimate_numbers_of_iterations):
6665 Support __builtin_expect_with_probability for analysis
6666 of # of loop iterations.
6667
6668 2019-07-04 Alexandre Oliva <oliva@adacore.com>
6669
6670 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
6671 * except.c: Likewise.
6672 * expr.c (expand_expr_real_1): Reject it.
6673 * gimplify.c (gimplify_expr): Gimplify it, within
6674 TRY_FINALLY_EXPR.
6675 * tree-dump.c (dequeue_and_dump): Dump it.
6676 * tree-pretty-print.c (dump_generic_node): Likewise.
6677 * tree.c (block_may_fallthru): Handle it.
6678 * tree.def (EH_ELSE_EXPR): Introduce it.
6679 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
6680 with GIMPLE_EH_ELSE as try/finally/else.
6681
6682 2019-07-04 Richard Biener <rguenther@suse.de>
6683
6684 PR ipa/91062
6685 * tree-pass.h (execute_all_ipa_transforms): Add a flag
6686 parameter whether to disable GC collection.
6687 * passes.c (execute_one_ipa_transform_pass): Likewise, and
6688 honor it.
6689 (execute_all_ipa_transforms): Likewise and pass it down.
6690 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
6691 collection from applying IPA transforms.
6692 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
6693 from applying IPA transforms.
6694
6695 2019-07-04 Richard Biener <rguenther@suse.de>
6696
6697 PR tree-optimization/90911
6698 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
6699 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
6700 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
6701 scalar_loop_scaling.
6702 (vect_transform_loop): Scale scalar loop profile if needed.
6703 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
6704 the loop copy from if-conversion adjust edge probabilities
6705 and scale the vectorized loop body profile, queue the scalar
6706 profile for updating after peeling.
6707
6708 2019-07-04 Jan Hubicka <jh@suse.cz>
6709
6710 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
6711 parameters; return early for must-alias.
6712 (indirect_ref_may_alias_decl_p): Likewise; when establishing
6713 outer types match, try nonoverlapping_component_refs
6714 if must-alias is not obvious.
6715 (indirect_refs_may_alias_p): Likewise.
6716 (refs_may_alias_p_2): Likewise.
6717
6718 2019-07-04 Richard Biener <rguenther@suse.de>
6719
6720 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
6721 argument.
6722 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
6723 globals into...
6724 (struct vn_walk_cb_data): New callback data struct.
6725 (vn_reference_lookup_2): Adjust.
6726 (vn_reference_lookup_3): Likewise.
6727 (vn_reference_lookup_pieces): Likewise.
6728 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
6729 (visit_reference_op_load): Adjust.
6730
6731 2019-07-04 Jakub Jelinek <jakub@redhat.com>
6732
6733 PR tree-optimization/91063
6734 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
6735 stmt from stmts sequence before calling vect_init_vector_1.
6736 Formatting fix.
6737
6738 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6739
6740 PR target/88833
6741 * fwprop.c (reg_single_def_p): New function.
6742 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
6743 (forward_propagate_into): New parameter reg_prop_only
6744 with default value false.
6745 Propagate def's src into loop only if SET_SRC and SET_DEST
6746 of def_set have single definitions.
6747 Likewise if reg_prop_only is set to true.
6748 (fwprop): New param fwprop_addr_p.
6749 Integrate fwprop_addr into fwprop.
6750 (fwprop_addr): Remove.
6751 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
6752 to true.
6753 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
6754 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
6755 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
6756
6757 2019-07-04 Jakub Jelinek <jakub@redhat.com>
6758
6759 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
6760 in worksharing loop scans.
6761
6762 PR tree-optimization/91074
6763 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
6764 temporary.
6765
6766 PR rtl-optimization/90756
6767 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
6768 for VECTOR_TYPE_P.
6769
6770 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
6771
6772 * config/aarch64/aarch64.md: Remove redundant constraints from
6773 define_expand but keep some patterns untouched if they are
6774 specially selected by TARGET_SECONDARY_RELOAD hook.
6775 * config/aarch64/aarch64-sve.md: Likewise.
6776 * config/aarch64/atomics.md: Remove redundant constraints from
6777 define_expand.
6778 * config/aarch64/aarch64-simd.md: Likewise.
6779
6780 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
6781
6782 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
6783 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
6784 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
6785 clauses.
6786 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
6787 DARWIN_NOPIE_SPEC.
6788
6789 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
6790
6791 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
6792 (STARTFILE_SPEC): Split crt3 into a separate spec.
6793 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
6794 (DARWIN_CRT2_SPEC): New.
6795 (DARWIN_CRT3_SPEC): New.
6796 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
6797 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
6798 (DARWIN_CRT3_SPEC): New.
6799
6800 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
6801
6802 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
6803 Change the RTL attribute "length" from "4" to "*" to allow the
6804 length attribute to be adjusted automatically for prefixed load,
6805 store, and add immediate instructions.
6806 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
6807 Likewise.
6808 (extendsi<mode>2, EXTSI iterator): Likewise.
6809 (movsi_internal1): Likewise.
6810 (movsi_from_sf): Likewise.
6811 (movdi_from_sf_zero_ext): Likewise.
6812 (mov<mode>_internal): Likewise.
6813 (movcc_internal1, QHI iterator): Likewise.
6814 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
6815 (movsf_from_si): Likewise.
6816 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
6817 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
6818 (mov<mode>, FMOVE128 iterator): Likewise.
6819 (movdi_internal64): Likewise.
6820 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
6821 Likewise.
6822 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
6823 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
6824 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
6825 (vsx_splat_v4sf): Likewise.
6826
6827 2019-07-03 Mark Wielaard <mark@klomp.org>
6828
6829 PR debug/90981
6830 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
6831 DW_AT_addr_base if there is actually a .debug_addr section with
6832 addresses.
6833 (output_addr_table): Add DWARF5 table header generation here after
6834 checking there are actually any addresses from...
6835 (dwarf2out_finish): ...here.
6836
6837 2019-07-03 Richard Biener <rguenther@suse.de>
6838
6839 PR middle-end/91069
6840 * match.pd (vec_perm -> bit_insert): Fix element read from
6841 first vector.
6842
6843 2019-07-03 Martin Liska <mliska@suse.cz>
6844
6845 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
6846 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
6847 condition.
6848 * generic-match-head.c: Include dbgcnt.h.
6849 * gimple-match-head.c: Likewise.
6850
6851 2019-07-03 Martin Liska <mliska@suse.cz>
6852
6853 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
6854 (GCOV_COUNTER_V_TOPN): New.
6855 (GCOV_COUNTER_V_INDIR): Use _topn.
6856 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
6857 (GCOV_TOPN_VALUES): New.
6858 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
6859 (GCOV_TOPN_VALUES_COUNTERS): New.
6860 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
6861 * tree-profile.c:
6862 (gimple_init_gcov_profiler): Rename variables from one_value
6863 to topn_values.
6864 (gimple_gen_one_value_profiler): Remove.
6865 (gimple_gen_topn_values_profiler): New function.
6866 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
6867 names instead of SINGLE_VALUE.
6868 (stream_out_histogram_value): Likewise.
6869 (stream_in_histogram_value): Likewise.
6870 (get_most_common_single_value): Likewise.
6871 (gimple_divmod_fixed_value_transform): Likewise.
6872 (gimple_stringops_transform): Likewise.
6873 (gimple_divmod_values_to_profile): Likewise.
6874 (gimple_stringops_values_to_profile): Likewise.
6875 (gimple_find_values_to_profile): Likewise.
6876 * value-prof.h (enum hist_type): Rename to TOPN.
6877 (gimple_gen_one_value_profiler): Remove.
6878 (gimple_gen_topn_values_profiler): New.
6879
6880 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
6881
6882 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
6883 if it has the DW_AT_data_member_location attribute.
6884
6885 2019-07-03 Richard Biener <rguenther@suse.de>
6886
6887 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
6888 dumping.
6889
6890 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
6891
6892 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
6893 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
6894 (tlsdesc_small_sve_<mode>): Likewise.
6895
6896 2019-07-03 Martin Liska <mliska@suse.cz>
6897
6898 * Makefile.in: Define ZSTD_LIB.
6899 * common.opt: Adjust compression level
6900 to support also zstd levels.
6901 * config.in: Regenerate.
6902 * configure: Likewise.
6903 * configure.ac: Add --with-zstd and --with-zstd-include options
6904 and detect ZSTD.
6905 * doc/install.texi: Mention zstd dependency.
6906 * gcc.c: Print supported LTO compression algorithms.
6907 * lto-compress.c (lto_normalized_zstd_level): Likewise.
6908 (lto_compression_zstd): Likewise.
6909 (lto_uncompression_zstd): Likewise.
6910 (lto_end_compression): Dispatch in between zlib and zstd.
6911 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
6912 (lto_uncompression_zlib): Make it static.
6913 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
6914 * lto-section-in.c (lto_get_section_data): Pass info
6915 about used compression.
6916 * lto-streamer-out.c: By default use zstd when possible.
6917 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
6918 (TV_IPA_LTO_COMPRESS): Likewise for compression.
6919
6920 2019-07-03 Martin Liska <mliska@suse.cz>
6921
6922 * lto-section-in.c (lto_get_section_data): Add "lto" section.
6923 * lto-section-out.c (lto_destroy_simple_output_block): Never
6924 compress LTO_section_lto section.
6925 * lto-streamer-out.c (produce_asm): Do not set major_version
6926 and minor_version.
6927 (lto_output_toplevel_asms): Likewise.
6928 (produce_lto_section): New function.
6929 (lto_output): Call produce_lto_section.
6930 (lto_write_mode_table): Do not set major_version and
6931 minor_version.
6932 (produce_asm_for_decls): Likewise.
6933 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
6934 type.
6935 (struct lto_header): Remove.
6936 (struct lto_section): New struct.
6937 (struct lto_simple_header): Do not inherit from lto_header.
6938 (struct lto_file_decl_data): Add lto_section_header field.
6939
6940 2019-07-03 Martin Liska <mliska@suse.cz>
6941
6942 * lra-eliminations.c (eliminate_regs_in_insn): Remove
6943 dead assignemts.
6944 * reg-stack.c (check_asm_stack_operands): Likewise.
6945 * tree-ssa-structalias.c (create_function_info_for): Likewise.
6946 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
6947 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
6948 force_expand_binop.
6949
6950 2019-07-03 Martin Liska <mliska@suse.cz>
6951
6952 PR tree-optimization/90892
6953 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
6954 in string constants.
6955
6956 2019-07-03 Martin Liska <mliska@suse.cz>
6957
6958 PR middle-end/90899
6959 * multiple_target.c (create_dispatcher_calls): Add to comdat
6960 group only if set for ifunc.
6961
6962 2019-07-03 Martin Liska <mliska@suse.cz>
6963
6964 PR target/88056
6965 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
6966 Define local_object_name in outer scope in order to handle
6967 use-after-scope issue.
6968
6969 2019-07-03 Martin Liska <mliska@suse.cz>
6970
6971 * common.opt: Add fprofile-note.
6972 * coverage.c (coverage_init): Append the option
6973 to bbg_file_name.
6974 * doc/invoke.texi: Document -fprofile-note.
6975
6976 2019-07-03 Jakub Jelinek <jakub@redhat.com>
6977
6978 PR tree-optimization/91033
6979 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
6980 vect_analyze_data_refs): Add bool * arguments.
6981 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
6982 if failure is due to scatter/gather, set *fatal to false if non-NULL.
6983 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
6984 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
6985 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
6986 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
6987 vect_analyze_data_refs caller.
6988
6989 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
6990 clause.
6991 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
6992 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
6993 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
6994 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
6995 OMP_CLAUSE__SCANTEMP_ entry.
6996 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
6997 * tree-pretty-print.c (dump_omp_clause): Likewise.
6998 * tree-nested.c (convert_nonlocal_omp_clauses,
6999 convert_local_omp_clauses): Likewise.
7000 * omp-general.h (struct omp_for_data): Add have_scantemp and
7001 have_nonctrl_scantemp members.
7002 * omp-general.c (omp_extract_for_data): Initialize them.
7003 * omp-low.c (struct omp_context): Add scan_exclusive member.
7004 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
7005 result again with GF_OMP_FOR_KIND_MASK. Initialize also
7006 ctx->scan_exclusive.
7007 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
7008 of !ctx->scan_inclusive.
7009 (lower_rec_input_clauses): Simplify gimplification of dtors using
7010 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
7011 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
7012 loops. Don't add barrier for reduction_omp_orig_ref if
7013 ctx->scan_??xclusive.
7014 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
7015 (lower_omp_scan): Use ctx->scan_exclusive instead
7016 of !ctx->scan_inclusive. Handle worksharing loops with inscan
7017 reductions. Use new_vard != new_var instead of repeated
7018 omp_is_reference calls.
7019 (omp_find_scan, lower_omp_for_scan): New functions.
7020 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
7021 inscan reductions.
7022 * omp-expand.c (expand_omp_scantemp_alloc): New function.
7023 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
7024 and fd->have_scantemp.
7025
7026 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
7027 on worksharing loop propagate it as shared clause to containing
7028 combined parallel.
7029
7030 * omp-expand.c (expand_omp_for_static_nochunk,
7031 expand_omp_for_static_chunk): For nowait worksharing loop with
7032 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
7033 at the end.
7034
7035 2019-07-02 qing zhao <qing.zhao@oracle.com>
7036
7037 PR preprocessor/90581
7038 * doc/cppopts.texi: Add document for -fmax-include-depth.
7039 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
7040
7041 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
7042
7043 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
7044 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
7045 (mmx_packssdw): Ditto.
7046 (mmx_punpckhbw): Ditto.
7047 (mmx_punpcklbw): Ditto.
7048 (mmx_punpckhwd): Ditto.
7049 (mmx_punpcklwd): Ditto.
7050 (mmx_punpckhdq): Ditto.
7051 (mmx_punpckldq): Ditto.
7052 (*vec_dupv4hi): Ditto.
7053 (*vec_dupv2si): Ditto.
7054 (mmx_pmovmskb): Ditto.
7055 * config/i386/sse.md (sse_cvtpi2ps): Use
7056 TARGET_SSE2 && SSE_REG_P in split condition.
7057 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
7058 TARGET_SSSE3 && SSE_REGNO_P in split condition.
7059 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
7060 (ssse3_pshufbv8qi3): Ditto.
7061 (ssse3_palignrdi): Ditto.
7062
7063 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
7064
7065 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
7066 with inlined save and restore.
7067
7068 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
7069
7070 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
7071 to be inserted on single successor edge of the entry block. Then call
7072 commit_edge_insertions instead of inserting the instructions manually.
7073 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
7074 RTL expansion and rebuild jump labels chain.
7075
7076 2019-07-02 Richard Biener <rguenther@suse.de>
7077
7078 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
7079 TI_CHREC_KNOWN.
7080 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
7081 Define here.
7082 * tree.c (build_common_tree_nodes): Initialize them.
7083 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
7084 Make declarations comments.
7085 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
7086 chrec_known): Remove definitions.
7087 (initialize_scalar_evolutions_analyzer): Remove.
7088 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
7089 * tree-streamer.c (preload_common_nodes): Do not preload
7090 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
7091
7092 2019-07-02 Jan Hubicka <jh@suse.cz>
7093
7094 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
7095 sanity check.
7096
7097 2019-07-02 Jan Hubicka <jh@suse.cz>
7098
7099 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
7100 to ..
7101 (nonoverlapping_component_refs_since_match_p): ... this one;
7102 handle also non-decl bases; return -1 if search gave up.
7103 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
7104 nonoverlapping_component_refs_of_decl_p_no_alias to
7105 nonoverlapping_component_refs_since_match_p_may_alias,
7106 nonoverlapping_component_refs_since_match_p_no_alias.
7107 (dump_alias_stats): Update dumping.
7108 (aliasing_matching_component_refs_p): Break out from ...;
7109 dispatch to nonoverlapping_component_refs_for_decl_p
7110 and nonoverlapping_component_refs_since_match_p.
7111 (aliasing_component_refs_p): ... here; call
7112 nonoverlapping_component_refs_p in scenarios where we can not
7113 precisely determine base match.
7114 (decl_refs_may_alias_p): Use
7115 nonoverlapping_component_refs_since_match_p.
7116 (indirect_ref_may_alias_decl_p): Do not call
7117 nonoverlapping_component_refs_p.
7118 (indirect_refs_may_alias_p): Likewise.
7119
7120 2019-07-02 Jan Hubicka <jh@suse.cz>
7121
7122 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
7123 to clobber of return value.
7124
7125 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7126
7127 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
7128 for is_neon_type instructions that have not already been categorized.
7129
7130 2019-07-02 Richard Biener <rguenther@suse.de>
7131
7132 PR tree-optimization/58483
7133 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
7134 for MEM_REF base hashing.
7135 (equal_mem_array_ref_p): Likewise for base comparison.
7136
7137 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7138
7139 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
7140 parameterized name.
7141 (signbit<mode>2): Use that name. Simplify.
7142
7143 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
7144
7145 PR middle-end/66726
7146 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
7147 Tune heuristic from PR71016 to allow MIN / MAX.
7148
7149 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7150
7151 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
7152 parameterized name.
7153 (abs<mode>2): Use that name. Simplify.
7154
7155 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7156
7157 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
7158 parameterized name.
7159 (neg<mode>2): Use that name. Simplify.
7160
7161 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7162
7163 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
7164 name.
7165 (abs<mode>2): Use that name. Simplify.
7166
7167 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7168
7169 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
7170 name.
7171 (neg<mode>2): Use that name. Simplify.
7172
7173 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
7174
7175 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
7176 ("enabled" attribute): Handle sse_noavx isa attribute.
7177 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
7178 Use TARGET_SSE && SSE_REGNO_P in split condition.
7179 (*vec_dupv2sf): Ditto.
7180
7181 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7182
7183 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
7184 name.
7185 (floatsi<mode>2): Use that name. Simplify.
7186
7187 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7188
7189 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
7190 parameterized name.
7191 (extenddf<mode>2_vsx): Make this a parameterized name.
7192 (extenddf<mode>2): Use those names. Simplify.
7193
7194 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7195
7196 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
7197 name.
7198 (eh_return): Use that name. Simplify.
7199
7200 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7201
7202 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
7203 (doloop_end): Use that name. Simplify.
7204
7205 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7206
7207 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
7208 parameterized name.
7209 (indirect_jump): Use that name. Simplify.
7210
7211 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7212
7213 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
7214 parameterized name.
7215 (abs<mode>2): Use that name. Simplify.
7216
7217 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7218
7219 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
7220 parameterized name.
7221 (fix_trunc<mode>si2): Use that name. Simplify.
7222
7223 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7224
7225 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
7226 (allocate_stack): Use that name. Simplify.
7227
7228 2019-07-01 Martin Sebor <msebor@redhat.com>
7229
7230 PR middle-end/90923
7231 * hash-map.h (hash_map::put): On insertion invoke element ctor.
7232 (hash_map::get_or_insert): Same. Reformat comment.
7233 * hash-set.h (hash_set::add): On insertion invoke element ctor.
7234 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
7235 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
7236 * hash-table.h (hash_table::operator=): Prevent copy assignment.
7237 (hash_table::hash_table (const hash_table&)): Use copy ctor
7238 instead of assignment to copy elements.
7239
7240 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
7241 John David Anglin <danglin@gcc.gnu.org>
7242
7243 PR target/90963
7244 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
7245 using saved frame pointer.
7246
7247 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
7248
7249 PR middle-end/64242
7250 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
7251 Add frame clobber and schedule blockage.
7252
7253 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
7254
7255 * doc/invoke.texi (Link Options): Further editorial changes to
7256 -flinker-output docs.
7257
7258 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7259
7260 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
7261 Load both operands of a PLUS into registers separately.
7262
7263 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
7264
7265 * config/s390/vector.md: Fix shift count operand printing.
7266
7267 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7268
7269 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
7270
7271 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7272
7273 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
7274 Use recog_data to test for an output operand.
7275
7276 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7277
7278 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
7279 exclude any others that are disparaged or that are bound to need
7280 a reload or spill.
7281 (ira_get_dup_out_num): Expand comment.
7282
7283 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7284
7285 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
7286 constraint string for each operand/alternative combo. Only handle
7287 '%' at the start of constraint strings, and look for it outside
7288 the main loop.
7289
7290 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7291
7292 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
7293 alternative_mask instead of HARD_REG_SET to represent a
7294 bitmask of alternatives.
7295 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7296 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
7297
7298 2019-07-01 Martin Liska <mliska@suse.cz>
7299
7300 * edit-context.c (test_applying_fixits_unreadable_file): Do not
7301 use () for a constructor call.
7302 (test_applying_fixits_line_out_of_range): Likewise.
7303 * ggc-page.c (alloc_page): Use (void *) for %p printf format
7304 argument.
7305 (free_page): Likewise.
7306
7307 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
7308
7309 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
7310 parameter names to match usage (no functional change).
7311 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
7312
7313 2019-07-01 Richard Biener <rguenther@suse.de>
7314
7315 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
7316 pass parameter.
7317 (pass_fre::execute): Honor it.
7318 * passes.def: Adjust pass_fre invocations to allow iterating,
7319 add non-iterating pass_fre before late threading/dom.
7320
7321 2019-07-01 Richard Biener <rguenther@suse.de>
7322
7323 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
7324 TARGET_MEM_REF handling to also handle address-taken ones.
7325
7326 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
7327
7328 * doc/sourcebuild.texi (Effective-Target Keywords, Other
7329 hardware attributes): Document avx512vp2intersect.
7330
7331 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
7332
7333 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
7334 (abs<mode>2): New expander.
7335 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
7336 Use CODE_FOR_ssse3_absv8qi2.
7337 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
7338 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
7339
7340 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
7341
7342 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
7343 to sse, sse_noavx and avx. Update all uses.
7344
7345 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
7346
7347 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
7348 (*mmx_<plusminus_insn><mode>3): Ditto.
7349 (*mmx_mulv4hi3"): Ditto.
7350 (*mmx_smulv4hi3_highpart): Ditto.
7351 (*mmx_umulv4hi3_highpart): Ditto.
7352 (*mmx_pmaddwd): Ditto.
7353 (*sse2_umulv1siv1di3): Ditto.
7354 (*mmx_<code>v4hi3): Ditto.
7355 (*mmx_<code>v8qi3): Ditto.
7356 (mmx_ashr<mode>3): Ditto.
7357 ("mmx_<shift_insn><mode>3): Ditto.
7358 (*mmx_eq<mode>3): Ditto.
7359 (mmx_gt<mode>3): Ditto.
7360 (mmx_andnot<mode>3): Ditto.
7361 (*mmx_<code><mode>3): Ditto.
7362 (*mmx_pinsrw): Ditto.
7363 (*mmx_pextrw): Ditto.
7364 (mmx_pshufw_1): Ditto.
7365 (*mmx_uavgv8qi3): Ditto.
7366 (*mmx_uavgv4hi3): Ditto.
7367 ("mmx_psadbw): Ditto.
7368 * config/i386/sse.md (sse_cvtps2pi): Ditto.
7369 (sse_cvttps2pi): Ditto.
7370 (ssse3_pmaddubsw): Ditto.
7371 (*ssse3_pmulhrswv4hi3): Ditto.
7372 (ssse3_psign<mode>3): Ditto.
7373
7374 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
7375
7376 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
7377 adjustment for bit-fields to all aggregate types.
7378
7379 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
7380
7381 * config/rs6000/predicates.md (pcrel_address): Use
7382 SYMBOL_REF_LOCAL_P to determine if a label is local.
7383 (pcrel_external_address): New predicate.
7384 (non_prefixed_mem_operand): Delete, predicate not used.
7385 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
7386 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
7387 addressing.
7388 (SYMBOL_REF_PCREL_P): Likewise.
7389
7390 PR target/91009
7391 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
7392 alternative.
7393 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
7394 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
7395 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
7396
7397 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
7398
7399 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
7400 override on extra_headers.
7401
7402 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
7403
7404 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
7405 * config/darwin-driver.c (darwin_default_min_version): Remove newline
7406 from warning.
7407 (darwin_driver_init): Likewise.
7408
7409 2019-06-28 Jan Beulich <jbeulich@suse.com>
7410
7411 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
7412 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
7413 Eliminate redundant alternative.
7414
7415 2019-06-28 Jan Beulich <jbeulich@suse.com>
7416
7417 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
7418 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
7419 Use vector_operand.
7420
7421 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
7422
7423 * config/arc/arc.c (arc_rtx_costs): All short instructions are
7424 having a lower cost regardless of the speed option.
7425
7426 2019-06-28 Jan Beulich <jbeulich@suse.com>
7427
7428 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
7429 vector_operand plus, on both alternatives, "Bm" constraint.
7430
7431 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
7432
7433 * config/arm/arm.md: Remove redundant constraints from
7434 define_expand but leave reload_inm and reload_outm patterns
7435 untouched since they need special constraints to work.
7436 * config/arm/arm-fixed.md: Remove redundant constraints from
7437 define_expand.
7438 * config/arm/iwmmxt.md: Likewise.
7439 * config/arm/neon.md: Likewise.
7440 * config/arm/sync.md: Likewise.
7441 * config/arm/thumb1.md: Likewise.
7442 * config/arm/vec-common.md: Likewise.
7443
7444 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
7445
7446 * doc/install.texi: Document --disable-tm-clone-registry.
7447
7448 2019-06-27 Jakub Jelinek <jakub@redhat.com>
7449
7450 PR c++/91024
7451 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
7452 statements.
7453
7454 PR tree-optimization/91010
7455 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
7456 return true. Otherwise, don't call operand_equal_p if offset1 or
7457 offset2 is NULL and just return false.
7458
7459 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
7460
7461 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
7462 user-specified float mode choice for kernel mode code.
7463
7464 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
7465
7466 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
7467 spec.
7468
7469 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
7470
7471 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
7472 use longcall for 64b code.
7473
7474 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
7475
7476 * builtins.c (get_memory_rtx): Fix comment.
7477 * optabs.def (movmem_optab): Change to cpymem_optab.
7478 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
7479 (emit_block_move_hints): Change movmem to cpymem.
7480 * defaults.h: Change movmem to cpymem.
7481 * targhooks.c (get_move_ratio): Change movmem to cpymem.
7482 (default_use_by_pieces_infrastructure_p): Ditto.
7483 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
7484 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
7485 to cpymem.
7486 * config/aarch64/aarch64.h: Change movmem to cpymem.
7487 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
7488 * config/alpha/alpha.h: Change movmem to cpymem in comment.
7489 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
7490 movmem to cpymem.
7491 * config/arc/arc-protos.h: Change movmem to cpymem.
7492 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
7493 * config/arc/arc.h: Change movmem to cpymem in comment.
7494 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
7495 * config/arm/arm-protos.h: Change movmem to cpymem in names.
7496 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
7497 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
7498 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
7499 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
7500 * config/avr/avr-protos.h: Change movmem to cpymem.
7501 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
7502 avr_out_movmem): Change movmem to cpymem.
7503 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
7504 Change movmem to cpymem.
7505 * config/bfin/bfin-protos.h: Change movmem to cpymem.
7506 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
7507 Change movmem to cpymem.
7508 * config/bfin/bfin.h: Change movmem to cpymem in comment.
7509 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
7510 * config/c6x/c6x-protos.h: Change movmem to cpymem.
7511 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
7512 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
7513 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
7514 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
7515 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
7516 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
7517 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
7518 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
7519 expand_small_cpymem_or_setmem,
7520 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
7521 expand_set_or_cpymem_constant_prologue,
7522 ix86_expand_set_or_cpymem): Change movmem to cpymem.
7523 * config/i386/i386-protos.h: Change movmem to cpymem.
7524 * config/i386/i386.h: Change movmem to cpymem in comment.
7525 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
7526 (setmem<mode>): Change expansion function name.
7527 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
7528 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
7529 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
7530 * config/m32c/m32c-protos.h: Change movmem to cpymem.
7531 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
7532 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
7533 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
7534 to cpymem.
7535 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
7536 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
7537 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
7538 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
7539 Change movmem to cpymem.
7540 * config/mips/mips.h: Change movmem to cpymem.
7541 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
7542 * config/nds32/nds32-memory-manipulation.c
7543 (nds32_expand_movmemsi_loop_unknown_size,
7544 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
7545 nds32_expand_movmemsi_unroll,
7546 nds32_expand_movmemsi): Change movmem to cpymem.
7547 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
7548 * config/nds32/nds32-protos.h: Change movmem to cpymem.
7549 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
7550 (pa_adjust_insn_length): Change call to compute_movmem_length.
7551 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
7552 movmemdi, movmemdi_prereload,
7553 movmemdi_postreload): Change movmem to cpymem.
7554 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
7555 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
7556 * config/riscv/riscv.c: Change movmem to cpymem in comment.
7557 * config/riscv/riscv.h: Change movmem to cpymem.
7558 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
7559 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
7560 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
7561 movmem to cpymem.
7562 * config/s390/s390-protos.h: Change movmem to cpymem.
7563 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
7564 s390_expand_insv): Change movmem to cpymem.
7565 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
7566 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
7567 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
7568 * config/sparc/sparc.h: Change movmem to cpymem in comment.
7569 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
7570 for nonexistent function.
7571 * config/vax/vax.h: Change movmem to cpymem in comment.
7572 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
7573 * config/visium/visium.h: Change movmem to cpymem in comment.
7574 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
7575 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
7576 * doc/md.texi: Change movmem to cpymem and update description to match.
7577 * doc/rtl.texi: Change movmem to cpymem.
7578 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
7579 * doc/tm.texi: Regenerate.
7580
7581 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
7582
7583 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
7584 -fvariable-expansion-in-unroller by default.
7585 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
7586 default for Power.
7587
7588 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
7589
7590 Revert
7591 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
7592 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
7593
7594 * config.gcc(rs6000-*-*): Define target_gtfiles.
7595
7596 2019-06-27 Jan Hubicka <jh@suse.cz>
7597
7598 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
7599 (add_type_duplicate): When odr hash is not allocated, to nothing.
7600 (odr_based_tbaa_p): New function.
7601 (set_type_canonical_for_odr_type): New function.
7602 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
7603 set_type_canonical_for_odr_type): New.
7604 * tree.c (gimple_canonical_types_compatible_p): ODR types with
7605 ODR based TBAA are not equivalent to non-ODR types.
7606
7607 2019-06-27 Martin Liska <mliska@suse.cz>
7608
7609 PR tree-optimization/90974
7610 PR rtl-optimization/90975
7611 PR rtl-optimization/90976
7612 PR target/91016
7613 PR tree-optimization/91017
7614 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
7615 unused tmp.
7616 * lra.c (lra_set_insn_recog_data): Remove a leftover from
7617 initial commit of IRA.
7618 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
7619 of op0 and op1.
7620 * tree-vect-loop.c (vect_create_epilog_for_reduction):
7621 Remove unused mode1.
7622 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
7623 to new_stmt_info.
7624
7625 2019-06-27 Jakub Jelinek <jakub@redhat.com>
7626
7627 PR target/90991
7628 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
7629 instead of register_operand for operands[1], add m to its constraints
7630 if operands[2] uses "C" constraint. Ensure in condition that if
7631 operands[2] is not 0, then operands[1] is not a MEM. For last two
7632 alternatives, use unaligned loads instead of aligned if operands[1] is
7633 misaligned_operand.
7634
7635 2019-06-27 Martin Liska <mliska@suse.cz>
7636
7637 * asan.c (asan_emit_allocas_unpoison): Remove obviously
7638 dead assignments.
7639 * bt-load.c (move_btr_def): Likewise.
7640 * builtins.c (expand_builtin_apply_args_1): Likewise.
7641 (expand_builtin_apply): Likewise.
7642 * cfgexpand.c (expand_asm_stmt): Likewise.
7643 (construct_init_block): Likewise.
7644 * cfghooks.c (verify_flow_info): Likewise.
7645 * cfgloopmanip.c (remove_path): Likewise.
7646 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
7647 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
7648 * combine.c (simplify_if_then_else): Likewise.
7649 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7650 (choose_basereg): Likewise.
7651 (ix86_expand_prologue): Likewise.
7652 (ix86_preferred_output_reload_class): Likewise.
7653 * cselib.c (cselib_record_sets): Likewise.
7654 * df-scan.c (df_scan_alloc): Likewise.
7655 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
7656 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
7657 * emit-rtl.c (try_split): Likewise.
7658 * graphite-scop-detection.c (assign_parameter_index_in_region):
7659 Likewise.
7660 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
7661 * ira-color.c (setup_profitable_hard_regs): Likewise.
7662 * ira.c (rtx_moveable_p): Likewise.
7663 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7664 * read-rtl.c (read_subst_mapping): Likewise.
7665 * regrename.c (scan_rtx): Likewise.
7666 * reorg.c (fill_slots_from_thread): Likewise.
7667 * tree-inline.c (tree_function_versioning): Likewise.
7668 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
7669 * tree-ssa-sink.c (statement_sink_location): Likewise.
7670 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
7671 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
7672 (vect_create_epilog_for_reduction): Likewise.
7673 * tree.c (build_nonstandard_integer_type): Likewise.
7674
7675 2019-06-27 Richard Biener <rguenther@suse.de>
7676
7677 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
7678
7679 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
7680
7681 PR tree-optimization/89772
7682 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
7683 out-of-bound accesses checking.
7684
7685 2019-06-27 Martin Liska <mliska@suse.cz>
7686
7687 PR tree-optimization/91014
7688 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
7689 when LHS is NULL_TREE.
7690
7691 2019-06-27 Martin Liska <mliska@suse.cz>
7692
7693 * symbol-summary.h (traverse): Pass
7694 argument a to the call of callback.
7695 (gt_ggc_mx): Mark arguments as unused.
7696 (gt_pch_nx): Likewise.
7697
7698 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
7699
7700 PR target/62147
7701 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
7702 finiteness.
7703
7704 2019-06-26 Jeff Law <law@redhat.com>
7705
7706 PR tree-optimization/90883
7707 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
7708 (delete_dead_or_redundant_assignment): Likewise.
7709
7710 PR tree-optimization/90883
7711 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
7712 * tree-ssa-dse.c: Update various comments to distinguish between
7713 dead and redundant stores.
7714 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
7715 (dse_optimize_redundant_stores): New function.
7716 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
7717 Distinguish between dead and redundant calls in dump output. All
7718 callers updated.
7719 (delete_dead_or_redundant_assignment): Similarly for assignments.
7720 (dse_optimize_stmt): Handle _CHK variants. For statements which
7721 store 0 into multiple memory locations, try to prove a subsequent
7722 store is redundant.
7723
7724 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
7725
7726 PR target/89021
7727 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
7728 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
7729
7730 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
7731
7732 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
7733 (branch_islands): New extern.
7734 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
7735 * config/rs6000/rs6000.c: .. here.
7736
7737 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
7738
7739 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
7740 (powerpc*-*-*) ... to here.
7741
7742 2019-06-26 Jeff Law <law@redhat.com>
7743
7744 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
7745 memcpy, memmove and memset builtins.
7746 (maybe_trim_memstar_call): Likewise.
7747
7748 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
7749
7750 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
7751
7752 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
7753
7754 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
7755
7756 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
7757
7758 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
7759 declaration.
7760 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
7761 "static".
7762 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
7763 declaration.
7764
7765 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
7766
7767 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
7768
7769 2019-06-26 Richard Biener <rguenther@suse.de>
7770
7771 PR ipa/90982
7772 * tree-inline.c (remap_ssa_name): Copy SSA range info.
7773
7774 2019-06-26 Richard Biener <rguenther@suse.de>
7775
7776 * lto-streamer.h (lto_bitmap_alloc): Remove.
7777 (lto_bitmap_free): Likewise.
7778 * lto-streamer.c (lto_bitmap_alloc): Remove.
7779 (lto_bitmap_free): Likewise.
7780 (lto_obstack): Likewise.
7781 (lto_obstack_initialized): Likewise.
7782 * lto-streamer-out.c (lto_output): Use own obstack for local
7783 bitmap, free it consistently.
7784
7785 2019-06-26 Jakub Jelinek <jakub@redhat.com>
7786
7787 PR target/90991
7788 * config/i386/sse.md
7789 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
7790 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
7791 insns if operands[2] is misaligned_operand.
7792
7793 2019-06-26 Li Jia He <helijia@linux.ibm.com>
7794
7795 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
7796 TARGET_POWERPC64.
7797 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
7798 to GPR.
7799
7800 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
7801
7802 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
7803
7804 2019-06-26 Martin Liska <mliska@suse.cz>
7805
7806 PR tree-optimization/90973
7807 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
7808 epilogue_cost_vec instead of prologue_cost_vec for
7809 a epilogue cost.
7810
7811 2019-06-26 Martin Liska <mliska@suse.cz>
7812
7813 * bb-reorder.c (connect_better_edge_p): Add missing else
7814 statement in the middle of if-else statements.
7815
7816 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
7817 H.J. Lu <hongjiu.lu@intel.com>
7818 Olga Makhotina <olga.makhotina@intel.com>
7819
7820 * common/config/i386/i386-common.c
7821 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
7822 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
7823 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
7824 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
7825 (ix86_handle_option): Handle -mavx512vp2intersect.
7826 * config/i386/avx512vp2intersectintrin.h: New.
7827 * config/i386/avx512vp2intersectvlintrin.h: New.
7828 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
7829 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
7830 AVX512VP2INTERSECT.
7831 * config/i386/i386-builtin-types.def: Add new types.
7832 * config/i386/i386-builtin.def: Add new builtins.
7833 * config/i386/i386-builtins.c: (enum processor_features): Add
7834 F_AVX512VP2INTERSECT.
7835 (static const _isa_names_table isa_names_table): Ditto.
7836 * config/i386/i386-c.c (ix86_target_macros_internal): Define
7837 __AVX512VP2INTERSECT__.
7838 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
7839 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
7840 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
7841 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
7842 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
7843 * config/i386/i386-options.c (ix86_target_string): Add
7844 -mavx512vp2intersect.
7845 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
7846 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
7847 P2HImode and P2QImode.
7848 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
7849 number for P2QImode and P2HImode.
7850 (ix86_regmode_natural_size): New function.
7851 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
7852 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
7853 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
7854 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
7855 * config/i386/i386.opt: Add -mavx512vp2intersect.
7856 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
7857 avx512vp2intersectvlintrin.h.
7858 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
7859 (define_mode_iterator VI48_AVX512VP2VL): New.
7860 (avx512vp2intersect_2intersect<mode>,
7861 avx512vp2intersect_2intersectv16si): New define_insn patterns.
7862 * config.gcc: Add avx512vp2intersectvlintrin.h and
7863 avx512vp2intersectintrin.h to extra_headers.
7864 * doc/invoke.texi: Document -mavx512vp2intersect.
7865
7866 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
7867
7868 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
7869
7870 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
7871
7872 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
7873 savres_routine_syms, savres_routine_name, morestack_ref,
7874 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
7875 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
7876 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
7877 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
7878 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
7879 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
7880 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
7881 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
7882 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
7883 get_stack_clash_protection_probe_interval,
7884 get_stack_clash_protection_guard_size,
7885 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
7886 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
7887 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
7888 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
7889 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
7890 gen_frame_mem_offset, rs6000_savres_routine_name,
7891 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
7892 ptr_regno_for_savres, rs6000_emit_savres_rtx,
7893 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
7894 rs6000_global_entry_point_prologue_needed_p,
7895 rs6000_get_separate_components, rs6000_components_for_bb,
7896 rs6000_disqualify_components, rs6000_emit_prologue_components,
7897 rs6000_emit_epilogue_components, rs6000_set_handled_components,
7898 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
7899 rs6000_output_savres_externs, rs6000_output_function_prologue,
7900 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
7901 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
7902 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
7903 rs6000_output_function_epilogue, gen_add3_const,
7904 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
7905 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
7906 to rs6000-logue.c.
7907 (machine_function): Moved to rs6000.h.
7908 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
7909 rs6000-internal.h.
7910 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
7911 savres_routine_syms, savres_routine_name, morestack_ref,
7912 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
7913 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
7914 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
7915 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
7916 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
7917 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
7918 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
7919 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
7920 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
7921 get_stack_clash_protection_probe_interval,
7922 get_stack_clash_protection_guard_size,
7923 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
7924 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
7925 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
7926 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
7927 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
7928 gen_frame_mem_offset, rs6000_savres_routine_name,
7929 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
7930 ptr_regno_for_savres, rs6000_emit_savres_rtx,
7931 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
7932 rs6000_global_entry_point_prologue_needed_p,
7933 rs6000_get_separate_components, rs6000_components_for_bb,
7934 rs6000_disqualify_components, rs6000_emit_prologue_components,
7935 rs6000_emit_epilogue_components, rs6000_set_handled_components,
7936 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
7937 rs6000_output_savres_externs, rs6000_output_function_prologue,
7938 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
7939 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
7940 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
7941 rs6000_output_function_epilogue, gen_add3_const,
7942 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
7943 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
7944 to here from rs6000.c.
7945 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
7946 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
7947 quad_address_offset_p) Moved to here from rs6000.c.
7948 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
7949 * config/config.gcc: Add new source file rs6000-logue.c to garbage
7950 collector.
7951
7952 2019-06-25 Martin Liska <mliska@suse.cz>
7953
7954 * hash-table.c (hashtab_chk_error): Move here from ...
7955 * hash-table.h (hashtab_chk_error): ... here.
7956
7957 2019-06-25 Martin Liska <mliska@suse.cz>
7958
7959 PR tree-optimization/90978
7960 * df-scan.c (df_update_entry_block_defs): Remove dead else
7961 branch.
7962 (df_update_exit_block_uses): Likewise.
7963
7964 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
7965 Andrew Stubbs <ams@codesourcery.com>
7966
7967 * config.gcc (thread_file): Set to gcn for AMD GCN.
7968 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
7969 (TARGET_EMUTLS_VAR_INIT): New hook.
7970
7971 2019-06-25 Martin Jambor <mjambor@suse.cz>
7972
7973 PR ipa/90939
7974 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
7975
7976 2019-06-25 Richard Biener <rguenther@suse.de>
7977
7978 PR tree-optimization/90930
7979 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
7980 into parallel form in the last pass instance.
7981
7982 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
7983
7984 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
7985 (arc_legitimize_pic_address): Simplify and cleanup the function.
7986 (SYMBOLIC_CONST): Remove.
7987 (prepare_pic_move): Likewise.
7988 (prepare_move_operands): Handle complex mov cases here.
7989 (arc_legitimize_address_0): Remove call to
7990 arc_legitimize_pic_address.
7991 (arc_legitimize_address): Remove call to
7992 arc_legitimize_tls_address.
7993 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
7994 (movhi_insn): Likewise.
7995
7996 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7997
7998 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
7999 PTRDIFF_TYPE.
8000 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
8001 format of "__intN" types for UINTMAX_TYPE.
8002 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
8003 format of "__intN" types for SIZETYPE.
8004 * tree.c (build_common_tree_nodes): Accept "__intN__"
8005 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
8006 * doc/invoke.texi: Document that __intN__ disables pedantic
8007 warnings.
8008
8009 2019-06-25 Jan Hubicka <jh@suse.cz>
8010
8011 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
8012 base2_alias_set is non-zero before doing TBAA based disambiguation.
8013
8014 2019-06-25 Martin Liska <mliska@suse.cz>
8015
8016 PR tree-optimization/90973
8017 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
8018 of prologue and epilogue.
8019
8020 2019-06-24 Jan Hubicka <jh@suse.cz>
8021
8022 * ipa-utils.h (type_with_linkage_p): Verify that type is
8023 CXX_ODR_P.
8024 (odr_type_p): Remove extra return.
8025 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
8026 hash STRING_FLAG only for arrays and integers.
8027 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
8028 Update analogously.
8029 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8030 Likewise.
8031 * print-tree.c (print_node): Print cxx-odr-p
8032 and string-flag.
8033 * tree.c (need_assembler_name_p): Also check that type
8034 is CXX_ODR_TYPE_P
8035 (verify_type_variant): Update verification of SRING_FLAG;
8036 also check CXX_ODR_P.
8037 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
8038 (TYPE_STRING_FLAG): Use it.
8039 (TYPE_CXX_ODR_P): New macro.
8040 * dwarf2out.c (gen_array_type_die): First check that type
8041 is an array and then test string flag.
8042
8043 2019-06-24 Richard Biener <rguenther@suse.de>
8044
8045 PR tree-optimization/90972
8046 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
8047 in common code, dealing with STRING_CST properly.
8048
8049 2019-06-24 Richard Biener <rguenther@suse.de>
8050
8051 PR tree-optimization/90930
8052 PR tree-optimization/90316
8053 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
8054 decrement of limit.
8055
8056 2019-06-24 Martin Sebor <msebor@redhat.com>
8057
8058 * tree-pretty-print.h: Remove unnecessary punctuation characters
8059 from a diagnostic.
8060 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
8061
8062 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
8063
8064 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
8065 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
8066 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
8067
8068 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
8069
8070 * config/rs6000/darwin.h: Handle GCC target pragma.
8071
8072 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
8073
8074 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
8075
8076 2019-06-22 Jeff Law <law@redhat.com>
8077
8078 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8079
8080 2019-06-22 Jan Hubicka <jh@suse.cz>
8081
8082 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
8083 give up on bitfields; continue searching for different refs
8084 appearing later.
8085
8086 2019-06-21 Jakub Jelinek <jakub@redhat.com>
8087
8088 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
8089 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
8090 containing the offset as possible simd lane access. Look through
8091 widening conversion. Move the
8092 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
8093
8094 2019-06-21 Richard Biener <rguenther@suse.de>
8095
8096 PR tree-optimization/90930
8097 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
8098 flag on new stmts to avoid re-processing them.
8099
8100 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
8101
8102 PR c++/90875 - added -Wswitch-outside-range option
8103 * doc/invoke.texi (Wswitch-outside-range): Document.
8104
8105 2019-06-21 Jeff Law <law@redhat.com>
8106
8107 PR tree-optimization/90949
8108 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
8109 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
8110
8111 2019-06-21 Richard Biener <rguenther@suse.de>
8112
8113 PR debug/90914
8114 * dwarf2out.c (prune_unused_types_walk): Always consider
8115 function-local extern declarations as used.
8116
8117 2019-06-21 Richard Biener <rguenther@suse.de>
8118
8119 PR tree-optimization/90913
8120 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
8121 the scalar variant of if-conversion versioning.
8122
8123 2019-06-21 Jakub Jelinek <jakub@redhat.com>
8124
8125 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
8126 create another "omp scan inscan exclusive" array if
8127 !ctx->scan_inclusive.
8128 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
8129 (lower_omp_scan): Likewise.
8130 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
8131 2-bit bitfield for simd_lane_access_p member.
8132 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
8133 aux == (void *)-4 as simd lane access.
8134 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
8135 comment with permutations to show the canonical permutation order.
8136 (vectorizable_scan_store): Handle exclusive scan.
8137 (vectorizable_store): Call vectorizable_scan_store even for
8138 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
8139
8140 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
8141 "omp simd array" arrays with one byte elements.
8142
8143 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
8144
8145 * config/alpha/alpha.md (@unaligned_store<mode>):
8146 Rename from unaligned_store<mode>.
8147 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
8148 * config/alpha/sync.md (@load_locked_<mode>): Rename
8149 from load_locked_<mode>.
8150 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
8151 (@atomic_compare_and_swap<mode>_1): Rename
8152 from atomic_compare_and_swap<mode>_1.
8153 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
8154 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
8155 Use gen_reload_in_aligned and gen_unaligned_store.
8156 (emit_load_locked): Remove.
8157 (emit_store_conditional): Ditto.
8158 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
8159 (alpha_split_compare_and_swap): Ditto.
8160 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
8161 (alpha_split_compare_and_swap_12): Use gen_load_locked
8162 and gen_store_conditional.
8163 (alpha_split_atomic_exchange): Ditto.
8164 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
8165 (alpha_split_atomic_exchange_12): Use gen_load_locked
8166 and gen_store_conditional.
8167
8168 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
8169
8170 * config/aarch64/aarch64-errata.h: New file.
8171 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
8172 (CA53_ERR_843419_SPEC): Delete.
8173 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
8174 * config/aarch64/aarch64-linux.h: Likewise.
8175 * config/aarch64/aarch64-netbsd.h: Likewise.
8176 * config/aarch64/aarch64-freebsd.h: Likewise.
8177
8178 2019-06-20 Marek Polacek <polacek@redhat.com>
8179
8180 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
8181
8182 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
8183
8184 * config/rs6000/rs6000.md (isa attribute): Add support for
8185 for a future processor.
8186
8187 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
8188
8189 PR target/54855
8190 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
8191 standard scalar operation pattern for V2DF.
8192 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
8193 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
8194 (*ieee_<ieee_maxmin><mode>3): Likewise.
8195 (vec_setv2df_0): Likewise.
8196
8197 2019-06-20 Jan Hubicka <jh@suse.cz>
8198
8199 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
8200 parameter; it has no use in gimple memory model.
8201 (indirect_ref_may_alias_decl_p): Update.
8202
8203 2019-06-20 Martin Liska <mliska@suse.cz>
8204
8205 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
8206 to 10.
8207
8208 2019-06-20 Jakub Jelinek <jakub@redhat.com>
8209
8210 * tree-vect-stmts.c (enum scan_store_kind): New type.
8211 (scan_store_can_perm_p): Change last argument from int * to
8212 vec<enum scan_store_kind> *, record precisely which permutations
8213 need whole vector left shift or that plus VEC_COND_EXPR.
8214 (vectorizable_scan_store): Adjust caller, use whole vector left shift
8215 and additional VEC_COND_EXPR only for those iterations that need it.
8216
8217 2019-06-20 Alexandre Oliva <oliva@adacore.com>
8218
8219 * config.gcc: Fix ARM --with-fpu checking and error message.
8220
8221 2019-06-19 Marek Polacek <polacek@redhat.com>
8222
8223 PR c++/60364 - noreturn after first decl not diagnosed.
8224 * attribs.c (get_attribute_namespace): No longer static.
8225 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
8226 attributes.
8227 (attr_noreturn_exclusions): Make it extern.
8228 * attribs.h (get_attribute_namespace): Declare.
8229 * tree-inline.c (function_attribute_inlinable_p): Use
8230 get_attribute_name.
8231
8232 2019-06-19 Martin Sebor <msebor@redhat.com>
8233
8234 PR tree-optimization/90626
8235 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
8236
8237 PR tree-optimization/90626
8238 * tree-ssa-strlen.c (strxcmp_unequal): New function.
8239 (handle_builtin_string_cmp): Call it.
8240
8241 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
8242
8243 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
8244 and DARWIN_NOPIE_SPEC.
8245 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
8246 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
8247 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
8248 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
8249 (DARWIN_EXPORT_DYNAMIC): Delete.
8250 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
8251 and pie options processing to darwin.h.
8252 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
8253
8254 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
8255
8256 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
8257 in computing the number of options to be moved.
8258
8259 2019-06-19 Maya Rashish <coypu@sdf.org>
8260
8261 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
8262 (CLEAR_INSN_CACHE) Use it.
8263
8264 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
8265
8266 * config/i386/i386.md (cmpstrnsi): Remove dead code.
8267
8268 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
8269
8270 PR middle-end/84521
8271 * builtins.c (expand_builtin_setjmp_setup): Save
8272 hard_frame_pointer_rtx.
8273 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
8274 restore fp.
8275 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
8276 non-local goto.
8277 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
8278 elimination code.
8279 (remove_reg_equal_offset_note): Remove unused function.
8280 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
8281 code.
8282 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8283 (arc_builtin_setjmp_frame_value): Remove function.
8284 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8285 (avr_builtin_setjmp_frame_value): Remove function.
8286 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8287 (ix86_builtin_setjmp_frame_value): Remove function.
8288 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
8289 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8290 (sparc_builtin_setjmp_frame_value): Remove function.
8291 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8292 (vax_builtin_setjmp_frame_value): Remove function.
8293 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
8294 pointer if has_nonlocal_label.
8295
8296 2019-06-19 Jakub Jelinek <jakub@redhat.com>
8297
8298 * doc/md.texi: Document vec_shl_<mode> pattern.
8299 * optabs.def (vec_shl_optab): New optab.
8300 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
8301 argument, if == vec_shl_optab, check for left whole vector shift
8302 pattern rather than right shift.
8303 (expand_vec_perm_const): Add vec_shl_optab support.
8304 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
8305 in the comment.
8306 * tree-vect-generic.c (lower_vec_perm): Support permutations which
8307 can be handled by vec_shl_optab.
8308 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
8309 (check_scan_store): Use it.
8310 (vectorizable_scan_store): If target can't do normal permutations,
8311 try to use whole vector left shifts and if needed a VEC_COND_EXPR
8312 after it.
8313 * config/i386/sse.md (vec_shl_<mode>): New expander.
8314
8315 * omp-low.c (lower_rec_input_clauses): Handle references properly
8316 in inscan clauses.
8317 (lower_omp_scan): Likewise.
8318
8319 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8320
8321 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
8322 mem_mode is BLKmode.
8323
8324 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
8325
8326 PR target/90922
8327 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
8328 pointer adjustment for the case of no callee-saved registers and
8329 stack frame bigger than 128 bytes.
8330
8331 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
8332
8333 PR middle-end/90862
8334 * omp-low.c (check_omp_nesting_restrictions): Handle
8335 GF_OMP_TARGET_KIND_OACC_DECLARE.
8336
8337 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
8338
8339 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
8340 (@add<mode>3_carry): Rename from add<mode>3_carry.
8341 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
8342 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
8343 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
8344 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
8345 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
8346 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
8347 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
8348 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
8349 (cmpstrnsi): Use gen_cmp_1.
8350 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
8351 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
8352 (@umonitor_<mode>): Rename from umonitor_<mode>.
8353 * config/i386/i386-expand.c (ix86_expand_copysign):
8354 Use gen_copysign3_const and gen_copysign3_var.
8355 (ix86_expand_xorsign): Use gen_xorsign3_1.
8356 (ix86_expand_branch): Use gen_sub3_carry_ccc,
8357 gen_sub3_carry_ccgz and gen_cmp1.
8358 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
8359 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
8360 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
8361 (ix86_split_lshr): Ditto.
8362 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
8363
8364 2019-06-18 Jason Merrill <jason@redhat.com>
8365
8366 * tree.c (build_constructor): Add MEM_STAT_DECL.
8367
8368 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8369
8370 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
8371 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
8372 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
8373 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
8374 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
8375 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
8376 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
8377 Use CC_NZC instead of CC.
8378 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
8379 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
8380 (aarch64_print_operand): Handle E_CC_NZCmode.
8381 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
8382 of gen_set_clobber_cc.
8383
8384 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8385
8386 * config/aarch64/aarch64-sve.md: Tabify file.
8387
8388 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8389
8390 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
8391 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
8392 * config/aarch64/aarch64-sve.md: Use it.
8393
8394 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8395
8396 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
8397 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
8398 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
8399 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
8400 (aarch64_expand_sve_vec_cmp_int): Use it.
8401 (aarch64_expand_sve_vec_cmp_float): Likewise.
8402 * config/aarch64/aarch64-sve.md: Likewise throughout.
8403
8404 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8405 Kugan Vivekanandarajah <kuganv@linaro.org>
8406
8407 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
8408 (*cond_<optab><mode>_z): Fold into...
8409 (*cond_<optab><mode>_any): ...here. Also handle cases in which
8410 operand 4 can be tied to operand 0 (either inherently or via RA).
8411
8412 2019-06-18 Richard Biener <rguenther@suse.de>
8413
8414 PR debug/90900
8415 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
8416 as if optimized away.
8417
8418 2019-06-18 Tom de Vries <tdevries@suse.de>
8419
8420 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
8421 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
8422 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
8423 Rename to ...
8424 (define_insn "@set_softstack_<mode>"): ... this.
8425 (define_insn "omp_simt_enter_<mode>"): Rename to ...
8426 (define_insn "@omp_simt_enter_<mode>"): ... this.
8427 (define_insn "omp_simt_exit_<mode>"): Rename to ...
8428 (define_insn "@omp_simt_exit_<mode>"): ... this.
8429
8430 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8431
8432 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
8433 vf parameter. Restore the previous iv step of nscalars_step,
8434 but give it iv_type rather than compare_type. Tweak code order
8435 to match the comments.
8436 (vect_set_loop_condition_masked): Update accordingly.
8437 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
8438 for iv_precision. Tweak comment formatting.
8439
8440 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
8441
8442 * config/darwin.c: Strip trailing whitespace.
8443
8444 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
8445
8446 * config/darwin.c (darwin_emit_unwind_label): New default to false.
8447 (darwin_override_options): Set darwin_emit_unwind_label as needed.
8448
8449 2019-06-18 Martin Jambor <mjambor@suse.cz>
8450
8451 PR ipa/90889
8452 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
8453 caller does not have flag_ipa_cp set.
8454
8455 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
8456
8457 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
8458 from "*fold_left_plus_<mode>", updated operands order.
8459 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
8460 * internal-fn.c (mask_fold_left_direct): New define.
8461 (expand_mask_fold_left_optab_fn): Likewise.
8462 (direct_mask_fold_left_optab_supported_p): Likewise.
8463 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
8464 * optabs.def (mask_fold_left_plus_optab): New optab.
8465 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
8466 masked internal_fn for a reduction ifn.
8467 (vectorize_fold_left_reduction): Add support for masking reductions.
8468
8469 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
8470
8471 PR middle-end/80791
8472 * target.def (predict_doloop_p): New hook.
8473 * targhooks.h (default_predict_doloop_p): New declaration.
8474 * targhooks.c (default_predict_doloop_p): New function.
8475 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
8476 * doc/tm.texi: Regenerate.
8477 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
8478 (TARGET_PREDICT_DOLOOP_P): New macro.
8479 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
8480
8481 2019-06-17 Jakub Jelinek <jakub@redhat.com>
8482
8483 * omp-low.c (struct omp_context): Add scan_inclusive field.
8484 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
8485 if inclusive scan.
8486 (struct omplow_simd_context): Add lastlane member.
8487 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
8488 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
8489 1 or 2 argument.
8490 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
8491 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
8492 (lower_omp_scan): New function.
8493 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
8494 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
8495 check 3rd argument if present rather than 2nd.
8496 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
8497 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
8498 2-bit bitfield.
8499 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
8500 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
8501 than 2nd.
8502 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
8503 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
8504 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
8505 init.
8506 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
8507 IFN_GOMP_SIMD_LANE argument.
8508 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
8509 encoded ->aux value.
8510 * tree-vect-stmts.c: Include attribs.h.
8511 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
8512 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
8513 functions.
8514 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
8515 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
8516
8517 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
8518
8519 PR target/62055
8520 * config/i386/i386.md (*nabstf2_1): New insn pattern.
8521 (*nabs<mode>2_1): Ditto.
8522 (nabs sse-reg splitter): New splitter.
8523 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
8524
8525 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
8526
8527 PR bootstrap/90873.
8528 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
8529 TMR index check.
8530
8531 2019-06-17 Tom de Vries <tdevries@suse.de>
8532
8533 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
8534 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
8535 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
8536 ...
8537 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
8538 match_operand 0.
8539 (define_insn "omp_simt_enter_insn"): Rename to ...
8540 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
8541 match_operand 0, 1 and 2, as well as the unspec_volatile result.
8542 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
8543 gen_omp_simt_enter_si.
8544 (define_expand "omp_simt_exit"): New.
8545 (define_insn "omp_simt_exit"): Rename to ...
8546 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
8547 match_operand 0.
8548
8549 2019-06-17 Matthew Green <mrg@eterna.com.au>
8550 Maya Rashish <coypu@sdf.org>
8551
8552 * config.gcc (aarch64*-*-netbsd*): New target.
8553 * config/aarch64/aarch64-netbsd.h: New file.
8554 * config/aarch64/t-aarch64-netbsd: Likewise.
8555
8556 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
8557
8558 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
8559 the access path from base to first VIEW_CONVERT_EXPR or
8560 BIT_FIELD_REF.
8561
8562 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
8563
8564 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
8565 access path on BIT_FIELD_REFs.
8566
8567 2019-06-17 Martin Liska <mliska@suse.cz>
8568
8569 PR ipa/90874
8570 * ipa-utils.h (odr_type_p): Remove dead code.
8571
8572 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8573
8574 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
8575 alternative Solaris 11.4 format.
8576 * configure: Regenerate.
8577
8578 2019-06-17 Tom de Vries <tdevries@suse.de>
8579
8580 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
8581 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
8582 match_operand 0.
8583 (define_insn "call_value_insn"): Rename to ...
8584 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
8585 match_operand 0.
8586 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
8587 DI.
8588
8589 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
8590
8591 PR middle-end/64242
8592 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
8593 frame clobbers and schedule block.
8594 (builtin_longjmp): Likewise.
8595
8596 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8597
8598 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
8599 describe how to perform MSPABI compliant 64-bit shift.
8600 * config/msp430/msp430.md (ashldi3): New define_expand.
8601 (ashrdi3): New define_expand.
8602 (lshrdi3): New define_expand.
8603
8604 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8605
8606 * doc/sourcebuild.texi: Document new effective target keyword
8607 longlong64.
8608
8609 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
8610
8611 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
8612 indirect_refs_may_alias_p): Revert accidental commits.
8613
8614 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
8615 at the end of structures.
8616
8617 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
8618
8619 * config/darwin.c (machopic_indirect_call_target): Use renamed
8620 darwin_picsymbol_stubs to decide on output.
8621 (darwin_override_options): Handle darwin_picsymbol_stubs.
8622 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
8623 (LD64_VERSION): Revise default.
8624 * config/darwin.opt: (mpic-symbol-stubs): New option.
8625 (darwin_picsymbol_stubs): New variable.
8626 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
8627 rename to TARGET_MACHO_PICSYM_STUBS.
8628 * config/i386/i386.c (output_pic_addr_const): Likewise.
8629 * config/i386/i386.h Likewise.
8630 * config/rs6000/darwin.h: Likewise.
8631 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
8632 darwin_picsymbol_stubs.
8633
8634 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
8635
8636 * config/darwin.opt (prebind, noprebind, seglinkedit,
8637 noseglinkedit): Add RejectNegative.
8638
8639 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
8640
8641 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
8642 in my previous patch.
8643
8644 2019-06-16 Tom de Vries <tdevries@suse.de>
8645
8646 PR tree-optimization/89376
8647 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
8648
8649 2019-06-15 Maya Rashish <coypu@sdf.org>
8650
8651 * doc/invoke.texi (Spec Files): Update location of the
8652 Fortran spec file.
8653
8654 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
8655
8656 * doc/extend.texi (Common Function Attributes): Clarify
8657 no_sanitize. Fix grammar.
8658
8659 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
8660
8661 * tree-ssa-alias.c (alias_stats): Add
8662 nonoverlapping_component_refs_p_may_alias,
8663 nonoverlapping_component_refs_p_no_alias,
8664 nonoverlapping_component_refs_of_decl_p_may_alias,
8665 nonoverlapping_component_refs_of_decl_p_no_alias.
8666 (dump_alias_stats): Dump them.
8667 (nonoverlapping_component_refs_of_decl_p): Add stats.
8668 (nonoverlapping_component_refs_p): Add stats; do not stop on first
8669 ARRAY_REF.
8670
8671 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
8672
8673 * config/i386/i386.md (and<mode>3): Generate zero-extends for
8674 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
8675 only.
8676 (*anddi3_doubleword): Split before reload. Merge with
8677 anddi->zext pre-reload splitter.
8678 (*andndi3_doubleword): Split before reload.
8679 (*<code>di3_doubleword): Ditto.
8680 (*one_cmpldi2_doubleword): Ditto.
8681
8682 2019-06-15 Jakub Jelinek <jakub@redhat.com>
8683
8684 PR middle-end/90779
8685 * gimplify.c: Include omp-offload.h and context.h.
8686 (gimplify_bind_expr): Add "omp declare target" attributes
8687 to static block scope variables inside of target region or target
8688 functions.
8689
8690 2019-06-15 Tom de Vries <tdevries@suse.de>
8691
8692 PR tree-optimization/90009
8693 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
8694 Return NULL if bb contains IFN_UNIQUE.
8695
8696 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
8697
8698 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
8699 (un): New define_mode_attr.
8700 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
8701 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
8702 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
8703 merge into ...
8704 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
8705
8706 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
8707
8708 * config/darwin.opt: Add RejectNegative where needed, reorder
8709 and add minimal functional descriptions.
8710
8711 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
8712
8713 PR rtl-optimization/90765
8714 * calls.c (update_stack_alignment_for_call): New function.
8715 (expand_call): Call update_stack_alignment_for_call when
8716 outgoing parameter is passed in the stack.
8717 (emit_library_call_value_1): Likewise.
8718 * function.c (locate_and_pad_parm): Don't update
8719 stack_alignment_needed and preferred_stack_boundary.
8720
8721 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
8722
8723 PR target/90877
8724 * config/i386/i386-features.c
8725 (dimode_scalar_chain::compute_convert_gain): Replace
8726 mmxsse_to_integer with sse_to_integer.
8727 * config/i386/i386.c (ix86_register_move_cost): Verify that
8728 moves between MMX and non-MMX units require secondary memory.
8729 Correct costs of moves between SSE and integer units.
8730 * config/i386/i386.h (processor_costs): Rename cost of moving
8731 SSE register to integer to sse_to_integer. Rename cost of
8732
8733 2019-06-14 Matt Thomas <matt@3am-software.com>
8734 Matthew Green <mrg@eterna.com.au>
8735 Nick Hudson <skrll@netbsd.org>
8736 Maya Rashish <coypu@sdf.org>
8737 Richard Earnshaw <rearnsha@arm.com>
8738
8739 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
8740 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
8741 * config/arm/netbsd-eabi.h: New file.
8742 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
8743 redefining.
8744 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
8745 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
8746 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
8747 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
8748
8749 2019-06-14 Richard Biener <rguenther@suse.de>
8750
8751 * tree-loop-distribution.c (classify_partition): Return
8752 whether a reduction appeared in all partitions and do not
8753 stop builtin detection because of this.
8754 (distribute_loop): Sort a non-builtin partition last if
8755 there's a reduction in all partitions and make sure the
8756 partition prevailing as last is not a builtin.
8757
8758 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
8759
8760 PR ipa/90401
8761 * ipa-prop.c (add_to_agg_contents_list): New function.
8762 (clobber_by_agg_contents_list_p): Likewise.
8763 (extract_mem_content): Likewise.
8764 (get_place_in_agg_contents_list): Delete.
8765 (determine_known_aggregate_parts): Renamed from
8766 determine_locally_known_aggregate_parts. New parameter
8767 aa_walk_budget_p.
8768
8769 2019-06-13 Martin Sebor <msebor@redhat.com>
8770
8771 PR tree-optimization/90662
8772 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
8773 to the same type.
8774
8775 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
8776
8777 PR bootstrap/90873
8778 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
8779 dbase is not TARGET_MEM_REF.
8780
8781 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
8782
8783 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
8784 Update all uses.
8785 (and<mode>3): Use gen_extend_insn instead of indirect functions.
8786 Do not generate DImode extends for 32bit targets.
8787 (and->zext post-reload splitter): Use gen_extend_insn
8788 instead of indirect functions.
8789 (anddi->zext pre-reload splitter): New.
8790 (*zext<mode>_doubleword_and): Remove.
8791 (*zext<mode>_doubleword): Ditto.
8792 (*zextsi_doubleword): Dittto.
8793
8794 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
8795
8796 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
8797 Use gen_sub3_insn instead of indirect function.
8798 (ix86_expand_ashl_const): Use gen_add2_insn instead of
8799 indirect function.
8800 (ix86_adjust_counter): Ditto.
8801
8802 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
8803 Lijia He <helijia@linux.ibm.com>
8804
8805 PR tree-optimization/77820
8806 * tree-ssa-threadedge.c
8807 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
8808 function.
8809 (thread_across_edge): Add call to
8810 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
8811
8812 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
8813
8814 * config/darwin-driver.c (validate_macosx_version_min): New.
8815 (darwin_default_min_version): Cleanup and validate supplied version.
8816 (darwin_driver_init): Likewise and push cleaned version into opts.
8817
8818 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
8819
8820 PR tree-optimization/90869
8821 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
8822 converts in MEM_REF referencing decl rather than view converts
8823 from decl type to MEM_REF type.
8824
8825 2019-06-13 Richard Biener <rguenther@suse.de>
8826
8827 PR tree-optimization/90856
8828 * tree-sra.c (build_ref_for_model): Only use
8829 build_reconstructed_reference when address-spaces are the same.
8830
8831 2019-06-13 Jakub Jelinek <jakub@redhat.com>
8832
8833 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
8834 wrap ei variable name in the declaration in ()s.
8835 (nvptx_single): Actually use mode_label variable. Formatting fix.
8836
8837 2019-06-13 Richard Biener <rguenther@suse.de>
8838
8839 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
8840 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
8841 also return the condition stmt.
8842 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
8843 loop we can version and version that, reusing the loop version
8844 created by if-conversion instead of versioning again.
8845
8846 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
8847
8848 * gimple-loop-versioning.cc (prune_loop_conditions): Use
8849 may_contain_p.
8850 * tree-vrp (value_range_base::may_contain_p): Call into
8851 value_inside_range.
8852 (value_inside_range): Make private inside value_range_base class.
8853 Take min/max from *this.
8854 (range_includes_p): Remove.
8855 * tree-vrp.h (value_range_base): Add value_inside_range.
8856 (range_includes_p): Remove.
8857 (range_includes_zero_p): Call may_contain_p.
8858 * vr-values.c (compare_range_with_value): Same.
8859
8860 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
8861
8862 * doc/extend.texi (ARC Function Attributes): Update info.
8863
8864 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
8865
8866 PR tree-optimization/89713
8867 * doc/invoke.texi (-ffinite-loops): Document new option.
8868 * common.opt (-ffinite-loops): New option.
8869 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
8870 IFN_GOACC_LOOP calls as necessary.
8871 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
8872 is finite.
8873 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
8874 IFN_GOACC_LOOP call is not used.
8875 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
8876
8877 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8878
8879 PR target/88838
8880 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
8881 compare_type is not with Pmode size, we will create an IV with
8882 Pmode size with truncated use (i.e. converted to the correct type).
8883 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
8884 (vect_iv_limit_for_full_masking): New. Factored out of
8885 vect_set_loop_condition_masked.
8886 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
8887 (vect_iv_limit_for_full_masking): Declare.
8888
8889 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8890
8891 PR target/88834
8892 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
8893 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
8894 (get_alias_ptr_type_for_ptr_address): Likewise.
8895 (add_iv_candidate_for_use): Add scaled index candidate if useful.
8896 * tree-ssa-address.c (preferred_mem_scale_factor): New.
8897 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
8898 allow_reg_index_p.
8899
8900 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8901
8902 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
8903
8904 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
8905
8906 * common/config/pru/pru-common.c: New file.
8907 * config.gcc: Add PRU target.
8908 * config/pru/alu-zext.md: New file.
8909 * config/pru/constraints.md: New file.
8910 * config/pru/predicates.md: New file.
8911 * config/pru/pru-opts.h: New file.
8912 * config/pru/pru-passes.c: New file.
8913 * config/pru/pru-pragma.c: New file.
8914 * config/pru/pru-protos.h: New file.
8915 * config/pru/pru.c: New file.
8916 * config/pru/pru.h: New file.
8917 * config/pru/pru.md: New file.
8918 * config/pru/pru.opt: New file.
8919 * config/pru/t-pru: New file.
8920 * doc/extend.texi: Document PRU pragmas.
8921 * doc/invoke.texi: Document PRU-specific options.
8922 * doc/md.texi: Document PRU asm constraints.
8923
8924 2019-06-12 Martin Sebor <msebor@redhat.com>
8925
8926 PR middle-end/90676
8927 * tree-pretty-print.c (dump_mem_ref): New function. Include
8928 MEM_REF type in output when different size than operand.
8929 (dump_generic_node): Move code to dump_mem_ref and call it.
8930
8931 2019-06-12 Martin Sebor <msebor@redhat.com>
8932
8933 PR tree-optimization/90662
8934 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
8935 to arrays.
8936
8937 2019-06-12 Tom de Vries <tdevries@suse.de>
8938
8939 PR tree-optimization/90009
8940 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
8941
8942 2019-06-12 Martin Liska <mliska@suse.cz>
8943
8944 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
8945 the created map.
8946 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
8947 * mem-stats.h (mem_alloc_description::mem_alloc_description):
8948 Do not sanitize created maps.
8949
8950 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
8951
8952 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
8953 value_range::singleton_p.
8954 * tree-vrp.c (value_range_constant_singleton): Remove.
8955 * tree-vrp.h (value_range_constant_singleton): Remove.
8956 * vr-values.c (vr_values::singleton): Use
8957 value_range::singleton_p.
8958
8959 2019-06-12 Jakub Jelinek <jakub@redhat.com>
8960
8961 PR target/90811
8962 * cfgexpand.c (align_local_variable): Add really_expand argument,
8963 don't SET_DECL_ALIGN if it is false.
8964 (add_stack_var): Add really_expand argument, pass it through to
8965 align_local_variable.
8966 (expand_one_stack_var_1): Pass true as really_expand to
8967 align_local_variable.
8968 (expand_one_ssa_partition): Pass true as really_expand to
8969 add_stack_var.
8970 (expand_one_var): Pass really_expand through to add_stack_var.
8971
8972 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
8973
8974 * config/arm/iterators.md (VABAL): New int iterator.
8975 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
8976 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
8977 UNSPEC_VABAL_U values.
8978
8979 2019-06-12 Martin Liska <mliska@suse.cz>
8980
8981 * value-prof.c (stream_out_histogram_value): Only first value
8982 can't be negative.
8983
8984 2019-06-12 Jakub Jelinek <jakub@redhat.com>
8985
8986 PR c/90760
8987 * symtab.c (symtab_node::set_section): Allow being called on aliases
8988 as long as they aren't analyzed yet.
8989
8990 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
8991
8992 * config/mips/mips.c (mips_final_postscan_insn): Modify call
8993 to `mips_set_text_contents_type' to indicate whether a
8994 non-debug insn follows.
8995
8996 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
8997
8998 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
8999 enabling -mpcrel by default.
9000 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
9001 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
9002 that the test against -mcpu=future is done first. Then test if
9003 -mprefixed-addr is on for -mpcrel.
9004 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
9005
9006 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9007
9008 PR target/90811
9009 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
9010 instead of and.u%d.
9011
9012 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
9013
9014 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
9015
9016 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
9017
9018 PR c++/90449 - add -Winaccessible-base option.
9019 * doc/invoke.texi (Winaccessible-base): Document.
9020
9021 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
9022
9023 PR tree-optimization/62041
9024 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
9025
9026 2019-06-11 Jason Merrill <jason@redhat.com>
9027
9028 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
9029 * tree.c (get_tree_code_name): Likewise.
9030 * print-tree.c (print_node): Only briefly print a node with an
9031 invalid code.
9032
9033 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9034
9035 PR bootstrap/90819
9036 * trans-mem.c (tm_memopt_compute_available): Add assertion
9037 that blocks is not empty. Formatting fix.
9038
9039 2019-06-11 Martin Liska <mliska@suse.cz>
9040
9041 PR c++/87847
9042 * hash-table.h: Extend create_gcc, add one parameter
9043 that is passed into hash_table::hash_table.
9044
9045 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
9046
9047 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
9048 New prototype.
9049 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
9050 Emit clobber also for non-sse operations.
9051 (ix86_split_fp_absneg_operator): New function.
9052 * config/i386/i386.md (SSEMODEF): New mode iterator.
9053 (ssevecmodef): New mode attribute.
9054 (<code>tf2): Use absneg code iterator.
9055 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
9056 Add three-operand AVX alternatives.
9057 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
9058 Use absneg code iterator and X87MODEF mode iterator.
9059 (absneg fp_reg non-sse splitter): Call absneg code iterator
9060 and X87MODEF mode iterator.
9061 (absneg general_reg non-sse splitter): Use absneg code iterator
9062 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
9063 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
9064 code iterator. Add three-operand AVX alternative.
9065 (absneg sse_reg splitter): Use absneg code iterator
9066 and SSEMODEF mode iterator. Handle AVX operands.
9067 (absneg fp_reg splitter): Use absneg code iterator
9068 and MODEF mode iterator.
9069 (absneg general_reg splitter): Merge splitters using MODEF mode
9070 iterator. Use absneg code iterator. Call
9071 ix86_split_fp_absneg_operator.
9072 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
9073 Do not enable for non-sse modes before reload.
9074 (CSGNMODE): Remove.
9075 (CSGNVMODE): Ditto.
9076 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
9077 ssevecmodef mode attribute instaed of CSGNVMODE.
9078 (copysign<mode>3_const): Ditto.
9079 (copysign<mode>3_var): Ditto.
9080 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
9081 Use absneg code iterator. Simplify code using std::swap.
9082 * config/i386/predicates.md (absneg_operator): Remove.
9083
9084 2019-06-10 Martin Sebor <msebor@redhat.com>
9085
9086 * gimple-fold.c (get_range_strlen): Update comment that didn't
9087 make it into r267503 or related commits.
9088
9089 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
9090
9091 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
9092 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
9093
9094 2019-06-10 Jakub Jelinek <jakub@redhat.com>
9095
9096 * tree.def (OMP_SCAN): New tree code.
9097 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
9098 OMP_CLAUSE_EXCLUSIVE.
9099 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
9100 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
9101 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
9102 OMP_CLAUSE_{IN,EX}CLUSIVE.
9103 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
9104 * tree-nested.c (convert_nonlocal_reference_stmt,
9105 convert_local_reference_stmt, convert_gimple_call): Handle
9106 GIMPLE_OMP_SCAN.
9107 * tree-pretty-print.c (dump_omp_clause): Handle
9108 OMP_CLAUSE_{IN,EX}CLUSIVE.
9109 (dump_generic_node): Handle OMP_SCAN.
9110 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
9111 * gimple.h (gomp_scan): New type.
9112 (is_a_helper <gomp_scan *>::test,
9113 is_a_helper <const gomp_scan *>::test): New templates.
9114 (gimple_build_omp_scan): Declare.
9115 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
9116 gimple_omp_scan_set_clauses): New inline functions.
9117 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
9118 * gimple.c (gimple_build_omp_scan): New function.
9119 (gimple_copy): Handle GIMPLE_OMP_SCAN.
9120 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
9121 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
9122 GIMPLE_OMP_TASKGROUP.
9123 (dump_gimple_omp_scan): New function.
9124 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
9125 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
9126 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
9127 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
9128 (is_gimple_stmt): Handle OMP_SCAN.
9129 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
9130 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
9131 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
9132 mentioned in nested #pragma omp scan. Handle
9133 OMP_CLAUSE_{IN,EX}CLUSIVE.
9134 (gimplify_expr): Handle OMP_SCAN.
9135 * omp-low.c (check_omp_nesting_restrictions): For parent context,
9136 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
9137 simd constructs.
9138 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
9139 GIMPLE_OMP_SCAN.
9140
9141 2019-06-10 Martin Liska <mliska@suse.cz>
9142
9143 * ipa-cp.c (ignore_edge_p): New function.
9144 (build_toporder_info): Use it.
9145 * ipa-inline.c (ignore_edge_p): New function.
9146 (inline_small_functions): Use it.
9147 * ipa-pure-const.c (ignore_edge_for_nothrow):
9148 Verify opt_for_fn for caller and callee.
9149 (ignore_edge_for_pure_const): Likewise.
9150 * ipa-reference.c (ignore_edge_p): Extend to check
9151 for opt_for_fn.
9152 * ipa-utils.c (searchc): Refactor.
9153 * ipa-utils.h: Fix coding style.
9154
9155 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
9156
9157 * config/arc/arc.c (arc_rtx_costs): Update costs.
9158
9159 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
9160
9161 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
9162 (arc_split_ior): Likewise.
9163 (arc_check_mov_const): Likewise.
9164 (arc_split_mov_const): Likewise.
9165 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
9166 (arc_rtx_costs): Replace check Crr with Cax constraint.
9167 (prepare_move_operands): Cleanup, remove unused code.
9168 (arc_split_ior): New function.
9169 (arc_check_ior_const): Likewise.
9170 (arc_split_mov_const): Likewise.
9171 (arc_check_mov_const): Likewise.
9172 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
9173 in define_insn_and_split pattern.
9174 (iorsi3): Likewise.
9175 (mulsi3_v2): Add new matching variant.
9176 (andsi3_i): Cleanup pattern.
9177 (rotrsi3_cnt1): Update pattern.
9178 (rotrsi3_cnt8): New pattern.
9179 (ashlsi2_cnt8): Likewise.
9180 (ashlsi2_cnt16): Likewise.
9181 * config/arc/constraints.md (C0p): Update constraint.
9182 (Crr): Remove it.
9183 (C0x): New pattern.
9184 (Cax): New pattern.
9185
9186 2019-06-10 Martin Liska <mliska@suse.cz>
9187
9188 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
9189 Update coding style.
9190 (sem_item_optimizer::dump_cong_classes):
9191 Print how many items are in a non-singular class. Improve
9192 coding style.
9193
9194 2019-06-10 Martin Liska <mliska@suse.cz>
9195
9196 * value-prof.c (dump_histogram_value): Change dump format.
9197 (gimple_mod_subtract_transform): Remove legacy comment.
9198
9199 2019-06-10 Martin Liska <mliska@suse.cz>
9200
9201 * value-prof.c (dump_histogram_value): Print histogram values
9202 only if present.
9203
9204 2019-06-10 Martin Liska <mliska@suse.cz>
9205
9206 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
9207 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
9208 * ipa-profile.c (ipa_profile_generate_summary):
9209 Use get_most_common_single_value.
9210 * tree-profile.c (gimple_init_gcov_profiler):
9211 Instrument with __gcov_one_value_profiler_v2
9212 and __gcov_indirect_call_profiler_v4.
9213 * value-prof.c (dump_histogram_value):
9214 Print all values for HIST_TYPE_SINGLE_VALUE.
9215 (stream_out_histogram_value): Update assert for
9216 N values.
9217 (stream_in_histogram_value): Set number of
9218 counters for HIST_TYPE_SINGLE_VALUE.
9219 (get_most_common_single_value): New.
9220 (gimple_divmod_fixed_value_transform):
9221 Use get_most_common_single_value.
9222 (gimple_ic_transform): Likewise.
9223 (gimple_stringops_transform): Likewise.
9224 (gimple_find_values_to_profile): Set number
9225 of counters for HIST_TYPE_SINGLE_VALUE.
9226 * value-prof.h (get_most_common_single_value): New.
9227
9228 2019-06-10 Martin Liska <mliska@suse.cz>
9229
9230 * hash-map.h: Pass default value to hash_table ctor.
9231 * hash-table.h: Add default value to call of a ctor.
9232
9233 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
9234
9235 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
9236 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
9237
9238 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
9239
9240 PR target/90751
9241 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
9242 Call pa_output_function_label.
9243 (TARGET_ASM_FUNCTION_PROLOGUE): define.
9244 * config/pa/pa-protos.h (pa_output_function_label): Declare.
9245 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
9246 to declaration.
9247 (pa_linux_output_function_prologue): Declare.
9248 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
9249 (pa_output_function_label): New.
9250 (pa_output_function_prologue): Revise to use pa_output_function_label.
9251 (pa_linux_output_function_prologue): New.
9252 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
9253
9254 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
9255
9256 * tree-vrp.h (value_range_base::intersect): New.
9257 (value_range::intersect_helper): Move from here...
9258 (value_range_base::intersect_helper): ...to here.
9259 * tree-vrp.c (value_range::intersect_helper): Rename to...
9260 (value_range_base::intersect_helper): ...this, and rewrite to
9261 return a value instead of modifying THIS in place.
9262 Also, move equivalence handling...
9263 (value_range::intersect): ...here, while calling intersect_helper.
9264 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
9265 calling intersect.
9266 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
9267 Same.
9268 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
9269
9270 2019-06-07 Jakub Jelinek <jakub@redhat.com>
9271
9272 * Makefile.in (genprogerr): Add condmd.
9273 (genprog): Remove it here.
9274
9275 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
9276
9277 * doc/invoke.texi (AMD GCN Options): Add gfx906.
9278
9279 2019-06-07 Richard Biener <rguenther@suse.de>
9280
9281 PR debug/90574
9282 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
9283 that appear after user labels.
9284
9285 2019-06-07 Martin Liska <mliska@suse.cz>
9286
9287 * cselib.c (cselib_init): Disable hash table
9288 sanitization.
9289 * hash-set.h: Pass new default argument to m_table.
9290 * hash-table.c: Add global variable with hash table
9291 sanitization limit.
9292 * hash-table.h (Allocator>::hash_table): Add new argument
9293 to ctor.
9294 (hashtab_chk_error): New.
9295 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
9296 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
9297 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
9298
9299 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
9300
9301 * common.opt (flto-odr-type-merging): Ignore.
9302 * invoke.texi (-flto-odr-type-merging): Remove.
9303 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
9304 (can_be_vtable_hashed_p): Remove.
9305 (hash_odr_vtable): Remove.
9306 (odr_vtable_hasher::hash): Remove.
9307 (types_same_for_odr): Remove.
9308 (types_odr_comparable): Remove.
9309 (odr_vtable_hasher::equal): Remove.
9310 (odr_vtable_hash_type, odr_vtable_hash): Remove.
9311 (add_type_duplicate): Do not synchronize vtable and name hashtables.
9312 (get_odr_type): Do not use vtable hash.
9313 (dump_odr_type): Remove commented out code.
9314 (build_type_inheritance_graph): Do not allocate vtable hash.
9315 (rebuild_type_inheritance_graph): Do not delete vtable hash.
9316 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
9317 (odr_type_p): Likewise.
9318 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
9319 test.
9320
9321 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
9322
9323 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
9324 immediately after same_types_for_tbaa_p returns -1 and continue
9325 looking for possible exact match; if matching types are arrays
9326 watch for partial overlaps.
9327 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
9328 (indirect_refs_may_alias_p): Do type based disambiguation first;
9329 update comment.
9330
9331 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
9332
9333 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
9334
9335 2019-06-07 Martin Liska <mliska@suse.cz>
9336
9337 * doc/invoke.texi: Remove param.
9338 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
9339 Remove.
9340 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
9341 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
9342 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
9343 * profile.c (instrument_values): Remove
9344 HIST_TYPE_INDIR_CALL_TOPN.
9345 * tree-profile.c (init_ic_make_global_vars):
9346 Always build __gcov_indirect_call only.
9347 (gimple_init_gcov_profiler): Remove usage
9348 of PARAM_INDIR_CALL_TOPN_PROFILE.
9349 (gimple_gen_ic_profiler): Likewise.
9350 * value-prof.c (dump_histogram_value): Likewise.
9351 (stream_in_histogram_value): Likewise.
9352 (gimple_indirect_call_to_profile): Likewise.
9353 (gimple_find_values_to_profile): Likewise.
9354 * value-prof.h (enum hist_type): Likewise.
9355
9356 2019-06-07 Martin Liska <mliska@suse.cz>
9357
9358 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
9359 function.
9360
9361 2019-06-07 Martin Liska <mliska@suse.cz>
9362
9363 PR tree-optimization/78902
9364 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
9365 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
9366 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
9367 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
9368 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
9369 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
9370 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
9371 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
9372 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
9373 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
9374 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
9375 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
9376 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
9377 New.
9378 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
9379 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
9380 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
9381 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
9382 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
9383 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
9384 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
9385 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
9386 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
9387 warn_unused_result attribute.
9388 (BUILT_IN_STRDUP): Likewise.
9389 (BUILT_IN_STRNDUP): Likewise.
9390 (BUILT_IN_ALLOCA): Likewise.
9391 (BUILT_IN_CALLOC): Likewise.
9392 (BUILT_IN_MALLOC): Likewise.
9393 (BUILT_IN_REALLOC): Likewise.
9394
9395 2019-06-06 Jim Wilson <jimw@sifive.com>
9396
9397 PR target/89955
9398 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
9399 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
9400 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
9401
9402 2019-06-06 Martin Sebor <msebor@redhat.com>
9403
9404 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
9405 (handle_builtin_malloc): Remove trailing spaces.
9406 (handle_builtin_memset): Same.
9407 (handle_builtin_memcmp): Same.
9408 (compute_string_length): Same.
9409 (determine_min_objsize): Same.
9410 (handle_builtin_string_cmp): Same.
9411 (handle_char_store): Same. Break up excessively long line.
9412
9413 2019-06-06 Martin Jambor <mjambor@suse.cz>
9414
9415 * tree-sra.c (build_reconstructed_reference): Drop the alignment
9416 check.
9417
9418 2019-06-06 Martin Jambor <mjambor@suse.cz>
9419
9420 * tree-sra.c (struct access): New field grp_same_access_path.
9421 (dump_access): Dump it.
9422 (build_reconstructed_reference): New function.
9423 (build_ref_for_model): Use it if possible.
9424 (path_comparable_for_same_access): New function.
9425 (same_access_path_p): Likewise.
9426 (sort_and_splice_var_accesses): Set the new flag.
9427 (analyze_access_subtree): Likewise.
9428 (propagate_subaccesses_across_link): Propagate zero value of the new
9429 flag down the access tree.
9430
9431 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
9432
9433 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
9434 * config/gcn/gcn.opt (gpu_type): Add gfx906.
9435 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
9436 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
9437 Add gfx906.
9438
9439 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9440
9441 PR tree-optimization/90332
9442 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
9443 Handle VALS containing two vectors.
9444 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
9445 to...
9446 (@aarch64_combinez<mode>): ... This.
9447 (*aarch64_combinez_be<mode>): Rename to...
9448 (@aarch64_combinez_be<mode>): ... This.
9449 (vec_init<mode><Vhalf>): New define_expand.
9450 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
9451
9452 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9453
9454 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
9455 library functions only when not optimizing for size.
9456 (ashlsi3): Likewise.
9457 (ashrhi3): Likewise.
9458 (ashrsi3): Likewise.
9459 (lshrhi3): Likewise.
9460 (lshrsi3): Likewise.
9461
9462 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
9463
9464 PR rtl-optimization/88751
9465 * ira.c (ira): Use the number of the actually referenced registers
9466 when calculating the threshold.
9467
9468 2019-06-06 Jakub Jelinek <jakub@redhat.com>
9469
9470 * configure: Regenerate.
9471
9472 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9473
9474 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
9475 register if it is in memory, so the shift can be emulated with a rotate
9476 instruction.
9477 (ashrhi3): Likewise.
9478 (lshrhi3): Likewise.
9479
9480 2019-06-06 Martin Liska <mliska@suse.cz>
9481
9482 PR tree-optimization/87954
9483 * match.pd: Simplify mult where both arguments are 0 or 1.
9484
9485 2019-06-06 Richard Biener <rguenther@suse.de>
9486
9487 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
9488 put equivalences on UNDEFINED ranges.
9489 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9490 Make sure to drop defs of stmts added during simplification
9491 to VARYING.
9492
9493 2019-06-06 Richard Biener <rguenther@suse.de>
9494
9495 * tree-ssa-structalias.c: Include tree-cfg.h.
9496 (make_heapvar): Do not make heap vars artificial.
9497 (find_func_aliases_for_builtin_call): Handle stack allocation
9498 functions.
9499 (find_func_aliases): Delay processing of simple enough returns
9500 in non-IPA mode.
9501 (set_uids_in_ptset): Adjust.
9502 (find_what_var_points_to): Likewise.
9503 (solve_constraints): Do not dump points-to sets here.
9504 (compute_points_to_sets): Post-process return statements,
9505 amending the escaped solution. Dump points-to sets afterwards.
9506 (ipa_pta_execute): Dump points-to sets.
9507
9508 2019-06-06 Martin Liska <mliska@suse.cz>
9509
9510 PR web/87933
9511 * doc/install.texi: Fix HTML headers and
9512 titles for 'Installing GCC' pages.
9513
9514 2019-06-06 Martin Liska <mliska@suse.cz>
9515
9516 * ipa-icf-gimple.h (dump_message_1): Remove.
9517 (dump_message): Likewise.
9518 (return_false_with_message_1): Print also file.
9519 (return_false_with_msg): Likewise.
9520 (return_with_result): Likewise.
9521 (return_with_debug): Likewise.
9522 * ipa-icf.c (sem_function::equals_private): Remove call
9523 to dump_message.
9524
9525 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
9526
9527 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
9528 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
9529 memory operand for it.
9530 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
9531
9532 2019-06-05 Martin Sebor <msebor@redhat.com>
9533
9534 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
9535 Adjust quoting and hyphenation.
9536 * convert.c (convert_to_real_1): Same.
9537 * gcc.c (driver_wrong_lang_callback): Same.
9538 (driver::handle_unrecognized_options): Same.
9539 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
9540 * opts-common.c (cmdline_handle_error): Same.
9541 (read_cmdline_option): Same.
9542 * opts-global.c (complain_wrong_lang): Same.
9543 (print_ignored_options): Same.
9544 (handle_common_deferred_options): Same.
9545 * pretty-print.h: Same.
9546 * print-rtl.c (debug_bb_n_slim): Same.
9547 * sched-rgn.c (make_pass_sched_fusion): Same.
9548 * tree-cfg.c (verify_gimple_assign_unary): Same.
9549 (verify_gimple_label): Same.
9550 * tree-ssa-operands.c (verify_ssa_operands): Same.
9551 * varasm.c (do_assemble_alias): Same.
9552 (assemble_alias): Same.
9553
9554 2019-06-05 Richard Henderson <rth@twiddle.net>
9555
9556 * config/alpha/alpha.c (direct_return): Move down after
9557 struct machine_function definition; use saved frame_size;
9558 return bool.
9559 (struct machine_function): Add sa_mask, sa_size, frame_size.
9560 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
9561 (alpha_compute_frame_layout): ... new function.
9562 (TARGET_COMPUTE_FRAME_LAYOUT): New.
9563 (alpha_initial_elimination_offset): Use saved sa_size.
9564 (alpha_vms_initial_elimination_offset): Likewise.
9565 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
9566 (alpha_expand_prologue): Use saved frame data. Merge integer
9567 and fp register save loops.
9568 (alpha_expand_epilogue): Likewise.
9569 (alpha_start_function): Use saved frame data.
9570 * config/alpha/alpha-protos.h (direct_return): Update.
9571 (alpha_sa_size): Remove.
9572
9573 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
9574
9575 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
9576 multiplication by a power-of-two value.
9577 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
9578 and turn the modulo operation into a masking operation.
9579
9580 2019-06-05 Jakub Jelinek <jakub@redhat.com>
9581
9582 PR debug/90733
9583 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
9584 with VOIDmode inner operands.
9585
9586 2019-06-05 Richard Biener <rguenther@suse.de>
9587
9588 PR middle-end/90726
9589 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
9590 turn an expression graph into a tree.
9591
9592 2019-06-05 Jakub Jelinek <jakub@redhat.com>
9593
9594 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
9595 member.
9596 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
9597 treat it like explicit monotonic schedule modifier.
9598 (expand_omp_for): Initialize has_lastprivate_conditional.
9599 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
9600 schedule modifier.
9601
9602 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
9603 references, lookup in in hash map MEM_REF operand instead of the
9604 MEM_REF itself.
9605 (lower_omp_1): When looking for lastprivate conditional assignments,
9606 handle MEM_REFs with REFERENCE_TYPE operands.
9607
9608 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
9609 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
9610 and references a VLA. Handle references to non-VLAs if is_simd
9611 all privatization clauses like reductions.
9612 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
9613 If omp_is_reference, use always omp simd arrays and set
9614 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
9615 fails, emit reference initialization.
9616
9617 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
9618
9619 PR target/89803
9620 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
9621 _mm_mask_fpclass_sd_mask): New intrinsics.
9622 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
9623 * config/i386/i386-builtin.def
9624 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
9625 New builtins.
9626 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
9627 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
9628 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
9629 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
9630 case QI_FTYPE_V2SF_INT): Ditto.
9631 * config/i386/sse.md
9632 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
9633 Extended to insnstructions with mask operands.
9634
9635 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9636
9637 * config/rs6000/constraints.md (define_register_constraint "wp"):
9638 Delete.
9639 (define_register_constraint "wq"): Delete.
9640 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9641 (rs6000_init_hard_regno_mode_ok): Adjust.
9642 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9643 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
9644 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
9645 (define_mode_attr VSa): Delete.
9646 (define_mode_attr VSisa): New.
9647 (rest of file): Adjust.
9648 * doc/md.texi (Machine Constraints): Adjust.
9649
9650 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9651
9652 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
9653 (define_attr "enabled"): Handle those new isa values.
9654
9655 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9656
9657 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
9658 (define_mode_attr VSr5): Delete.
9659 (define_mode_attr VStype_sqrt): Delete.
9660 (define_mode_iterator VSX_SPDP): Delete.
9661 (define_mode_attr VS_spdp_res): Delete.
9662 (define_mode_attr VS_spdp_insn): Delete.
9663 (define_mode_attr VS_spdp_type): Delete.
9664 (*vsx_sqrt<mode>2): Adjust.
9665 (vsx_<VS_spdp_insn>): Delete, split to...
9666 (vsx_xscvdpsp): ... this. New. And...
9667 (vsx_xvcvspdp): ... this. New. And...
9668 (vsx_xvcvdpsp): ... this. New.
9669
9670 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9671
9672 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
9673 and V2DF.
9674 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
9675 (rest of file): Adjust.
9676
9677 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9678
9679 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
9680 (vsx_extract_<mode>_var): Ditto.
9681
9682 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9683
9684 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
9685 with just "wa".
9686
9687 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9688
9689 * config/rs6000/constraints.md (define_register_constraint "ww"):
9690 Delete.
9691 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9692 (rs6000_init_hard_regno_mode_ok): Adjust.
9693 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9694 RS6000_CONSTRAINT_ww.
9695 * config/rs6000/rs6000.md: Adjust.
9696 * config/rs6000/vsx.md: Adjust.
9697 * doc/md.texi (Machine Constraints): Adjust.
9698
9699 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9700
9701 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
9702 (define_mode_attr sd): New.
9703 (define_mode_attr s): New.
9704 (define_mode_attr Ftrad): Delete.
9705 (define_mode_attr Fvsx): Delete.
9706 (define_mode_attr Fs): Delete.
9707 (rest of file): Use the new mode attributes.
9708 * config.rs6000/vsx.md: Use the new mode attributes.
9709
9710 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9711
9712 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
9713 with just "wa".
9714
9715 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9716
9717 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
9718 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
9719 used with VSX_B, VSX_D, or VSX_F, with just "wa".
9720
9721 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
9722
9723 PR target/78263
9724 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
9725 C++ with strict ANSI requirements.
9726
9727 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
9728
9729 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
9730 computations when step is 1.
9731
9732 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9733
9734 * config/rs6000/constraints.md (define_register_constraint "wf"):
9735 Delete.
9736 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9737 (rs6000_init_hard_regno_mode_ok): Adjust.
9738 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9739 RS6000_CONSTRAINT_wf.
9740 * config/rs6000/rs6000.md: Adjust.
9741 * config/rs6000/vsx.md: Adjust.
9742 * doc/md.texi (Machine Constraints): Adjust.
9743
9744 2019-06-04 Andrew Pinski <apinski@marvell.com>
9745
9746 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
9747 Fix ILP32 value.
9748
9749 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9750
9751 * config/rs6000/constraints.md (define_register_constraint "wd"):
9752 Delete.
9753 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9754 (rs6000_init_hard_regno_mode_ok): Adjust.
9755 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9756 RS6000_CONSTRAINT_wd.
9757 * config/rs6000/rs6000.md: Adjust.
9758 * config/rs6000/vsx.md: Adjust.
9759 * doc/md.texi (Machine Constraints): Adjust.
9760
9761 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9762
9763 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
9764 (rest of file): Adjust.
9765
9766 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9767
9768 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
9769 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
9770 (vsx_splat_<mode>_reg): Adjust.
9771
9772 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9773
9774 * config/rs6000/constraints.md (define_register_constraint "ws"):
9775 Delete.
9776 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9777 (rs6000_init_hard_regno_mode_ok): Adjust.
9778 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9779 RS6000_CONSTRAINT_ws.
9780 * config/rs6000/rs6000.md: Adjust.
9781 * config/rs6000/vsx.md: Adjust.
9782 * doc/md.texi (Machine Constraints): Adjust.
9783
9784 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9785
9786 * config/rs6000/constraints.md (define_register_constraint "wv"):
9787 Delete.
9788 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9789 (rs6000_init_hard_regno_mode_ok): Adjust.
9790 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9791 RS6000_CONSTRAINT_wv.
9792 * config/rs6000/rs6000.md: Adjust.
9793 * config/rs6000/vsx.md: Adjust.
9794 * doc/md.texi (Machine Constraints): Adjust.
9795
9796 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9797
9798 * config/rs6000/constraints.md (define_register_constraint "wi"):
9799 Delete.
9800 (define_register_constraint "wt"): Delete.
9801 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9802 (rs6000_init_hard_regno_mode_ok): Adjust.
9803 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9804 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
9805 * config/rs6000/rs6000.md: Adjust.
9806 * config/rs6000/vsx.md: Adjust.
9807 * doc/md.texi (Machine Constraints): Adjust.
9808
9809 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
9810
9811 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
9812 const.
9813 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
9814 default_elf_asm_output_external.
9815
9816 2019-06-04 Martin Liska <mliska@suse.cz>
9817
9818 * ipa-icf.c (INCLUDE_LIST): Remove.
9819 (sem_item_optimizer::execute): Remove call to init_wpa.
9820 * ipa-icf.h (init_wpa): Remove.
9821
9822 2019-06-04 Jakub Jelinek <jakub@redhat.com>
9823
9824 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
9825 conditional on combined for simd.
9826 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
9827 member.
9828 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
9829 constructs, don't remove lastprivate_conditional_map, but instead set
9830 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
9831 to parent construct temporaries.
9832 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
9833 like !ctx->lastprivate_conditional_map.
9834 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
9835 use up->outer context instead of up.
9836 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
9837 gimple_omp_for_combined_p.
9838 (expand_omp_for_static_nochunk): Likewise.
9839 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
9840 probably moved over into expand_omp_for_generic rather than being copied
9841 there.
9842
9843 2019-06-04 Martin Liska <mliska@suse.cz>
9844
9845 * value-prof.c (dump_histogram_value): Fix typo.
9846 (gimple_mod_subtract_transform): Likewise.
9847
9848 2019-06-04 Richard Biener <rguenther@suse.de>
9849
9850 PR middle-end/90726
9851 * tree-chrec.c (chrec_contains_symbols): Add to visited.
9852 (tree_contains_chrecs): Likewise.
9853 (chrec_contains_symbols_defined_in_loop): Move here and avoid
9854 exponential behaivor from ...
9855 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
9856 ... here.
9857 (expression_expensive_p): Avoid exponential behavior and compute
9858 expanded size, rejecting any expansion.
9859 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
9860 (idx_contains_abnormal_ssa_name_p): Likewise.
9861 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
9862 (contains_abnormal_ssa_name_p): Simplify and use
9863 walk_tree_without_duplicates.
9864
9865 2019-06-04 Richard Biener <rguenther@suse.de>
9866
9867 PR tree-optimization/90738
9868 Revert
9869 2019-06-03 Richard Biener <rguenther@suse.de>
9870
9871 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
9872 full reference tree and record in ref->ref.
9873 (vn_reference_lookup_3): Pass in original ref to
9874 ao_ref_init_from_vn_reference.
9875 (vn_reference_lookup): Likewise.
9876 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
9877 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
9878 Handle non-decl bases in the original reference.
9879
9880 2019-06-04 Martin Liska <mliska@suse.cz>
9881
9882 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
9883 number of references.
9884 (sem_item_optimizer::do_congruence_step):
9885 (sem_item_optimizer::worklist_push): Dump how references
9886 a class has.
9887 (sem_item_optimizer::worklist_pop): Use heap.
9888 (sem_item_optimizer::process_cong_reduction): Likewise.
9889 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
9890
9891 2019-06-04 Martin Liska <mliska@suse.cz>
9892
9893 * ipa-icf.h (struct sem_usage_pair_hash): New.
9894 (sem_usage_pair_hash::hash): Likewise.
9895 (sem_usage_pair_hash::equal): Likewise.
9896 (struct sem_usage_hash): Likewise.
9897 * ipa-icf.c (sem_item::sem_item): Initialize
9898 referenced_by_count.
9899 (sem_item::add_reference): Register a reference
9900 in ref_map and not in target->usages.
9901 (sem_item::setup): Remove initialization of
9902 dead vectors.
9903 (sem_item::~sem_item): Remove usage of dead vectors.
9904 (sem_item::dump): Remove dump of references.
9905 (sem_item_optimizer::sem_item_optimizer): Initialize
9906 m_references.
9907 (sem_item_optimizer::read_section): Remove useless
9908 dump.
9909 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
9910 (sem_item_optimizer::build_graph): Pass m_references
9911 to ::add_reference.
9912 (sem_item_optimizer::verify_classes): Remove usage of dead
9913 vectors.
9914 (sem_item_optimizer::traverse_congruence_split): Return true
9915 when a class is split.
9916 (sem_item_optimizer::do_congruence_step_for_index): Use
9917 hash_map for look up of (sem_item *, index). That brings
9918 significant speed up.
9919 (sem_item_optimizer::do_congruence_step): Return true
9920 when a split is done.
9921 (congruence_class::is_class_used): Use referenced_by_count.
9922
9923 2019-06-04 Alan Modra <amodra@gmail.com>
9924
9925 PR target/90689
9926 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
9927 error.
9928
9929 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
9930
9931 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
9932 * config/rs6000/rs6000.c (direct_move_p): Adjust.
9933 (rs6000_secondary_reload_simple_move): Adjust.
9934 (rs6000_opt_masks): Neuter the "mfpgpr" option.
9935 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
9936 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
9937 comment.
9938 (power6x): Adjust.
9939 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
9940 (floatunssi<mode>2_lfiwzx): Adjust.
9941 (fix_trunc<mode>si2_stfiwx): Adjust.
9942 (fixuns_trunc<mode>si2_stfiwx): Adjust.
9943 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
9944 (mfpgpr): Mark as deprecated.
9945 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
9946 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
9947 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
9948
9949 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
9950
9951 * config/rs6000/constraints.md (define_register_constraint "wg"):
9952 Delete.
9953 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9954 RS6000_CONSTRAINT_wg.
9955 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9956 (rs6000_init_hard_regno_mode_ok): Adjust.
9957 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
9958 Delete "wg" alternatives.
9959 * doc/md.texi (Machine Constraints): Adjust.
9960
9961 2019-06-03 Alan Modra <amodra@gmail.com>
9962
9963 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
9964 (get_uncond_jump_length): Assert length less than INT_MAX and
9965 non-negative.
9966
9967 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
9968
9969 PR middle-end/64242
9970 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
9971 block.
9972 (expand_builtin_nonlocal_goto): Likewise.
9973
9974 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
9975
9976 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
9977 (aarch64_asm_output_external): Declare.
9978 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
9979 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
9980 (aarch64_asm_output_alias): New.
9981 (aarch64_asm_output_external): New.
9982 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
9983 (ASM_OUTPUT_EXTERNAL): Define.
9984
9985 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
9986 * tree-vrp.h (value_range_base::nonzero_p): New.
9987 (value_range_base::set_nonnull): Rename to...
9988 (value_range_base::set_nonzero): ...this.
9989 (value_range_base::set_null): Rename to...
9990 (value_range_base::set_zero): ...this.
9991 (value_range::set_nonnull): Remove.
9992 (value_range::set_null): Remove.
9993 * tree-vrp.c (range_is_null): Remove.
9994 (range_is_nonnull): Remove.
9995 (extract_range_from_binary_expr): Use value_range_base::*zero_p
9996 instead of range_is_*null.
9997 (extract_range_from_unary_expr): Same.
9998 (value_range_base::set_nonnull): Rename to...
9999 (value_range_base::set_nonzero): ...this.
10000 (value_range::set_nonnull): Remove.
10001 (value_range_base::set_null): Rename to...
10002 (value_range_base::set_zero): ...this.
10003 (value_range::set_null): Remove.
10004 (extract_range_from_binary_expr): Rename set_*null uses to
10005 set_*zero.
10006 (extract_range_from_unary_expr): Same.
10007 (union_helper): Same.
10008 * vr-values.c (get_value_range): Use set_*zero instead of
10009 set_*null.
10010 (vr_values::extract_range_from_binary_expr): Same.
10011 (vr_values::extract_range_basic): Same.
10012
10013 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
10014
10015 PR driver/90684
10016 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
10017
10018 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10019
10020 * config/aarch64/iterators.md (MAX_OPP): New code attr.
10021 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
10022 Rename to...
10023 (aarch64_<su>abd<mode>_3): ... This.
10024 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
10025
10026 2019-06-03 Richard Biener <rguenther@suse.de>
10027
10028 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
10029 full reference tree and record in ref->ref.
10030 (vn_reference_lookup_3): Pass in original ref to
10031 ao_ref_init_from_vn_reference.
10032 (vn_reference_lookup): Likewise.
10033 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
10034 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
10035 Handle non-decl bases in the original reference.
10036
10037 2019-06-03 Martin Liska <mliska@suse.cz>
10038
10039 * doc/generic.texi: Remove Java Trees.
10040
10041 2019-06-03 Martin Liska <mliska@suse.cz>
10042
10043 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
10044 returns 0 when operands are equal.
10045
10046 2019-06-03 Richard Biener <rguenther@suse.de>
10047
10048 PR tree-optimization/90716
10049 * tree-loop-distribution.c (destroy_loop): Process blocks in
10050 correct order.
10051
10052 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10053
10054 PR target/88837
10055 * vector-builder.h (vector_builder::count_dups): New method.
10056 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
10057 Declare prototype.
10058 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
10059 (vec_init<mode><Vel>): New pattern.
10060 * config/aarch64/aarch64.c (emit_insr): New function.
10061 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
10062 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
10063 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
10064 (aarch64_sve_expand_vector_init): Define two overloaded functions.
10065
10066 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10067
10068 PR tree-optimization/90681
10069 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
10070 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
10071 special case for SLP, but fail on non-groupped loads.
10072
10073 2019-06-03 Martin Liska <mliska@suse.cz>
10074
10075 * cfg.c (debug): Use TDF_DETAILS for debug and
10076 print edge info only once.
10077
10078 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
10079
10080 PR fortran/90539
10081 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
10082
10083 2019-06-01 Martin Sebor <msebor@redhat.com>
10084
10085 PR middle-end/90694
10086 * tree-pretty-print.c (dump_generic_node): Add parentheses.
10087
10088 2019-05-31 Jan Hubicka <jh@suse.cz>
10089
10090 * alias.c: Include ipa-utils.h.
10091 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
10092 * ipa-devirt.c (prevailing_odr_type): New.
10093 * ipa-utils.h (previaling_odr_type): Declare.
10094
10095 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
10096 Hongtao Liu <hongtao.liu@intel.com>
10097
10098 PR target/89355
10099 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
10100 NOTE_INSN_DELETED_LABEL check.
10101
10102 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
10103 Robert Suchanek <robert.suchanek@mips.com>
10104
10105 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
10106 and 3rd operands of the fmadd/fmsub/maddv builtin.
10107
10108 2019-05-31 Jakub Jelinek <jakub@redhat.com>
10109
10110 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
10111 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
10112 on OMP_SIMD if not nested inside of worksharing loop that also has
10113 lastprivate conditional clause for the same decl.
10114 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
10115 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
10116 on simd.
10117 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
10118 on simd construct.
10119 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
10120 on simd construct.
10121 (lower_lastprivate_clauses): Likewise.
10122 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
10123 calling lower_rec_input_clauses.
10124 (lower_omp_for): Likewise.
10125 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
10126 clause on simd construct.
10127 * omp-expand.c (expand_omp_simd): Initialize cond_var if
10128 OMP_CLAUSE__CONDTEMP_ clause is present.
10129
10130 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
10131 ivar and lvar.
10132
10133 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
10134
10135 PR c/43673
10136 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
10137 TEX_D32, TEX_D64 or TEX_D128.
10138
10139 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
10140
10141 * match.pd (~(vec?cst1:cst2)): New transformation.
10142
10143 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
10144
10145 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
10146 ((size_t)(A /[ex] B) CMP C): New transformation.
10147
10148 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
10149
10150 * doc/md.texi: Document define_insn_and_rewrite.
10151 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
10152 * gensupport.c (queue_elem): Update comment.
10153 (replace_operands_with_dups): New function.
10154 (gen_rewrite_sequence): Likewise.
10155 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
10156 * read-rtl.c (apply_subst_iterator): Likewise.
10157 (add_condition_to_rtx, named_rtx_p): Likewise.
10158 (rtx_reader::read_rtx_operand): Likewise.
10159 * config/aarch64/aarch64-sve.md
10160 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
10161 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
10162 define_insn_and_rewrite.
10163 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
10164 Remove separate define_split.
10165
10166 2019-05-31 Jan Hubicka <jh@suse.cz>
10167
10168 * tree-ssa-alias.c (type_has_components_p): New function.
10169 (aliasing_component_refs_p): Use it.
10170
10171 2019-05-31 Martin Liska <mliska@suse.cz>
10172
10173 * gdbhooks.py: Add const_tree to TreePrinter.
10174
10175 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
10176
10177 PR debug/86964
10178 * common.opt (feliminate-unused-debug-symbols): Enable by default.
10179 * doc/invoke.texi (Debugging Options): Document new default of
10180 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
10181
10182 2019-05-31 Jakub Jelinek <jakub@redhat.com>
10183
10184 PR tree-optimization/90671
10185 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
10186 template_block used to be empty on the first call, don't use
10187 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
10188 seq with bb_seq and set it with set_bb_seq.
10189
10190 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
10191
10192 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
10193
10194 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
10195 Michael Meissner <meissner@linux.ibm.com>
10196
10197 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
10198 (prefixed_mem_operand): Likewise.
10199 (non_prefixed_mem_operand): Likewise.
10200 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
10201 prototype.
10202 * config/rs6000/rs6000.c (print_operand_address): Handle
10203 PC-relative addresses.
10204 (mode_supports_prefixed_address_p): New function.
10205 (rs6000_prefixed_address): New function.
10206 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
10207 (SYMBOL_REF_PCREL_P): Likewise.
10208
10209 2019-05-30 Jakub Jelinek <jakub@redhat.com>
10210
10211 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
10212 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
10213 (gimplify_omp_for): If worksharing loop with lastprivate conditional
10214 is nested inside of parallel region, add _condtemp_ clause to both.
10215 * tree-nested.c (convert_nonlocal_omp_clauses,
10216 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
10217 assertion failure.
10218 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
10219 member.
10220 * omp-general.c (omp_extract_for_data): Compute it.
10221 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
10222 (lower_rec_input_clauses): Likewise.
10223 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
10224 clause is already present, just add one further one after it.
10225 (lower_lastprivate_clauses): Handle cond_ptr with array type.
10226 (lower_send_shared_vars): Clear _condtemp_ vars.
10227 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
10228 or section or taskgroup.
10229 * omp-expand.c (determine_parallel_type): Disallow combining only if
10230 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
10231 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
10232 (expand_omp_for_generic, expand_omp_for_static_nochunk,
10233 expand_omp_for_static_chunk, expand_omp_for): Use
10234 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
10235 determine if a special set of API routines are needed and if condtemp
10236 needs to be initialized, while always initialize cond_var if
10237 fd->lastprivate_conditional is non-zero.
10238
10239 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
10240 Michael Meissner <meissner@linux.ibm.com>
10241
10242 * config/rs6000/constraints.md (eI): New constraint.
10243 * config/rs6000/predicates.md (cint34_operand): New predicate.
10244 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
10245 (SIGNED_34BIT_OFFSET_P): Likewise.
10246 * doc/md.texi (eI): Document constraint.
10247
10248 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
10249
10250 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
10251
10252 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
10253 Michael Meissner <meissner@linux.ibm.com>
10254
10255 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
10256 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
10257 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
10258 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
10259 (OTHER_FUTURE_MASKS): Likewise.
10260 (POWERPC_MASKS): Likewise.
10261 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
10262 specified without -mprefixed-addr or -mcpu=future. Error if
10263 -mprefixed-addr is specified without -mcpu=future.
10264 (rs6000_opt_masks): Add entry for prefixed-addr.
10265 * rs6000.opt (mprefixed-addr): New option.
10266
10267 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
10268
10269 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
10270 cfun->is_thunk check.
10271
10272 2019-05-30 Jakub Jelinek <jakub@redhat.com>
10273
10274 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
10275 to length.
10276
10277 2019-05-30 Martin Liska <mliska@suse.cz>
10278
10279 * gdbinit.in: Fix 'ptc' command. Add trt
10280 that prints TREE_TYPE($).
10281
10282 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
10283 Alan Modra <amodra@gmail.com>
10284
10285 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
10286 calls here...
10287 (rs6000_indirect_call_template_1): ...and here.
10288 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
10289 plt16_ha, plt16_lo, mtctr indirect calls. Use
10290 rs6000_pltseq_enum.
10291 (rs6000_decl_ok_for_sibcall): New function.
10292 (rs6000_function_ok_for_sibcall): Refactor.
10293 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
10294 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
10295 when pcrel. Reorganize.
10296 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
10297 * rs6000.h (rs6000_pltseq_enum): New enum.
10298 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
10299 (*pltseq_tocsave): Use rs6000_pltseq_enum.
10300 (*pltseq_plt16_ha): Likewise.
10301 (*pltseq_plt16_lo): Likewise.
10302 (*pltseq_mtctr): Likewise.
10303 (*pltseq_plt_pcrel): New insn.
10304 (*call_local_aix): Handle @notoc calls.
10305 (*call_value_local_aix): Likewise.
10306 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
10307 (*call_value_nonlocal_aix): Likewise.
10308 (*call_indirect_pcrel): New insn.
10309 (*call_value_indirect_pcrel): Likewise.
10310
10311 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
10312
10313 * config/i386/sse.md (*save_multiple<mode>): Rename from
10314 save_multiple<mode>.
10315 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
10316 (*restore_multiple_and_return<mode>): Rename from
10317 restore_multiple_and_return<mode>.
10318 (*restore_multiple_leave_return<mode>): Rename from
10319 restore_multiple_leave_return<mode>.
10320
10321 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
10322
10323 * config.gcc (rx-*-linux*): New target.
10324 * config/rx/elf.opt: New file.
10325 * config/rx/linux.h: Likewise.
10326 * config/rx/t-linux: Likewise.
10327 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
10328 make it zero.
10329 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
10330 (ASM_APP_OFF): Likewise.
10331 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
10332 moved elsewhere.
10333
10334 2019-05-29 Jan Hubicka <jh@suse.cz>
10335
10336 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
10337 variants are pointer equivalent.
10338
10339 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10340
10341 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
10342 * config/aarch64/aarch64-sve2.md: New file.
10343 (<u>avg<mode>3_floor): New pattern.
10344 (<u>avg<mode>3_ceil): Likewise.
10345 (*<sur>h<addsub><mode>): Likewise.
10346 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
10347 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
10348
10349 2019-05-29 Jakub Jelinek <jakub@redhat.com>
10350
10351 PR bootstrap/90543
10352 * optc-save-gen.awk: In cl_optimization_print, use correct condition
10353 for var_opt_string printing. In cl_optimization_print_diff, print
10354 (null) instead of invoking undefined behavior if one of the
10355 var_opt_string pointers is NULL and use && instead of first || in the
10356 guarding condition. For var_target_other options, handle const char *
10357 target variables similarly to const char * optimize node variables.
10358
10359 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
10360
10361 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
10362 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
10363 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
10364 Add autib1716 and pacib1716 initialisation.
10365 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
10366 for autib1716 and pacib1716.
10367 * config/aarch64/aarch64-protos.h (aarch64_key_type,
10368 aarch64_post_cfi_startproc): Define.
10369 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
10370 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
10371 aarch64_handle_pac_ret_protection): Set default sign key to A.
10372 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
10373 aarch64_expand_prologue): Add check for b-key.
10374 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
10375 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
10376 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
10377 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
10378 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
10379 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
10380 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
10381 * config/aarch64/aarch64.md (do_return): Add check for b-key.
10382 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
10383 pauth_hint_num_a with pauth_hint_num.
10384 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
10385 pauth_hint_num_a with pauth_hint_num.
10386 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
10387 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
10388 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
10389 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
10390 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
10391 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
10392 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
10393 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
10394 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
10395 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
10396 UNSPEC_AUTIA1716 respectively.
10397 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
10398 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
10399 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
10400 * doc/invoke.texi (-mbranch-protection): Add b-key type.
10401 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
10402 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
10403
10404 2019-05-29 Jakub Jelinek <jakub@redhat.com>
10405
10406 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
10407 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
10408 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
10409 explicit clause on combined parallel into implicit shared clause.
10410 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
10411 and firstprivate if the decl has one too from combined parallel to
10412 the worksharing construct.
10413
10414 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
10415 Michael Meissner <meissner@linux.ibm.com>
10416
10417 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
10418
10419 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
10420
10421 * rtl.h (LABEL_REF_P): New #define.
10422
10423 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
10424
10425 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
10426
10427 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10428
10429 * internal-fn.c: Marked mask_load_direct as vectorizable.
10430 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
10431 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
10432 combined even if masks different with allow_slp_p param.
10433 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
10434 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
10435 dissolve SLP-only vectorizable groups when SLP has been discarded.
10436 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
10437 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
10438 masks.
10439 (vect_build_slp_tree_1): Fixed comment typo.
10440 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
10441 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
10442 loads for SLP only.
10443 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
10444 vectorizable.
10445 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
10446
10447 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10448
10449 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
10450 Remove obsolete use_thunk reference.
10451 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
10452 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
10453 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
10454 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
10455 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
10456 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
10457 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10458 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
10459 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
10460
10461 2019-05-28 Nathan Sidwell <nathan@acm.org>
10462
10463 * tree.h (IDENTIFIER_ANON_P): New.
10464 (anon_aggrname_format, anon_aggname_p): Don't declare.
10465 (make_anon_name): Declare.
10466 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
10467 (hash_tree): Likewise.
10468 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
10469 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
10470 (anon_cnt, make_anon_name): New.
10471
10472 2019-05-28 Martin Liska <mliska@suse.cz>
10473
10474 PR other/90315
10475 * opts-global.c (decode_options): Print help for all
10476 help_option_arguments.
10477 * opts.c (print_help): Add new argument.
10478 (common_handle_option): Remember all values into
10479 help_option_arguments.
10480 * opts.h (print_help): Add new argument.
10481
10482 2019-05-28 Martin Liska <mliska@suse.cz>
10483
10484 PR ipa/90555
10485 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
10486 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
10487 (func_checker::compare_bb): Call compare_loops.
10488
10489 2019-05-27 Jakub Jelinek <jakub@redhat.com>
10490
10491 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
10492 on sections construct.
10493 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
10494 construct.
10495 (lower_omp_sections): Handle lastprivate conditional.
10496 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
10497 lastprivate_conditional_map.
10498 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
10499
10500 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
10501 critical, taskgroup and section regions when looking for a region
10502 with non-NULL lastprivate_conditional_map.
10503
10504 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
10505
10506 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
10507 (*ix86_gen_sub3): Ditto.
10508 (*ix86_gen_sub3_carry): Ditto.
10509 (*ix86_gen_one_cmpl2): Ditto.
10510 (*ix86_gen_andsp): Ditto.
10511 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
10512 (gen_and2_insn): New static function.
10513 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
10514 Use gen_add3_insn instead of ix86_gen_add3.
10515 (ix86_expand_split_stack_prologue): Use gen_add2_insn
10516 instead of ix86_gen_add3.
10517 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
10518 Use gen_sub3_insn instead of ix86_gen_sub3.
10519 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
10520 instead of ix86_gen_add3.
10521 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
10522 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
10523 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
10524 * config/i386/i386-options.c (ix86_option_override_internal):
10525 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
10526 ix86_gen_one_cmpl2 and ix86_gen_andsp.
10527
10528 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
10529
10530 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
10531 and DW_OP_GNU_const_index opcodes.
10532
10533 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
10534
10535 * config/i386/i386.h (STACK_SIZE_MODE): Define.
10536
10537 2019-05-27 Richard Biener <rguenther@suse.de>
10538
10539 PR tree-optimization/90637
10540 * tree-ssa-sink.c (statement_sink_location): Honor the
10541 computed sink location for single-uses.
10542
10543 2019-05-27 Richard Biener <rguenther@suse.de>
10544
10545 PR middle-end/90610
10546 * match.pd (vec_perm): Avoid clobbering op0 when not generating
10547 a bit-insert.
10548
10549 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
10550
10551 * config/i386/i386.md (@sub<mode>3_carry): Rename
10552 from sub<mode>3_carry.
10553 (@leave_<mode>): New expander.
10554 (*leave): Rename from leave.
10555 (*leave_rex64): Rename from leave_rex64.
10556 (@monitorx_<mode>): Rename from monitorx_<mode>.
10557 (@clzero_<mode>): Rename from clzero_<mode>.
10558 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
10559 from sse3_monitor_<mode>.
10560 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
10561 (*ix86_gen_leave): Ditto.
10562 (*ix86_gen_monitor): Ditto.
10563 (*ix86_gen_monitorx): Ditto.
10564 (*ix86_gen_clzero): Ditto.
10565 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
10566 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
10567 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
10568 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
10569 Use gen_sse3_monitor instead of ix86_gen_monitor.
10570 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
10571 instead of ix86_gen_monitorx.
10572 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
10573 instead of ix86_gen_clzero.
10574 * config/i386/i386-options.c (ix86_option_override_internal):
10575 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
10576 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
10577
10578 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
10579
10580 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
10581 Rename from tls_global_dynamic_64_<mode>.
10582 (@tls_local_dynamic_base_64_<mode>): Rename from
10583 tls_local_dynamic_base_64_<mode>.
10584 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
10585 Remove indirect function.
10586 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
10587 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
10588 instead of ix86_gen_tls_global_dynamic_64.
10589 Use gen_tls_local_dynamic_base_64 instead of
10590 ix86_gen_tls_local_dynamic_base_64.
10591 * config/i386/i386-options.c (ix86_option_override_internal):
10592 Do not initialize ix86_gen_tls_global_dynamic_64 and
10593 ix86_gen_tls_local_dynamic_base_64.
10594
10595 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
10596
10597 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
10598 Rename from pro_epilogue_adjust_stack_<mode>_add.
10599 (@pro_epilogue_adjust_stack_sub_<mode>)
10600 Rename from pro_epilogue_adjust_stack_<mode>_sub.
10601 (@allocate_stack_worker_probe_<mode>):
10602 Rename from allocate_stack_worker_probe_<mode>.
10603 (allocate_stack): Use gen_allocate_stack_worker_probe.
10604 (probe_stack): Use gen_probe_stack_1.
10605 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
10606 (@adjust_stack_and_probe_<mode>): Rename from
10607 adjust_stack_and_probe<mode>.
10608 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
10609 (stack_protect_set): Use gen_stack_protect_set_1.
10610 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
10611 (stack_protect_test): Use gen_stack_protect_test_1.
10612 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
10613 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
10614 Remove indirect function.
10615 (*ix86_gen_adjust_stack_and_probe): Ditto.
10616 (*ix86_gen_probe_stack_range): Ditto.
10617 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
10618 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
10619 (ix86_adjust_stack_and_probe_stack_clash): Use
10620 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
10621 (ix86_adjust_stack_and_probe): Ditto.
10622 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
10623 of ix86_gen_probe_stack_range.
10624 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
10625 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
10626 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
10627 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
10628 CODE_FOR_stack_protect_test_{si,di}.
10629 * config/i386/i386-options.c (ix86_option_override_internal):
10630 Do not initialize ix86_gen_allocate_stack_worker,
10631 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
10632
10633 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
10634
10635 * doc/invoke.texi (Link Options): Many editorial changes around
10636 -flinker-output.
10637
10638 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10639
10640 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
10641 pre-Solaris 11 referene and most Studio compiler details.
10642
10643 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
10644
10645 PR target/90530
10646 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
10647 DImode to SImode in floating-point registers on 64-bit target.
10648 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
10649 register_operand in xmpyu patterns.
10650
10651 2019-05-24 Jakub Jelinek <jakub@redhat.com>
10652
10653 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
10654 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
10655 OMP_CLAUSE__REDUCTEMP_.
10656 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10657 OMP_CLAUSE__CONDTEMP_.
10658 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
10659 * tree-pretty-print.c (dump_omp_clause): Likewise.
10660 * tree-nested.c (convert_nonlocal_omp_clauses,
10661 convert_local_omp_clauses): Likewise.
10662 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
10663 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
10664 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
10665 on OMP_FOR.
10666 (gimplify_omp_for): Warn and disable conditional modifier from
10667 lastprivate on loop iterators.
10668 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
10669 member.
10670 * omp-general.c (omp_extract_for_data): Initialize it.
10671 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
10672 member.
10673 (delete_omp_context): Delete it.
10674 (lower_lastprivate_conditional_clauses): New function.
10675 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
10676 handle lastprivate conditional clauses.
10677 (lower_reduction_clauses): Add CLIST argument, emit it into
10678 the critical section if any.
10679 (lower_omp_sections): Adjust lower_lastprivate_clauses and
10680 lower_reduction_clauses callers.
10681 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
10682 to lower_lastprivate_clauses.
10683 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
10684 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
10685 clist into a critical section if not emitted there already by
10686 lower_reduction_clauses.
10687 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
10688 callers.
10689 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
10690 conditional variables.
10691 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
10692 clause is present.
10693 (expand_omp_for_generic, expand_omp_for_static_nochunk,
10694 expand_omp_for_static_chunk): Handle lastprivate conditional.
10695 (expand_omp_for): Handle fd.lastprivate_conditional like
10696 fd.have_reductemp.
10697
10698 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
10699
10700 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
10701 kernel does not exit cleanly.
10702 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
10703
10704 2019-05-24 Jason Merrill <jason@redhat.com>
10705
10706 Revert:
10707 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
10708
10709 2019-05-24 Richard Biener <rguenther@suse.de>
10710
10711 PR testsuite/90607
10712 * tree-loop-distribution.c (struct partition): Add location
10713 member.
10714 (partition_alloc): Initialize all fields.
10715 (generate_memset_builtin): Use the location recorded in the
10716 partition for the generated call.
10717 (generate_memcpy_builtin): Likewise.
10718 (classify_partition): Record the location of a single store
10719 as location for the partition.
10720
10721 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
10722
10723 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
10724 for lo-part.
10725
10726 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
10727
10728 PR target/90588
10729 * common/config/aarch64/aarch64-common.c
10730 (aarch64_rewrite_selected_cpu): Change local temporary variable
10731 type from unsigned long to uint64_t.
10732 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
10733 aarch64_get_extension_string_for_isa_flags): Change declaration to
10734 match new definition by replacing unsigned long with uint64_t.
10735
10736 2019-05-24 Jakub Jelinek <jakub@redhat.com>
10737
10738 PR target/90568
10739 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
10740 gen_attr_type just once instead of 4-7 times. Formatting fixes.
10741 Handle stack_protect_test_<mode> codegen similarly to corresponding
10742 sub instruction.
10743
10744 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
10745
10746 * config/i386/darwin.h: Reject -mfentry*.
10747 * doc/sourcebuild.texi: Document mfentry target support.
10748
10749 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
10750
10751 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
10752 Rename to rs6000_global_entry_point_prologue_needed_p. Return
10753 false for PC-relative functions.
10754 (rs6000_output_function_prologue): Change called function name to
10755 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
10756 name,1" for PC-relative functions.
10757 (rs6000_elf_declare_function_name): Change called function name to
10758 rs6000_global_entry_point_prologue_needed_p.
10759
10760 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
10761
10762 PR target/90552
10763 * config/i386/i386.c (gen_rtx_cost):
10764 Use ix86_tune_cost instead of ix86_cost.
10765
10766 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
10767 Michael Meissner <meissner@linux.ibm.com>
10768 Segher Boessenkool <segher@kernel.crashing.org>
10769
10770 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
10771 OPTION_MASK_PCREL.
10772 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
10773 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
10774 (rs6000_fndecl_pcrel_p): Likewise.
10775 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
10776 error if -mpcrel is requested without -mcpu=future.
10777 (rs6000_opt_masks): Add entry for pcrel.
10778 (rs6000_fndecl_pcrel_p): New function.
10779 (rs6000_pcrel_p): Likewise.
10780 * config/rs6000/rs6000.opt (mpcrel): New option.
10781 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
10782
10783 2019-05-23 Jan Hubicka <jh@suse.cz>
10784 Martin Liska <mliska@suse.cz>
10785
10786 PR tree-optimization/90576
10787 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
10788 poly_int_tree_p.
10789 (aliasing_component_refs_p): Fix three way size compare conditional;
10790 give up earlier in case we can not decide on equivalence.
10791
10792 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
10793 Michael Meissner <meissner@linux.ibm.com>
10794 Segher Boessenkool <segher@kernel.crashing.org>
10795
10796 * config.gcc: Add future cpu.
10797 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
10798 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
10799 #define.
10800 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
10801 (RS6000_CPU): New instantiation for future cpu.
10802 * config/rs6000/rs6000-opts.h (enum processor_type): Add
10803 PROCESSOR_FUTURE.
10804 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
10805 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
10806 * config/rs6000/rs6000-tables.opt: Regenerate.
10807 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
10808 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
10809 (rs6000_machine_from_flags): Handle future cpu.
10810 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
10811 PROCESSOR_POWER9 for now.
10812 (rs6000_adjust_cost): Likewise.
10813 (rs6000_issue_rate): Likewise.
10814 (rs6000_register_move_cost): Likewise.
10815 (rs6000_opt_masks): Add entry for future.
10816 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
10817 (MASK_FUTURE): New #define.
10818 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
10819 * config/rs6000/rs6000.opt (mfuture): New target option.
10820 * doc/invoke.texi (mcpu): Add future cpu.
10821
10822 2019-05-23 Martin Liska <mliska@suse.cz>
10823
10824 PR c++/90587
10825 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
10826 operation points to a temporary (pointed via tree_to_wide_ref)
10827 that is out of scope after the &.
10828
10829 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
10830
10831 PR c++/90592
10832 * doc/extend.texi (Function Names): Add missing word.
10833
10834 2019-05-23 Richard Biener <rguenther@suse.de>
10835
10836 PR tree-optimization/88440
10837 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
10838 at -O[2s]+.
10839 * tree-loop-distribution.c (generate_memset_builtin): Fold the
10840 generated call.
10841 (generate_memcpy_builtin): Likewise.
10842 (distribute_loop): Pass in whether to only distribute patterns.
10843 (prepare_perfect_loop_nest): Also allow size optimization.
10844 (pass_loop_distribution::execute): When optimizing a loop
10845 nest for size allow pattern replacement.
10846
10847 2019-05-23 Jakub Jelinek <jakub@redhat.com>
10848
10849 PR target/90568
10850 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
10851 of xor.
10852
10853 2019-05-23 Martin Liska <mliska@suse.cz>
10854
10855 PR sanitizer/90570
10856 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
10857 expression similarly to gimplify_decl_expr.
10858
10859 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10860
10861 * cse.c (cse_dump_path): s/dump_file/f.
10862
10863 2019-05-22 David Malcolm <dmalcolm@redhat.com>
10864
10865 PR c++/90462
10866 * diagnostic-format-json.cc: Include "selftest.h".
10867 (json_from_expanded_location): Only add "file" key for non-NULL
10868 file strings.
10869 (json_from_location_range): Don't add "start" and "finish"
10870 children if they are UNKNOWN_LOCATION.
10871 (selftest::test_unknown_location): New selftest.
10872 (selftest::test_bad_endpoints): New selftest.
10873 (selftest::diagnostic_format_json_cc_tests): New function.
10874 * json.cc (json::object::get): New function.
10875 (selftest::test_object_get): New selftest.
10876 (selftest::json_cc_tests): Call it.
10877 * json.h (json::object::get): New decl.
10878 * selftest-run-tests.c (selftest::run_tests): Call
10879 selftest::diagnostic_format_json_cc_tests.
10880 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
10881 decl.
10882
10883 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
10884 Andrew Stubbs <amd@codesourcery.com>
10885
10886 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
10887 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
10888 (kernel): Rename to...
10889 (main_kernel): ... this.
10890 (load_image): Load _init_array and _fini_array kernels.
10891 (run): Add argument for kernel to run.
10892 (main): Run init_array_kernel before main_kernel, and
10893 fini_array_kernel after.
10894 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
10895 amdgpu_hsa_kernel attribute on functions.
10896 (gcn_disable_constructors): Delete.
10897 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
10898 * config/gcn/crt0.c (size_t): Define.
10899 (_init_array, _fini_array): New.
10900 (__preinit_array_start, __preinit_array_end,
10901 __init_array_start, __init_array_end,
10902 __fini_array_start, __fini_array_end): Declare weak references.
10903
10904 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
10905
10906 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
10907
10908 2019-05-22 Jason Merrill <jason@redhat.com>
10909
10910 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
10911
10912 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
10913
10914 PR target/88483
10915 * config/i386/i386-options.c (ix86_init_machine_status): Set
10916 stack_frame_required to true.
10917 * config/i386/i386.c (ix86_get_frame_size): New function.
10918 (ix86_frame_pointer_required): Replace get_frame_size with
10919 ix86_get_frame_size.
10920 (ix86_compute_frame_layout): Likewise.
10921 (ix86_find_max_used_stack_alignment): Changed to void. Set
10922 stack_frame_required.
10923 (ix86_finalize_stack_frame_flags): Always call
10924 ix86_find_max_used_stack_alignment. Replace get_frame_size with
10925 ix86_get_frame_size.
10926 * config/i386/i386.h (machine_function): Add stack_frame_required.
10927
10928 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
10929
10930 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
10931
10932 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
10933
10934 * common/config/aarch64/aarch64-common.c
10935 (struct aarch64_option_extension, struct processor_name_to_arch,
10936 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
10937 aarch64_contains_opt,
10938 aarch64_get_extension_string_for_isa_flags): Change type of
10939 variables storing flags to uint64_t.
10940 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
10941 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
10942 * config/aarch64/aarch64.c (struct processor,
10943 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
10944 aarch64_validate_march, aarch64_override_options,
10945 aarch64_option_print, aarch64_handle_attr_isa_flags,
10946 aarch64_declare_function_name, aarch64_start_file): Make flag
10947 variables uint64_t.
10948 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
10949 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
10950 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
10951 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
10952 * config/aarch64/driver-aarch64.c
10953 (struct aarch64_arch_extension, struct aarch64_core_data,
10954 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
10955 flag variables uint64_t.
10956 * doc/invoke.texi: Add documentation for new arguments.
10957
10958 2019-05-22 Richard Biener <rguenther@suse.de>
10959
10960 * alias.c (ao_ref_from_mem): Move stack-slot sharing
10961 rewrite ...
10962 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
10963
10964 2019-05-22 Martin Liska <mliska@suse.cz>
10965
10966 PR lto/90500
10967 * doc/extend.texi: Document the change.
10968
10969 2019-05-22 Richard Biener <rguenther@suse.de>
10970
10971 PR tree-optimization/90450
10972 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
10973 (mem_ref_hasher::equal): Check it.
10974 (mem_ref_alloc): Initialize it.
10975 (gather_mem_refs_stmt): Set it.
10976
10977 2019-05-22 Richard Biener <rguenther@suse.de>
10978
10979 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
10980 Add ABS_EXPR.
10981 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
10982 as ABSU_EXPR.
10983
10984 2019-05-22 Alan Modra <amodra@gmail.com>
10985
10986 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
10987 (ASM_CPU_SPEC): Conditionally add -many.
10988 * config/rs6000/rs6000.c (rs6000_machine): New static var.
10989 (rs6000_machine_from_flags, emit_asm_machine): New functions..
10990 (rs6000_file_start): ..extracted from here, and modified to
10991 test all ISA bits.
10992 (rs6000_output_function_prologue): Emit .machine as necessary.
10993
10994 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
10995
10996 PR middle-end/90553
10997 * ira-lives.c (process_bb_node_lives): Consider defs
10998 for a call insn to be die before the call, not after.
10999
11000 * function.c (assign_parm_setup_block): Raise alignment of
11001 stacked parameter only for STRICT_ALIGNMENT targets.
11002
11003 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11004
11005 * config/rs6000/constraints.md (define_register_constraint "wz"):
11006 Delete.
11007 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11008 RS6000_CONSTRAINT_wz.
11009 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11010 (rs6000_init_hard_regno_mode_ok): Adjust.
11011 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
11012 * doc/md.texi (Machine Constraints): Adjust.
11013
11014 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11015
11016 * config/rs6000/constraints.md (define_register_constraint "wl"):
11017 Delete.
11018 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11019 RS6000_CONSTRAINT_wl.
11020 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11021 (rs6000_init_hard_regno_mode_ok): Adjust.
11022 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
11023 * doc/md.texi (Machine Constraints): Adjust.
11024
11025 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11026
11027 * config/rs6000/constraints.md (define_register_constraint "wm"):
11028 Delete.
11029 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11030 RS6000_CONSTRAINT_wm.
11031 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11032 (rs6000_init_hard_regno_mode_ok): Adjust.
11033 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
11034 * doc/md.texi (Machine Constraints): Adjust.
11035
11036 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11037
11038 * config/rs6000/constraints.md (define_register_constraint "wk"):
11039 Delete.
11040 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11041 RS6000_CONSTRAINT_wk.
11042 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11043 (rs6000_init_hard_regno_mode_ok): Adjust.
11044 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
11045 * doc/md.texi (Machine Constraints): Adjust.
11046
11047 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11048
11049 * config/rs6000/constraints.md (define_register_constraint "wj"):
11050 Delete.
11051 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11052 RS6000_CONSTRAINT_wj.
11053 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11054 (rs6000_init_hard_regno_mode_ok): Adjust.
11055 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
11056 (VS_64dm): Delete.
11057 * config/rs6000/vsx.md: Ditto.
11058 * doc/md.texi (Machine Constraints): Adjust.
11059
11060 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11061
11062 * config/rs6000/constraints.md (define_register_constraint "wh"):
11063 Delete.
11064 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11065 RS6000_CONSTRAINT_wh.
11066 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11067 (rs6000_init_hard_regno_mode_ok): Adjust.
11068 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
11069 * doc/md.texi (Machine Constraints): Adjust.
11070
11071 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11072
11073 PR target/90547
11074 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
11075 Avoid calling gen_lowpart with CONST operand.
11076
11077 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
11078
11079 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
11080 field template_last_to_copy.
11081 (ssa_create_duplicates): Set it, and use it. Attempt to
11082 preserve more debug stmts.
11083
11084 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11085
11086 * config/i386/sse.md (VF1_AVX2): New mode iterator.
11087 (signbit<mode>2): New expander
11088
11089 2019-05-21 James Clarke <jrtc27@jrtc27.com>
11090
11091 PR bootstrap/87338
11092 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
11093 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
11094
11095 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11096
11097 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
11098 %ebx and %ecx bafore calling cpuid with leaf 1 or
11099 non-constant leaf argument.
11100
11101 2019-05-21 Alan Modra <amodra@gmail.com>
11102
11103 PR target/90545
11104 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
11105 power9 direct move cost.
11106
11107 2019-05-21 Richard Biener <rguenther@suse.de>
11108
11109 PR middle-end/90510
11110 * fold-const.c (fold_read_from_vector): New function.
11111 * fold-const.h (fold_read_from_vector): Declare.
11112 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
11113 single-element insert permutations. Canonicalize selector
11114 further and fix issue with last commit.
11115
11116 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
11117
11118 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
11119 parameter with default value false to declaration.
11120 (split_edges_for_insertion): New inline function. Wrapper for
11121 split_critical_edges with for_edge_insertion_p = true.
11122 * tree-cfg.c (split_critical_edges): Don't split non-critical
11123 edges if for_edge_insertion_p is false. Fix whitespace.
11124 * tree-ssa-pre.c (pass_pre::execute): Call
11125 split_edges_for_insertion instead of split_critical_edges.
11126 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
11127 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
11128 (pass_data_sink_code): Update function name in the comment.
11129
11130 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
11131
11132 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
11133 around is_value_included_in that knows how to handle BIT_AND_EXPR.
11134 (is_pred_expr_subset_of): Use the new function. Handle more cases where
11135 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
11136 positives.
11137
11138 2019-05-21 Martin Liska <mliska@suse.cz>
11139
11140 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
11141 an extra newline.
11142 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
11143 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
11144 vec_lvsr.
11145 * config/rs6000/rs6000.c (rs6000_option_override_internal):
11146 Quote a C type.
11147 (rs6000_function_arg): Likewise.
11148 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
11149 (rs6000_expand_ternop_builtin): Use interval syntax.
11150 (get_element_number): Likewise.
11151 (altivec_expand_builtin): Likewise.
11152 (rs6000_get_function_versions_dispatcher): Quote target_clones.
11153
11154 2019-05-20 Jakub Jelinek <jakub@redhat.com>
11155
11156 PR c++/59813
11157 PR target/90418
11158 * function.h (struct function): Add calls_eh_return member.
11159 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
11160 gimplifying __builtin_eh_return call.
11161 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
11162 to cfun.
11163 (expand_call_inline): Or in src_cfun->calls_eh_return into
11164 dst_cfun->calls_eh_return.
11165 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
11166 cfun->calls_eh_return.
11167 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
11168 * lto-streamer-out.c (output_struct_function_base): Write
11169 calls_eh_return.
11170
11171 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
11172
11173 PR rtl-optimization/43147
11174 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
11175 IX86_BUILTIN_SHUFPD.
11176
11177 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
11178
11179 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
11180 (refs_may_alias_p_1): ... here; update stats.
11181 (refs_may_alias_p): Do not update stats here.
11182
11183 2019-05-20 Richard Biener <rguenther@suse.de>
11184
11185 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
11186 doesn't produce pointers.
11187 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
11188 the first operand points to.
11189
11190 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
11191
11192 * tree-ssa-alias.c (compare_sizes): New function.
11193 (sompare_type_sizes): New function
11194 (aliasing_component_refs_p): Use it.
11195 (indirect_ref_may_alias_decl_p): Likewise.
11196
11197 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11198
11199 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
11200
11201 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11202
11203 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
11204 (LIBLSAN_EARLY_SPEC): Likewise.
11205 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
11206
11207 2019-05-20 Martin Liska <mliska@suse.cz>
11208
11209 * config/i386/i386.c (ix86_libc_has_fast_function):
11210 Add ATTRIBUTE_UNUSED for the argument.
11211
11212 2019-05-20 Richard Biener <rguenther@suse.de>
11213
11214 * gimple-match-head.c: Include vec-perm-indices.h.
11215 * generic-match-head.c: Likewise.
11216 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
11217 is included.
11218 * fold-const.c (fold_vec_perm): Export.
11219 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
11220 (match.pd): ...here.
11221
11222 2019-05-20 Jakub Jelinek <jakub@redhat.com>
11223
11224 * cfgloop.h (struct loop): Add simdlen member.
11225 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
11226 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
11227 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
11228 as new argument to autovectorize_vector_sizes target hook. If
11229 loop->simdlen, pick up vector size where the vectorization factor
11230 is equal to loop->simd, and if there is none, fall back to the first
11231 successful one.
11232 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
11233 caller.
11234 * omp-low.c (omp_clause_aligned_alignment): Likewise.
11235 * omp-general.c (omp_max_vf): Likewise.
11236 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
11237 * tree-vect-slp.c (vect_slp_bb): Likewise.
11238 * target.def (autovectorize_vector_sizes): Add ALL argument and
11239 document it.
11240 * doc/tm.texi: Adjust documentation.
11241 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
11242 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
11243 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
11244 bool argument.
11245 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
11246 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
11247 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
11248 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
11249 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
11250 preferred vector size is not 512-bit or 256-bit, just put those
11251 unpreferred ones last.
11252
11253 2019-05-20 Martin Liska <mliska@suse.cz>
11254
11255 * targhooks.c (default_libc_has_fast_function): New function.
11256 * targhooks.h (default_libc_has_fast_function): Likewise.
11257
11258 2019-05-20 Martin Liska <mliska@suse.cz>
11259
11260 PR middle-end/90263
11261 * builtins.c (expand_builtin_memory_copy_args): When having a
11262 target with fast mempcpy implementation do now use memcpy.
11263 * config/i386/i386.c (ix86_libc_has_fast_function): New.
11264 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
11265 * doc/tm.texi: Likewise.
11266 * doc/tm.texi.in: Likewise.
11267 * target.def:
11268 * expr.c (emit_block_move_hints): Add 2 new arguments.
11269 * expr.h (emit_block_move_hints): Bail out when libcall
11270 to memcpy would be used.
11271
11272 2019-05-20 Martin Liska <mliska@suse.cz>
11273
11274 * profile-count.c: Add vertical spacing in order
11275 to separate functions.
11276 * profile-count.h: Likewise.
11277
11278 2019-05-20 Martin Liska <mliska@suse.cz>
11279
11280 * profile-count.h: Do not use full qualified
11281 names if possible.
11282 * profile-count.c (profile_count::to_frequency): Likewise.
11283
11284 2019-05-20 Martin Liska <mliska@suse.cz>
11285
11286 * profile-count.h (enum profile_quality): Use capital letters
11287 for enum value names. Use the adjusted names.
11288 * profile-count.c: Use the adjusted names.
11289
11290 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11291
11292 * config/rs6000/constraints.md (define_register_constraint "wH"):
11293 Delete.
11294 (define_register_constraint "wI"): Delete.
11295 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11296 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
11297 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11298 (rs6000_init_hard_regno_mode_ok): Adjust.
11299 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
11300 resp. "d", or with "wa" as appropriate, all with "p8v".
11301 * config/rs6000/vsx.md: Ditto.
11302 * doc/md.texi (Machine Constraints): Adjust.
11303
11304 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11305
11306 * config/rs6000/constraints.md (define_register_constraint "wy"):
11307 Delete.
11308 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11309 RS6000_CONSTRAINT_wy.
11310 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11311 (rs6000_init_hard_regno_mode_ok): Adjust.
11312 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
11313 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
11314 (define_mode_attr Fisa): New.
11315 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
11316 * doc/md.texi (Machine Constraints): Adjust.
11317
11318 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11319
11320 * config/rs6000/constraints.md (define_register_constraint "wu"):
11321 Delete.
11322 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11323 RS6000_CONSTRAINT_wu.
11324 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11325 (rs6000_init_hard_regno_mode_ok): Adjust.
11326 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
11327 both with "p8v".
11328 (define_mode_attr Fa): Delete.
11329 * config/rs6000/vsx.md: Ditto.
11330 * doc/md.texi (Machine Constraints): Adjust.
11331
11332 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11333
11334 * config/rs6000/constraints.md (define_register_constraint "wJ"):
11335 Delete.
11336 (define_register_constraint "wK"): Delete.
11337 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11338 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
11339 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11340 (rs6000_init_hard_regno_mode_ok): Adjust.
11341 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
11342 Replace "wK" constraint by "wH" with "p9v".
11343 * config/rs6000/vsx.md: Ditto.
11344 * doc/md.texi (Machine Constraints): Adjust.
11345
11346 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11347
11348 * config/rs6000/constraints.md (define_register_constraint "wb"):
11349 Delete.
11350 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11351 RS6000_CONSTRAINT_wb.
11352 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11353 (rs6000_init_hard_regno_mode_ok): Adjust.
11354 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
11355 * config/rs6000/vsx.md: Ditto.
11356 * doc/md.texi (Machine Constraints): Adjust.
11357
11358 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11359
11360 * config/rs6000/constraints.md (define_register_constraint "wo"):
11361 Delete.
11362 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11363 RS6000_CONSTRAINT_wo.
11364 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11365 (rs6000_init_hard_regno_mode_ok): Adjust.
11366 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
11367 * config/rs6000/altivec.md: Ditto.
11368 * doc/md.texi (Machine Constraints): Adjust.
11369
11370 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
11371
11372 * config/darwin-c.c (darwin_register_objc_includes): Do not
11373 prepend the sysroot when building gnu-runtime header search
11374 paths.
11375
11376 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
11377
11378 * config/darwin.c (darwin_file_end): Use switch_to_section ()
11379 instead of direct output of the asm.
11380
11381 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
11382
11383 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
11384 argument to be type bool (was int before).
11385 (rs6000_emit_epilogue): Simplify some code. Declare some variables
11386 at first use. Use type bool for some variables. Fix a theoretical
11387 eh_return bug for svr4.
11388
11389 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
11390
11391 * config/rs6000/rs6000.md (isa): New attribute.
11392 (enabled): New attribute.
11393
11394 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
11395
11396 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
11397 assemble_start_function and assemble_end_function.
11398
11399 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
11400
11401 PR middle-end/89433
11402 * omp-general.c (oacc_verify_routine_clauses): Change formal
11403 parameters. Add checking if already marked with an OpenACC
11404 'routine' directive. Adjust all users.
11405
11406 PR middle-end/89433
11407 * omp-general.c (oacc_build_routine_dims): Move some of its
11408 processing into...
11409 (oacc_verify_routine_clauses): ... this new function.
11410 * omp-general.h (oacc_verify_routine_clauses): New prototype.
11411
11412 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
11413
11414 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
11415 formating of picbase labels to match other ports.
11416
11417 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
11418
11419 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
11420 in the generated code.
11421
11422 2019-05-16 Martin Sebor <msebor@redhat.com>
11423
11424 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
11425 identifiers, keywords, operators, and types in diagnostics. Correct
11426 quoting, spelling, and sentence capitalization issues.
11427 (expand_builtin_atomic_is_lock_free): Same.
11428 (fold_builtin_next_arg): Same.
11429 * cfgexpand.c (expand_one_var): Same.
11430 (tree_conflicts_with_clobbers_p): Same.
11431 (expand_asm_stmt): Same.
11432 (verify_loop_structure): Same.
11433 * cgraphunit.c (process_function_and_variable_attributes): Same.
11434 * collect-utils.c (collect_execute): Same.
11435 * collect2.c (maybe_run_lto_and_relink): Same.
11436 (is_lto_object_file): Same.
11437 (scan_prog_file): Same.
11438 * convert.c (convert_to_real_1): Same.
11439 * dwarf2out.c (dwarf2out_begin_prologue): Same.
11440 * except.c (verify_eh_tree): Same.
11441 * gcc.c (execute): Same.
11442 (eval_spec_function): Same.
11443 (run_attempt): Same.
11444 (driver::set_up_specs): Same.
11445 (compare_debug_auxbase_opt_spec_function): Same.
11446 * gcov-tool.c (unlink_gcda_file): Same.
11447 (do_merge): Same.
11448 (do_rewrite): Same.
11449 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
11450 * gimplify.c (gimplify_asm_expr): Same.
11451 (gimplify_adjust_omp_clauses): Same.
11452 * hsa-gen.c (gen_hsa_addr_insns): Same.
11453 (gen_hsa_insns_for_load): Same.
11454 (gen_hsa_cmp_insn_from_gimple): Same.
11455 (gen_hsa_insns_for_operation_assignment): Same.
11456 (gen_get_level): Same.
11457 (gen_hsa_alloca): Same.
11458 (omp_simple_builtin::generate): Same.
11459 (gen_hsa_atomic_for_builtin): Same.
11460 (gen_hsa_insns_for_call): Same.
11461 * input.c (dump_location_info): Same.
11462 * ipa-devirt.c (compare_virtual_tables): Same.
11463 * ira.c (ira_setup_eliminable_regset): Same.
11464 * lra-assigns.c (lra_assign): Same.
11465 * lra-constraints.c (lra_constraints): Same.
11466 * lto-streamer-in.c (lto_input_mode_table): Same.
11467 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
11468 (merge_and_complain): Same.
11469 (compile_offload_image): Same.
11470 (compile_images_for_offload_targets): Same.
11471 (debug_objcopy): Same.
11472 (run_gcc): Same.
11473 (main): Same.
11474 * opts.c (print_specific_help): Same.
11475 (parse_no_sanitize_attribute): Same.
11476 (print_help): Same.
11477 (handle_param): Same.
11478 * plugin.c (add_new_plugin): Same.
11479 (parse_plugin_arg_opt): Same.
11480 (try_init_one_plugin): Same.
11481 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
11482 operators, and types in diagnostics. Correct quoting and spelling
11483 issues.
11484 * read-rtl-function.c (parse_edge_flag_token): Same.
11485 (function_reader::parse_enum_value): Same.
11486 * reg-stack.c (check_asm_stack_operands): Same.
11487 * regcprop.c (validate_value_data): Same.
11488 * sched-rgn.c (make_pass_sched_fusion): Same.
11489 * stmt.c (check_unique_operand_names): Same.
11490 * targhooks.c (default_target_option_pragma_parse): Same.
11491 * tlink.c (recompile_files): Same.
11492 * toplev.c (process_options): Same.
11493 (do_compile): Same.
11494 * trans-mem.c (diagnose_tm_1): Same.
11495 (ipa_tm_scan_irr_block): Same.
11496 (ipa_tm_diagnose_transaction): Same.
11497 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
11498 format a tree code name in a diagnostic.
11499 (verify_types_in_gimple_min_lval): Same.
11500 (verify_types_in_gimple_reference): Same.
11501 (verify_gimple_call): Same.
11502 (verify_gimple_assign_unary): Same.
11503 (verify_gimple_assign_binary): Same.
11504 (verify_gimple_assign_ternary): Same.
11505 (verify_gimple_assign_single): Same.
11506 (verify_gimple_switch): Same.
11507 (verify_gimple_label): Same.
11508 (verify_gimple_phi): Same.
11509 (verify_gimple_in_seq): Same.
11510 (verify_eh_throw_stmt_node): Same.
11511 (collect_subblocks): Same.
11512 (gimple_verify_flow_info): Same.
11513 (do_warn_unused_result): Same.
11514 * tree-inline.c (expand_call_inline): Same.
11515 * tree-into-ssa.c (update_ssa): Same.
11516 * tree.c (tree_int_cst_elt_check_failed): Same.
11517 (tree_vec_elt_check_failed): Same.
11518 (omp_clause_operand_check_failed): Same.
11519 (verify_type_variant): Same.
11520 (verify_type): Same.
11521 * value-prof.c (verify_histograms): Same.
11522 * varasm.c (assemble_start_function): Same.
11523
11524 2019-05-16 Martin Sebor <msebor@redhat.com>
11525
11526 * config/i386/i386-expand.c (get_element_number): Quote keywords
11527 and other internal names in diagnostics. Adjust other diagnostic
11528 formatting issues noted by -Wformat-diag.
11529 * config/i386/i386-features.c
11530 (ix86_mangle_function_version_assembler_name): Same.
11531 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
11532 * config/i386/i386.c (ix86_function_type_abi): Same.
11533 (ix86_function_ms_hook_prologue): Same.
11534 (classify_argument): Same.
11535 (ix86_expand_prologue): Same.
11536 (ix86_md_asm_adjust): Same.
11537 (ix86_memmodel_check): Same.
11538
11539 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11540
11541 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
11542 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
11543 and fpxx modes.
11544
11545 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
11546
11547 PR target/90497
11548 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
11549 intrinsics without SSE/SSE2/SSSE3.
11550 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
11551 check.
11552 (*mmx_uavgv8qi3): Likewise.
11553
11554 2019-05-17 Richard Biener <rguenther@suse.de>
11555
11556 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
11557 VEC_PERM_EXPR as __VEC_PERM with -gimple.
11558
11559 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
11560
11561 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
11562 vec_sldw insn pattern.
11563
11564 2019-05-17 Richard Biener <rguenther@suse.de>
11565
11566 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
11567
11568 2019-05-17 Martin Liska <mliska@suse.cz>
11569
11570 PR driver/90496
11571 * toplev.c (output_stack_usage): With LTO and sanitizer it
11572 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
11573 has no file location.
11574
11575 2019-05-16 Jakub Jelinek <jakub@redhat.com>
11576
11577 PR c++/90484
11578 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
11579 sz0 is equal to sz1, instead return false in that case.
11580
11581 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
11582 has non-constant expression, force sctx.lane and use two
11583 argument IFN_GOMP_SIMD_LANE instead of single argument.
11584 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
11585 two argument IFN_GOMP_SIMD_LANE without lhs.
11586 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
11587 member.
11588 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
11589 Define.
11590 (LOOP_REQUIRES_VERSIONING): Or in
11591 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
11592 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
11593 simd_if_cond.
11594 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
11595 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
11596 from simd if clause if needed.
11597
11598 2019-05-16 Richard Biener <rguenther@suse.de>
11599
11600 * tree-affine.c (expr_to_aff_combination): New function split
11601 out from...
11602 (tree_to_aff_combination): ... here.
11603 (aff_combination_expand): Avoid building a GENERIC tree.
11604
11605 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
11606
11607 * cgraphunit.c (cgraph_node::expand_thunk): Remove
11608 assemble_start_function and assemble_end_function calls.
11609 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
11610 assemble_start_function and assemble_end_function.
11611 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
11612 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
11613 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
11614 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
11615 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
11616 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
11617 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
11618 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
11619 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
11620 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
11621 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
11622 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
11623 Likewise.
11624 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
11625 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
11626 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
11627 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
11628 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
11629 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
11630 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
11631 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
11632 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
11633 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
11634 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
11635 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
11636 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
11637 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
11638 Likewise.
11639 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
11640 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
11641 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
11642
11643 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
11644
11645 * tree-ssa-alias.c (alias_stats): Add
11646 aliasing_component_refs_p_may_alias and
11647 aliasing_component_refs_p_no_alias.
11648 (dump_alias_stats): Print aliasing_component_refs_p stats.
11649 (aliasing_component_refs_p): Update stats.
11650
11651 2019-05-16 Martin Liska <mliska@suse.cz>
11652
11653 PR lto/90500
11654 * multiple_target.c (expand_target_clones): Do not allow
11655 target_clones being used with a symbol that is an alias.
11656
11657 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
11658
11659 PR tree-optimization/90394
11660 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
11661 positives rather than ICE for cases where (code2 == NE_EXPR
11662 && code1 == BIT_AND_EXPR).
11663
11664 2019-05-16 Jakub Jelinek <jakub@redhat.com>
11665
11666 PR fortran/90329
11667 * tree-core.h (struct tree_decl_common): Document
11668 decl_nonshareable_flag for PARM_DECLs.
11669 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
11670 * calls.c (expand_call): Don't try tail call if caller
11671 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
11672 passed on the stack and callee needs to pass any arguments on the
11673 stack.
11674 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
11675 else if instead of series of mutually exclusive ifs. Handle
11676 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
11677 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
11678
11679 * lto-streamer.h (LTO_major_version): Bump to 9.
11680
11681 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
11682
11683 PR tree-optimization/90106
11684 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
11685 new parameter as new internal function call, also move it to new
11686 basic block.
11687 (use_internal_fn): Pass internal function call to
11688 shrink_wrap_one_built_in_call_with_conds.
11689
11690 2019-05-15 Jakub Jelinek <jakub@redhat.com>
11691
11692 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
11693 max_vf to 1.
11694 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
11695 safelen_int and set loop->dont_vectorize.
11696
11697 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11698
11699 PR target/89021
11700 * config/i386/i386-builtin.def: Enable MMX intrinsics with
11701 SSE/SSE2/SSSE3.
11702 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
11703 Likewise.
11704 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
11705 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
11706 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
11707 is defined.
11708
11709 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11710
11711 PR target/89021
11712 * config/i386/mmx.md (*vec_dupv2sf): Changed to
11713 define_insn_and_split to support SSE emulation.
11714 (*vec_extractv2sf_0): Likewise.
11715 (*vec_extractv2sf_1): Likewise.
11716 (*vec_extractv2si_0): Likewise.
11717 (*vec_extractv2si_1): Likewise.
11718 (*vec_extractv2si_zext_mem): Likewise.
11719 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
11720 (vec_extractv2sf_1 splitter): Likewise.
11721 (vec_extractv2sfsf): Likewise.
11722 (vec_setv2si): Likewise.
11723 (vec_extractv2si_1 splitter): Likewise.
11724 (vec_extractv2sisi): Likewise.
11725 (vec_setv4hi): Likewise.
11726 (vec_extractv4hihi): Likewise.
11727 (vec_setv8qi): Likewise.
11728 (vec_extractv8qiqi): Likewise.
11729 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
11730 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
11731 (vec_extractv2sisi): Likewise.
11732 (vec_extractv4hihi): Likewise.
11733 (vec_extractv8qiqi): Likewise.
11734 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
11735 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
11736 (vec_initv2sisi): Likewise.
11737 (vec_initv4hihi): Likewise.
11738 (vec_initv8qiqi): Likewise.
11739 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
11740 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
11741 (vec_setv4hi): Likewise.
11742 (vec_setv8qi): Likewise.
11743
11744 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11745
11746 PR target/89021
11747 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
11748 TARGET_MMX_WITH_SSE.
11749 (MMXMODE:*mov<mode>_internal): Likewise.
11750 (MMXMODE:movmisalign<mode>): Likewise.
11751
11752 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
11753
11754 PR target/89021
11755 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
11756 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
11757 (sse2_cvtpd2pi): Ditto.
11758 (sse2_cvttpd2pi): Ditto.
11759 (*vec_concatv2sf_sse4_1): Ditto.
11760 (*vec_concatv2sf_sse): Ditto.
11761 (*vec_concatv2si_sse4_1): Ditto.
11762 (*vec_concatv2si): Ditto.
11763 (*vec_concatv4si_0): Ditto.
11764 (*vec_concatv2di_0): Ditto.
11765
11766 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11767
11768 PR target/89021
11769 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
11770
11771 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11772
11773 PR target/89021
11774 * config/i386/sse.md (ssse3_palignrdi): Changed to
11775 define_insn_and_split to support SSE emulation.
11776
11777 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11778
11779 PR target/89021
11780 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
11781
11782 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11783
11784 PR target/89021
11785 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
11786 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
11787 SSE emulation.
11788
11789 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11790
11791 PR target/89021
11792 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
11793 or TARGET_MMX_WITH_SSE.
11794 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
11795
11796 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11797
11798 PR target/89021
11799 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
11800
11801 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11802
11803 PR target/89021
11804 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
11805 Changed to define_insn_and_split to support SSE emulation.
11806
11807 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11808
11809 PR target/89021
11810 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
11811 Changed to define_insn_and_split to support SSE emulation.
11812
11813 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11814
11815 PR target/89021
11816 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
11817 (*mmx_<emms>): This.
11818 (mmx_<emms>): New expander.
11819
11820 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11821
11822 PR target/89021
11823 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
11824 support.
11825 (*sse2_umulv1siv1di3): Add SSE2 emulation.
11826
11827 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11828
11829 PR target/89021
11830 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
11831
11832 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11833
11834 PR target/89021
11835 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
11836
11837 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11838
11839 PR target/89021
11840 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
11841 TARGET_MMX_WITH_SSE.
11842 (*mmx_uavgv4hi3): Add SSE emulation.
11843
11844 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11845
11846 PR target/89021
11847 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
11848 and TARGET_MMX_WITH_SSE.
11849 (*mmx_uavgv8qi3): Add SSE emulation.
11850
11851 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11852
11853 PR target/89021
11854 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
11855 maskmovdqu for __MMX_WITH_SSE__.
11856
11857 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11858
11859 PR target/89021
11860 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
11861 TARGET_MMX and TARGET_MMX_WITH_SSE.
11862 (*mmx_umulv4hi3_highpart): Add SSE emulation.
11863
11864 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11865
11866 PR target/89021
11867 * config/i386/mmx.md (mmx_pmovmskb): Changed to
11868 define_insn_and_split to support SSE emulation.
11869
11870 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11871
11872 PR target/89021
11873 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
11874 and TARGET_MMX_WITH_SSE.
11875 (mmx_<code>v8qi3): Likewise.
11876 (smaxmin:<code>v4hi3): New.
11877 (umaxmin:<code>v8qi3): Likewise.
11878 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
11879 (umaxmin:*mmx_<code>v8qi3): Likewise.
11880
11881 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11882
11883 PR target/89021
11884 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
11885 TARGET_MMX_WITH_SSE.
11886 (*mmx_pinsrw): Add SSE emulation.
11887
11888 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11889
11890 PR target/89021
11891 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
11892
11893 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11894
11895 PR target/89021
11896 * config/i386/sse.md (sse_cvtpi2ps): Changed to
11897 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
11898 SSE emulation.
11899
11900 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11901
11902 PR target/89021
11903 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
11904 (sse_cvttps2pi): Likewise.
11905
11906 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11907
11908 PR target/89021
11909 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
11910 TARGET_MMX_WITH_SSE.
11911 (mmx_pshufw_1): Add SSE emulation.
11912 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
11913 TARGET_MMX_WITH_SSE to support SSE emulation.
11914
11915 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11916
11917 PR target/89021
11918 * config/i386/constraints.md (Yw): New constraint.
11919 * config/i386/mmx.md (*vec_dupv2si): Changed to
11920 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
11921 support SSE emulation.
11922
11923 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11924
11925 PR target/89021
11926 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
11927 TARGET_MMX_WITH_SSE.
11928 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
11929 support.
11930 (mmx_gt<mode>3): Likewise.
11931
11932 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11933
11934 PR target/89021
11935 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
11936 TARGET_MMX_WITH_SSE. Add SSE support.
11937
11938 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11939
11940 PR target/89021
11941 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
11942 TARGET_MMX_WITH_SSE.
11943 (any_logic:<code><mode>3): New.
11944 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
11945 Add SSE support.
11946
11947 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11948
11949 PR target/89021
11950 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
11951 TARGET_MMX_WITH_SSE. Add SSE emulation.
11952 (mmx_<shift_insn><mode>3): Likewise.
11953 (ashr<mode>3): New.
11954 (<shift_insn><mode>3): Likewise.
11955
11956 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11957
11958 PR target/89021
11959 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
11960 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
11961
11962 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11963
11964 PR target/89021
11965 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
11966 TARGET_MMX_WITH_SSE.
11967 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
11968 SSE support.
11969
11970 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11971
11972 PR target/89021
11973 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
11974 TARGET_MMX_WITH_SSE.
11975 (mulv4hi3): New.
11976 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
11977 support.
11978
11979 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11980
11981 PR target/89021
11982 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
11983 (plusminus:mmx_<plusminus_insn><mode>3): Check
11984 TARGET_MMX_WITH_SSE.
11985 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
11986 (<plusminus_insn><mode>3): New.
11987 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
11988 (*mmx_<plusminus_insn><mode>3): Likewise.
11989
11990 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11991
11992 PR target/89021
11993 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
11994 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
11995 prototype.
11996 * config/i386/mmx.m (mmx_punpckhbw): Changed to
11997 define_insn_and_split to support SSE emulation.
11998 (mmx_punpcklbw): Likewise.
11999 (mmx_punpckhwd): Likewise.
12000 (mmx_punpcklwd): Likewise.
12001 (mmx_punpckhdq): Likewise.
12002 (mmx_punpckldq): Likewise.
12003
12004 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12005 Uros Bizjak <ubizjak@gmail.com>
12006
12007 PR target/89021
12008 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
12009 New function.
12010 (ix86_split_mmx_pack): Likewise.
12011 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
12012 New prototype.
12013 (ix86_split_mmx_pack): Likewise.
12014 * config/i386/i386.md (mmx_isa): New.
12015 (enabled): Also check mmx_isa.
12016 * config/i386/mmx.md (any_s_truncate): New code iterator.
12017 (s_trunsuffix): New code attr.
12018 (mmx_packsswb): Removed.
12019 (mmx_packssdw): Likewise.
12020 (mmx_packuswb): Likewise.
12021 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
12022 MMX packsswb/packuswb with SSE2.
12023 (mmx_packssdw): Likewise.
12024 * config/i386/predicates.md (register_mmxmem_operand): New.
12025
12026 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12027
12028 PR target/89021
12029 * config/i386/i386-c.c (ix86_target_macros_internal): Define
12030 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
12031 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
12032 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
12033 (ix86_vector_mode_supported_p): Likewise.
12034 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
12035
12036 2019-05-15 Martin Liska <mliska@suse.cz>
12037
12038 PR middle-end/90478
12039 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
12040 Check for overflow.
12041
12042 2019-05-15 Richard Biener <rguenther@suse.de>
12043
12044 * tree-into-ssa.c (pass_build_ssa::execute): Run
12045 update_address_taken before going into SSA.
12046
12047 2019-05-15 Richard Biener <rguenther@suse.de>
12048
12049 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
12050 as __BIT_FIELD_REF with type with -gimple.
12051
12052 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
12053
12054 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
12055 semantically equivalent branches (left over after prior refactorings).
12056
12057 2019-05-15 Richard Biener <rguenther@suse.de>
12058
12059 PR tree-optimization/88828
12060 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
12061 bogus check.
12062
12063 2019-05-14 Richard Biener <rguenther@suse.de>
12064
12065 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
12066 as __VIEW_CONVERT with -gimple.
12067
12068 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
12069
12070 PR target/82920
12071 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
12072 Darwin.
12073
12074 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
12075
12076 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
12077 define_split to become a define_insn_and_split.
12078
12079 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
12080
12081 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
12082 arguments.
12083 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
12084 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
12085 (sibcall_epilogue): Adjust.
12086 (epilogue): Adjust.
12087
12088 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12089
12090 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
12091 to unsupported ones.
12092 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
12093 * config.host: Likewise.
12094 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
12095 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
12096 __svr4__]: Remove "brand" fallback.
12097 [!KSTAT_DATA_STRING]: Remove.
12098 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
12099 to *-*-solaris2*.
12100 (comdat_group): Likewise.
12101 (set_have_as_tls): Likewise.
12102 (gcc_cv_target_dl_iterate_phdr): Likewise.
12103 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
12104 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
12105 * configure: Regenerate.
12106 * doc/install.texi: Simplify Solaris target triplets.
12107 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
12108 (Specific, *-*-solaris2*): Document Solaris 10 removal.
12109 Remove Solaris 10 references.
12110 Remove obsolete Solaris bug reference.
12111 (Specific, sparc-sun-solaris2.10): Remove.
12112
12113 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
12114
12115 * config/i386/i386.md (any_div): New code iterator.
12116 (paired_mod): New code attribute.
12117 (sgnprefix): Handle DIV and UDIV RTXes.
12118 (u): Ditto.
12119 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
12120 and udivmod<mode>4 patterns using any_div code iterator.
12121 (divmod splitters): Macroize splitters using any_div code iterator.
12122 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
12123 (*udivmodsi4_pow2_zext_2): Ditto.
12124 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
12125 and *udivmod<mode>4_noext patterns using any_div code iterator.
12126 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
12127 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
12128 patterns using any_div code iterator.
12129 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
12130 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
12131 patterns using any_div code iterator.
12132 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
12133 udivmodhiqi3 patterns using any_extend code iterator.
12134
12135 2019-05-14 Richard Biener <rguenther@suse.de>
12136 H.J. Lu <hongjiu.lu@intel.com>
12137
12138 PR tree-optimization/88828
12139 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
12140 permuting in a single non-constant element not extracted
12141 from a vector.
12142
12143 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
12144
12145 * internal-fn.def (SIGNBIT): New.
12146 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
12147 defined.
12148 (signbitv4sf2): Likewise.
12149
12150 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
12151
12152 PR target/90357
12153 * config/mips/mips.c (mips_split_move): Skip forward SRC into
12154 next insn when the SRC reg is dead.
12155
12156 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
12157
12158 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
12159 (alloc_cand_and_find_basis): Ditto.
12160 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
12161 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
12162 (create_add_imm_cand, slsr_process_cast): Ditto.
12163 (slsr_process_copy, replace_mult_candidate): Ditto.
12164 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
12165 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
12166 (pass_strength_reduction::execute): Init the first NULL element.
12167
12168 2019-05-13 Nathan Sidwell <nathan@acm.org>
12169
12170 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
12171 (run_attempt): Reformat line break.
12172
12173 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
12174
12175 PR target/90418
12176 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
12177 data registers in sibcall epilogues.
12178 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
12179
12180 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
12181
12182 PR target/89221
12183 * configure.ac (--enable-frame-pointer):
12184 Disable by default for cygwin and mingw.
12185 * configure: Regenerate.
12186
12187 2019-05-13 Nathan Sidwell <nathan@acm.org>
12188
12189 * dwarf2out.c (breakout_comdat_types): Move comment to correct
12190 piece of code.
12191 (const_ok_for_output_1): Balance parens around #if/#else/#endif
12192 (gen_member_die): Move abstract origin check earlier. Only VARs
12193 can be static_inline_p. Simplify splicing control flow.
12194
12195 2019-05-13 Richard Biener <rguenther@suse.de>
12196
12197 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
12198 VIEW_CONVERT_EXPR.
12199 (vect_build_slp_tree_1): Likewise.
12200
12201 2019-05-13 Richard Biener <rguenther@suse.de>
12202
12203 PR tree-optimization/90402
12204 * tree-if-conv.c (tree_if_conversion): Value number only
12205 the loop body by making the latch an exit of the region
12206 as well.
12207 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
12208 processing PHIs.
12209 (do_rpo_vn): Deal with multiple edges into the entry block
12210 that are not backedges inside the region by skipping PHIs
12211 of the entry block.
12212
12213 2019-05-13 Richard Biener <rguenther@suse.de>
12214
12215 PR tree-optimization/90316
12216 * tree-ssa-pre.c (insert_aux): Fold into ...
12217 (insert): ... this function. Use a RPO walk to reduce the
12218 number of required iterations.
12219
12220 2019-05-13 Martin Liska <mliska@suse.cz>
12221
12222 PR tree-optimization/90416
12223 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
12224 string instead of passing the second part as va_arg argument.
12225
12226 2019-05-13 Martin Liska <mliska@suse.cz>
12227
12228 PR gcov-profile/90380
12229 * gcov.c (handle_cycle): Do not support zero cycle count,
12230 it should not be possible.
12231 (path_contains_zero_cycle_arc): New function.
12232 (circuit): Ignore zero cycle arc counts.
12233
12234 2019-05-13 Martin Liska <mliska@suse.cz>
12235
12236 PR gcov-profile/90380
12237 * gcov.c (enum loop_type): Remove the enum and
12238 the operator.
12239 (handle_cycle): Assert that we should not reach
12240 a negative count.
12241 (circuit): Use loop_found instead of a tri-state loop_type.
12242 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
12243 happen.
12244
12245 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
12246
12247 PR target/82920
12248 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
12249 (ix86_output_indirect_branch_via_reg): Use output mechanism
12250 accounting for __USER_LABEL_PREFIX__.
12251 (ix86_output_indirect_branch_via_push): Likewise.
12252 (ix86_output_function_return): Likewise.
12253 (ix86_output_indirect_function_return): Likewise.
12254
12255 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
12256
12257 * doc/md.texi: Document use of code attributes in rtx patterns.
12258 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
12259 * read-rtl.c (find_code): Split out search loops into...
12260 (maybe_find_code): ...this new function.
12261 (check_code_iterator): Make the error message more informative.
12262 (check_code_attribute): New function.
12263 (rtx_reader::rtx_alloc_for_name): Likewise.
12264 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
12265 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
12266 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
12267 <max_opp> directly as an rtx code instead of via a match_operator.
12268 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
12269 (<su>abd<mode>_3): Update accordingly.
12270
12271 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
12272
12273 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
12274 is given, print the state of the EH "save world" computation for
12275 Darwin.
12276
12277 2019-05-11 Jakub Jelinek <jakub@redhat.com>
12278
12279 PR c++/59813
12280 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
12281 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
12282
12283 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
12284
12285 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
12286 Use pinsrd for TARGET_SSE4_1.
12287 * config/i386/sse.md (movdi_to_sse): Ditto.
12288
12289 2019-05-10 Richard Biener <rguenther@suse.de>
12290
12291 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
12292 (do_rpo_vn): Initialize next_value_id.
12293
12294 2019-05-10 Martin Liska <mliska@suse.cz>
12295
12296 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
12297 Fix plural form.
12298
12299 2019-05-10 Jakub Jelinek <jakub@redhat.com>
12300
12301 PR tree-optimization/90385
12302 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
12303 arguments of the exit phis.
12304
12305 PR c++/90383
12306 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
12307 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
12308 id->do_not_fold.
12309 (copy_tree_body_r): Likewise.
12310 (copy_fn): Set id.do_not_fold to true.
12311
12312 2019-05-10 Martin Liska <mliska@suse.cz>
12313
12314 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
12315 Reapply changes from r269790.
12316
12317 2019-05-10 Martin Liska <mliska@suse.cz>
12318
12319 PR middle-end/90340
12320 * doc/invoke.texi: New params.
12321 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
12322 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
12323 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
12324 Use it.
12325 * tree-switch-conversion.h (struct jump_table_cluster):
12326 Likewise.
12327
12328 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
12329
12330 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
12331
12332 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
12333
12334 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
12335
12336 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
12337
12338 PR rtl-optimization/88879
12339 * sel-sched.c (sel_target_adjust_priority): Remove assert.
12340
12341 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
12342
12343 PR target/90405
12344 * config/arm/arm.c (callee_saved_reg_p): Move before
12345 thumb_find_work_register.
12346 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
12347 thumb_find_work_register. Only call df_get_live_out once.
12348 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
12349 (thumb_find_work_register): Use
12350 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
12351 algorithms to locate a spare call clobbered reg.
12352
12353 2019-05-09 Martin Liska <mliska@suse.cz>
12354
12355 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
12356 and MAX_EXPR in GIMPLE FE format.
12357
12358 2019-05-09 Martin Liska <mliska@suse.cz>
12359
12360 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
12361 * gimple-pretty-print.c (dump_gimple_bb_header):
12362 Dump BB count.
12363 (pp_cfg_jump): Dump edge probability.
12364 * profile-count.c (profile_quality_as_string): Simplify
12365 with a static array.
12366 (parse_profile_quality): New function.
12367 (profile_count::dump): Simplify with a static array.
12368 (profile_count::from_gcov_type): Add new argument.
12369 * profile-count.h (parse_profile_quality): Likewise.
12370 * predict.h (set_hot_bb_threshold): New.
12371 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
12372 New param.
12373 * predict.c (get_hot_bb_threshold): Set from the new param.
12374 (set_hot_bb_threshold): New.
12375
12376 2019-05-09 Richard Biener <rguenther@suse.de>
12377
12378 PR tree-optimization/90395
12379 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
12380 rewrite vector stores that throw internally.
12381
12382 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
12383
12384 * cif-code.def (CHKP): Remove.
12385
12386 PR target/89221
12387 * configure.ac (--enable-frame-pointer): Disable by default for
12388 GNU systems.
12389 * configure: Regenerate.
12390
12391 2019-05-09 Alan Modra <amodra@gmail.com>
12392
12393 PR target/89271
12394 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
12395 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
12396 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
12397 cost for general <-> vsx when direct moves are available.
12398 Cost union classes at minimal cost for any reg in the class.
12399 Correct calculation for moves between vsx, float, and altivec.
12400 Don't return a low cost for moves between special regs. Don't
12401 use hard coded register numbers.
12402 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
12403 (rs6000_ira_change_pseudo_allocno_class): New function.
12404 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
12405 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
12406 alternatives.
12407 (movsi_internal1): Don't disparage vector alternatives.
12408 (mov<mode>_internal): Likewise, excepting alternative that
12409 will be split.
12410 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
12411 we <- b alternative.
12412
12413 2019-05-08 Jakub Jelinek <jakub@redhat.com>
12414
12415 PR c++/59813
12416 PR tree-optimization/89060
12417 * tree-ssa-live.h (live_vars_map): New typedef.
12418 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
12419 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
12420 (struct compute_live_vars_data): New type.
12421 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
12422 live_vars_at_stmt, destroy_live_vars): New functions.
12423 * tree-tailcall.c: Include tree-ssa-live.h.
12424 (live_vars, live_vars_vec): New global variables.
12425 (find_tail_calls): Perform variable life analysis before punting.
12426 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
12427 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
12428 member.
12429 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
12430 Perform variable life analysis to select variables that really need
12431 clobbers added.
12432 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
12433 instead set id->eh_landing_pad_dest and assert it is the same.
12434 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
12435
12436 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
12437 Richard Earnshaw <rearnsha@arm.com>
12438
12439 PR target/88167
12440 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
12441 function.
12442 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
12443 (thumb1_compute_save_core_reg_mask): Don't force a spare work
12444 register if both the epilogue and prologue can use call-clobbered
12445 regs.
12446 (thumb1_unexpanded_epilogue): Use
12447 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
12448 picking temporaries for restoring high regs to match that of the
12449 prologue where possible.
12450 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
12451 the list of work registers. Detect if the return address is still live
12452 at the end of the prologue and avoid using it for a work register if so.
12453 If the return address is not live, add LR to the list of pushable regs
12454 after the first pass.
12455
12456 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
12457
12458 PR tree-optimization/90078
12459 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
12460 (INFTY): Increase the value for infinite cost.
12461 (struct comp_cost): Promote type of members to int64_t.
12462 (infinite_cost): Don't set complexity in initialization.
12463 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
12464 overflows to infinite_cost.
12465 (adjust_setup_cost): Promote type of parameter and cost computation
12466 to int64_t.
12467 (struct ainc_cost_data, struct iv_ca): Promote type of member to
12468 int64_t.
12469 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
12470 cost computation to int64_t.
12471 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
12472 int64_t's format specifier in dump.
12473
12474 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
12475
12476 PR tree-optimization/90240
12477 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
12478 with respect to scaling factor pre-computed for each basic block.
12479 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
12480 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
12481 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
12482 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
12483 live range for array of loop's basic blocks. Cleanup aux field of
12484 loop's basic blocks.
12485
12486 2019-05-08 Jakub Jelinek <jakub@redhat.com>
12487
12488 PR tree-optimization/90356
12489 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
12490
12491 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
12492
12493 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
12494 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
12495 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
12496 (ix86_handle_option): Handle -mavx512bf16.
12497 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
12498 to extra_headers.
12499 * config/i386/avx512bf16vlintrin.h: New.
12500 * config/i386/avx512bf16intrin.h: New.
12501 * config/i386/cpuid.h (bit_AVX512BF16): New.
12502 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
12503 * config/i386/i386-builtin-types.def: Add new types.
12504 * config/i386/i386-builtin.def: Add new builtins.
12505 * config/i386/i386-c.c (ix86_target_macros_internal): Define
12506 __AVX512BF16__.
12507 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
12508 (ix86_option_override_internal): Handle BF16.
12509 (ix86_valid_target_attribute_inner_p): Ditto.
12510 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
12511 * config/i386/i386-builtin.c (enum processor_features): Add
12512 F_AVX512BF16.
12513 (static const _isa_names_table isa_names_table): Ditto.
12514 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
12515 (PTA_AVX512BF16): Ditto.
12516 * config/i386/i386.opt: Add -mavx512bf16.
12517 * config/i386/immintrin.h: Include avx512bf16intrin.h
12518 and avx512bf16vlintrin.h.
12519 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
12520 avx512f_cvtneps2bf16_<mode><mask_name>,
12521 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
12522 * config/i386/subst.md (mask_half): Add new subst.
12523 * doc/invoke.texi: Document -mavx512bf16.
12524
12525 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
12526
12527 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
12528 Delete declaration.
12529 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
12530 (rs6000_debug_legitimize_reload_address): Delete.
12531 (rs6000_legitimize_reload_address_ptr): Delete.
12532 (rs6000_option_override_internal): Adjust.
12533 (mem_operand_gpr): Adjust comment.
12534 (legitimate_lo_sum_address_p): Ditto.
12535 (rs6000_legitimize_reload_address): Delete.
12536 (rs6000_debug_legitimize_reload_address): Delete.
12537 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
12538
12539 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
12540
12541 PR target/89765
12542 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12543 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
12544 to compute vector element selector for both constant and variable
12545 operands.
12546
12547 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
12548
12549 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
12550 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
12551 ashrdi3_cvt using SWI48 mode iterator.
12552
12553 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
12554
12555 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
12556 (aarch64_<su>abd<mode>_3): Likewise.
12557 (*aarch64_<su>abd<mode>_3): New define_insn.
12558 (<sur>sad<vsi2qi>): New define_expand.
12559 * config/aarch64/iterators.md: Added MAX_OPP attribute.
12560 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
12561 (build_vect_cond_expr): Likewise.
12562
12563 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
12564
12565 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
12566 clobbers outside of accessible_reg_set.
12567 * config/i386/i386.c (ix86_conditional_register_usage):
12568 Disable register sets by clearing corresponding bits in
12569 accessible_reg_set. Do not set corresponding bits in fixed_regs,
12570 call_used_regs and don't clear corresponding reg_names array members.
12571
12572 2019-05-07 Richard Biener <rguenther@suse.de>
12573
12574 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
12575 not specified still compute a comp_vectype for invariant
12576 compares.
12577
12578 2019-05-07 Richard Biener <rguenther@suse.de>
12579
12580 PR tree-optimization/90316
12581 * tree-ssa-pre.c (translate_vuse_through_block): When
12582 same_valid is NULL do not bother to search for a virtual
12583 PHI continuation.
12584 (phi_translate_1): When operands changed we cannot keep
12585 the same value-number so do not bother to ask whether
12586 that's possible from translate_vuse_through_block.
12587
12588 2019-05-07 Martin Liska <mliska@suse.cz>
12589
12590 * bitmap.c (bitmap_register): Come up with
12591 alloc_descriptor_max_uid and assign it for
12592 a new bitmap.
12593 (register_overhead): Use get_descriptor as
12594 a descriptor.
12595 (release_overhead): New.
12596 (bitmap_elem_to_freelist): Call it.
12597 (bitmap_elt_clear_from): Likewise.
12598 (bitmap_obstack_free): Likewise.
12599 (bitmap_move): Sensitively release memory.
12600 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
12601 (bitmap_initialize): Initialize alloc_descriptor to zero.
12602 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
12603
12604 2019-05-07 Richard Biener <rguenther@suse.de>
12605
12606 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
12607 we build a SLP node. Remove max_size and limiting.
12608 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
12609
12610 2019-05-07 Richard Biener <rguenther@suse.de>
12611
12612 PR tree-optimization/90316
12613 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
12614 limit by reference.
12615 (walk_non_aliased_vuses): Take walking limit argument.
12616 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
12617 walking if it is reached instead of just counting.
12618 (get_continuation_for_phi): Likewise.
12619 (walk_non_aliased_vuses): Likewise, instead of leaving counter
12620 limiting to the callback.
12621 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
12622 (vn_reference_lookup_3): Likewise.
12623 (vn_reference_lookup_pieces): Likewise.
12624 (vn_reference_lookup): Likewise.
12625 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
12626 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
12627 (avail_exprs_stack::lookup_avail_expr): Likewise.
12628
12629 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
12630
12631 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
12632 for comparaible types in the second direction even if first one
12633 hits incomparable type.
12634
12635 2019-05-07 Richard Biener <rguenther@suse.de>
12636
12637 PR lto/90369
12638 * lto-wrapper.c (debug_objcopy): Use the original filename
12639 including archive offset for the filename used for -save-temps.
12640
12641 2019-05-07 Li Jia He <helijia@linux.ibm.com>
12642
12643 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
12644 detection.
12645
12646 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
12647 Hongtao Liu <hongtao.liu@intel.com>
12648
12649 PR target/89750
12650 PR target/86444
12651 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
12652 Modified, original implementation isn't correct.
12653
12654 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12655
12656 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
12657 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
12658 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
12659 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
12660 (FRAME_POINTER_REGNUM): Change numbering.
12661 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
12662 (alt_reg_names): Adjust.
12663 (rs6000_conditional_register_usage): Don't mark hard register 64 as
12664 fixed.
12665 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
12666 (DWARF_FRAME_REGISTERS): Delete.
12667 (DWARF2_FRAME_REG_OUT): Fix whitespace.
12668 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
12669 Adjust.
12670 (REG_ALLOC_ORDER): Adjust.
12671 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
12672 (REG_CLASS_CONTENTS): Adjust.
12673 (RETURN_ADDR_RTX): Change comment.
12674 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
12675 instead of 67.
12676 (REGISTER_NAMES): Adjust.
12677 (ADDITIONAL_REGISTER_NAMES): Adjust.
12678 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
12679
12680 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12681
12682 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
12683 Delete.
12684 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
12685 (DWARF_FRAME_REGISTERS): Adjust.
12686 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
12687 Adjust.
12688 (REG_ALLOC_ORDER): Adjust.
12689 (enum reg_class): Delete SPR_REGS.
12690 (REG_CLASS_NAMES): Delete SPR_REGS.
12691 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
12692 (REGISTER_NAMES): Adjust.
12693 (ADDITIONAL_REGISTER_NAMES): Adjust.
12694 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
12695 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
12696 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
12697 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
12698 (htm_spr_regno): Delete.
12699 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
12700 argument.
12701 (rs6000_dbx_register_number): Adjust.
12702
12703 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12704
12705 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
12706
12707 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12708
12709 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
12710 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
12711
12712 2019-05-06 Jakub Jelinek <jakub@redhat.com>
12713
12714 PR tree-optimization/88709
12715 PR tree-optimization/90271
12716 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
12717 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
12718 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
12719 variable.
12720 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
12721 of the store merging group is larger than
12722 PARAM_STORE_MERGING_MAX_SIZE parameter.
12723 (split_group): Add bzero_first argument. If set, always emit first
12724 the first store which must be = {} of the whole area and then for the
12725 rest of the stores consider all zero bytes as paddings.
12726 (imm_store_chain_info::output_merged_store): Check if first store
12727 is = {} of the whole area and if yes, determine which setting of
12728 bzero_first for split_group gives smaller number of stores. Adjust
12729 split_group callers.
12730 (lhs_valid_for_store_merging_p): Allow decls.
12731 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
12732 no elts.
12733 (pass_store_merging::process_store): Likewise.
12734
12735 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
12736
12737 PR target/89424
12738 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
12739 handling of V1TImode.
12740
12741 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
12742
12743 PR target/89221
12744 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
12745 and enable_frame_pointer ...
12746 * configure.ac: ... here. Update help strings for
12747 --enable-frame-pointer.
12748 * configure: Regenerate.
12749 * config/i386/i386-options.c (ix86_option_override_internal): Remove
12750 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
12751 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
12752 (USE_X86_64_FRAME_POINTER): Ditto.
12753
12754 2019-05-06 Martin Liska <mliska@suse.cz>
12755
12756 * config.gcc: Append to target_gtfiles and fix indentation.
12757
12758 2019-05-06 Richard Biener <rguenther@suse.de>
12759
12760 PR tree-optimization/90358
12761 * tree-vect-stmts.c (get_group_load_store_type): Properly
12762 detect unused upper half of load.
12763 (vectorizable_load): Likewise.
12764
12765 2019-05-06 Richard Biener <rguenther@suse.de>
12766
12767 PR tree-optimization/88828
12768 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
12769 (simplify_vector_constructor): ...here. Handle constants in
12770 the constructor.
12771
12772 2019-05-06 Richard Biener <rguenther@suse.de>
12773
12774 PR tree-optimization/90328
12775 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
12776 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
12777 is valid in the loop nest before using it.
12778 (initialize_data_dependence_relation): Adjust.
12779 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
12780 loop as loop-nest to dr_may_alias_p.
12781
12782 2019-05-06 Richard Biener <rguenther@suse.de>
12783
12784 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
12785
12786 2019-05-06 Richard Biener <rguenther@suse.de>
12787
12788 PR tree-optimization/90316
12789 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
12790 compute target on demand.
12791 (get_continuation_for_phi): Remove code walking stmts to
12792 get to a target virtual operand which could end up being
12793 quadratic.
12794
12795 2019-05-06 Martin Liska <mliska@suse.cz>
12796
12797 PR sanitizer/90312
12798 * config/i386/i386-options.c (ix86_option_override_internal): Error only
12799 when -mabi is selected to a non-default version.
12800
12801 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
12802 Martin Liska <mliska@suse.cz>
12803
12804 * Makefile.in: Add lto-dump.texi.
12805 * cgraph.h: Add new functions get_visibility_string and
12806 get_symtab_type_string.
12807 * doc/gcc.texi: Include lto-dump section.
12808 * doc/lto-dump.texi: New file.
12809 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
12810 (parse_dump_option): Factor out this function.
12811 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
12812 (parse_dump_option): Export the function.
12813 * symtab.c (symtab_node::get_visibility_string): New function.
12814 (symtab_node::get_symtab_type_string): Likewise.
12815
12816 2019-05-06 Martin Liska <mliska@suse.cz>
12817
12818 * config/i386/i386-builtins.c: New file.
12819 * config/i386/i386-builtins.h: New file.
12820 * config/i386/i386-expand.c: New file.
12821 * config/i386/i386-expand.h: New file.
12822 * config/i386/i386-features.c: New file.
12823 * config/i386/i386-features.h: New file.
12824 * config/i386/i386-options.c: New file.
12825 * config/i386/i386-options.h: New file.
12826 * config.gcc: Add new files into extra_objs and
12827 target_gtfiles.
12828 * config/i386/i386.c: Split content of the file
12829 into newly introduced files.
12830 * config/i386/i386.h: Declare common variables
12831 and macros.
12832 * config/i386/t-i386: Define dependencies for new files.
12833
12834 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
12835
12836 PR target/89400
12837 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
12838 Restrict 'all' variant to 32-bit configurations.
12839 (unaligned_loadhiu): Likewise.
12840 (unaligned_storehi): Likewise.
12841 (unaligned_storesi): Likewise.
12842 (unaligned_loadhis): Disable when compiling for thumb1.
12843
12844 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
12845
12846 PR tree-optimization/90269
12847 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
12848 Ignore clobbers.
12849
12850 2019-05-03 Martin Liska <mliska@suse.cz>
12851
12852 * hash-map.h: Add is_empty function.
12853 * hash-set.h: Likewise.
12854 * hash-table.h: Likewise.
12855 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
12856 elements () == 0 (and similar usages).
12857 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
12858 * gimplify.c (gimplify_bind_expr): Likewise.
12859 (gimplify_switch_expr): Likewise.
12860 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
12861 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
12862 * postreload-gcse.c (dump_hash_table): Likewise.
12863 (gcse_after_reload_main): Likewise.
12864 * predict.c (combine_predictions_for_bb): Likewise.
12865 * tree-parloops.c (reduction_phi): Likewise.
12866 (separate_decls_in_region): Likewise.
12867 (transform_to_exit_first_loop): Likewise.
12868 (gen_parallel_loop): Likewise.
12869 (gather_scalar_reductions): Likewise.
12870 (try_create_reduction_list): Likewise.
12871 * var-tracking.c (dump_vars): Likewise.
12872 (emit_notes_for_changes): Likewise.
12873 (vt_emit_notes): Likewise.
12874
12875 2019-05-03 Richard Biener <rguenther@suse.de>
12876
12877 PR tree-optimization/90316
12878 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
12879 before running VN.
12880
12881 2019-05-03 Richard Biener <rguenther@suse.de>
12882
12883 * tree-vect-stmts.c (get_group_load_store_type): Avoid
12884 peeling for gaps by loading only lower halves of vectors
12885 if possible.
12886 (vectorizable_load): Likewise.
12887
12888 2019-05-03 Richard Biener <rguenther@suse.de>
12889
12890 PR middle-end/89518
12891 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
12892
12893 2019-05-03 Richard Biener <rguenther@suse.de>
12894
12895 PR middle-end/87314
12896 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
12897 Handle STRING_CST vs DECL or STRING_CST.
12898
12899 2019-05-03 Richard Biener <rguenther@suse.de>
12900
12901 PR tree-optimization/88963
12902 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
12903 vector loads feeding only BIT_FIELD_REFs to component
12904 loads. Rewrite stores fed by CONSTRUCTORs to component
12905 stores.
12906
12907 2019-05-03 Jakub Jelinek <jakub@redhat.com>
12908
12909 * opts.h (finish_options): Remove lang_mask argument.
12910 (print_help, help_option_argument): Declare.
12911 * opts.c (print_help): Remove forward declaration, no longer static.
12912 (finish_options): Remove lang_mask argument, don't call print_help
12913 here.
12914 * opts-global.c (decode_options): Adjust finish_option caller, call
12915 print_help here.
12916
12917 PR tree-optimization/90303
12918 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
12919 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
12920
12921 2019-05-03 Richard Biener <rguenther@suse.de>
12922
12923 PR tree-optimization/89698
12924 * gimple-fold.c (canonicalize_constructor_val): Early out
12925 for constants, handle unfolded INTEGER_CSTs as they appear in
12926 C++ virtual table ctors.
12927
12928 2019-05-03 Richard Biener <rguenther@suse.de>
12929
12930 * passes.c (execute_function_todo): Remove dead code.
12931
12932 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
12933
12934 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
12935 the internal register number, for any "real" register.
12936
12937 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
12938
12939 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
12940 correct numbers for TFHAR, TFIAR, TEXASR.
12941
12942 2019-05-02 Richard Biener <rguenther@suse.de>
12943
12944 PR tree-optimization/89653
12945 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
12946 update-address-taken before the pass.
12947 * passes.def (pass_tree_loop_init): Put comment before it.
12948
12949 2019-05-02 Richard Biener <rguenther@suse.de>
12950
12951 PR tree-optimization/89509
12952 * tree-ssa-structalias.c (compute_dependence_clique): Look
12953 at the first subvar when determining whether it is restrict.
12954
12955 2019-05-02 Richard Biener <rguenther@suse.de>
12956
12957 PR tree-optimization/90273
12958 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
12959 useless debug stmts.
12960
12961 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
12962
12963 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
12964 ACLE branch.
12965 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
12966 SVE ACLE branch.
12967 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
12968 VEC_COND_EXPR be inserted to emulate a conditional internal function.
12969 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
12970 (vectorizable_reduction): Use the functions above to vectorize in a
12971 fully masked loop codes that don't have a conditional internal
12972 function.
12973
12974 2019-05-02 Martin Liska <mliska@suse.cz>
12975
12976 * cgraphclones.c: Call valid_attribute_p with 1 for
12977 target_clone.
12978 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
12979 it's for target attribute.
12980 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
12981 Add new boolean argument.
12982 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
12983 Likewise.
12984 (ix86_valid_target_attribute_tree): Pass target_clone_attr
12985 to ix86_valid_target_attribute_inner_p.
12986 (ix86_valid_target_attribute_p): Pass flags argument to
12987 ix86_valid_target_attribute_inner_p.
12988 (get_builtin_code_for_version): Use 0 as it's target attribute.
12989
12990 2019-05-02 Martin Liska <mliska@suse.cz>
12991
12992 * gcc.c (process_command): Add dummy file only
12993 if n_infiles == 0.
12994 * opts-global.c (decode_options): Pass lang_mask.
12995 * opts.c (print_help): New function.
12996 (finish_options): Print --help if help_option_argument
12997 is set.
12998 (common_handle_option): Factor out content of OPT__help_
12999 into print_help.
13000 * opts.h (finish_options): Add new argument.
13001
13002 2019-05-02 Martin Liska <mliska@suse.cz>
13003
13004 PR target/88809
13005 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
13006 With -minline-all-stringops use inline expansion using 4B loop.
13007 * doc/invoke.texi: Document the change of
13008 -minline-all-stringops.
13009
13010 2019-05-01 Jeff Law <law@redhat.com>
13011
13012 PR tree-optimization/88797
13013 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
13014 PHI feeds a conditional on the RHS of an assignment.
13015
13016 2019-04-30 Andrew Waterman <andrew@sifive.com>
13017 Jim Wilson <jimw@sifive.com>
13018
13019 * config/riscv/constraints.md (L): New.
13020 * config/riscv/predicates.md (lui_operand): New.
13021 (sfb_alu_operand): New.
13022 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
13023 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
13024 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
13025 * config/riscv/risc.md (type): Add sfb_alu.
13026 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
13027 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
13028 (branch_zero<mode>): Delete.
13029 (mov<mode>cc): New.
13030 (mov<GPR:mode><X:mode>cc): Likewise.
13031 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
13032
13033 2019-04-30 Nathan Sidwell <nathan@acm.org>
13034
13035 * tree.h (MARK_TS_EXP): New.
13036
13037 2019-04-30 Martin Liska <mliska@suse.cz>
13038
13039 * opts.c (enable_warning_as_error): Provide hints
13040 for unknown options.
13041
13042 2019-04-30 Martin Liska <mliska@suse.cz>
13043
13044 PR debug/90288
13045 * doc/invoke.texi: Add missing dash for gas-locview-support
13046 and gno-as-locview-support.
13047
13048 2019-04-30 Jakub Jelinek <jakub@redhat.com>
13049
13050 PR target/89093
13051 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
13052 whitespace at the start of target attribute string.
13053
13054 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13055
13056 PR target/86538
13057 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
13058 Define __ARM_FEATURE_ATOMICS.
13059
13060 2019-04-30 Martin Liska <mliska@suse.cz>
13061
13062 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
13063 into built_in_function enum. Remove code for endp == 2 and
13064 use BUILT_IN_* constants.
13065 (gimple_fold_builtin): Call the function with fcode.
13066
13067 2019-04-30 Martin Liska <mliska@suse.cz>
13068
13069 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
13070 DECL_FUNCTION_CODE into ix86_builtins enum before
13071 the switch statement.
13072
13073 2019-04-30 Jakub Jelinek <jakub@redhat.com>
13074
13075 PR tree-optimization/89475
13076 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
13077 calls.
13078
13079 2019-04-30 Martin Liska <mliska@suse.cz>
13080
13081 PR translation/90274
13082 * opts.c (print_filtered_help): Wrap string in _(...).
13083
13084 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
13085
13086 PR tree-optimization/90240
13087 Revert:
13088 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
13089
13090 PR tree-optimization/90078
13091 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
13092 checks for infinite_cost overflow.
13093
13094 2019-04-29 Jeff Law <law@redhat.com>
13095
13096 * passes.def: Move -Wrestrict pass after copy propagation.
13097
13098 2019-04-29 Maya Rashish <coypu@sdf.org>
13099
13100 * config.gcc (default_gnu_indirect_function): Default to yes
13101 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
13102 sparc*-*-netbsd*, x86_64-*-netbsd*.
13103
13104 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
13105
13106 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
13107 where cond2 is NE_EXPR.
13108 (is_value_included_in): Update comment.
13109
13110 2019-04-29 Richard Biener <rguenther@suse.de>
13111
13112 PR tree-optimization/90278
13113 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
13114 EH on comparison simplification.
13115
13116 2019-04-29 Jason Merrill <jason@redhat.com>
13117
13118 PR c++/82081 - tail call optimization breaks noexcept
13119 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
13120 nothrow function to a might-throw function into a tail call.
13121
13122 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
13123
13124 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
13125 (DDR_INNER_LOOP): Likewise.
13126 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
13127 (initialize_data_dependence_relation): Likewise.
13128 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
13129
13130 2019-04-29 Jakub Jelinek <jakub@redhat.com>
13131
13132 PR rtl-optimization/90257
13133 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
13134 return value.
13135
13136 Revert the revert:
13137 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
13138
13139 PR target/90178
13140 Revert:
13141 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
13142
13143 Revert the revert:
13144 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
13145
13146 Revert:
13147 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
13148
13149 * lra-spills.c (lra_final_code_change): Remove useless move insns.
13150
13151 2019-04-29 Richard Biener <rguenther@suse.de>
13152
13153 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
13154 rhs issue a reset.
13155
13156 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
13157
13158 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
13159 varasm.h, and netbsd-protos.h.
13160
13161 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
13162
13163 PR target/89261
13164 * config/i386/i386-protos.h (ix86_data_alignment): Change
13165 the second argument type to unsigned int.
13166 * config/i386/i386.c (ix86_data_alignment): Change "align"
13167 argument type to unsigned int.
13168
13169 2019-04-27 Martin Liska <mliska@suse.cz>
13170
13171 PR middle-end/90258
13172 * opt-suggestions.c (option_proposer::build_option_suggestions):
13173 When get_valid_option_values returns empty values, add the
13174 misspelling candidate.
13175
13176 2019-04-26 Jim Wilson <jimw@sifive.com>
13177
13178 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
13179 parameter.
13180 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
13181 Pass orig_mode to riscv_build_integer.
13182 (riscv_split_integer): Pass mode to riscv_move_integer.
13183 (riscv_legitimize_const_move): Likewise.
13184 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
13185 promoted_mode. Replace force_reg call with code to load constant into
13186 promoted reg and then subreg it for the store.
13187 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
13188 riscv_move_integer.
13189
13190 2018-04-26 Eugene Sharygin <eush@ispras.ru>
13191
13192 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
13193 corrupt codes.
13194
13195 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
13196
13197 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
13198 commentary about the encoding of precision.
13199
13200 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
13201
13202 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
13203 * config/i386/t-freebsd64: New file.
13204 * config.gcc: Add the t-freebsd64 for multilib support.
13205
13206 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
13207
13208 * doc/extend.texi (vector_size): Add missing comma after @xref.
13209
13210 2019-04-25 Jakub Jelinek <jakub@redhat.com>
13211
13212 * BASE-VER: Set to 10.0.0.
13213
13214 2019-04-25 Richard Biener <rguenther@suse.de>
13215
13216 PR middle-end/89765
13217 * gimplify.c (gimplify_expr): Avoid turning a lvalue
13218 VIEW_CONVERT_EXPR into one operating on an rvalue.
13219
13220 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
13221
13222 PR target/89929
13223 * config/i386/i386.c (feature_priority): Moved to file scope.
13224 (processor_features): Likewise.
13225 (processor_model): Likewise.
13226 (_arch_names_table): Likewise.
13227 (arch_names_table): Likewise.
13228 (_feature_list): Removed.
13229 (feature_list): Likewise.
13230 (_isa_names_table): Moved to file scope. Add priority.
13231 (isa_names_table): Likewise.
13232 (get_builtin_code_for_version): Replace feature_list with
13233 isa_names_table. Update error message for P_ZERO priority.
13234
13235 2019-04-25 Richard Biener <rguenther@suse.de>
13236
13237 * tree-pass.h (make_pass_phi_only_cprop): Remove.
13238 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
13239
13240 2019-04-24 Jeff Law <law@redhat.com>
13241
13242 PR tree-optimization/90037
13243 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
13244 * passes.def: Replace all instance of phi-only cprop with the
13245 lattice propagator. Move propagation pass from after erroneous
13246 path isolation to before erroneous path isolation.
13247 * tree-ssa-phionlycprop.c: Remove.
13248
13249 2019-04-24 Richard Biener <rguenther@suse.de>
13250
13251 PR middle-end/90213
13252 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
13253 by size and BITS_PER_UNIT on poly-wide-ints.
13254
13255 2019-04-25 Richard Biener <rguenther@suse.de>
13256
13257 PR middle-end/90194
13258 * match.pd: Add pattern to simplify view-conversion of an
13259 empty constructor.
13260
13261 2019-04-24 Clement Chigot <clement.chigot@atos.net>
13262
13263 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
13264 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
13265 for Go on 32 bit AIX.
13266 * config/rs6000/aix72.h: Likewise.
13267
13268 2019-04-24 Jakub Jelinek <jakub@redhat.com>
13269
13270 PR target/90193
13271 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
13272 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
13273
13274 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
13275
13276 PR target/89952
13277 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
13278 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
13279 for restored hard frame pointer.
13280 (s390_sched_dependencies_evaluation): Implement new target hook.
13281 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
13282
13283 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
13284
13285 * config/arc/arc-options.def: Fix typos and spelling mistakes.
13286 * config/arc/arc.c (arc_init): Cleanup warning message.
13287 (arc_override_options): Likewise.
13288
13289 2019-04-24 Jakub Jelinek <jakub@redhat.com>
13290
13291 PR target/90187
13292 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
13293 a register if both if_true and if_false are MEMs.
13294
13295 PR tree-optimization/90208
13296 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
13297 after labels of new_bb, not before them.
13298
13299 PR tree-optimization/90211
13300 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
13301 which are not SSA_NAMEs.
13302
13303 2018-04-23 Sudakshina Das <sudi.das@arm.com>
13304
13305 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
13306 AArch64.
13307 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
13308
13309 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
13310
13311 PR rtl-optimization/87979
13312 * modulo-sched.c (sms_schedule): Start ii value "mii" should
13313 not equal zero.
13314
13315 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
13316
13317 PR rtl-optimization/84032
13318 * modulo-sched.c (ps_insn_find_column): Change condition so that
13319 branch will always be the last insn in a row inside partial
13320 schedule.
13321
13322 2019-04-23 Richard Biener <rguenther@suse.de>
13323
13324 PR debug/90131
13325 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
13326 dest_single_pred_p argument.
13327 (remove_forwarder_block): Adjust.
13328 (remove_forwarder_block_with_phi): Likewise.
13329
13330 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13331 Bernd Edlinger <bernd.edlinger@hotmail.de>
13332 Jakub Jelinek <jakub@redhat.com>
13333
13334 PR target/89093
13335 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
13336 if used with general-regs-only.
13337 (arm_conditional_register_usage): Don't add non-general regs if
13338 general-regs-only.
13339 (arm_valid_target_attribute_rec): Handle general-regs-only.
13340 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
13341 general-regs-only.
13342 (TARGET_HARD_FLOAT_SUB): Define.
13343 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
13344 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
13345 (TARGET_REALLY_IWMMXT2): Likewise.
13346 * config/arm/arm.opt: Add -mgeneral-regs-only.
13347 * doc/extend.texi: Document ARM general-regs-only target.
13348 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
13349
13350 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
13351
13352 PR tree-optimization/90078
13353 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
13354 checks for infinite_cost overflow.
13355
13356 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
13357
13358 PR tree-optimization/90021
13359 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
13360 and check univariate against it.
13361 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
13362 * tree-data-ref.c (add_other_self_distances): Pass new argument.
13363
13364 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
13365
13366 PR target/90178
13367 Revert:
13368 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
13369
13370 Revert the revert:
13371 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
13372
13373 Revert:
13374 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
13375
13376 * lra-spills.c (lra_final_code_change): Remove useless move insns.
13377
13378 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
13379
13380 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
13381 names using operand format, rather than hard-wired.
13382 (speculation_barrier): Likewise.
13383
13384 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
13385
13386 PR tree-optimization/88055
13387 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
13388 (gen_one_condition): Use it if !HONOR_NANS.
13389
13390 2019-04-19 Jakub Jelinek <jakub@redhat.com>
13391
13392 PR middle-end/90139
13393 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
13394 assign_temp instead of gen_reg_rtx.
13395
13396 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
13397
13398 PR translation/90118
13399 * config/aarch64/aarch64.c (aarch64_override_options_internal):
13400 Add missing space before %<.
13401
13402 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
13403
13404 PR rtl-optimization/87871
13405 * ira-lives.c (make_object_dead): Don't add conflicts to
13406 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
13407
13408 2019-04-18 Martin Sebor <msebor@redhat.com>
13409
13410 PR middle-end/89797
13411 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
13412 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
13413 assuming type size fits in SHWI.
13414
13415 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
13416
13417 PR ipa/85051
13418 * ipa-inline.c (flatten_function): New parameter UPDATE.
13419 (ipa_inline, early_inliner): Use it.
13420
13421 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
13422
13423 * fold-const.c (int_const_binop): Return early on failure.
13424
13425 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
13426
13427 PR middle-end/85164
13428 * combine.c (force_int_to_mode): Cast the argument rather than
13429 the result of known_alignment.
13430 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
13431
13432 2019-04-18 Richard Biener <rguenther@suse.de>
13433
13434 PR debug/90131
13435 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
13436 out from ...
13437 (remove_forwarder_block): ... here.
13438 (remove_forwarder_block_with_phi): Also move debug stmts here.
13439
13440 2019-04-18 Jakub Jelinek <jakub@redhat.com>
13441
13442 PR translation/79183
13443 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
13444 inform where appropriate.
13445
13446 2019-04-18 Richard Biener <rguenther@suse.de>
13447
13448 * tree.c (get_qualified_type): Put found type variants at the
13449 head of the variant list.
13450
13451 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
13452
13453 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
13454
13455 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
13456
13457 PR target/90125
13458 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
13459 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
13460 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
13461 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
13462 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
13463
13464 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
13465
13466 * ira-conflicts.c (print_allocno_conflicts): Always print something,
13467 even for allocno's with no conflicts.
13468 (print_conflicts): Print an extra newline.
13469
13470 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
13471
13472 * auto-inc-dec.c (attempt_change): Set the alignment of the
13473 temporary memory to that of the original.
13474
13475 2019-04-17 Joao Moreira <jmoreira@suse.de>
13476
13477 * targhooks.c (default_print_patchable_function_entry): Emit
13478 __patchable_function_entries section with writable flags to allow
13479 relocation resolution.
13480
13481 2019-04-17 Jonny Grant <jg@jguk.org>
13482
13483 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
13484
13485 2019-04-17 Jakub Jelinek <jakub@redhat.com>
13486
13487 PR middle-end/90095
13488 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
13489 on lowpart SUBREGs.
13490
13491 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
13492
13493 * config/arc/arc.c (arc_init): Format diagnostic string.
13494 (arc_override_options): Likewise.
13495 (check_if_valid_regno_const): Likewise.
13496 (arc_reorg): Likewise.
13497
13498 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
13499
13500 PR target/17108
13501 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
13502 name.
13503 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
13504 name.
13505 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
13506 (*movdi_update1): Use Pmode.
13507 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
13508 (movdi_<mode>_update_stack): Rename to ...
13509 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
13510 use Pmode.
13511 (*movsi_update1): Use Pmode.
13512 (*movsi_update2): Use Pmode.
13513 (movsi_update): Rename to ...
13514 (movsi_<mode>_update): ... this. Use Pmode.
13515 (movsi_update_stack): Fix condition.
13516 (*movhi_update1): Use Pmode. Fix argument to
13517 avoiding_indexed_address_p.
13518 (*movhi_update2): Ditto.
13519 (*movhi_update3): Ditto.
13520 (*movhi_update4): Ditto.
13521 (*movqi_update1): Ditto.
13522 (*movqi_update2): Ditto.
13523 (*movqi_update3): Ditto.
13524 (*movsf_update1, *movdf_update1): Merge, rename to...
13525 (*mov<mode>_update1): This. Use Pmode. Fix argument to
13526 avoiding_indexed_address_p. Add "size" attribute.
13527 (*movsf_update2, *movdf_update2): Merge, rename to...
13528 (*mov<mode>_update2): This. Ditto.
13529 (*movsf_update3): Use Pmode. Fix argument to
13530 avoiding_indexed_address_p.
13531 (*movsf_update4): Ditto.
13532 (allocate_stack): Simplify condition. Adjust pattern names.
13533
13534 2019-04-17 Jakub Jelinek <jakub@redhat.com>
13535
13536 PR target/89093
13537 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
13538 whitespace at the start of target attribute string.
13539
13540 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
13541
13542 PR target/84369
13543 * config/rs6000/power9.md: Add store forwarding bypass.
13544
13545 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
13546
13547 PR debug/89528
13548 * valtrack.c (dead_debug_insert_temp): Reset debug references
13549 to the return value of a call being removed.
13550
13551 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
13552
13553 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
13554 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
13555 implement target hook.
13556 (arc_memory_move_cost): New function.
13557 (TARGET_REGISTER_MOVE_COST): Define.
13558 (TARGET_MEMORY_MOVE_COST): Likewise.
13559 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
13560 (MEMORY_MOVE_COST): Likewise.
13561
13562 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
13563
13564 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
13565 (sibcall_value_insn): Likewise.
13566 * config/arc/constraints.md (Rs5): Remove.
13567
13568 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
13569
13570 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
13571 for last two fake registers.
13572 (arc_conditional_register_usage): Make sure fake frame and arg
13573 pointer regs are in general regs class.
13574 (FRAME_POINTER_MASK): Remove.
13575 (RETURN_ADDR_MASK): Remove.
13576 (arc_must_save_register): Use hard frame regnum.
13577 (frame_restore_reg): Use hard_frame_pointer_rtx.
13578 (arc_save_callee_saves): Likewise.
13579 (arc_restore_callee_saves): Likewise.
13580 (arc_save_callee_enter): Likewise.
13581 (arc_restore_callee_leave): Likewise.
13582 (arc_save_callee_milli): Likewise.
13583 (arc_eh_return_address_location): Likewise.
13584 (arc_check_multi): Use hard frame regnum.
13585 (arc_can_eliminate): Likewise.
13586 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
13587 for register allocator.
13588 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
13589 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
13590 (FRAME_POINTER_REGNUM): Change it to a fake register.
13591 (HARD_FRAME_POINTER_REGNUM): Defined.
13592 (ARG_POINTER_REGNUM): Change it to a new fake register.
13593 (ELIMINABLE_REGS): Update.
13594 (REGISTER_NAMES): Update names.
13595 * config/arc/arc.md (LP_START): Remove.
13596 (LP_END): Likewise.
13597 (shift_si3_loop): Update pattern.
13598
13599 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
13600
13601 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
13602 to avoid delay slot scheduling.
13603 (arc_must_save_register): Don't save SP.
13604 * config/arc/arc.md (stack_tie): Remove.
13605 (UNSPEC_ARC_STKTIE): Likewise.
13606
13607 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
13608 Shiva Chen <shiva0217@gmail.com>
13609
13610 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
13611 code gen with large shift amount.
13612
13613 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
13614
13615 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
13616 subreg.
13617
13618 2019-04-16 Jakub Jelinek <jakub@redhat.com>
13619
13620 PR target/90096
13621 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
13622 print -m64/-mx32/-m32 if it is true.
13623 (ix86_debug_options, ix86_function_specific_print): Pass true as
13624 ADD_ABI_P to ix86_target_string.
13625 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
13626 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
13627 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
13628
13629 PR rtl-optimization/90082
13630 * dce.c (can_delete_call): New function.
13631 (deletable_insn_p, mark_insn): Use it.
13632
13633 PR tree-optimization/90090
13634 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
13635 throw internally.
13636 (is_division_by_square): Likewise. Formatting fix.
13637
13638 2019-04-16 Richard Biener <rguenther@suse.de>
13639
13640 PR tree-optimization/56049
13641 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
13642 equality check if alias-set zero will prevail.
13643
13644 2019-04-15 Jeff Law <law@redhat.com>
13645
13646 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
13647 size and alignment as unsigned.
13648
13649 2019-04-15 Richard Biener <rguenther@suse.de>
13650
13651 PR debug/90074
13652 * tree-loop-distribution.c (destroy_loop): Preserve correct
13653 debug info.
13654
13655 2019-04-15 Richard Biener <rguenther@suse.de>
13656
13657 PR tree-optimization/90071
13658 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
13659 abnormal operands from def stmts.
13660
13661 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
13662
13663 PR rtl-optimization/89794
13664 * combine.c (count_auto_inc): New function.
13665 (try_combine): Count how many auto_inc expressions there were in the
13666 original instructions. Ensure we have the same number in the new
13667 instructions. Remove the code that tried to ensure auto_inc side
13668 effects on i1 and i0 are not lost.
13669
13670 2019-04-15 Richard Biener <rguenther@suse.de>
13671
13672 PR ipa/88936
13673 * tree.h (auto_var_p): Declare.
13674 * tree.c (auto_var_p): New function, split out from ...
13675 (auto_var_in_fn_p): ... here.
13676 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
13677 member.
13678 (new_var_info): Initialize it.
13679 (set_uids_in_ptset): Also set the shadow variable uid if required.
13680 (ipa_pta_execute): Postprocess points-to solutions assigning
13681 shadow variable uids for locals that may reach their containing
13682 function recursively.
13683 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
13684 assert but instead check whether the points-to solution is
13685 a singleton.
13686
13687 2019-04-15 Martin Jambor <mjambor@suse.cz>
13688
13689 PR ipa/pr89693
13690 * cgraph.c (clone_of_p): Loop over clone chain for each step in
13691 the thunk chain.
13692
13693 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
13694
13695 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
13696
13697 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
13698 Kito Cheng <kito.cheng@gmail.com>
13699 Shiva Chen <shiva0217@gmail.com>
13700
13701 * config/nds32/nds32-md-auxiliary.c
13702 (nds32_legitimize_pic_address): Use new PIC pattern.
13703 (nds32_legitimize_tls_address): Use new TLS pattern.
13704 (nds32_output_symrel): New.
13705 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
13706 (nds32_alloc_relax_group_id): Ditto.
13707 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
13708 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
13709 relax_group_id.
13710 (nds32_group_tls_insn): Ditto.
13711 (nds32_group_float_insns): Ditto.
13712 * config/nds32/nds32.md (tls_le): New.
13713 (sym_got): Ditto.
13714
13715 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
13716
13717 * configure: Add nds32 target for dwarf2 debug_line checking.
13718 * configure.ac: Regenerated.
13719
13720 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
13721
13722 PR lto/89358
13723 * ipa-devirt.c (skip_in_fields_list_p): New.
13724 (odr_types_equivalent_p): Use it.
13725
13726 2019-04-13 Jakub Jelinek <jakub@redhat.com>
13727
13728 PR target/89093
13729 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
13730 instead of strncmp when checking for thumb and arm. Formatting fixes.
13731
13732 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
13733
13734 * doc/install.texi: Document --with-target-system-zlib.
13735
13736 2019-04-12 Martin Sebor <msebor@redhat.com>
13737
13738 PR c/88383
13739 PR c/89288
13740 PR c/89798
13741 PR c/89797
13742 * targhooks.c (default_vector_alignment): Avoid assuming
13743 argument fits in SHWI.
13744 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
13745 a shift expression.
13746 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
13747
13748 2019-04-12 Jakub Jelinek <jakub@redhat.com>
13749
13750 PR rtl-optimization/89965
13751 * dce.c: Include rtl-iter.h.
13752 (struct check_argument_load_data): New type.
13753 (check_argument_load): New function.
13754 (find_call_stack_args): Check for loads from stack slots still tracked
13755 in sp_bytes and punt if any is found.
13756
13757 * config/mips/loongson-mmiintrin.h: Fix up #error message.
13758
13759 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
13760
13761 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
13762 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
13763
13764 2019-04-12 Martin Liska <mliska@suse.cz>
13765
13766 PR middle-end/89970
13767 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
13768 in error message.
13769 (separate_attrs): Handle multiple 'default's.
13770 (expand_target_clones): Rework error handling code.
13771
13772 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
13773
13774 PR target/87532
13775 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
13776 mode of vector rather than mode of destination for move instruction.
13777 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
13778 Use QI inner mode with V16QI vector mode.
13779
13780 2019-04-12 Jakub Jelinek <jakub@redhat.com>
13781
13782 PR target/52726
13783 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
13784 "invalid %%t operand" in output_operand_lossage message.
13785
13786 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
13787
13788 * config/s390/predicates.md (permute_pattern_operand): New
13789 predicate.
13790 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
13791 operand for the permute pattern.
13792 ("*vec_perm<mode>"): New insn definition.
13793 ("bswap<mode>"): Generate the permute pattern operand in the
13794 expander and perform the operand reloads for pre arch13 level
13795 already.
13796 ("*bswap<mode>_emu"): Rename to ...
13797 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
13798 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
13799 Add the USE operand for the permute pattern.
13800 ("*vec_set_bswap_vec<mode>"): Likewise.
13801
13802 2019-04-12 Jakub Jelinek <jakub@redhat.com>
13803
13804 PR c/89946
13805 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
13806 and gcc_unreachable if it fails, just call tree_to_uhwi which
13807 verifies that too. Test TREE_CHAIN instead of list_length > 1.
13808 Start warning message with a lower-case letter. Formatting fixes.
13809
13810 PR rtl-optimization/90026
13811 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
13812 successors, look for BARRIERs inside of the whole BB_FOOTER chain
13813 rather than just at the start of it. If e->src BB_FOOTER is not NULL
13814 in cfglayout mode, use emit_barrier_after_bb.
13815
13816 2018-04-11 Steve Ellcey <sellcey@marvell.com>
13817
13818 PR rtl-optimization/87763
13819 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
13820 New Instruction.
13821
13822 2019-04-11 Tom de Vries <tdevries@suse.de>
13823
13824 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
13825 max macro using statement expression.
13826
13827 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
13828
13829 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
13830 * xcoffout.c (xcoff_private_rodata_section_name): Define.
13831 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
13832 read_only_private_data_section using xcoff_private_rodata_section_name.
13833 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
13834
13835 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
13836
13837 PR target/90016
13838 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
13839
13840 2019-04-11 Jakub Jelinek <jakub@redhat.com>
13841
13842 PR rtl-optimization/89965
13843 * dce.c (sp_based_mem_offset): New function.
13844 (find_call_stack_args): Use sp_based_mem_offset.
13845
13846 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
13847
13848 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
13849
13850 2019-04-11 Richard Biener <rguenther@suse.de>
13851
13852 PR tree-optimization/90020
13853 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
13854 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
13855 * tree-ssa-pre.c (compute_avail): Use it to not put
13856 possibly trapping references after a call that might not
13857 return into EXP_GEN.
13858 * gcse.c (compute_hash_table_work): Do not elide
13859 marking a block containing a call if the call might not
13860 return.
13861
13862 2019-04-11 Richard Biener <rguenther@suse.de>
13863
13864 PR tree-optimization/90018
13865 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
13866 Test both SLP and interleaving variants.
13867
13868 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
13869
13870 * config/s390/8561.md: New file.
13871 * config/s390/driver-native.c (s390_host_detect_local_cpu):
13872 Add arch13 cpu model.
13873 * config/s390/s390-opts.h (enum processor_type): Likewise.
13874 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
13875 (s390_get_unit_mask): Likewise.
13876 (s390_is_fpd): Likewise.
13877 (s390_is_fxd): Likewise.
13878 * config/s390/s390.h (s390_tune_attr): Likewise.
13879 * config/s390/s390.md: Include arch13 pipeline description.
13880 * config/s390/s390.opt: Add arch13.
13881
13882 2018-04-10 Steve Ellcey <sellcey@marvell.com>
13883
13884 PR rtl-optimization/87763
13885 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
13886 New prototype.
13887 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
13888 New function.
13889 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
13890 New instruction.
13891 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
13892 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
13893 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
13894 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
13895
13896 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
13897
13898 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
13899 "Although" in -fipa-icf documentation.
13900
13901 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
13902 of using multiple -g options.
13903
13904 2019-04-10 Martin Liska <mliska@suse.cz>
13905
13906 PR gcov-profile/89959
13907 * doc/gcov.texi: Make documentation of -x option
13908 more precise.
13909
13910 2019-04-10 Richard Biener <rguenther@suse.de>
13911
13912 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
13913 member.
13914 (DR_GROUP_SAME_DR_STMT): Remove.
13915 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
13916 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
13917 replace with assert.
13918 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
13919 (vect_record_grouped_load_vectors): Remove unreachable code.
13920
13921 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
13922
13923 PR target/90016
13924 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
13925 obsolete reference to N.
13926
13927 2019-04-10 Jakub Jelinek <jakub@redhat.com>
13928
13929 PR middle-end/90025
13930 * expr.c (store_expr): Set properly size on the MEM passed to
13931 clear_storage.
13932
13933 PR c++/90010
13934 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
13935 with strlen in between hostsz-3 and hostsz-1 inclusive when no
13936 translation is needed, and when translation is needed, only append
13937 ... if the string length is hostsz or more bytes long. Avoid using
13938 strncpy or strcat.
13939
13940 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
13941
13942 PR target/90024
13943 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
13944 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
13945 into three.
13946 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
13947 differences directly.
13948 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
13949
13950 2019-04-09 Jakub Jelinek <jakub@redhat.com>
13951
13952 PR translation/90011
13953 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
13954 from diagnostics.
13955 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
13956 diagnostics.
13957 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
13958 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
13959 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
13960 trailing space from -gsplit-dwarf diagnostics.
13961
13962 PR tree-optimization/89998
13963 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
13964 instead of integer_type_node if possible, don't add ranges if return
13965 type is not compatible with int.
13966 * gimple-fold.c (gimple_fold_builtin_sprintf,
13967 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
13968 integer_type_node.
13969
13970 2019-04-09 Martin Liska <mliska@suse.cz>
13971
13972 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
13973 * doc/install.texi: Document the new config.
13974
13975 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
13976
13977 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
13978 use gimple_expr_type for load and store calls. Skip over the
13979 condition argument in a conditional internal function.
13980 Protect use of TREE_INT_CST_LOW.
13981
13982 2019-04-09 Jakub Jelinek <jakub@redhat.com>
13983
13984 PR target/90015
13985 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
13986 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
13987 trailing period from it too.
13988
13989 2019-04-08 wu yuan <wuyuan5@huawei.com>
13990
13991 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
13992 * config/aarch64/aarch64.md : Add "tsv110.md"
13993 * config/aarch64/tsv110.md: New file.
13994
13995 2019-04-08 Richard Biener <rguenther@suse.de>
13996
13997 PR tree-optimization/90006
13998 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
13999 calls like lrint.
14000
14001 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
14002
14003 PR target/83033
14004 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
14005 construction.
14006 (fma_root_node): Likewise.
14007 (func_fma_steering): Likewise.
14008
14009 2019-04-08 Jakub Jelinek <jakub@redhat.com>
14010
14011 PR rtl-optimization/89865
14012 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
14013
14014 PR rtl-optimization/89865
14015 * config/i386/i386.md
14016 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
14017 numbers not to clash with the additional operands[4].
14018 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
14019 with extra register copy in the middle.
14020
14021 2019-04-08 Martin Liska <mliska@suse.cz>
14022
14023 PR gcov-profile/89961
14024 * doc/gcov.texi: Document data_file.
14025 * gcov.c (generate_results): Add data_info into JSON output.
14026
14027 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
14028
14029 PR tree-optimization/89725
14030 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
14031 loop's chrec as invariant symbol.
14032 * tree-chrec.h (chrec_contains_symbols): New parameter.
14033 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
14034 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
14035 function of loops not in DDR's loop_nest.
14036 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
14037
14038 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
14039
14040 PR target/89623
14041 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
14042 Mask.
14043
14044 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
14045
14046 PR target/89945
14047 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
14048 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
14049
14050 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
14051
14052 * sched-deps.c (sched_macro_fuse_insns): Check return value of
14053 targetm.fixed_condition_code_regs.
14054
14055 2019-04-05 Richard Biener <rguenther@suse.de>
14056
14057 PR debug/89892
14058 PR debug/89905
14059 * tree-cfgcleanup.c (remove_forwarder_block): Always move
14060 debug bind stmts but reset them if they are not valid at the
14061 destination.
14062
14063 2019-04-05 Martin Liska <mliska@suse.cz>
14064
14065 PR translation/89936
14066 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
14067 order to wrap keywords or arguments.
14068 * collect2.c (main): Likewise.
14069 (scan_prog_file): Likewise.
14070 (scan_libraries): Likewise.
14071 * common/config/riscv/riscv-common.c
14072 (riscv_subset_list::parsing_subset_version): Likewise.
14073 (riscv_subset_list::parse_std_ext): Likewise.
14074 * config/aarch64/aarch64.c (aarch64_override_options_internal):
14075 Likewise.
14076 * config/arm/arm.c (arm_option_override): Likewise.
14077 * config/cris/cris.c (cris_print_operand): Likewise.
14078 * config/darwin-c.c (darwin_pragma_options): Likewise.
14079 (darwin_pragma_unused): Likewise.
14080 (darwin_pragma_ms_struct): Likewise.
14081 * config/ft32/ft32.c (ft32_print_operand): Likewise.
14082 * config/i386/i386.c (print_reg): Likewise.
14083 (ix86_print_operand): Likewise.
14084 * config/i386/xm-djgpp.h: Likewise.
14085 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
14086 * config/m32c/m32c.c (m32c_option_override): Likewise.
14087 * config/msp430/msp430.c (msp430_option_override): Likewise.
14088 * config/nds32/nds32.c (nds32_option_override): Likewise.
14089 * config/nvptx/mkoffload.c (main): Likewise.
14090 * config/rx/rx.c (rx_print_operand): Likewise.
14091 (valid_psw_flag): Likewise.
14092 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
14093 (vms_pragma_nomember_alignment): Likewise.
14094 (vms_pragma_extern_model): Likewise.
14095 * lto-wrapper.c (compile_offload_image): Likewise.
14096 * omp-offload.c (oacc_parse_default_dims): Likewise.
14097 * symtab.c (symtab_node::verify_base): Likewise.
14098 * tlink.c (recompile_files): Likewise.
14099 (start_tweaking): Likewise.
14100 * tree-profile.c (parse_profile_filter): Likewise.
14101
14102 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
14103
14104 PR tree-optimization/89956
14105 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
14106 multiple negates of the same value.
14107
14108 2019-04-04 Martin Sebor <msebor@redhat.com>
14109
14110 PR middle-end/89957
14111 PR middle-end/89911
14112 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
14113 have the same precision since the function crashes otherwise.
14114 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
14115 has non-zero arguments.
14116
14117 2019-04-04 Martin Sebor <msebor@redhat.com>
14118
14119 PR middle-end/89934
14120 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
14121 out if the number of arguments is less than expected.
14122
14123 2019-04-04 Jeff Law <law@redhat.com>
14124
14125 PR rtl-optimization/89399
14126 * ree.c (combine_set_extension): Use single_set rather than
14127 digging into PATTERN for items on the candidate list.
14128 (combine_reaching_defs): Likewise.
14129
14130 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
14131
14132 PR rtl-optimization/46590
14133 * loop-invariant.c (find_defs): Move df_remove_problem and
14134 df_process_deferred_rescans to move_invariants.
14135 Move df_live_add_problem and df_live_set_all_dirty calls
14136 to move_invariants.
14137 (move_invariants): Likewise.
14138 (move_loop_invariants): Likewise, making the df_live calls
14139 conditional on -O. Remove the problem again if we added it
14140 locally.
14141
14142 2019-04-03 qing zhao <qing.zhao@oracle.com>
14143
14144 PR tree-optimization/89730
14145 * ipa-inline.c (can_inline_edge_p): Delete the checking for
14146 -flive-patching=inline-only-static.
14147 (can_inline_edge_by_limits_p): Add the checking for
14148 -flive-patching=inline-only-static and grant always_inline
14149 even when -flive-patching=inline-only-static is specified.
14150
14151 2019-04-03 Jeff Law <law@redhat.com>
14152
14153 PR rtl-optimization/81025
14154 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
14155
14156 2019-04-03 Richard Biener <rguenther@suse.de>
14157
14158 PR tree-optimization/84101
14159 * tree-vect-stmts.c: Include explow.h for hard_function_value,
14160 regs.h for hard_regno_nregs.
14161 (cfun_returns): New helper.
14162 (vect_model_store_cost): When vectorizing a store to a decl
14163 we return and the function ABI returns in a multi-reg location
14164 account for the possible spilling that will happen.
14165
14166 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
14167
14168 * config/s390/s390.c (s390_legitimate_address_p): Reject long
14169 displacement addresses for vector mode operands.
14170
14171 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
14172
14173 * config/arc/arc.c (GMASK_LEN): Define.
14174 (arc_restore_callee_saves): Restore first blink when
14175 !optimize_size.
14176
14177 2019-04-03 Sudakshina Das <sudi.das@arm.com>
14178
14179 * doc/extend.texi: Add deprecated comment on sign-return-address
14180 function attribute and add mbranch-protection.
14181 * doc/invoke.texi: Add bti to the options for mbranch-protection.
14182
14183 2019-04-03 Richard Biener <rguenther@suse.de>
14184
14185 PR lto/89896
14186 * lto-wrapper.c (run_gcc): Avoid implicit rules making
14187 the all target phony.
14188
14189 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
14190
14191 PR target/89902
14192 PR target/89903
14193 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
14194 Return false for variable DImode shifts.
14195 (dimode_scalar_chain::compute_convert_gain): Do not handle
14196 register count operand in variable DImode shifts.
14197 (dimode_scalar_chain::make_vector_copies): Remove support to copy
14198 count argument of a variable shift instruction to a vector register.
14199 (dimode_scalar_chain::convert_reg): Remove support to convert
14200 count argument of a variable shift instruction.
14201
14202 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
14203
14204 PR rtl-optimization/84206
14205 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
14206 iterating over loop headers.
14207
14208 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
14209
14210 PR rtl-optimization/85876
14211 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
14212 beyond the original fence.
14213
14214 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
14215
14216 * config.gcc: Mark spu* targets as deprecated/obsolete.
14217
14218 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14219
14220 * config/s390/s390-builtin-types.def: New builtin function type
14221 definitions. Remove unused types.
14222 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
14223 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
14224 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
14225 overloaded builtins.
14226 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
14227 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
14228 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
14229 (vec_double, vec_signed, vec_unsigned): Define to use the new
14230 overloaded builtins.
14231 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
14232 Remove expanders.
14233
14234 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14235
14236 * config/s390/s390-builtin-types.def: New builtin function type
14237 definitions.
14238 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
14239 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
14240 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
14241 (s390_vstrszh, s390_vstrszf): New low-level builtins.
14242 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
14243 constant definitions.
14244 * config/s390/vecintrin.h (vec_search_string_cc)
14245 (vec_search_string_until_zero_cc): New builtin name definitions.
14246 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
14247 expanders.
14248 ("vec_vstrs<mode>"): New insn definition.
14249
14250 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14251
14252 * config/s390/s390-builtin-types.def: Add new builtin function
14253 types.
14254 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
14255 New overloaded builtins.
14256 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
14257 s390_vsrd.
14258 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
14259 (UNSPEC_VEC_SLDBYTE): ... this.
14260 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
14261 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
14262 definitions.
14263 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
14264 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
14265 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
14266
14267 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14268
14269 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
14270 New insn definition.
14271 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
14272 * config/s390/vector.md (V_HW_HSD): ... here.
14273
14274 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14275
14276 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
14277 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
14278 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
14279 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
14280 New insn definitions.
14281
14282 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14283
14284 * config/s390/s390-builtin-types.def: Add new builtin function type.
14285 * config/s390/s390-builtins.def: Add overloaded builtin
14286 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
14287 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
14288 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
14289 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
14290 ("eltswap<mode>"): New expander.
14291 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
14292 insn definitions.
14293
14294 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14295
14296 * config/s390/s390-builtin-types.def: Add new builtin function types.
14297 * config/s390/s390-builtins.def: Add overloaded builtin
14298 s390_vec_revb. Add low-level builtins for vlbr and vstbr
14299 instructions.
14300 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
14301 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
14302 ("bswap<mode>"): New expander.
14303 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
14304
14305 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14306
14307 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
14308 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
14309 vector builtin version number in __VEC__.
14310
14311 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14312
14313 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
14314 iterators.
14315 (SFSI): New mode attribute.
14316 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
14317 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
14318 rename to ...
14319 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
14320 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
14321 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
14322 ("floatsi<mode>2"): Add wcefb instruction.
14323
14324 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14325
14326 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
14327 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
14328 mode iterators.
14329 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
14330 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
14331 support 32 bit fp-int conversions. Rename to ...
14332 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
14333 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
14334 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
14335 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
14336 ... to these.
14337
14338 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14339
14340 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
14341 if-then-else constructs if we can use the select instruction.
14342 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
14343
14344 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14345
14346 * config/s390/s390.md ("*popcountdi_arch13_cc")
14347 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
14348 definition.
14349 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
14350 Append _z196 to make it ...
14351 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
14352 ("popcounthi2_z196"): ... this.
14353 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
14354 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
14355
14356 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14357
14358 * config/s390/s390.c (s390_canonicalize_comparison): Convert
14359 certain compares for arch13 in order to make use of the condition
14360 code result produced by the new instructions.
14361 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
14362 nxrk, and nxgrk instruction patterns.
14363 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
14364 (inv_no): Add new code iterator together with some attributes.
14365 ("*andc_split_<mode>"): Disable splitter for arch13.
14366 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
14367 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
14368 ("*<ANDOR:bitops_name>c<GPR:mode>")
14369 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
14370 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
14371 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
14372 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
14373
14374 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14375
14376 * common/config/s390/s390-common.c (processor_flags_table): New
14377 entry for arch13.
14378 * config.gcc: Support arch13 with the --with-arch= configure flag.
14379 * config/s390/driver-native.c (s390_host_detect_local_cpu):
14380 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
14381 * config/s390/s390.c (s390_get_sched_attrmask)
14382 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
14383 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
14384 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
14385 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
14386 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
14387 definitions.
14388 * config/s390/s390.opt: Support arch13 as processor type in
14389 command line options.
14390
14391 2019-04-02 Martin Liska <mliska@suse.cz>
14392
14393 PR translation/89912
14394 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
14395 Fix param description of graphite-max-arrays-per-scop.
14396
14397 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
14398
14399 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
14400 (ASAN_CC1_SPEC): Use it in 64-bit mode.
14401 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
14402
14403 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
14404
14405 PR rtl-optimization/85412
14406 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
14407 sel_sched_region_1, not after.
14408
14409 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
14410
14411 PR rtl-optimization/86928
14412 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
14413 compute_live if necessary.
14414 (sel_redirect_edge_and_branch): Likewise.
14415
14416 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
14417
14418 PR rtl-optimization/89865
14419 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
14420 register if it is a part of small class.
14421
14422 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
14423
14424 PR rtl-optimization/87273
14425 * sel-sched-ir.c (merge_fences): Remove assert.
14426
14427 2019-04-01 Richard Biener <rguenther@suse.de>
14428
14429 PR tree-optimization/46590
14430 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
14431 (dom_walker::m_reachability): Add in place of...
14432 (dom_walker::m_skip_unreachable_blocks): ...this.
14433 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
14434 Move complex initialization ...
14435 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
14436 lazily and initialize edge flags on each invocation.
14437 (dom_walker::bb_reachable): Use m_reachability.
14438
14439 2019-04-01 Martin Liska <mliska@suse.cz>
14440
14441 PR driver/89861
14442 * opt-suggestions.c (option_proposer::build_option_suggestions):
14443 Add variant without any argument in order to provide better
14444 hints.
14445
14446 2019-04-01 Richard Biener <rguenther@suse.de>
14447
14448 PR c/71598
14449 * gimple.c: Include langhooks.h.
14450 (gimple_get_alias_set): Treat enumeral types as the underlying
14451 integer type.
14452
14453 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
14454 Eric Botcazou <ebotcazou@adacore.com>
14455
14456 PR rtl-optimization/89862
14457 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
14458 that operates on the full registers for WORD_REGISTER_OPERATIONS
14459 architectures.
14460
14461 2019-03-29 Jim Wilson <jimw@sifive.com>
14462
14463 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
14464 Clear MASK_RVC and then set if C subset supported.
14465
14466 2019-03-29 Jakub Jelinek <jakub@redhat.com>
14467
14468 PR c/89872
14469 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
14470 non-addressable complit into its initializer if it is volatile.
14471
14472 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
14473
14474 * opts-common.c (integral_argument): Set errno properly in one case.
14475
14476 2019-03-29 Martin Liska <mliska@suse.cz>
14477
14478 * doc/invoke.texi: Remove -Wchkp from documentation.
14479
14480 2019-03-29 Martin Liska <mliska@suse.cz>
14481
14482 * dbgcnt.c (print_limit_reach): New function.
14483 (dbg_cnt): Use it.
14484
14485 2019-03-29 Martin Liska <mliska@suse.cz>
14486
14487 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
14488 (dbg_cnt_process_opt): Parse first tokens aas
14489 dbg_cnt_process_single_pair is also using strtok.
14490
14491 2019-03-29 Jakub Jelinek <jakub@redhat.com>
14492
14493 PR rtl-optimization/87485
14494 * function.c (expand_function_end): Move stack_protect_epilogue
14495 before loading of return value into hard register(s).
14496
14497 2019-03-28 Jakub Jelinek <jakub@redhat.com>
14498
14499 PR middle-end/89621
14500 * tree-inline.h (struct copy_body_data): Add
14501 dont_remap_vla_if_no_change flag.
14502 * tree-inline.c (remap_type_3, remap_type_2): New functions.
14503 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
14504 and remap_type_2 returns false.
14505 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
14506 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
14507 only from where it is copied to nested contexts.
14508
14509 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
14510
14511 PR target/89865
14512 * config/i386/i386.md (RMW operation with LEA peephole):
14513 Use LEAMODE mode attribute instead of SWI mode iterator for
14514 LEA pattern.
14515
14516 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
14517
14518 PR target/89848
14519 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
14520 Also process XEXP (src, 0) of a shift insn.
14521
14522 2019-03-28 David Malcolm <dmalcolm@redhat.com>
14523
14524 PR middle-end/89725
14525 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
14526 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
14527
14528 2019-03-28 Jakub Jelinek <jakub@redhat.com>
14529
14530 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
14531 test.
14532 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
14533 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
14534 immediately after first one with df_analyze in between, but rather
14535 process all bbs, queueing ones that need second pass in a worklist,
14536 df_analyze, process queued debug insn changes and if second pass is
14537 needed, process bbs from worklist, df_analyze, process queued debug
14538 insns again.
14539
14540 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
14541 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
14542 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
14543
14544 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
14545
14546 PR c/79022
14547 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
14548 definition.
14549
14550 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
14551
14552 PR target/85667
14553 * config/i386/i386.c (ix86_function_value_1): Call the newly added
14554 function for 32-bit MS_ABI.
14555 (function_value_ms_32): New function.
14556
14557 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
14558
14559 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
14560 (movdi): Call gen_movdi_symbol_save_scc.
14561 (gen_movdi_symbol_save_scc): New insn and split.
14562
14563 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
14564
14565 PR rtl-optimization/89313
14566 * function.c (matching_constraint_num): New static function.
14567 (match_asm_constraints_1): Use it. Fixup white space and comment.
14568 Don't replace inputs with non-matching constraints which conflict
14569 with early clobber outputs.
14570
14571 2019-03-27 Jeff Law <law@redhat.com>
14572
14573 PR rtl-optimization/87761
14574 PR rtl-optimization/89826
14575 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
14576 slightly later.
14577 (pass_cprop_hardreg::execute): Call df_analyze after adding the
14578 note problem to get REG_DEAD/REG_UNUSED notes updated.
14579
14580 2019-03-27 Richard Biener <rguenther@suse.de>
14581
14582 PR tree-optimization/89463
14583 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
14584 queue edges to remove.
14585 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
14586 dead stmts. Delay edge removal until PHIs are removed to
14587 make debug-stmt creation not confused by seemingly degenerate
14588 PHIs.
14589
14590 2019-03-27 Alan Modra <amodra@gmail.com>
14591
14592 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
14593 throughout file.
14594 * config/rs6000/darwin.h: Likewise.
14595 * config/rs6000/rs6000.c: Likewise.
14596
14597 2019-03-27 Alan Modra <amodra@gmail.com>
14598
14599 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
14600 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
14601
14602 2019-03-26 Andrew Waterman <andrew@sifive.com>
14603 Jim Wilson <jimw@sifive.com>
14604
14605 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
14606 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
14607 (generic_idivdi, generic_fmul_single, generic_fmul_double)
14608 (generic_fdiv, generic_fsqrt): Add check for generic tune.
14609 (generic_alu): Add auipc to type list.
14610 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
14611 (riscv_microarchitecture): Declare.
14612 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
14613 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
14614 field.
14615 (riscv_microarchitecture): New.
14616 (sifive_7_tune_info): New.
14617 (riscv_cpu_info_table): Add microarchitecture value for rocket and
14618 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
14619 entries.
14620 (riscv_store_data_bypass_p): New.
14621 (riscv_option_override): Set riscv_microarchitecture from
14622 cpu->microarchitecture.
14623 * config/riscv/riscv.md: Include sifive-7.md.
14624 (type): Add auipc.
14625 (tune): New.
14626 (auipc<mode>): Change type to auipc.
14627 (restore_stack_nonlocal): New.
14628 * config/riscv/sifive-7.md: New.
14629 * doc/invoke.texi (RISC-V Options): Update mtune docs.
14630
14631 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
14632
14633 PR target/89827
14634 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
14635 Also process XEXP (src, 0) of a shift insn.
14636
14637 2019-03-26 Richard Biener <rguenther@suse.de>
14638
14639 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
14640 (copy_debug_stmt): Likewise.
14641 (expand_call_inline): Likewise.
14642 (copy_bb): Avoid redundant lookup & set of gimple_block.
14643 * gimple-low.c (lower_gimple_return): Likewise.
14644 (lower_builtin_setjmp): Likewise.
14645
14646 2019-03-26 Jakub Jelinek <jakub@redhat.com>
14647
14648 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
14649 is constant 0, turn into static const data member initialized to false.
14650 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
14651 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
14652
14653 2019-03-26 Jason Merrill <jason@redhat.com>
14654 Jakub Jelinek <jakub@redhat.com>
14655
14656 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
14657 method.
14658 (mem_alloc_description::release_object_overhead): Fix comment typos.
14659 * hash-table.h (hash_table::~hash_table): Call
14660 release_instance_overhead only if m_entries is non-NULL, otherwise
14661 call unregister_descriptor.
14662
14663 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
14664
14665 PR tree-optimization/81740
14666 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
14667 In case of outer loop vectorization, check for backward dependence
14668 at the inner loop if outer loop dependence is reversed.
14669
14670 2019-03-26 Alan Modra <amodra@gmail.com>
14671
14672 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
14673 rs6000_vector_mem init. Correct wI and wJ comment.
14674
14675 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
14676
14677 PR rtl-optimization/88347
14678 PR rtl-optimization/88423
14679 * sched-deps.c (sched_analyze_insn): Take into account that for
14680 tablejumps the barrier appears after a label and a jump_table_data.
14681
14682 2019-03-25 Martin Sebor <msebor@redhat.com>
14683
14684 PR c/89812
14685 * c-common.c (check_user_alignment): Rename local. Correct maximum
14686 alignment in diagnostic. Avoid assuming argument fits in SHWI,
14687 convert it to UHWI when it fits.
14688
14689 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
14690
14691 PR debug/86964
14692 * dwarf2out.c (premark_used_variables): New function.
14693 (prune_unused_types_walk): Do not mark not premarked external
14694 variables.
14695 (prune_unused_types): Call premark_used_variables.
14696
14697 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
14698
14699 PR rtl-optimization/89676
14700 * lra-constraints.c (curr_insn_transform): Do match reload for
14701 early clobbers when the match was successful only for different
14702 registers.
14703
14704 2019-03-25 Martin Sebor <msebor@redhat.com>
14705
14706 * doc/extend.texi (Common Type Attributes): Document vector_size.
14707 (Common Variable Attributes): Mention size constraint. Correct
14708 quoting and typos.
14709 (Vector Extensions): Use @dfn when defining bas type. Clarify
14710 base type and size constraints.
14711
14712 2019-03-25 Richard Biener <rguenther@suse.de>
14713
14714 PR tree-optimization/89789
14715 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
14716 changes from non-undefined back to undefined.
14717
14718 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
14719
14720 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
14721 heap string and a gc string, but since this variable is unknown to
14722 ggc the gc string might get reused and corrupted. Fixed by always
14723 using a heap string.
14724
14725 2019-03-25 Richard Biener <rguenther@suse.de>
14726
14727 PR tree-optimization/89779
14728 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
14729 to remove IV defs, delay actual removal.
14730 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
14731 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
14732 very end, properly also reset loop control IV information.
14733
14734 2019-03-25 Richard Biener <rguenther@suse.de>
14735
14736 PR tree-optimization/89802
14737 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
14738 move EH data to folded stmt.
14739
14740 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
14741
14742 * config/s390/s390-builtin-types.def: Remove few unused types and
14743 fix sort order for others.
14744
14745 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
14746
14747 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
14748 expected and found types with -mdebug during builtin matching.
14749
14750 2019-03-25 Richard Biener <rguenther@suse.de>
14751
14752 PR middle-end/89790
14753 * fold-const.c (operand_equal_p): Revert last change with
14754 updated comment.
14755
14756 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
14757
14758 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
14759 notes for the result of the __tls_get_addr calls.
14760 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
14761
14762 2019-03-24 Jeff Law <law@redhat.com>
14763
14764 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
14765
14766 PR rtl-optimization/87761
14767 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
14768 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
14769 as needed.
14770 (pass_cprop_hardreg::execute): Add df note problem and defer insn
14771 rescans. Reprocess blocks as needed, calling df_analyze before
14772 reprocessing. Always call df_analyze before fixing up debug bind
14773 insns.
14774
14775 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
14776
14777 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
14778 big endian.
14779
14780 2019-03-22 Andrew Pinski <apinski@marvell.com>
14781
14782 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
14783 attrribute for uxtw.
14784
14785 2019-03-26 Jeff Law <law@redhat.com>
14786
14787 PR rtl-optimization/87761
14788 * config/mips/mips-protos.h (mips_split_move): Add new argument.
14789 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
14790 (mips_split_move): Accept new INSN argument. Try to forward SRC
14791 into the next instruction.
14792 (mips_split_move_insn): Pass INSN through to mips_split_move.
14793
14794 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
14795
14796 PR rtl-optimization/89676
14797 * lra-constraints.c (curr_insn_transform): Do match reload for
14798 early clobbers even if the match was successful.
14799
14800 2019-03-22 Jakub Jelinek <jakub@redhat.com>
14801
14802 PR c++/87481
14803 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
14804
14805 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
14806
14807 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
14808
14809 2019-03-22 Jakub Jelinek <jakub@redhat.com>
14810
14811 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
14812 <avx512>_fmsub_<mode>_mask3<round_name>,
14813 <avx512>_fnmadd_<mode>_mask3<round_name>,
14814 <avx512>_fnmsub_<mode>_mask3<round_name>,
14815 avx512f_vmfmadd_<mode>_mask3<round_name>,
14816 avx512f_vmfmsub_<mode>_mask3<round_name>,
14817 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
14818 instead of register_operand and %v instead of v for match_operand 1.
14819 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
14820 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
14821 <round_nimm_predicate> instead of register_operand and %v instead of v
14822 for match_operand 1.
14823
14824 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
14825 <avx512>_fmadd_<mode>_mask3<round_name>,
14826 <avx512>_fmsub_<mode>_mask<round_name>,
14827 <avx512>_fmsub_<mode>_mask3<round_name>,
14828 <avx512>_fnmadd_<mode>_mask<round_name>,
14829 <avx512>_fnmadd_<mode>_mask3<round_name>,
14830 <avx512>_fnmsub_<mode>_mask<round_name>,
14831 <avx512>_fnmsub_<mode>_mask3<round_name>,
14832 <avx512>_fmaddsub_<mode>_mask<round_name>,
14833 <avx512>_fmaddsub_<mode>_mask3<round_name>,
14834 <avx512>_fmsubadd_<mode>_mask<round_name>,
14835 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
14836 <round_nimm_predicate> instead of nonimmediate_operand.
14837 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
14838 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
14839 Use register_operand instead of <round_nimm_predicate> for the
14840 operand that needs to match output.
14841 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
14842 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
14843 Likewise. Formatting fixes.
14844
14845 PR target/89784
14846 * config/i386/i386.c (enum ix86_builtins): Remove
14847 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
14848 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
14849 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
14850 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
14851 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
14852 __builtin_ia32_vfmsubss3_mask3): New builtins.
14853 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
14854 avx512f_vmfmadd_<mode>_mask3<round_name>,
14855 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
14856 *avx512f_vmfmsub_<mode>_mask<round_name>,
14857 avx512f_vmfmsub_<mode>_mask3<round_name>,
14858 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
14859 *avx512f_vmfnmadd_<mode>_mask<round_name>,
14860 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
14861 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
14862 *avx512f_vmfnmsub_<mode>_mask<round_name>,
14863 avx512f_vmfnmsub_<mode>_mask3<round_name>,
14864 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
14865 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
14866 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
14867 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
14868 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
14869 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
14870 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
14871 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
14872 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
14873 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
14874 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
14875 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
14876 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
14877 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
14878 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
14879 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
14880 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
14881 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
14882 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
14883 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
14884 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
14885 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
14886
14887 2019-03-21 Martin Sebor <msebor@redhat.com>
14888
14889 PR tree-optimization/89350
14890 * builtins.c (compute_objsize): Also ignore offsets whose upper
14891 bound is negative.
14892 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
14893 (builtin_memref::builtin_memref): Initialize new member.
14894 Allow EXPR to be null.
14895 (builtin_memref::extend_offset_range): Replace local with a member.
14896 Avoid assuming pointer offsets are unsigned.
14897 (builtin_memref::set_base_and_offset): Determine base object
14898 before computing offset range.
14899 (builtin_access::builtin_access): Handle memset.
14900 (builtin_access::generic_overlap): Replace local with a member.
14901 (builtin_access::strcat_overlap): Same.
14902 (builtin_access::overlap): Same.
14903 (maybe_diag_overlap): Same.
14904 (maybe_diag_access_bounds): Same.
14905 (wrestrict_dom_walker::check_call): Handle memset.
14906 (check_bounds_or_overlap): Same.
14907
14908 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
14909 Jakub Jelinek <jakub@redhat.com>
14910
14911 PR lto/89692
14912 * tree.c (fld_type_variant, fld_incomplete_type_of,
14913 fld_process_array_type): Call fld->pset.add and don't call
14914 add_tree_to_fld_list if it returns true.
14915 (free_lang_data_in_type): Similarly with self-recursive call. Purge
14916 non-marked types from TYPE_NEXT_VARIANT list.
14917 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
14918
14919 2019-03-21 Jakub Jelinek <jakub@redhat.com>
14920
14921 * hash-table.h (hash_table): Add Lazy template parameter defaulted
14922 to false, if true, don't alloc_entries during construction, but defer
14923 it to the first method that needs m_entries allocated.
14924 (hash_table::hash_table, hash_table::~hash_table,
14925 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
14926 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
14927 hash_table::clear_slot, hash_table::traverse_noresize,
14928 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
14929 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
14930 false.
14931 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
14932 NO_INSERT instead of find_with_hash.
14933 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
14934 hash_set::m_table): Add Lazy to template params of hash_table.
14935 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
14936 * attribs.c (test_attribute_exclusions): Likewise.
14937 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
14938 hash_set. Add tests for hash_set with Lazy = true.
14939
14940 2019-03-21 Richard Biener <rguenther@suse.de>
14941
14942 PR tree-optimization/89779
14943 * tree.c (tree_nop_conversion): Consolidate and fix defensive
14944 checks with respect to released SSA names now having error_mark_node
14945 type.
14946 * fold-const.c (operand_equal_p): Likewise.
14947
14948 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
14949
14950 PR target/89775
14951 * config/s390/s390.c (global_not_special_regno_p): Move to make it
14952 available to ...
14953 (s390_optimize_register_info): Use global_not_special_regno_p to
14954 check for global regs.
14955
14956 2019-03-20 Jakub Jelinek <jakub@redhat.com>
14957
14958 PR target/89752
14959 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
14960 update this_alternative nor this_alternative_set.
14961
14962 2019-03-19 Jim Wilson <jimw@sifive.com>
14963
14964 PR target/89411
14965 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
14966 align, size, offset. Use them to handle a BLKmode reference. Update
14967 comment.
14968 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
14969
14970 2019-03-19 Jakub Jelinek <jakub@redhat.com>
14971
14972 PR rtl-optimization/89768
14973 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
14974 instead of GEN_INT.
14975 (unroll_loop_runtime_iterations): Likewise.
14976
14977 2019-03-19 Martin Sebor <msebor@redhat.com>
14978
14979 PR tree-optimization/89644
14980 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
14981 rather than endptr as an indicator of nul-termination.
14982
14983 PR tree-optimization/89644
14984 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
14985 arrays in determining sequence sizes in strncpy and stpncpy.
14986
14987 2019-03-19 Martin Liska <mliska@suse.cz>
14988
14989 PR middle-end/89737
14990 * predict.c (combine_predictions_for_bb): Empty likely_edges and
14991 unlikely_edges if there's an edge that belongs to both these sets.
14992
14993 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
14994
14995 PR target/89746
14996 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
14997 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
14998 go via a stack temporary.
14999
15000 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15001
15002 PR target/89378
15003 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
15004 instead of gen_rtx_SUBREG.
15005 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
15006
15007 2019-03-19 Richard Biener <rguenther@suse.de>
15008
15009 PR debug/88389
15010 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
15011
15012 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
15013
15014 PR lto/87809
15015 PR lto/89335
15016 * tree.c (free_lang_data_in_decl): Do not free context of C++
15017 destrutors.
15018
15019 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15020
15021 PR target/89506
15022 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
15023 subs for the first alternative except when operands[3] is 1.
15024
15025 PR target/89752
15026 * gimplify.c (gimplify_asm_expr): For output argument with
15027 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
15028 diagnose error.
15029
15030 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
15031
15032 PR rtl-optimization/89753
15033 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
15034 explicit unrolling factor even more robust.
15035
15036 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15037
15038 PR target/89726
15039 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
15040 compensation use x2 += 1 instead of x2 -= -1 and when honoring
15041 signed zeros, do another copysign after the compensation.
15042
15043 2019-03-18 Martin Sebor <msebor@redhat.com>
15044
15045 PR tree-optimization/89720
15046 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
15047 more conservatively, the same as anti-range.
15048
15049 2019-03-18 Richard Biener <rguenther@suse.de>
15050
15051 PR middle-end/88945
15052 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
15053 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
15054 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
15055 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
15056
15057 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
15058
15059 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
15060 Extend queue to 1024 entries.
15061 Add "consumed" field.
15062 (gomp_print_output): Remove print_index parameter.
15063 Add final parameter.
15064 Change limit to unsigned.
15065 Use consumed field to implement circular buffer.
15066 Detect interrupted print in final pass.
15067 Flush output at the end.
15068 (run): Update gomp_print_output usage.
15069 (main): Initialize kernargs->output_data.consumed.
15070
15071 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
15072
15073 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
15074 calculation of the minimum number of scalar iterations for
15075 fully-predicated loops.
15076
15077 2019-03-18 Martin Jambor <mjambor@suse.cz>
15078
15079 PR tree-optimization/89546
15080 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
15081 any propagation to its children took place.
15082
15083 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
15084
15085 PR target/89627
15086 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
15087 parameter, and make use of it.
15088 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
15089
15090 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15091
15092 * config/arc/arc.opt (mcode-density-frame): Get the inital value
15093 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
15094 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
15095 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
15096 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
15097 match what the ops is doing.
15098 (push_multi_fp_blink): Likewise.
15099 * config/arc/arc.c (arc_override_options): Enable enter/leave when
15100 compiling for size and elf target.
15101 (arc_save_callee_enter): Adjust note to match what enter/leave
15102 operation does.
15103
15104 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15105
15106 * config/arc/arc.md (tst_movb): Fix constraint.
15107
15108 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15109
15110 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
15111
15112 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15113
15114 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
15115 * config/arc/arc.c (arc_conditional_register_usage): Remove all
15116 reg_alloc_order references.
15117 (size_alloc_order): Define.
15118 (arc_adjust_reg_alloc_order): New function.
15119 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
15120 order.
15121 (ADJUST_REG_ALLOC_ORDER): Define.
15122 (HONOR_REG_ALLOC_ORDER): Likewise.
15123
15124 2019-03-18 Richard Biener <rguenther@suse.de>
15125
15126 PR target/87561
15127 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
15128 loads and stores a bit more.
15129
15130 2019-03-18 Richard Biener <rguenther@suse.de>
15131
15132 PR target/87561
15133 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
15134 load pessimization to stores as well.
15135
15136 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
15137
15138 PR middle-end/86979
15139 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
15140 successor, use NULL as its av set.
15141
15142 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
15143
15144 PR rtl-optimization/89721
15145 * lra-constraints (invariant_p): Return false if side_effects_p holds.
15146
15147 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
15148
15149 PR target/87532
15150 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15151 When handling vec_extract, use modular arithmetic to allow
15152 constant selectors greater than vector length.
15153 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
15154 V1TImode vectors to have constant selector values greater than 0.
15155 Use modular arithmetic to compute vector index.
15156 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
15157 index for in-memory vectors. Correct code generation for
15158 in-register vectors.
15159 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
15160 compute index.
15161
15162 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
15163
15164 PR c++/88534
15165 PR c++/88537
15166 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
15167 VAR_DECL args.
15168
15169 2019-03-15 Jakub Jelinek <jakub@redhat.com>
15170
15171 PR c++/89709
15172 * tree.c (inchash::add_expr): Strip any location wrappers.
15173 * fold-const.c (operand_equal_p): Move stripping of location wrapper
15174 after hash verification.
15175
15176 PR debug/89704
15177 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
15178 SIGN_EXTEND and ZERO_EXTEND.
15179
15180 2019-03-14 Jason Merrill <jason@redhat.com>
15181 Jakub Jelinek <jakub@redhat.com>
15182
15183 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
15184 than if is_empty (*slot).
15185 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
15186 existing elt and for elt removal.
15187 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
15188 of already removed elt.
15189
15190 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
15191
15192 PR target/89650
15193 * config/i386/i386.c (remove_partial_avx_dependency): Handle
15194 REG_EH_REGION note.
15195
15196 2019-03-14 Martin Liska <mliska@suse.cz>
15197
15198 PR other/89712
15199 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
15200
15201 2019-03-14 Richard Biener <rguenther@suse.de>
15202
15203 PR target/89711
15204 * config/i386/i386.c (make_resolver_func): Properly set
15205 DECL_CONTEXT on the RESULT_DECL.
15206 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
15207
15208 2019-03-14 Richard Biener <rguenther@suse.de>
15209
15210 * gimple-pretty-print.c: Include cfgloop.h.
15211 (dump_gimple_phi): Adjust.
15212 (dump_gimple_bb_header): Dump loop header for GIMPLE.
15213 (pp_cfg_jump): Adjust.
15214 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
15215 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
15216 (lower_phi_internal_fn): Remove.
15217 (verify_gimple_call): Remove IFN_PHI special-casing.
15218 (dump_function_to_file): Dump IL state.
15219 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
15220 done to deal with PHI nodes being present in non-SSA state.
15221
15222 2019-03-14 Jakub Jelinek <jakub@redhat.com>
15223
15224 PR ipa/89684
15225 * multiple_target.c (create_dispatcher_calls): Change
15226 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
15227 In the node->iterate_referring loop, push *ref rather than ref, call
15228 ref->remove_reference () and always pass 0 to iterate_referring.
15229
15230 PR rtl-optimization/89679
15231 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
15232 would contain a paradoxical SUBREG.
15233
15234 2019-03-14 Richard Biener <rguenther@suse.de>
15235
15236 PR tree-optimization/89710
15237 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
15238 safe_dyn_cast.
15239
15240 2019-03-14 Martin Liska <mliska@suse.cz>
15241
15242 * coverage.c (coverage_begin_function): Stream also
15243 end_column.
15244 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
15245 documentation about function declaration location.
15246 * gcov-dump.c (tag_function): Print whole range
15247 of function declaration.
15248 * gcov.c (struct function_info): Add end_column field.
15249 (function_info::function_info): Initialize it.
15250 (output_json_intermediate_file): Output {start,end}_column
15251 fields.
15252 (read_graph_file): Read end_column.
15253
15254 2019-03-14 Richard Biener <rguenther@suse.de>
15255
15256 PR middle-end/89698
15257 * fold-const.c (operand_equal_p): For INDIRECT_REF check
15258 that the access types are similar.
15259
15260 2019-03-14 Jakub Jelinek <jakub@redhat.com>
15261
15262 PR tree-optimization/89703
15263 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
15264 aren't compatible also with builtin_decl_explicit. Check pure
15265 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
15266 and BUILT_IN_STPNCPY{,_CHK}.
15267
15268 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
15269
15270 PR target/89523
15271 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
15272 addr32 prefix to VSIB address for X32.
15273 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
15274 "%M2" to opcode.
15275 (*avx512pf_gatherpf<mode>df_mask): Likewise.
15276 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
15277 (*avx512pf_scatterpf<mode>df_mask): Likewise.
15278 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
15279 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
15280 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
15281 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
15282 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
15283 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
15284 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
15285 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
15286 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
15287 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
15288 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
15289 (*avx512f_scatterdi<mode>): Likewise.
15290
15291 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
15292
15293 PR target/85860
15294 * lra-constraints.c (inherit_in_ebb): Update
15295 potential_reload_hard_regs along with live_hard_regs.
15296
15297 2019-03-13 Jakub Jelinek <jakub@redhat.com>
15298
15299 PR debug/89498
15300 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
15301 DWARF_OFFSET_SIZE.
15302 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
15303
15304 2019-03-13 Martin Sebor <msebor@redhat.com>
15305
15306 PR tree-optimization/89662
15307 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
15308 has a size.
15309
15310 2019-03-13 Richard Biener <rguenther@suse.de>
15311
15312 PR middle-end/89677
15313 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
15314 throw FP expressions at tree-affine.
15315
15316 2019-03-14 Richard Biener <rguenther@suse.de>
15317
15318 * tree-pretty-print.c (dump_generic_node): For -gimple properly
15319 dump negative integer constants using _Literal (type) -num.
15320
15321 2019-03-13 Jakub Jelinek <jakub@redhat.com>
15322
15323 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
15324 nonlocal_value member.
15325
15326 PR middle-end/88588
15327 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
15328 (ipa_simd_modify_function_body): Handle PHIs.
15329
15330 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
15331
15332 * config/s390/s390.c (s390_option_override_internal): Use more
15333 aggressive inlining parameters.
15334
15335 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
15336
15337 * config/s390/3906.md: New file.
15338 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
15339 (LONGRUNNING_THRESHOLD): Remove.
15340 (MAX_SCHED_MIX_SCORE): Decrease.
15341 (MAX_SCHED_MIX_DISTANCE): Decrease.
15342 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
15343 (struct s390_sched_state): New struct to hold scheduling state.
15344 (S390_SCHED_STATE_NORMAL): Remove.
15345 (S390_SCHED_STATE_CRACKED): Remove.
15346 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
15347 (s390_get_sched_attrmask): Use new attribute.
15348 (s390_get_unit_mask): Use new units.
15349 (s390_is_fpd): New function.
15350 (s390_is_fxd): New function.
15351 (s390_is_longrunning): New function.
15352 (s390_sched_score): Use new functions.
15353 (s390_sched_reorder): Likewise.
15354 (s390_sched_variable_issue): Rework and use new functions.
15355 (s390_sched_init): Use new functions.
15356 * config/s390/s390.h (s390_tune_attr): Add z14.
15357 * config/s390/s390.md: Add z14.
15358
15359 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
15360
15361 * config/s390/2964.md: Update pipeline description.
15362 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
15363 (LONGRUNNING_THRESHOLD): Remove.
15364 (LATENCY_FACTOR): Remove.
15365 (s390_get_unit_mask): Add unit.
15366 (s390_sched_score): Use fxd/fpd.
15367 (s390_sched_variable_issue): Use fxd/fpd.
15368
15369 2019-03-12 Martin Liska <mliska@suse.cz>
15370
15371 * config/i386/i386.c: Reword an error message.
15372
15373 2019-03-12 Martin Jambor <mjambor@suse.cz>
15374
15375 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
15376 terminate with newline.
15377
15378 2019-03-12 Jakub Jelinek <jakub@redhat.com>
15379
15380 PR target/52726
15381 * config/s390/s390.md (tabort): Use %wd instead of
15382 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
15383 letters and periods.
15384 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
15385 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
15386 's with %< and %>.
15387
15388 PR middle-end/89663
15389 * builtins.c (expand_builtin_int_roundingfn,
15390 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
15391 gcc_unreachable if validate_arglist fails.
15392
15393 2019-03-12 Richard Biener <rguenther@suse.de>
15394
15395 PR tree-optimization/89664
15396 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
15397 free the occurance tree after the early out.
15398
15399 2019-03-11 Jakub Jelinek <jakub@redhat.com>
15400
15401 PR middle-end/89655
15402 PR bootstrap/89656
15403 * vr-values.c (vr_values::update_value_range): If
15404 old_vr->varying_p (), don't update it, make new_vr also VARYING
15405 and return false.
15406
15407 2019-03-11 Martin Liska <mliska@suse.cz>
15408
15409 * config/aarch64/aarch64.c (aarch64_override_options_internal):
15410 Fix double string quoting.
15411
15412 2019-03-11 Martin Liska <mliska@suse.cz>
15413
15414 * collect-utils.c (collect_wait): Wrap apostrophes
15415 in gcc internal format with %'.
15416 * collect2.c (main): Likewise.
15417 (scan_prog_file): Likewise.
15418 (scan_libraries): Likewise.
15419 * config/i386/i386.c (ix86_expand_call): Likewise.
15420 (ix86_handle_interrupt_attribute): Likewise.
15421 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
15422 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
15423 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
15424 * lto-wrapper.c (find_crtoffloadtable): Likewise.
15425 * symtab.c (symtab_node::verify_base): Likewise.
15426 * tree-cfg.c (verify_gimple_label): Likewise.
15427 * tree.c (verify_type_variant): Likewise.
15428
15429 2019-03-11 Martin Liska <mliska@suse.cz>
15430
15431 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
15432 in a string format message and fix GNU coding style.
15433 (expand_builtin_set_thread_pointer): Likewise.
15434 * common/config/aarch64/aarch64-common.c
15435 (aarch64_rewrite_selected_cpu): Likewise.
15436 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
15437 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
15438 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
15439 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
15440 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
15441 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
15442 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
15443 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
15444 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
15445 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
15446 Likewise.
15447 * common/config/riscv/riscv-common.c
15448 (riscv_subset_list::parsing_subset_version): Likewise.
15449 (riscv_subset_list::parse_std_ext): Likewise.
15450 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
15451 (riscv_subset_list::parse): Likewise.
15452 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
15453 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
15454 (aarch64_override_options_internal): Likewise.
15455 (aarch64_validate_mcpu): Likewise.
15456 (aarch64_validate_march): Likewise.
15457 (aarch64_validate_mtune): Likewise.
15458 (aarch64_override_options): Likewise.
15459 * config/alpha/alpha.c (alpha_option_override): Likewise.
15460 * config/arc/arc.c (arc_init): Likewise.
15461 (parse_mrgf_banked_regs_option): Likewise.
15462 (arc_override_options): Likewise.
15463 (arc_expand_builtin_aligned): Likewise.
15464 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
15465 (arm_expand_builtin): Likewise.
15466 * config/arm/arm.c (arm_option_check_internal): Likewise.
15467 (arm_configure_build_target): Likewise.
15468 (arm_option_override): Likewise.
15469 (arm_options_perform_arch_sanity_checks): Likewise.
15470 (arm_handle_cmse_nonsecure_entry): Likewise.
15471 (arm_handle_cmse_nonsecure_call): Likewise.
15472 (arm_tls_referenced_p): Likewise.
15473 (thumb1_expand_prologue): Likewise.
15474 * config/avr/avr.c (avr_option_override): Likewise.
15475 * config/bfin/bfin.c (bfin_option_override): Likewise.
15476 * config/c6x/c6x.c (c6x_option_override): Likewise.
15477 * config/cr16/cr16.c (cr16_override_options): Likewise.
15478 * config/cris/cris.c (cris_option_override): Likewise.
15479 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
15480 * config/darwin-c.c (macosx_version_as_macro): Likewise.
15481 * config/darwin.c (darwin_override_options): Likewise.
15482 * config/frv/frv.c (frv_expand_builtin): Likewise.
15483 * config/h8300/h8300.c (h8300_option_override): Likewise.
15484 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
15485 (ix86_option_override_internal): Likewise.
15486 (warn_once_call_ms2sysv_xlogues): Likewise.
15487 (ix86_expand_prologue): Likewise.
15488 (split_stack_prologue_scratch_regno): Likewise.
15489 (ix86_warn_parameter_passing_abi): Likewise.
15490 * config/ia64/ia64.c (fix_range): Likewise.
15491 * config/m68k/m68k.c (m68k_option_override): Likewise.
15492 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
15493 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
15494 (mips_set_compression_mode): Likewise.
15495 * config/mmix/mmix.c (mmix_option_override): Likewise.
15496 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
15497 * config/msp430/msp430.c (msp430_option_override): Likewise.
15498 * config/nds32/nds32.c (nds32_option_override): Likewise.
15499 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
15500 (nios2_option_override): Likewise.
15501 (nios2_expand_custom_builtin): Likewise.
15502 * config/nvptx/mkoffload.c (main): Likewise.
15503 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
15504 * config/pa/pa.c (fix_range): Likewise.
15505 (pa_option_override): Likewise.
15506 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
15507 (riscv_option_override): Likewise.
15508 * config/rl78/rl78.c (rl78_option_override): Likewise.
15509 * config/rs6000/aix61.h: Likewise.
15510 * config/rs6000/aix71.h: Likewise.
15511 * config/rs6000/aix72.h: Likewise.
15512 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
15513 * config/rs6000/freebsd64.h: Likewise.
15514 * config/rs6000/linux64.h: Likewise.
15515 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
15516 (rs6000_expand_zeroop_builtin): Likewise.
15517 (rs6000_expand_mtfsb_builtin): Likewise.
15518 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
15519 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
15520 (rs6000_invalid_builtin): Likewise.
15521 (rs6000_expand_split_stack_prologue): Likewise.
15522 * config/rs6000/rtems.h: Likewise.
15523 * config/rx/rx.c (valid_psw_flag): Likewise.
15524 (rx_expand_builtin): Likewise.
15525 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
15526 * config/s390/s390.c (s390_expand_builtin): Likewise.
15527 (s390_function_profiler): Likewise.
15528 (s390_option_override_internal): Likewise.
15529 (s390_option_override): Likewise.
15530 * config/sh/sh.c (sh_option_override): Likewise.
15531 (sh_builtin_saveregs): Likewise.
15532 (sh_fix_range): Likewise.
15533 * config/sh/vxworks.h: Likewise.
15534 * config/sparc/sparc.c (sparc_option_override): Likewise.
15535 * config/spu/spu.c (spu_option_override): Likewise.
15536 (fix_range): Likewise.
15537 * config/visium/visium.c (visium_option_override): Likewise.
15538 (visium_handle_interrupt_attr): Likewise.
15539 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
15540 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
15541 (dbg_cnt_process_opt): Likewise.
15542 * dwarf2out.c (output_dwarf_version): Likewise.
15543 * except.c (expand_eh_return): Likewise.
15544 * gcc.c (defined): Likewise.
15545 (driver_handle_option): Likewise.
15546 (process_command): Likewise.
15547 (compare_files): Likewise.
15548 (driver::prepare_infiles): Likewise.
15549 (driver::do_spec_on_infiles): Likewise.
15550 (driver::maybe_run_linker): Likewise.
15551 * omp-offload.c (oacc_parse_default_dims): Likewise.
15552 * opts-global.c (handle_common_deferred_options): Likewise.
15553 * opts.c (parse_sanitizer_options): Likewise.
15554 (common_handle_option): Likewise.
15555 (enable_warning_as_error): Likewise.
15556 * passes.c (enable_disable_pass): Likewise.
15557 * plugin.c (parse_plugin_arg_opt): Likewise.
15558 (default_plugin_dir_name): Likewise.
15559 * targhooks.c (default_expand_builtin_saveregs): Likewise.
15560 (default_pch_valid_p): Likewise.
15561 * toplev.c (init_asm_output): Likewise.
15562 (process_options): Likewise.
15563 (toplev::run_self_tests): Likewise.
15564 * tree-cfg.c (verify_gimple_call): Likewise.
15565 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
15566 (tree_inlinable_function_p): Likewise.
15567 * var-tracking.c (vt_find_locations): Likewise.
15568
15569 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
15570
15571 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
15572 only on the else branch.
15573
15574 2019-03-11 Martin Liska <mliska@suse.cz>
15575
15576 * gcov.c (output_intermediate_json_line): Print function
15577 name of each line.
15578 (output_json_intermediate_file): Add new argument.
15579 * doc/gcov.texi: Document the change.
15580
15581 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
15582
15583 PR rtl-optimization/89588
15584 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
15585 explicit unrolling factor more robust.
15586
15587 2019-03-11 Richard Biener <rguenther@suse.de>
15588
15589 PR tree-optimization/89649
15590 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
15591 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
15592 on the prolog and epilog loops.
15593 (vect_loop_versioning): Return copy of loop.
15594 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
15595 on the non-vectorized version of the loop.
15596
15597 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
15598
15599 PR target/68924
15600 * config/i386/sse.md (*vec_extractv2di_0_sse):
15601 Add (=r,x) alternative and corresponding splitter.
15602
15603 2019-03-10 Martin Jambor <mjambor@suse.cz>
15604
15605 PR tree-optimization/85762
15606 PR tree-optimization/87008
15607 PR tree-optimization/85459
15608 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
15609 it points to if there is a type changing MEM_REF. Adjust all callers.
15610 (build_accesses_from_assign): Disable total scalarization if
15611 contains_vce_or_bfcref_p returns true through the new parameter, for
15612 both rhs and lhs.
15613
15614 2019-03-09 Jakub Jelinek <jakub@redhat.com>
15615
15616 PR c/88568
15617 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
15618 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
15619
15620 PR target/79645
15621 * common.opt (fdiagnostics-show-labels,
15622 fdiagnostics-show-line-numbers, fdiagnostics-format=,
15623 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
15624 gas-locview-support, ginline-points, ginternal-reset-location-views):
15625 Terminate description text with a dot.
15626 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
15627 * config/mcore/mcore.opt (m210, m340): Likewise.
15628 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
15629 mnops=): Start description text with a capital letter.
15630 * config/arc/arc.opt (msize-level=): Likewise.
15631 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
15632 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
15633 mnewlib): Likewise.
15634 * config/ft32/ft32.opt (msim): Likewise.
15635 (mft32b, mcompress): Likewise. Terminate description text with a dot.
15636 (mnodiv, mnopm): Terminate description text with a dot.
15637 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
15638 a colon.
15639 * config/i386/i386.opt (prefer_vector_width, instrument_return):
15640 Likewise.
15641 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
15642 text.
15643
15644 PR rtl-optimization/89634
15645 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
15646 are modified in BB_END (e->src) instruction.
15647
15648 2019-03-08 David Malcolm <dmalcolm@redhat.com>
15649
15650 PR target/79926
15651 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
15652 messages more amenable to translation, and improve wording.
15653
15654 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
15655
15656 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
15657 ud- and du-chains between phases.
15658
15659 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
15660
15661 PR debug/89631
15662 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
15663 instead of POLY_INT_CST.
15664
15665 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
15666
15667 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
15668 requirement.
15669
15670 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
15671
15672 PR target/68924
15673 PR target/78782
15674 PR target/87558
15675 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
15676 (_mm_storeu_si64): Ditto.
15677
15678 2019-03-08 Martin Liska <mliska@suse.cz>
15679
15680 PR target/86952
15681 * config/i386/i386.c (ix86_option_override_internal): Disable
15682 jump tables when retpolines are used.
15683
15684 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
15685
15686 PR go/63560
15687 * ipa-split.c (execute_split_functions): Do not split
15688 'noinline' or 'section' function.
15689
15690 2019-03-08 Jakub Jelinek <jakub@redhat.com>
15691
15692 PR target/79846
15693 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
15694 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
15695 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
15696
15697 PR ipa/80000
15698 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
15699 from diagnostics. Formatting fixes.
15700
15701 PR target/85665
15702 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
15703 warn_odr diagnostics.
15704
15705 PR other/80058
15706 * lra-constraints.c (process_alt_operands): Avoid one space before
15707 " at the end of line and another after " on another line in a string
15708 literal.
15709 * attribs.c (handle_dll_attribute): Likewise.
15710 * config/avr/avr-devices.c (avr_texinfo): Likewise.
15711
15712 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
15713 warning_at or inform messages in G_() if there is no ?:.
15714
15715 PR tree-optimization/89550
15716 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
15717 returned true. Formatting fixes.
15718 (expand_builtin_strnlen): Formatting fixes.
15719 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
15720 if warning_at returned true.
15721 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
15722
15723 2019-03-08 Richard Biener <rguenther@suse.de>
15724
15725 PR middle-end/89578
15726 * cfgloop.h (struct loop): Add owned_clique field.
15727 * cfgloopmanip.c (copy_loop_info): Copy it.
15728 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
15729 cliques.
15730 * tree-inline.c (copy_loops): Remap owned_clique.
15731 * lto-streamer-in.c (input_cfg): Stream owned_clique.
15732 * lto-streamer-out.c (output_cfg): Likewise.
15733
15734 2019-03-08 Jakub Jelinek <jakub@redhat.com>
15735
15736 PR target/80190
15737 * config/darwin.c: Include intl.h.
15738 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
15739 composing the message out of two separate parts.
15740
15741 2019-03-07 Jakub Jelinek <jakub@redhat.com>
15742
15743 PR target/80003
15744 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
15745 doesn't start with a capital letter and doesn't end with a dot.
15746 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
15747 with a capital letter.
15748 (ix86_mangle_function_version_assembler_name): Likewise.
15749 (ix86_generate_version_dispatcher_body): Likewise.
15750 (fold_builtin_cpu): Likewise.
15751 (get_builtin_code_for_version): Likewise. Remove extraneous space.
15752 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
15753 translators, wrap full type name in %qs.
15754
15755 PR translation/79999
15756 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
15757 depend clause with source (or sink) modifier.
15758 * omp-expand.c (expand_omp_ordered_sink): Likewise.
15759
15760 PR target/89602
15761 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
15762 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
15763 (avx512f_load<mode>_mask): New define_expand.
15764 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
15765 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
15766 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
15767 __builtin_ia32_movess_mask): New builtins.
15768 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
15769 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
15770 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
15771 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
15772
15773 2019-03-07 Martin Jambor <mjambor@suse.cz>
15774
15775 PR lto/87525
15776 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
15777 for extern inline functions.
15778
15779 2019-03-07 Martin Jambor <mjambor@suse.cz>
15780
15781 PR ipa/88235
15782 * cgraph.h (cgraph_node): New inline method former_thunk_p.
15783 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
15784 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
15785 have multiple callees. At the end check if declarations match as
15786 opposed to cgraph_nodes.
15787
15788 2019-03-07 Martin Liska <mliska@suse.cz>
15789
15790 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
15791 which is equivalent to searching for this in clones chain.
15792 * symtab.c (symtab_node::verify_base): Similarly compare ASM
15793 names with a neighbour and special case first node in a chain.
15794
15795 2019-01-25 Jason Merrill <jason@redhat.com>
15796
15797 PR c++/80916 - spurious "static but not defined" warning.
15798 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
15799 for an internal symbol with DECL_EXTERNAL.
15800
15801 2019-04-07 Richard Biener <rguenther@suse.de>
15802
15803 PR middle-end/89618
15804 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
15805 * tree-inline.c (copy_loops): Simplify.
15806
15807 2019-03-07 Martin Liska <mliska@suse.cz>
15808
15809 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
15810
15811 2019-03-07 Richard Biener <rguenther@suse.de>
15812
15813 PR tree-optimization/89595
15814 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
15815 stmt iterator as reference, take boolean output parameter to
15816 indicate whether the stmt was removed and thus the iterator
15817 already advanced.
15818 (dom_opt_dom_walker::before_dom_children): Re-iterate over
15819 stmts created by folding.
15820
15821 2019-03-07 Jakub Jelinek <jakub@redhat.com>
15822
15823 PR c++/89585
15824 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
15825 at toplevel.
15826
15827 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
15828
15829 PR rtl-optimization/88845
15830 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
15831 LRA.
15832 * lra.c (remove_scratches_1): New function.
15833 (remove_scratches): Use it.
15834 (lra_emit_move): Likewise.
15835
15836 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
15837
15838 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
15839 unaligned_access variable.
15840 * config/arc/arc.c (arc_override_options): Set unaligned access
15841 default on for HS CPUs.
15842 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
15843
15844 2019-03-06 Martin Liska <mliska@suse.cz>
15845
15846 PR gcov-profile/89577
15847 * doc/gcov.texi: Prefer to use --coverage.
15848 * doc/sourcebuild.texi: Likewise.
15849
15850 2019-03-02 Jason Merrill <jason@redhat.com>
15851
15852 PR c++/86485 - -Wmaybe-unused with empty class ?:
15853 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
15854
15855 2019-03-05 Jakub Jelinek <jakub@redhat.com>
15856
15857 PR target/89587
15858 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
15859 if_multiarch.
15860
15861 PR middle-end/89590
15862 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
15863 exactly one argument.
15864
15865 2019-03-05 Jakub Jelinek <jakub@redhat.com>
15866 Richard Sandiford <richard.sandiford@arm.com>
15867
15868 PR tree-optimization/89570
15869 * match.pd (vec_cond into cond_op simplification): Don't use
15870 get_conditional_internal_fn, use as_internal_fn (cond_op).
15871
15872 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
15873
15874 PR target/89222
15875 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
15876 to decide when to split off a non-zero offset from a symbol.
15877 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
15878 in function symbols.
15879
15880 2019-03-05 Richard Biener <rguenther@suse.de>
15881
15882 PR tree-optimization/89594
15883 * tree-if-conv.c (pass_if_conversion::execute): Handle
15884 case where .LOOP_VECTORIZED_FUNCTION was removed.
15885
15886 2019-03-05 Jakub Jelinek <jakub@redhat.com>
15887
15888 PR bootstrap/89560
15889 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
15890 instead alloca it only when needed with the needed size.
15891
15892 PR tree-optimization/89570
15893 * match.pd (vec_cond into cond_op simplification): Guard with
15894 vectorized_internal_fn_supported_p test and #if GIMPLE.
15895
15896 PR tree-optimization/89566
15897 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
15898 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
15899 Punt if get_user_idx_format succeeds, but idx_format argument is
15900 not provided or doesn't have pointer type, or if idx_args is above
15901 number of provided arguments.
15902
15903 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
15904
15905 PR tree-optimization/89437
15906 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
15907
15908 2019-03-04 Richard Biener <rguenther@suse.de>
15909
15910 PR middle-end/89572
15911 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
15912 safe_dyn_cast.
15913
15914 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
15915
15916 PR tree-optimization/89487
15917 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
15918 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
15919 (distribute_loop): Don't do runtime alias check if there is non-
15920 addressable data reference.
15921 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
15922 is a register variable.
15923
15924 2019-03-02 Jakub Jelinek <jakub@redhat.com>
15925
15926 PR target/89506
15927 * config/arm/arm.md (cmpsi2_addneg): Use
15928 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
15929 If operands[2] is 0 or INT_MIN, force use of subs.
15930 (*compare_scc splitter): Use gen_int_mode.
15931 (*negscc): Likewise.
15932 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
15933
15934 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
15935 Monk Chiang <sh.chiang04@gmail.com>
15936
15937 * common/config/riscv/riscv-common.c: Include sstream.
15938 (riscv_subset_list::to_string): New.
15939 (riscv_arch_str): Likewise.
15940 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
15941 * config.in: Regen.
15942 * config/riscv/riscv-protos.h (riscv_arch_str): New.
15943 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
15944 (riscv_emit_attribute): New.
15945 (riscv_file_start): Emit attribute if needed.
15946 (riscv_option_override): Init riscv_emit_attribute_p.
15947 * config/riscv/riscv.opt (mriscv-attribute): New option.
15948 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
15949 * configure: Regen.
15950 * doc/install.texi: Document --with-riscv-attribute.
15951 * doc/invoke.texi: Document -mriscv-attribute.
15952
15953 * common/config/riscv/riscv-common.c:
15954 Include config/riscv/riscv-protos.h.
15955 (INCLUDE_STRING): Defined.
15956 (RISCV_DONT_CARE_VERSION): Defined.
15957 (riscv_subset_t): Declare.
15958 (riscv_subset_t::riscv_subset_t): New.
15959 (riscv_subset_list): Declare.
15960 (riscv_subset_list::riscv_subset_list): New.
15961 (riscv_subset_list::~riscv_subset_list): Likewise.
15962 (riscv_subset_list::parsing_subset_version): Likewise.
15963 (riscv_subset_list::parse_std_ext): Likewise.
15964 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
15965 (riscv_subset_list::add): Likewise.
15966 (riscv_subset_list::lookup): Likewise.
15967 (riscv_subset_list::xlen): Likewise.
15968 (riscv_subset_list::parse): Likewise.
15969 (riscv_supported_std_ext): Likewise.
15970 (current_subset_list): Likewise.
15971 (riscv_parse_arch_string): Using riscv_subset_list::parse to
15972 parse.
15973
15974 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
15975
15976 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
15977 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
15978 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
15979
15980 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
15981
15982 PR rtl-optimization/85899
15983 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
15984 fallthru edges leading to the exit block.
15985
15986 2019-03-01 Tamar Christina <tamar.christina@arm.com>
15987
15988 PR target/89517
15989 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
15990 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
15991
15992 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
15993
15994 PR tree-optimization/89535
15995 * tree-vect-stmts.c (vectorizable_call): Record the vector types
15996 for each operand. Calculate the fallback choice for mask operands
15997 and pass it to vect_get_vec_def_for_operand.
15998
15999 2019-03-01 Richard Biener <rguenther@suse.de>
16000
16001 PR middle-end/89541
16002 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
16003 get virtual operands.
16004 (get_expr_operands): Handle CONST_DECL like other decls.
16005
16006 2019-03-01 Jakub Jelinek <jakub@redhat.com>
16007
16008 PR middle-end/89503
16009 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
16010 on DECL_P and EXPR_P.
16011
16012 2019-03-01 Richard Biener <rguenther@suse.de>
16013
16014 PR middle-end/89497
16015 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
16016 argument, defaulted to zero.
16017 * passes.c (execute_function_todo): Pass down SSA update flags
16018 to cleanup_tree_cfg.
16019 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
16020 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
16021 form if requested.
16022 (cleanup_tree_cfg): Get and pass down SSA update flags.
16023
16024 2019-03-01 Jakub Jelinek <jakub@redhat.com>
16025
16026 PR bootstrap/89539
16027 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
16028 early_lto_debug argument.
16029
16030 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
16031
16032 PR tree-optimization/89536
16033 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
16034 only whether bit #0 of the value is 0 instead of the entire value.
16035
16036 2019-02-28 Marek Polacek <polacek@redhat.com>
16037
16038 PR c++/87068 - missing diagnostic with fallthrough statement.
16039 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
16040 at the end of a seq, save its location to walk_stmt_info.
16041 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
16042 a switch.
16043
16044 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
16045
16046 PR lto/88585
16047 * tree.c (find_atomic_core_type): Move ahead in file.
16048 (check_base_type): Correctly compare alignments of atomic types.
16049
16050 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
16051
16052 PR target/89455
16053 * config/i386/i386.c (get_builtin_code_for_version): Identify
16054 Westmere from PCLMUL, instead of AES.
16055
16056 2019-02-28 Jakub Jelinek <jakub@redhat.com>
16057
16058 PR target/89434
16059 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
16060 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
16061 -UINTVAL (...).
16062
16063 2019-02-28 Tamar Christina <tamar.christina@arm.com>
16064
16065 PR target/88530
16066 * config/aarch64/aarch64-option-extensions.def: Document it.
16067 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
16068 if empty hwcaps.
16069
16070 2019-02-28 Jakub Jelinek <jakub@redhat.com>
16071
16072 PR c/89520
16073 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
16074 builtins if they don't have a single scalar floating point argument.
16075 Formatting fixes.
16076
16077 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
16078
16079 PR rtl-optimization/89490
16080 * varasm.c (get_block_for_section): Bail out for mergeable sections.
16081 (default_use_anchors_for_symbol_p, output_object_block): Assert the
16082 block section is not mergeable.
16083
16084 2019-02-27 Jakub Jelinek <jakub@redhat.com>
16085
16086 PR target/70341
16087 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
16088 old define_insn to ...
16089 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
16090 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
16091 Rename old define_insn to ...
16092 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
16093 (thumb2_casesi_internal_pic): New define_expand. Rename old
16094 define_insn to ...
16095 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
16096 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
16097 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
16098
16099 2019-02-27 Richard Biener <rguenther@suse.de>
16100
16101 PR debug/88878
16102 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
16103
16104 2019-02-27 Richard Biener <rguenther@suse.de>
16105
16106 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
16107 building.
16108
16109 2019-02-27 Richard Biener <rguenther@suse.de>
16110
16111 PR debug/88878
16112 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
16113 parameter, prefix section name with .gnu.debuglto_ if true.
16114 (dwarf2out_finish): Pass false to output_comdat_type_unit.
16115 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
16116
16117 2019-02-27 Richard Biener <rguenther@suse.de>
16118
16119 PR debug/89514
16120 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
16121 rather than on use_debug_types, doing what output_die does.
16122 (value_format): Likewise.
16123
16124 2019-02-27 Martin Jambor <mjambor@suse.cz>
16125 Martin Sebor <msebor@redhat.com>
16126
16127 * doc/invoke.texi (Warning Options): Reword description of
16128 -Wno-absolute-value.
16129
16130 2019-02-27 Jakub Jelinek <jakub@redhat.com>
16131
16132 PR tree-optimization/89280
16133 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
16134 builtin_setjmp_setup_bb): New functions.
16135 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
16136 When visiting __builtin_setjmp_setup block, queue in special
16137 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
16138 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
16139 from visited after the loop if they don't have any visited successor
16140 blocks.
16141
16142 2018-02-26 Steve Ellcey <sellcey@marvell.com>
16143
16144 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
16145 New function.
16146 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
16147
16148 2019-02-26 Jakub Jelinek <jakub@redhat.com>
16149
16150 PR c++/89507
16151 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
16152 with types other than sizetype/ssizetype.
16153
16154 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
16155
16156 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
16157 (enum sparc_processor_type): ...this.
16158 (enum sparc_code_model_type): New enumeration type.
16159 (enum sparc_memory_model_type): Tweak comments.
16160 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
16161 (mtune): Likewise.
16162 (mcmodel): Use sparc_code_model enumeration and variable.
16163 (sparc_code_model): New enumeration.
16164 (mdebug): Add Undocumented marker.
16165 * config/sparc/sparc.h (enum cmodel): Delete.
16166 (sparc_cmodel): Likewise.
16167 (TARGET_CM_MEDLOW): Adjust to above renaming.
16168 (TARGET_CM_MEDMID): Likewise.
16169 (TARGET_CM_MEDANY): Likewise.
16170 (TARGET_CM_EMBMEDANY): Likewise.
16171 * config/sparc/sparc.c (sparc_cmodel): Delete.
16172 (sparc_option_override): Remove string/value mapping support for the
16173 code model. Move code and memory model support to after the handling
16174 of target flags. Do private machine setup last.
16175 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
16176 (sparc_legitimize_reload_address): Likewise.
16177 (sparc_output_mi_thunk): Likewise.
16178 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
16179
16180 2019-02-26 Jakub Jelinek <jakub@redhat.com>
16181
16182 PR tree-optimization/89500
16183 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
16184 (handle_builtin_strlen): Remove noncst_bound variable. Always
16185 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
16186 cst if the first cst bytes starting at x are known to be non-zero,
16187 even if the string is not zero terminated. Don't try to modify
16188 *si for strnlen. Update strlen_to_stridx only for strlen or if
16189 we can prove strnlen returns the same value as strlen would.
16190
16191 2019-02-26 Martin Liska <mliska@suse.cz>
16192
16193 * alloc-pool.h (struct pool_usage): Remove extra
16194 print_dash_line.
16195 * bitmap.h (struct bitmap_usage): Likewise.
16196 * ggc-common.c (struct ggc_usage): Likewise.
16197 * mem-stats.h (struct mem_usage): Likewise.
16198 (mem_alloc_description::dump): Print dash lines
16199 here and repeat header at the end of a table report.
16200 It's then more readable.
16201 * tree-phinodes.c (phinodes_print_statistics): Make
16202 horizontal alignment.
16203 * tree-ssanames.c (ssanames_print_statistics): Likewise.
16204 * vec.c (struct vec_usage): Remove extra print_dash_line.
16205 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
16206
16207 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
16208
16209 * doc/extend.texi (__builtin_object_size):
16210 Use @pxref instead of @xref inside parenthesis.
16211 (__builtin_has_attribute): Add missing comma after @xref.
16212 (__builtin_object_size): Ditto.
16213 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
16214
16215 2019-02-26 Jeff Law <law@redhat.com>
16216
16217 PR rtl-optimization/87761
16218 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
16219 detect obviously dead insns and delete them.
16220
16221 2019-02-26 Richard Biener <rguenther@suse.de>
16222
16223 PR tree-optimization/89505
16224 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
16225 to handle restrict pointed-to vars with multiple subvars
16226 correctly.
16227
16228 2019-02-26 Richard Biener <rguenther@suse.de>
16229
16230 PR tree-optimization/89489
16231 * tree-parloops.c (create_loop_fn): Copy over last_clique.
16232
16233 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
16234
16235 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
16236 and move around comment.
16237 <BIT_AND_EXPR>: Likewise.
16238 <BIT_NOT_EXPR>: Add specific handling for boolean types.
16239
16240 2019-02-26 Jakub Jelinek <jakub@redhat.com>
16241
16242 PR target/89474
16243 * config/i386/i386.c (remove_partial_avx_dependency): Call
16244 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
16245 after changing possibly many instructions to use that pseudo. Fix up
16246 insertion of v4sf_const0 setter at the start of bb.
16247
16248 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
16249
16250 PR c/80409
16251 * doc/extend.texi (Variadic Pointer Args): New section.
16252
16253 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
16254 Martin Sebor <msebor@gmail.com>
16255
16256 * common.opt (Wattribute-alias): Likewise.
16257 * doc/invoke.texi (Option Summary): List general form of
16258 -Wattribute-alias=. List positive form of -Wmissing-attributes.
16259 (-Wmissing-attributes): Invert entry, rewrite and correct default.
16260 Add cross-references.
16261 (-Wattribute-alias): Rewrite and correct default. Mention
16262 considered attributes (same as for -Wmissing-attributes).
16263
16264 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
16265
16266 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
16267 (_mm_cvtpd_ps): Likewise.
16268 (_mm_cvttpd_epi32): Likewise.
16269
16270 PR target/89338
16271 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
16272 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
16273
16274 PR target/89339
16275 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
16276
16277 2019-02-25 Tamar Christina <tamar.christina@arm.com>
16278
16279 PR target/88530
16280 * common/config/aarch64/aarch64-common.c
16281 (struct aarch64_option_extension): Add is_synthetic.
16282 (all_extensions): Use it.
16283 (TARGET_OPTION_INIT_STRUCT): Define hook.
16284 (struct gcc_targetm_common): Moved to end.
16285 (all_extensions_by_on): New.
16286 (opt_ext_cmp, typedef opt_ext): New.
16287 (aarch64_option_init_struct): New.
16288 (aarch64_contains_opt): New.
16289 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
16290 * config/aarch64/aarch64-option-extensions.def
16291 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
16292 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
16293 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
16294 Set is_synthetic to false.
16295 (crypto): Set is_synthetic to true.
16296 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
16297 SYNTHETIC.
16298
16299 2019-02-25 Tamar Christina <tamar.christina@arm.com>
16300
16301 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
16302 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
16303 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
16304 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
16305 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
16306 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
16307 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
16308 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
16309 Rename ...
16310 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
16311 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
16312 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
16313 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
16314 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
16315 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
16316 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
16317 vfmlsl_laneq_high_f16): ... To this.
16318 * config/arm/neon.md: Update comments.
16319
16320 2019-02-25 Tamar Christina <tamar.christina@arm.com>
16321
16322 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
16323 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
16324 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
16325 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
16326 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
16327 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
16328 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
16329 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
16330 Rename ...
16331 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
16332 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
16333 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
16334 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
16335 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
16336 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
16337 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
16338 vfmlslq_laneq_high_f16): ... To this.
16339
16340 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
16341
16342 PR rtl-optimization/86096
16343 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
16344 comparing mw_order values.
16345
16346 2019-02-25 Jakub Jelinek <jakub@redhat.com>
16347
16348 PR target/89434
16349 * config/arm/arm.md (*subsi3_carryin_const): Use
16350 arm_neg_immediate_operand predicate instead of
16351 arm_not_immediate_operand, "L" constraint instead of "K" and
16352 print it using %n2 instead of %B2.
16353 (*subsi3_carryin_const0): New define_insn.
16354 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
16355 instead of arm_not_operand and "I" constraint instead of "K" and
16356 print it using %n3 instead of %B2. Instead of using match_dup 2 add
16357 another match_operand and in the condition check that it is negation
16358 of operands[2].
16359 (*subsi3_carryin_compare_const0): New define_ins.
16360 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
16361 *subsi3_carryin_const.
16362 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
16363 split into *subsi3_carryin_compare_const0 if the highpart is zero.
16364
16365 PR target/89438
16366 * config/arm.vfp.md (*negdf2_vfp): Use
16367 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
16368 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
16369
16370 2019-02-24 Jakub Jelinek <jakub@redhat.com>
16371
16372 PR rtl-optimization/89445
16373 * simplify-rtx.c (simplify_ternary_operation): Don't use
16374 simplify_merge_mask on operands that may trap.
16375 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
16376 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
16377 second operand is CONST_VECTOR, check if any element could be zero.
16378 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
16379 their operands can trap.
16380
16381 2019-02-23 Martin Sebor <msebor@redhat.com>
16382
16383 * gimple-ssa-sprintf.c (target_strtol): Rename...
16384 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
16385 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
16386 check for range error.
16387
16388 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
16389
16390 PR driver/69471
16391 * opts-common.c (prune_options): Also prune joined switches
16392 with Negative and RejectNegative.
16393 * config/i386/i386.opt (march=): Add Negative(march=).
16394 (mtune=): Add Negative(mtune=).
16395 * doc/options.texi: Document Negative used together with Joined
16396 and RejectNegative.
16397
16398 2019-02-22 Martin Sebor <msebor@redhat.com>
16399
16400 * doc/extend.texi (Other Builtins): Add
16401 __builtin_is_constant_evaluated.
16402
16403 2019-02-22 Richard Biener <rguenther@suse.de>
16404
16405 PR tree-optimization/87609
16406 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
16407
16408 2019-02-22 Jeff Law <law@redhat.com>
16409
16410 PR rtl-optimization/87761
16411 * config/mips/mips.md: Add new combiner pattern to recognize
16412 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
16413
16414 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
16415
16416 PR target/89324
16417 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
16418 destination register in peepholes generating patterns for ADDS/SUBS.
16419 (add<mode>3_compare0,
16420 *addsi3_compare0_uxtw, add<mode>3_compareC,
16421 add<mode>3_compareV_imm, add<mode>3_compareV,
16422 *adds_<optab><ALLX:mode>_<GPI:mode>,
16423 *subs_<optab><ALLX:mode>_<GPI:mode>,
16424 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
16425 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
16426 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
16427 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
16428 sub<mode>3_compare1): Allow stack pointer for source register.
16429 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
16430
16431 2019-02-22 Martin Sebor <msebor@redhat.com>
16432
16433 PR tree-optimization/88993
16434 PR tree-optimization/88853
16435 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
16436 New helper.
16437 (sprintf_dom_walker::call_info::is_string_func): New helper.
16438 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
16439 for formatted string functions.
16440 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
16441
16442 2019-02-22 Martin Sebor <msebor@redhat.com>
16443
16444 PR c/89425
16445 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
16446 unreachable subexpressions.
16447
16448 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
16449 Hongtao Liu <hongtao.liu@intel.com>
16450 Sunil K Pandey <sunil.k.pandey@intel.com>
16451
16452 PR target/87007
16453 * config/i386/i386-passes.def: Add
16454 pass_remove_partial_avx_dependency.
16455 * config/i386/i386-protos.h
16456 (make_pass_remove_partial_avx_dependency): New.
16457 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
16458 New function.
16459 (pass_data_remove_partial_avx_dependency): New.
16460 (pass_remove_partial_avx_dependency): Likewise.
16461 (make_pass_remove_partial_avx_dependency): Likewise.
16462 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
16463 (*extendsfdf2): Add avx_partial_xmm_update.
16464 (truncdfsf2): Likewise.
16465 (*float<SWI48:mode><MODEF:mode>2): Likewise.
16466 (SF/DF conversion splitters): Disabled for TARGET_AVX.
16467
16468 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
16469
16470 PR middle-end/85598
16471 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
16472 analysis for pass.
16473
16474 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
16475
16476 PR target/89444
16477 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
16478 (PTA_SKYLAKE): Add PTA_AES.
16479 (PTA_GOLDMONT): Likewise.
16480
16481 2019-02-22 Sudakshina Das <sudi.das@arm.com>
16482
16483 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
16484 instruction if enabled.
16485 (aarch64_override_options): Remove reference to return address key.
16486
16487 2019-02-22 Richard Biener <rguenther@suse.de>
16488
16489 PR tree-optimization/89440
16490 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
16491 not necessary assert.
16492
16493 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
16494
16495 PR fortran/72741
16496 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
16497 (oacc_replace_fn_attrib_attr): ... this new function.
16498 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
16499 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
16500
16501 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16502
16503 * config/arm/arm-cpus.in (ares): Rename to...
16504 (neoverse-n1): ... This. Add ares as alias.
16505 * config/arm/arm-tables.opt: Regenerate.
16506 * config/arm/arm-tune.md: Likewise.
16507 * doc/invoke.txt (ARM Options): Document neoverse-n1.
16508
16509 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16510
16511 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
16512 * config/aarch64/aarch64-tune.md: Regenerate.
16513 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
16514
16515 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16516
16517 * config/aarch64/aarch64.c (ares_tunings): Rename to...
16518 (neoversen1_tunings): ... This.
16519 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
16520 (neoverse-n1): New CPU.
16521 * config/aarch64/aarch64-tune.md: Regenerate.
16522 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
16523
16524 2019-02-22 Richard Biener <rguenther@suse.de>
16525
16526 PR middle-end/87609
16527 * cfghooks.h (dependence_hash): New typedef.
16528 (struct copy_bb_data): New type.
16529 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
16530 (duplicate_block): Likewise.
16531 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
16532 (copy_bbs): Create and pass down copy_bb_data.
16533 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
16534 (rtl_duplicate_bb): Likewise.
16535 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
16536 remap dependence info.
16537
16538 2019-02-22 Richard Biener <rguenther@suse.de>
16539
16540 PR tree-optimization/87609
16541 * tree-core.h (tree_base): Document special clique values.
16542 * tree-inline.c (remap_dependence_clique): Do not use the
16543 special clique value of one.
16544 (maybe_set_dependence_info): Use clique one.
16545 (clear_dependence_clique): New callback.
16546 (compute_dependence_clique): Clear clique one from all refs
16547 before assigning it (again).
16548
16549 2019-02-21 Martin Sebor <msebor@redhat.com>
16550
16551 * doc/extend.texi (__clear_cache): Correct signature.
16552
16553 2019-02-21 Ian Lance Taylor <iant@golang.org>
16554
16555 PR go/89170
16556 * varasm.c (decode_addr_const): Call lookup_constant_def rather
16557 than output_constant_def.
16558 (add_constant_to_table): New static function.
16559 (output_constant_def): Call add_constant_to_table.
16560 (tree_output_constant_def): Likewise.
16561
16562 2019-02-21 Jakub Jelinek <jakub@redhat.com>
16563
16564 PR c++/89285
16565 * builtins.c (fold_builtin_arith_overflow): If first two args are
16566 INTEGER_CSTs, set intres and ovfres to constants rather than calls
16567 to ifn.
16568
16569 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
16570
16571 PR target/87412
16572 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
16573 error for -mindirect-branch/-mfunction-return with incompatible
16574 -fcf-protection.
16575
16576 2019-02-21 Jakub Jelinek <jakub@redhat.com>
16577
16578 PR bootstrap/88714
16579 * constraints.md (q): Remove.
16580 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
16581 instead of q.
16582
16583 2019-02-21 Martin Jambor <mjambor@suse.cz>
16584
16585 PR hsa/89302
16586 * omp-general.c (omp_extract_for_data): Removed a duplicate call
16587 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
16588 (omp_adjust_for_condition): ...here. Added necessary parameters.
16589 * omp-general.h (omp_adjust_for_condition): Updated declaration.
16590 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
16591 proper values to new parameters of omp_adjust_for_condition.
16592
16593 2019-02-20 Jakub Jelinek <jakub@redhat.com>
16594
16595 PR middle-end/89412
16596 * expr.c (expand_assignment): If result is a MEM, use change_address
16597 instead of simplify_gen_subreg.
16598
16599 2019-02-20 Jakub Jelinek <jakub@redhat.com>
16600 David Malcolm <dmalcolm@redhat.com>
16601
16602 PR middle-end/89091
16603 * fold-const.c (decode_field_reference): Return NULL_TREE if
16604 lang_hooks.types.type_for_size returns NULL. Check it before
16605 overwriting *exp_. Use return NULL_TREE instead of return 0.
16606
16607 2019-02-20 Jakub Jelinek <jakub@redhat.com>
16608
16609 PR middle-end/88074
16610 PR middle-end/89415
16611 * toplev.c (do_compile): Double the emin/emax exponents to workaround
16612 buggy mpc_norm.
16613
16614 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
16615
16616 PR target/89397
16617 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
16618 TARGET_SSE in addition to TARGET_SSE_MATH.
16619
16620 (ix86_excess_precision): Ditto.
16621 (ix86_float_exceptions_rounding_supported_p): Ditto.
16622 (use_rsqrt_p): Ditto.
16623 * config/i386/sse.md (rsqrt<mode>2): Ditto.
16624
16625 2019-02-20 David Malcolm <dmalcolm@redhat.com>
16626
16627 PR c/89410
16628 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
16629 linenum_arith_t when determining if two adjacent line spans are
16630 close enough to merge.
16631 (diagnostic_show_locus): Use linenum_arith_t when iterating over
16632 lines within each line_span.
16633
16634 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
16635
16636 PR target/86487
16637 * lra-constraints.c(uses_hard_regs_p): Fix handling of
16638 paradoxical SUBREGS.
16639
16640 2019-02-20 Li Jia He <helijia@linux.ibm.com>
16641
16642 PR target/88100
16643 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
16644 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
16645 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
16646 range checking it.
16647
16648 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
16649
16650 * config/gcn/gcn.c (print_operand): Fix typo.
16651
16652 2019-02-19 Richard Biener <rguenther@suse.de>
16653
16654 PR middle-end/88074
16655 * toplev.c (do_compile): Initialize mpfr's exponent range
16656 based on available float modes.
16657
16658 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
16659
16660 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
16661 as long as the epilogue isn't completed.
16662
16663 2019-02-18 Martin Sebor <msebor@redhat.com>
16664
16665 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
16666 __has_cpp_attribute, and __has_include.
16667
16668 2019-02-18 Martin Sebor <msebor@redhat.com>
16669
16670 * doc/invoke.texi (-Wreturn-type): Correct and expand.
16671
16672 2019-02-18 Martin Sebor <msebor@redhat.com>
16673
16674 PR middle-end/89294
16675 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
16676 expression.
16677 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
16678
16679 2019-02-18 Richard Biener <rguenther@suse.de>
16680
16681 PR tree-optimization/89296
16682 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
16683 of no-warning flag to cases that might emit the bogus warning.
16684
16685 2019-02-18 Jakub Jelinek <jakub@redhat.com>
16686
16687 PR bootstrap/88714
16688 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
16689 "q" constraint.
16690 * config/arm/vfp.md (*movdi_vfp): Likewise.
16691 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
16692 "q" constraint for operands[0].
16693
16694 PR target/89369
16695 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
16696 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
16697 pattern in a temporary buffer.
16698 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
16699 than 64-operands[2].
16700
16701 PR target/89361
16702 * config/s390/s390.c (s390_indirect_branch_attrvalue,
16703 s390_indirect_branch_settings): Define unconditionally.
16704 (s390_set_current_function): Likewise, but guard the whole body except
16705 the s390_indirect_branch_settings call with
16706 #if S390_USE_TARGET_ATTRIBUTE.
16707 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
16708
16709 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
16710 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
16711 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
16712 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
16713 HOST_WIDE_INT_1U instead of 1ULL.
16714 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
16715 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
16716 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
16717 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
16718 instead of 1UL.
16719 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
16720 instead of 1ul.
16721
16722 2019-02-18 Martin Jambor <mjambor@suse.cz>
16723
16724 PR tree-optimization/89209
16725 * tree-sra.c (create_access_replacement): New optional parameter
16726 reg_tree. Use it as a type if non-NULL and access type is not of
16727 a register type.
16728 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
16729 to create_access_replacement.
16730 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
16731 Check lacc is non-NULL before attempting to re-create it on the RHS.
16732
16733 2019-02-18 Martin Liska <mliska@suse.cz>
16734
16735 PR ipa/89306
16736 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
16737 by default.
16738 (symbol_table::free_edge): Recycle m_summary_id.
16739 * cgraph.h (get_summary_id): New.
16740 (symbol_table::release_symbol): Set m_summary_id to -1
16741 by default.
16742 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
16743 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
16744 function_summary to fast_function_summary.
16745 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
16746 * ipa-pure-const.c (class funct_state_summary_t):
16747 Switch from function_summary to fast_function_summary.
16748 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
16749 (class ipa_ref_opt_summary_t): Switch from function_summary
16750 to fast_function_summary.
16751 * symbol-summary.h (class function_summary_base): New class
16752 that is created from base of former function_summary.
16753 (function_summary_base::unregister_hooks): New.
16754 (class function_summary): Inherit from function_summary_base.
16755 (class call_summary_base): New class
16756 that is created from base of former call_summary.
16757 (class call_summary): Inherit from call_summary_base.
16758 (struct is_same): New.
16759 (class fast_function_summary): New summary class.
16760 (class fast_call_summary): New summary class.
16761 * vec.h (vec_safe_grow_cleared): New function.
16762
16763 2019-02-18 Martin Liska <mliska@suse.cz>
16764
16765 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
16766 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
16767 * doc/tm.texi: Document new target hook.
16768 * doc/tm.texi.in: Likewise.
16769 * target.def: Add new target macro.
16770 * gcc.c (find_fortran_preinclude_file): Do not search multilib
16771 suffixes.
16772
16773 2019-02-17 Alan Modra <amodra@gmail.com>
16774
16775 PR target/89271
16776 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
16777 output reg on add insn.
16778 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
16779
16780 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
16781
16782 PR target/89372
16783 * config/i386/sse.md (ssedoublemode): Remove V4HI.
16784 (PMULHRSW): Likewise.
16785 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
16786 TARGET_AVX2.
16787 (ssse3_pmulhrswv4hi3): New expander.
16788
16789 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
16790
16791 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
16792 MMX. Add isa attribute.
16793
16794 2019-02-16 Jakub Jelinek <jakub@redhat.com>
16795
16796 PR rtl-optimization/66152
16797 * builtins.h (c_readstr): Declare.
16798 * builtins.c (c_readstr): Remove forward declaration. Add
16799 null_terminated_p argument, if false, read all bytes from the
16800 string instead of stopping after '\0'.
16801 * expr.c (string_cst_read_str): New function.
16802 (store_expr): Use string_cst_read_str instead of
16803 builtin_strncpy_read_str. Try to store by pieces the whole
16804 exp_len first, and only if that fails, split it up into
16805 store by pieces followed by clear_storage. Formatting fix.
16806
16807 * config/i386/i386.md (*movqi_internal): Remove static from
16808 buf variable. Use output_asm_insn (buf, operands); return "";
16809 instead of return buf;.
16810 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
16811 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
16812 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
16813
16814 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
16815
16816 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
16817 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
16818 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
16819 (CC1_SPEC): Likewise.
16820 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
16821
16822 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
16823
16824 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
16825 the base address on 64-bit strict-alignment platforms.
16826
16827 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
16828
16829 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
16830
16831 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
16832
16833 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
16834
16835 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
16836
16837 PR rtl-optimization/88308
16838 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
16839 on copied instruction.
16840
16841 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
16842
16843 * final.c (insn_current_reference_address): Replace test on JUMP_P
16844 with test on jump_to_label_p.
16845 * config/visium/visium-passes.def: New file.
16846 * config/visium/t-visium (PASSES_EXTRA): Define.
16847 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
16848 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
16849 (TRAMPOLINE_ALIGNMENT): Define.
16850 * config/visium/visium.c (visium_option_override): Do not register
16851 the machine-specific reorg pass here.
16852 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
16853 for the GR6.
16854 (output_branch): Adjust threshold for long branch instruction.
16855 * config/visium/visium.md (cpu): Move around.
16856 (length): Adjust for the GR6.
16857
16858 2019-02-15 Richard Biener <rguenther@suse.de>
16859 Jakub Jelinek <jakub@redhat.com>
16860
16861 PR tree-optimization/89278
16862 * tree-loop-distribution.c: Include tree-eh.h.
16863 (generate_memset_builtin, generate_memcpy_builtin): Call
16864 rewrite_to_non_trapping_overflow on builtin->size before passing it
16865 to force_gimple_operand_gsi.
16866
16867 2019-02-15 Jakub Jelinek <jakub@redhat.com>
16868
16869 PR other/89342
16870 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
16871 optimize_debug.
16872 * opth-gen.awk: Likewise.
16873
16874 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
16875
16876 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
16877 Enable MMX, SSE and SSE2 by default.
16878 * config/i386/i386.c (ix86_option_override_internal): Do not
16879 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
16880
16881 2019-02-14 Jakub Jelinek <jakub@redhat.com>
16882
16883 PR rtl-optimization/89354
16884 * combine.c (make_extraction): Punt if extraction_mode is narrower
16885 than len bits.
16886
16887 2019-02-14 Maya Rashish <coypu@sdf.org>
16888
16889 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
16890 * config/netbsd-d.c: New file.
16891 * config/t-netbsd: Add netbsd-d.o
16892
16893 2018-02-14 Steve Ellcey <sellcey@marvell.com>
16894
16895 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
16896 affects_type_identity to true for aarch64_vector_pcs.
16897 (aarch64_comp_type_attributes): New function.
16898 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
16899
16900 2019-02-14 Tamar Christina <tamar.christina@arm.com>
16901
16902 PR target/88850
16903 * config/arm/iterators.md (ANY64): Add V4HF.
16904
16905 2019-02-14 Martin Liska <mliska@suse.cz>
16906
16907 PR rtl-optimization/89242
16908 * dce.c (delete_unmarked_insns): Call free_dominance_info we
16909 process a transformation.
16910
16911 2019-02-14 Jakub Jelinek <jakub@redhat.com>
16912
16913 PR tree-optimization/89314
16914 * fold-const.c (fold_binary_loc): Cast strlen argument to
16915 const char * before dereferencing it. Formatting fixes.
16916
16917 PR middle-end/89284
16918 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
16919
16920 2019-02-13 Ian Lance Taylor <iant@golang.org>
16921
16922 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
16923 and set current index for other optimizations.
16924
16925 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
16926
16927 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
16928 nonimmediate_operand as operand 2 predicate.
16929 (vec_set<VF2_512_256:mode>_0): Ditto.
16930 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
16931 (*vec_concatv2si): Remove alternative 2.
16932 (*vec_concatv4si_0): Use vm constraint for alternative 0.
16933 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
16934 (vec_concatv2di): Split alternatives 4,5,6 to ...
16935 (*vec_concatv2di_0) ... new pattern.
16936
16937 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
16938
16939 PR target/89190
16940 * config/arm/arm.c (ldm_stm_operation_p) Set
16941 addr_reg_in_reglist correctly for first register.
16942 (load_multiple_sequence): Remove dead base check.
16943 (gen_ldm_seq): Correctly set write_back for Thumb-1.
16944
16945 2019-02-13 Tamar Christina <tamar.christina@arm.com>
16946
16947 PR target/88847
16948 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
16949 Expose as @aarch64_pred_mov.
16950 * config/aarch64/aarch64.c (aarch64_classify_address):
16951 Use expand_insn which legitimizes operands.
16952
16953 2019-02-13 Martin Liska <mliska@suse.cz>
16954
16955 * builtins.h (expand_builtin_with_bounds): Remove declaration.
16956 * calls.c (struct arg_data): Remove special_slot, pointer_arg
16957 and pointer_offset fields.
16958 (initialize_argument_information): Remove usage of dead
16959 fields.
16960 * cgraph.h (struct cgraph_thunk_info): Remove
16961 add_pointer_bounds_args.
16962 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
16963 fields.
16964 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
16965 fields.
16966 * config/i386/i386.c (ix86_function_arg_advance): Remove
16967 unrelated comment.
16968 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
16969 (def_builtin): Remove usage of dead fields.
16970 (ix86_add_new_builtins): Likewise.
16971 * ipa-fnsummary.c (compute_fn_summary): Likewise.
16972 * ipa-icf.c (sem_function::equals_wpa): Likewise.
16973 (sem_function::init): Likewise.
16974 (sem_variable::merge): Likewise.
16975 * ipa-visibility.c (function_and_variable_visibility): Likewise.
16976 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
16977 * lto-cgraph.c (lto_output_node): Likewise.
16978 (lto_output_varpool_node): Likewise.
16979 (input_node): Likewise.
16980 (input_varpool_node): Likewise.
16981 * lto-streamer-out.c (lto_output): Likewise.
16982 * tree-inline.c (expand_call_inline): Remove usage of
16983 assign_stmts.
16984 * tree-inline.h (struct copy_body_data): Likewise.
16985 * varpool.c (varpool_node::dump): Likewise.
16986
16987 2019-02-13 Jakub Jelinek <jakub@redhat.com>
16988
16989 PR middle-end/89303
16990 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
16991 into pt->vars_contains_escaped_heap instead of setting
16992 pt->vars_contains_escaped_heap to it.
16993
16994 PR middle-end/89281
16995 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
16996 INTVAL (size), compare it to GET_MODE_MASK instead of
16997 1 << GET_MODE_BITSIZE.
16998
16999 PR target/89290
17000 * config/i386/predicates.md (x86_64_immediate_operand): Allow
17001 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
17002 -mcmodel=large.
17003
17004 2019-02-13 Martin Liska <mliska@suse.cz>
17005
17006 PR lto/88858
17007 * cfgrtl.c (remove_barriers_from_footer): New function.
17008 (try_redirect_by_replacing_jump): Use it.
17009 (cfg_layout_redirect_edge_and_branch): Likewise.
17010
17011 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
17012
17013 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
17014 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
17015 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
17016 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
17017 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
17018 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
17019 New BU_CRYPTO_2.
17020 * config/rs6000/rs6000.c (builtin_function_type)
17021 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
17022 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
17023 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
17024 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
17025 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
17026
17027 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
17028
17029 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
17030 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
17031
17032 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
17033
17034 PR target/89229
17035 * config/i386/i386.md (*movoi_internal_avx): Revert revision
17036 268678 and revision 268657.
17037 (*movti_internal): Likewise.
17038
17039 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
17040
17041 PR target/89233
17042 * config/s390/s390.c (s390_decompose_address): Update comment.
17043 (s390_check_qrst_address): Reject invalid address forms after
17044 LRA.
17045
17046 2019-02-12 Martin Liska <mliska@suse.cz>
17047
17048 PR lto/88876
17049 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
17050 we need default values of funct_state for a function that
17051 is not optimized.
17052
17053 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
17054
17055 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
17056 the object to pick the size of stores on strict-alignment platforms.
17057
17058 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
17059 (*movdi_insn_sp32): Likewise.
17060 (*movdi_insn_sp64): Likewise.
17061
17062 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
17063
17064 PR lto/88677
17065 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
17066 types that needs constructiong.
17067 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
17068
17069 2019-02-12 Richard Biener <rguenther@suse.de>
17070
17071 PR tree-optimization/89253
17072 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
17073 duplicate the loop.
17074
17075 2019-02-11 David Malcolm <dmalcolm@redhat.com>
17076
17077 PR lto/88147
17078 * input.c (selftest::test_line_offset_overflow): New selftest.
17079 (selftest::input_c_tests): Call it.
17080
17081 2019-02-11 Martin Sebor <msebor@redhat.com>
17082
17083 PR tree-optimization/88771
17084 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
17085 when -Wstringop-overflow is set.
17086 (builtin_memref::builtin_memref): Adjust excessive upper bound
17087 only when lower bound is not excessive.
17088 (maybe_diag_overlap): Detect and diagnose excessive bounds via
17089 -Wstringop-ovefflow.
17090 (maybe_diag_offset_bounds): Rename...
17091 (maybe_diag_access_bounds): ...to this.
17092 (check_bounds_or_overlap): Adjust for name change above.
17093
17094 2019-02-11 Martin Sebor <msebor@redhat.com>
17095
17096 PR c++/87996
17097 * builtins.c (max_object_size): Move from here...
17098 * builtins.h (max_object_size): ...and here...
17099 * tree.c (max_object_size): ...to here...
17100 * tree.h (max_object_size): ...and here.
17101
17102 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
17103
17104 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
17105 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
17106 for correct semantics.
17107
17108 2019-02-11 Alan Modra <amodra@gmail.com>
17109
17110 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
17111 -mlongcall and -mpltseq.
17112 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
17113 (RS/6000 and PowerPC Options <-mpltseq>): Document.
17114 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
17115 * config/rs6000/sysv4.opt (mpltseq): New option.
17116 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
17117 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
17118 support is lacking. Don't allow -mpltseq with -mbss-plt.
17119 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
17120 -mpltseq given for ELFv1.
17121 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
17122 Only use UNSPEC_PLTSEQ for inline PLT calls.
17123 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
17124 use UNSPEC_PLTSEQ for inline PLT calls.
17125 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
17126 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
17127 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
17128 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
17129 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
17130 (pltseq_mtctr_<mode>): Likewise.
17131
17132 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17133
17134 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
17135 Solaris ld.
17136 * configure: Regenerate.
17137
17138 2019-02-11 Jakub Jelinek <jakub@redhat.com>
17139
17140 PR bootstrap/88714
17141 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
17142 instead of r.
17143
17144 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
17145
17146 * function.c (assign_parm_setup_block): Use the stored
17147 size, not the passed size, when allocating stack-space,
17148 also for a parameter with alignment larger than
17149 MAX_SUPPORTED_STACK_ALIGNMENT.
17150
17151 2019-02-11 Martin Liska <mliska@suse.cz>
17152
17153 PR ipa/89009
17154 * ipa-cp.c (build_toporder_info): Remove usage of a param.
17155 * ipa-inline.c (inline_small_functions): Likewise.
17156 * ipa-pure-const.c (propagate_pure_const): Likewise.
17157 (propagate_nothrow): Likewise.
17158 * ipa-reference.c (propagate): Likewise.
17159 * ipa-utils.c (struct searchc_env): Remove unused field.
17160 (searchc): Always search across AVAIL_INTERPOSABLE.
17161 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
17162 the only called IPA pure const can properly not propagate
17163 across interposable boundary.
17164 * ipa-utils.h (ipa_reduced_postorder): Remove param.
17165
17166 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
17167
17168 * config/nds32/nds32.md (call_internal, call_value_internal,
17169 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
17170
17171 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
17172
17173 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
17174 typo.
17175
17176 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
17177
17178 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
17179 in comments
17180
17181 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
17182
17183 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
17184
17185 2019-02-10 Jakub Jelinek <jakub@redhat.com>
17186
17187 PR tree-optimization/89268
17188 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
17189 if preds is non-NULL.
17190
17191 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17192
17193 PR lto/89272
17194 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
17195 polymorphic types.
17196
17197 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
17198
17199 * config/nds32/nds32.md (trap): New pattern.
17200
17201 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
17202
17203 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
17204 dwarf span.
17205
17206 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
17207
17208 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
17209 to split POST_INC.
17210
17211 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17212
17213 * ipa-visibility.c (localize_node): Also do not localize
17214 LDPR_PREVAILING_DEF_IRONLY_EXP.
17215
17216 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17217
17218 PR lto/87957
17219 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
17220 instead of type_with_linkage.
17221
17222 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17223
17224 PR ipa/88755
17225 * params.def (uninlined-function-insns, uninlined-function-time,
17226 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
17227 bound so we don't get overflows.
17228
17229 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
17230
17231 * config/rs6000/rs6000-string.c (expand_compare_loop,
17232 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
17233 memcmp/strncmp.
17234
17235 2019-02-09 Jakub Jelinek <jakub@redhat.com>
17236
17237 PR middle-end/89246
17238 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17239 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
17240 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
17241
17242 2019-02-09 Alan Modra <amodra@gmail.com>
17243
17244 PR target/88343
17245 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
17246 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
17247 setup.
17248
17249 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
17250
17251 PR middle-end/88560
17252 * lra-constraints.c (process_alt_operands): Don't increase reject
17253 for memory when offset memory is required.
17254
17255 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
17256
17257 * config/s390/vector.md: Implement vector copysign.
17258
17259 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
17260
17261 * expr.c (expand_constructor): Correct indentations.
17262
17263 2019-02-08 Richard Biener <rguenther@suse.de>
17264
17265 PR tree-optimization/89247
17266 * tree-if-conv.c: Include tree-cfgcleanup.h.
17267 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
17268 (tree_if_conversion): Pass through predicate vector.
17269 (pass_if_conversion::execute): Do CFG cleanup and SSA update
17270 inline, see if any if-converted loops we refrece in
17271 LOOP_VECTORIZED calls vanished and fixup.
17272 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
17273
17274 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
17275
17276 * config/s390/constraints.md (jdd): New constraint.
17277
17278 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
17279
17280 PR target/89229
17281 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
17282 upper 16 vector registers without TARGET_AVX512VL.
17283 (*movti_internal): Likewise.
17284
17285 2019-02-08 Jakub Jelinek <jakub@redhat.com>
17286
17287 PR rtl-optimization/89234
17288 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
17289 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
17290 (copy_reg_eh_region_note_backward): Likewise.
17291
17292 2019-02-08 Richard Biener <rguenther@suse.de>
17293
17294 PR middle-end/89223
17295 * tree-data-ref.c (initialize_matrix_A): Fail if constant
17296 doesn't fit in HWI.
17297 (analyze_subscript_affine_affine): Handle failure from
17298 initialize_matrix_A.
17299
17300 2019-02-08 Jakub Jelinek <jakub@redhat.com>
17301
17302 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
17303 cfun everywhere.
17304
17305 2019-02-07 David Malcolm <dmalcolm@redhat.com>
17306
17307 PR tree-optimization/86637
17308 PR tree-optimization/89235
17309 * tree-vect-loop.c (optimize_mask_stores): Add an
17310 auto_purge_vect_location sentinel to ensure that vect_location is
17311 purged on exit.
17312 * tree-vectorizer.c
17313 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
17314 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
17315 to ensure that vect_location is purged on exit.
17316 (pass_slp_vectorize::execute): Likewise, replacing the manual
17317 reset.
17318 * tree-vectorizer.h (class auto_purge_vect_location): New class.
17319
17320 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17321
17322 * config/aarch64/iterators.md (max_opp): New code_attr.
17323 (USMAX): New code iterator.
17324 * config/aarch64/predicates.md (aarch64_smin): New predicate.
17325 (aarch64_smax): Likewise.
17326 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
17327 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
17328 MINUS (MAX MIN).
17329
17330 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
17331
17332 PR target/89229
17333 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
17334 for TARGET_AVX512VL.
17335 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
17336
17337 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
17338
17339 * config/s390/s390-builtin-types.def: Add new types.
17340 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
17341 (s390_vec_xlw4): Make the memory operand into a const pointer.
17342 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
17343 float.
17344 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
17345 a new vector type with the alignment of the scalar memory operand.
17346
17347 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
17348 Jakub Jelinek <jakub@redhat.com>
17349
17350 PR bootstrap/88714
17351 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
17352 arm_count_ldrdstrd_insns): New declarations.
17353 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
17354 MINUS.
17355 (valid_operands_ldrd_strd): New function.
17356 (arm_count_ldrdstrd_insns): New function.
17357 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
17358 sets instead of single DImode set and define new insns to match this.
17359
17360 2019-02-07 Tamar Christina <tamar.christina@arm.com>
17361
17362 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
17363 Make it a C initializer.
17364
17365 2019-02-07 Tamar Christina <tamar.christina@arm.com>
17366
17367 PR/target 88850
17368 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
17369
17370 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17371
17372 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
17373 Use neon_dot<q> for type.
17374 (neon_<sup>dot_lane<vsi2qi>): Likewise.
17375
17376 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17377
17378 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
17379 Use neon_dot<q> for type.
17380 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
17381 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
17382
17383 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
17384
17385 PR rtl-optimization/89225
17386 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
17387 sizes check.
17388
17389 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
17390
17391 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
17392 after restoring registers saved to allocate the frame on Windows.
17393
17394 2019-02-06 Richard Biener <rguenther@suse.de>
17395
17396 PR tree-optimization/89182
17397 * graphite.h (cached_scalar_evolution_in_region): Declare.
17398 * graphite.c (struct seir_cache_key): New.
17399 (struct sese_scev_hash): Likewise.
17400 (seir_cache): New global.
17401 (cached_scalar_evolution_in_region): New function.
17402 (graphite_transform_loops): Allocate and release seir_cache.
17403 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
17404 cached_scalar_evolution_in_region.
17405 * graphite-scop-detection.c (scop_detection::can_represent_loop):
17406 Simplify.
17407 (scop_detection::graphite_can_represent_expr: Use
17408 cached_scalar_evolution_in_region.
17409 (scop_detection::stmt_simple_for_scop_p): Likewise.
17410 (find_params_in_bb): Likewise.
17411 (gather_bbs::before_dom_children): Likewise.
17412 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
17413 (add_loop_constraints): Likewise.
17414
17415 2019-02-06 Jakub Jelinek <jakub@redhat.com>
17416
17417 PR middle-end/89210
17418 * fold-const-call.c (fold_const_vec_convert): Pass true as last
17419 operand to new_unary_operation only if both element types are integral
17420 and it isn't a widening conversion. Return NULL_TREE if
17421 new_unary_operation failed.
17422
17423 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
17424
17425 PR target/88856
17426 * config/s390/s390.md: Remove load and test FP splitter.
17427
17428 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
17429
17430 PR target/89112
17431 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
17432 expand_compare_loop, expand_block_compare_gpr,
17433 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
17434 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
17435 #include "profile-count.h" and "predict.h" for types and functions
17436 needed to work with REG_BR_PROB notes.
17437
17438 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
17439
17440 PR target/89112
17441 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
17442 for the long branch case.
17443
17444 2019-02-05 Jakub Jelinek <jakub@redhat.com>
17445
17446 PR target/89188
17447 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
17448 can throw, non-call exceptions are enabled and we can't delete
17449 dead exceptions or alter cfg. Set must_clean if
17450 delete_insn_and_edges returns true, don't set it blindly for calls.
17451 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
17452
17453 PR rtl-optimization/89195
17454 * combine.c (make_extraction): For MEMs, don't extract bytes outside
17455 of the original MEM.
17456
17457 2019-02-05 Martin Liska <mliska@suse.cz>
17458
17459 PR gcov-profile/89000
17460 * gcov.c (function_summary): Remove argument.
17461 (file_summary): New function.
17462 (print_usage): Replace tabs with spaces.
17463 (generate_results): Use new function file_summary.
17464
17465 2019-02-05 Jakub Jelinek <jakub@redhat.com>
17466
17467 PR target/89186
17468 * optabs.c (prepare_cmp_insn): Pass x and y to
17469 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
17470
17471 2019-02-05 Richard Biener <rguenther@suse.de>
17472
17473 PR middle-end/89150
17474 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
17475 (struct bitmap_element): Drop chain_prev so we properly recurse on
17476 the prev member, supporting tree views.
17477 (struct bitmap_head): GTY skip the obstack member.
17478
17479 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
17480
17481 PR c/88698
17482 * doc/extend.texi (Vector Extensions): Add an example of using vector
17483 types together with x86 intrinsics.
17484
17485 2019-02-04 Alan Modra <amodra@gmail.com>
17486
17487 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
17488 str[] size to 160, and comment.
17489
17490 2019-02-04 Alan Modra <amodra@gmail.com>
17491
17492 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
17493 (rs6000_pltseq_template): Guard output of TLS markers with
17494 TARGET_TLS_MARKERS.
17495 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
17496 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
17497 to use inline PLT sequences.
17498 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
17499 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
17500 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
17501
17502 2019-02-04 Martin Liska <mliska@suse.cz>
17503
17504 PR ipa/88985
17505 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
17506 out when ipa_fn_summaries does not contain entry for callee.
17507
17508 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
17509
17510 * config/sparc/sparc.h: Remove superfluous blank lines.
17511 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
17512 (got_register_rtx): ...this.
17513 (sparc_got): Adjust to above renaming.
17514 (sparc_tls_got): Likewise.
17515 (sparc_delegitimize_address): Likewise.
17516 (sparc_output_mi_thunk): Likewise.
17517 (sparc_init_pic_reg): Likewise.
17518 (save_local_or_in_reg_p): Fix test on the GOT register.
17519 (USE_HIDDEN_LINKONCE): Move around.
17520 (get_pc_thunk_name): Likewise.
17521 (gen_load_pcrel_sym): Likewise.
17522 (load_got_register): Likewise.
17523
17524 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
17525
17526 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
17527 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
17528
17529 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
17530
17531 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
17532 into consideration.
17533
17534 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
17535
17536 * config.gcc (with_nds32_lib, glibc):
17537 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
17538 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
17539 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
17540
17541 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
17542
17543 PR target/89071
17544 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
17545 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
17546 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
17547 (*rcpsf2_sse): Ditto.
17548 (*rsqrtsf2_sse): Ditto.
17549 (sse4_1_round<mode<2): Ditto.
17550
17551 2019-02-03 Richard Biener <rguenther@suse.de>
17552
17553 PR debug/87295
17554 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
17555 orig.
17556
17557 2019-02-02 Jakub Jelinek <jakub@redhat.com>
17558
17559 PR middle-end/87887
17560 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17561 Punt with warning on aggregate return or argument types. Ignore
17562 type/mode checking for uniform arguments.
17563
17564 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
17565
17566 * combine.c (try_combine): Do not print "Can't combine" messages unless
17567 printing failed combination attempts.
17568
17569 2019-02-01 Martin Jambor <mjambor@suse.cz>
17570
17571 PR hsa/87863
17572 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
17573 segment and global segment variables before making them static.
17574
17575 2019-02-01 Martin Jambor <mjambor@suse.cz>
17576
17577 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
17578 missed optimization dump with dump_enabled_p.
17579
17580 2019-02-01 Richard Biener <rguenther@suse.de>
17581
17582 PR middle-end/88597
17583 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
17584 the instantiate cache.
17585 (instantiate_scev_binary): Elide second operand procesing
17586 if equal to the first.
17587 * tree-chrec.c (chrec_contains_symbols): Add visited set.
17588 (chrec_contains_undetermined): Likewise.
17589 (tree_contains_chrecs): Likewise.
17590
17591 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
17592
17593 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
17594
17595 2019-02-01 Jakub Jelinek <jakub@redhat.com>
17596
17597 PR tree-optimization/89143
17598 * wide-int-range.h (wide_int_range_absu): Declare.
17599 * wide-int-range.cc (wide_int_range_absu): New function.
17600 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
17601
17602 PR tree-optimization/88107
17603 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
17604 instead of assertion that eh_region_outermost is non-NULL, if it
17605 is NULL, set *ALL to true and return NULL.
17606 (move_sese_region_to_fn): Adjust caller, if all is set, call
17607 duplicate_eh_regions with NULL region.
17608
17609 2019-02-01 Richard Biener <rguenth@suse.de>
17610
17611 PR rtl-optimization/88593
17612 * mode-switching.c (optimize_mode_switching): Free dominators before
17613 calling cleanup_cfg.
17614
17615 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
17616
17617 PR tree-optimization/88932
17618 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
17619
17620 2019-01-31 Jakub Jelinek <jakub@redhat.com>
17621
17622 PR middle-end/89137
17623 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
17624 bogus clang warning.
17625
17626 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
17627
17628 PR target/89071
17629 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
17630 alternative to avoid partial SSE register stall for TARGET_AVX.
17631 (truncdfsf2): Ditto.
17632 (sse4_1_round<mode>2): Ditto.
17633
17634 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
17635
17636 PR tree-optimization/89008
17637 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
17638 process anything of the form X * 0.
17639
17640 2019-01-31 Richard Biener <rguenther@suse.de>
17641
17642 PR tree-optimization/89135
17643 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
17644 with abnormal preds.
17645
17646 2019-01-31 Jakub Jelinek <jakub@redhat.com>
17647
17648 PR sanitizer/89124
17649 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
17650 always_inline callees into no_sanitize_address callers.
17651
17652 2019-01-31 Richard Biener <rguenther@suse.de>
17653
17654 PR rtl-optimization/89115
17655 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
17656
17657 2019-01-30 Martin Sebor <msebor@redhat.com>
17658
17659 PR other/89106
17660 * doc/extend.texi (cast to a union): Correct and expand.
17661
17662 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
17663
17664 PR rtl-optimization/87246
17665 * lra-constraints.c (simplify_operand_subreg): Reload memory
17666 in subreg if the address became invalid.
17667
17668 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
17669
17670 PR target/87064
17671 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
17672 Disable for little-endian.
17673
17674 2019-01-30 Richard Biener <rguenther@suse.de>
17675
17676 PR rtl-optimization/89115
17677 * opts.c (default_options_optimization): Reduce
17678 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
17679 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
17680 to the default.
17681
17682 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
17683
17684 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
17685 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
17686 type of vector element when vec_extract is implemented by direct
17687 move.
17688
17689 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
17690
17691 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
17692
17693 2019-01-30 Richard Biener <rguenther@suse.de>
17694
17695 PR tree-optimization/89111
17696 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
17697 canonicalization to appropriately sized access types.
17698
17699 2019-01-30 Jakub Jelinek <jakub@redhat.com>
17700
17701 PR c++/89105
17702 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
17703 for arguments to functions that are TU-local and shouldn't be
17704 referenced by assembly.
17705
17706 2019-01-30 Ulrich Drepper <drepper@redhat.com>
17707
17708 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
17709 after '='.
17710
17711 2019-01-29 Martin Sebor <msebor@redhat.com>
17712
17713 PR c/88956
17714 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
17715
17716 2019-01-29 Jakub Jelinek <jakub@redhat.com>
17717
17718 PR c++/66676
17719 PR ipa/89104
17720 * omp-simd-clone.c (simd_clone_clauses_extract)
17721 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
17722 OMP_CLAUSE_ALIGNED_ALIGNMENT.
17723
17724 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
17725
17726 * config.gcc: Force .init_array for ARC.
17727
17728 2019-01-29 Richard Biener <rguenther@suse.de>
17729
17730 PR debug/87295
17731 * dwarf2out.c (collect_skeleton_dies): New helper.
17732 (copy_decls_for_unworthy_types): Call it.
17733 (build_abbrev_table): Assert we do not try to replace
17734 DW_AT_signature refs with local refs.
17735
17736 2019-01-28 Jakub Jelinek <jakub@redhat.com>
17737
17738 PR middle-end/89002
17739 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
17740 for lastprivate/linear IV, push gimplify context around gimplify_assign
17741 and, if it needed any temporaries, pop it into a gimple bind around the
17742 sequence.
17743
17744 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
17745
17746 * common.opt (-Wattribute-alias): Remove "no-" from name.
17747 Make -Wattribute-alias command line option and
17748 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
17749
17750 2019-01-28 Jakub Jelinek <jakub@redhat.com>
17751
17752 PR target/89073
17753 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
17754 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
17755 x86 ISA options.
17756 (bmi2): Add missing @opindex.
17757 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
17758 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
17759 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
17760 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
17761 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
17762 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
17763 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
17764 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
17765 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
17766 xsavec, xsaveopt and xsaves options.
17767
17768 2019-01-28 Richard Biener <rguenther@suse.de>
17769
17770 PR debug/89076
17771 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
17772 support removal.
17773
17774 2019-01-28 Richard Biener <rguenther@suse.de>
17775
17776 PR tree-optimization/88739
17777 * tree-cfg.c (verify_types_in_gimple_reference): Verify
17778 BIT_FIELD_REFs only are applied to mode-precision operands
17779 when they are integral.
17780 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
17781 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
17782 BIT_FIELD_REFs of non-mode-precision integral operands.
17783
17784 2019-01-27 Jakub Jelinek <jakub@redhat.com>
17785
17786 PR target/87214
17787 * config/i386/sse.md
17788 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
17789 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
17790 first constants in pairs are multiples of 2. Formatting fixes.
17791 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
17792 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
17793 first constants in each quadruple are multiples of 4. Formatting fixes.
17794
17795 2019-01-26 Martin Jambor <mjambor@suse.cz>
17796
17797 PR ipa/88933
17798 * tree-inline.c: Include tree-cfgcleanup.h.
17799 (delete_unreachable_blocks_update_callgraph): Move...
17800 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
17801 ...here, make externally visible, make second argument bool, adjust
17802 all callers.
17803 * tree-cfgcleanup.c: Include cgraph.h.
17804 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
17805 Declare.
17806 * ipa-prop.c: Include tree-cfgcleanup.h.
17807 (ipcp_transform_function): Call
17808 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
17809
17810 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
17811
17812 PR rtl-optimization/88846
17813 * ira.c (process_set_for_memref_referenced_p): New.
17814 (memref_referenced_p): Add new param. Use
17815 process_set_for_memref_referenced_p. Add new switch cases.
17816 (memref_used_between_p): Pass new arg to memref_referenced_p.
17817
17818 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
17819
17820 PR target/88469
17821 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
17822 argument ABI_BREAK. Set to true if the calculated alignment has
17823 changed in gcc-9. Check bit-fields for their base type alignment.
17824 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
17825 (aarch64_function_arg_boundary): Likewise.
17826 (aarch64_gimplify_va_arg_expr): Likewise.
17827
17828 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
17829
17830 PR middle-end/89037
17831 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
17832 instead of accessing TREE_INT_CST_ELT directly.
17833
17834 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
17835
17836 * doc/sourcebuild.texi (Environment attributes): Add fenv and
17837 fenv_exceptions description.
17838
17839 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
17840
17841 PR rtl-optimization/87763
17842 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
17843 Allow SUBREG when matching CC_NZmode compare.
17844
17845 2019-01-25 Richard Biener <rguenther@suse.de>
17846
17847 PR tree-optimization/89049
17848 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
17849 Look at the pattern stmt to determine if the stmt is vectorized.
17850
17851 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
17852
17853 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
17854 (pred_mov<mode>): Handle all-register forms using both a new
17855 alternative and a split.
17856
17857 2019-01-25 Richard Biener <rguenther@suse.de>
17858
17859 PR tree-optimization/86865
17860 * graphite-scop-detection.c (scop_detection::can_represent_loop):
17861 Reject non-do-while loops.
17862
17863 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
17864
17865 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
17866 * config/rs6000/constraints.md (Q constraint): Use REG_P.
17867 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
17868 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
17869 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
17870 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
17871 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
17872 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
17873 vlogical_operand, gpc_reg_operand, int_reg_operand,
17874 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
17875 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
17876 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
17877 (save_world_operation, restore_world_operation, lmw_operation,
17878 stmw_operation): Use MEM_P and REG_P.
17879 (tie_operand): Use MEM_P.
17880 (vrsave_operation, crsave_operation): Use REG_P.
17881 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
17882 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
17883 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
17884 (call_operand): Use HARD_REGISTER_P.
17885 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
17886 Use CONST_INT_P.
17887 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
17888 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
17889 quad_aligned_load_p, replace_swapped_aligned_store,
17890 recombine_lvx_pattern, replace_swapped_aligned_load,
17891 recombine_stvx_pattern): Use MEM_P.
17892 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
17893 Use MEM_P and SYMBOL_REF_P.
17894 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
17895 (insn_is_swappable_p): Use REG_P and MEM_P.
17896 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
17897 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
17898 Use CONST_INT_P.
17899 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
17900 Use CONST_DOUBLE_P.
17901 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
17902 CONST_WIDE_INT_P.
17903 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
17904 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
17905 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
17906 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
17907 reg_or_subregno:
17908 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
17909 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
17910 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
17911 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
17912 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
17913 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
17914 rs6000_split_logical_di): Use CONST_INT_P.
17915 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
17916 REG_P and SYMBOL_REF_P.
17917 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
17918 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
17919 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
17920 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
17921 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
17922 (small_data_operand, print_operand_address): Use CONST_INT_P and
17923 SYMBOL_REF_P.
17924 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
17925 (rs6000_init_hard_regno_mode_ok, direct_move_p):
17926 Use HARD_REGISTER_NUM_P.
17927 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
17928 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
17929 SUBREG_P and SYMBOL_REF_P.
17930 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
17931 and HARD_REGISTER_NUM_P.
17932 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
17933 reg_or_subregno.
17934 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
17935 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
17936 MEM_P and REG_P.
17937 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
17938 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
17939 find_addr_reg): Use REG_P.
17940 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
17941 (rs6000_emit_le_vsx_move): Use SUBREG_P.
17942 (offsettable_ok_by_alignment, constant_pool_expr_p,
17943 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
17944 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
17945 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
17946 rs6000_assemble_integer, create_TOC_reference,
17947 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
17948 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
17949 (rs6000_split_vec_extract_var): Use reg_or_subregno.
17950 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
17951 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
17952 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
17953 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
17954 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
17955 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
17956 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
17957 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
17958 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
17959 and cbranch<mode>4): Use CONST_INT_P.
17960 (multiple define_splits): Use REG_P and SUBREG_P.
17961 (define_expands call, call_value): Use MEM_P.
17962 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
17963 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
17964 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
17965 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
17966 and HARD_REGISTER_NUM_P.
17967 (multiple define_splits): Use HARD_REGISTER_NUM_P.
17968
17969 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
17970
17971 PR rtl-optimization/88948
17972 * rtl.h (prepare_copy_insn): New prototype.
17973 * gcse.c (prepare_copy_insn): New function, split out from
17974 process_insert_insn.
17975 (process_insert_insn): Use prepare_copy_insn.
17976 * store-motion.c (replace_store_insn): Use prepare_copy_insn
17977 instead of gen_move_insn.
17978
17979 2019-01-24 Jakub Jelinek <jakub@redhat.com>
17980
17981 PR debug/89006
17982 * config/i386/i386.c (ix86_pic_register_p): Return true for
17983 UNSPEC_SET_GOT too.
17984
17985 PR tree-optimization/88964
17986 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
17987 punt if HONOR_SNANS (chrec).
17988
17989 PR middle-end/89015
17990 * tree-nested.c (convert_nonlocal_reference_stmt,
17991 convert_local_reference_stmt, convert_tramp_reference_stmt,
17992 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
17993 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
17994 or GIMPLE_OMP_TASK.
17995
17996 PR tree-optimization/89027
17997 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
17998 for "omp simd array" variables.
17999
18000 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
18001
18002 PR target/88469
18003 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
18004 force the alignment of m_val.
18005
18006 2019-01-24 Richard Biener <rguenther@suse.de>
18007
18008 PR lto/87187
18009 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
18010 When in "legacy" debug mode make sure to reset self-origins.
18011
18012 2019-01-24 Martin Liska <mliska@suse.cz>
18013
18014 PR gcov-profile/88994
18015 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
18016 result will be always smaller or equal to the original.
18017 * gcov.c (mangle_name): Fix else branch where we should
18018 also copy to PTR and shift the pointer.
18019
18020 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
18021
18022 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
18023 * vr-values.c (find_case_label_ranges): Fix a comment typo.
18024
18025 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
18026
18027 * common/config/i386/i386-common.c
18028 (OPTION_MASK_ISA_ENQCMD_SET,
18029 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
18030 (ix86_handle_option): Handle -menqcmd.
18031 * config.gcc (enqcmdintrin.h): New header file.
18032 * config/i386/cpuid.h (bit_ENQCMD): New bit.
18033 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
18034 -menqcmd.
18035 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
18036 function type.
18037 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
18038 __builtin_ia32_enqcmds): New builtins.
18039 * config/i386/i386-c.c (__ENQCMD__): New macro.
18040 * config/i386/i386-option.c (ix86_target_string): Add
18041 -menqcmd.
18042 (ix86_valid_target_attribute_inner_p): Likewise.
18043 * config/i386/i386-expand.c
18044 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
18045 IX86_BUILTIN_ENQCMDS.
18046 * config/i386/i386.h (TARGET_ENQCMD): New.
18047 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
18048 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
18049 (movdir64b_<mode>): Parameterize to enable share expansion code
18050 with ENQCMD in function ix86_expand_builtin.
18051 * config/i386/i386.opt: Add -menqcmd.
18052 * config/i386/immintrin.h: Include enqcmdintrin.h.
18053 * config/i386/enqcmdintrin.h: New intrinsic file.
18054 * doc/invoke.texi: Add -menqcmd.
18055
18056 2019-01-23 Bin Cheng <bin.cheng@arm.com>
18057 Steve Ellcey <sellcey@marvell.com>
18058
18059 PR target/85711
18060 * recog.c (address_operand): Return false on wrong mode for address.
18061 (constrain_operands): Check for mode with 'p' constraint.
18062
18063 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
18064
18065 PR target/88998
18066 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
18067 Disparage MMX alternative.
18068 (sse2_cvtpd2pi): Ditto.
18069 (sse2_cvttpd2pi): Ditto.
18070
18071 2019-01-23 David Malcolm <dmalcolm@redhat.com>
18072
18073 PR driver/89014
18074 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
18075 use-after-free of the result of
18076 aarch64_get_extension_string_for_isa_flags.
18077
18078 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18079
18080 PR c/44715
18081 * doc/extend.texi: Document break and continue behavior in
18082 statement expressions.
18083
18084 2019-01-23 Richard Biener <rguenther@suse.de>
18085
18086 PR tree-optimization/89008
18087 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
18088 not leave another stray operand.
18089
18090 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18091
18092 * BASE-VER: Bump to 9.0.1.
18093
18094 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
18095
18096 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
18097 thunk that returns by reference, use the type of the return object
18098 of the thunk instead of that of the alias to build the dereference.
18099
18100 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
18101
18102 * config/arc/atomic.md: Add operand to DMB instruction.
18103
18104 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18105
18106 PR tree-optimization/88964
18107 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
18108 build_zero_cst instead of build_int_cst. Return false for loop
18109 invariants which honor signed zeros.
18110
18111 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
18112
18113 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
18114
18115 2019-01-22 Jakub Jelinek <jakub@redhat.com>
18116
18117 PR target/88965
18118 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
18119 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
18120 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
18121
18122 PR middle-end/88968
18123 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
18124 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
18125
18126 PR target/87064
18127 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
18128 Disable for little endian.
18129
18130 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
18131
18132 PR target/88469
18133 * config/arm/arm.c (arm_needs_double_word_align): Check
18134 DECL_BIT_FIELD_TYPE.
18135
18136 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
18137 H.J. Lu <hongjiu.lu@intel.com>
18138
18139 PR target/88909
18140 * config/i386/i386-builtin.def: Add mask2 to all builtin
18141 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
18142 SPECIAL_ARGS.
18143 * config/i386/i386.c (BDESC): Add mask2 to the definition.
18144 (BDESC_FIRST): Likewise.
18145 (define_builtin): Add an argument for mask2. Updated to handle
18146 both ix86_isa_flags and ix86_isa_flags2.
18147 (define_builtin_const): Likewise.
18148 (define_builtin_pure): Likewise.
18149 (define_builtin2): Deleted.
18150 (define_builtin_const2): Likewise.
18151 (builtin_description): Add a member, mask2.
18152 (bdesc_*): Add mask2 to builtin initializations.
18153 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
18154 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
18155 support.
18156 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
18157
18158 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
18159
18160 PR target/88954
18161 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
18162 noplt attribute.
18163
18164 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
18165
18166 PR target/88469
18167 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
18168 alignment is dominated by a bitfield with 64-bit aligned base type.
18169 (arm_function_arg): Emit a warning if the alignment has changed since
18170 earlier GCC releases.
18171 (arm_function_arg_boundary): Likewise.
18172 (arm_setup_incoming_varargs): Likewise.
18173
18174 2019-01-22 Richard Biener <rguenther@suse.de>
18175
18176 PR tree-optimization/88862
18177 * graphite-scop-detection.c
18178 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
18179
18180 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
18181
18182 * doc/extend.tex (AMD GCN Function Attributes): New section.
18183 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
18184 * doc/invoke.texi (AMD GCN Options): New section.
18185 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
18186
18187 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
18188
18189 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
18190 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
18191
18192 2019-01-22 Jakub Jelinek <jakub@redhat.com>
18193
18194 PR tree-optimization/88044
18195 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
18196 is false in the first iteration, but !every_iteration, return false
18197 instead of true with niter->niter zero.
18198
18199 PR rtl-optimization/88904
18200 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
18201 any nonequal registers before processing BB_END (b).
18202
18203 PR target/88905
18204 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
18205 GET_MODE (op0).
18206 (expand_binop_directly, expand_doubleword_clz,
18207 expand_doubleword_popcount, expand_ctz, expand_ffs,
18208 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
18209
18210 PR rtl-optimization/49429
18211 PR target/49454
18212 PR rtl-optimization/86334
18213 PR target/88906
18214 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
18215 addressable from here...
18216 (emit_block_op_via_libcall): ... to here.
18217
18218 2019-01-22 Richard Biener <rguenther@suse.de>
18219
18220 * tree-vect-loop.c (vect_analyze_loop_operations): Use
18221 auto_vec for cost vector to fix memleak.
18222 (vectorize_fold_left_reduction): Properly gather SLP defs.
18223 (vectorizable_comparison): Do not swap operands to properly
18224 gather SLP defs.
18225
18226 2019-01-22 Alan Modra <amodra@gmail.com>
18227
18228 PR target/88614
18229 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
18230 stays a reg. Allow a const_int.
18231 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
18232 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
18233 (IS_NOMARK_TLSGETADDR): Define.
18234 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
18235 (rs6000_output_tlsargs): New function.
18236 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
18237 __tls_get_addr call takes an arg.
18238 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
18239 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
18240 delete split..
18241 (call_value_nonlocal_sysv): ..or here, delete split.
18242 (tls_gdld_nomark): Delete.
18243 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
18244 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
18245 (call_value_nonlocal_sysv): Likewise.
18246 (call_value_nonlocal_sysv_secure): Likewise.
18247 (call_value_nonlocal_aix): Likewise.
18248 (call_value_indirect_aix): Likewise.
18249 (call_value_indirect_elfv2): Likewise.
18250 (call_value_local32, call_value_local64): Disable for no-mark tls.
18251 (call_value_local_aix): Likewise.
18252
18253 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
18254
18255 PR target/88938
18256 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
18257 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
18258
18259 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
18260
18261 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
18262 string contents as hash_map keys.
18263
18264 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
18265
18266 PR c/88928
18267 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
18268 for rvalue context. Handle rvalues correctly. Use min_align_of_type
18269 instead of TYPE_ALIGN.
18270 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
18271 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
18272 pointer from TYPE_STUB_DECL.
18273
18274 2019-01-21 Richard Biener <rguenther@suse.de>
18275
18276 PR tree-optimization/88934
18277 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
18278 at the possibly non-constant operand.
18279 (vect_get_constant_vectors): Adjust.
18280
18281 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
18282
18283 PR target/71659
18284 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
18285 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
18286 instead of _X86INTRIN_H_INCLUDED.
18287 * onfig/i386/clwbintrin.h: Likewise.
18288 * config/i386/pkuintrin.h: Likewise.
18289 * config/i386/prfchwintrin.h: Likewise.
18290 * config/i386/rdseedintrin.h: Likewise.
18291 * config/i386/wbnoinvdintrin.h: Likewise.
18292 * config/i386/xsavecintrin.h: Likewise.
18293 * config/i386/xsavesintrin.h: Likewise.
18294 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
18295 * config/i386/xsaveintrin.h: Likewise.
18296 * config/i386/xsaveoptintrin.h: Likewise.
18297 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
18298 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
18299 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
18300 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
18301 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
18302 * config/i386/immintrin.h: Here.
18303
18304 2019-01-20 Martin Jambor <mjambor@suse.cz>
18305
18306 PR ipa/87615
18307 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
18308 with aa_walk_budget.
18309 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
18310 aa_walk_budget_p parameter.
18311 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
18312 walk. Updated all callers.
18313 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
18314 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
18315 unmodified_parm.
18316 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
18317 parameter info. Extract info from fbi. Pass fbi to recursive calls
18318 and to unmodified_parm.
18319 (phi_result_unknown_predicate): New parameter fbi, removed parameter
18320 info, updated call to will_be_nonconstant_expr_predicate.
18321 (param_change_prob): New parameter fbi, limit AA walking.
18322 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
18323 calls to various above functions.
18324 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
18325 parameter. Use it to limit AA walking.
18326 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
18327 fbi, limit AA walk.
18328 (detect_type_change): New parameter fbi, pass it on to
18329 detect_type_change_from_memory_writes.
18330 (detect_type_change_ssa): Likewise.
18331 (aa_overwalked): Removed.
18332 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
18333 accordingly, adjust to the neew AA limiting scheme.
18334 (parm_ref_data_preserved_p): Likewise.
18335 (ipa_compute_jump_functions_for_edge): Adjust call to
18336 get_dynamic_type.
18337 (ipa_analyze_call_uses): Likewise.
18338 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
18339 (ipa_analyze_node): Initialize aa_walk_budget.
18340 (ipcp_transform_function): Likewise.
18341 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
18342 to get_dynamic_type.
18343
18344 2019-01-19 Jakub Jelinek <jakub@redhat.com>
18345
18346 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
18347 outside of #if CHECKING_P code.
18348
18349 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
18350
18351 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
18352 New function, split out from...
18353 (loop_versioning::analyze_stride): ...here.
18354 (loop_versioning::find_per_loop_multiplication): Use gassign.
18355 (loop_versioning::analyze_term_using_scevs): Return a success code.
18356 (loop_versioning::analyze_arbitrary_term): New function.
18357 (loop_versioning::analyze_address_fragment): Use
18358 analyze_arbitrary_term if all else fails.
18359
18360 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
18361
18362 PR target/88892
18363 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
18364 operands.
18365
18366 2019-01-18 Richard Biener <rguenther@suse.de>
18367
18368 PR tree-optimization/88903
18369 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
18370 scalar stmts a SLP shift amount is composed of when detecting
18371 shifts by scalars.
18372
18373 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
18374
18375 PR target/88799
18376 * config/arm/arm-cpus.in (mp): New feature.
18377 (sec): New feature.
18378 (fgroup ARMv7ve): Add mp and sec features.
18379 (arch armv7-a): Add options to allow mp and sec extensions.
18380 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
18381 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
18382 extenstions to the base architecture.
18383 (cpu cortex-a8): Add sec extension to the base architecture.
18384 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
18385 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
18386 variants down to the base v7-a varaint.
18387 * config/arm/t-multilib (v7_a_arch_variants): New variable.
18388 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
18389 of permitted extensions for -march=armv7-a and for
18390 -mcpu=generic-armv7-a.
18391
18392 2019-01-18 Martin Liska <mliska@suse.cz>
18393
18394 * params.def: Fix comment.
18395 * tree-profile.c (gimple_init_gcov_profiler): Bump function
18396 name.
18397 (gimple_gen_ic_func_profiler): Likewise.
18398
18399 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18400
18401 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
18402 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
18403 and put in error checks for stack protector guard options.
18404 (aarch64_stack_protect_guard): New.
18405 (TARGET_STACK_PROTECT_GUARD): Define.
18406 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
18407 (reg_stack_protect_address<mode>): New.
18408 (stack_protect_set): Adjust for SSP_GLOBAL.
18409 (stack_protect_test): Likewise.
18410 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
18411 (-mstack-protector-guard): Likewise.
18412 (-mstack-protector-guard-offset): Likewise.
18413
18414 2019-01-18 Jakub Jelinek <jakub@redhat.com>
18415
18416 PR tree-optimization/86214
18417 * tree-inline.h (struct copy_body_data): Add
18418 add_clobbers_to_eh_landing_pads member.
18419 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
18420 (copy_edges_for_bb): Call it if EH edge destination is <
18421 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
18422 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
18423 if flag_stack_reuse != SR_NONE and clear it afterwards.
18424
18425 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
18426
18427 PR target/85596
18428 * doc/install.texi (with-multilib-list): Document for aarch64.
18429
18430 2019-01-18 Jakub Jelinek <jakub@redhat.com>
18431
18432 PR target/88734
18433 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
18434 (("..."))) with ("...").
18435
18436 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
18437
18438 * doc/extend.texi (Built-in Functions for Memory Model Aware
18439 Atomic Operations): Document atomic fetch and nand.
18440
18441 2019-01-18 Martin Liska <mliska@suse.cz>
18442 Richard Biener <rguenther@suse.de>
18443
18444 PR middle-end/88587
18445 * cgraph.h (create_version_clone_with_body): Add new argument
18446 with attributes.
18447 * cgraphclones.c (cgraph_node::create_version_clone): Add
18448 DECL_ATTRIBUTES to a newly created decl. And call
18449 valid_attribute_p so that proper cl_target_optimization_node
18450 is set for the newly created declaration.
18451 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
18452 for declaration.
18453 (expand_target_clones): Do not call valid_attribute_p, it must
18454 be already done.
18455 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
18456 vector types.
18457
18458 2019-01-17 Jakub Jelinek <jakub@redhat.com>
18459
18460 PR target/88734
18461 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
18462 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
18463 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
18464
18465 2019-01-17 Martin Sebor <msebor@redhat.com>
18466
18467 PR middle-end/88273
18468 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
18469 Handle anti-ranges the same as no range at all.
18470
18471 2018-01-17 Steve Ellcey <sellcey@cavium.com>
18472
18473 * config/aarch64/aarch64.c (cgraph.h): New include.
18474 (intl.h): New include.
18475 (supported_simd_type): New function.
18476 (currently_supported_simd_type): Ditto.
18477 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
18478 (aarch64_simd_clone_adjust): Ditto.
18479 (aarch64_simd_clone_usable): Ditto.
18480 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
18481 (TARGET_SIMD_CLONE_ADJUST): Ditto.
18482 (TARGET_SIMD_CLONE_USABLE): Ditto.
18483 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
18484 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
18485 call.
18486
18487 2019-01-17 Martin Sebor <msebor@redhat.com>
18488
18489 PR tree-optimization/88800
18490 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
18491 NO_WARNING bit here. Avoid folding out-of-bounds calls.
18492 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
18493 redundant argument. Add new argument and issue diagnostics under
18494 its control. Detect out-of-bounds access even with warnings
18495 disabled.
18496 (check_bounds_or_overlap): Change return type. Add argument.
18497 (wrestrict_dom_walker::check_call): Adjust.
18498 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
18499 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
18500 check_bounds_or_overlap's return value.
18501 (handle_builtin_stxncpy): Same.
18502 (handle_builtin_strcat): Same.
18503
18504 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18505 Kwok Cheung Yeung <kcy@codesourcery.com>
18506 Julian Brown <julian@codesourcery.com>
18507 Tom de Vries <tom@codesourcery.com>
18508
18509 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
18510
18511 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18512
18513 * doc/sourcebuild.texi: Document dg-require-effective-target
18514 llvm_binutils and offload_gcn.
18515
18516 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18517 Kwok Cheung Yeung <kcy@codesourcery.com>
18518 Julian Brown <julian@codesourcery.com>
18519 Tom de Vries <tom@codesourcery.com>
18520
18521 * doc/sourcebuild.texi: Document dg-required-effective-target
18522 exceptions.
18523
18524 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18525 Kwok Cheung Yeung <kcy@codesourcery.com>
18526 Julian Brown <julian@codesourcery.com>
18527 Tom de Vries <tom@codesourcery.com>
18528 Jan Hubicka <hubicka@ucw.cz>
18529 Martin Jambor <mjambor@suse.cz>
18530
18531 * config.gcc: Add amdgcn*-*-amdhsa configuration.
18532 * configure.ac: Check for dlopen.
18533 * configure: Regenerate.
18534
18535 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18536 Kwok Cheung Yeung <kcy@codesourcery.com>
18537 Julian Brown <julian@codesourcery.com>
18538 Tom de Vries <tom@codesourcery.com>
18539 Jan Hubicka <hubicka@ucw.cz>
18540 Martin Jambor <mjambor@suse.cz>
18541
18542 * common/config/gcn/gcn-common.c: New file.
18543 * config/gcn/driver-gcn.c: New file.
18544 * config/gcn/gcn-builtins.def: New file.
18545 * config/gcn/gcn-hsa.h: New file.
18546 * config/gcn/gcn-modes.def: New file.
18547 * config/gcn/gcn-opts.h: New file.
18548 * config/gcn/gcn-passes.def: New file.
18549 * config/gcn/gcn-protos.h: New file.
18550 * config/gcn/gcn-run.c: New file.
18551 * config/gcn/gcn-tree.c: New file.
18552 * config/gcn/gcn.c: New file.
18553 * config/gcn/gcn.h: New file.
18554 * config/gcn/gcn.opt: New file.
18555 * config/gcn/t-gcn-hsa: New file.
18556
18557 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18558 Kwok Cheung Yeung <kcy@codesourcery.com>
18559 Julian Brown <julian@codesourcery.com>
18560 Tom de Vries <tom@codesourcery.com>
18561 Jan Hubicka <hubicka@ucw.cz>
18562 Martin Jambor <mjambor@suse.cz>
18563
18564 * config/gcn/constraints.md: New file.
18565 * config/gcn/gcn-valu.md: New file.
18566 * config/gcn/gcn.md: New file.
18567 * config/gcn/predicates.md: New file.
18568
18569 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
18570
18571 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
18572 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
18573 (stmt_uses_0_or_null_in_undefined_way): Likewise.
18574 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
18575
18576 2019-01-17 Tamar Christina <tamar.christina@arm.com>
18577
18578 PR target/88851
18579 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
18580 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
18581 it and document registers.
18582
18583 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18584
18585 * config/aarch64/aarch64.c (ares_tunings): Define.
18586 * config/aarch64/aarch64-cores.def (ares): Use the above.
18587
18588 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
18589
18590 PR target/88794
18591 Revert:
18592 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
18593
18594 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
18595 (_mm512_fixupimm_round_pd): Update parameters and builtin.
18596 (_mm512_maskz_fixupimm_round_pd): Ditto.
18597 (_mm512_fixupimm_round_ps): Ditto.
18598 (_mm512_maskz_fixupimm_round_ps): Ditto.
18599 (_mm_fixupimm_round_sd): Ditto.
18600 (_mm_maskz_fixupimm_round_sd): Ditto.
18601 (_mm_fixupimm_round_ss): Ditto.
18602 (_mm_maskz_fixupimm_round_ss): Ditto.
18603 (_mm512_fixupimm_pd): Ditto.
18604 (_mm512_maskz_fixupimm_pd): Ditto.
18605 (_mm512_fixupimm_ps): Ditto.
18606 (_mm512_maskz_fixupimm_ps): Ditto.
18607 (_mm_fixupimm_sd): Ditto.
18608 (_mm_maskz_fixupimm_sd): Ditto.
18609 (_mm_fixupimm_ss): Ditto.
18610 (_mm_maskz_fixupimm_ss): Ditto.
18611 (_mm512_mask_fixupimm_round_pd): Update builtin.
18612 (_mm512_mask_fixupimm_round_ps): Ditto.
18613 (_mm_mask_fixupimm_round_sd): Ditto.
18614 (_mm_mask_fixupimm_round_ss): Ditto.
18615 (_mm512_mask_fixupimm_pd): Ditto.
18616 (_mm512_mask_fixupimm_ps): Ditto.
18617 (_mm_mask_fixupimm_sd): Ditto.
18618 (_mm_mask_fixupimm_ss): Ditto.
18619 * config/i386/avx512vlintrin.h:
18620 (_mm256_fixupimm_pd): Update parameters and builtin.
18621 (_mm256_maskz_fixupimm_pd): Ditto.
18622 (_mm256_fixupimm_ps): Ditto.
18623 (_mm256_maskz_fixupimm_ps): Ditto.
18624 (_mm_fixupimm_pd): Ditto.
18625 (_mm_maskz_fixupimm_pd): Ditto.
18626 (_mm_fixupimm_ps): Ditto.
18627 (_mm_maskz_fixupimm_ps): Ditto.
18628 (_mm256_mask_fixupimm_pd): Update builtin.
18629 (_mm256_mask_fixupimm_ps): Ditto.
18630 (_mm_mask_fixupimm_pd): Ditto.
18631 (_mm_mask_fixupimm_ps): Ditto.
18632 * config/i386/i386-builtin-types.def: Add new types and remove
18633 useless ones.
18634 * config/i386/i386-builtin.def: Update builtin definitions.
18635 * config/i386/i386.c: Handle new builtin types and remove useless ones.
18636 * config/i386/sse.md: Update VFIXUPIMM* patterns.
18637 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
18638 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
18639 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
18640 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
18641 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
18642 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
18643 * config/i386/subst.md:
18644 (round_saeonly_sd_mask_operand4): Add new subst_attr.
18645 (round_saeonly_sd_mask_op4): Ditto.
18646 (round_saeonly_expand_operand5): Ditto.
18647 (round_saeonly_expand): Update.
18648
18649 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
18650
18651 PR target/88794
18652 Revert:
18653 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
18654
18655 * config/i386/sse.md: Combine VFIXUPIMM* patterns
18656 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
18657 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
18658 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
18659 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
18660 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
18661 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
18662
18663 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
18664
18665 PR target/88794
18666 Revert:
18667 2018-12-15 Jakub Jelinek <jakub@redhat.com>
18668
18669 PR target/88489
18670 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
18671 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
18672 instead of UNSPEC_FIXUPIMM.
18673
18674 2019-01-17 Richard Biener <rguenther@suse.de>
18675
18676 PR lto/86736
18677 * dwarf2out.c (want_pubnames): Never generate pubnames sections
18678 and friends for the LTO part of debug info.
18679
18680 2019-01-17 Jakub Jelinek <jakub@redhat.com>
18681
18682 PR tree-optimization/86214
18683 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
18684 if x == y.
18685
18686 PR rtl-optimization/88870
18687 * dce.c (deletable_insn_p): Never delete const/pure calls that can
18688 throw if we can't alter the cfg or delete dead exceptions.
18689 (mark_insn): Don't call find_call_stack_args for such calls.
18690
18691 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
18692
18693 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
18694 prototypes for vec_st.
18695 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
18696 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
18697 mainly on signed/unsigned long long and double.
18698
18699 2019-01-16 David Malcolm <dmalcolm@redhat.com>
18700
18701 PR target/88861
18702 * combine.c (delete_noop_moves): Convert to "bool" return,
18703 returning true if any edges are eliminated.
18704 (combine_instructions): Also return true if delete_noop_moves
18705 returns true.
18706
18707 2019-01-16 Tamar Christina <tamar.christina@arm.com>
18708
18709 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
18710 correct max nunits for endian swap.
18711 (aarch64_expand_fcmla_builtin): Correct subreg code.
18712 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
18713 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
18714 lane endianness.
18715
18716 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
18717
18718 * config/alpha/alpha.c (alpha_gimplify_va_arg):
18719 Handle split indirect COMPLEX_TYPE arguments.
18720
18721 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
18722
18723 PR target/86891
18724 * config/aarch64/aarch64-modes.def: Add comment about how the carry
18725 bit is set by add and compare.
18726 (CC_ADC): New CC_MODE.
18727 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
18728 to cache the code and mode of X. Adjust the shape of a CC_Cmode
18729 comparison. Add detection for CC_ADCmode.
18730 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
18731 CC_ADCmode.
18732 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
18733 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
18734 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
18735 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
18736 to eliminate the need for zero-extending the operands.
18737 (add<mode>3_compareC_imm): Delete. Merge into ...
18738 (add<mode>3_compareC): ... this. Restructure the comparison to
18739 eliminate the need for zero-extending the operands.
18740 (add<mode>3_carryin): Use LTU for the overflow detection.
18741 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
18742 Reexpress comparison for overflow.
18743 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
18744 (add<mode>3_carryinC): Likewise.
18745 (add<mode>3_carryinV): Use LTU for carry between partials.
18746 * config/aarch64/predicates.md (aarch64_carry_operation): Update
18747 handling of CC_Cmode and add CC_ADCmode.
18748 (aarch64_borrow_operation): Likewise.
18749
18750 2019-01-16 Tamar Christina <tamar.christina@arm.com>
18751
18752 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
18753 Remove patternmode.
18754 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
18755 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
18756 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
18757 Remove endianness conversion.
18758
18759 2019-01-16 Martin Liska <mliska@suse.cz>
18760
18761 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
18762 for GCC driver.
18763 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
18764 a new argument.
18765 * gcc.c (add_sysrooted_hdrs_prefix): New function.
18766 (path_prefix_reset): Move up in the source file.
18767 (find_fortran_preinclude_file): Make complex search for the
18768 fortran header files.
18769
18770 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
18771
18772 * godump.c (go_output_typedef): When outputting a typedef, refer
18773 to the underlying type by its name and not its structure.
18774
18775 2019-01-15 David Malcolm <dmalcolm@redhat.com>
18776
18777 PR c++/88795
18778 * tree.c (build_function_type): Assert that arg_types is not
18779 error_mark_node.
18780
18781 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
18782
18783 PR inline-asm/52813
18784 * doc/extend.texi: Document that listing the stack pointer in the
18785 clobber list of an asm is a deprecated feature.
18786 * common.opt (Wdeprecated): Moved from c-family/c.opt.
18787 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
18788 warning instead of an error for clobbers of the stack pointer.
18789 Add a note explaining why.
18790
18791 2019-01-15 Richard Biener <rguenther@suse.de>
18792
18793 PR debug/88046
18794 * dwarf2out.c (gen_member_die): Do not generate inheritance
18795 DIEs late.
18796
18797 2019-01-15 Richard Biener <rguenther@suse.de>
18798
18799 PR tree-optimization/88855
18800 * tree-if-conv.c (combine_blocks): Collect
18801 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
18802
18803 2019-01-15 Tom de Vries <tdevries@suse.de>
18804
18805 PR target/80547
18806 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
18807 lhs == NULL_TREE for gang-level reduction.
18808
18809 2019-01-15 Richard Biener <rguenther@suse.de>
18810 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18811
18812 PR ipa/88788
18813 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
18814 return true if SSA_NAME is already marked in visited bitmap.
18815 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
18816
18817 2019-01-15 Jakub Jelinek <jakub@redhat.com>
18818
18819 PR tree-optimization/88775
18820 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
18821 equal == 0 equality pointer comparisons some more if compared in
18822 integral types and either one points to an automatic var and the
18823 other to a global, or we can prove at least one points to the middle
18824 or both point to start or both point to end.
18825
18826 2019-01-14 Andi Kleen <ak@linux.intel.com>
18827
18828 * Makefile.in: Lower autofdo sampling rate by 10x.
18829 * Makefile.tpl: Dito.
18830
18831 2019-01-14 Tom Honermann <tom@honermann.net>
18832
18833 * defaults.h: Define CHAR8_TYPE.
18834
18835 2019-01-14 Martin Sebor <msebor@redhat.com>
18836
18837 PR target/88638
18838 * doc/extend.texi (Darwin Format Checks): Clarify.
18839
18840 2019-01-14 Richard Biener <rguenther@suse.de>
18841
18842 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
18843 whether we are in (simplify ...) or (match ...) context.
18844
18845 2019-01-14 Jakub Jelinek <jakub@redhat.com>
18846
18847 PR rtl-optimization/88796
18848 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
18849 * cfgexpand.c (stack_protect_prologue): Initialize
18850 crtl->stack_protect_guard_decl.
18851 * function.c (stack_protect_epilogue): Use it instead of calling
18852 targetm.stack_protect_guard again.
18853 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
18854 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
18855 crtl->stack_protect_guard_decl.
18856 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
18857 on the returned MEM_EXPR.
18858
18859 2019-01-12 Tom de Vries <tdevries@suse.de>
18860
18861 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
18862 vector length using -fopenacc-dim.
18863
18864 2019-01-12 Tom de Vries <tdevries@suse.de>
18865
18866 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
18867 lengths into account.
18868
18869 2019-01-12 Svante Signell <svante.signell@gmail.com>
18870
18871 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
18872 (TARGET_CAN_SPLIT_STACK): Define.
18873 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
18874
18875 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
18876
18877 * params.def (inline-unit-growth): Set to 40.
18878
18879 2019-01-12 Jakub Jelinek <jakub@redhat.com>
18880
18881 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
18882
18883 2019-01-12 Tom de Vries <tdevries@suse.de>
18884
18885 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
18886 region calling vector-partitionable routine, set default_vector_length
18887 to WARP_SIZE.
18888
18889 2019-01-12 Tom de Vries <tdevries@suse.de>
18890
18891 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
18892 variable default_vector_length.
18893
18894 2019-01-12 Tom de Vries <tdevries@suse.de>
18895
18896 PR middle-end/88703
18897 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
18898 from oacc_default_dims, as oacc_validate_dims would do it, and apply
18899 dimensions limits.
18900
18901 2019-01-12 Tom de Vries <tdevries@suse.de>
18902
18903 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
18904 (nvptx_goacc_validate_dims): Add used parameter.
18905 * doc/tm.texi: Regenerate.
18906 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
18907 argument to call to targetm.goacc.validate_dims.
18908 (default_goacc_validate_dims): Add used
18909 parameter.
18910 * target.def (validate_dims): Add used parameter in DEFHOOK.
18911 * targhooks.h (default_goacc_validate_dims): Add used parameter.
18912
18913 2019-01-11 Jakub Jelinek <jakub@redhat.com>
18914
18915 PR middle-end/85956
18916 PR lto/88733
18917 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
18918 field.
18919 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
18920 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
18921 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
18922 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
18923
18924 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
18925
18926 PR rtl-optimization/87305
18927 * lra-assigns.c
18928 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
18929 for little endian pseudos used as paradoxical subreg.
18930
18931 2019-01-11 Jakub Jelinek <jakub@redhat.com>
18932
18933 PR tree-optimization/88693
18934 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
18935 for STRING_CSTs that don't contain any NUL characters in the first
18936 TREE_STRING_LENGTH bytes.
18937
18938 2019-01-11 Alan Modra <amodra@gmail.com>
18939
18940 PR 88777
18941 PR 88614
18942 * genattrtab.c (min_fn): Don't translate values.
18943 (min_attr_value): Return INT_MAX when the value can't be calculated.
18944 Return minimum among any values that can be calculated.
18945 (max_attr_value): Adjust.
18946
18947 2019-01-11 Jakub Jelinek <jakub@redhat.com>
18948
18949 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
18950
18951 2019-01-11 Steve Ellcey <sellcey@marvell.com>
18952
18953 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
18954 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
18955 (aarch64_return_call_with_max_clobbers): New function.
18956 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
18957 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
18958 argument.
18959 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
18960 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
18961 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
18962 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
18963 * cselib.c (cselib_process_insn): Add argument to
18964 targetm.hard_regno_call_part_clobbered call.
18965 * ira-conflicts.c (ira_build_conflicts): Ditto.
18966 * ira-costs.c (ira_tune_allocno_costs): Ditto.
18967 * lra-constraints.c (inherit_reload_reg): Ditto.
18968 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
18969 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
18970 argument. Call targetm.return_call_with_max_clobbers.
18971 Add argument to targetm.hard_regno_call_part_clobbered call.
18972 (calls_have_same_clobbers_p): New function.
18973 (process_bb_lives): Add call_insn and last_call_insn variables.
18974 Pass call_insn to check_pseudos_live_through_calls.
18975 Modify if stmt to check targetm.return_call_with_max_clobbers.
18976 Update setting of flush variable.
18977 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
18978 to false.
18979 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
18980 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
18981 targetm.hard_regno_call_part_clobbered call.
18982 * reginfo.c (choose_hard_reg_mode): Ditto.
18983 * regrename.c (check_new_reg_p): Ditto.
18984 * reload.c (find_equiv_reg): Ditto.
18985 * reload1.c (emit_reload_insns): Ditto.
18986 * sched-deps.c (deps_analyze_insn): Ditto.
18987 * sel-sched.c (init_regs_for_mode): Ditto.
18988 (mark_unavailable_hard_regs): Ditto.
18989 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
18990 * target.def (hard_regno_call_part_clobbered): Add insn argument.
18991 (return_call_with_max_clobbers): New target function.
18992 * doc/tm.texi: Regenerate.
18993 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
18994 * hooks.c (hook_bool_uint_mode_false): Change to
18995 hook_bool_insn_uint_mode_false.
18996 * hooks.h (hook_bool_uint_mode_false): Ditto.
18997
18998 2019-01-11 Steve Ellcey <sellcey@marvell.com>
18999
19000 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
19001 (aarch64_remove_extra_call_preserved_regs): New function.
19002 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
19003 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
19004 * doc/tm.texi: Regenerate.
19005 * final.c (get_call_reg_set_usage): Call new hook.
19006 * target.def (remove_extra_call_preserved_regs): New hook.
19007 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
19008 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
19009
19010 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19011
19012 PR bootstrap/88714
19013 * passes.c (finish_optimization_passes): Call print_combine_total_stats
19014 inside of pass_combine_1 dump rather than pass_profile_1.
19015
19016 2019-01-11 Tom de Vries <tdevries@suse.de>
19017
19018 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
19019 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
19020 (PTX_NUM_PER_WORKER_BARRIERS): Define.
19021 (nvptx_apply_dim_limits): Prevent vector_length 64 and
19022 num_workers 16.
19023
19024 2019-01-11 Tom de Vries <tdevries@suse.de>
19025
19026 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
19027
19028 2019-01-11 Jan Beulich <jbeulich@suse.com>
19029
19030 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
19031 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
19032 sse2_cvtsi2sd): Add {l}.
19033 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
19034 syntax.
19035
19036 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19037
19038 PR target/88785
19039 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
19040 define_expand.
19041 (*float<floatunssuffix>v2div2sf2): New define_insn.
19042 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
19043 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
19044 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
19045 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
19046 match_operands with "const0_operand" "C".
19047
19048 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19049
19050 * config/aarch64/aarch64-builtins.c
19051 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
19052 (aarch64_init_simd_builtins): ...Here
19053
19054 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
19055
19056 PR rtl-optimization/87305
19057 * lra-assigns.c
19058 (setup_live_pseudos_and_spill_after_risky_transforms): Check
19059 allocation for big endian pseudos used as paradoxical subregs and
19060 spill them if it is wrong.
19061 * lra-constraints.c (lra_constraints): Add a comment.
19062
19063 2019-01-10 Richard Biener <rguenther@suse.de>
19064
19065 PR tree-optimization/88792
19066 * tree-ssa-pre.c (get_representative_for): Do not return a
19067 value-number here.
19068
19069 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19070
19071 PR middle-end/84877
19072 PR bootstrap/88450
19073 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
19074 (assign_parm_setup_block): Do the argument slot realignment here
19075 instead.
19076
19077 2019-01-10 Stefan Agner <stefan@agner.ch>
19078
19079 PR target/88648
19080 * config/arm/arm.c (arm_option_override_internal): Force
19081 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
19082
19083 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19084
19085 PR c/88568
19086 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
19087 DECL_EXTERNAL.
19088
19089 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19090
19091 * config/arm/arm-builtins.c
19092 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
19093 (MAC_LANE_PAIR_QUALIFIERS): New.
19094 (arm_expand_builtin_args): Use it.
19095 (arm_expand_builtin_1): Likewise.
19096 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
19097 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
19098 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
19099 * config/arm/arm_neon.h:
19100 (vcadd_rot90_f16): New.
19101 (vcaddq_rot90_f16): New.
19102 (vcadd_rot270_f16): New.
19103 (vcaddq_rot270_f16): New.
19104 (vcmla_f16): New.
19105 (vcmlaq_f16): New.
19106 (vcmla_lane_f16): New.
19107 (vcmla_laneq_f16): New.
19108 (vcmlaq_lane_f16): New.
19109 (vcmlaq_laneq_f16): New.
19110 (vcmla_rot90_f16): New.
19111 (vcmlaq_rot90_f16): New.
19112 (vcmla_rot90_lane_f16): New.
19113 (vcmla_rot90_laneq_f16): New.
19114 (vcmlaq_rot90_lane_f16): New.
19115 (vcmlaq_rot90_laneq_f16): New.
19116 (vcmla_rot180_f16): New.
19117 (vcmlaq_rot180_f16): New.
19118 (vcmla_rot180_lane_f16): New.
19119 (vcmla_rot180_laneq_f16): New.
19120 (vcmlaq_rot180_lane_f16): New.
19121 (vcmlaq_rot180_laneq_f16): New.
19122 (vcmla_rot270_f16): New.
19123 (vcmlaq_rot270_f16): New.
19124 (vcmla_rot270_lane_f16): New.
19125 (vcmla_rot270_laneq_f16): New.
19126 (vcmlaq_rot270_lane_f16): New.
19127 (vcmlaq_rot270_laneq_f16): New.
19128 (vcadd_rot90_f32): New.
19129 (vcaddq_rot90_f32): New.
19130 (vcadd_rot270_f32): New.
19131 (vcaddq_rot270_f32): New.
19132 (vcmla_f32): New.
19133 (vcmlaq_f32): New.
19134 (vcmla_lane_f32): New.
19135 (vcmla_laneq_f32): New.
19136 (vcmlaq_lane_f32): New.
19137 (vcmlaq_laneq_f32): New.
19138 (vcmla_rot90_f32): New.
19139 (vcmlaq_rot90_f32): New.
19140 (vcmla_rot90_lane_f32): New.
19141 (vcmla_rot90_laneq_f32): New.
19142 (vcmlaq_rot90_lane_f32): New.
19143 (vcmlaq_rot90_laneq_f32): New.
19144 (vcmla_rot180_f32): New.
19145 (vcmlaq_rot180_f32): New.
19146 (vcmla_rot180_lane_f32): New.
19147 (vcmla_rot180_laneq_f32): New.
19148 (vcmlaq_rot180_lane_f32): New.
19149 (vcmlaq_rot180_laneq_f32): New.
19150 (vcmla_rot270_f32): New.
19151 (vcmlaq_rot270_f32): New.
19152 (vcmla_rot270_lane_f32): New.
19153 (vcmla_rot270_laneq_f32): New.
19154 (vcmlaq_rot270_lane_f32): New.
19155 (vcmlaq_rot270_laneq_f32): New.
19156 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
19157 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
19158 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
19159 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
19160 vcmlaq_lane270): New.
19161 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
19162 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
19163 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
19164 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
19165 (arm_option_reconfigure_globals): Use them.
19166 * config/arm/iterators.md (VDF, VQ_HSF): New.
19167 (VCADD, VCMLA): New.
19168 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
19169 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
19170 New.
19171 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
19172 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
19173
19174 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19175
19176 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
19177 Add qualifier_lane_pair_index.
19178 (emit-rtl.h): Include.
19179 (TYPES_QUADOP_LANE_PAIR): New.
19180 (aarch64_simd_expand_args): Use it.
19181 (aarch64_simd_expand_builtin): Likewise.
19182 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
19183 New.
19184 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
19185 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
19186 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
19187 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
19188 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
19189 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
19190 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
19191 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
19192 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
19193 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
19194 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
19195 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
19196 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
19197 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19198 Add __ARM_FEATURE_COMPLEX.
19199 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
19200 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
19201 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
19202 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
19203 fcmlaq_lane270): New.
19204 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
19205 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
19206 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
19207 * config/aarch64/arm_neon.h:
19208 (vcadd_rot90_f16): New.
19209 (vcaddq_rot90_f16): New.
19210 (vcadd_rot270_f16): New.
19211 (vcaddq_rot270_f16): New.
19212 (vcmla_f16): New.
19213 (vcmlaq_f16): New.
19214 (vcmla_lane_f16): New.
19215 (vcmla_laneq_f16): New.
19216 (vcmlaq_lane_f16): New.
19217 (vcmlaq_rot90_lane_f16): New.
19218 (vcmla_rot90_laneq_f16): New.
19219 (vcmla_rot90_lane_f16): New.
19220 (vcmlaq_rot90_f16): New.
19221 (vcmla_rot90_f16): New.
19222 (vcmlaq_laneq_f16): New.
19223 (vcmla_rot180_laneq_f16): New.
19224 (vcmla_rot180_lane_f16): New.
19225 (vcmlaq_rot180_f16): New.
19226 (vcmla_rot180_f16): New.
19227 (vcmlaq_rot90_laneq_f16): New.
19228 (vcmlaq_rot270_laneq_f16): New.
19229 (vcmlaq_rot270_lane_f16): New.
19230 (vcmla_rot270_laneq_f16): New.
19231 (vcmlaq_rot270_f16): New.
19232 (vcmla_rot270_f16): New.
19233 (vcmlaq_rot180_laneq_f16): New.
19234 (vcmlaq_rot180_lane_f16): New.
19235 (vcmla_rot270_lane_f16): New.
19236 (vcadd_rot90_f32): New.
19237 (vcaddq_rot90_f32): New.
19238 (vcaddq_rot90_f64): New.
19239 (vcadd_rot270_f32): New.
19240 (vcaddq_rot270_f32): New.
19241 (vcaddq_rot270_f64): New.
19242 (vcmla_f32): New.
19243 (vcmlaq_f32): New.
19244 (vcmlaq_f64): New.
19245 (vcmla_lane_f32): New.
19246 (vcmla_laneq_f32): New.
19247 (vcmlaq_lane_f32): New.
19248 (vcmlaq_laneq_f32): New.
19249 (vcmla_rot90_f32): New.
19250 (vcmlaq_rot90_f32): New.
19251 (vcmlaq_rot90_f64): New.
19252 (vcmla_rot90_lane_f32): New.
19253 (vcmla_rot90_laneq_f32): New.
19254 (vcmlaq_rot90_lane_f32): New.
19255 (vcmlaq_rot90_laneq_f32): New.
19256 (vcmla_rot180_f32): New.
19257 (vcmlaq_rot180_f32): New.
19258 (vcmlaq_rot180_f64): New.
19259 (vcmla_rot180_lane_f32): New.
19260 (vcmla_rot180_laneq_f32): New.
19261 (vcmlaq_rot180_lane_f32): New.
19262 (vcmlaq_rot180_laneq_f32): New.
19263 (vcmla_rot270_f32): New.
19264 (vcmlaq_rot270_f32): New.
19265 (vcmlaq_rot270_f64): New.
19266 (vcmla_rot270_lane_f32): New.
19267 (vcmla_rot270_laneq_f32): New.
19268 (vcmlaq_rot270_lane_f32): New.
19269 (vcmlaq_rot270_laneq_f32): New.
19270 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
19271 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
19272 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
19273 (FCADD, FCMLA): New.
19274 (rot): New.
19275 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
19276
19277 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
19278
19279 PR other/16615
19280
19281 * config/pa/pa.c: Change "can not" to "cannot".
19282 * gimple-ssa-evrp-analyze.c: Likewise.
19283 * ipa-icf.c: Likewise.
19284 * ipa-polymorphic-call.c: Likewise.
19285 * ipa-pure-const.c: Likewise.
19286 * lra-constraints.c: Likewise.
19287 * lra-remat.c: Likewise.
19288 * reload1.c: Likewise.
19289 * reorg.c: Likewise.
19290 * tree-ssa-uninit.c: Likewise.
19291
19292 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
19293
19294 PR other/16615
19295
19296 * Makefile.in: Mechanically replace "can not" with "cannot".
19297 * alias.c: Likewise.
19298 * builtins.c: Likewise.
19299 * calls.c: Likewise.
19300 * cgraph.c: Likewise.
19301 * cgraph.h: Likewise.
19302 * cgraphclones.c: Likewise.
19303 * cgraphunit.c: Likewise.
19304 * combine-stack-adj.c: Likewise.
19305 * combine.c: Likewise.
19306 * common/config/i386/i386-common.c: Likewise.
19307 * config/aarch64/aarch64.c: Likewise.
19308 * config/alpha/sync.md: Likewise.
19309 * config/arc/arc.c: Likewise.
19310 * config/arc/predicates.md: Likewise.
19311 * config/arm/arm-c.c: Likewise.
19312 * config/arm/arm.c: Likewise.
19313 * config/arm/arm.h: Likewise.
19314 * config/arm/arm.md: Likewise.
19315 * config/arm/cortex-r4f.md: Likewise.
19316 * config/csky/csky.c: Likewise.
19317 * config/csky/csky.h: Likewise.
19318 * config/darwin-f.c: Likewise.
19319 * config/epiphany/epiphany.md: Likewise.
19320 * config/i386/i386.c: Likewise.
19321 * config/i386/sol2.h: Likewise.
19322 * config/m68k/m68k.c: Likewise.
19323 * config/mcore/mcore.h: Likewise.
19324 * config/microblaze/microblaze.md: Likewise.
19325 * config/mips/20kc.md: Likewise.
19326 * config/mips/sb1.md: Likewise.
19327 * config/nds32/nds32.c: Likewise.
19328 * config/nds32/predicates.md: Likewise.
19329 * config/pa/pa.c: Likewise.
19330 * config/rs6000/e300c2c3.md: Likewise.
19331 * config/rs6000/rs6000.c: Likewise.
19332 * config/s390/s390.h: Likewise.
19333 * config/sh/sh.c: Likewise.
19334 * config/sh/sh.md: Likewise.
19335 * config/spu/vmx2spu.h: Likewise.
19336 * cprop.c: Likewise.
19337 * dbxout.c: Likewise.
19338 * df-scan.c: Likewise.
19339 * doc/cfg.texi: Likewise.
19340 * doc/extend.texi: Likewise.
19341 * doc/fragments.texi: Likewise.
19342 * doc/gty.texi: Likewise.
19343 * doc/invoke.texi: Likewise.
19344 * doc/lto.texi: Likewise.
19345 * doc/md.texi: Likewise.
19346 * doc/objc.texi: Likewise.
19347 * doc/rtl.texi: Likewise.
19348 * doc/tm.texi: Likewise.
19349 * dse.c: Likewise.
19350 * emit-rtl.c: Likewise.
19351 * emit-rtl.h: Likewise.
19352 * except.c: Likewise.
19353 * expmed.c: Likewise.
19354 * expr.c: Likewise.
19355 * fold-const.c: Likewise.
19356 * genautomata.c: Likewise.
19357 * gimple-fold.c: Likewise.
19358 * hard-reg-set.h: Likewise.
19359 * ifcvt.c: Likewise.
19360 * ipa-comdats.c: Likewise.
19361 * ipa-cp.c: Likewise.
19362 * ipa-devirt.c: Likewise.
19363 * ipa-fnsummary.c: Likewise.
19364 * ipa-icf.c: Likewise.
19365 * ipa-inline-transform.c: Likewise.
19366 * ipa-inline.c: Likewise.
19367 * ipa-polymorphic-call.c: Likewise.
19368 * ipa-profile.c: Likewise.
19369 * ipa-prop.c: Likewise.
19370 * ipa-pure-const.c: Likewise.
19371 * ipa-reference.c: Likewise.
19372 * ipa-split.c: Likewise.
19373 * ipa-visibility.c: Likewise.
19374 * ipa.c: Likewise.
19375 * ira-build.c: Likewise.
19376 * ira-color.c: Likewise.
19377 * ira-conflicts.c: Likewise.
19378 * ira-costs.c: Likewise.
19379 * ira-int.h: Likewise.
19380 * ira-lives.c: Likewise.
19381 * ira.c: Likewise.
19382 * ira.h: Likewise.
19383 * loop-invariant.c: Likewise.
19384 * loop-unroll.c: Likewise.
19385 * lower-subreg.c: Likewise.
19386 * lra-assigns.c: Likewise.
19387 * lra-constraints.c: Likewise.
19388 * lra-eliminations.c: Likewise.
19389 * lra-lives.c: Likewise.
19390 * lra-remat.c: Likewise.
19391 * lra-spills.c: Likewise.
19392 * lra.c: Likewise.
19393 * lto-cgraph.c: Likewise.
19394 * lto-streamer-out.c: Likewise.
19395 * postreload-gcse.c: Likewise.
19396 * predict.c: Likewise.
19397 * profile-count.h: Likewise.
19398 * profile.c: Likewise.
19399 * recog.c: Likewise.
19400 * ree.c: Likewise.
19401 * reload.c: Likewise.
19402 * reload1.c: Likewise.
19403 * reorg.c: Likewise.
19404 * resource.c: Likewise.
19405 * rtl.def: Likewise.
19406 * rtl.h: Likewise.
19407 * rtlanal.c: Likewise.
19408 * sched-deps.c: Likewise.
19409 * sched-ebb.c: Likewise.
19410 * sched-rgn.c: Likewise.
19411 * sel-sched-ir.c: Likewise.
19412 * sel-sched.c: Likewise.
19413 * shrink-wrap.c: Likewise.
19414 * simplify-rtx.c: Likewise.
19415 * symtab.c: Likewise.
19416 * target.def: Likewise.
19417 * toplev.c: Likewise.
19418 * tree-call-cdce.c: Likewise.
19419 * tree-cfg.c: Likewise.
19420 * tree-complex.c: Likewise.
19421 * tree-core.h: Likewise.
19422 * tree-eh.c: Likewise.
19423 * tree-inline.c: Likewise.
19424 * tree-loop-distribution.c: Likewise.
19425 * tree-nrv.c: Likewise.
19426 * tree-profile.c: Likewise.
19427 * tree-sra.c: Likewise.
19428 * tree-ssa-alias.c: Likewise.
19429 * tree-ssa-dce.c: Likewise.
19430 * tree-ssa-dom.c: Likewise.
19431 * tree-ssa-forwprop.c: Likewise.
19432 * tree-ssa-loop-im.c: Likewise.
19433 * tree-ssa-loop-ivcanon.c: Likewise.
19434 * tree-ssa-loop-ivopts.c: Likewise.
19435 * tree-ssa-loop-niter.c: Likewise.
19436 * tree-ssa-phionlycprop.c: Likewise.
19437 * tree-ssa-phiopt.c: Likewise.
19438 * tree-ssa-propagate.c: Likewise.
19439 * tree-ssa-threadedge.c: Likewise.
19440 * tree-ssa-threadupdate.c: Likewise.
19441 * tree-ssa-uninit.c: Likewise.
19442 * tree-ssanames.c: Likewise.
19443 * tree-streamer-out.c: Likewise.
19444 * tree.c: Likewise.
19445 * tree.h: Likewise.
19446 * vr-values.c: Likewise.
19447
19448 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
19449
19450 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
19451 (ix86_split_xorsign): Ditto.
19452 * config/i386/i386.c (ix86_expand_xorsign): New function.
19453 (ix86_split_xorsign): Ditto.
19454 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
19455 (xorsign<mode>3): New expander.
19456 (xorsign<mode>3_1): New insn_and_split pattern.
19457 * config/i386/sse.md (xorsign<mode>3): New expander.
19458
19459 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
19460
19461 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
19462 (*tablejump_sp64): Likewise.
19463 (*tablejump<P:mode>): ...this.
19464 (*call_address_sp32): Merge into...
19465 (*call_address_sp64): Likewise.
19466 (*call_address<P:mode>): ...this.
19467 (*call_symbolic_sp32): Merge into...
19468 (*call_symbolic_sp64): Likewise.
19469 (*call_symbolic<P:mode>): ...this.
19470 (call_value): Remove constraint and add predicate.
19471 (*call_value_address_sp32): Merge into...
19472 (*call_value_address_sp64): Likewise.
19473 (*call_value_address<P:mode>): ...this.
19474 (*call_value_symbolic_sp32): Merge into...
19475 (*call_value_symbolic_sp64): Likewise.
19476 (*call_value_symbolic<P:mode>): ...this.
19477 (*sibcall_symbolic_sp32): Merge into...
19478 (*sibcall_symbolic_sp64): Likewise.
19479 (*sibcall_symbolic<P:mode>): ...this.
19480 (sibcall_value): Remove constraint and add predicate.
19481 (*sibcall_value_symbolic_sp32): Merge into...
19482 (*sibcall_value_symbolic_sp64): Likewise.
19483 (*sibcall_value_symbolic<P:mode>): ...this.
19484 (window_save): Minor tweak.
19485 (*branch_sp32): Merge into...
19486 (*branch_sp64): Likewise.
19487 (*branch<P:mode>): ...this.
19488
19489 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
19490 James Clarke <jrtc27@jrtc27.com>
19491
19492 PR target/84010
19493 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
19494 consistently in TLS address generation and adjust code to the renaming
19495 of patterns. Mark calls to __tls_get_addr as const.
19496 * config/sparc/sparc.md (tgd_hi22): Turn into...
19497 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
19498 (tgd_lo10): Turn into...
19499 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
19500 (tgd_add32): Merge into...
19501 (tgd_add64): Likewise.
19502 (tgd_add<P:mode>): ...this and use Pmode throughout.
19503 (tldm_hi22): Turn into...
19504 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
19505 (tldm_lo10): Turn into...
19506 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
19507 (tldm_add32): Merge into...
19508 (tldm_add64): Likewise.
19509 (tldm_add<P:mode>): ...this and use Pmode throughout.
19510 (tldm_call32): Merge into...
19511 (tldm_call64): Likewise.
19512 (tldm_call<P:mode>): ...this and use Pmode throughout.
19513 (tldo_hix22): Turn into...
19514 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
19515 (tldo_lox10): Turn into...
19516 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
19517 (tldo_add32): Merge into...
19518 (tldo_add64): Likewise.
19519 (tldo_add<P:mode>): ...this and use Pmode throughout.
19520 (tie_hi22): Turn into...
19521 (tie_hi22<P:mode>): ...this and use Pmode throughout.
19522 (tie_lo10): Turn into...
19523 (tie_lo10<P:mode>): ...this and use Pmode throughout.
19524 (tie_ld64): Use DImode throughout.
19525 (tie_add32): Merge into...
19526 (tie_add64): Likewise.
19527 (tie_add<P:mode>): ...this and use Pmode throughout.
19528 (tle_hix22_sp32): Merge into...
19529 (tle_hix22_sp64): Likewise.
19530 (tle_hix22<P:mode>): ...this and use Pmode throughout.
19531 (tle_lox22_sp32): Merge into...
19532 (tle_lox22_sp64): Likewise.
19533 (tle_lox22<P:mode>): ...this and use Pmode throughout.
19534 (*tldo_ldub_sp32): Merge into...
19535 (*tldo_ldub_sp64): Likewise.
19536 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
19537 (*tldo_ldub1_sp32): Merge into...
19538 (*tldo_ldub1_sp64): Likewise.
19539 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
19540 (*tldo_ldub2_sp32): Merge into...
19541 (*tldo_ldub2_sp64): Likewise.
19542 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
19543 (*tldo_ldsb1_sp32): Merge into...
19544 (*tldo_ldsb1_sp64): Likewise.
19545 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
19546 (*tldo_ldsb2_sp32): Merge into...
19547 (*tldo_ldsb2_sp64): Likewise.
19548 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
19549 (*tldo_ldub3_sp64): Use DImode throughout.
19550 (*tldo_ldsb3_sp64): Likewise.
19551 (*tldo_lduh_sp32): Merge into...
19552 (*tldo_lduh_sp64): Likewise.
19553 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
19554 (*tldo_lduh1_sp32): Merge into...
19555 (*tldo_lduh1_sp64): Likewise.
19556 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
19557 (*tldo_ldsh1_sp32): Merge into...
19558 (*tldo_ldsh1_sp64): Likewise.
19559 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
19560 (*tldo_lduh2_sp64): Use DImode throughout.
19561 (*tldo_ldsh2_sp64): Likewise.
19562 (*tldo_lduw_sp32): Merge into...
19563 (*tldo_lduw_sp64): Likewise.
19564 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
19565 (*tldo_lduw1_sp64): Use DImode throughout.
19566 (*tldo_ldsw1_sp64): Likewise.
19567 (*tldo_ldx_sp64): Likewise.
19568 (*tldo_stb_sp32): Merge into...
19569 (*tldo_stb_sp64): Likewise.
19570 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
19571 (*tldo_sth_sp32): Merge into...
19572 (*tldo_sth_sp64): Likewise.
19573 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
19574 (*tldo_stw_sp32): Merge into...
19575 (*tldo_stw_sp64): Likewise.
19576 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
19577 (*tldo_stx_sp64): Use DImode throughout.
19578
19579 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19580
19581 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
19582 check configure option to set BTI and Return Address Signing.
19583 * configure.ac: Add --enable-standard-branch-protection and
19584 --disable-standard-branch-protection.
19585 * configure: Regenerated.
19586 * doc/install.texi: Document the same.
19587
19588 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19589 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19590
19591 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
19592 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
19593 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
19594 if bti is enabled.
19595 * config/aarch64/aarch64-bti-insert.c: New file.
19596 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
19597 pass.
19598 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
19599 new bti pass.
19600 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
19601 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
19602 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
19603 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
19604
19605 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19606
19607 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
19608 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
19609 Disable bti for -mbranch-protection=none.
19610 (aarch64_handle_standard_branch_protection): Enable bti for
19611 -mbranch-protection=standard.
19612 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
19613 -mbranch-protection.
19614 (aarch64_bti_enabled): Check if bti is enabled.
19615 * config/aarch64/aarch64.opt: Declare target variable.
19616 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
19617
19618 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19619
19620 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
19621 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
19622 (aarch64_expand_epilogue): Likewise.
19623 (aarch64_output_mi_thunk): Likewise.
19624 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
19625 TAILCALL_ADDR_REGS to x16 and x17.
19626 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
19627
19628 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19629
19630 * config/aarch64/aarch64-option-extensions.def: Define
19631 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
19632 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
19633 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
19634 (AARCH64_FL_PREDRES): New.
19635 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
19636 AARCH64_FL_PREDRES by default.
19637 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
19638
19639 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19640
19641 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
19642 ARMv8.5-A.
19643 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
19644 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
19645 * doc/invoke.texi: Document ARMv8.5-A.
19646
19647 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19648
19649 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
19650 (xorsign<mode>3): Likewise.
19651
19652 2019-01-09 Jelinek <jakub@redhat.com>
19653
19654 PR middle-end/88758
19655 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
19656 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
19657
19658 PR rtl-optimization/88331
19659 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
19660 not currently_expanding_to_rtl.
19661
19662 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
19663
19664 * doc/invoke.texi (-Os): Remove trailing spaces.
19665 (-finline-functions): Remove reference to -O2.
19666
19667 2019-01-08 Jakub Jelinek <jakub@redhat.com>
19668
19669 PR rtl-optimization/79593
19670 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
19671
19672 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
19673 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
19674
19675 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
19676
19677 PR bootstrap/88721
19678 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
19679 to -1 on entry.
19680
19681 PR debug/88723
19682 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
19683 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
19684
19685 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
19686
19687 PR target/88717
19688 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
19689 ix86_avx_u128_mode_entry.
19690
19691 2019-01-08 Martin Liska <mliska@suse.cz>
19692
19693 PR tree-optimization/88753
19694 * tree-switch-conversion.c (switch_conversion::build_one_array):
19695 Come up with local variable constructor. Convert first to
19696 type of constructor values.
19697
19698 2019-01-08 Richard Biener <rguenther@suse.de>
19699
19700 PR tree-optimization/86554
19701 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
19702 rpo_avail): Move earlier.
19703 (visit_nary_op): When value-numbering to expressions
19704 with different overflow behavior make sure there's an
19705 available expression on the path.
19706
19707 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
19708
19709 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
19710 aarch64_parse_branch_protection,
19711 struct aarch64_branch_protect_type,
19712 aarch64_handle_no_branch_protection,
19713 aarch64_handle_standard_branch_protection,
19714 aarch64_validate_mbranch_protection,
19715 aarch64_handle_pac_ret_protection,
19716 aarch64_handle_attr_branch_protection,
19717 accepted_branch_protection_string,
19718 aarch64_pac_ret_subtypes,
19719 aarch64_branch_protect_types,
19720 aarch64_handle_pac_ret_leaf): Define.
19721 (aarch64_override_options_after_change_1, aarch64_override_options):
19722 Add check for accepted_branch_protection_string.
19723 (aarch64_option_save): Save accepted_branch_protection_string.
19724 (aarch64_option_restore): Save accepted_branch_protection_string.
19725 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
19726 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
19727 msign-return-address.
19728 * doc/invoke.texi: Add mbranch-protection.
19729
19730 2019-01-08 Alan Modra <amodra@gmail.com>
19731
19732 PR target/88614
19733 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
19734 Delete "unknownp" parameter. Adjust callers. Handle
19735 CONST_INT, PLUS, MINUS, and MULT.
19736 (attr_value_aligned): Renamed from or_attr_value.
19737 (min_attr_value): Return INT_MIN for unhandled rtl case..
19738 (min_fn): ..and translate to INT_MAX here.
19739 (write_length_unit_log): Modify to cope without "unknown".
19740 (write_attr_value): Handle IF_THEN_ELSE.
19741
19742 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
19743
19744 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
19745 optimization for masked stores.
19746
19747 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
19748
19749 PR middle-end/88567
19750 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
19751 output vector directly to duplicate_and_interleave instead of
19752 going through a temporary. Postpone insertion of ctor_seq to
19753 the end of the loop.
19754
19755 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
19756
19757 PR target/86891
19758 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
19759 unsigned_p. Handle signed and unsigned overflow correction as
19760 required.
19761 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
19762 prototype.
19763 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
19764 for operand 2.
19765 (add<mode>3_compareV_imm): Make this callable for expanding.
19766 (subv<GPI:mode>4): Use register_operand for operand 1. Use
19767 aarch64_plus_operand for operand 2.
19768 (subv<GPI:mode>_insn): New insn pattern.
19769 (subv<GPI:mode>_imm): Likewise.
19770 (negv<GPI:mode>3): New expand pattern.
19771 (negv<GPI:mode>_insn): New insn pattern.
19772 (negv<GPI:mode>_cmp_only): Likewise.
19773 (cmpv<GPI:mode>_insn): Likewise.
19774 (subvti4): Use register_operand for operand 1. Update call to
19775 aarch64_expand_subvti.
19776 (usubvti4): Likewise.
19777 (negvti3): New expand pattern.
19778 (negdi_carryout): New insn pattern.
19779 (negvdi_carryinV): New insn pattern.
19780 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
19781 version the named version.
19782 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
19783 operands.
19784 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
19785 patterns.
19786 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
19787 patterns.
19788 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
19789 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
19790 (sub<mode>3_carryinCV): Delete.
19791 (sub<GPI:mode>3_carryinV): New expand pattern.
19792 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
19793
19794 2019-01-07 Richard Biener <rguenther@suse.de>
19795
19796 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
19797 of tree_operand_hash.
19798
19799 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
19800
19801 PR tree-optimization/88598
19802 * tree.h (single_nonzero_element): Declare.
19803 * tree.c (single_nonzero_element): New function.
19804 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
19805 if I is the only nonzero element of CST.
19806
19807 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
19808
19809 PR tree-optimization/88598
19810 * tree.h (initializer_each_zero_or_onep): Declare.
19811 * tree.c (initializer_each_zero_or_onep): New function.
19812 (signed_or_unsigned_type_for): Handle float types too.
19813 (unsigned_type_for, signed_type_for): Update comments accordingly.
19814 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
19815 x & { 0 or -1, 0 or -1, ... }.
19816
19817 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
19818
19819 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
19820 with x86_64-pc-linux-gnu.
19821
19822 2019-01-07 Tom de Vries <tdevries@suse.de>
19823
19824 PR target/85486
19825 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
19826 function.
19827 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
19828 routines.
19829
19830 2019-01-07 Jakub Jelinek <jakub@redhat.com>
19831
19832 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
19833 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
19834 TARGET_AVX512F as condition.
19835
19836 PR debug/88723
19837 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
19838 const_not_ok_for_debug_p target hook.
19839 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
19840 on UNSPEC and subexpressions thereof if all subexpressions of the
19841 UNSPEC are CONSTANT_P.
19842
19843 PR tree-optimization/88676
19844 * tree-ssa-phiopt.c (two_value_replacement): New function.
19845 (tree_ssa_phiopt_worker): Call it.
19846
19847 PR sanitizer/88619
19848 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
19849 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
19850
19851 PR c++/85052
19852 * tree-vect-generic.c: Include insn-config.h and recog.h.
19853 (expand_vector_piecewise): Add defaulted ret_type argument,
19854 if non-NULL, use that in preference to type for the result type.
19855 (expand_vector_parallel): Formatting fix.
19856 (do_vec_conversion, do_vec_narrowing_conversion,
19857 expand_vector_conversion): New functions.
19858 (expand_vector_operations_1): Call expand_vector_conversion
19859 for VEC_CONVERT ifn calls.
19860 * internal-fn.def (VEC_CONVERT): New internal function.
19861 * internal-fn.c (expand_VEC_CONVERT): New function.
19862 * fold-const-call.c (fold_const_vec_convert): New function.
19863 (fold_const_call): Use it for CFN_VEC_CONVERT.
19864 * doc/extend.texi (__builtin_convertvector): Document.
19865
19866 2019-01-07 Tom de Vries <tdevries@suse.de>
19867
19868 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
19869 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
19870 vector_red_partition, vector_red_sym): New global variables.
19871 (nvptx_option_override): Initialize vector_red_sym.
19872 (nvptx_declare_function_name): Restore red_partition register.
19873 (nvptx_file_end): Emit code to declare the vector reduction variables.
19874 (nvptx_output_red_partition): New function.
19875 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
19876 large vector reductions.
19877 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
19878 (nvptx_init_builtins): Add VECTOR_ADDR.
19879 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
19880 Handle nvptx_expand_shared_addr.
19881 (nvptx_get_shared_red_addr): Add vector argument and handle large
19882 vectors.
19883 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
19884 large vectors.
19885 (nvptx_goacc_reduction_init): Likewise.
19886 (nvptx_goacc_reduction_fini): Likewise.
19887 (nvptx_goacc_reduction_teardown): Likewise.
19888 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
19889 init,fini,teardown}.
19890 (nvptx_init_axis_predicate): Initialize vector_red_partition.
19891 (nvptx_set_current_function): Init vector_red_partition.
19892 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
19893 (nvptx_red_partition): New insn.
19894 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
19895
19896 2019-01-07 Tom de Vries <tdevries@suse.de>
19897
19898 PR target/85381
19899 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
19900 empty loops.
19901
19902 2019-01-07 Tom de Vries <tdevries@suse.de>
19903
19904 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
19905 (nvptx_option_override): Init oacc_bcast_partition.
19906 (nvptx_init_oacc_workers): New function.
19907 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
19908 (nvptx_needs_shared_bcast): New function.
19909 (nvptx_find_par): Generalize to enable vectors to use shared-memory
19910 to propagate state.
19911 (nvptx_shared_propagate): Initialize vector bcast partition and
19912 synchronization state.
19913 (nvptx_single): Generalize to enable vectors to use shared-memory
19914 to propagate state.
19915 (nvptx_process_pars): Likewise.
19916 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
19917 * config/nvptx/nvptx.h (struct machine_function): Add
19918 bcast_partition and sync_bar members.
19919
19920 2019-01-07 Tom de Vries <tdevries@suse.de>
19921
19922 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
19923 (nvptx_apply_dim_limits): New function.
19924 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
19925 PTX_WARP_SIZE.
19926
19927 2019-01-07 Tom de Vries <tdevries@suse.de>
19928
19929 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
19930 as late as possible.
19931
19932 2019-01-07 Tom de Vries <tdevries@suse.de>
19933
19934 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
19935 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
19936 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
19937 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
19938 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
19939
19940 2019-01-07 Tom de Vries <tdevries@suse.de>
19941
19942 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
19943
19944 2019-01-07 Tom de Vries <tdevries@suse.de>
19945
19946 * omp-offload.c (oacc_get_min_dim): New function.
19947 * omp-offload.h (oacc_get_min_dim): Declare.
19948
19949 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
19950
19951 PR target/88521
19952 * config/i386/i386.c (function_value_ms_64): Return small sturct in
19953 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
19954
19955 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
19956
19957 PR tree-opt/86020
19958 Revert:
19959 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
19960
19961 * ipa-inline.c (edge_badness): Use inlined_time instead of
19962 inline_summaries->get.
19963
19964 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
19965
19966 * opts.c (enable_fdo_optimizations): Enable
19967 version-loops-for-strides, loop-interchange, unrol-and-jam
19968 and tree-loop-distribution.
19969 * invoke.texi: Document newly enabled options.
19970
19971 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
19972
19973 * doc/invoke.texi (max-inline-insns-small): New parameters.
19974 * ipa-inline.c (want_early_inline_function_p): simplify.
19975 (want_inline_small_function_p): Fix pasto from previous patch;
19976 use max-inline-insns-small bound.
19977 * params.def (max-inline-insns-small): New param.
19978 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
19979 variables correctly.
19980
19981 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
19982
19983 * doc/invoke.texi: Document max-inline-insns-size,
19984 uninlined-function-insns, uninlined-function-time,
19985 uninlined-thunk-insns and uninlined-thunk-time.
19986 * params.def: Add max-inline-insns-size,
19987 uninlined-function-insns, uninlined-function-time,
19988 uninlined-thunk-insns and uninlined-thunk-time.
19989 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
19990 new parameters.
19991 * ipa-inline.c (can_inline_edge_by_limits_p,
19992 want_inline_small_function_p): Use new parameters.
19993
19994 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
19995
19996 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
19997
19998 2019-01-05 Jakub Jelinek <jakub@redhat.com>
19999
20000 PR middle-end/82564
20001 PR target/88620
20002 * expr.c (expand_assignment): For calls returning VLA structures
20003 if to_rtx is not a MEM, force it into a stack temporary.
20004
20005 PR debug/88635
20006 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
20007 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
20008 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
20009 subexpressions of both operands.
20010 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
20011 subrtxes are CONSTANT_P.
20012 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
20013 2018-11-09 changes.
20014
20015 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
20016
20017 * params.def (hot-bb-count-ws-permille): Set to 990.
20018
20019 2019-01-04 Martin Sebor <msebor@redhat.com>
20020
20021 PR c/88546
20022 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
20023 leaf.
20024
20025 2019-01-04 Martin Sebor <msebor@redhat.com>
20026
20027 PR c/88363
20028 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
20029
20030 2019-01-04 Jakub Jelinek <jakub@redhat.com>
20031
20032 * gdbinit.in: Turn off pagination for the skip commands, restore
20033 it to previous state afterwards.
20034
20035 2019-01-04 Jakub Jelinek <jakub@redhat.com>
20036
20037 PR target/88594
20038 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
20039 of GET_MODE (opN) as modes of the libcall arguments.
20040
20041 2019-01-04 Jan Beulich <jbeulich@suse.com>
20042
20043 * config/i386/sse.md
20044 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
20045 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
20046 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
20047 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
20048 avx512f_vmcmp<mode>3<round_saeonly_name>,
20049 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
20050 avx512f_maskcmp<mode>3,
20051 <avx512>_cvt<ssemodesuffix>2mask<mode>,
20052 <avx512>_cvt<ssemodesuffix>2mask<mode>,
20053 *<avx512>_cvtmask2<ssemodesuffix><mode>,
20054 *<avx512>_cvtmask2<ssemodesuffix><mode>,
20055 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
20056 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
20057 <avx512>_gt<mode>3<mask_scalar_merge_name>,
20058 <avx512>_gt<mode>3<mask_scalar_merge_name>,
20059 <avx512>_testm<mode>3<mask_scalar_merge_name>,
20060 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
20061 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
20062 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
20063 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
20064 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
20065 avx512cd_maskb_vec_dup<mode>,
20066 avx512cd_maskw_vec_dup<mode>,
20067 avx512dq_fpclass<mode><mask_scalar_merge_name>,
20068 avx512dq_vmfpclass<mode>,
20069 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
20070 instead of =Yk.
20071
20072 2019-01-03 Martin Sebor <msebor@redhat.com>
20073
20074 PR tree-optimization/88659
20075 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
20076
20077 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
20078
20079 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
20080 unaligned vsx and avoid lxvd2x/stxvd2x.
20081 (gen_lvx_v4si_move): New function.
20082
20083 2019-01-03 Tom de Vries <tdevries@suse.de>
20084
20085 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
20086 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
20087 function.
20088 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
20089
20090 2019-01-03 Tom de Vries <tdevries@suse.de>
20091
20092 * config/nvptx/nvptx.c (struct offload_attrs): New.
20093 (populate_offload_attrs): New function. Factor mask extraction out of
20094 nvptx_reorg. Add extraction of dimensions.
20095 (nvptx_reorg): Use populate_offload_attrs.
20096
20097 2019-01-03 Tom de Vries <tdevries@suse.de>
20098
20099 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
20100 cases for oacc_min_dims_p and routine_p. Add asserts for
20101 oacc_default_dims_p and offload_region_p.
20102
20103 2019-01-03 Tom de Vries <tdevries@suse.de>
20104
20105 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
20106 factored out of ...
20107 (nvptx_goacc_validate_dims): ... here.
20108
20109 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
20110
20111 PR tree-optimization/85574
20112 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
20113 structure.
20114 (struct ssa_equip_hash_traits): Declare.
20115 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
20116
20117 2019-01-03 Jakub Jelinek <jakub@redhat.com>
20118
20119 PR debug/88644
20120 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
20121 change it to qualified_type.
20122
20123 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
20124
20125 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
20126 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
20127
20128 2019-01-02 Martin Sebor <msebor@redhat.com>
20129 Jeff Law <law@redhat.com>
20130
20131 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
20132 (get_range_strlen_tree): Update appropriately.
20133 (get_range_strlen)
20134 * gimple-fold.h (get_range_strlen): Drop unused last argument.
20135
20136 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
20137 rather than set_range_info.
20138 * tree-ssa-strlen.c (set_strlen_range): Extracted from
20139 maybe_set_strlen_range. Handle potentially boundary crossing
20140 cases more conservatively.
20141 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
20142 Call set_strlen_range.
20143 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
20144
20145 PR middle-end/88663
20146 * gimple-fold.c (get_range_strlen): Update prototype to no longer
20147 need the flexp argument.
20148 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
20149 from calls to get_range_strlen. Update comments. Just update
20150 VAL for an unterminated const char array and let the reset of the
20151 code handle it normally. No longer try to set *flexp. Adjust
20152 return value.
20153 (get_range_strlen): Update for the new get_range_strlen API.
20154 (get_maxval_strlen): Similarly.
20155 (gimple_fold_builtin_strlen): Handle update meaning of return value
20156 from get_range_strlen.
20157 * gimple-ssa-sprintf.c (get_string_length): Update for the new
20158 get_range_strlen API.
20159
20160 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
20161
20162 PR lto/88130
20163 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
20164 false at WPA time when body was removed.
20165
20166 2019-01-02 Martin Liska <mliska@suse.cz>
20167
20168 PR tree-optimization/88650
20169 * predict.c (set_even_probabilities): Calculate probability
20170 remainer only when really used.
20171
20172 2019-01-02 Richard Biener <rguenther@suse.de>
20173
20174 PR middle-end/88651
20175 * tree-data-ref.c (analyze_subscript_affine_affine): Use
20176 widest_ints when mangling max_stmt_execution results.
20177
20178 2019-01-02 Richard Biener <rguenther@suse.de>
20179
20180 PR tree-optimization/88621
20181 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
20182 bitfields when canoncalizing.
20183
20184 2019-01-02 Richard Biener <rguenther@suse.de>
20185
20186 PR target/87545
20187 * config/i386/x86-tune-costs.h (intel_cost): Adjust
20188 cost of cheap SSE instruction.
20189
20190 2019-01-02 Richard Biener <rguenther@suse.de>
20191
20192 PR ipa/85574
20193 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
20194 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
20195 function.
20196 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
20197 set after UIDs before splitting them.
20198
20199 2019-01-01 Martin Sebor <msebor@redhat.com>
20200 Jeff Law <law@redhat.com>
20201
20202 * gimple-fold.c (get_range_strlen_tree): Record if the computed
20203 length is optimistic. If it is, then arrange to compute the
20204 conservative length as well.
20205
20206 * gimple-fold.h (get_range_strlen): Update prototype.
20207 * builtins.c (check_access): Update call to get_range_strlen to use
20208 c_strlen_data pointer. Change various variable accesses to instead
20209 pull data from the c_strlen_data structure.
20210 (check_strncat_sizes, expand_builtin_strncat): Likewise.
20211 * calls.c (maybe_warn_nonstring_arg): Likewise.
20212 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
20213 minimum length if maximum lengh is unknown.
20214 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
20215 that used c_strlen, it's no longer needed. Restructure slightly.
20216 (format_string): Set unlikely range appropriately.
20217 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
20218 formatting issues.
20219 (get_range_strlen): Accept c_strlen_data pointer for external
20220 call sites as well. Pass through to call to internal get_range_strlen.
20221 Adjust minlen, maxlen and maxbound as needed.
20222 (get_maxval_strlen): Update comments.
20223 (gimple_fold_builtin_strlen): Update call to get_range_strlen
20224 to use c_strlen_data pointer. Change variable accesses to instead
20225 use c_strlen_data data members.
20226
20227 * gimple-fold.c (get_range_strlen): Update prototype.
20228 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
20229 local variables. Use pdata to return information to caller.
20230 Update calls to get_range_strlen. Update pdata->maxbound.
20231 (get_range_strlen -- static version): Similarly.
20232 (get_range_strlen -- extern version): Update for internal
20233 get_range_strlen API change. Convert to external data format.
20234 (get_maxval_strlen): Similarly.
20235
20236 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
20237
20238 * coverage.c (get_coverage_counts): Use current_function_decl.
20239 * profile.c (read_thunk_profile): New function.
20240 (branch_prob): Add THUNK parameter.
20241 * tree-profile.c (tree_profiling): Handle thunks.
20242 * value-prof.c (init_node_map): Handle thunks.
20243 * value-prof.h (branch_prob): Upate prototype.
20244 (read_thunk_profile): Declare.
20245
20246 2019-01-01 Jakub Jelinek <jakub@redhat.com>
20247
20248 Update copyright years.
20249
20250 * gcc.c (process_command): Update copyright notice dates.
20251 * gcov-dump.c (print_version): Ditto.
20252 * gcov.c (print_version): Ditto.
20253 * gcov-tool.c (print_version): Ditto.
20254 * gengtype.c (create_file): Ditto.
20255 * doc/cpp.texi: Bump @copying's copyright year.
20256 * doc/cppinternals.texi: Ditto.
20257 * doc/gcc.texi: Ditto.
20258 * doc/gccint.texi: Ditto.
20259 * doc/gcov.texi: Ditto.
20260 * doc/install.texi: Ditto.
20261 * doc/invoke.texi: Ditto.
20262 \f
20263 Copyright (C) 2019 Free Software Foundation, Inc.
20264
20265 Copying and distribution of this file, with or without modification,
20266 are permitted in any medium without royalty provided the copyright
20267 notice and this notice are preserved.