58d162972ba9de64dc5d002be2fb4c51ad78d380
[gcc.git] / gcc / ChangeLog
1 2017-09-05 Wilco Dijkstra <wdijkstr@arm.com>
2
3 * explow.c (get_dynamic_stack_size): Improve dynamic alignment.
4
5 2017-09-05 Richard Biener <rguenther@suse.de>
6
7 PR tree-optimization/82084
8 * fold-const.c (can_native_encode_string_p): Handle wide characters.
9
10 2017-09-05 Richard Biener <rguenther@suse.de>
11
12 PR tree-optimization/82102
13 * tree-ssa-pre.c (fini_eliminate): Check if lhs is NULL.
14
15 2017-09-05 Martin Liska <mliska@suse.cz>
16
17 PR tree-optimization/82032
18 * tree-cfg.c (generate_range_test): New function.
19 * tree-cfg.h (generate_range_test): Declared here.
20 * tree-cfgcleanup.c (convert_single_case_switch): New function.
21 (cleanup_control_expr_graph): Use it.
22 * tree-switch-conversion.c (try_switch_expansion): Remove
23 assert.
24 (emit_case_nodes): Use generate_range_test.
25
26 2017-09-04 Uros Bizjak <ubizjak@gmail.com>
27
28 PR target/82098
29 * config/i386/i386.md (*<btsc><mode>_mask): Add
30 TARGET_USE_BT to insn constraint.
31 (*btr<mode>_mask): Ditto.
32
33 2017-09-04 Wilco Dijkstra <wdijkstr@arm.com>
34
35 * config/arm/arm.c (arm_legitimate_index_p): Add comment.
36 (thumb2_legitimate_index_p): Use correct range for DI/DF mode.
37
38 2017-09-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
39
40 PR target/77308
41 * config/arm/arm.md (*arm_adddi3, *arm_subdi3): Split early except for
42 TARGET_NEON and TARGET_IWMMXT.
43 (anddi3, iordi3, xordi3, one_cmpldi2): Split while expanding except for
44 TARGET_NEON and TARGET_IWMMXT.
45 (*one_cmpldi2_insn): Moved the body of one_cmpldi2 here.
46
47 2017-09-04 Uros Bizjak <ubizjak@gmail.com>
48
49 * config/i386/i386-protos.h (ix86_tls_address_pattern_p) New prototype.
50 (ix86_rewrite_tls_address): Ditto.
51 * config/i386/i386.c (ix86_tls_address_pattern_p) New function.
52 (ix86_rewrite_tls_address_1): Ditto.
53 (ix86_rewrite_tls_address): Ditto.
54 * config/i386/predicates.md (tls_address_pattern): New predicate.
55 * config/i386/i386.md (TLS address splitter): New splitter.
56
57 2017-09-04 Richard Biener <rguenther@suse.de>
58
59 PR tree-optimization/82084
60 * fold-const.h (can_native_encode_string_p): Declare.
61 * fold-const.c (can_native_encode_string_p): Factor out from ...
62 (native_encode_string): ... here.
63 * tree-vect-stmts.c (vectorizable_store): Call it to avoid
64 vectorizing stores from constants we later cannot handle.
65
66 2017-09-04 Marek Polacek <polacek@redhat.com>
67
68 PR c/81783
69 * doc/invoke.texi: Update -Wtautological-compare documentation.
70
71 2017-09-04 Jeff Law <law@redhat.com>
72
73 PR tree-optimization/64910
74 * tree-ssa-reassoc.c (reassociate_bb): For bitwise binary ops,
75 swap the first and last operand if the last is a constant.
76
77 2017-09-04 Marek Polacek <polacek@redhat.com>
78
79 PR sanitizer/82072
80 * convert.c (do_narrow): When sanitizing signed integer overflows,
81 bail out for signed types.
82 (convert_to_integer_1) <case NEGATE_EXPR>: Likewise.
83
84 2017-09-04 Richard Biener <rguenther@suse.de>
85
86 PR tree-optimization/82060
87 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
88 Move devirtualization after stmt folding and before EH/AB/noreturn
89 cleanup to get the stmt refs canonicalized. Use a bool instead
90 of gimple_modified_p since that doesn't work for NOPs. Schedule
91 NOPs generated by folding for removal.
92
93 2017-09-04 Richard Sandiford <richard.sandiford@linaro.org>
94 Alan Hayward <alan.hayward@arm.com>
95 David Sherwood <david.sherwood@arm.com>
96
97 * coretypes.h (pad_direction): New enum.
98 * defaults.h (DEFAULT_FUNCTION_ARG_PADDING): Delete.
99 (FUNCTION_ARG_PADDING): Likewise.
100 * target.def (function_arg_padding): New hook.
101 * targhooks.h (default_function_arg_padding): Declare.
102 * targhooks.c (default_function_arg_padding): New function.
103 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Replace with...
104 (TARGET_FUNCTION_ARG_PADDING): ...this.
105 * doc/tm.texi: Regenerate.
106 * calls.c (store_unaligned_arguments_into_pseudos): Use pad_direction
107 instead of direction.
108 (compute_argument_addresses): Likewise.
109 (load_register_parameters): Likewise.
110 (emit_library_call_value_1): Likewise.
111 (store_one_arg): Use targetm.calls.function_arg_padding instead
112 of FUNCTION_ARG_PADDING.
113 (must_pass_in_stack_var_size_or_pad): Likewise.
114 * expr.c (emit_group_load_1): Use pad_direction instead of direction.
115 (emit_group_store): Likewise.
116 (emit_single_push_insn_1): Use targetm.calls.function_arg_padding
117 instead of FUNCTION_ARG_PADDING.
118 (emit_push_insn): Likewise, and propagate enum change throughout
119 function.
120 * function.h (direction): Delete.
121 (locate_and_pad_arg_data::where_pad): Use pad_direction instead
122 of direction.
123 * function.c (assign_parm_find_stack_rtl): Likewise.
124 (assign_parm_setup_block_p): Likewise.
125 (assign_parm_setup_block): Likewise.
126 (gimplify_parameters): Likewise.
127 (locate_and_pad_parm): Use targetm.calls.function_arg_padding
128 instead of FUNCTION_ARG_PADDING, and propagate enum change throughout
129 function.
130 * config/aarch64/aarch64.h (FUNCTION_ARG_PADDING): Delete.
131 (BLOCK_REG_PADDING): Use pad_direction instead of direction.
132 * config/aarch64/aarch64-protos.h (aarch64_pad_arg_upward): Delete.
133 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): Replace with...
134 (aarch64_function_arg_padding): ...this new function.
135 (aarch64_gimplify_va_arg_expr): Use pad_direction instead of direction.
136 (TARGET_FUNCTION_ARG_PADDING): Redefine.
137 * config/arm/arm.h (FUNCTION_ARG_PADDING): Delete.
138 (BLOCK_REG_PADDING): Use pad_direction instead of direction.
139 * config/arm/arm-protos.h (arm_pad_arg_upward): Delete.
140 * config/arm/arm.c (TARGET_FUNCTION_ARG_PADDING): Redefine.
141 (arm_pad_arg_upward): Replace with...
142 (arm_function_arg_padding): ...this new function.
143 * config/c6x/c6x.h (BLOCK_REG_PADDING): Use pad_direction instead
144 of direction.
145 * config/ia64/hpux.h (FUNCTION_ARG_PADDING): Delete.
146 * config/ia64/ia64-protos.h (ia64_hpux_function_arg_padding): Delete.
147 * config/ia64/ia64.c (TARGET_FUNCTION_ARG_PADDING): Redefine.
148 (ia64_hpux_function_arg_padding): Replace with...
149 (ia64_function_arg_padding): ...this new function. Use pad_direction
150 instead of direction. Check for TARGET_HPUX.
151 * config/iq2000/iq2000.h (FUNCTION_ARG_PADDING): Delete.
152 * config/iq2000/iq2000.c (TARGET_FUNCTION_ARG_PADDING): Redefine.
153 (iq2000_function_arg_padding): New function.
154 * config/mips/mips-protos.h (mips_pad_arg_upward): Delete.
155 * config/mips/mips.c (mips_pad_arg_upward): Replace with...
156 (mips_function_arg_padding): ...this new function.
157 (mips_pad_reg_upward): Update accordingly.
158 (TARGET_FUNCTION_ARG_PADDING): Redefine.
159 * config/mips/mips.h (PAD_VARARGS_DOWN): Use
160 targetm.calls.function_arg_padding.
161 (FUNCTION_ARG_PADDING): Delete.
162 (BLOCK_REG_PADDING): Use pad_direction instead of direction.
163 * config/nios2/nios2.h (FUNCTION_ARG_PADDING): Delete.
164 (PAD_VARARGS_DOWN): Use targetm.calls.function_arg_padding.
165 * config/nios2/nios2-protos.h (nios2_function_arg_padding): Delete.
166 (nios2_block_reg_padding): Return pad_direction instead of direction.
167 * config/nios2/nios2.c (nios2_block_reg_padding): Return pad_direction
168 instead of direction.
169 (nios2_function_arg_padding): Likewise. Make static.
170 (TARGET_FUNCTION_ARG_PADDING): Redefine.
171 * config/pa/pa.h (FUNCTION_ARG_PADDING): Delete.
172 (BLOCK_REG_PADDING): Use targetm.calls.function_arg_padding.
173 * config/pa/pa-protos.h (pa_function_arg_padding): Delete.
174 * config/pa/pa.c (TARGET_FUNCTION_ARG_PADDING): Redefine.
175 (pa_function_arg_padding): Make static. Return pad_direction instead
176 of direction.
177 * config/powerpcspe/powerpcspe.h (FUNCTION_ARG_PADDING): Delete.
178 (PAD_VARARGS_DOWN): Use targetm.calls.function_arg_padding.
179 * config/powerpcspe/aix.h (BLOCK_REG_PADDING): Use pad_direction
180 instead of direction. Use targetm.calls.function_arg_padding.
181 * config/powerpcspe/darwin.h (BLOCK_REG_PADDING): Likewise.
182 * config/powerpcspe/freebsd64.h (BLOCK_REG_PADDING): Likewise.
183 * config/powerpcspe/linux64.h (BLOCK_REG_PADDING): Likewise.
184 * config/powerpcspe/powerpcspe-protos.h (function_arg_padding): Delete.
185 * config/powerpcspe/powerpcspe.c (TARGET_FUNCTION_ARG_PADDING):
186 Redefine.
187 (function_arg_padding): Rename to...
188 (rs6000_function_arg_padding): ...this. Make static. Return
189 pad_direction instead of direction.
190 (rs6000_return_in_msb): Use rs6000_function_arg_padding.
191 * config/rs6000/rs6000.h (FUNCTION_ARG_PADDING): Delete.
192 (PAD_VARARGS_DOWN): Use targetm.calls.function_arg_padding.
193 * config/rs6000/aix.h (BLOCK_REG_PADDING): Use pad_direction
194 instead of direction. Use targetm.calls.function_arg_padding.
195 * config/rs6000/darwin.h (BLOCK_REG_PADDING): Likewise.
196 * config/rs6000/freebsd64.h (BLOCK_REG_PADDING): Likewise.
197 * config/rs6000/linux64.h (BLOCK_REG_PADDING): Likewise.
198 * config/rs6000/rs6000-protos.h (function_arg_padding): Delete.
199 * config/rs6000/rs6000.c (TARGET_FUNCTION_ARG_PADDING): Redefine.
200 (function_arg_padding): Rename to...
201 (rs6000_function_arg_padding): ...this. Make static. Return
202 pad_direction instead of direction.
203 (rs6000_return_in_msb): Use rs6000_function_arg_padding.
204 * config/s390/s390.h (FUNCTION_ARG_PADDING): Delete.
205 * config/s390/s390.c (s390_function_arg_padding): New function.
206 (TARGET_FUNCTION_ARG_PADDING): Redefine.
207 * config/sparc/sparc.h (FUNCTION_ARG_PADDING): Delete.
208 * config/sparc/sparc-protos.h (function_arg_padding): Delete.
209 * config/sparc/sparc.c (TARGET_FUNCTION_ARG_PADDING): Redefine.
210 (function_arg_padding): Rename to...
211 (sparc_function_arg_padding): ...this. Make static. Return
212 pad_direction instead of direction.
213 * config/spu/spu.h (FUNCTION_ARG_PADDING): Delete.
214 * config/spu/spu.c (spu_function_arg_padding): New function.
215 (TARGET_FUNCTION_ARG_PADDING): Redefine.
216 * system.h (FUNCTION_ARG_PADDING): Poison.
217
218 2017-09-04 Richard Sandiford <richard.sandiford@linaro.org>
219 Alan Hayward <alan.hayward@arm.com>
220 David Sherwood <david.sherwood@arm.com>
221
222 * target.def (modes_tieable_p): New hook.
223 * doc/tm.texi (MODES_TIEABLE_P): Replace with...
224 (TARGET_MODES_TIEABLE_P): ...this.
225 * doc/tm.texi.in: Regenerate.
226 * hooks.h (hook_bool_mode_mode_true): Declare.
227 * hooks.c (hook_bool_mode_mode_true): New function.
228 * combine.c (subst): Use targetm.modes_tieable_p instead of
229 MODES_TIEABLE_P.
230 * dse.c (find_shift_sequence): Likewise.
231 * expmed.c (extract_low_bits): Likewise.
232 * lower-subreg.c: Include target.h.
233 (find_decomposable_subregs): Use targetm.modes_tieable_p instead of
234 MODES_TIEABLE_P.
235 * rtlanal.c (rtx_cost): Likewise.
236 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Delete.
237 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): Delete.
238 * config/aarch64/aarch64.c (aarch64_modes_tieable_p): Make static.
239 (TARGET_MODES_TIEABLE_P): Redefine.
240 * config/alpha/alpha.h (MODES_TIEABLE_P): Delete.
241 * config/alpha/alpha.c (alpha_modes_tieable_p): New function.
242 (TARGET_MODES_TIEABLE_P): Redefine.
243 * config/arc/arc.h (MODES_TIEABLE_P): Delete.
244 * config/arc/arc.c (TARGET_MODES_TIEABLE_P): Redefine.
245 (arc_modes_tieable_p): New function.
246 * config/arm/arm.h (MODES_TIEABLE_P): Delete.
247 * config/arm/arm-protos.h (arm_modes_tieable_p): Delete.
248 * config/arm/arm.c (TARGET_MODES_TIEABLE_P): Redefine.
249 (arm_modes_tieable_p): Make static.
250 * config/avr/avr.h (MODES_TIEABLE_P): Delete.
251 * config/bfin/bfin.h (MODES_TIEABLE_P): Delete.
252 * config/bfin/bfin.c (bfin_modes_tieable_p): New function.
253 (TARGET_MODES_TIEABLE_P): Redefine.
254 * config/c6x/c6x.h (MODES_TIEABLE_P): Delete.
255 * config/c6x/c6x.c (c6x_modes_tieable_p): New function.
256 (TARGET_MODES_TIEABLE_P): Redefine.
257 * config/cr16/cr16.h (MODES_TIEABLE_P): Delete.
258 * config/cr16/cr16.c (TARGET_MODES_TIEABLE_P): Redefine.
259 (cr16_modes_tieable_p): New function.
260 * config/cris/cris.h (MODES_TIEABLE_P): Delete.
261 * config/epiphany/epiphany.h (MODES_TIEABLE_P): Delete.
262 * config/fr30/fr30.h (MODES_TIEABLE_P): Delete.
263 (TRULY_NOOP_TRUNCATION): Update comment.
264 * config/frv/frv.h (MODES_TIEABLE_P): Delete.
265 (TRULY_NOOP_TRUNCATION): Update comment.
266 * config/frv/frv.c (TARGET_MODES_TIEABLE_P): Redefine.
267 (frv_modes_tieable_p): New function.
268 * config/ft32/ft32.h (MODES_TIEABLE_P): Delete.
269 * config/h8300/h8300.h (MODES_TIEABLE_P): Delete.
270 * config/h8300/h8300.c (h8300_modes_tieable_p): New function.
271 (TARGET_MODES_TIEABLE_P): Redefine.
272 * config/i386/i386.h (MODES_TIEABLE_P): Delete.
273 * config/i386/i386-protos.h (ix86_modes_tieable_p): Delete.
274 * config/i386/i386.c (ix86_modes_tieable_p): Make static.
275 (TARGET_MODES_TIEABLE_P): Redefine.
276 * config/ia64/ia64.h (MODES_TIEABLE_P): Delete.
277 * config/ia64/ia64.c (TARGET_MODES_TIEABLE_P): Redefine.
278 (ia64_modes_tieable_p): New function.
279 * config/iq2000/iq2000.h (MODES_TIEABLE_P): Delete.
280 * config/iq2000/iq2000.c (TARGET_MODES_TIEABLE_P): Redefine.
281 (iq2000_modes_tieable_p): New function.
282 * config/lm32/lm32.h (MODES_TIEABLE_P): Delete.
283 * config/lm32/lm32.c (TARGET_MODES_TIEABLE_P): Redefine.
284 (lm32_modes_tieable_p): New function.
285 * config/m32c/m32c.h (MODES_TIEABLE_P): Delete.
286 * config/m32c/m32c-protos.h (m32c_modes_tieable_p): Delete.
287 * config/m32c/m32c.c (m32c_modes_tieable_p): Make static.
288 (TARGET_MODES_TIEABLE_P): Redefine.
289 * config/m32r/m32r.h (MODES_TIEABLE_P): Delete.
290 * config/m32r/m32r.c (TARGET_MODES_TIEABLE_P): Redefine.
291 (m32r_modes_tieable_p): New function.
292 * config/m68k/m68k.h (MODES_TIEABLE_P): Delete.
293 * config/m68k/m68k.c (TARGET_MODES_TIEABLE_P): Redefine.
294 (m68k_modes_tieable_p): New function.
295 * config/mcore/mcore.h (MODES_TIEABLE_P): Delete.
296 * config/mcore/mcore.c (TARGET_MODES_TIEABLE_P): Redefine.
297 (mcore_modes_tieable_p): New function.
298 * config/microblaze/microblaze.h (MODES_TIEABLE_P): Delete.
299 * config/microblaze/microblaze.c (microblaze_modes_tieable_p): New
300 function.
301 (TARGET_MODES_TIEABLE_P): Redefine.
302 * config/mips/mips.h (MODES_TIEABLE_P): Delete.
303 * config/mips/mips-protos.h (mips_modes_tieable_p): Delete.
304 * config/mips/mips.c (mips_modes_tieable_p): Make static.
305 (TARGET_MODES_TIEABLE_P): Redefine.
306 * config/mmix/mmix.h (MODES_TIEABLE_P): Delete.
307 * config/mn10300/mn10300.h (MODES_TIEABLE_P): Delete.
308 * config/mn10300/mn10300-protos.h (mn10300_modes_tieable): Delete.
309 * config/mn10300/mn10300.c (mn10300_modes_tieable): Rename to...
310 (mn10300_modes_tieable_p): ...this and make static.
311 (TARGET_MODES_TIEABLE_P): Redefine.
312 * config/moxie/moxie.h (MODES_TIEABLE_P): Delete.
313 * config/msp430/msp430.h (MODES_TIEABLE_P): Delete.
314 * config/msp430/msp430-protos.h (msp430_modes_tieable_p): Delete.
315 * config/msp430/msp430.c (TARGET_MODES_TIEABLE_P): Redefine.
316 (msp430_modes_tieable_p): Make static.
317 * config/nds32/nds32.h (MODES_TIEABLE_P): Delete.
318 * config/nds32/nds32.c (nds32_modes_tieable_p): New function.
319 (TARGET_MODES_TIEABLE_P): Redefine.
320 * config/nios2/nios2.h (MODES_TIEABLE_P): Delete.
321 * config/nvptx/nvptx.h (MODES_TIEABLE_P): Delete.
322 * config/nvptx/nvptx.c (nvptx_modes_tieable_p): New function.
323 (TARGET_MODES_TIEABLE_P): Redefine.
324 * config/pa/pa.h (MODES_TIEABLE_P): Delete.
325 * config/pa/pa-protos.h (pa_modes_tieable_p): Delete.
326 * config/pa/pa.c (pa_modes_tieable_p): Make static.
327 (TARGET_MODES_TIEABLE_P): Redefine.
328 * config/pdp11/pdp11.h (MODES_TIEABLE_P): Delete.
329 * config/pdp11/pdp11.c (TARGET_MODES_TIEABLE_P): Redefine.
330 (pdp11_modes_tieable_p): New function.
331 * config/powerpcspe/powerpcspe.h (MODES_TIEABLE_P): Delete.
332 * config/powerpcspe/powerpcspe.c (TARGET_MODES_TIEABLE_P): Redefine.
333 (rs6000_modes_tieable_p): New function.
334 (rs6000_debug_reg_global): Use it instead of MODES_TIEABLE_P.
335 * config/powerpcspe/powerpcspe.md: Update comment.
336 * config/riscv/riscv.h (MODES_TIEABLE_P): Delete.
337 * config/riscv/riscv.c (riscv_modes_tieable_p): New function.
338 (TARGET_MODES_TIEABLE_P): Redefine.
339 * config/rl78/rl78.h (MODES_TIEABLE_P): Delete.
340 * config/rl78/rl78.c (TARGET_MODES_TIEABLE_P): Redefine.
341 (rl78_modes_tieable_p): New function.
342 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Delete.
343 * config/rs6000/rs6000.c (TARGET_MODES_TIEABLE_P): Redefine.
344 (rs6000_modes_tieable_p): New function.
345 (rs6000_debug_reg_global): Use it instead of MODES_TIEABLE_P.
346 * config/rs6000/rs6000.md: Update comment.
347 * config/rx/rx.h (MODES_TIEABLE_P): Delete.
348 * config/rx/rx.c (rx_modes_tieable_p): New function.
349 (TARGET_MODES_TIEABLE_P): Redefine.
350 * config/s390/s390.h (MODES_TIEABLE_P): Delete.
351 * config/s390/s390.c (s390_modes_tieable_p): New function.
352 (TARGET_MODES_TIEABLE_P): Redefine.
353 * config/sh/sh.h (MODES_TIEABLE_P): Delete.
354 * config/sh/sh.c (TARGET_MODES_TIEABLE_P): Redefine.
355 (sh_modes_tieable_p): New function.
356 * config/sparc/sparc.h (MODES_TIEABLE_P): Delete.
357 * config/sparc/sparc-protos.h (sparc_modes_tieable_p): Delete.
358 * config/sparc/sparc.c (TARGET_MODES_TIEABLE_P): Redefine.
359 (sparc_modes_tieable_p): Make static.
360 * config/spu/spu.h (MODES_TIEABLE_P): Delete.
361 * config/spu/spu.c (spu_modes_tieable_p): New function.
362 (TARGET_MODES_TIEABLE_P): Redefine.
363 * config/stormy16/stormy16.h (MODES_TIEABLE_P): Delete.
364 * config/stormy16/stormy16.c (xstormy16_modes_tieable_p): New function.
365 (TARGET_MODES_TIEABLE_P): Redefine.
366 * config/tilegx/tilegx.h (MODES_TIEABLE_P): Delete.
367 * config/tilepro/tilepro.h (MODES_TIEABLE_P): Delete.
368 * config/v850/v850.h (MODES_TIEABLE_P): Delete.
369 * config/v850/v850.c (v850_modes_tieable_p): New function.
370 (TARGET_MODES_TIEABLE_P): Redefine.
371 * config/vax/vax.h (MODES_TIEABLE_P): Delete.
372 * config/visium/visium.h (MODES_TIEABLE_P): Delete.
373 * config/visium/visium.c (TARGET_MODES_TIEABLE_P): Redefine.
374 (visium_modes_tieable_p): New function.
375 * config/xtensa/xtensa.h (MODES_TIEABLE_P): Delete.
376 * config/xtensa/xtensa.c (TARGET_MODES_TIEABLE_P): Redefine.
377 (xtensa_modes_tieable_p): New function.
378 * system.h (MODES_TIEABLE_P): Poison.
379
380 2017-09-04 Richard Sandiford <richard.sandiford@linaro.org>
381 Alan Hayward <alan.hayward@arm.com>
382 David Sherwood <david.sherwood@arm.com>
383
384 * target.def (hard_regno_mode_ok): New hook.
385 * doc/tm.texi (HARD_REGNO_MODE_OK): Replace with...
386 (TARGET_HARD_REGNO_MODE_OK): ...this.
387 * doc/tm.texi.in: Regenerate.
388 * hooks.h (hook_bool_uint_mode_true): Declare.
389 * hooks.c (hook_bool_uint_mode_true): New function.
390 * doc/md.texi: Refer to targetm.hard_regno_mode_ok instead of
391 HARD_REGNO_MODE_OK.
392 * genpreds.c (write_insn_preds_c): Add an include of target.h.
393 * alias.c (init_alias_target): Use targetm.hard_regno_mode_ok
394 instead of HARD_REGNO_MODE_OK.
395 * caller-save.c: Include target.h.
396 (reg_save_code): Use targetm.hard_regno_mode_ok instead of
397 HARD_REGNO_MODE_OK.
398 * combine.c (can_combine_p): Likewise.
399 (combinable_i3pat): Likewise.
400 (can_change_dest_mode): Likewise.
401 * expr.c (init_expr_target): Likewise.
402 (convert_move): Likewise.
403 (convert_modes): Likewise.
404 * ira.c (setup_prohibited_class_mode_regs): Likewise.
405 (setup_prohibited_mode_move_regs): Likewise.
406 * ira.h (target_ira): Likewise.
407 * lra-assigns.c (find_hard_regno_for_1): Likewise.
408 * lra-constraints.c (process_alt_operands): Likewise.
409 (split_reg): Likewise.
410 * recog.c (peep2_find_free_register): Likewise.
411 * ree.c (combine_reaching_defs): Likewise.
412 * regcprop.c (maybe_mode_change): Likewise.
413 * reginfo.c (init_reg_sets_1): Likewise.
414 (choose_hard_reg_mode): Likewise.
415 (simplifiable_subregs): Likewise.
416 * regrename.c (check_new_reg_p): Likewise.
417 * reload.c (find_valid_class): Likewise.
418 (find_valid_class_1): Likewise.
419 (reload_inner_reg_of_subreg): Likewise.
420 (push_reload): Likewise.
421 (combine_reloads): Likewise.
422 (find_dummy_reload): Likewise.
423 (find_reloads): Likewise.
424 * reload1.c (find_reg): Likewise.
425 (set_reload_reg): Likewise.
426 (allocate_reload_reg): Likewise.
427 (choose_reload_regs): Likewise.
428 (reload_adjust_reg_for_temp): Likewise.
429 * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
430 (simplify_subreg_regno): Likewise.
431 * sel-sched.c (init_regs_for_mode): Likewise.
432 * varasm.c (make_decl_rtl): Likewise.
433 * config/aarch64/aarch64.h (HARD_REGNO_MODE_OK): Delete.
434 (MODES_TIEABLE_P): Use targetm.hard_regno_mode_ok instead of
435 HARD_REGNO_MODE_OK.
436 * config/aarch64/aarch64-protos.h (aarch64_hard_regno_mode_ok): Delete.
437 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Make static.
438 (TARGET_HARD_REGNO_MODE_OK): Redefine.
439 * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Delete.
440 * config/alpha/alpha.c (alpha_hard_regno_mode_ok): New function.
441 (TARGET_HARD_REGNO_MODE_OK): Redefine.
442 * config/arc/arc.h (arc_hard_regno_mode_ok): Delete.
443 (arc_mode_class): Delete.
444 (HARD_REGNO_MODE_OK): Delete.
445 * config/arc/arc.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
446 (arc_hard_regno_mode_ok): Rename old array to...
447 (arc_hard_regno_mode_ok_modes): ...this.
448 (arc_conditional_register_usage): Update accordingly.
449 (arc_mode_class): Make static.
450 (arc_hard_regno_mode_ok): New function.
451 * config/arm/arm.h (HARD_REGNO_MODE_OK): Delete.
452 * config/arm/arm-protos.h (arm_hard_regno_mode_ok): Delete.
453 * config/arm/arm.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
454 (arm_hard_regno_mode_ok): Make static.
455 * config/arm/arm.md (movdi): Use targetm.hard_regno_mode_ok instead of
456 HARD_REGNO_MODE_OK.
457 * config/avr/avr-protos.h (avr_hard_regno_mode_ok): Delete.
458 * config/avr/avr.h (HARD_REGNO_MODE_OK): Delete.
459 * config/avr/avr.c (avr_hard_regno_mode_ok): Make static and
460 return a bool.
461 (TARGET_HARD_REGNO_MODE_OK): Redefine.
462 * config/bfin/bfin-protos.h (hard_regno_mode_ok): Delete.
463 * config/bfin/bfin.h (HARD_REGNO_MODE_OK): Delete.
464 * config/bfin/bfin.c (hard_regno_mode_ok): Rename to...
465 (bfin_hard_regno_mode_ok): ...this. Make static and return a bool.
466 (TARGET_HARD_REGNO_MODE_OK): Redefine.
467 * config/bfin/predicates.md (valid_reg_operand): Use
468 targetm.hard_regno_mode_ok instead of HARD_REGNO_MODE_OK.
469 * config/c6x/c6x.h (HARD_REGNO_MODE_OK): Delete.
470 * config/c6x/c6x.c (c6x_hard_regno_mode_ok): New function.
471 (TARGET_HARD_REGNO_MODE_OK): Redefine.
472 * config/cr16/cr16.h (HARD_REGNO_MODE_OK): Delete.
473 * config/cr16/cr16-protos.h (cr16_hard_regno_mode_ok): Delete.
474 * config/cr16/cr16.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
475 (cr16_hard_regno_mode_ok): Make static and return a bool.
476 * config/cris/cris.h (HARD_REGNO_MODE_OK): Delete.
477 * config/cris/cris.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
478 (cris_hard_regno_mode_ok): New function.
479 * config/epiphany/epiphany.h (epiphany_hard_regno_mode_ok): Delete.
480 (epiphany_mode_class): Delete.
481 (HARD_REGNO_MODE_OK): Delete.
482 * config/epiphany/epiphany-protos.h (hard_regno_mode_ok): Delete.
483 * config/epiphany/epiphany.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
484 (hard_regno_mode_ok): Rename to...
485 (epiphany_hard_regno_mode_ok): ...this. Make static and return a bool.
486 * config/fr30/fr30.h (HARD_REGNO_MODE_OK): Delete.
487 * config/fr30/fr30.md: Refer to targetm.hard_regno_mode_ok instead of
488 HARD_REGNO_MODE_OK.
489 * config/frv/frv.h (HARD_REGNO_MODE_OK): Delete.
490 * config/frv/frv-protos.h (frv_hard_regno_mode_ok): Delete.
491 * config/frv/frv.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
492 (frv_hard_regno_mode_ok): Make static and return a bool.
493 * config/frv/frv.md: Refer to targetm.hard_regno_mode_ok instead of
494 HARD_REGNO_MODE_OK.
495 * config/ft32/ft32.h (HARD_REGNO_MODE_OK): Delete.
496 * config/h8300/h8300.h (HARD_REGNO_MODE_OK): Delete.
497 * config/h8300/h8300-protos.h (h8300_hard_regno_mode_ok): Delete.
498 * config/h8300/h8300.c (h8300_hard_regno_mode_ok): Make static
499 and return a bool.
500 (TARGET_HARD_REGNO_MODE_OK): Redefine.
501 * config/i386/i386.h (HARD_REGNO_MODE_OK): Delete.
502 * config/i386/i386-protos.h (ix86_hard_regno_mode_ok): Delete.
503 * config/i386/i386.c (ix86_hard_regno_mode_ok): Make static and
504 return a bool.
505 (TARGET_HARD_REGNO_MODE_OK): Redefine.
506 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): Delete.
507 * config/ia64/ia64.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
508 (ia64_hard_regno_mode_ok): New function.
509 * config/iq2000/iq2000.h (HARD_REGNO_MODE_OK): Delete.
510 * config/iq2000/iq2000.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
511 (iq2000_hard_regno_mode_ok): New function.
512 * config/lm32/lm32.h (HARD_REGNO_MODE_OK): Delete.
513 * config/lm32/lm32.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
514 (lm32_hard_regno_mode_ok): New function.
515 * config/m32c/m32c.h (HARD_REGNO_MODE_OK): Delete.
516 * config/m32c/m32c-protos.h (m32c_hard_regno_ok): Delete.
517 * config/m32c/m32c.c (class_can_hold_mode): Use m32c_hard_regno_mode_ok
518 instead of HARD_REGNO_MODE_OK.
519 (m32c_hard_regno_ok): Rename to...
520 (m32c_hard_regno_mode_ok): ...this. Make static and return a bool.
521 (m32c_cannot_change_mode_class): Update accordingly.
522 (TARGET_HARD_REGNO_MODE_OK): Redefine.
523 * config/m32r/m32r.h (m32r_hard_regno_mode_ok): Delete.
524 (m32r_mode_class): Delete.
525 (HARD_REGNO_MODE_OK): Delete.
526 * config/m32r/m32r.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
527 (m32r_hard_regno_mode_ok): Rename to...
528 (m32r_hard_regno_modes): ...this.
529 (m32r_mode_class): Make static.
530 (m32r_hard_regno_mode_ok): New function.
531 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Delete.
532 * config/m68k/m68k-protos.h (m68k_regno_mode_ok): Delete.
533 * config/m68k/m68k.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
534 (m68k_hard_regno_mode_ok): Make static.
535 * config/mcore/mcore.h (HARD_REGNO_MODE_OK): Delete.
536 * config/mcore/mcore.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
537 (mcore_hard_regno_mode_ok): New function.
538 * config/microblaze/microblaze.h (microblaze_hard_regno_mode_ok)
539 (HARD_REGNO_MODE_OK): Delete.
540 * config/microblaze/microblaze.c (microblaze_hard_regno_mode_ok):
541 Rename to...
542 (microblaze_hard_regno_mode_ok_p): ...this and make static.
543 (microblaze_hard_regno_mode_ok): New function.
544 (TARGET_HARD_REGNO_MODE_OK): Redefine.
545 * config/mips/mips.h (HARD_REGNO_MODE_OK): Delete.
546 (mips_hard_regno_mode_ok): Delete.
547 * config/mips/mips.c (mips_hard_regno_mode_ok): Rename to...
548 (mips_hard_regno_mode_ok_p): ...this and make static.
549 (mips_hard_regno_mode_ok_p): Rename to...
550 (mips_hard_regno_mode_ok_uncached): ...this.
551 (mips_hard_regno_mode_ok): New function.
552 (mips_class_max_nregs): Use mips_hard_regno_mode_ok instead
553 of HARD_REGNO_MODE_OK.
554 (mips_option_override): Update after above name changes.
555 (TARGET_HARD_REGNO_MODE_OK): Redefine.
556 * config/mmix/mmix.h (HARD_REGNO_MODE_OK): Delete.
557 * config/mn10300/mn10300.h (HARD_REGNO_MODE_OK): Delete.
558 * config/mn10300/mn10300-protos.h (mn10300_hard_regno_mode_ok): Delete.
559 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Make static.
560 (TARGET_HARD_REGNO_MODE_OK): Redefine.
561 * config/moxie/moxie.h (HARD_REGNO_MODE_OK): Delete.
562 * config/msp430/msp430.h (HARD_REGNO_MODE_OK): Delete.
563 * config/msp430/msp430-protos.h (msp430_hard_regno_mode_ok): Delete.
564 * config/msp430/msp430.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
565 (msp430_hard_regno_mode_ok): Make static and return a bool.
566 * config/nds32/nds32.h (HARD_REGNO_MODE_OK): Delete.
567 * config/nds32/nds32-protos.h (nds32_hard_regno_mode_ok): Delete.
568 * config/nds32/nds32.c (nds32_hard_regno_mode_ok): Make static
569 and return a bool.
570 (TARGET_HARD_REGNO_MODE_OK): Redefine.
571 * config/nios2/nios2.h (HARD_REGNO_MODE_OK): Delete.
572 * config/nvptx/nvptx.h (HARD_REGNO_MODE_OK): Delete.
573 * config/pa/pa.h (MODES_TIEABLE_P): Update commentary.
574 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): Rename to...
575 (PA_HARD_REGNO_MODE_OK): ...this
576 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Rename to...
577 (PA_HARD_REGNO_MODE_OK): ...this.
578 * config/pa/pa.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
579 (pa_hard_regno_mode_ok): New function.
580 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Delete.
581 * config/pdp11/pdp11.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
582 (pdp11_hard_regno_mode_ok): New function.
583 * config/powerpcspe/powerpcspe.h (HARD_REGNO_MODE_OK): Delete.
584 * config/powerpcspe/powerpcspe-protos.h (rs6000_hard_regno_mode_ok_p):
585 Delete.
586 * config/powerpcspe/powerpcspe.c (rs6000_hard_regno_mode_ok_p):
587 Make static.
588 (TARGET_HARD_REGNO_MODE_OK): Redefine.
589 (rs6000_hard_regno_mode_ok): Rename to...
590 (rs6000_hard_regno_mode_ok_uncached): ...this.
591 (rs6000_init_hard_regno_mode_ok): Update accordingly.
592 (rs6000_hard_regno_mode_ok): New function.
593 * config/riscv/riscv.h (HARD_REGNO_MODE_OK): Delete.
594 * config/riscv/riscv-protos.h (riscv_hard_regno_mode_ok_p): Delete.
595 * config/riscv/riscv.c (riscv_hard_regno_mode_ok_p): Rename to...
596 (riscv_hard_regno_mode_ok): ...this and make static.
597 (TARGET_HARD_REGNO_MODE_OK): Redefine.
598 * config/rl78/rl78.h (HARD_REGNO_MODE_OK): Delete.
599 * config/rl78/rl78-protos.h (rl78_hard_regno_mode_ok): Delete.
600 * config/rl78/rl78.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
601 (rl78_hard_regno_mode_ok): Make static and return bool.
602 * config/rs6000/rs6000.h (HARD_REGNO_MODE_OK): Delete.
603 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_mode_ok_p):
604 Delete.
605 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok_p): Make static.
606 (TARGET_HARD_REGNO_MODE_OK): Redefine.
607 (rs6000_hard_regno_mode_ok): Rename to...
608 (rs6000_hard_regno_mode_ok_uncached): ...this.
609 (rs6000_init_hard_regno_mode_ok): Update accordingly.
610 (rs6000_hard_regno_mode_ok): New function.
611 * config/rx/rx.h (HARD_REGNO_MODE_OK): Delete.
612 * config/rx/rx.c (rx_hard_regno_mode_ok): New function.
613 (TARGET_HARD_REGNO_MODE_OK): Redefine.
614 * config/s390/s390.h (HARD_REGNO_MODE_OK): Delete.
615 * config/s390/s390-protos.h (s390_hard_regno_mode_ok): Delete.
616 * config/s390/s390.c (s390_hard_regno_mode_ok): Make static.
617 (TARGET_HARD_REGNO_MODE_OK): Redefine.
618 * config/sh/sh.h (HARD_REGNO_MODE_OK): Delete.
619 * config/sh/sh-protos.h (sh_hard_regno_mode_ok): Delete.
620 * config/sh/sh.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
621 (sh_hard_regno_mode_ok): Make static.
622 * config/sparc/constraints.md: Refer to targetm.hard_regno_mode_ok
623 instead of HARD_REGNO_MODE_OK.
624 * config/sparc/sparc.h (hard_regno_mode_classes): Delete.
625 (sparc_mode_class): Delete.
626 (HARD_REGNO_MODE_OK): Delete.
627 * config/sparc/sparc.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
628 (hard_regno_mode_classes): Make static.
629 (sparc_mode_class): Likewise.
630 (sparc_hard_regno_mode_ok): New function.
631 * config/spu/spu.h (HARD_REGNO_MODE_OK): Delete.
632 * config/stormy16/stormy16.h (HARD_REGNO_MODE_OK): Delete.
633 * config/stormy16/stormy16.c (xstormy16_hard_regno_mode_ok): New
634 function.
635 (TARGET_HARD_REGNO_MODE_OK): Redefine.
636 * config/tilegx/tilegx.h (HARD_REGNO_MODE_OK): Delete.
637 * config/tilepro/tilepro.h (HARD_REGNO_MODE_OK): Delete.
638 * config/v850/v850.h (HARD_REGNO_MODE_OK): Delete.
639 * config/v850/v850.c (v850_hard_regno_mode_ok): New function.
640 (TARGET_HARD_REGNO_MODE_OK): Redefine.
641 * config/vax/vax.h (HARD_REGNO_MODE_OK): Delete.
642 * config/visium/visium.h (HARD_REGNO_MODE_OK): Delete.
643 * config/visium/visium.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
644 (visium_hard_regno_mode_ok): New function.
645 * config/visium/visium.md: Refer to targetm.hard_regno_mode_ok
646 instead of HARD_REGNO_MODE_OK.
647 * config/xtensa/xtensa.h (xtensa_hard_regno_mode_ok): Delete.
648 (HARD_REGNO_MODE_OK): Delete.
649 * config/xtensa/xtensa.c (xtensa_hard_regno_mode_ok): Rename to...
650 (xtensa_hard_regno_mode_ok_p): ...this and make static.
651 (xtensa_option_override): Update accordingly.
652 (TARGET_HARD_REGNO_MODE_OK): Redefine.
653 (xtensa_hard_regno_mode_ok): New function.
654 * system.h (HARD_REGNO_MODE_OK): Poison.
655
656 2017-09-04 Richard Sandiford <richard.sandiford@linaro.org>
657 Alan Hayward <alan.hayward@arm.com>
658 David Sherwood <david.sherwood@arm.com>
659
660 * target.def (hard_regno_call_part_clobbered): New hook.
661 * doc/tm.texi.in (HARD_REGNO_CALL_PART_CLOBBERED): Replace with...
662 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): ...this hook.
663 * doc/tm.texi: Regenerate.
664 * hooks.h (hook_bool_uint_mode_false): Declare.
665 * hooks.c (hook_bool_uint_mode_false): New function.
666 * regs.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
667 * cselib.c (cselib_process_insn): Use
668 targetm.hard_regno_call_part_clobbered instead of
669 HARD_REGNO_CALL_PART_CLOBBERED.
670 * ira-conflicts.c (ira_build_conflicts): Likewise.
671 * ira-costs.c (ira_tune_allocno_costs): Likewise.
672 * lra-constraints.c (need_for_call_save_p): Likewise.
673 * lra-lives.c: Include target.h.
674 (check_pseudos_live_through_calls): Use
675 targetm.hard_regno_call_part_clobbered instead of
676 HARD_REGNO_CALL_PART_CLOBBERED.
677 * regcprop.c: Include target.h.
678 (copyprop_hardreg_forward_1): Use
679 targetm.hard_regno_call_part_clobbered instead of
680 HARD_REGNO_CALL_PART_CLOBBERED.
681 * reginfo.c (choose_hard_reg_mode): Likewise.
682 * regrename.c (check_new_reg_p): Likewise.
683 * reload.c (find_equiv_reg): Likewise.
684 * reload1.c (emit_reload_insns): Likewise.
685 * sched-deps.c (deps_analyze_insn): Likewise.
686 * sel-sched.c (init_regs_for_mode): Likewise.
687 (mark_unavailable_hard_regs): Likewise.
688 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
689 * config/aarch64/aarch64.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
690 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
691 New function.
692 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
693 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
694 * config/avr/avr-protos.h (avr_hard_regno_call_part_clobbered):
695 Delete.
696 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Make static
697 and return a bool.
698 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
699 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
700 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): New
701 function.
702 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
703 * config/mips/mips.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
704 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): New
705 function.
706 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
707 * config/powerpcspe/powerpcspe.h (HARD_REGNO_CALL_PART_CLOBBERED):
708 Delete.
709 * config/powerpcspe/powerpcspe.c
710 (rs6000_hard_regno_call_part_clobbered): New function.
711 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
712 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
713 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
714 New function.
715 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
716 * config/s390/s390.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
717 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): New
718 function.
719 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
720 * config/sh/sh.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
721 * system.h (HARD_REGNO_CALL_PART_CLOBBERED): Poison.
722
723 2017-09-04 Richard Sandiford <richard.sandiford@linaro.org>
724 Alan Hayward <alan.hayward@arm.com>
725 David Sherwood <david.sherwood@arm.com>
726
727 * rtl.h (subreg_memory_offset): Declare.
728 * emit-rtl.c (subreg_memory_offset): New function.
729 * expmed.c (store_bit_field_1): Use it.
730 * expr.c (undefined_operand_subword_p): Likewise.
731 * simplify-rtx.c (simplify_subreg): Likewise.
732
733 2017-09-04 Alexander Monakov <amonakov@ispras.ru>
734
735 PR rtl-optimization/57448
736 PR target/67458
737 PR target/81316
738 * optabs.c (expand_atomic_load): Place compiler memory barriers if
739 using atomic_load pattern.
740 (expand_atomic_store): Likewise.
741
742 2017-09-04 Jakub Jelinek <jakub@redhat.com>
743
744 PR sanitizer/81981
745 * gimple-fold.c (gimple_fold_call): Optimize away useless UBSAN_PTR
746 and UBSAN_BOUNDS internal calls. Clean up IFN_UBSAN_OBJECT_SIZE
747 handling. Use replace_call_with_value with NULL instead of
748 gsi_replace, unlink_stmt_vdef and release_defs.
749
750 * gdbhooks.py (OptMachineModePrinter.to_string): Use 8 spaces
751 instead of tab.
752
753 * lra-remat.c (reg_overlap_for_remat_p): Fix a pasto.
754
755 2017-09-04 Richard Sandiford <richard.sandiford@linaro.org>
756
757 PR bootstrap/82045
758 * rtl.h (emit_library_call_value_1): Declare.
759 (emit_library_call): Replace declaration with a series of overloads.
760 Remove the parameter count argument.
761 (emit_library_call_value): Likewise.
762 * calls.c (emit_library_call_value_1): Make global. Replace varargs
763 with an "rtx_mode_t *".
764 (emit_library_call_value): Delete.
765 (emit_library_call): Likewise.
766 * asan.c (asan_emit_stack_protection): Update calls accordingly.
767 (asan_emit_allocas_unpoison): Likewise.
768 * builtins.c (expand_builtin_powi): Likewise.
769 (expand_asan_emit_allocas_unpoison): Likewise.
770 * cfgexpand.c (expand_main_function): Likewise.
771 * config/aarch64/aarch64.c (aarch64_trampoline_init): Likewise.
772 * config/aarch64/aarch64.h (PROFILE_HOOK): Likewise.
773 * config/alpha/alpha.c (alpha_trampoline_init): Likewise.
774 * config/arm/arm.c (arm_trampoline_init): Likewise.
775 (arm_call_tls_get_addr): Likewise.
776 (arm_expand_divmod_libfunc): Likewise.
777 * config/bfin/bfin.md (umulsi3_highpart): Likewise.
778 (smulsi3_highpart): Likewise.
779 * config/c6x/c6x.c (c6x_initialize_trampoline): Likewise.
780 (c6x_expand_compare): Likewise.
781 (c6x_expand_movmem): Likewise.
782 * config/frv/frv.c (frv_trampoline_init): Likewise.
783 * config/i386/i386.c (ix86_trampoline_init): Likewise.
784 (ix86_expand_divmod_libfunc): Likewise.
785 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
786 (ia64_expand_compare): Likewise.
787 (ia64_profile_hook): Likewise.
788 * config/ia64/ia64.md (save_stack_nonlocal): Likewise.
789 (nonlocal_goto): Likewise.
790 (restore_stack_nonlocal): Likewise.
791 * config/m32r/m32r.c (block_move_call): Likewise.
792 (m32r_trampoline_init): Likewise.
793 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
794 * config/m68k/m68k.c (m68k_call_tls_get_addr): Likewise.
795 (m68k_call_m68k_read_tp): Likewise.
796 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr)
797 (microblaze_expand_divide): Likewise.
798 * config/mips/mips.h (mips_args): Likewise.
799 * config/mips/sdemtk.h (mips_sync_icache): Likewise.
800 (MIPS_ICACHE_SYNC): Likewise.
801 * config/nios2/nios2.c (nios2_emit_expensive_div): Likewise.
802 (nios2_trampoline_init): Likewise.
803 * config/pa/pa.c (hppa_tls_call): Likewise.
804 (pa_trampoline_init): Likewise.
805 * config/pa/pa.md (canonicalize_funcptr_for_compare): Likewise.
806 * config/powerpcspe/powerpcspe.c (rs6000_legitimize_tls_address)
807 (expand_strn_compare): Likewise.
808 (rs6000_generate_compare): Likewise.
809 (rs6000_expand_float128_convert): Likewise.
810 (output_profile_hook): Likewise.
811 (rs6000_trampoline_init): Likewise.
812 * config/powerpcspe/powerpcspe.md (neg<mode>2): Likewise.
813 * config/riscv/riscv.h (PROFILE_HOOK): Likewise.
814 * config/rs6000/rs6000-string.c (expand_strn_compare): Likewise.
815 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
816 (rs6000_generate_compare): Likewise.
817 (rs6000_expand_float128_convert): Likewise.
818 (output_profile_hook): Likewise.
819 (rs6000_trampoline_init): Likewise.
820 * config/rs6000/rs6000.md (neg<mode>2): Likewise.
821 * config/sh/sh.c (sh_trampoline_init): Likewise.
822 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Likewise.
823 (sparc_emit_float_lib_cmp): Likewise.
824 (sparc32_initialize_trampoline): Likewise.
825 (sparc64_initialize_trampoline): Likewise.
826 (sparc_profile_hook): Likewise.
827 * config/spu/spu.c (ea_load_store): Likewise.
828 * config/spu/spu.md (floatunssidf2): Likewise.
829 * config/tilegx/tilegx.c (tilegx_trampoline_init): Likewise.
830 * config/tilepro/tilepro.c (tilepro_trampoline_init): Likewise.
831 * config/visium/visium.c (expand_block_move_4): Likewise.
832 (expand_block_move_2): Likewise.
833 (expand_block_move_1): Likewise.
834 (expand_block_set_4): Likewise.
835 (expand_block_set_2): Likewise.
836 (expand_block_set_1): Likewise.
837 (visium_trampoline_init): Likewise.
838 (visium_profile_hook): Likewise.
839 * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Likewise.
840 (xtensa_setup_frame_addresses): Likewise.
841 (xtensa_trampoline_init): Likewise.
842 * except.c (sjlj_emit_function_enter): Likewise.
843 (sjlj_emit_function_exit): Likewise.
844 * explow.c (allocate_dynamic_stack_space): Likewise.
845 (probe_stack_range): Likewise.
846 * expr.c (convert_mode_scalar): Likewise.
847 * optabs.c (expand_binop): Likewise.
848 (expand_twoval_binop_libfunc): Likewise.
849 (expand_unop): Likewise.
850 (prepare_cmp_insn): Likewise.
851 (prepare_float_lib_cmp): Likewise.
852 (expand_float): Likewise.
853 (expand_fix): Likewise.
854 (expand_fixed_convert): Likewise.
855 (maybe_emit_sync_lock_test_and_set): Likewise.
856 (expand_atomic_compare_and_swap): Likewise.
857 (expand_mem_thread_fence): Likewise.
858 (expand_atomic_fetch_op): Likewise.
859
860 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
861
862 * doc/generic.texi (OpenACC): Adjust URL.
863 * doc/invoke.texi (C Dialect Options): Ditto.
864
865 2017-09-03 Uros Bizjak <ubizjak@gmail.com>
866
867 * config/i386/i386.md (*bt<mode>): Use nonimmediate_operand
868 predicate for operand 1. Add (m,<S>) constraint.
869 (*jcc_bt<mode>): Use nonimmediate_operand predicate for operand 1.
870 Prevent memory operand 1 with register operand 2.
871
872 2017-09-01 Segher Boessenkool <segher@kernel.crashing.org>
873
874 PR rtl-optimization/82024
875 * combine.c (try_combine): If the combination result is a PARALLEL,
876 and we only need to retain the SET in there that would be placed
877 at I2, check that we can place that at I3 instead, before doing so.
878
879 2017-09-01 Jakub Jelinek <jakub@redhat.com>
880
881 PR target/81766
882 * config/i386/i386.c (ix86_init_large_pic_reg): Return label
883 instead of void.
884 (ix86_init_pic_reg): Remember label from ix86_init_large_pic_reg,
885 if non-NULL and preceded by NOTE_INSN_BASIC_BLOCK, swap the note
886 and label.
887
888 2017-09-01 Joerg Sonnenberger <joerg@bec.de>
889 Jeff Law <law@redhat.com>
890
891 * varasm.c (bss_initializer_p): Do not put constants into .bss
892 (categorize_decl_for_section): Handle bss_initializer_p returning
893 false when DECL_INITIAL is NULL.
894
895 2017-09-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
896
897 PR target/82012
898 * config/s390/s390.c (s390_can_inline_p): New function.
899
900 2017-09-01 Jeff Law <law@redhat.com>
901
902 PR tree-optimization/82052
903 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
904 Always initialize the returned slot after a hash table miss
905 when INSERT is true.
906
907 2017-09-01 Alexander Monakov <amonakov@ispras.ru>
908
909 * config/s390/s390.md (mem_signal_fence): Remove.
910 * doc/md.texi (mem_signal_fence): Remove.
911 * optabs.c (expand_mem_signal_fence): Remove uses of mem_signal_fence.
912 Update comments.
913 * target-insns.def (mem_signal_fence): Remove.
914
915 2017-09-01 Jakub Jelinek <jakub@redhat.com>
916
917 PR sanitizer/81902
918 * doc/invoke.texi: Document -fsanitize=pointer-overflow.
919
920 PR sanitizer/81923
921 * asan.c (create_odr_indicator): Strip name encoding from assembler
922 name before appending it after __odr_asan_.
923
924 2017-09-01 Martin Liska <mliska@suse.cz>
925
926 PR tree-optimization/82059
927 * gimple-ssa-isolate-paths.c (isolate_path): Add profile and
928 frequency only when an edge is redirected.
929
930 2017-09-01 Claudiu Zissulescu <claziss@synopsys.com>
931
932 * config/arc/arc-c.c (__ARC_LPC_WIDTH__): Add builtin define.
933 * config/arc/arc.c (ARC_MAX_LOOP_LENGTH): Define.
934 (arc_conditional_register_usage): Remove ARC600 lp_count
935 exception.
936 (arc_file_start): Emit Tag_ARC_CPU_variation.
937 (arc_can_use_doloop_p): New conditions to use ZOLs.
938 (hwloop_fail): New function.
939 (hwloop_optimize): Likewise.
940 (hwloop_pattern_reg): Likewise.
941 (arc_doloop_hooks): New struct, to be used with reorg_loops.
942 (arc_reorg_loops): New function, calls reorg_loops.
943 (arc_reorg): Call arc_reorg_loops. Remove old ZOL handling.
944 (arc600_corereg_hazard): Remove ZOL checking, case handled by
945 hwloop_optimize.
946 (arc_loop_hazard): Remove function, functionality moved into
947 hwloop_optimize.
948 (arc_hazard): Remove arc_loop_hazard call.
949 (arc_adjust_insn_length): Remove ZOL handling, functionality moved
950 into hwloop_optimize.
951 (arc_label_align): Remove ZOL handling.
952 * config/arc/arc.h (LOOP_ALIGN): Changed to 0.
953 * config/arc/arc.md (doloop_begin): Remove pattern.
954 (doloop_begin_i): Likewise.
955 (doloop_end_i): Likewise.
956 (doloop_fallback): Likewise.
957 (doloop_fallback_m): Likewise.
958 (doloop_end): Reimplement expand.
959 (arc_lp): New pattern for LP instruction.
960 (loop_end): New pattern.
961 (loop_fail): Likewise.
962 (decrement_and_branch_until_zero): Likewise.
963 * config/arc/arc.opt (mlpc-width): New option.
964 * doc/invoke.texi (mlpc-width): Document option.
965
966 2017-09-01 Claudiu Zissulescu <claziss@synopsys.com>
967
968 * config/arc/arc.c (arc_ifcvt): Remove use of merge_blocks call.
969 (arc_ccfsm_advance): Fix checking for delay slots.
970 (arc_reorg): Add rtl dump after each call to arc_ifcvt.
971
972 2017-09-01 Claudiu Zissulescu <claziss@synopsys.com>
973
974 * config/arc/arc.md (movqi_insn): Add stores to save constant long
975 immediates.
976 (movhi_insn): Update store instruction constraint which are saving
977 6-bit short immediates.
978 (movsi_insn): Consider also short scaled load operations.
979 (zero_extendhisi2_i): Use Usd constraint instead of T.
980 (extendhisi2_i): Add q constraint.
981 (arc_clzsi2): Add type and length attributes.
982 (arc_ctzsi2): Likewise.
983 * config/arc/constraints.md (Usc): Update constraint, the
984 assembler can parse two relocations for a single instruction.
985
986 2017-09-01 Claudiu Zissulescu <claziss@synopsys.com>
987
988 * config/arc/arc.c (arc_use_anchors_for_symbol_p): New function.
989 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Define.
990
991 2017-08-31 Olivier Hainque <hainque@adacore.com>
992
993 * config.gcc (powerpc-wrs-vxworks|vxworksae|vxworksmils): Now
994 match as powerpc-wrs-vxworks*.
995
996 2017-08-31 James Greenhalgh <james.greenhalgh@arm.com>
997
998 * config/aarch64/aarch64-simd.md (aarch64_mla_elt_merge<mode>): Fix
999 register constraint for by-element operand.
1000 (aarch64_mls_elt_merge<mode>): Likewise.
1001
1002 2017-08-31 Claudiu Zissulescu <claziss@synopsys.com>
1003
1004 * config/arc/arc.c (arc_can_follow_jump): Check for short
1005 branches.
1006
1007 2017-08-31 Claudiu Zissulescu <claziss@synopsys.com>
1008
1009 * config.gcc: Use g.opt for arc.
1010 * config/arc/arc.c (LEGITIMATE_SCALED_ADDRESS_P): Deleted,
1011 functionality moved to ...
1012 (legitimate_scaled_address_p): New function, ...here.
1013 (LEGITIMATE_SMALL_DATA_OFFSET_P): New define.
1014 (LEGITIMATE_SMALL_DATA_ADDRESS_P): Use the above define.
1015 (legitimate_offset_address_p): Delete TARGET_NO_SDATA_SET
1016 condition.
1017 (arc_override_options): Handle G option.
1018 (arc_output_pic_addr_const): Correct function definition.
1019 (arc_legitimate_address_p): Use legitimate_scaled_address_p.
1020 (arc_decl_anon_ns_mem_p): Delete.
1021 (arc_in_small_data_p): Overhaul this function to take into
1022 consideration the value given via G option.
1023 (arc_rewrite_small_data_1): Renamed and corrected old
1024 arc_rewrite_small_data function.
1025 (arc_rewrite_small_data): New function.
1026 (small_data_pattern): Don't use pic_offset_table_rtx.
1027 * config/arc/arc.h (CC1_SPEC): Recognize G option.
1028 * config/arc/simdext.md (movmisalignv2hi): Use
1029 prepare_move_operands function.
1030 (mov*): Likewise.
1031 (movmisalign*): Likewise.
1032 * doc/invoke.texi (ARC options): Document -G option.
1033
1034 2017-08-31 Claudiu Zissulescu <claziss@synopsys.com>
1035
1036 * config/arc/arc-protos.h (compact_sda_memory_operand): Update
1037 prototype.
1038 * config/arc/arc.c (arc_print_operand): Output scalled address for
1039 sdata whenever is possible.
1040 (arc_in_small_data_p): Allow sdata for 64bit datum when double
1041 load/stores are available.
1042 (compact_sda_memory_operand): Check for the alignment required by
1043 code density instructions.
1044 * config/arc/arc.md (movsi_insn): Use newly introduced Us0
1045 constraint.
1046 * config/arc/constraints.md (Usd): Update constraint.
1047 (Us0): New constraint.
1048 (Usc): Update constraint.
1049
1050 2017-08-31 Richard Biener <rguenther@suse.de>
1051
1052 PR middle-end/82054
1053 * dwarf2out.c (dwarf2out_early_global_decl): Process each
1054 function only once.
1055
1056 2017-08-31 Tamar Christina <tamar.christina@arm.com>
1057
1058 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
1059 Resize type_signature.
1060
1061 2017-08-31 Richard Sandiford <richard.sandiford@linaro.org>
1062 Alan Hayward <alan.hayward@arm.com>
1063 David Sherwood <david.sherwood@arm.com>
1064
1065 * config/aarch64/aarch64.c (aarch64_base_register_rtx_p): Only allow
1066 subregs whose inner modes can be stored in GPRs.
1067 (aarch64_classify_index): Likewise.
1068
1069 2017-08-31 Richard Sandiford <richard.sandiford@linaro.org>
1070 Alan Hayward <alan.hayward@arm.com>
1071 David Sherwood <david.sherwood@arm.com>
1072
1073 * config/aarch64/iterators.md (V_cmp_result): Rename to...
1074 (V_INT_EQUIV): ...this.
1075 (v_cmp_result): Rename to...
1076 (v_int_equiv): ...this.
1077 * config/aarch64/aarch64.md (xorsign<mode>3): Update accordingly.
1078 * config/aarch64/aarch64-simd.md (xorsign<mode>3): Likewise.
1079 (copysign<mode>3): Likewise.
1080 (aarch64_simd_bsl<mode>_internal): Likewise.
1081 (aarch64_simd_bsl<mode>): Likewise.
1082 (vec_cmp<mode><mode>): Likewise.
1083 (vcond<mode><mode>): Likewise.
1084 (vcond<v_cmp_mixed><mode>): Likewise.
1085 (vcondu<mode><v_cmp_mixed>): Likewise.
1086 (aarch64_cm<optab><mode>): Likewise.
1087 (aarch64_cmtst<mode>): Likewise.
1088 (aarch64_fac<optab><mode>): Likewise.
1089 (vec_perm_const<mode>): Likewise.
1090 (vcond_mask_<mode><v_cmp_result>): Rename to...
1091 (vcond_mask_<mode><v_int_equiv>): ...this.
1092 (vec_cmp<mode><v_cmp_result>): Rename to...
1093 (vec_cmp<mode><v_int_equiv>): ...this.
1094
1095 2017-08-31 Richard Sandiford <richard.sandiford@linaro.org>
1096 Alan Hayward <alan.hayward@arm.com>
1097 David Sherwood <david.sherwood@arm.com>
1098
1099 * config/aarch64/aarch64-modes.def: Remove 32-, 48- and 64-byte
1100 vector modes.
1101 * config/aarch64/iterators.md (VRL2, VRL3, VRL4): Delete.
1102 * config/aarch64/aarch64.md (UNSPEC_LD2_DREG, UNSPEC_LD3_DREG)
1103 (UNSPEC_LD4_DREG): New unspecs.
1104 * config/aarch64/aarch64-simd.md (aarch64_ld2<mode>_dreg_le)
1105 (aarch64_ld2<mode>_dreg_be): Replace with...
1106 (aarch64_ld2<mode>_dreg): ...this pattern and use the new DREG
1107 unspec.
1108 (aarch64_ld3<mode>_dreg_le)
1109 (aarch64_ld3<mode>_dreg_be): Replace with...
1110 (aarch64_ld3<mode>_dreg): ...this pattern and use the new DREG
1111 unspec.
1112 (aarch64_ld4<mode>_dreg_le)
1113 (aarch64_ld4<mode>_dreg_be): Replace with...
1114 (aarch64_ld4<mode>_dreg): ...this pattern and use the new DREG
1115 unspec.
1116
1117 2017-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1118
1119 PR tree-optimization/81987
1120 * gimple-ssa-strength-reduction.c (insert_initializers): Don't
1121 insert an initializer in a location not dominated by the stride
1122 definition.
1123
1124 2017-08-30 Eric Botcazou <ebotcazou@adacore.com>
1125
1126 * tree-eh.c (lower_try_finally_switch): Set the location of the finally
1127 on the entire header of the finally block in the fallthru case.
1128
1129 2017-08-30 Eric Botcazou <ebotcazou@adacore.com>
1130
1131 * varasm.c (decode_addr_const): Deal with INDIRECT_REF <INTEGER_CST>.
1132
1133 2017-08-30 Pat Haugen <pthaugen@us.ibm.com>
1134
1135 * config/rs6000/rs6000.c (rs6000_emit_prologue_move_from_cr): Rename from
1136 rs6000_emit_move_from_cr and call renamed function.
1137 (rs6000_emit_prologue): Call renamed functions.
1138 * config/rs6000/rs6000.md (prologue_movesi_from_cr): Rename from
1139 movesi_from_cr, remove volatile CRs.
1140
1141 2017-08-30 Jon Beniston <jon@beniston.com>
1142 Richard Biener <rguenther@suse.de>
1143
1144 * tree-vect-patterns.c (vect_pattern_recog_1): Use VECTOR_TYPE_P instead
1145 of VECTOR_MODE_P check.
1146 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Allow single
1147 element vector types.
1148
1149 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1150
1151 * df.h (df_read_modify_subreg_p): Remove in favor of...
1152 * rtl.h (read_modify_subreg_p): ...this new function. Take a
1153 const_rtx instead of an rtx.
1154 * cprop.c (local_cprop_find_used_regs): Update accordingly.
1155 * df-problems.c (df_word_lr_mark_ref): Likewise.
1156 * ira-lives.c (mark_pseudo_reg_live): Likewise.
1157 (mark_pseudo_reg_dead): Likewise.
1158 (mark_ref_dead): Likewise.
1159 * reginfo.c (init_subregs_of_mode): Likewise.
1160 * sched-deps.c (sched_analyze_1): Likewise.
1161 * df-scan.c (df_def_record_1): Likewise.
1162 (df_uses_record): Likewise.
1163 (df_read_modify_subreg_p): Remove in favor of...
1164 * rtlanal.c (read_modify_subreg_p): ...this new function. Take a
1165 const_rtx instead of an rtx.
1166
1167 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1168 Alan Hayward <alan.hayward@arm.com>
1169 David Sherwood <david.sherwood@arm.com>
1170
1171 * rtl.h (partial_subreg_p): New function.
1172 * caller-save.c (save_call_clobbered_regs): Use it.
1173 * calls.c (expand_call): Likewise.
1174 * combine.c (combinable_i3pat): Likewise.
1175 (simplify_set): Likewise.
1176 (make_extraction): Likewise.
1177 (make_compound_operation_int): Likewise.
1178 (gen_lowpart_or_truncate): Likewise.
1179 (force_to_mode): Likewise.
1180 (make_field_assignment): Likewise.
1181 (reg_truncated_to_mode): Likewise.
1182 (record_truncated_value): Likewise.
1183 (move_deaths): Likewise.
1184 * cse.c (record_jump_cond): Likewise.
1185 (cse_insn): Likewise.
1186 * cselib.c (cselib_lookup_1): Likewise.
1187 * expmed.c (extract_bit_field_using_extv): Likewise.
1188 * function.c (assign_parm_setup_reg): Likewise.
1189 * ifcvt.c (noce_convert_multiple_sets): Likewise.
1190 * ira-build.c (create_insn_allocnos): Likewise.
1191 * lra-coalesce.c (merge_pseudos): Likewise.
1192 * lra-constraints.c (match_reload): Likewise.
1193 (simplify_operand_subreg): Likewise.
1194 (curr_insn_transform): Likewise.
1195 * lra-lives.c (process_bb_lives): Likewise.
1196 * lra.c (new_insn_reg): Likewise.
1197 (lra_substitute_pseudo): Likewise.
1198 * regcprop.c (mode_change_ok): Likewise.
1199 (maybe_mode_change): Likewise.
1200 (copyprop_hardreg_forward_1): Likewise.
1201 * reload.c (push_reload): Likewise.
1202 (find_reloads): Likewise.
1203 (find_reloads_subreg_address): Likewise.
1204 * reload1.c (alter_reg): Likewise.
1205 (eliminate_regs_1): Likewise.
1206 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
1207
1208 2017-08-30 David Edelsohn <dje.gcc@gmail.com>
1209
1210 * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Revert
1211 back to if statements, including unpack.
1212
1213 2017-08-30 Martin Liska <mliska@suse.cz>
1214
1215 PR inline-asm/82001
1216 * ipa-icf-gimple.c (func_checker::compare_tree_list_operand):
1217 Rename to ...
1218 (func_checker::compare_asm_inputs_outputs): ... this function.
1219 (func_checker::compare_gimple_asm): Use the function to compare
1220 also ASM constrains.
1221 * ipa-icf-gimple.h: Rename the function.
1222
1223 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1224 Alan Hayward <alan.hayward@arm.com>
1225 David Sherwood <david.sherwood@arm.com>
1226
1227 * coretypes.h (complex_mode): New type.
1228 * gdbhooks.py (build_pretty_printer): Handle it.
1229 * machmode.h (complex_mode): New class.
1230 (complex_mode::includes_p): New function.
1231 (is_complex_int_mode): Likewise.
1232 (is_complex_float_mode): Likewise.
1233 * genmodes.c (get_mode_class): Handle complex mode classes.
1234 * function.c (expand_function_end): Use is_complex_int_mode.
1235
1236 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1237 Alan Hayward <alan.hayward@arm.com>
1238 David Sherwood <david.sherwood@arm.com>
1239
1240 * coretypes.h (scalar_mode_pod): New typedef.
1241 * gdbhooks.py (build_pretty_printer): Handle it.
1242 * machmode.h (gt_ggc_mx, gt_pch_nx): New functions.
1243 * fixed-value.h (fixed_value::mode): Change type to scalar_mode_pod.
1244 * fold-const.c (fold_convert_const_int_from_fixed): Use scalar_mode.
1245 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields): Use
1246 as_a <scalar_mode>.
1247
1248 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1249 Alan Hayward <alan.hayward@arm.com>
1250 David Sherwood <david.sherwood@arm.com>
1251
1252 * machmode.h (mode_for_vector): Take a scalar_mode instead
1253 of a machine_mode.
1254 * stor-layout.c (mode_for_vector): Likewise.
1255 * explow.c (promote_mode): Use as_a <scalar_mode>.
1256 * sdbout.c (sdbout_parms): Use is_a <scalar_mode>.
1257
1258 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1259 Alan Hayward <alan.hayward@arm.com>
1260 David Sherwood <david.sherwood@arm.com>
1261
1262 * target.def (preferred_simd_mode): Take a scalar_mode
1263 instead of a machine_mode.
1264 * targhooks.h (default_preferred_simd_mode): Likewise.
1265 * targhooks.c (default_preferred_simd_mode): Likewise.
1266 * config/arc/arc.c (arc_preferred_simd_mode): Likewise.
1267 * config/arm/arm.c (arm_preferred_simd_mode): Likewise.
1268 * config/c6x/c6x.c (c6x_preferred_simd_mode): Likewise.
1269 * config/epiphany/epiphany.c (epiphany_preferred_simd_mode): Likewise.
1270 * config/i386/i386.c (ix86_preferred_simd_mode): Likewise.
1271 * config/mips/mips.c (mips_preferred_simd_mode): Likewise.
1272 * config/nvptx/nvptx.c (nvptx_preferred_simd_mode): Likewise.
1273 * config/powerpcspe/powerpcspe.c (rs6000_preferred_simd_mode):
1274 Likewise.
1275 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Likewise.
1276 * config/s390/s390.c (s390_preferred_simd_mode): Likewise.
1277 * config/sparc/sparc.c (sparc_preferred_simd_mode): Likewise.
1278 * config/aarch64/aarch64.c (aarch64_preferred_simd_mode): Likewise.
1279 (aarch64_simd_scalar_immediate_valid_for_move): Update accordingly.
1280 * doc/tm.texi: Regenerate.
1281 * optabs-query.c (can_vec_mask_load_store_p): Return false for
1282 non-scalar modes.
1283
1284 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1285 Alan Hayward <alan.hayward@arm.com>
1286 David Sherwood <david.sherwood@arm.com>
1287
1288 * target.def (scalar_mode_supported_p): Take a scalar_mode
1289 instead of a machine_mode.
1290 * targhooks.h (default_scalar_mode_supported_p): Likewise.
1291 * targhooks.c (default_scalar_mode_supported_p): Likewise.
1292 * config/aarch64/aarch64.c (aarch64_scalar_mode_supported_p): Likewise.
1293 * config/alpha/alpha.c (alpha_scalar_mode_supported_p): Likewise.
1294 * config/arm/arm.c (arm_scalar_mode_supported_p): Likewise.
1295 * config/avr/avr.c (avr_scalar_mode_supported_p): Likewise.
1296 * config/c6x/c6x.c (c6x_scalar_mode_supported_p): Likewise.
1297 * config/i386/i386.c (ix86_scalar_mode_supported_p): Likewise.
1298 * config/ia64/ia64.c (ia64_scalar_mode_supported_p): Likewise.
1299 * config/mips/mips.c (mips_scalar_mode_supported_p): Likewise.
1300 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): Likewise.
1301 * config/pa/pa.c (pa_scalar_mode_supported_p): Likewise.
1302 * config/pdp11/pdp11.c (pdp11_scalar_mode_supported_p): Likewise.
1303 * config/powerpcspe/powerpcspe.c (rs6000_scalar_mode_supported_p):
1304 Likewise.
1305 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Likewise.
1306 * config/s390/s390.c (s390_scalar_mode_supported_p): Likewise.
1307 * config/spu/spu.c (spu_scalar_mode_supported_p): Likewise.
1308 * config/tilegx/tilegx.c (tilegx_scalar_mode_supported_p): Likewise.
1309 * config/tilepro/tilepro.c (tilepro_scalar_mode_supported_p):
1310 Likewise.
1311 * doc/tm.texi: Regenerate.
1312
1313 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1314 Alan Hayward <alan.hayward@arm.com>
1315 David Sherwood <david.sherwood@arm.com>
1316
1317 * coretypes.h (opt_scalar_mode): New typedef.
1318 * gdbhooks.py (build_pretty_printers): Handle it.
1319 * machmode.h (mode_iterator::get_2xwider): Add overload for
1320 opt_mode<T>.
1321 * emit-rtl.c (init_emit_once): Use opt_scalar_mode when iterating
1322 over scalar modes.
1323 * expr.c (convert_mode_scalar): Likewise.
1324 * omp-low.c (omp_clause_aligned_alignment): Likewise.
1325 * optabs.c (expand_float): Likewise.
1326 (expand_fix): Likewise.
1327 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
1328
1329 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1330 Alan Hayward <alan.hayward@arm.com>
1331 David Sherwood <david.sherwood@arm.com>
1332
1333 * optabs.c (expand_float): Explicitly check for scalars before
1334 using a branching expansion.
1335 (expand_fix): Likewise.
1336
1337 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1338 Alan Hayward <alan.hayward@arm.com>
1339 David Sherwood <david.sherwood@arm.com>
1340
1341 * expr.c (convert_mode): Split scalar handling out into...
1342 (convert_mode_scalar): ...this new function. Treat the modes
1343 as scalar_modes.
1344
1345 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1346 Alan Hayward <alan.hayward@arm.com>
1347 David Sherwood <david.sherwood@arm.com>
1348
1349 * omp-expand.c (expand_omp_atomic): Use is_int_mode, is_float_mode
1350 and scalar_mode.
1351 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Likewise.
1352
1353 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1354 Alan Hayward <alan.hayward@arm.com>
1355 David Sherwood <david.sherwood@arm.com>
1356
1357 * fixed-value.h (fixed_from_double_int): Take a scalar_mode
1358 rather than a machine_mode.
1359 (fixed_from_string): Likewise.
1360 (fixed_convert): Likewise.
1361 (fixed_convert_from_int): Likewise.
1362 (fixed_convert_from_real): Likewise.
1363 (real_convert_from_fixed): Likewise.
1364 * fixed-value.c (fixed_from_double_int): Likewise.
1365 (fixed_from_string): Likewise.
1366 (fixed_convert): Likewise.
1367 (fixed_convert_from_int): Likewise.
1368 (fixed_convert_from_real): Likewise.
1369 (real_convert_from_fixed): Likewise.
1370 * config/avr/avr.c (avr_out_round): Use as_a <scalar_mode>.
1371
1372 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1373 Alan Hayward <alan.hayward@arm.com>
1374 David Sherwood <david.sherwood@arm.com>
1375
1376 * emit-rtl.c (immed_double_const): Use is_a <scalar_mode> instead
1377 of separate mode class checks. Do not allow vector modes here.
1378 (immed_wide_int_const): Use as_a <scalar_mode>.
1379 * explow.c (trunc_int_for_mode): Likewise.
1380 * rtl.h (wi::int_traits<rtx_mode_t>::get_precision): Likewise.
1381 (wi::shwi): Likewise.
1382 (wi::min_value): Likewise.
1383 (wi::max_value): Likewise.
1384 * dwarf2out.c (loc_descriptor): Likewise.
1385 * simplify-rtx.c (simplify_immed_subreg): Fix rtx_mode_t argument
1386 for CONST_WIDE_INT.
1387
1388 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1389 Alan Hayward <alan.hayward@arm.com>
1390 David Sherwood <david.sherwood@arm.com>
1391
1392 * tree.h (SCALAR_TYPE_MODE): New macro.
1393 * expr.c (expand_expr_addr_expr_1): Use it.
1394 (expand_expr_real_2): Likewise.
1395 * fold-const.c (fold_convert_const_fixed_from_fixed): Likeise.
1396 (fold_convert_const_fixed_from_int): Likewise.
1397 (fold_convert_const_fixed_from_real): Likewise.
1398 (native_encode_fixed): Likewise
1399 (native_encode_complex): Likewise
1400 (native_encode_vector): Likewise.
1401 (native_interpret_fixed): Likewise.
1402 (native_interpret_real): Likewise.
1403 (native_interpret_complex): Likewise.
1404 (native_interpret_vector): Likewise.
1405 * omp-simd-clone.c (simd_clone_adjust_return_type): Likewise.
1406 (simd_clone_adjust_argument_types): Likewise.
1407 (simd_clone_init_simd_arrays): Likewise.
1408 (simd_clone_adjust): Likewise.
1409 * stor-layout.c (layout_type): Likewise.
1410 * tree.c (build_minus_one_cst): Likewise.
1411 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
1412 * tree-inline.c (estimate_move_cost): Likewise.
1413 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Likewise.
1414 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
1415 (vectorizable_reduction): Likewise.
1416 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Likewise.
1417 (vect_recog_mixed_size_cond_pattern): Likewise.
1418 (check_bool_pattern): Likewise.
1419 (adjust_bool_pattern): Likewise.
1420 (search_type_for_mask_1): Likewise.
1421 * tree-vect-slp.c (vect_schedule_slp_instance): Likewise.
1422 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
1423 (vectorizable_load): Likewise.
1424 (vectorizable_store): Likewise.
1425 * ubsan.c (ubsan_encode_value): Likewise.
1426 * varasm.c (output_constant): Likewise.
1427
1428 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1429 Alan Hayward <alan.hayward@arm.com>
1430 David Sherwood <david.sherwood@arm.com>
1431
1432 * coretypes.h (scalar_mode): New class.
1433 * machmode.h (scalar_mode): Likewise.
1434 (scalar_mode::includes_p): New function.
1435 (mode_to_inner): Return a scalar_mode rather than a machine_mode.
1436 * gdbhooks.py (build_pretty_printers): Handle scalar_mode.
1437 * genmodes.c (get_mode_class): Handle remaining scalar modes.
1438 * cfgexpand.c (expand_debug_expr): Use scalar_mode.
1439 * expmed.c (store_bit_field_1): Likewise.
1440 (extract_bit_field_1): Likewise.
1441 * expr.c (write_complex_part): Likewise.
1442 (read_complex_part): Likewise.
1443 (emit_move_complex_push): Likewise.
1444 (expand_expr_real_2): Likewise.
1445 * function.c (assign_parm_setup_reg): Likewise.
1446 (assign_parms_unsplit_complex): Likewise.
1447 * optabs.c (expand_binop): Likewise.
1448 * rtlanal.c (subreg_get_info): Likewise.
1449 * simplify-rtx.c (simplify_immed_subreg): Likewise.
1450 * varasm.c (output_constant_pool_2): Likewise.
1451
1452 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1453 Alan Hayward <alan.hayward@arm.com>
1454 David Sherwood <david.sherwood@arm.com>
1455
1456 * expmed.c (extract_high_half): Use scalar_int_mode and remove
1457 assertion.
1458 (expmed_mult_highpart_optab): Likewise.
1459 (expmed_mult_highpart): Likewise.
1460
1461 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1462 Alan Hayward <alan.hayward@arm.com>
1463 David Sherwood <david.sherwood@arm.com>
1464
1465 * builtins.h (builtin_strncpy_read_str): Take a scalar_int_mode
1466 instead of a machine_mode.
1467 (builtin_memset_read_str): Likewise.
1468 * builtins.c (c_readstr): Likewise.
1469 (builtin_memcpy_read_str): Likewise.
1470 (builtin_strncpy_read_str): Likewise.
1471 (builtin_memset_read_str): Likewise.
1472 (builtin_memset_gen_str): Likewise.
1473 (expand_builtin_signbit): Use scalar_int_mode for local variables.
1474 * cfgexpand.c (convert_debug_memory_address): Take a scalar_int_mode
1475 instead of a machine_mode.
1476 * combine.c (simplify_if_then_else): Use scalar_int_mode for local
1477 variables.
1478 (make_extraction): Likewise.
1479 (try_widen_shift_mode): Take and return scalar_int_modes instead
1480 of machine_modes.
1481 * config/aarch64/aarch64.c (aarch64_libgcc_cmp_return_mode): Return
1482 a scalar_int_mode instead of a machine_mode.
1483 * config/avr/avr.c (avr_addr_space_address_mode): Likewise.
1484 (avr_addr_space_pointer_mode): Likewise.
1485 * config/cr16/cr16.c (cr16_unwind_word_mode): Likewise.
1486 * config/msp430/msp430.c (msp430_addr_space_pointer_mode): Likewise.
1487 (msp430_unwind_word_mode): Likewise.
1488 * config/spu/spu.c (spu_unwind_word_mode): Likewise.
1489 (spu_addr_space_pointer_mode): Likewise.
1490 (spu_addr_space_address_mode): Likewise.
1491 (spu_libgcc_cmp_return_mode): Likewise.
1492 (spu_libgcc_shift_count_mode): Likewise.
1493 * config/rl78/rl78.c (rl78_addr_space_address_mode): Likewise.
1494 (rl78_addr_space_pointer_mode): Likewise.
1495 (fl78_unwind_word_mode): Likewise.
1496 (rl78_valid_pointer_mode): Take a scalar_int_mode instead of a
1497 machine_mode.
1498 * config/alpha/alpha.c (vms_valid_pointer_mode): Likewise.
1499 * config/ia64/ia64.c (ia64_vms_valid_pointer_mode): Likewise.
1500 * config/mips/mips.c (mips_mode_rep_extended): Likewise.
1501 (mips_valid_pointer_mode): Likewise.
1502 * config/tilegx/tilegx.c (tilegx_mode_rep_extended): Likewise.
1503 * config/ft32/ft32.c (ft32_valid_pointer_mode): Likewise.
1504 (ft32_addr_space_pointer_mode): Return a scalar_int_mode instead
1505 of a machine_mode.
1506 (ft32_addr_space_address_mode): Likewise.
1507 * config/m32c/m32c.c (m32c_valid_pointer_mode): Take a
1508 scalar_int_mode instead of a machine_mode.
1509 (m32c_addr_space_pointer_mode): Return a scalar_int_mode instead
1510 of a machine_mode.
1511 (m32c_addr_space_address_mode): Likewise.
1512 * config/powerpcspe/powerpcspe.c (rs6000_abi_word_mode): Likewise.
1513 (rs6000_eh_return_filter_mode): Likewise.
1514 * config/rs6000/rs6000.c (rs6000_abi_word_mode): Likewise.
1515 (rs6000_eh_return_filter_mode): Likewise.
1516 * config/s390/s390.c (s390_libgcc_cmp_return_mode): Likewise.
1517 (s390_libgcc_shift_count_mode): Likewise.
1518 (s390_unwind_word_mode): Likewise.
1519 (s390_valid_pointer_mode): Take a scalar_int_mode rather than a
1520 machine_mode.
1521 * target.def (mode_rep_extended): Likewise.
1522 (valid_pointer_mode): Likewise.
1523 (addr_space.valid_pointer_mode): Likewise.
1524 (eh_return_filter_mode): Return a scalar_int_mode rather than
1525 a machine_mode.
1526 (libgcc_cmp_return_mode): Likewise.
1527 (libgcc_shift_count_mode): Likewise.
1528 (unwind_word_mode): Likewise.
1529 (addr_space.pointer_mode): Likewise.
1530 (addr_space.address_mode): Likewise.
1531 * doc/tm.texi: Regenerate.
1532 * dojump.c (prefer_and_bit_test): Take a scalar_int_mode rather than
1533 a machine_mode.
1534 (do_jump): Use scalar_int_mode for local variables.
1535 * dwarf2cfi.c (init_return_column_size): Take a scalar_int_mode
1536 rather than a machine_mode.
1537 * dwarf2out.c (convert_descriptor_to_mode): Likewise.
1538 (scompare_loc_descriptor_wide): Likewise.
1539 (scompare_loc_descriptor_narrow): Likewise.
1540 * emit-rtl.c (adjust_address_1): Use scalar_int_mode for local
1541 variables.
1542 * except.c (sjlj_emit_dispatch_table): Likewise.
1543 (expand_builtin_eh_copy_values): Likewise.
1544 * explow.c (convert_memory_address_addr_space_1): Likewise.
1545 Take a scalar_int_mode rather than a machine_mode.
1546 (convert_memory_address_addr_space): Take a scalar_int_mode rather
1547 than a machine_mode.
1548 (memory_address_addr_space): Use scalar_int_mode for local variables.
1549 * expmed.h (expand_mult_highpart_adjust): Take a scalar_int_mode
1550 rather than a machine_mode.
1551 * expmed.c (mask_rtx): Likewise.
1552 (init_expmed_one_conv): Likewise.
1553 (expand_mult_highpart_adjust): Likewise.
1554 (extract_high_half): Likewise.
1555 (expmed_mult_highpart_optab): Likewise.
1556 (expmed_mult_highpart): Likewise.
1557 (expand_smod_pow2): Likewise.
1558 (expand_sdiv_pow2): Likewise.
1559 (emit_store_flag_int): Likewise.
1560 (adjust_bit_field_mem_for_reg): Use scalar_int_mode for local
1561 variables.
1562 (extract_low_bits): Likewise.
1563 * expr.h (by_pieces_constfn): Take a scalar_int_mode rather than
1564 a machine_mode.
1565 * expr.c (pieces_addr::adjust): Likewise.
1566 (can_store_by_pieces): Likewise.
1567 (store_by_pieces): Likewise.
1568 (clear_by_pieces_1): Likewise.
1569 (expand_expr_addr_expr_1): Likewise.
1570 (expand_expr_addr_expr): Use scalar_int_mode for local variables.
1571 (expand_expr_real_1): Likewise.
1572 (try_casesi): Likewise.
1573 * final.c (shorten_branches): Likewise.
1574 * fold-const.c (fold_convert_const_int_from_fixed): Change the
1575 type of "mode" to machine_mode.
1576 * internal-fn.c (expand_arith_overflow_result_store): Take a
1577 scalar_int_mode rather than a machine_mode.
1578 (expand_mul_overflow): Use scalar_int_mode for local variables.
1579 * loop-doloop.c (doloop_modify): Likewise.
1580 (doloop_optimize): Likewise.
1581 * optabs.c (expand_subword_shift): Take a scalar_int_mode rather
1582 than a machine_mode.
1583 (expand_doubleword_shift_condmove): Likewise.
1584 (expand_doubleword_shift): Likewise.
1585 (expand_doubleword_clz): Likewise.
1586 (expand_doubleword_popcount): Likewise.
1587 (expand_doubleword_parity): Likewise.
1588 (expand_absneg_bit): Use scalar_int_mode for local variables.
1589 (prepare_float_lib_cmp): Likewise.
1590 * rtl.h (convert_memory_address_addr_space_1): Take a scalar_int_mode
1591 rather than a machine_mode.
1592 (convert_memory_address_addr_space): Likewise.
1593 (get_mode_bounds): Likewise.
1594 (get_address_mode): Return a scalar_int_mode rather than a
1595 machine_mode.
1596 * rtlanal.c (get_address_mode): Likewise.
1597 * stor-layout.c (get_mode_bounds): Take a scalar_int_mode rather
1598 than a machine_mode.
1599 * targhooks.c (default_mode_rep_extended): Likewise.
1600 (default_valid_pointer_mode): Likewise.
1601 (default_addr_space_valid_pointer_mode): Likewise.
1602 (default_eh_return_filter_mode): Return a scalar_int_mode rather
1603 than a machine_mode.
1604 (default_libgcc_cmp_return_mode): Likewise.
1605 (default_libgcc_shift_count_mode): Likewise.
1606 (default_unwind_word_mode): Likewise.
1607 (default_addr_space_pointer_mode): Likewise.
1608 (default_addr_space_address_mode): Likewise.
1609 * targhooks.h (default_eh_return_filter_mode): Likewise.
1610 (default_libgcc_cmp_return_mode): Likewise.
1611 (default_libgcc_shift_count_mode): Likewise.
1612 (default_unwind_word_mode): Likewise.
1613 (default_addr_space_pointer_mode): Likewise.
1614 (default_addr_space_address_mode): Likewise.
1615 (default_mode_rep_extended): Take a scalar_int_mode rather than
1616 a machine_mode.
1617 (default_valid_pointer_mode): Likewise.
1618 (default_addr_space_valid_pointer_mode): Likewise.
1619 * tree-ssa-address.c (addr_for_mem_ref): Use scalar_int_mode for
1620 local variables.
1621 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Take a scalar_int_mode
1622 rather than a machine_mode.
1623 * tree-switch-conversion.c (array_value_type): Use scalar_int_mode
1624 for local variables.
1625 * tree-vrp.c (simplify_float_conversion_using_ranges): Likewise.
1626 * var-tracking.c (use_narrower_mode): Take a scalar_int_mode rather
1627 than a machine_mode.
1628
1629 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1630 Alan Hayward <alan.hayward@arm.com>
1631 David Sherwood <david.sherwood@arm.com>
1632
1633 * dojump.c (do_jump_by_parts_greater_rtx): Change the type of
1634 the mode argument to scalar_int_mode.
1635 (do_jump_by_parts_zero_rtx): Likewise.
1636 (do_jump_by_parts_equality_rtx): Likewise.
1637 (do_jump_by_parts_greater): Take a mode argument.
1638 (do_jump_by_parts_equality): Likewise.
1639 (do_jump_1): Update calls accordingly.
1640
1641 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1642 Alan Hayward <alan.hayward@arm.com>
1643 David Sherwood <david.sherwood@arm.com>
1644
1645 * is-a.h (safe_dyn_cast): New function.
1646 * rtl.h (rtx_jump_table_data::get_data_mode): New function.
1647 (jump_table_for_label): Likewise.
1648 * final.c (final_addr_vec_align): Take an rtx_jump_table_data *
1649 instead of an rtx_insn *.
1650 (shorten_branches): Use dyn_cast instead of LABEL_P and
1651 JUMP_TABLE_DATA_P. Use jump_table_for_label and
1652 rtx_jump_table_data::get_data_mode.
1653 (final_scan_insn): Likewise.
1654
1655 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1656 Alan Hayward <alan.hayward@arm.com>
1657 David Sherwood <david.sherwood@arm.com>
1658
1659 * combine.c (try_combine): Use is_a <scalar_int_mode> when
1660 trying to combine a full-register integer set with a subreg
1661 integer set.
1662
1663 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1664 Alan Hayward <alan.hayward@arm.com>
1665 David Sherwood <david.sherwood@arm.com>
1666
1667 * expr.c (expand_expr_addr_expr): Add a new_tmode local variable
1668 that is always either address_mode or pointer_mode.
1669
1670 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1671 Alan Hayward <alan.hayward@arm.com>
1672 David Sherwood <david.sherwood@arm.com>
1673
1674 * expr.c (expand_expr_real_2): Use word_mode instead of innermode
1675 when the two are known to be equal.
1676
1677 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1678 Alan Hayward <alan.hayward@arm.com>
1679 David Sherwood <david.sherwood@arm.com>
1680
1681 * simplify-rtx.c (simplify_const_unary_operation): Use
1682 is_a <scalar_int_mode> instead of checking for a nonzero
1683 precision. Forcibly convert op_mode to a scalar_int_mode
1684 in that case. More clearly differentiate the operand and
1685 result modes and use the former when deciding what the value
1686 of a count-bits operation should be. Use is_int_mode instead
1687 of checking for a MODE_INT. Remove redundant check for whether
1688 this mode has a zero precision.
1689
1690 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1691 Alan Hayward <alan.hayward@arm.com>
1692 David Sherwood <david.sherwood@arm.com>
1693
1694 * optabs.c (widen_leading): Change the type of the mode argument
1695 to scalar_int_mode. Use opt_scalar_int_mode for the mode iterator.
1696 (widen_bswap): Likewise.
1697 (expand_parity): Likewise.
1698 (expand_ctz): Change the type of the mode argument to scalar_int_mode.
1699 (expand_ffs): Likewise.
1700 (epand_unop): Check for scalar integer modes before calling the
1701 above routines.
1702
1703 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1704 Alan Hayward <alan.hayward@arm.com>
1705 David Sherwood <david.sherwood@arm.com>
1706
1707 * expr.c (const_scalar_mask_from_tree): Add a mode argument.
1708 Expand commentary.
1709 (expand_expr_real_1): Update call accordingly.
1710
1711 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1712 Alan Hayward <alan.hayward@arm.com>
1713 David Sherwood <david.sherwood@arm.com>
1714
1715 * expmed.c (store_bit_field_using_insv): Add op0_mode and
1716 value_mode arguments. Use scalar_int_mode internally.
1717 (store_bit_field_1): Rename the new integer mode from imode
1718 to op0_mode and use it instead of GET_MODE (op0). Update calls
1719 to store_split_bit_field, store_bit_field_using_insv and
1720 store_fixed_bit_field.
1721 (store_fixed_bit_field): Add op0_mode and value_mode arguments.
1722 Use scalar_int_mode internally. Use a bit count rather than a mode
1723 when calculating the largest bit size for get_best_mode.
1724 Update calls to store_split_bit_field and store_fixed_bit_field_1.
1725 (store_fixed_bit_field_1): Add mode and value_mode arguments.
1726 Remove assertion that OP0 has a scalar integer mode.
1727 (store_split_bit_field): Add op0_mode and value_mode arguments.
1728 Update calls to extract_fixed_bit_field.
1729 (extract_bit_field_using_extv): Add an op0_mode argument.
1730 Use scalar_int_mode internally.
1731 (extract_bit_field_1): Rename the new integer mode from imode to
1732 op0_mode and use it instead of GET_MODE (op0). Update calls to
1733 extract_split_bit_field, extract_bit_field_using_extv and
1734 extract_fixed_bit_field.
1735 (extract_fixed_bit_field): Add an op0_mode argument. Update calls
1736 to extract_split_bit_field and extract_fixed_bit_field_1.
1737 (extract_fixed_bit_field_1): Add a mode argument. Remove assertion
1738 that OP0 has a scalar integer mode. Use as_a <scalar_int_mode>
1739 on the target mode.
1740 (extract_split_bit_field): Add an op0_mode argument. Update call
1741 to extract_fixed_bit_field.
1742
1743 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1744 Alan Hayward <alan.hayward@arm.com>
1745 David Sherwood <david.sherwood@arm.com>
1746
1747 * cse.c (cse_insn): Use opt_scalar_int_mode for the mode iterator.
1748 * explow.c (hard_function_value): Likewise.
1749 * expmed.c (extract_fixed_bit_field_1): Likewise. Move the
1750 convert_to_mode call outside the loop.
1751 * expr.c (alignment_for_piecewise_move): Use opt_scalar_int_mode
1752 for the mode iterator. Require the mode specified by max_pieces
1753 to exist.
1754 (emit_block_move_via_movmem): Use opt_scalar_int_mode for the
1755 mode iterator.
1756 (copy_blkmode_to_reg): Likewise.
1757 (set_storage_via_setmem): Likewise.
1758 * optabs.c (prepare_cmp_insn): Likewise.
1759 * rtlanal.c (init_num_sign_bit_copies_in_rep): Likewise.
1760 * stor-layout.c (finish_bitfield_representative): Likewise.
1761
1762 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1763 Alan Hayward <alan.hayward@arm.com>
1764 David Sherwood <david.sherwood@arm.com>
1765
1766 * rtl.h (subreg_unpromoted_mode, subreg_promoted_mode): New functions.
1767 * expr.c (convert_move): Use them.
1768 (convert_modes): Likewise.
1769 (store_expr_with_bounds): Likewise.
1770
1771 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1772 Alan Hayward <alan.hayward@arm.com>
1773 David Sherwood <david.sherwood@arm.com>
1774
1775 * rtl.h (rtl_hooks::reg_nonzero_bits): Add a scalar_int_mode
1776 parameter for the mode of "x". Remove the "known_x", "known_mode"
1777 and "known_ret" arguments. Change the type of the mode argument
1778 to scalar_int_mode.
1779 (rtl_hooks:reg_num_sign_bit_copies): Likewise.
1780 * combine.c (reg_nonzero_bits_for_combine): Update accordingly.
1781 (reg_num_sign_bit_copies_for_combine): Likewise.
1782 * rtlanal.c (nonzero_bits1): Likewise.
1783 (num_sign_bit_copies1): Likewise.
1784 * rtlhooks-def.h (reg_nonzero_bits_general): Likewise.
1785 (reg_num_sign_bit_copies_general): Likewise.
1786 * rtlhooks.c (reg_num_sign_bit_copies_general): Likewise.
1787 (reg_nonzero_bits_general): Likewise.
1788
1789 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1790 Alan Hayward <alan.hayward@arm.com>
1791 David Sherwood <david.sherwood@arm.com>
1792
1793 * rtlanal.c (num_sign_bit_copies): Handle VOIDmode here rather
1794 than in subroutines. Return 1 for non-integer modes.
1795 (cached_num_sign_bit_copies): Change the type of the mode parameter
1796 to scalar_int_mode.
1797 (num_sign_bit_copies1): Likewise. Remove early exit for other mode
1798 classes. Handle CONST_INT_P first and then check whether X also
1799 has a scalar integer mode. Check the same thing for inner registers
1800 of a SUBREG and for values that are being extended or truncated.
1801
1802 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1803 Alan Hayward <alan.hayward@arm.com>
1804 David Sherwood <david.sherwood@arm.com>
1805
1806 * rtlanal.c (nonzero_bits): Handle VOIDmode here rather than
1807 in subroutines. Return the mode mask for non-integer modes.
1808 (cached_nonzero_bits): Change the type of the mode parameter
1809 to scalar_int_mode.
1810 (nonzero_bits1): Likewise. Remove early exit for other mode
1811 classes. Handle CONST_INT_P first and then check whether X
1812 also has a scalar integer mode.
1813
1814 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1815 Alan Hayward <alan.hayward@arm.com>
1816 David Sherwood <david.sherwood@arm.com>
1817
1818 * expr.c (widest_int_mode_for_size): Make the comment match the code.
1819 Return a scalar_int_mode and assert that the size is greater than
1820 one byte.
1821 (by_pieces_ninsns): Update accordingly and remove VOIDmode handling.
1822 (op_by_pieces_d::op_by_pieces_d): Likewise.
1823 (op_by_pieces_d::run): Likewise.
1824 (can_store_by_pieces): Likewise.
1825
1826 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1827 Alan Hayward <alan.hayward@arm.com>
1828 David Sherwood <david.sherwood@arm.com>
1829
1830 * combine.c (extract_left_shift): Add a mode argument and update
1831 recursive calls.
1832 (make_compound_operation_int): Change the type of the mode parameter
1833 to scalar_int_mode and update the call to extract_left_shift.
1834
1835 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1836 Alan Hayward <alan.hayward@arm.com>
1837 David Sherwood <david.sherwood@arm.com>
1838
1839 * combine.c (simplify_and_const_int): Change the type of the mode
1840 parameter to scalar_int_mode.
1841 (simplify_and_const_int_1): Likewise. Update recursive call.
1842
1843 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1844 Alan Hayward <alan.hayward@arm.com>
1845 David Sherwood <david.sherwood@arm.com>
1846
1847 * combine.c (simplify_compare_const): Check that the mode is a
1848 scalar_int_mode (rather than VOIDmode) before testing its
1849 precision.
1850 (simplify_comparison): Move COMPARISON_P handling out of the
1851 loop and restrict the latter part of the loop to scalar_int_modes.
1852 Check is_a <scalar_int_mode> before calling HWI_COMPUTABLE_MODE_P
1853 and when considering SUBREG_REGs. Use is_int_mode instead of
1854 checking GET_MODE_CLASS against MODE_INT.
1855
1856 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1857 Alan Hayward <alan.hayward@arm.com>
1858 David Sherwood <david.sherwood@arm.com>
1859
1860 * combine.c (try_widen_shift_mode): Move check for equal modes to...
1861 (simplify_shift_const_1): ...here. Use scalar_int_mode for
1862 shift_unit_mode and for modes involved in scalar shifts.
1863
1864 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1865 Alan Hayward <alan.hayward@arm.com>
1866 David Sherwood <david.sherwood@arm.com>
1867
1868 * combine.c (force_int_to_mode): New function, split out from...
1869 (force_to_mode): ...here. Keep xmode up-to-date and use it
1870 instead of GET_MODE (x).
1871
1872 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1873 Alan Hayward <alan.hayward@arm.com>
1874 David Sherwood <david.sherwood@arm.com>
1875
1876 * optabs-query.h (extraction_insn::struct_mode): Change type to
1877 opt_scalar_int_mode and update comment.
1878 (extraction_insn::field_mode): Change type to scalar_int_mode.
1879 (extraction_insn::pos_mode): Likewise.
1880 * combine.c (make_extraction): Update accordingly.
1881 * optabs-query.c (get_traditional_extraction_insn): Likewise.
1882 (get_optab_extraction_insn): Likewise.
1883 * recog.c (simplify_while_replacing): Likewise.
1884 * expmed.c (narrow_bit_field_mem): Change the type of the mode
1885 parameter to opt_scalar_int_mode.
1886
1887 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1888 Alan Hayward <alan.hayward@arm.com>
1889 David Sherwood <david.sherwood@arm.com>
1890
1891 * machmode.h (bit_field_mode_iterator::next_mode): Take a pointer
1892 to a scalar_int_mode instead of a machine_mode.
1893 (bit_field_mode_iterator::m_mode): Change type to opt_scalar_int_mode.
1894 (get_best_mode): Return a boolean and use a pointer argument to store
1895 the selected mode. Replace the limit mode parameter with a bit limit.
1896 * expmed.c (adjust_bit_field_mem_for_reg): Use scalar_int_mode
1897 for the values returned by bit_field_mode_iterator::next_mode.
1898 (store_bit_field): Update call to get_best_mode.
1899 (store_fixed_bit_field): Likewise.
1900 (extract_fixed_bit_field): Likewise.
1901 * expr.c (optimize_bitfield_assignment_op): Likewise.
1902 * fold-const.c (optimize_bit_field_compare): Likewise.
1903 (fold_truth_andor_1): Likewise.
1904 * stor-layout.c (bit_field_mode_iterator::next_mode): As above.
1905 Update for new type of m_mode.
1906 (get_best_mode): As above.
1907
1908 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1909 Alan Hayward <alan.hayward@arm.com>
1910 David Sherwood <david.sherwood@arm.com>
1911
1912 * expmed.c (strict_volatile_bitfield_p): Change the type of fieldmode
1913 to scalar_int_mode. Remove check for SCALAR_INT_MODE_P.
1914 (store_bit_field): Check is_a <scalar_int_mode> before calling
1915 strict_volatile_bitfield_p.
1916 (extract_bit_field): Likewise.
1917
1918 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1919 Alan Hayward <alan.hayward@arm.com>
1920 David Sherwood <david.sherwood@arm.com>
1921
1922 * target.def (cstore_mode): Return a scalar_int_mode.
1923 * doc/tm.texi: Regenerate.
1924 * config/sparc/sparc.c (sparc_cstore_mode): Return a scalar_int_mode.
1925 * targhooks.h (default_cstore_mode): Likewise.
1926 * targhooks.c (default_cstore_mode): Likewise, using a forced
1927 conversion.
1928 * expmed.c (emit_cstore): Expect the target of the cstore to be
1929 a scalar_int_mode.
1930
1931 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1932 Alan Hayward <alan.hayward@arm.com>
1933 David Sherwood <david.sherwood@arm.com>
1934
1935 * cfgloop.h (rtx_iv): Change type of extend_mode and mode to
1936 scalar_int_mode.
1937 (niter_desc): Likewise mode.
1938 (iv_analyze): Add a mode parameter.
1939 (biv_p): Likewise.
1940 (iv_analyze_expr): Pass the mode paraeter before the rtx it describes
1941 and change its type to scalar_int_mode.
1942 * loop-iv.c: Update commentary at head of file.
1943 (iv_constant): Pass the mode paraeter before the rtx it describes
1944 and change its type to scalar_int_mode. Remove VOIDmode handling.
1945 (iv_subreg): Change the type of the mode parameter to scalar_int_mode.
1946 (iv_extend): Likewise.
1947 (shorten_into_mode): Likewise.
1948 (iv_add): Use scalar_int_mode.
1949 (iv_mult): Likewise.
1950 (iv_shift): Likewise.
1951 (canonicalize_iv_subregs): Likewise.
1952 (get_biv_step_1): Pass the outer_mode parameter before the rtx
1953 it describes and change its mode to scalar_int_mode. Also change
1954 the type of the returned inner_mode to scalar_int_mode.
1955 (get_biv_step): Likewise, turning outer_mode from a pointer
1956 into a direct parameter. Update call to get_biv_step_1.
1957 (iv_analyze_biv): Add an outer_mode parameter. Update calls to
1958 iv_constant and get_biv_step.
1959 (iv_analyze_expr): Pass the mode parameter before the rtx it describes
1960 and change its type to scalar_int_mode. Don't initialise iv->mode
1961 to VOIDmode and remove later checks for its still being VOIDmode.
1962 Update calls to iv_analyze_op and iv_analyze_expr. Check
1963 is_a <scalar_int_mode> when changing the mode under consideration.
1964 (iv_analyze_def): Ignore registers that don't have a scalar_int_mode.
1965 Update call to iv_analyze_expr.
1966 (iv_analyze_op): Add a mode parameter. Reject subregs whose
1967 inner register is not also a scalar_int_mode. Update call to
1968 iv_analyze_biv.
1969 (iv_analyze): Add a mode parameter. Update call to iv_analyze_op.
1970 (biv_p): Add a mode parameter. Update call to iv_analyze_biv.
1971 (iv_number_of_iterations): Use is_a <scalar_int_mode> instead of
1972 separate mode class checks. Update calls to iv_analyze. Remove
1973 fix-up of VOIDmodes after iv_analyze_biv.
1974 * loop-unroll.c (analyze_iv_to_split_insn): Reject registers that
1975 don't have a scalar_int_mode. Update call to biv_p.
1976
1977 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1978 Alan Hayward <alan.hayward@arm.com>
1979 David Sherwood <david.sherwood@arm.com>
1980
1981 * cfgexpand.c (convert_debug_memory_address): Use
1982 as_a <scalar_int_mode>.
1983 * combine.c (expand_compound_operation): Likewise.
1984 (make_extraction): Likewise.
1985 (change_zero_ext): Likewise.
1986 (simplify_comparison): Likewise.
1987 * cse.c (cse_insn): Likewise.
1988 * dwarf2out.c (minmax_loc_descriptor): Likewise.
1989 (mem_loc_descriptor): Likewise.
1990 (loc_descriptor): Likewise.
1991 * expmed.c (init_expmed_one_mode): Likewise.
1992 (synth_mult): Likewise.
1993 (emit_store_flag_1): Likewise.
1994 (expand_divmod): Likewise. Use HWI_COMPUTABLE_MODE_P instead
1995 of a comparison with size.
1996 * expr.c (expand_assignment): Use as_a <scalar_int_mode>.
1997 (reduce_to_bit_field_precision): Likewise.
1998 * function.c (expand_function_end): Likewise.
1999 * internal-fn.c (expand_arith_overflow_result_store): Likewise.
2000 * loop-doloop.c (doloop_modify): Likewise.
2001 * optabs.c (expand_binop): Likewise.
2002 (expand_unop): Likewise.
2003 (expand_copysign_absneg): Likewise.
2004 (prepare_cmp_insn): Likewise.
2005 (maybe_legitimize_operand): Likewise.
2006 * recog.c (const_scalar_int_operand): Likewise.
2007 * rtlanal.c (get_address_mode): Likewise.
2008 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2009 (simplify_cond_clz_ctz): Likewise.
2010 * tree-nested.c (get_nl_goto_field): Likewise.
2011 * tree.c (build_vector_type_for_mode): Likewise.
2012 * var-tracking.c (use_narrower_mode): Likewise.
2013
2014 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2015 Alan Hayward <alan.hayward@arm.com>
2016 David Sherwood <david.sherwood@arm.com>
2017
2018 * tree.h (SCALAR_INT_TYPE_MODE): New macro.
2019 * builtins.c (expand_builtin_signbit): Use it.
2020 * cfgexpand.c (expand_debug_expr): Likewise.
2021 * dojump.c (do_jump): Likewise.
2022 (do_compare_and_jump): Likewise.
2023 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Likewise.
2024 * expmed.c (make_tree): Likewise.
2025 * expr.c (expand_expr_real_2): Likewise.
2026 (expand_expr_real_1): Likewise.
2027 (try_casesi): Likewise.
2028 * fold-const-call.c (fold_const_call_ss): Likewise.
2029 * fold-const.c (unextend): Likewise.
2030 (extract_muldiv_1): Likewise.
2031 (fold_single_bit_test): Likewise.
2032 (native_encode_int): Likewise.
2033 (native_encode_string): Likewise.
2034 (native_interpret_int): Likewise.
2035 * gimple-fold.c (gimple_fold_builtin_memset): Likewise.
2036 * internal-fn.c (expand_addsub_overflow): Likewise.
2037 (expand_neg_overflow): Likewise.
2038 (expand_mul_overflow): Likewise.
2039 (expand_arith_overflow): Likewise.
2040 * match.pd: Likewise.
2041 * stor-layout.c (layout_type): Likewise.
2042 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
2043 * tree-ssa-math-opts.c (convert_mult_to_widen): Likewise.
2044 * tree-ssanames.c (get_range_info): Likewise.
2045 * tree-switch-conversion.c (array_value_type) Likewise.
2046 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
2047 (vect_recog_divmod_pattern): Likewise.
2048 (vect_recog_mixed_size_cond_pattern): Likewise.
2049 * tree-vrp.c (extract_range_basic): Likewise.
2050 (simplify_float_conversion_using_ranges): Likewise.
2051 * tree.c (int_fits_type_p): Likewise.
2052 * ubsan.c (instrument_bool_enum_load): Likewise.
2053 * varasm.c (mergeable_string_section): Likewise.
2054 (narrowing_initializer_constant_valid_p): Likewise.
2055 (output_constant): Likewise.
2056
2057 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2058 Alan Hayward <alan.hayward@arm.com>
2059 David Sherwood <david.sherwood@arm.com>
2060
2061 * machmode.h (NARROWEST_INT_MODE): New macro.
2062 * expr.c (alignment_for_piecewise_move): Use it instead of
2063 GET_CLASS_NARROWEST_MODE (MODE_INT).
2064 (push_block): Likewise.
2065 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
2066 Likewise.
2067 * tree-vrp.c (simplify_float_conversion_using_ranges): Likewise.
2068
2069 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2070 Alan Hayward <alan.hayward@arm.com>
2071 David Sherwood <david.sherwood@arm.com>
2072
2073 * postreload.c (move2add_valid_value_p): Change the type of the
2074 mode parameter to scalar_int_mode.
2075 (move2add_use_add2_insn): Add a mode parameter and use it instead
2076 of GET_MODE (reg).
2077 (move2add_use_add3_insn): Likewise.
2078 (reload_cse_move2add): Update accordingly.
2079
2080 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2081 Alan Hayward <alan.hayward@arm.com>
2082 David Sherwood <david.sherwood@arm.com>
2083
2084 * expr.c (expand_expr_real_2): Use scalar_int_mode for the
2085 double-word mode.
2086 * lower-subreg.c (resolve_shift_zext): Use is_a <scalar_int_mode>.
2087 * optabs.c (expand_unop): Likewise.
2088
2089 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2090 Alan Hayward <alan.hayward@arm.com>
2091 David Sherwood <david.sherwood@arm.com>
2092
2093 * dwarf2out.c (typed_binop): Change mode parameter to scalar_int_mode.
2094 (clz_loc_descriptor): Likewise. Remove SCALAR_INT_MODE_P check.
2095 (popcount_loc_descriptor): Likewise.
2096 (bswap_loc_descriptor): Likewise.
2097 (rotate_loc_descriptor): Likewise.
2098 (mem_loc_descriptor): Add is_a <scalar_int_mode> checks before
2099 calling the functions above.
2100
2101 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2102 Alan Hayward <alan.hayward@arm.com>
2103 David Sherwood <david.sherwood@arm.com>
2104
2105 * combine.c (sign_extend_short_imm): Add is_a <scalar_int_mode>
2106 checks.
2107 (try_combine): Likewise.
2108 (simplify_if_then_else): Likewise.
2109 * cse.c (cse_insn): Likewise.
2110 * dwarf2out.c (mem_loc_descriptor): Likewise.
2111 * emit-rtl.c (gen_lowpart_common): Likewise.
2112 * simplify-rtx.c (simplify_truncation): Likewise.
2113 (simplify_binary_operation_1): Likewise.
2114 (simplify_const_relational_operation): Likewise.
2115 (simplify_ternary_operation): Likewise.
2116 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
2117
2118 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2119 Alan Hayward <alan.hayward@arm.com>
2120 David Sherwood <david.sherwood@arm.com>
2121
2122 * cse.c (cse_insn): Add is_a <scalar_int_mode> checks.
2123 * reload.c (push_reload): Likewise.
2124 (find_reloads): Likewise.
2125
2126 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2127 Alan Hayward <alan.hayward@arm.com>
2128 David Sherwood <david.sherwood@arm.com>
2129
2130 * combine.c (find_split_point): Add is_a <scalar_int_mode> checks.
2131 (make_compound_operation_int): Likewise.
2132 (change_zero_ext): Likewise.
2133 * expr.c (convert_move): Likewise.
2134 (convert_modes): Likewise.
2135 * fwprop.c (forward_propagate_subreg): Likewise.
2136 * loop-iv.c (get_biv_step_1): Likewise.
2137 * optabs.c (widen_operand): Likewise.
2138 * postreload.c (move2add_valid_value_p): Likewise.
2139 * recog.c (simplify_while_replacing): Likewise.
2140 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2141 (simplify_binary_operation_1): Likewise. Remove redundant
2142 mode equality check.
2143
2144 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2145 Alan Hayward <alan.hayward@arm.com>
2146 David Sherwood <david.sherwood@arm.com>
2147
2148 * combine.c (combine_simplify_rtx): Add checks for
2149 is_a <scalar_int_mode>.
2150 (simplify_if_then_else): Likewise.
2151 (make_field_assignment): Likewise.
2152 (simplify_comparison): Likewise.
2153 * ifcvt.c (noce_try_bitop): Likewise.
2154 * loop-invariant.c (canonicalize_address_mult): Likewise.
2155 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2156
2157 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2158 Alan Hayward <alan.hayward@arm.com>
2159 David Sherwood <david.sherwood@arm.com>
2160
2161 * gimple-fold.c (gimple_fold_builtin_memory_op): Use
2162 is_a <scalar_int_mode> instead of != BLKmode.
2163
2164 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2165 Alan Hayward <alan.hayward@arm.com>
2166 David Sherwood <david.sherwood@arm.com>
2167
2168 * cfgexpand.c (expand_debug_expr): Use is_a <scalar_int_mode>
2169 instead of != VOIDmode.
2170 * combine.c (if_then_else_cond): Likewise.
2171 (change_zero_ext): Likewise.
2172 * dwarf2out.c (mem_loc_descriptor): Likewise.
2173 (loc_descriptor): Likewise.
2174 * rtlanal.c (canonicalize_condition): Likewise.
2175 * simplify-rtx.c (simplify_relational_operation_1): Likewise.
2176
2177 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2178 Alan Hayward <alan.hayward@arm.com>
2179 David Sherwood <david.sherwood@arm.com>
2180
2181 * simplify-rtx.c (simplify_binary_operation_1): Use
2182 is_a <scalar_int_mode> instead of !VECTOR_MODE_P.
2183
2184 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2185 Alan Hayward <alan.hayward@arm.com>
2186 David Sherwood <david.sherwood@arm.com>
2187
2188 * wide-int.h (int_traits<unsigned char>) New class.
2189 (int_traits<unsigned short>) Likewise.
2190 * cfgexpand.c (expand_debug_expr): Use is_a <scalar_int_mode>.
2191 Use GET_MODE_UNIT_PRECISION and remove redundant test for
2192 SCALAR_INT_MODE_P.
2193 * combine.c (set_nonzero_bits_and_sign_copies): Use
2194 is_a <scalar_int_mode>.
2195 (find_split_point): Likewise.
2196 (combine_simplify_rtx): Likewise.
2197 (simplify_logical): Likewise.
2198 (expand_compound_operation): Likewise.
2199 (expand_field_assignment): Likewise.
2200 (make_compound_operation): Likewise.
2201 (extended_count): Likewise.
2202 (change_zero_ext): Likewise.
2203 (simplify_comparison): Likewise.
2204 * dwarf2out.c (scompare_loc_descriptor): Likewise.
2205 (ucompare_loc_descriptor): Likewise.
2206 (minmax_loc_descriptor): Likewise.
2207 (mem_loc_descriptor): Likewise.
2208 (loc_descriptor): Likewise.
2209 * expmed.c (init_expmed_one_mode): Likewise.
2210 * lra-constraints.c (lra_constraint_offset): Likewise.
2211 * optabs.c (prepare_libcall_arg): Likewise.
2212 * postreload.c (move2add_note_store): Likewise.
2213 * reload.c (operands_match_p): Likewise.
2214 * rtl.h (load_extend_op): Likewise.
2215 * rtlhooks.c (gen_lowpart_general): Likewise.
2216 * simplify-rtx.c (simplify_truncation): Likewise.
2217 (simplify_unary_operation_1): Likewise.
2218 (simplify_binary_operation_1): Likewise.
2219 (simplify_const_binary_operation): Likewise.
2220 (simplify_const_relational_operation): Likewise.
2221 (simplify_subreg): Likewise.
2222 * stor-layout.c (bitwise_mode_for_mode): Likewise.
2223 * var-tracking.c (adjust_mems): Likewise.
2224 (prepare_call_arguments): Likewise.
2225
2226 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2227 Alan Hayward <alan.hayward@arm.com>
2228 David Sherwood <david.sherwood@arm.com>
2229
2230 * machmode.h (is_int_mode): New fuction.
2231 * combine.c (find_split_point): Use it.
2232 (combine_simplify_rtx): Likewise.
2233 (simplify_if_then_else): Likewise.
2234 (simplify_set): Likewise.
2235 (simplify_shift_const_1): Likewise.
2236 (simplify_comparison): Likewise.
2237 * config/aarch64/aarch64.c (aarch64_rtx_costs): Likewise.
2238 * cse.c (notreg_cost): Likewise.
2239 (cse_insn): Likewise.
2240 * cselib.c (cselib_lookup_1): Likewise.
2241 * dojump.c (do_jump_1): Likewise.
2242 (do_compare_rtx_and_jump): Likewise.
2243 * dse.c (get_call_args): Likewise.
2244 * dwarf2out.c (rtl_for_decl_init): Likewise.
2245 (native_encode_initializer): Likewise.
2246 * expmed.c (emit_store_flag_1): Likewise.
2247 (emit_store_flag): Likewise.
2248 * expr.c (convert_modes): Likewise.
2249 (store_field): Likewise.
2250 (expand_expr_real_1): Likewise.
2251 * fold-const.c (fold_read_from_constant_string): Likewise.
2252 * gimple-ssa-sprintf.c (get_format_string): Likewise.
2253 * optabs-libfuncs.c (gen_int_libfunc): Likewise.
2254 * optabs.c (expand_binop): Likewise.
2255 (expand_unop): Likewise.
2256 (expand_abs_nojump): Likewise.
2257 (expand_one_cmpl_abs_nojump): Likewise.
2258 * simplify-rtx.c (mode_signbit_p): Likewise.
2259 (val_signbit_p): Likewise.
2260 (val_signbit_known_set_p): Likewise.
2261 (val_signbit_known_clear_p): Likewise.
2262 (simplify_relational_operation_1): Likewise.
2263 * tree.c (vector_type_mode): Likewise.
2264
2265 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2266 Alan Hayward <alan.hayward@arm.com>
2267 David Sherwood <david.sherwood@arm.com>
2268
2269 * machmode.h (smallest_mode_for_size): Fix formatting.
2270 (smallest_int_mode_for_size): New function.
2271 * cfgexpand.c (expand_debug_expr): Use smallest_int_mode_for_size
2272 instead of smallest_mode_for_size.
2273 * combine.c (make_extraction): Likewise.
2274 * config/arc/arc.c (arc_expand_movmem): Likewise.
2275 * config/arm/arm.c (arm_expand_divmod_libfunc): Likewise.
2276 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
2277 * config/s390/s390.c (s390_expand_insv): Likewise.
2278 * config/sparc/sparc.c (assign_int_registers): Likewise.
2279 * config/spu/spu.c (spu_function_value): Likewise.
2280 (spu_function_arg): Likewise.
2281 * coverage.c (get_gcov_type): Likewise.
2282 (get_gcov_unsigned_t): Likewise.
2283 * dse.c (find_shift_sequence): Likewise.
2284 * expmed.c (store_bit_field_1): Likewise.
2285 * expr.c (convert_move): Likewise.
2286 (store_field): Likewise.
2287 * internal-fn.c (expand_arith_overflow): Likewise.
2288 * optabs-query.c (get_best_extraction_insn): Likewise.
2289 * optabs.c (expand_twoval_binop_libfunc): Likewise.
2290 * stor-layout.c (layout_type): Likewise.
2291 (initialize_sizetypes): Likewise.
2292 * targhooks.c (default_get_mask_mode): Likewise.
2293 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Likewise.
2294
2295 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2296 Alan Hayward <alan.hayward@arm.com>
2297 David Sherwood <david.sherwood@arm.com>
2298
2299 * machmode.h (opt_mode::else_blk): New function.
2300 (int_mode_for_mode): Declare.
2301 * stor-layout.c (int_mode_for_mode): Return an opt_scalar_int_mode.
2302 * builtins.c (expand_builtin_signbit): Adjust for new int_mode_for_mode
2303 return type.
2304 * cfgexpand.c (expand_debug_expr): Likewise.
2305 * combine.c (gen_lowpart_or_truncate): Likewise.
2306 (gen_lowpart_for_combine): Likewise.
2307 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
2308 * config/avr/avr.c (avr_to_int_mode): Likewise.
2309 (avr_out_plus_1): Likewise.
2310 (avr_out_plus): Likewise.
2311 (avr_out_round): Likewise.
2312 * config/i386/i386.c (ix86_split_to_parts): Likewise.
2313 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
2314 (s390_expand_vcond): Likewise.
2315 * config/spu/spu.c (spu_split_immediate): Likewise.
2316 (spu_expand_mov): Likewise.
2317 * dse.c (get_stored_val): Likewise.
2318 * expmed.c (store_bit_field_1): Likewise.
2319 (convert_extracted_bit_field): Use int_mode_for_mode instead of
2320 int_mode_for_size.
2321 (extract_bit_field_1): Adjust for new int_mode_for_mode return type.
2322 (extract_low_bits): Likewise.
2323 * expr.c (emit_group_load_1): Likewise. Separate out the BLKmode
2324 handling rather than repeating the check.
2325 (emit_group_store): Likewise.
2326 (emit_move_via_integer): Adjust for new int_mode_for_mode return type.
2327 * optabs.c (expand_absneg_bit): Likewise.
2328 (expand_copysign_absneg): Likewise.
2329 (expand_copysign_bit): Likewise.
2330 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
2331 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
2332 * tree-vect-stmts.c (vect_gen_perm_mask_any): Likewise.
2333 * var-tracking.c (prepare_call_arguments): Likewise.
2334 * config/powerpcspe/powerpcspe.c (rs6000_do_expand_vec_perm): Use
2335 int_mode_for_mode instead of mode_for_size.
2336 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
2337
2338 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2339 Alan Hayward <alan.hayward@arm.com>
2340 David Sherwood <david.sherwood@arm.com>
2341
2342 * machmode.h (int_mode_for_size): New function.
2343 * builtins.c (set_builtin_user_assembler_name): Use int_mode_for_size
2344 instead of mode_for_size.
2345 * calls.c (save_fixed_argument_area): Likewise. Make use of BLKmode
2346 explicit.
2347 * combine.c (expand_field_assignment): Use int_mode_for_size
2348 instead of mode_for_size.
2349 (make_extraction): Likewise.
2350 (simplify_shift_const_1): Likewise.
2351 (simplify_comparison): Likewise.
2352 * dojump.c (do_jump): Likewise.
2353 * dwarf2out.c (mem_loc_descriptor): Likewise.
2354 * emit-rtl.c (init_derived_machine_modes): Likewise.
2355 * expmed.c (flip_storage_order): Likewise.
2356 (convert_extracted_bit_field): Likewise.
2357 * expr.c (copy_blkmode_from_reg): Likewise.
2358 * graphite-isl-ast-to-gimple.c (max_mode_int_precision): Likewise.
2359 * internal-fn.c (expand_mul_overflow): Likewise.
2360 * lower-subreg.c (simple_move): Likewise.
2361 * optabs-libfuncs.c (init_optabs): Likewise.
2362 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2363 * tree.c (vector_type_mode): Likewise.
2364 * tree-ssa-strlen.c (handle_builtin_memcmp): Likewise.
2365 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Likewise.
2366 * tree-vect-generic.c (expand_vector_parallel): Likewise.
2367 * tree-vect-stmts.c (vectorizable_load): Likewise.
2368 (vectorizable_store): Likewise.
2369
2370 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2371 Alan Hayward <alan.hayward@arm.com>
2372 David Sherwood <david.sherwood@arm.com>
2373
2374 * coretypes.h (pod_mode): New type.
2375 (scalar_int_mode_pod): New typedef.
2376 * machmode.h (pod_mode): New class.
2377 (int_n_data_t::m): Change type to scalar_int_mode_pod.
2378 * genmodes.c (emit_mode_int_n): Update accordingly.
2379 * lower-subreg.h (target_lower_subreg): Change type to
2380 scalar_int_mode_pod.
2381 * gdbhooks.py (build_pretty_printer): Handle pod_mode and
2382 scalar_int_mode_pod.
2383
2384 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2385 Alan Hayward <alan.hayward@arm.com>
2386 David Sherwood <david.sherwood@arm.com>
2387
2388 * config/powerpcspe/powerpcspe.h (rs6000_pmode): Change type from
2389 machine_mode to scalar_int_mode.
2390 * config/powerpcspe/powerpcspe.c (rs6000_pmode): Likewise.
2391 (rs6000_option_override_internal): Remove cast to int.
2392 * config/rs6000/rs6000.h (rs6000_pmode): Change type from
2393 machine_mode to scalar_int_mode.
2394 * config/rs6000/rs6000.c (rs6000_pmode): Likewise.
2395 (rs6000_option_override_internal): Remove cast to int.
2396 * config/s390/s390.h (Pmode): Remove cast to machine_mode.
2397 * config/epiphany/epiphany.h (RTX_OK_FOR_OFFSET_P): Add cast
2398 to machine_mode.
2399 * config/s390/s390.c (s390_expand_builtin): Likewise.
2400 * coretypes.h (scalar_int_mode): New type.
2401 (opt_scalar_int_mode): New typedef.
2402 * machmode.h (scalar_int_mode): New class.
2403 (scalar_int_mode::includes_p): New function.
2404 (byte_mode): Change type to scalar_int_mode.
2405 (word_mode): Likewise.
2406 (ptr_mode): Likewise.
2407 * emit-rtl.c (byte_mode): Likewise.
2408 (word_mode): Likewise.
2409 (ptr_mode): Likewise.
2410 (init_derived_machine_modes): Update accordingly.
2411 * genmodes.c (get_mode_class): Return scalar_int_mode for MODE_INT
2412 and MODE_PARTIAL_INT.
2413 * gdbhooks.py (build_pretty_printer): Handle scalar_int_mode and
2414 opt_scalar_int_mode.
2415
2416 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2417 Alan Hayward <alan.hayward@arm.com>
2418 David Sherwood <david.sherwood@arm.com>
2419
2420 * target.def (libgcc_floating_mode_supported_p): Take a
2421 scalar_float_mode.
2422 * doc/tm.texi: Regenerate.
2423 * targhooks.h (default_libgcc_floating_mode_supported_p): Take a
2424 scalar_float_mode.
2425 * targhooks.c (default_libgcc_floating_mode_supported_p): Likewise.
2426 * config/aarch64/aarch64.c (aarch64_libgcc_floating_mode_supported_p):
2427 Likewise.
2428
2429 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2430 Alan Hayward <alan.hayward@arm.com>
2431 David Sherwood <david.sherwood@arm.com>
2432
2433 * target.def (default_floatn_mode): Return an opt_scalar_float_mode.
2434 * doc/tm.texi: Regenerate.
2435 * config/arm/arm.c (arm_floatn_mode): Return an opt_scalar_float_mode.
2436 * config/powerpcspe/powerpcspe.c (rs6000_floatn_mode): Likewise.
2437 * config/rs6000/rs6000.c (rs6000_floatn_mode): Likewise.
2438 * targhooks.h (default_floatn_mode): Likewise.
2439 * targhooks.c (default_floatn_mode): Likewise.
2440 * tree.c (build_common_tree_nodes): Update accordingly.
2441
2442 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2443 Alan Hayward <alan.hayward@arm.com>
2444 David Sherwood <david.sherwood@arm.com>
2445
2446 * machmode.h (mode_iterator::start): Provide overload for opt_modes.
2447 (mode_iterator::iterate_p): Likewise.
2448 (mode_iterator::get_wider): Likewise.
2449 * expr.c (init_expr_target): Use opt_scalar_float_mode.
2450
2451 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2452 Alan Hayward <alan.hayward@arm.com>
2453 David Sherwood <david.sherwood@arm.com>
2454
2455 * coretypes.h (opt_scalar_float_mode): New typedef.
2456 * machmode.h (float_mode_for_size): New function.
2457 * emit-rtl.c (double_mode): Delete.
2458 (init_emit_once): Use float_mode_for_size.
2459 * stor-layout.c (layout_type): Likewise.
2460 * gdbhooks.py (build_pretty_printer): Handle opt_scalar_float_mode.
2461
2462 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2463 Alan Hayward <alan.hayward@arm.com>
2464 David Sherwood <david.sherwood@arm.com>
2465
2466 * output.h (assemble_real): Take a scalar_float_mode.
2467 * config/arm/arm.c (arm_assemble_integer): Update accordingly.
2468 * config/arm/arm.md (consttable_4): Likewise.
2469 (consttable_8): Likewise.
2470 (consttable_16): Likewise.
2471 * config/mips/mips.md (consttable_float): Likewise.
2472 * config/s390/s390.c (s390_output_pool_entry): Likewise.
2473 * varasm.c (assemble_real): Take a scalar_float_mode.
2474 (output_constant_pool_2): Update accordingly.
2475 (output_constant): Likewise.
2476
2477 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2478 Alan Hayward <alan.hayward@arm.com>
2479 David Sherwood <david.sherwood@arm.com>
2480
2481 * tree.h (SCALAR_FLOAT_TYPE_MODE): New macro.
2482 * builtins.c (expand_builtin_signbit): Use it instead of TYPE_MODE.
2483 * fold-const.c (fold_convert_const_real_from_fixed): Likewise.
2484 (native_encode_real): Likewise.
2485 (native_interpret_real): Likewise.
2486 * hsa-brig.c (emit_immediate_scalar_to_buffer): Likewise.
2487 * tree-vrp.c (simplify_float_conversion_using_ranges): Likewise.
2488
2489 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2490 Alan Hayward <alan.hayward@arm.com>
2491 David Sherwood <david.sherwood@arm.com>
2492
2493 * optabs-libfuncs.c (gen_trunc_conv_libfunc): Use is_a
2494 <scalar_float_mode>. Simplify.
2495 (gen_extend_conv_libfunc): Likewise.
2496
2497 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2498 Alan Hayward <alan.hayward@arm.com>
2499 David Sherwood <david.sherwood@arm.com>
2500
2501 * coretypes.h (scalar_float_mode): New type.
2502 * machmode.h (mode_traits::from_int): Use machine_mode if
2503 USE_ENUM_MODES is defined.
2504 (is_a): New function.
2505 (as_a): Likewise.
2506 (dyn_cast): Likewise.
2507 (scalar_float_mode): New class.
2508 (scalar_float_mode::includes_p): New function.
2509 (is_float_mode): Likewise.
2510 * gdbhooks.py (MachineModePrinter): New class.
2511 (build_pretty_printer): Use it for scalar_float_mode.
2512 * real.h (FLOAT_MODE_FORMAT): Use as_a <scalar_float_mode>.
2513 (format_helper::format_helper): Turn into a template.
2514 * genmodes.c (get_mode_class): New function.
2515 (emit_insn_modes_h): Give modes the class returned by get_mode_class,
2516 or machine_mode if none.
2517 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Use
2518 as_a <scalar_float_mode>.
2519 * dwarf2out.c (mem_loc_descriptor): Likewise.
2520 (insert_float): Likewise.
2521 (add_const_value_attribute): Likewise.
2522 * simplify-rtx.c (simplify_immed_subreg): Likewise.
2523 * optabs.c (expand_absneg_bit): Take a scalar_float_mode.
2524 (expand_unop): Update accordingly.
2525 (expand_abs_nojump): Likewise.
2526 (expand_copysign_absneg): Take a scalar_float_mode.
2527 (expand_copysign_bit): Likewise.
2528 (expand_copysign): Update accordingly.
2529
2530 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2531 Alan Hayward <alan.hayward@arm.com>
2532 David Sherwood <david.sherwood@arm.com>
2533
2534 * coretypes.h (opt_mode): New class.
2535 * machmode.h (opt_mode): Likewise.
2536 (opt_mode::else_void): New function.
2537 (opt_mode::require): Likewise.
2538 (opt_mode::exists): Likewise.
2539 (GET_MODE_WIDER_MODE): Turn into a function and return an opt_mode.
2540 (GET_MODE_2XWIDER_MODE): Likewise.
2541 (mode_iterator::get_wider): Update accordingly.
2542 (mode_iterator::get_2xwider): Likewise.
2543 (mode_iterator::get_known_wider): Likewise, turning into a template.
2544 * combine.c (make_extraction): Update use of GET_MODE_WIDER_MODE,
2545 forcing a wider mode to exist.
2546 * config/cr16/cr16.h (LONG_REG_P): Likewise.
2547 * rtlanal.c (init_num_sign_bit_copies_in_rep): Likewise.
2548 * config/c6x/c6x.c (c6x_rtx_costs): Update use of
2549 GET_MODE_2XWIDER_MODE, forcing a wider mode to exist.
2550 * lower-subreg.c (init_lower_subreg): Likewise.
2551 * optabs-libfuncs.c (init_sync_libfuncs_1): Likewise, but not
2552 on the final iteration.
2553 * config/i386/i386.c (ix86_expand_set_or_movmem): Check whether
2554 a wider mode exists before asking for a move pattern.
2555 (get_mode_wider_vector): Update use of GET_MODE_WIDER_MODE,
2556 forcing a wider mode to exist.
2557 (expand_vselect_vconcat): Update use of GET_MODE_2XWIDER_MODE,
2558 returning false if no such mode exists.
2559 * config/ia64/ia64.c (expand_vselect_vconcat): Likewise.
2560 * config/mips/mips.c (mips_expand_vselect_vconcat): Likewise.
2561 * expmed.c (init_expmed_one_mode): Update use of GET_MODE_WIDER_MODE.
2562 Avoid checking for a MODE_INT if we already know the mode is not a
2563 SCALAR_INT_MODE_P.
2564 (extract_high_half): Update use of GET_MODE_WIDER_MODE,
2565 forcing a wider mode to exist.
2566 (expmed_mult_highpart_optab): Likewise.
2567 (expmed_mult_highpart): Likewise.
2568 * expr.c (expand_expr_real_2): Update use of GET_MODE_WIDER_MODE,
2569 using else_void.
2570 * lto-streamer-in.c (lto_input_mode_table): Likewise.
2571 * optabs-query.c (find_widening_optab_handler_and_mode): Likewise.
2572 * stor-layout.c (bit_field_mode_iterator::next_mode): Likewise.
2573 * internal-fn.c (expand_mul_overflow): Update use of
2574 GET_MODE_2XWIDER_MODE.
2575 * omp-low.c (omp_clause_aligned_alignment): Likewise.
2576 * tree-ssa-math-opts.c (convert_mult_to_widen): Update use of
2577 GET_MODE_WIDER_MODE.
2578 (convert_plusminus_to_widen): Likewise.
2579 * tree-switch-conversion.c (array_value_type): Likewise.
2580 * var-tracking.c (emit_note_insn_var_location): Likewise.
2581 * tree-vrp.c (simplify_float_conversion_using_ranges): Likewise.
2582 Return false inside rather than outside the loop if no wider mode
2583 exists
2584 * optabs.c (expand_binop): Update use of GET_MODE_WIDER_MODE
2585 and GET_MODE_2XWIDER_MODE
2586 (can_compare_p): Use else_void.
2587 * gdbhooks.py (OptMachineModePrinter): New class.
2588 (build_pretty_printer): Use it for opt_mode.
2589
2590 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2591 Alan Hayward <alan.hayward@arm.com>
2592 David Sherwood <david.sherwood@arm.com>
2593
2594 * tree-switch-conversion.c (array_value_type): Only read TYPE_MODE
2595 once. Use get_narrowest_mode instead of GET_CLASS_NARROWEST_MODE.
2596
2597 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2598 Alan Hayward <alan.hayward@arm.com>
2599 David Sherwood <david.sherwood@arm.com>
2600
2601 * machmode.h (mode_traits): New structure.
2602 (get_narrowest_mode): New function.
2603 (mode_iterator::start): Likewise.
2604 (mode_iterator::iterate_p): Likewise.
2605 (mode_iterator::get_wider): Likewise.
2606 (mode_iterator::get_known_wider): Likewise.
2607 (mode_iterator::get_2xwider): Likewise.
2608 (FOR_EACH_MODE_IN_CLASS): New mode iterator.
2609 (FOR_EACH_MODE): Likewise.
2610 (FOR_EACH_MODE_FROM): Likewise.
2611 (FOR_EACH_MODE_UNTIL): Likewise.
2612 (FOR_EACH_WIDER_MODE): Likewise.
2613 (FOR_EACH_2XWIDER_MODE): Likewise.
2614 * builtins.c (expand_builtin_strlen): Use new mode iterators.
2615 * combine.c (simplify_comparison): Likewise
2616 * config/i386/i386.c (type_natural_mode): Likewise.
2617 * cse.c (cse_insn): Likewise.
2618 * dse.c (find_shift_sequence): Likewise.
2619 * emit-rtl.c (init_derived_machine_modes): Likewise.
2620 (init_emit_once): Likewise.
2621 * explow.c (hard_function_value): Likewise.
2622 * expmed.c (extract_fixed_bit_field_1): Likewise.
2623 (extract_bit_field_1): Likewise.
2624 (expand_divmod): Likewise.
2625 (emit_store_flag_1): Likewise.
2626 * expr.c (init_expr_target): Likewise.
2627 (convert_move): Likewise.
2628 (alignment_for_piecewise_move): Likewise.
2629 (widest_int_mode_for_size): Likewise.
2630 (emit_block_move_via_movmem): Likewise.
2631 (copy_blkmode_to_reg): Likewise.
2632 (set_storage_via_setmem): Likewise.
2633 (compress_float_constant): Likewise.
2634 * omp-low.c (omp_clause_aligned_alignment): Likewise.
2635 * optabs-query.c (get_best_extraction_insn): Likewise.
2636 * optabs.c (expand_binop): Likewise.
2637 (expand_twoval_unop): Likewise.
2638 (expand_twoval_binop): Likewise.
2639 (widen_leading): Likewise.
2640 (widen_bswap): Likewise.
2641 (expand_parity): Likewise.
2642 (expand_unop): Likewise.
2643 (prepare_cmp_insn): Likewise.
2644 (prepare_float_lib_cmp): Likewise.
2645 (expand_float): Likewise.
2646 (expand_fix): Likewise.
2647 (expand_sfix_optab): Likewise.
2648 * postreload.c (move2add_use_add2_insn): Likewise.
2649 * reg-stack.c (reg_to_stack): Likewise.
2650 * reginfo.c (choose_hard_reg_mode): Likewise.
2651 * rtlanal.c (init_num_sign_bit_copies_in_rep): Likewise.
2652 * stor-layout.c (mode_for_size): Likewise.
2653 (smallest_mode_for_size): Likewise.
2654 (mode_for_vector): Likewise.
2655 (finish_bitfield_representative): Likewise.
2656 * tree-ssa-math-opts.c (target_supports_divmod_p): Likewise.
2657 * tree-vect-generic.c (type_for_widest_vector_mode): Likewise.
2658 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
2659 * var-tracking.c (prepare_call_arguments): Likewise.
2660
2661 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2662 Alan Hayward <alan.hayward@arm.com>
2663 David Sherwood <david.sherwood@arm.com>
2664
2665 * genconditions.c (write_header): Add a "#define USE_ENUM_MODES".
2666 * genmodes.c (emit_insn_modes_h): Define FOOmode to E_FOOmode if
2667 USE_ENUM_MODES is defined and to ((void) 0, E_FOOmode) otherwise.
2668 * machmode.h (mode_size): Move earlier in file.
2669 (mode_precision): Likewise.
2670 (mode_inner): Likewise.
2671 (mode_nunits): Likewise.
2672 (mode_unit_size): Likewise.
2673 (unit_unit_precision): Likewise.
2674 (mode_wider): Likewise.
2675 (mode_2xwider): Likewise.
2676 (machine_mode): New class.
2677 (mode_to_bytes): New function.
2678 (mode_to_bits): Likewise.
2679 (mode_to_precision): Likewise.
2680 (mode_to_inner): Likewise.
2681 (mode_to_unit_size): Likewise.
2682 (mode_to_unit_precision): Likewise.
2683 (mode_to_nunits): Likewise.
2684 (GET_MODE_SIZE): Use mode_to_bytes.
2685 (GET_MODE_BITSIZE): Use mode_to_bits.
2686 (GET_MODE_PRECISION): Use mode_to_precision.
2687 (GET_MODE_INNER): Use mode_to_inner.
2688 (GET_MODE_UNIT_SIZE): Use mode_to_unit_size.
2689 (GET_MODE_UNIT_PRECISION): Use mode_to_unit_precision.
2690 (GET_MODE_NUNITS): Use mode_to_nunits.
2691 * system.h (ALWAYS_INLINE): New macro.
2692 * config/powerpcspe/powerpcspe-c.c
2693 (altivec_resolve_overloaded_builtin): Use machine_mode instead of
2694 int for arg1_mode and arg2_mode.
2695
2696 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2697 Alan Hayward <alan.hayward@arm.com>
2698 David Sherwood <david.sherwood@arm.com>
2699
2700 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_std_type):
2701 Prefix mode names with E_ in case statements.
2702 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
2703 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Likewise.
2704 (aarch64_split_simd_move): Likewise.
2705 (aarch64_gen_storewb_pair): Likewise.
2706 (aarch64_gen_loadwb_pair): Likewise.
2707 (aarch64_gen_store_pair): Likewise.
2708 (aarch64_gen_load_pair): Likewise.
2709 (aarch64_get_condition_code_1): Likewise.
2710 (aarch64_constant_pool_reload_icode): Likewise.
2711 (get_rsqrte_type): Likewise.
2712 (get_rsqrts_type): Likewise.
2713 (get_recpe_type): Likewise.
2714 (get_recps_type): Likewise.
2715 (aarch64_gimplify_va_arg_expr): Likewise.
2716 (aarch64_simd_container_mode): Likewise.
2717 (aarch64_emit_load_exclusive): Likewise.
2718 (aarch64_emit_store_exclusive): Likewise.
2719 (aarch64_expand_compare_and_swap): Likewise.
2720 (aarch64_gen_atomic_cas): Likewise.
2721 (aarch64_emit_bic): Likewise.
2722 (aarch64_emit_atomic_swap): Likewise.
2723 (aarch64_emit_atomic_load_op): Likewise.
2724 (aarch64_evpc_trn): Likewise.
2725 (aarch64_evpc_uzp): Likewise.
2726 (aarch64_evpc_zip): Likewise.
2727 (aarch64_evpc_ext): Likewise.
2728 (aarch64_evpc_rev): Likewise.
2729 (aarch64_evpc_dup): Likewise.
2730 (aarch64_gen_ccmp_first): Likewise.
2731 (aarch64_gen_ccmp_next): Likewise.
2732 * config/alpha/alpha.c (alpha_scalar_mode_supported_p): Likewise.
2733 (alpha_emit_xfloating_libcall): Likewise.
2734 (emit_insxl): Likewise.
2735 (alpha_arg_type): Likewise.
2736 * config/arc/arc.c (arc_vector_mode_supported_p): Likewise.
2737 (arc_preferred_simd_mode): Likewise.
2738 (arc_secondary_reload): Likewise.
2739 (get_arc_condition_code): Likewise.
2740 (arc_print_operand): Likewise.
2741 (arc_legitimate_constant_p): Likewise.
2742 * config/arc/arc.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
2743 * config/arc/arc.md (casesi_load): Likewise.
2744 (casesi_compact_jump): Likewise.
2745 * config/arc/predicates.md (proper_comparison_operator): Likewise.
2746 (cc_use_register): Likewise.
2747 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
2748 * config/arm/arm-builtins.c (arm_simd_builtin_std_type): Likewise.
2749 (arm_init_iwmmxt_builtins): Likewise.
2750 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
2751 (neon_expand_vector_init): Likewise.
2752 (arm_attr_length_move_neon): Likewise.
2753 (maybe_get_arm_condition_code): Likewise.
2754 (arm_emit_vector_const): Likewise.
2755 (arm_preferred_simd_mode): Likewise.
2756 (arm_output_iwmmxt_tinsr): Likewise.
2757 (thumb1_output_casesi): Likewise.
2758 (thumb2_output_casesi): Likewise.
2759 (arm_emit_load_exclusive): Likewise.
2760 (arm_emit_store_exclusive): Likewise.
2761 (arm_expand_compare_and_swap): Likewise.
2762 (arm_evpc_neon_vuzp): Likewise.
2763 (arm_evpc_neon_vzip): Likewise.
2764 (arm_evpc_neon_vrev): Likewise.
2765 (arm_evpc_neon_vtrn): Likewise.
2766 (arm_evpc_neon_vext): Likewise.
2767 (arm_validize_comparison): Likewise.
2768 * config/arm/neon.md (neon_vc<cmp_op><mode>): Likewise.
2769 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
2770 * config/avr/avr.c (avr_rtx_costs_1): Likewise.
2771 * config/c6x/c6x.c (c6x_vector_mode_supported_p): Likewise.
2772 (c6x_preferred_simd_mode): Likewise.
2773 * config/epiphany/epiphany.c (get_epiphany_condition_code): Likewise.
2774 (epiphany_rtx_costs): Likewise.
2775 * config/epiphany/predicates.md (proper_comparison_operator):
2776 Likewise.
2777 * config/frv/frv.c (condexec_memory_operand): Likewise.
2778 (frv_emit_move): Likewise.
2779 (output_move_single): Likewise.
2780 (output_condmove_single): Likewise.
2781 (frv_hard_regno_mode_ok): Likewise.
2782 (frv_matching_accg_mode): Likewise.
2783 * config/h8300/h8300.c (split_adds_subs): Likewise.
2784 (h8300_rtx_costs): Likewise.
2785 (h8300_print_operand): Likewise.
2786 (compute_mov_length): Likewise.
2787 (output_logical_op): Likewise.
2788 (compute_logical_op_length): Likewise.
2789 (compute_logical_op_cc): Likewise.
2790 (h8300_shift_needs_scratch_p): Likewise.
2791 (output_a_shift): Likewise.
2792 (compute_a_shift_length): Likewise.
2793 (compute_a_shift_cc): Likewise.
2794 (expand_a_rotate): Likewise.
2795 (output_a_rotate): Likewise.
2796 * config/i386/i386.c (classify_argument): Likewise.
2797 (function_arg_advance_32): Likewise.
2798 (function_arg_32): Likewise.
2799 (function_arg_64): Likewise.
2800 (function_value_64): Likewise.
2801 (ix86_gimplify_va_arg): Likewise.
2802 (ix86_legitimate_constant_p): Likewise.
2803 (put_condition_code): Likewise.
2804 (split_double_mode): Likewise.
2805 (ix86_avx256_split_vector_move_misalign): Likewise.
2806 (ix86_expand_vector_logical_operator): Likewise.
2807 (ix86_split_idivmod): Likewise.
2808 (ix86_expand_adjust_ufix_to_sfix_si): Likewise.
2809 (ix86_build_const_vector): Likewise.
2810 (ix86_build_signbit_mask): Likewise.
2811 (ix86_match_ccmode): Likewise.
2812 (ix86_cc_modes_compatible): Likewise.
2813 (ix86_expand_branch): Likewise.
2814 (ix86_expand_sse_cmp): Likewise.
2815 (ix86_expand_sse_movcc): Likewise.
2816 (ix86_expand_int_sse_cmp): Likewise.
2817 (ix86_expand_vec_perm_vpermi2): Likewise.
2818 (ix86_expand_vec_perm): Likewise.
2819 (ix86_expand_sse_unpack): Likewise.
2820 (ix86_expand_int_addcc): Likewise.
2821 (ix86_split_to_parts): Likewise.
2822 (ix86_vectorize_builtin_gather): Likewise.
2823 (ix86_vectorize_builtin_scatter): Likewise.
2824 (avx_vpermilp_parallel): Likewise.
2825 (inline_memory_move_cost): Likewise.
2826 (ix86_tieable_integer_mode_p): Likewise.
2827 (x86_maybe_negate_const_int): Likewise.
2828 (ix86_expand_vector_init_duplicate): Likewise.
2829 (ix86_expand_vector_init_one_nonzero): Likewise.
2830 (ix86_expand_vector_init_one_var): Likewise.
2831 (ix86_expand_vector_init_concat): Likewise.
2832 (ix86_expand_vector_init_interleave): Likewise.
2833 (ix86_expand_vector_init_general): Likewise.
2834 (ix86_expand_vector_set): Likewise.
2835 (ix86_expand_vector_extract): Likewise.
2836 (emit_reduc_half): Likewise.
2837 (ix86_emit_i387_round): Likewise.
2838 (ix86_mangle_type): Likewise.
2839 (ix86_expand_round_sse4): Likewise.
2840 (expand_vec_perm_blend): Likewise.
2841 (canonicalize_vector_int_perm): Likewise.
2842 (ix86_expand_vec_one_operand_perm_avx512): Likewise.
2843 (expand_vec_perm_1): Likewise.
2844 (expand_vec_perm_interleave3): Likewise.
2845 (expand_vec_perm_even_odd_pack): Likewise.
2846 (expand_vec_perm_even_odd_1): Likewise.
2847 (expand_vec_perm_broadcast_1): Likewise.
2848 (ix86_vectorize_vec_perm_const_ok): Likewise.
2849 (ix86_expand_vecop_qihi): Likewise.
2850 (ix86_expand_mul_widen_hilo): Likewise.
2851 (ix86_expand_sse2_abs): Likewise.
2852 (ix86_expand_pextr): Likewise.
2853 (ix86_expand_pinsr): Likewise.
2854 (ix86_preferred_simd_mode): Likewise.
2855 (ix86_simd_clone_compute_vecsize_and_simdlen): Likewise.
2856 * config/i386/sse.md (*andnot<mode>3): Likewise.
2857 (<mask_codefor><code><mode>3<mask_name>): Likewise.
2858 (*<code><mode>3): Likewise.
2859 * config/ia64/ia64.c (ia64_expand_vecint_compare): Likewise.
2860 (ia64_expand_atomic_op): Likewise.
2861 (ia64_arg_type): Likewise.
2862 (ia64_mode_to_int): Likewise.
2863 (ia64_scalar_mode_supported_p): Likewise.
2864 (ia64_vector_mode_supported_p): Likewise.
2865 (expand_vec_perm_broadcast): Likewise.
2866 * config/iq2000/iq2000.c (iq2000_move_1word): Likewise.
2867 (iq2000_function_arg_advance): Likewise.
2868 (iq2000_function_arg): Likewise.
2869 * config/m32c/m32c.c (m32c_preferred_reload_class): Likewise.
2870 * config/m68k/m68k.c (output_dbcc_and_branch): Likewise.
2871 (m68k_libcall_value): Likewise.
2872 (m68k_function_value): Likewise.
2873 (sched_attr_op_type): Likewise.
2874 * config/mcore/mcore.c (mcore_output_move): Likewise.
2875 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
2876 Likewise.
2877 (microblaze_function_arg): Likewise.
2878 * config/mips/mips.c (mips16_build_call_stub): Likewise.
2879 (mips_print_operand): Likewise.
2880 (mips_mode_ok_for_mov_fmt_p): Likewise.
2881 (mips_vector_mode_supported_p): Likewise.
2882 (mips_preferred_simd_mode): Likewise.
2883 (mips_expand_vpc_loongson_even_odd): Likewise.
2884 (mips_expand_vec_unpack): Likewise.
2885 (mips_expand_vi_broadcast): Likewise.
2886 (mips_expand_vector_init): Likewise.
2887 (mips_expand_vec_reduc): Likewise.
2888 (mips_expand_msa_cmp): Likewise.
2889 * config/mips/mips.md (casesi_internal_mips16_<mode>): Likewise.
2890 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
2891 (cc_flags_for_mode): Likewise.
2892 * config/msp430/msp430.c (msp430_print_operand): Likewise.
2893 * config/nds32/nds32-md-auxiliary.c (nds32_mem_format): Likewise.
2894 (nds32_output_casesi_pc_relative): Likewise.
2895 * config/nds32/nds32.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
2896 * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Likewise.
2897 (nvptx_gen_unpack): Likewise.
2898 (nvptx_gen_pack): Likewise.
2899 (nvptx_gen_shuffle): Likewise.
2900 (nvptx_gen_wcast): Likewise.
2901 (nvptx_preferred_simd_mode): Likewise.
2902 * config/pa/pa.c (pa_secondary_reload): Likewise.
2903 * config/pa/predicates.md (base14_operand): Likewise.
2904 * config/powerpcspe/powerpcspe-c.c
2905 (altivec_resolve_overloaded_builtin): Likewise.
2906 * config/powerpcspe/powerpcspe.c (rs6000_setup_reg_addr_masks):
2907 Likewise.
2908 (rs6000_preferred_simd_mode): Likewise.
2909 (output_vec_const_move): Likewise.
2910 (rs6000_expand_vector_extract): Likewise.
2911 (rs6000_split_vec_extract_var): Likewise.
2912 (reg_offset_addressing_ok_p): Likewise.
2913 (rs6000_legitimate_offset_address_p): Likewise.
2914 (rs6000_legitimize_address): Likewise.
2915 (rs6000_emit_set_const): Likewise.
2916 (rs6000_const_vec): Likewise.
2917 (rs6000_emit_move): Likewise.
2918 (spe_build_register_parallel): Likewise.
2919 (rs6000_darwin64_record_arg_recurse): Likewise.
2920 (swap_selector_for_mode): Likewise.
2921 (spe_init_builtins): Likewise.
2922 (paired_init_builtins): Likewise.
2923 (altivec_init_builtins): Likewise.
2924 (do_load_for_compare): Likewise.
2925 (rs6000_generate_compare): Likewise.
2926 (rs6000_expand_float128_convert): Likewise.
2927 (emit_load_locked): Likewise.
2928 (emit_store_conditional): Likewise.
2929 (rs6000_output_function_epilogue): Likewise.
2930 (rs6000_handle_altivec_attribute): Likewise.
2931 (rs6000_function_value): Likewise.
2932 (emit_fusion_gpr_load): Likewise.
2933 (emit_fusion_p9_load): Likewise.
2934 (emit_fusion_p9_store): Likewise.
2935 * config/powerpcspe/predicates.md (easy_fp_constant): Likewise.
2936 (fusion_gpr_mem_load): Likewise.
2937 (fusion_addis_mem_combo_load): Likewise.
2938 (fusion_addis_mem_combo_store): Likewise.
2939 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
2940 (fusion_gpr_mem_load): Likewise.
2941 (fusion_addis_mem_combo_load): Likewise.
2942 (fusion_addis_mem_combo_store): Likewise.
2943 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2944 Likewise.
2945 * config/rs6000/rs6000-string.c (do_load_for_compare): Likewise.
2946 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Likewise.
2947 (rs6000_preferred_simd_mode): Likewise.
2948 (output_vec_const_move): Likewise.
2949 (rs6000_expand_vector_extract): Likewise.
2950 (rs6000_split_vec_extract_var): Likewise.
2951 (reg_offset_addressing_ok_p): Likewise.
2952 (rs6000_legitimate_offset_address_p): Likewise.
2953 (rs6000_legitimize_address): Likewise.
2954 (rs6000_emit_set_const): Likewise.
2955 (rs6000_const_vec): Likewise.
2956 (rs6000_emit_move): Likewise.
2957 (rs6000_darwin64_record_arg_recurse): Likewise.
2958 (swap_selector_for_mode): Likewise.
2959 (paired_init_builtins): Likewise.
2960 (altivec_init_builtins): Likewise.
2961 (rs6000_expand_float128_convert): Likewise.
2962 (emit_load_locked): Likewise.
2963 (emit_store_conditional): Likewise.
2964 (rs6000_output_function_epilogue): Likewise.
2965 (rs6000_handle_altivec_attribute): Likewise.
2966 (rs6000_function_value): Likewise.
2967 (emit_fusion_gpr_load): Likewise.
2968 (emit_fusion_p9_load): Likewise.
2969 (emit_fusion_p9_store): Likewise.
2970 * config/rx/rx.c (rx_gen_move_template): Likewise.
2971 (flags_from_mode): Likewise.
2972 * config/s390/predicates.md (s390_alc_comparison): Likewise.
2973 (s390_slb_comparison): Likewise.
2974 * config/s390/s390.c (s390_handle_vectorbool_attribute): Likewise.
2975 (s390_vector_mode_supported_p): Likewise.
2976 (s390_cc_modes_compatible): Likewise.
2977 (s390_match_ccmode_set): Likewise.
2978 (s390_canonicalize_comparison): Likewise.
2979 (s390_emit_compare_and_swap): Likewise.
2980 (s390_branch_condition_mask): Likewise.
2981 (s390_rtx_costs): Likewise.
2982 (s390_secondary_reload): Likewise.
2983 (__SECONDARY_RELOAD_CASE): Likewise.
2984 (s390_expand_cs): Likewise.
2985 (s390_preferred_simd_mode): Likewise.
2986 * config/s390/vx-builtins.md (vec_packsu_u<mode>): Likewise.
2987 * config/sh/sh.c (sh_print_operand): Likewise.
2988 (dump_table): Likewise.
2989 (sh_secondary_reload): Likewise.
2990 * config/sh/sh.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
2991 * config/sh/sh.md (casesi_worker_1): Likewise.
2992 (casesi_worker_2): Likewise.
2993 * config/sparc/predicates.md (icc_comparison_operator): Likewise.
2994 (fcc_comparison_operator): Likewise.
2995 * config/sparc/sparc.c (sparc_expand_move): Likewise.
2996 (emit_soft_tfmode_cvt): Likewise.
2997 (sparc_preferred_simd_mode): Likewise.
2998 (output_cbranch): Likewise.
2999 (sparc_print_operand): Likewise.
3000 (sparc_expand_vec_perm_bmask): Likewise.
3001 (vector_init_bshuffle): Likewise.
3002 * config/spu/spu.c (spu_scalar_mode_supported_p): Likewise.
3003 (spu_vector_mode_supported_p): Likewise.
3004 (spu_expand_insv): Likewise.
3005 (spu_emit_branch_or_set): Likewise.
3006 (spu_handle_vector_attribute): Likewise.
3007 (spu_builtin_splats): Likewise.
3008 (spu_builtin_extract): Likewise.
3009 (spu_builtin_promote): Likewise.
3010 (spu_expand_sign_extend): Likewise.
3011 * config/tilegx/tilegx.c (tilegx_scalar_mode_supported_p): Likewise.
3012 (tilegx_simd_int): Likewise.
3013 * config/tilepro/tilepro.c (tilepro_scalar_mode_supported_p): Likewise.
3014 (tilepro_simd_int): Likewise.
3015 * config/v850/v850.c (const_double_split): Likewise.
3016 (v850_print_operand): Likewise.
3017 (ep_memory_offset): Likewise.
3018 * config/vax/vax.c (vax_rtx_costs): Likewise.
3019 (vax_output_int_move): Likewise.
3020 (vax_output_int_add): Likewise.
3021 (vax_output_int_subtract): Likewise.
3022 * config/visium/predicates.md (visium_branch_operator): Likewise.
3023 * config/visium/visium.c (rtx_ok_for_offset_p): Likewise.
3024 (visium_print_operand_address): Likewise.
3025 * config/visium/visium.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
3026 * config/xtensa/xtensa.c (xtensa_mem_offset): Likewise.
3027 (xtensa_expand_conditional_branch): Likewise.
3028 (xtensa_copy_incoming_a7): Likewise.
3029 (xtensa_output_literal): Likewise.
3030 * dfp.c (decimal_real_maxval): Likewise.
3031 * targhooks.c (default_libgcc_floating_mode_supported_p): Likewise.
3032
3033 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
3034 Alan Hayward <alan.hayward@arm.com>
3035 David Sherwood <david.sherwood@arm.com>
3036
3037 * genmodes.c (mode_size_inline): Add an E_ prefix to mode names.
3038 (mode_nunits_inline): Likewise.
3039 (mode_inner_inline): Likewise.
3040 (mode_unit_size_inline): Likewise.
3041 (mode_unit_precision_inline): Likewise.
3042 (emit_insn_modes_h): Likewise. Also emit a #define of the
3043 unprefixed name.
3044 (emit_mode_wider): Add an E_ prefix to mode names.
3045 (emit_mode_complex): Likewise.
3046 (emit_mode_inner): Likewise.
3047 (emit_mode_adjustments): Likewise.
3048 (emit_mode_int_n): Likewise.
3049 * config/aarch64/aarch64-builtins.c (v8qi_UP, v4hi_UP, v4hf_UP)
3050 (v2si_UP, v2sf_UP, v1df_UP, di_UP, df_UP, v16qi_UP, v8hi_UP, v8hf_UP)
3051 (v4si_UP, v4sf_UP, v2di_UP, v2df_UP, ti_UP, oi_UP, ci_UP, xi_UP)
3052 (si_UP, sf_UP, hi_UP, hf_UP, qi_UP): Likewise.
3053 (CRC32_BUILTIN, ENTRY): Likewise.
3054 * config/aarch64/aarch64.c (aarch64_push_regs): Likewise.
3055 (aarch64_pop_regs): Likewise.
3056 (aarch64_process_components): Likewise.
3057 * config/alpha/alpha.c (alpha_emit_conditional_move): Likewise.
3058 * config/arm/arm-builtins.c (v8qi_UP, v4hi_UP, v4hf_UP, v2si_UP)
3059 (v2sf_UP, di_UP, v16qi_UP, v8hi_UP, v8hf_UP, v4si_UP, v4sf_UP)
3060 (v2di_UP, ti_UP, ei_UP, oi_UP, hf_UP, si_UP, void_UP): Likewise.
3061 * config/arm/arm.c (arm_init_libfuncs): Likewise.
3062 * config/i386/i386-builtin-types.awk (ix86_builtin_type_vect_mode):
3063 Likewise.
3064 * config/i386/i386-builtin.def (pcmpestr): Likewise.
3065 (pcmpistr): Likewise.
3066 * config/microblaze/microblaze.c (double_memory_operand): Likewise.
3067 * config/mmix/mmix.c (mmix_output_condition): Likewise.
3068 * config/powerpcspe/powerpcspe.c (rs6000_init_hard_regno_mode_ok):
3069 Likewise.
3070 * config/rl78/rl78.c (mduc_regs): Likewise.
3071 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
3072 (htm_expand_builtin): Likewise.
3073 * config/sh/sh.h (REGISTER_NATURAL_MODE): Likewise.
3074 * config/sparc/sparc.c (emit_save_or_restore_regs): Likewise.
3075 * config/xtensa/xtensa.c (print_operand): Likewise.
3076 * expmed.h (NUM_MODE_PARTIAL_INT): Likewise.
3077 (NUM_MODE_VECTOR_INT): Likewise.
3078 * genoutput.c (null_operand): Likewise.
3079 (output_operand_data): Likewise.
3080 * genrecog.c (print_parameter_value): Likewise.
3081 * lra.c (debug_operand_data): Likewise.
3082
3083 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
3084
3085 * dwarf2out.c (scompare_loc_descriptor_wide)
3086 (scompare_loc_descriptor_narrow): New functions, split out from...
3087 (scompare_loc_descriptor): ...here.
3088 * expmed.c (emit_store_flag_int): New function, split out from...
3089 (emit_store_flag): ...here.
3090
3091 2017-08-30 Richard Biener <rguenther@suse.de>
3092
3093 * dwarf2out.c (dwarf2out_finish): Remove setting AT_pubnames.
3094 (dwarf2out_early_finish): Move setting of AT_pubnames from
3095 early debug output to early finish.
3096
3097 2017-08-30 Jozef Lawrynowicz <jozef.l@somniumtech.com>
3098
3099 * gcc/config/msp430/msp430.h: Pass -mcode/data-region to the linker
3100 and -mdata-region to the assembler.
3101
3102 2017-08-30 Richard Biener <rguenther@suse.de>
3103
3104 * dwarf2out.c (add_dwarf_attr): Check we don't add duplicate
3105 attributes.
3106 (gen_subprogram_die): Add DW_AT_object_pointer only early.
3107 (dwarf2out_early_global_decl): Only generate a DIE for the
3108 abstract origin if it doesn't already exist or is a declaration DIE.
3109 (resolve_addr): Do not add the linkage name twice when
3110 generating a stub DIE for the DW_TAG_GNU_call_site target.
3111
3112 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
3113
3114 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3115 Use machine_mode rather than int for arg1_mode.
3116
3117 2017-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
3118
3119 PR target/82015
3120 * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Insure
3121 that the second argument of the built-in functions to unpack
3122 128-bit scalar types to 64-bit values is 0 or 1. Change to use a
3123 switch statement instead a lot of if statements.
3124 * config/rs6000/rs6000.md (unpack<mode>, FMOVE128_VSX iterator):
3125 Allow 64-bit values to be in Altivec registers as well as
3126 traditional floating point registers.
3127 (pack<mode>, FMOVE128_VSX iterator): Likewise.
3128
3129 2017-08-29 Alexander Monakov <amonakov@ispras.ru>
3130
3131 * ira-costs.c (record_address_regs): Handle both operands of PLUS for
3132 MAX_REGS_PER_ADDRESS == 1.
3133
3134 2017-08-29 Uros Bizjak <ubizjak@gmail.com>
3135
3136 * config/i386/i386.opt (flag_fentry): Do not init to -1.
3137 * config/i386/i386.c (ix86_option_override_internal): Simplify
3138 setting of opts->x_flag_entry.
3139
3140 2017-08-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3141 Jakub Jelinek <jakub@redhat.com>
3142 Richard Biener <rguenther@suse.de>
3143
3144 PR tree-optimization/81503
3145 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Ensure
3146 folded constant fits in the target type; reorder tests for clarity.
3147
3148 2017-08-29 Martin Liska <mliska@suse.cz>
3149
3150 * passes.def: Include pass_lower_switch.
3151 * stmt.c (dump_case_nodes): Remove and move to
3152 tree-switch-conversion.
3153 (case_values_threshold): Likewise.
3154 (expand_switch_as_decision_tree_p): Likewise.
3155 (emit_case_decision_tree): Likewise.
3156 (expand_case): Likewise.
3157 (balance_case_nodes): Likewise.
3158 (node_has_low_bound): Likewise.
3159 (node_has_high_bound): Likewise.
3160 (node_is_bounded): Likewise.
3161 (emit_case_nodes): Likewise.
3162 (struct simple_case_node): New struct.
3163 (add_case_node): Remove.
3164 (emit_case_dispatch_table): Use vector instead of case_list.
3165 (reset_out_edges_aux): Remove.
3166 (compute_cases_per_edge): Likewise.
3167 (expand_case): Build list of simple_case_node.
3168 (expand_sjlj_dispatch_table): Use it.
3169 * tree-switch-conversion.c (struct case_node): Moved from
3170 stmt.c and adjusted.
3171 (emit_case_nodes): Likewise.
3172 (node_has_low_bound): Likewise.
3173 (node_has_high_bound): Likewise.
3174 (node_is_bounded): Likewise.
3175 (case_values_threshold): Likewise.
3176 (reset_out_edges_aux): Likewise.
3177 (compute_cases_per_edge): Likewise.
3178 (add_case_node): Likewise.
3179 (dump_case_nodes): Likewise.
3180 (balance_case_nodes): Likewise.
3181 (expand_switch_as_decision_tree_p): Likewise.
3182 (emit_jump): Likewise.
3183 (emit_case_decision_tree): Likewise.
3184 (try_switch_expansion): Likewise.
3185 (do_jump_if_equal): Likewise.
3186 (emit_cmp_and_jump_insns): Likewise.
3187 (fix_phi_operands_for_edge): New function.
3188 (record_phi_operand_mapping): Likewise.
3189 (class pass_lower_switch): New pass.
3190 (pass_lower_switch::execute): New function.
3191 (make_pass_lower_switch): Likewise.
3192 (conditional_probability):
3193 * timevar.def: Add TV_TREE_SWITCH_LOWERING.
3194 * tree-pass.h: Add make_pass_lower_switch.
3195
3196 2017-08-29 Jozef Lawrynowicz <jozef.l@somniumtech.com>
3197
3198 PR target/80993
3199 * gcc/config/msp430/msp430.c (msp430_attr): Mark interrupt
3200 handlers as used.
3201
3202 2017-08-29 Richard Biener <rguenther@suse.de>
3203
3204 * dwarf2out.c (add_dwarf_attr): When checking is enabled verify
3205 we do not add a DW_AT_inline attribute twice.
3206 (gen_subprogram_die): Remove code setting DW_AT_inline on
3207 DECL_ABSTRACT_P nodes.
3208
3209 2017-08-29 Richard Sandiford <richard.sandiford@linaro.org>
3210
3211 * gimplify.c (gimplify_call_expr): Copy the nothrow flag to
3212 calls to internal functions.
3213 (gimplify_modify_expr): Likewise.
3214 * tree-call-cdce.c (use_internal_fn): Likewise.
3215 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
3216 (convert_to_divmod): Set the nothrow flag.
3217 * tree-if-conv.c (predicate_mem_writes): Likewise.
3218 * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
3219 (vectorizable_call): Likewise.
3220 (vectorizable_store): Likewise.
3221 (vectorizable_load): Likewise.
3222 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
3223 (vect_recog_mask_conversion_pattern): Likewise.
3224
3225 2017-08-29 Martin Liska <mliska@suse.cz>
3226
3227 PR other/39851
3228 * gcc.c (driver_handle_option): Add new argument.
3229 * opts-common.c (handle_option): Pass
3230 target_option_override_hook.
3231 * opts-global.c (lang_handle_option): Add new option.
3232 (set_default_handlers): Add new argument.
3233 (decode_options): Likewise.
3234 * opts.c (target_handle_option): Likewise.
3235 (common_handle_option): Call target_option_override_hook.
3236 * opts.h (struct cl_option_handler_func): Add hook for
3237 target option override.
3238 (struct cl_option_handlers): Likewise.
3239 (set_default_handlers): Add new argument.
3240 (decode_options): Likewise.
3241 (common_handle_option): Likewise.
3242 (target_handle_option): Likewise.
3243 * toplev.c (toplev::main): Pass targetm.target_option.override
3244 hook.
3245
3246 2017-08-29 Richard Biener <rguenther@suse.de>
3247 Dominik Infuehr <dominik.infuehr@theobroma-systems.com>
3248
3249 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Properly confine
3250 life to the active subtree.
3251
3252 2017-08-28 Jeff Law <law@redhat.com>
3253
3254 * tree-ssa-dom.c (edge_info::record_simple_equiv): Call
3255 derive_equivalences.
3256 (derive_equivalences_from_bit_ior, record_temporary_equivalences):
3257 Code moved into....
3258 (edge_info::derive_equivalences): New private member function
3259
3260 * tree-ssa-dom.c (class edge_info): Changed from a struct
3261 to a class. Add ctor/dtor, methods and data members.
3262 (edge_info::edge_info): Renamed from allocate_edge_info.
3263 Initialize additional members.
3264 (edge_info::~edge_info): New.
3265 (free_dom_edge_info): Delete the edge info.
3266 (record_edge_info): Use new class & associated member functions.
3267 Tighten forms for testing for edge equivalences.
3268 (record_temporary_equivalences): Iterate over the simple
3269 equivalences rather than assuming there's only one per edge.
3270 (cprop_into_successor_phis): Iterate over the simple
3271 equivalences rather than assuming there's only one per edge.
3272 (optimize_stmt): Use operand_equal_p rather than pointer
3273 equality for mini-DSE code.
3274
3275 2017-08-28 Nathan Sidwell <nathan@acm.org>
3276
3277 * gcc.c (execute): Fold SIGPIPE handling into switch
3278 statement. Adjust internal error message.
3279
3280 2017-08-28 Richard Biener <rguenther@suse.de>
3281
3282 PR debug/81993
3283 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
3284 Do nothing for removed DIEs.
3285
3286 2017-08-28 Richard Biener <rguenther@suse.de>
3287
3288 PR tree-optimization/81977
3289 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix look through
3290 memcpy.
3291
3292 2017-08-28 Alexander Monakov <amonakov@ispras.ru>
3293
3294 PR target/80640
3295 * doc/md.texi (mem_thread_fence): Remove mention of mode. Rewrite.
3296 * optabs.c (expand_mem_thread_fence): Emit a compiler barrier when
3297 using targetm.gen_mem_thread_fence.
3298
3299 2017-08-27 Uros Bizjak <ubizjak@gmail.com>
3300
3301 PR target/81995
3302 * config/i386/i386.md (*<btsc><mode>): Change operand 2
3303 predicate to register_operand. Reorder operands.
3304 (*btr<mode>): Ditto.
3305 (*<btsc><mode>_mask): Change operand 3 predicate to register_operand.
3306 (*btr<mode>_mask): Ditto.
3307
3308 2017-08-25 Steven Munroe <munroesj@gcc.gnu.org>
3309
3310 * config.gcc (powerpc*-*-*): Add xmmintrin.h and mm_malloc.h.
3311 * config/rs6000/xmmintrin.h: New file.
3312 * config/rs6000/x86intrin.h [__ALTIVEC__]: Include xmmintrin.h.
3313
3314 2017-08-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3315
3316 PR target/81504
3317 * config/rs6000/rs6000-p8swap.c (find_alignment_op): Add reference
3318 parameter and_insn and return it.
3319 (recombine_lvx_pattern): Insert a copy to ensure availability of
3320 the base register of the copied masking operation at the point of
3321 the instruction replacement.
3322 (recombine_stvx_pattern): Likewise.
3323
3324 2017-08-25 Michael Meissner <meissner@linux.vnet.ibm.com>
3325
3326 * config/rs6000/rs6000.opt (-mpower9-dform-scalar): Delete
3327 undocumented switches.
3328 (-mpower9-dform-vector): Likewise.
3329 (-mpower9-dform): Likewise.
3330 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Update
3331 comments to delete references to -mpower9-dform* switches.
3332 * config/rs6000/predicates.md (vsx_quad_dform_memory_operand):
3333 Delete reference to -mpower9-dform* switches, test for
3334 -mpower9-vector instead.
3335 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Likewise.
3336 (OTHER_P9_VECTOR_MASKS): Likewise.
3337 (POWERPC_MASKS): Likewise.
3338 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Change
3339 tests against -mpower9-dform* to -mpower9-vector. Delete code
3340 that checked for -mpower9-dform* consistancy with other options.
3341 Add test for -mpower9-misc to enable other power9 switches.
3342 (rs6000_init_hard_regno_mode_ok): Likewise.
3343 (rs6000_option_override_internal): Likewise.
3344 (rs6000_emit_prologue): Likewise.
3345 (rs6000_emit_epilogue): Likewise.
3346 (rs6000_opt_masks): Delete -mpower9-dform-{scalar,vector}.
3347 (rs6000_disable_incompatiable_switches): Delete -mpower9-dform.
3348 (emit_fusion_p9_load): Change tests for -mpower9-dform-scalar
3349 -mpower9-vector.
3350 (emit_fusion_p9_store): Likewise.
3351 * config/rs6000/rs6000.h (TARGET_P9_DFORM_SCALAR): Delete
3352 resetting these macros if the assembler does not support ISA 3.0
3353 instructions.
3354 (TARGET_P9_DFORM_VECTOR): Likewise.
3355 * config/rs6000/rs6000.md (peepholes to optimize altivec memory):
3356 Change to use -mpower9-vector instead of -mpower9-dform-scalar.
3357
3358 2017-08-25 Alan Modra <amodra@gmail.com>
3359
3360 PR rtl-optimization/81747
3361 * cse.c (cse_extended_basic_block): Don't attempt to record
3362 equivalences for degenerate conditional branches that branch
3363 to their fall-through.
3364
3365 2017-08-24 Martin Sebor <msebor@redhat.com>
3366
3367 PR middle-end/81908
3368 * gimple-fold.c (size_must_be_zero_p): New function.
3369 (gimple_fold_builtin_memory_op): Call it.
3370
3371 2017-08-24 Steven Munroe <munroesj@gcc.gnu.org>
3372
3373 * config/rs6000/mm_malloc.h: New file.
3374
3375 2017-08-24 Bin Cheng <bin.cheng@arm.com>
3376
3377 PR tree-optimization/81913
3378 * tree-ssa-loop-niter.c (number_of_iterations_cond): Skip niter
3379 analysis when either IVs in condition can wrap.
3380
3381 2017-08-24 Uros Bizjak <ubizjak@gmail.com>
3382
3383 * dwarf2out.c (MAX_ARTIFICIAL_LABEL_BYTES): Increase to 40.
3384 * dwarf2cfi.c (MAX_ARTIFICIAL_LABEL_BYTES): Remove.
3385
3386 2017-08-24 Richard Biener <rguenther@suse.de>
3387
3388 PR target/81921
3389 * targhooks.c (default_target_can_inline_p): Properly
3390 use target_option_default_node when no DECL_FUNCTION_SPECIFIC_TARGET
3391 is present and always compare.
3392 * config/i386/i386.c (ix86_valid_target_attribute_tree): Do not
3393 infer -mfpmath=sse from TARGET_SSE_P.
3394 (ix86_can_inline_p): Properly use target_option_default_node when
3395 no DECL_FUNCTION_SPECIFIC_TARGET is present and always compare.
3396
3397 2017-08-24 Richard Biener <rguenther@suse.de>
3398
3399 PR debug/81936
3400 * dwarf2out.c (output_die): Handle flag_generate_offload like
3401 flag_generate_lto.
3402 (output_comp_unit): Likewise.
3403 (gen_array_type_die): Likewise.
3404 (dwarf2out_early_finish): Likewise.
3405 (note_variable_value_in_expr): Likewise.
3406 (dwarf2out_finish): Likewise. Adjust assert.
3407 * cgraphunit.c (symbol_table::compile): Move setting of
3408 flag_generate_offload earlier ...
3409 (symbol_table::finalize_compilation_unit): ... here, before
3410 early debug finalization.
3411
3412 2017-08-24 Richard Biener <rguenther@suse.de>
3413
3414 * config/i386/i386.c: Include symbol-summary.h, ipa-prop.h
3415 and ipa-fnsummary.h.
3416 (ix86_can_inline_p): When ix86_fpmath flags do not match
3417 check whether the callee uses FP math at all.
3418
3419 2017-08-24 Aldy Hernandez <aldyh@redhat.com>
3420
3421 PR middle-end/81931
3422 * tree-ssanames.c (get_nonzero_bits): Use element_precision
3423 instead of TYPE_PRECISION.
3424
3425 2017-08-24 Richard Sandiford <richard.sandiford@linaro.org>
3426 Alan Hayward <alan.hayward@arm.com>
3427 David Sherwood <david.sherwood@arm.com>
3428
3429 * combine.c (make_extraction): Use subreg_offset_from_lsb.
3430
3431 2017-08-23 Daniel Santos <daniel.santos@pobox.com>
3432
3433 * config/i386/i386.h (ix86_frame::stack_realign_allocate_offset):
3434 Remove field.
3435 (ix86_frame::stack_realign_allocate): New field.
3436 (struct machine_frame_state): Modify comments.
3437 (machine_frame_state::sp_realigned_fp_end): New field.
3438 * config/i386/i386.c (ix86_compute_frame_layout): Rework stack frame
3439 layout calculation.
3440 (sp_valid_at): Add assertion to assure no attempt to access invalid
3441 offset of a realigned stack.
3442 (fp_valid_at): Likewise.
3443 (choose_baseaddr): Modify comments.
3444 (ix86_emit_outlined_ms2sysv_save): Adjust to changes in
3445 ix86_expand_prologue.
3446 (ix86_expand_prologue): Modify stack realignment and allocation.
3447 (ix86_expand_epilogue): Modify comments.
3448 * doc/sourcebuild.texi: Add documentation for target selectors avx2,
3449 avx2_runtime, avx512f, and avx512f_runtime.
3450
3451 2017-08-23 Uros Bizjak <ubizjak@gmail.com>
3452
3453 * config/i386/i386.opt: Remove unneeded Init(0) initializations.
3454 (mstackrealign): Do not init to -1.
3455 * config/i386/i386.c (ix86_option_override_internal):
3456 Check opts_set, not opts when setting default value of
3457 opts->x_ix86_force_align_arg_pointer.
3458
3459 2017-08-23 Richard Biener <rguenther@suse.de>
3460
3461 * function.c (fndecl_name): Use verbosity 1 (no arguments) for
3462 lang_hooks.decl_printable_name.
3463 * print-rtl-function.c (print_rtx_function): Likewise.
3464 * tree-pretty-print.c (dump_function_header): Likewise.
3465
3466 2017-08-23 Richard Biener <rguenther@suse.de>
3467
3468 PR lto/81940
3469 * dwarf2out.c (dwarf2out_abstract_function): Handle LTO with
3470 -g0 at compile-time.
3471
3472 2017-08-23 Tamar Christina <tamar.christina@arm.com>
3473
3474 PR middle-end/19706
3475 * doc/sourcebuild.texi (Other hardware attributes):
3476 Document xorsign.
3477
3478 2017-08-23 Tamar Christina <tamar.christina@arm.com>
3479
3480 PR middle-end/19706
3481 * tree-ssa-math-opts.c (convert_expand_mult_copysign):
3482 Fix single-use check.
3483
3484 2017-08-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
3485
3486 * gcc.c (execute): Only test for SIGKILL and SIGQUIT if available.
3487
3488 2017-08-22 Daniel Santos <daniel.santos@pobox.com>
3489
3490 * doc/install.texi: Modify to add more details on running selected
3491 tests.
3492
3493 2017-08-22 Daniel Santos <daniel.santos@pobox.com>
3494
3495 * config/i386/i386.c (ix86_option_override_internal): Error when -mx32
3496 is combined with -mabi=ms.
3497 (ix86_function_type_abi): Limit errors for mixing -mx32 with attribute
3498 ms_abi.
3499
3500 2017-08-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3501
3502 PR tree-optimization/81488
3503 * gimple-ssa-strength-reduction (struct slsr_cand_d): Add visited
3504 and cached_basis fields.
3505 (MAX_SPREAD): New constant.
3506 (alloc_cand_and_find_basis): Initialize new fields.
3507 (clear_visited): New function.
3508 (create_phi_basis_1): Rename from create_phi_basis, set visited
3509 and cached_basis fields.
3510 (create_phi_basis): New wrapper function.
3511 (phi_add_costs_1): Rename from phi_add_costs, add spread
3512 parameter, set visited field, short-circuit when limits reached.
3513 (phi_add_costs): New wrapper function.
3514 (record_phi_increments_1): Rename from record_phi_increments, set
3515 visited field.
3516 (record_phi_increments): New wrapper function.
3517 (phi_incr_cost_1): Rename from phi_incr_cost, set visited field.
3518 (phi_incr_cost): New wrapper function.
3519 (all_phi_incrs_profitable_1): Rename from
3520 all_phi_incrs_profitable, set visited field.
3521 (all_phi_incrs_profitable): New wrapper function.
3522
3523 2017-08-22 Richard Sandiford <richard.sandiford@linaro.org>
3524 Alan Hayward <alan.hayward@arm.com>
3525 David Sherwood <david.sherwood@arm.com>
3526
3527 * rtl.h (paradoxical_subreg_p): Define inline, and add a version
3528 that takes the outer and inner modes.
3529 * doc/rtl.texi: Use paradoxical_subreg_p instead of a GET_MODE_SIZE
3530 comparison as the canonical test for a paradoxical subreg.
3531 * combine.c (simplify_set): Use paradoxical_subreg_p.
3532 (make_extraction): Likewise.
3533 (force_to_mode): Likewise.
3534 (rtx_equal_for_field_assignment_p): Likewise.
3535 (gen_lowpart_for_combine): Likewise.
3536 (simplify_comparison): Likewise.
3537 * cse.c (equiv_constant): Likewise.
3538 * expmed.c (store_bit_field_1): Likewise.
3539 * final.c (alter_subreg): Likewise.
3540 * fwprop.c (propagate_rtx): Likewise.
3541 (forward_propagate_subreg): Likewise.
3542 * ira-conflicts.c (ira_build_conflicts): Likewise.
3543 * lower-subreg.c (simplify_gen_subreg_concatn): Likewise.
3544 * lra-constraints.c (curr_insn_transform): Likewise.
3545 (split_reg): Likewise.
3546 * lra-eliminations.c (move_plus_up): Likewise.
3547 (lra_eliminate_regs_1): Likewise.
3548 * recog.c (general_operand): Likewise.
3549 * ree.c (combine_reaching_defs): Likewise.
3550 * reload.c (push_reload): Likewise.
3551 (find_reloads): Likewise.
3552 * reload1.c (elimination_effects): Likewise.
3553 (compute_reload_subreg_offset): Likewise.
3554 (choose_reload_regs): Likewise.
3555 * rtlanal.c (subreg_lsb_1): Likewise.
3556 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
3557 (simplify_subreg): Likewise.
3558 * var-tracking.c (track_loc_p): Likewise.
3559 * emit-rtl.c (byte_lowpart_offset): Likewise.
3560 (paradoxical_subreg_p): Delete out-of-line definition.
3561
3562 2017-08-22 Jeff Law <law@redhat.com>
3563
3564 PR tree-optimization/81741
3565 PR tree-optimization/71947
3566 * tree-ssa-dom.c: Include tree-inline.h.
3567 (record_temporary_equivalences): Only record SSA_NAME = SSA_NAME
3568 equivalences if one is more expensive to compute than the other.
3569 * tree-ssa-scopedtables.h (class const_or_copies): Make
3570 record_const_or_copy_raw method private.
3571 (class avail_exprs_stack): New method simplify_binary_operation.
3572 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Call
3573 avail_exprs_stack::simplify_binary_operation as needed.
3574 (avail_exprs_stack::simplify_binary_operation): New function.
3575
3576 2017-08-22 Sebastian Huber <sebastian.huber@embedded-brains.de>
3577
3578 * config.gcc (powerpc-*-rtems*): Add rs6000/linux64.opt.
3579 * config/rs6000/rtems.h (ASM_PREFERRED_EH_DATA_FORMAT): New define.
3580 (DOT_SYMBOLS): Likewise.
3581 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
3582 (RELOCATABLE_NEEDS_FIXUP): Likewise.
3583 (RS6000_ABI_NAME): Likewise.
3584 (TARGET_CMODEL): Likewise.
3585 (TOC_SECTION_ASM_OP): Likewise.
3586 (SET_CMODEL): New macro.
3587 (SUBSUBTARGET_OVERRIDE_OPTIONS): Evaluate cmodel options.
3588
3589 2017-08-22 Richard Biener <rguenther@suse.de>
3590
3591 * tree-inline.c (remap_type_1): Change asserts on TYPE_SIZE[_UNIT]
3592 to allow for free-lang-data replacements similar to verify_type_variant.
3593
3594 2017-08-22 Richard Sandiford <richard.sandiford@linaro.org>
3595 Alan Hayward <alan.hayward@arm.com>
3596 David Sherwood <david.sherwood@arm.com>
3597
3598 * config/aarch64/aarch64.md (casesi): Use DImode rather than
3599 VOIDmode for the LABEL_REF.
3600
3601 2017-08-22 Richard Biener <rguenther@suse.de>
3602
3603 * tree-cfg.c (gimple_split_edge): Avoid reallocating target PHI nodes.
3604
3605 2017-08-22 Richard Biener <rguenther@suse.de>
3606
3607 * common.opt (feliminate-dwarf2-dups): Ignore.
3608 * doc/invoke.texi (feliminate-dwarf2-dups): Remove documentation.
3609 * dwarf2out.c (push_new_compile_unit, pop_compile_unit,
3610 same_die_p_wrap, compute_section_prefix,
3611 is_symbol_die, assign_symbol_names, break_out_includes): Remove.
3612 (comdat_symbol_id, comdat_symbol_number): Likewise.
3613 (cu_hash_table_entry, cu_hash_table_entry_hasher, cu_hash_type):
3614 Likewise.
3615 (check_duplicate_cu, record_comdat_symbol_number): Likewise.
3616 (output_die): Mark unreachable path unreachable.
3617 (dwarf2out_start_source_file): Do not create DW_TAG_GNU_BINCL.
3618 (dwarf2out_end_source_file): Do not create DW_TAG_GNU_EINCL.
3619 (dwarf2out_init): Remove code handling flag_eliminate_dwarf2_dups.
3620 (dwarf2out_early_finish): Likewise.
3621
3622 2017-08-22 Aldy Hernandez <aldyh@redhat.com>
3623
3624 * wide-int.h (hwi_with_prec::hwi_with_prec): Sign extend.
3625
3626 2017-08-22 Georg-Johann Lay <avr@gjlay.de>
3627
3628 PR target/81910
3629 * config/avr/avr.c (avr_handle_addr_attribute): Early return if
3630 not VAR_P. Filter attribute warnings with OPT_Wattributes.
3631 (avr_attribute_table) <io, io_low, address>: Initialize
3632 .decl_required with true.
3633
3634 2017-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3635
3636 * config/rs6000/rs6000-cpus.def (-mvsx-scalar-float): Delete
3637 undocumented debugging options.
3638 (-mvsx-scalar-double): Likewise.
3639 (-mallow-df-permute): Likewise.
3640 (-mvectorize-builtins): Likewise.
3641 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
3642 (rs6000_builtin_vectorized_function): Likewise.
3643 (rs6000_builtin_md_vectorized_function): Likewise.
3644 (rs6000_opt_vars): Likewise.
3645
3646 2017-08-21 Uros Bizjak <ubizjak@gmail.com>
3647
3648 PR target/46091
3649 * config/i386/i386.md (*btsq_imm): Rename from *btsq.
3650 (*btrq_imm): Rename from *btrq.
3651 (*btcq_imm): Rename from *btcq.
3652 (btsc): New code attribute.
3653 (*<btsc><mode>): New insn pattern.
3654 (*btr<mode>): Ditto.
3655 (*<btsc><mode>_mask): New insn_and_split pattern.
3656 (*btr<mode>_mask): Ditto.
3657
3658 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
3659 Alan Hayward <alan.hayward@arm.com>
3660 David Sherwood <david.sherwood@arm.com>
3661
3662 * function.c (pad_below): Simplify padding calculation.
3663
3664 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
3665 Alan Hayward <alan.hayward@arm.com>
3666 David Sherwood <david.sherwood@arm.com>
3667
3668 * target.def (function_prologue): Remove frame size argument.
3669 (function_epilogue): Likewise.
3670 * doc/tm.texi: Regenerate.
3671 * final.c (final_start_function): Update call to function_prologue.
3672 (final_end_function): Update call to function_epilogue.
3673 (default_function_pro_epilogue): Remove frame size argument.
3674 * output.h (default_function_pro_epilogue): Likewise.
3675 * config/arm/arm.c (arm_output_function_epilogue): Likewise.
3676 (arm_output_function_prologue): Likewise.
3677 * config/frv/frv.c (frv_function_prologue): Likewise.
3678 (frv_function_epilogue): Likewise.
3679 * config/i386/i386.c (ix86_output_function_epilogue): Likewise.
3680 * config/ia64/ia64.c (ia64_output_function_prologue): Likewise.
3681 (ia64_output_function_epilogue): Likewise.
3682 * config/m32r/m32r.c (m32r_output_function_prologue): Likewise.
3683 (m32r_output_function_epilogue): Likewise.
3684 * config/microblaze/microblaze.c (microblaze_function_prologue)
3685 (microblaze_function_epilogue): Likewise.
3686 * config/mips/mips.c (mips_output_function_prologue): Likewise.
3687 (mips_output_function_epilogue): Likewise.
3688 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Likewise.
3689 (mmix_target_asm_function_epilogue): Likewise.
3690 * config/msp430/msp430.c (msp430_start_function): Likewise.
3691 * config/nds32/nds32.c (nds32_asm_function_prologue): Likewise.
3692 (nds32_asm_function_epilogue): Likewise.
3693 * config/nios2/nios2.c (nios2_asm_function_prologue): Likewise.
3694 * config/pa/pa.c (pa_output_function_prologue): Likewise.
3695 (pa_output_function_epilogue): Likewise.
3696 * config/powerpcspe/powerpcspe.c (rs6000_output_function_prologue)
3697 (rs6000_output_function_epilogue): Likewise.
3698 * config/rl78/rl78.c (rl78_start_function): Likewise.
3699 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Likewise.
3700 (rs6000_output_function_epilogue): Likewise.
3701 * config/rx/rx.c (rx_output_function_prologue): Likewise.
3702 * config/sh/sh.c (sh_output_function_epilogue): Likewise.
3703 * config/sparc/sparc.c (sparc_asm_function_prologue): Likewise.
3704 (sparc_asm_function_epilogue): Likewise.
3705
3706 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
3707
3708 * tree.h (type_has_mode_precision_p): New function.
3709 * convert.c (convert_to_integer_1): Use it.
3710 * expr.c (expand_expr_real_2): Likewise.
3711 (expand_expr_real_1): Likewise.
3712 * fold-const.c (fold_single_bit_test_into_sign_test): Likewise.
3713 * match.pd: Likewise.
3714 * tree-ssa-forwprop.c (simplify_rotate): Likewise.
3715 * tree-ssa-math-opts.c (convert_mult_to_fma): Likewise.
3716 * tree-tailcall.c (process_assignment): Likewise.
3717 * tree-vect-loop.c (vectorizable_reduction): Likewise.
3718 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern)
3719 (vect_recog_mult_pattern, vect_recog_divmod_pattern): Likewise.
3720 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
3721 (vectorizable_assignment): Likewise.
3722 (vectorizable_shift): Likewise.
3723 (vectorizable_operation): Likewise.
3724 * tree-vrp.c (register_edge_assert_for_2): Likewise.
3725
3726 2017-08-21 Wilco Dijkstra <wdijkstr@arm.com>
3727
3728 * match.pd: Add pow (C, x) simplification.
3729
3730 2017-08-21 Richard Biener <rguenther@suse.de>
3731
3732 PR tree-optimization/81900
3733 * tree-ssa-pre.c (compute_antic_aux): Properly compute changed
3734 for blocks with abnormal predecessors.
3735 (compute_antic): Do not set visited flag prematurely.
3736
3737 2017-08-21 Georg-Johann Lay <avr@gjlay.de>
3738
3739 PR target/79883
3740 * config/avr/avr.c (avr_set_current_function): Typo in diagnostic.
3741
3742 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
3743
3744 * stor-layout.h (vector_type_mode): Move to...
3745 * tree.h (vector_type_mode): ...here.
3746 * stor-layout.c (vector_type_mode): Move to...
3747 * tree.c (vector_type_mode): ...here. Include rtl.h and regs.h.
3748
3749 2017-08-21 Richard Biener <rguenther@suse.de>
3750
3751 * debug.h (struct gcc_debug_hooks): Add die_ref_for_decl and
3752 register_external_die hooks.
3753 (debug_false_tree_charstarstar_uhwistar): Declare.
3754 (debug_nothing_tree_charstar_uhwi): Likewise.
3755 * debug.c (do_nothing_debug_hooks): Adjust.
3756 (debug_false_tree_charstarstar_uhwistar): New do nothing.
3757 (debug_nothing_tree_charstar_uhwi): Likewise.
3758 * dbxout.c (dbx_debug_hooks): Adjust.
3759 (xcoff_debug_hooks): Likewise.
3760 * sdbout.c (sdb_debug_hooks): Likewise.
3761 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3762 * dwarf2out.c (macinfo_label_base): New global.
3763 (dwarf2out_register_external_die): New function for the
3764 register_external_die hook.
3765 (dwarf2out_die_ref_for_decl): Likewise for die_ref_for_decl.
3766 (dwarf2_debug_hooks): Use them.
3767 (dwarf2_lineno_debug_hooks): Adjust.
3768 (struct die_struct): Add with_offset flag.
3769 (DEBUG_LTO_DWO_INFO_SECTION, DEBUG_LTO_INFO_SECTION,
3770 DEBUG_LTO_DWO_ABBREV_SECTION, DEBUG_LTO_ABBREV_SECTION,
3771 DEBUG_LTO_DWO_MACINFO_SECTION, DEBUG_LTO_MACINFO_SECTION,
3772 DEBUG_LTO_DWO_MACRO_SECTION, DEBUG_LTO_MACRO_SECTION,
3773 DEBUG_LTO_LINE_SECTION, DEBUG_LTO_DWO_STR_OFFSETS_SECTION,
3774 DEBUG_LTO_STR_DWO_SECTION, DEBUG_STR_LTO_SECTION): New macros
3775 defining section names for the early LTO debug variants.
3776 (reset_indirect_string): New helper.
3777 (add_AT_external_die_ref): Helper for dwarf2out_register_external_die.
3778 (print_dw_val): Add support for offsetted symbol references.
3779 (get_ultimate_context): Split out from is_cxx.
3780 (is_cxx): Use get_ultimate_context.
3781 (is_fortran): Add decl overload.
3782 (compute_comp_unit_symbol): Split out worker from
3783 compute_section_prefix.
3784 (compute_section_prefix): Call compute_comp_unit_symbol and
3785 set comdat_type_p here.
3786 (output_die): Skip DIE symbol output for the LTO added one.
3787 Handle DIE symbol references with offset.
3788 (output_comp_unit): Guard section name mangling properly.
3789 For LTO debug sections emit a symbol at the section beginning
3790 which we use to refer to its DIEs.
3791 (add_abstract_origin_attribute): For DIEs registered via
3792 dwarf2out_register_external_die directly refer to the early
3793 DIE rather than indirectly through the shadow one we created.
3794 Remove obsolete call to dwarf2out_abstract_function for
3795 non-function/block origins.
3796 (gen_array_type_die): When generating early LTO debug do
3797 not emit DW_AT_string_length.
3798 (gen_formal_parameter_die): Do not re-create DIEs for PARM_DECLs
3799 late when in LTO. As suggested place a gcc_unreachable for
3800 the DECL_ABSTRACT_P case.
3801 (gen_subprogram_die): Avoid another specification DIE
3802 for early built declarations/definitions for the late LTO case.
3803 (gen_variable_die): Add type references for late duplicated VLA dies
3804 when in late LTO.
3805 (gen_inlined_subroutine_die): Do not call dwarf2out_abstract_function,
3806 we have the abstract instance already.
3807 (process_scope_var): Adjust decl DIE contexts in LTO which
3808 first puts them in limbo.
3809 (gen_decl_die): Do not generate type DIEs late apart from
3810 types for VLAs or for decls we do not yet have a DIE. Do not
3811 call dwarf2out_abstract_function late.
3812 (dwarf2out_early_global_decl): Make sure to create DIEs
3813 for abstract instances of a decl first.
3814 (dwarf2out_late_global_decl): Adjust comment.
3815 (output_macinfo_op): With multiple macro sections use
3816 macinfo_label_base to distinguish labels.
3817 (output_macinfo): Likewise. Update macinfo_label_base.
3818 Pass in the line info label.
3819 (note_variable_value_in_expr): When generating LTO resolve
3820 all variable values here by generating DIEs as needed.
3821 (init_sections_and_labels): Add early LTO debug flag parameter
3822 and generate different sections and names if set. Add generation
3823 counter for the labels so we can have multiple of them.
3824 (reset_dies): Helper to allow DIEs to be output multiple times.
3825 (dwarf2out_finish): When outputting DIEs to the fat part of an
3826 LTO object first reset DIEs.
3827 (dwarf2out_early_finish): Output early DIEs when generating LTO.
3828 (modified_type_die): Check for decl_ultimate_origin being self
3829 before recursing.
3830 (gen_type_die_with_usage): Likewise.
3831 (gen_typedef_die): Allow decl_ultimate_origin being self.
3832 (set_decl_abstract_flags): Remove.
3833 (set_block_abstract_flags): Likewise.
3834 (dwarf2out_abstract_function): Treat the early generated DIEs
3835 as the abstract copy and only add DW_AT_inline and
3836 DW_AT_artificial here and call set_decl_origin_self.
3837 If the DIE has an abstract origin don't do anything.
3838 * tree.c (free_lang_data): Build a dummy TRANSLATION_UNIT_DECL
3839 if we have none yet (Go fails to build one, PR78628).
3840 (variably_modified_type_p): Prevent endless recursion for Ada
3841 cyclic pointer types.
3842 * lto-streamer-in.c: Include debug.h.
3843 (dref_queue): New global.
3844 (lto_read_tree_1): Stream in DIE references.
3845 (lto_input_tree): Register DIE references.
3846 (input_function): Stream DECL_DEBUG_ARGS.
3847 * lto-streamer-out.c: Include debug.h.
3848 (lto_write_tree_1): Output DIE references.
3849 (DFS::DFS_write_tree_body): Follow DECL_ABSTRACT_ORIGIN.
3850 Force a TRANSLATION_UNIT_DECL DECL_CONTEXT for file-scope decls.
3851 (output_function): Stream DECL_DEBUG_ARGS.
3852 * tree-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
3853 Stream DECL_ABSTRACT_ORIGIN.
3854 * tree-streamer-out.c (write_ts_decl_common_tree_pointers): Likewise.
3855 (write_ts_decl_minimal_tree_pointers): Force a TRANSLATION_UNIT_DECL
3856 DECL_CONTEXT for file-scope decls.
3857 * lto-streamer.h (struct dref_entry): Declare.
3858 (dref_queue): Likewise.
3859 * cfgexpand.c (pass_expand::execute): Do not call the
3860 outlining_inline_function hook here.
3861 * lto-wrapper.c (debug_obj): New global.
3862 (tool_cleanup): Unlink it if required.
3863 (debug_objcopy): New function.
3864 (run_gcc): Handle early debug sections in the IL files by
3865 extracting them to separate files, partially linkin them and
3866 feeding the result back as result to the linker.
3867 * config/darwin.h (DEBUG_LTO_INFO_SECTION, DEBUG_LTO_ABBREV_SECTION,
3868 DEBUG_LTO_MACINFO_SECTION, DEBUG_LTO_LINE_SECTION,
3869 DEBUG_STR_LTO_SECTION, DEBUG_LTO_MACRO_SECTION): Put early debug
3870 sections into a separate segment.
3871 * config/darwin.c (darwin_asm_named_section): Handle __GNU_DWARF_LTO
3872 segments.
3873 (darwin_asm_dwarf_section): Likewise.
3874 (darwin_asm_output_dwarf_offset): Likewise.
3875 * config/i386/i386.c (make_resolver_func): Set DECL_IGNORED_P.
3876
3877 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
3878 Alan Hayward <alan.hayward@arm.com>
3879 David Sherwood <david.sherwood@arm.com>
3880
3881 * read-md.h (md_reader::record_potential_iterator_use): Replace
3882 pointer argument with an rtx and an index.
3883 * read-rtl.c (iterator_group::apply_iterator): Likewise.
3884 (apply_mode_iterator): Likewise.
3885 (apply_code_iterator): Likewise.
3886 (apply_int_iterator): Likewise.
3887 (apply_subst_iterator): Likewise.
3888 (record_iterator_use): Likewise.
3889 (record_attribute_use): Likewise.
3890 (md_reader::record_potential_iterator_use): Likewise. Update calls
3891 to record_iterator_use and apply_iterator.
3892 (iterator_use): Replace ptr with x and index.
3893 (attribute_use): Likewise.
3894 (apply_attribute_uses): Update calls to apply_iterator.
3895 (apply_iterators): Likewise. Update initialization of iterator_use.
3896 (rtx_reader::read_rtx_code): Update calls to record_iterator_use
3897 and record_potential_iterator_use.
3898 (rtx_reader::read_rtx_operand): Likewise.
3899
3900 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
3901 Alan Hayward <alan.hayward@arm.com>
3902 David Sherwood <david.sherwood@arm.com>
3903
3904 * varasm.c (const_rtx_hash_1): Don't hash in the mode of a
3905 CONST_WIDE_INT.
3906
3907 2017-08-21 Richard Biener <rguenther@suse.de>
3908
3909 PR middle-end/81884
3910 * tree-ssa-alias.c (stmt_kills_ref_p): Handle array accesses
3911 at struct end conservatively when comparing common bases.
3912
3913 2017-08-21 Richard Biener <rguenther@suse.de>
3914
3915 * tree-ssa-loop-im.c (struct lim_aux_data): Add ref index member.
3916 (mem_ref_in_stmt): Remove.
3917 (determine_max_movement): Use ref index to get at the reference.
3918 (invariantness_dom_walker::before_dom_children): Deal with
3919 lim data already initialized.
3920 (gather_mem_refs_stmt): Initialize lim data and record ref index.
3921
3922 2017-08-19 Uros Bizjak <ubizjak@gmail.com>
3923
3924 * config/i386/i386.h (OPTION_MASK_ISA_ROUND): Remove.
3925 (TARGET_ISA_ROUND): Ditto.
3926 (TARGET_ROUND): Ditto.
3927 * config/i386/i386.c: Substitute TARGET_ROUND with TARGET_SSE4_1.
3928 * config/i386/i386.md: Ditto.
3929 * config/i386/sse.md: Ditto.
3930 * config/i386/i386-builtin.def: Substitute OPTION_MASK_ISA_ROUND
3931 with OPTION_MASK_ISA_SSE4_1.
3932
3933 2017-08-19 Uros Bizjak <ubizjak@gmail.com>
3934
3935 PR target/81894
3936 * doc/extend.texi (x86 Built-in Functions): Correct the name of
3937 __builtin_ia32_lzcnt_u16.
3938
3939 2017-08-18 Peter Bergner <bergner@vnet.ibm.com>
3940
3941 PR target/80210
3942 * config/rs6000/rs6000.c (rs6000_activate_target_options): New function.
3943 (rs6000_set_current_function): Rewrite function to use it.
3944
3945 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
3946
3947 PR c/53037
3948 * print-tree.c (print_node): Support DECL_WARN_IF_NOT_ALIGN
3949 and TYPE_WARN_IF_NOT_ALIGN.
3950 * stor-layout.c (do_type_align): Merge DECL_WARN_IF_NOT_ALIGN.
3951 (handle_warn_if_not_align): New.
3952 (place_union_field): Call handle_warn_if_not_align.
3953 (place_field): Call handle_warn_if_not_align.
3954 Copy TYPE_WARN_IF_NOT_ALIGN.
3955 (finish_builtin_struct): Copy TYPE_WARN_IF_NOT_ALIGN.
3956 (layout_type): Likewise.
3957 * tree-core.h (tree_type_common): Add warn_if_not_align. Set
3958 spare to 18.
3959 (tree_decl_common): Add warn_if_not_align.
3960 * tree.c (build_range_type_1): Copy TYPE_WARN_IF_NOT_ALIGN.
3961 * tree.h (TYPE_WARN_IF_NOT_ALIGN): New.
3962 (SET_TYPE_WARN_IF_NOT_ALIGN): Likewise.
3963 (DECL_WARN_IF_NOT_ALIGN): Likewise.
3964 (SET_DECL_WARN_IF_NOT_ALIGN): Likewise.
3965 * doc/extend.texi: Document warn_if_not_aligned attribute.
3966 * doc/invoke.texi: Document -Wif-not-aligned and -Wpacked-not-aligned.
3967
3968 2017-08-17 Martin Liska <mliska@suse.cz>
3969
3970 PR bootstrap/81864
3971 * tree-loop-distribution.c (ddrs_table): Change type to pointer type.
3972 (get_data_dependence): Use it as pointer type.
3973 (distribute_loop): Likewise.
3974
3975 2017-08-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3976
3977 * config/rs6000/altivec.md (UNSPEC_VMRGOW_DIRECT): New constant.
3978 (p8_vmrgew_v4sf_direct): Generalize to p8_vmrgew_<mode>_direct.
3979 (p8_vmrgow_<mode>_direct): New define_insn.
3980 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Properly
3981 handle endianness for vmrgew and vmrgow permute patterns.
3982
3983 2017-08-17 Peter Bergner <bergner@vnet.ibm.com>
3984
3985 * config/rs6000/altivec.md (VParity): Remove TARGET_VSX_TIMODE.
3986 * config/rs6000/rs6000-cpus.def: Remove comment.
3987 (ISA_2_7_MASKS_SERVER): Delete OPTION_MASK_VSX_TIMODE;
3988 (POWERPC_MASKS): Likewise.
3989 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Remove unneeded
3990 use of TARGET_VSX_TIMODE.
3991 (rs6000_setup_reg_addr_masks): Change TARGET_VSX_TIMODE to TARGET_VSX.
3992 (rs6000_init_hard_regno_mode_ok): Remove unneeded uses of
3993 TARGET_VSX_TIMODE. Change use of TARGET_VSX_TIMODE to TARGET_VSX.
3994 (rs6000_option_override_internal): Remove dead code.
3995 (rs6000_legitimize_address): Change TARGET_VSX_TIMODE to TARGET_VSX.
3996 (rs6000_legitimize_reload_address): Likewise.
3997 (rs6000_legitimate_address_p): Likewise.
3998 (rs6000_opt_masks): Delete "vsx-timode".
3999 (rs6000_disable_incompatible_switches): Remove mention of -mvsx-timode
4000 from function comment.
4001 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Delete.
4002 * config/rs6000/rs6000.md (FMOVE128_GPR): Remove TARGET_VSX_TIMODE.
4003 (V16QI, V8HI, V4SI, V4SF, V2DI, V2DF, V1TI): Remove useless empty
4004 condition.
4005 * config/rs6000/rs6000.opt (mvsx-timode): Replace with stub.
4006 * config/rs6000/vector.md (VEC_IP): Remove TARGET_VSX_TIMODE.
4007 * config/rs6000/vsx.md (VSX_LE_128): Likewise.
4008 (VSX_TI): Likewise.
4009 (VSX_M): Likewise.
4010 (define_peephole2): Likewise.
4011
4012 2017-08-17 Martin Sebor <msebor@redhat.com>
4013
4014 PR c/81859
4015 * pretty-print.c (pp_format): Use strnlen in %.*s to avoid reading
4016 past the end of an array.
4017 (test_pp_format): Add test cases.
4018
4019 2017-08-17 Richard Sandiford <richard.sandiford@linaro.org>
4020
4021 * internal-fn.def (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): Add
4022 missing ECF_NOTHROW flags.
4023
4024 2017-08-17 Peter Bergner <bergner@vnet.ibm.com>
4025
4026 PR target/72804
4027 * config/rs6000/vsx.md (*vsx_le_permute_<mode>): Add support for
4028 operands residing in integer registers.
4029 (*vsx_le_perm_load_<mode>): Likewise.
4030 (*vsx_le_perm_store_<mode>): Likewise.
4031 (define_peephole2): Add peepholes to optimize the above.
4032
4033 2017-08-17 Marek Polacek <polacek@redhat.com>
4034
4035 PR middle-end/81814
4036 * fold-const.c (operand_equal_for_comparison_p): Remove code that used
4037 to mimic what shorten_compare did. Change the return type to bool.
4038 (fold_cond_expr_with_comparison): Update call to
4039 operand_equal_for_comparison_p.
4040 (fold_ternary_loc): Likewise.
4041
4042 2017-08-17 Jackson Woodruff <jackson.woodruff@arm.com>
4043
4044 * aarch64-simd.md (mov<mode>): No longer force zero immediate into
4045 register.
4046 (*aarch64_simd_mov<mode>): Add new case for stp using zero immediate.
4047
4048 2017-08-17 Richard Biener <rguenther@suse.de>
4049
4050 * tree-ssa-structalias.c (solve_graph): When propagating
4051 to successors update the graphs succ edges and avoid duplicate work.
4052
4053 2017-08-17 Maxim Ostapenko <m.ostapenko@samsung.com>
4054
4055 PR target/81861
4056 * config/i386/i386.c (ix86_option_override_internal): Save target
4057 specific options after ix86_stack_protector_guard_reg was changed.
4058
4059 2017-08-17 Richard Biener <rguenther@suse.de>
4060
4061 PR tree-optimization/81827
4062 * tree-ssa-structalias.c (struct variable_info): Add is_reg_var flag.
4063 (new_var_info): Initialize it conservatively.
4064 (get_call_vi): Mark register vars.
4065 (new_scalar_tmp_constraint_exp): Likewise.
4066 (handle_rhs_call): Likewise.
4067 (handle_const_call): Likewise.
4068 (create_function_info_for): Likewise.
4069 (solve_constraints): Sort varinfos to separate register from
4070 non-register vars to pack points-to solution bitmaps during
4071 iteration.
4072
4073 2017-08-17 Marek Polacek <polacek@redhat.com>
4074
4075 * gimplify.c (gimplify_adjust_omp_clauses): Compare with 0 instead of 1.
4076
4077 2017-08-17 Richard Biener <rguenther@suse.de>
4078
4079 * tree-vrp.c (vrp_int_const_binop): Do not set *overflow_p
4080 to true when overflow is undefined and we saturated the result.
4081
4082 2017-08-17 Alan Modra <amodra@gmail.com>
4083
4084 PR target/80938
4085 * config/rs6000/rs6000.c (rs6000_savres_strategy): Revert 2017-08-09.
4086 Don't use store multiple if only one reg needs saving.
4087 (interesting_frame_related_regno): New function.
4088 (rs6000_frame_related): Don't emit frame info for regs that
4089 don't need saving.
4090 (rs6000_emit_epilogue): Likewise.
4091
4092 2017-08-16 Nathan Sidwell <nathan@acm.org>
4093
4094 * tree-core.h (tree_type_non_common): Rename binfo to lang_1.
4095 * tree.h (TYPE_BINFO): Use type_non_common.maxval.
4096 (TYPE_LANG_SLOT_1): Use type_non_common.lang_1, for any type.
4097 * tree.c (free_lang_data_in_type): Use else-if chain. Always
4098 clear TYPE_LANG_1. Remove obsolete member-function stripping.
4099 (find_decls_types_r): Comment about TYPE_MAX_VALUES_RAW.
4100 (verify_type): Adjust for TYPE_BINFO move.
4101 * lto-streamer-out.c (DFS::DFS_write_tree_body): No need to
4102 process TYPE_BINFO directly.
4103 (hash_tree): Likewise.
4104 * tree-streamer-in.c (lto_input_ts_type_non_common_tree_pointers):
4105 Likewise.
4106 * tree-streamer-out.c (write_ts_type_non_common_tree_pointers):
4107 Likewise.
4108
4109 2017-08-16 David Malcolm <dmalcolm@redhat.com>
4110
4111 * diagnostic-show-locus.c (colorizer::m_caret): Remove unused field.
4112
4113 2017-08-16 Uros Bizjak <ubizjak@gmail.com>
4114
4115 PR target/46091
4116 * config/i386/i386.md (*anddi_1_btr): Change predicates of
4117 operand 0 and operand 1 to nomimmediate_operand. Add "m" constraint.
4118 Add ix86_binary_operator_ok to insn constraint.
4119 (*iordi_1_bts): Ditto.
4120 (*xordi_1_btc): Ditto.
4121 (*btsq): Change predicate of operand 0 to nonimmediate_operand.
4122 Update corresponding peephole2 pattern.
4123 (*btrq): Ditto.
4124 (*btcq): Ditto.
4125
4126 2017-08-16 Bin Cheng <bin.cheng@arm.com>
4127
4128 PR tree-optimization/81832
4129 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Don't
4130 copy loop header which has IFN_LOOP_DIST_ALIAS call.
4131
4132 2017-08-16 Marek Polacek <polacek@redhat.com>
4133
4134 PR middle/81695
4135 * fold-const.c (fold_indirect_ref_1): Restore original behavior
4136 regarding size_zero_node.
4137
4138 2017-08-16 Martin Liska <mliska@suse.cz>
4139
4140 PR target/81753
4141 * config.gcc: Respect previously set extra_objs in case
4142 of darwin target.
4143
4144 2017-08-16 Richard Sandiford <richard.sandiford@linaro.org>
4145
4146 PR tree-optimization/81835
4147 * tree-vect-loop.c (vect_is_simple_reduction): Simply checks for
4148 the phi SSA_NAME. Check that the condition in a COND_EXPR does
4149 not depend on the phi.
4150
4151 2017-08-16 Alan Modra <amodra@gmail.com>
4152
4153 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Delete
4154 dead code.
4155
4156 2017-08-16 Alan Modra <amodra@gmail.com>
4157
4158 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Merge..
4159 (save_reg_p): ..into this. Update all callers.
4160 (first_reg_to_save): Simplify.
4161
4162 2017-08-16 Alan Modra <amodra@gmail.com>
4163
4164 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't restore
4165 fixed regs.
4166
4167 2017-08-15 Joseph Myers <joseph@codesourcery.com>
4168
4169 PR target/78460
4170 PR target/67712
4171 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Only unroll for
4172 constant count if that count is less than 32.
4173
4174 2017-08-15 Nathan Sidwell <nathan@acm.org>
4175
4176 * gcc.c (execute): Emit friendlier message if inferior is killed
4177 by an external cause.
4178
4179 2017-08-15 Richard Biener <rguenther@suse.de>
4180
4181 PR tree-optimization/81790
4182 * tree-ssa-sccvn.c (vn_lookup_simplify_result): Handle both
4183 CONSTRUCTORs from simplifying and VN.
4184
4185 2017-08-14 Martin Sebor <msebor@redhat.com>
4186
4187 * builtin-attrs.def: Add comments.
4188
4189 2017-08-14 Martin Sebor <msebor@redhat.com>
4190
4191 PR c/81117
4192 * doc/extend.texi (attribute nonstring): Document new attribute.
4193
4194 2017-08-14 Martin Sebor <msebor@redhat.com>
4195
4196 PR c/81117
4197 * tree-diagnostic.c (default_tree_printer): Handle %G.
4198 * gimple-pretty-print.h (percent_G_format): Declare new function.
4199 * gimple-pretty-print.c (percent_G_format): Define.
4200 * tree-pretty-print.c (percent_K_format): Add argument.
4201
4202 2017-08-14 Martin Sebor <msebor@redhat.com>
4203
4204 PR translation/79998
4205 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
4206 Remove a stray space.
4207
4208 2017-08-14 Uros Bizjak <ubizjak@gmail.com>
4209
4210 PR target/46091
4211 * config/i386/i386.md (*anddi_1_btr): New insn_and_split pattern.
4212 (*iordi_1_bts): Ditto.
4213 (*xordi_1_btc): Ditto.
4214
4215 2017-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4216
4217 PR target/79845
4218 * config/rs6000/linux64.h (INVALID_64BIT): Use quoted strings.
4219 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4220 Likewise.
4221 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Use
4222 quoted strings, and make more translator-friendly.
4223 (darwin_rs6000_override_options): Likewise.
4224 (rs6000_option_override_internal): Likewise.
4225 (rs6000_return_in_memory): Fix overlong line.
4226 (init_cmulative_args): Use quoted strings, and make more
4227 translator-friendly.
4228 (rs6000_pass_by_reference): Fix overlong line.
4229 (def_builtin): Use quoted strings.
4230 (altivec_expand_predicate_builtin): Use quoted strings, and make
4231 more translator-friendly.
4232 (htm_expand_builtin): Use quoted strings.
4233 (cpu_expand_builtin): Use quoted strings, and make more
4234 translator-friendly.
4235 (altivec_expand_builtin): Likewise.
4236 (paired_expand_predicate_builtin): Likewise.
4237 (rs6000_invalid_builtin): Likewise.
4238 (builtin_function_type): Use quoted strings.
4239 (rs6000_expand_split_stack_prologue): Use quoted strings, and make
4240 more translator-friendly.
4241 (rs6000_trampoline_init): Likewise.
4242 (rs6000_handle_altivec_attribute): Likewise.
4243 (rs6000_inner_target_options): Use quoted strings.
4244 (rs6000_disable_incompatible_switches): Likewise.
4245 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Use quoted
4246 strings, and make more translator-friendly.
4247 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use quoted strings.
4248
4249 2017-08-14 Bin Cheng <bin.cheng@arm.com>
4250
4251 PR tree-optimization/81799
4252 * tree-loop-distribution.c (version_loop_by_alias_check): Force
4253 cond_expr to simple gimple operand.
4254
4255 2017-08-14 Wilco Dijkstra <wdijkstr@arm.com>
4256
4257 PR middle-end/46932
4258 * doc/sourcebuild.texi (autoincdec): Add autoincdec description.
4259
4260 2017-08-14 Georg-Johann Lay <avr@gjlay.de>
4261
4262 PR target/81754
4263 PR target/81268
4264 * config/avr/avr.opt (mgas-isr-prologues): New Var avr_gasisr_prologues.
4265 * config/avr/avr.md (gasisr, *gasisr): Use it instead of
4266 TARGET_GASISR_PROLOGUES.
4267 * config/avr/avr.c (avr_option_override): Same.
4268 (avr_pass_pre_proep::execute): Same.
4269
4270 2017-08-13 H.J. Lu <hongjiu.lu@intel.com>
4271
4272 PR target/81820
4273 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Replace
4274 frame pointer with stack pointer - UNITS_PER_WORD in debug insns.
4275
4276 2017-08-13 Uros Bizjak <ubizjak@gmail.com>
4277
4278 * config/i386/i386.md (*load_tp_<mode>): Redefine as
4279 define_insn_and_split. Split to a memory load from 0 in
4280 DEFAULT_TLS_SEG_REG address space. Merge with *load_tp_x32
4281 using PTR mode iterator.
4282 (*load_tp_x32_zext"): Redefine as define_insn_and_split.
4283 Split to a memory load from 0 in DEFAULT_TLS_SEG_REG address space.
4284 (*add_tp_<mode>): Redefine as define_insn_and_split.
4285 Split to an add with a memory load from 0 in DEFAULT_TLS_SEG_REG
4286 address space. Merge with *add_tp_x32 using PTR mode iterator.
4287 (*add_tp_x32_zext"): Redefine as define_insn_and_split.
4288 Split to an add with a memory load from 0 in
4289 DEFAULT_TLS_SEG_REG address space.
4290
4291 2017-08-12 Andrew Pinski <apinski@cavium.com>
4292
4293 * config/aarch64/aarch64-option-extensions.def (rdma):
4294 Fix feature string to what Linux prints out in /proc/cpuinfo.
4295
4296 2017-08-12 Pierre-Marie de Rodat <derodat@adacore.com>
4297
4298 PR ada/79542
4299 * dwarf2out.c (modified_type_die): For C typedef types that have
4300 an ultimate origin, process the ultimate origin instead of the
4301 input type.
4302 (gen_typedef_die): Assert that input DECLs have no ultimate
4303 origin.
4304 (gen_type_die_with_usage): For typedef variants that have an
4305 ultimate origin, just call gen_decl_die on the original DECL.
4306 (process_scope_var): Avoid creating DIEs for local typedefs and
4307 concrete static variables.
4308
4309 2017-08-12 Alan Modra <amodra@gmail.com>
4310
4311 PR target/81170
4312 PR target/81295
4313 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Upgrade to
4314 match gnu-user.h startfile.
4315 (ENDFILE_LINUX_SPEC): Similarly.
4316
4317 2017-08-11 Thomas Schwinge <thomas@codesourcery.com>
4318
4319 PR lto/81430
4320 * config/nvptx/nvptx.c (nvptx_override_options_after_change):
4321 Remove function.
4322 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Remove definition.
4323
4324 2017-08-11 Tamar Christina <tamar.christina@arm.com>
4325 * config/aarch64/aarch64.md (mov<mode>): Change.
4326 (*movhf_aarch64, *movsf_aarch64, *movdf_aarch64):
4327 aarch64_reg_or_fp_float into aarch64_reg_or_fp_zero.
4328 * config/aarch64/predicates.md (aarch64_reg_or_fp_float): Removed.
4329
4330 2017-08-11 Eric Botcazou <ebotcazou@adacore.com>
4331
4332 * tree-sra.c (build_access_from_expr_1): Use more precise diagnostics
4333 for storage order barriers.
4334
4335 2017-08-11 Martin Liska <mliska@suse.cz>
4336
4337 PR tree-opt/79987
4338 * tree-chkp.c (chkp_get_bounds_for_decl_addr): Do not instrument
4339 variables of void type.
4340
4341 2017-08-11 Martin Liska <mliska@suse.cz>
4342
4343 * asan.c (asan_protect_global): Replace ASM_OUTPUT_DEF with
4344 TARGET_SUPPORTS_ALIASES.
4345 * cgraph.c (cgraph_node::create_same_body_alias): Likewise.
4346 * ipa-visibility.c (can_replace_by_local_alias): Likewise.
4347 (optimize_weakref): Likewise.
4348 * symtab.c (symtab_node::noninterposable_alias): Likewise.
4349 * varpool.c (varpool_node::create_extra_name_alias): Likewise.
4350 * defaults.h: Introduce TARGET_SUPPORTS_ALIASES.
4351
4352 2017-08-11 Martin Liska <mliska@suse.cz>
4353
4354 PR ipa/81213
4355 * config/i386/i386.c (make_resolver_func): Do complete
4356 refactoring of the function.
4357
4358 2017-08-10 Uros Bizjak <ubizjak@gmail.com>
4359
4360 PR target/81708
4361 * config/i386/i386.opt (mstack-protector-guard-symbol=): New option
4362 * config/i386/i386.c (ix86_stack_protect_guard): Use
4363 ix86_stack_protect_guard_symbol_str to generate varible declaration.
4364 * doc/invoke.texi (x86 Options): Document
4365 -mstack-protector-guard-symbol= option.
4366
4367 2017-08-10 Uros Bizjak <ubizjak@gmail.com>
4368
4369 * config/i386/i386-protos.h (ix86_split_stack_guard): New prototype.
4370 * config/i386/i386.c (ix86_split_stack_guard): New function.
4371 (ix86_xpand_split_stack_prologue): Call ix86_split_stack_guard.
4372 (ix86_legitimate_address_p) <case UNSPEC_STACK_CHECK>: Remove.
4373 (i386_asm_output_addr_const_extra) <case UNSPEC_STACK_CHECK>: Ditto.
4374 (optput_pic_addr_const): Remove UNSPEC_STACK_CHECK handling.
4375 * config/i386/i386.md (unspec): Remove UNSPEC_STACK_CHECK.
4376 (split_stack_space_check): Call ix86_split_stack_guard.
4377
4378 2017-08-10 Martin Sebor <msebor@redhat.com>
4379
4380 * print-tree.c (print_node): Print location using the established
4381 format %s:%i%i.
4382 Replace spaces with colons.
4383 (debug_raw, debug): Ditto.
4384
4385 2017-08-10 Martin Sebor <msebor@redhat.com>
4386
4387 PR c++/81586
4388 * pretty-print.c (pp_format): Correct the handling of %s precision.
4389
4390 2017-08-10 H.J. Lu <hongjiu.lu@intel.com>
4391
4392 PR target/81736
4393 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Renamed
4394 to ...
4395 (ix86_finalize_stack_frame_flags): This. Also clear
4396 frame_pointer_needed if -fno-omit-frame-pointer is used without
4397 stack access.
4398 (ix86_expand_prologue): Replace ix86_finalize_stack_realign_flags
4399 with ix86_finalize_stack_frame_flags.
4400 (ix86_expand_epilogue): Likewise.
4401 (ix86_expand_split_stack_prologue): Likewise.
4402 * doc/invoke.texi: Add a note for -fno-omit-frame-pointer.
4403
4404 2017-08-10 Martin Liska <mliska@suse.cz>
4405
4406 PR c++/81355
4407 * c-attribs.c (handle_target_attribute):
4408 Report warning for an empty string argument of target attribute.
4409
4410 2017-08-09 Jakub Jelinek <jakub@redhat.com>
4411
4412 PR c/81687
4413 * omp-low.c (omp_copy_decl): Don't remap FORCED_LABEL or DECL_NONLOCAL
4414 LABEL_DECLs.
4415 * tree-cfg.c (move_stmt_op): Don't adjust DECL_CONTEXT of FORCED_LABEL
4416 or DECL_NONLOCAL labels.
4417 (move_stmt_r) <case GIMPLE_LABEL>: Adjust DECL_CONTEXT of FORCED_LABEL
4418 or DECL_NONLOCAL labels here.
4419
4420 2017-08-09 Will Schmidt <will_schmidt@vnet.ibm.com>
4421
4422 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add blurb
4423 to indicate when early gimple folding has been disabled.
4424 (rs6000_gimple_fold_builtin): Add debug content.
4425 (rs6000_invalid_builtin): Fix whitespace.
4426 (rs6000_expand_builtin): Fix whitespace.
4427 * config/rs6000/rs6000.opt: Add option for -mfold-gimple.
4428
4429 2017-08-09 Segher Boessenkool <segher@kernel.crashing.org>
4430
4431 PR target/80938
4432 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
4433 SAVE_MULTIPLE if not all the registers that saves, should be saved.
4434
4435 2017-08-09 Jim Wilson <jim.wilson@linaro.org>
4436
4437 * config/aarch64/aarch64-cores.def (falkor): Use falkor pipeline.
4438 (qdf24xx): Likewise.
4439 * config/aarch64/aarch64.md: Include falkor.md.
4440 * config/aarch64/falkor.md: New.
4441
4442 2017-08-09 Marek Polacek <polacek@redhat.com>
4443
4444 PR c/81233
4445 * diagnostic-core.h (emit_diagnostic_valist): Add declaration.
4446 * diagnostic.c (emit_diagnostic): Add a comment.
4447 (emit_diagnostic_valist): New function.
4448
4449 2017-08-09 Marek Polacek <polacek@redhat.com>
4450
4451 PR c/81417
4452 * input.c (make_location): New overload.
4453 * input.h (make_location): Declare.
4454
4455 2017-08-08 Alan Modra <amodra@gmail.com>
4456 H.J. Lu <hongjiu.lu@intel.com>
4457
4458 PR driver/81523
4459 * gcc.c (NO_PIE_SPEC): Delete.
4460 (PIE_SPEC): Define as !no-pie/pie. Move static|shared|r
4461 exclusion..
4462 (LINK_PIE_SPEC): ..to here.
4463 (LINK_COMMAND_SPEC): Support -no-pie.
4464 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Correct
4465 chain of crtbegin*.o selection, update for PIE_SPEC changes and
4466 format.
4467 (GNU_USER_TARGET_ENDFILE_SPEC): Similarly.
4468 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Similarly.
4469 (ENDFILE_CRTEND_SPEC): Similarly.
4470
4471 2017-08-08 Uros Bizjak <ubizjak@gmail.com>
4472
4473 PR target/81708
4474 * config/i386/i386.opt (mstack-protector-guard-reg=): New option
4475 (mstack-protector-guard-offset=): Ditto.
4476 * config/i386/i386.c (ix86_option_override): Handle
4477 -mstack-protector-guard-reg= and -mstack-protector-guard-offset=
4478 options.
4479 (ix86_stack_protect_guard): Use ix86_stack_protect_guard_reg and
4480 ix86_stack_protect_guard_offset variables.
4481 (TARGET_STACK_PROTECT_GUARD): Always define.
4482 * doc/invoke.texi (x86 Options): Document -mstack-protector-guard-reg=
4483 and -mstack-protector-guard-offset= options.
4484
4485 2017-08-08 Bin Cheng <bin.cheng@arm.com>
4486
4487 * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): Handle
4488 boundary case for the last candidate.
4489
4490 2017-08-08 Bin Cheng <bin.cheng@arm.com>
4491
4492 * doc/invoke.texi: Document -ftree-loop-distribution for O3.
4493 * opts.c (default_options_table): Add OPT_ftree_loop_distribution.
4494
4495 2017-08-08 Tamar Christina <tamar.christina@arm.com>
4496
4497 PR middle-end/19706
4498 * config/aarch64/aarch64.md (xorsign<mode>3): New optabs.
4499 * config/aarch64/aarch64-builtins.c
4500 (aarch64_builtin_vectorized_function): Added CASE_CFN_XORSIGN.
4501 * config/aarch64/aarch64-simd-builtins.def: Added xorsign BINOP.
4502 * config/aarch64/aarch64-simd.md: Added xorsign<mode>3
4503
4504 2017-08-08 Tamar Christina <tamar.christina@arm.com>
4505 Andrew Pinski <pinskia@gmail.com>
4506
4507 PR middle-end/19706
4508 * internal-fn.def (XORSIGN): New.
4509 * optabs.def (xorsign_optab): New.
4510 * tree-ssa-math-opts.c (is_copysign_call_with_1): New.
4511 (convert_expand_mult_copysign): New.
4512 (pass_optimize_widening_mul::execute): Call
4513 convert_expand_mult_copysign.
4514
4515 2017-08-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4516
4517 PR tree-optimization/81354
4518 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
4519 Insert on edges rather than explicitly creating landing pads.
4520 (analyze_candidates_and_replace): Commit edge inserts.
4521
4522 2017-08-08 Richard Biener <rguenther@suse.de>
4523
4524 PR middle-end/81719
4525 * tree-ssa-loop-niter.c: Include tree-dfa.h.
4526 (expand_simple_operations): Also look through ADDR_EXPRs with
4527 MEM_REF bases treating them as POINTER_PLUS_EXPR.
4528
4529 2017-08-08 Richard Biener <rguenther@suse.de>
4530
4531 PR tree-optimization/81723
4532 * tree-vect-slp.c (struct bst_traits): New hash traits.
4533 (bst_fail): New global.
4534 (vect_build_slp_tree_2): New worker, split out from ...
4535 (vect_build_slp_tree): ... this now wrapping it with using
4536 bst_fail set to cache SLP tree build fails. Properly handle
4537 max_tree_size.
4538 (vect_analyze_slp_instance): Allocate and free bst_fail.
4539
4540 2017-08-08 Martin Liska <mliska@suse.cz>
4541
4542 PR tree-opt/81696
4543 * ipa-icf-gimple.c (func_checker::compare_cst_or_decl): Consider
4544 LABEL_DECLs that can be from a different function.
4545
4546 2017-08-08 Bin Cheng <bin.cheng@arm.com>
4547
4548 PR tree-optimization/81744
4549 * tree-predcom.c (prepare_finalizers_chain): Deep copy expr of
4550 loop's number of iterations.
4551
4552 2017-08-08 Martin Liska <mliska@suse.cz>
4553
4554 * asan.c: Include header files.
4555 * attribs.c (build_decl_attribute_variant): New function moved
4556 from tree.[ch].
4557 (build_type_attribute_qual_variant): Likewise.
4558 (cmp_attrib_identifiers): Likewise.
4559 (simple_cst_list_equal): Likewise.
4560 (omp_declare_simd_clauses_equal): Likewise.
4561 (attribute_value_equal): Likewise.
4562 (comp_type_attributes): Likewise.
4563 (build_type_attribute_variant): Likewise.
4564 (lookup_ident_attribute): Likewise.
4565 (remove_attribute): Likewise.
4566 (merge_attributes): Likewise.
4567 (merge_type_attributes): Likewise.
4568 (merge_decl_attributes): Likewise.
4569 (merge_dllimport_decl_attributes): Likewise.
4570 (handle_dll_attribute): Likewise.
4571 (attribute_list_equal): Likewise.
4572 (attribute_list_contained): Likewise.
4573 * attribs.h (lookup_attribute): New function moved from tree.[ch].
4574 (lookup_attribute_by_prefix): Likewise.
4575 * bb-reorder.c: Include header files.
4576 * builtins.c: Likewise.
4577 * calls.c: Likewise.
4578 * cfgexpand.c: Likewise.
4579 * cgraph.c: Likewise.
4580 * cgraphunit.c: Likewise.
4581 * convert.c: Likewise.
4582 * dwarf2out.c: Likewise.
4583 * final.c: Likewise.
4584 * fold-const.c: Likewise.
4585 * function.c: Likewise.
4586 * gimple-expr.c: Likewise.
4587 * gimple-fold.c: Likewise.
4588 * gimple-pretty-print.c: Likewise.
4589 * gimple.c: Likewise.
4590 * gimplify.c: Likewise.
4591 * hsa-common.c: Likewise.
4592 * hsa-gen.c: Likewise.
4593 * internal-fn.c: Likewise.
4594 * ipa-chkp.c: Likewise.
4595 * ipa-cp.c: Likewise.
4596 * ipa-devirt.c: Likewise.
4597 * ipa-fnsummary.c: Likewise.
4598 * ipa-inline.c: Likewise.
4599 * ipa-visibility.c: Likewise.
4600 * ipa.c: Likewise.
4601 * lto-cgraph.c: Likewise.
4602 * omp-expand.c: Likewise.
4603 * omp-general.c: Likewise.
4604 * omp-low.c: Likewise.
4605 * omp-offload.c: Likewise.
4606 * omp-simd-clone.c: Likewise.
4607 * opts-global.c: Likewise.
4608 * passes.c: Likewise.
4609 * predict.c: Likewise.
4610 * sancov.c: Likewise.
4611 * sanopt.c: Likewise.
4612 * symtab.c: Likewise.
4613 * toplev.c: Likewise.
4614 * trans-mem.c: Likewise.
4615 * tree-chkp.c: Likewise.
4616 * tree-eh.c: Likewise.
4617 * tree-into-ssa.c: Likewise.
4618 * tree-object-size.c: Likewise.
4619 * tree-parloops.c: Likewise.
4620 * tree-profile.c: Likewise.
4621 * tree-ssa-ccp.c: Likewise.
4622 * tree-ssa-live.c: Likewise.
4623 * tree-ssa-loop.c: Likewise.
4624 * tree-ssa-sccvn.c: Likewise.
4625 * tree-ssa-structalias.c: Likewise.
4626 * tree-ssa.c: Likewise.
4627 * tree-streamer-in.c: Likewise.
4628 * tree-vectorizer.c: Likewise.
4629 * tree-vrp.c: Likewise.
4630 * tsan.c: Likewise.
4631 * ubsan.c: Likewise.
4632 * varasm.c: Likewise.
4633 * varpool.c: Likewise.
4634 * tree.c: Remove functions moved to attribs.[ch].
4635 * tree.h: Likewise.
4636 * config/aarch64/aarch64.c: Add attrs.h header file.
4637 * config/alpha/alpha.c: Likewise.
4638 * config/arc/arc.c: Likewise.
4639 * config/arm/arm.c: Likewise.
4640 * config/avr/avr.c: Likewise.
4641 * config/bfin/bfin.c: Likewise.
4642 * config/c6x/c6x.c: Likewise.
4643 * config/cr16/cr16.c: Likewise.
4644 * config/cris/cris.c: Likewise.
4645 * config/darwin.c: Likewise.
4646 * config/epiphany/epiphany.c: Likewise.
4647 * config/fr30/fr30.c: Likewise.
4648 * config/frv/frv.c: Likewise.
4649 * config/ft32/ft32.c: Likewise.
4650 * config/h8300/h8300.c: Likewise.
4651 * config/i386/winnt.c: Likewise.
4652 * config/ia64/ia64.c: Likewise.
4653 * config/iq2000/iq2000.c: Likewise.
4654 * config/lm32/lm32.c: Likewise.
4655 * config/m32c/m32c.c: Likewise.
4656 * config/m32r/m32r.c: Likewise.
4657 * config/m68k/m68k.c: Likewise.
4658 * config/mcore/mcore.c: Likewise.
4659 * config/microblaze/microblaze.c: Likewise.
4660 * config/mips/mips.c: Likewise.
4661 * config/mmix/mmix.c: Likewise.
4662 * config/mn10300/mn10300.c: Likewise.
4663 * config/moxie/moxie.c: Likewise.
4664 * config/msp430/msp430.c: Likewise.
4665 * config/nds32/nds32-isr.c: Likewise.
4666 * config/nds32/nds32.c: Likewise.
4667 * config/nios2/nios2.c: Likewise.
4668 * config/nvptx/nvptx.c: Likewise.
4669 * config/pa/pa.c: Likewise.
4670 * config/pdp11/pdp11.c: Likewise.
4671 * config/powerpcspe/powerpcspe.c: Likewise.
4672 * config/riscv/riscv.c: Likewise.
4673 * config/rl78/rl78.c: Likewise.
4674 * config/rx/rx.c: Likewise.
4675 * config/s390/s390.c: Likewise.
4676 * config/sh/sh.c: Likewise.
4677 * config/sol2.c: Likewise.
4678 * config/sparc/sparc.c: Likewise.
4679 * config/spu/spu.c: Likewise.
4680 * config/stormy16/stormy16.c: Likewise.
4681 * config/tilegx/tilegx.c: Likewise.
4682 * config/tilepro/tilepro.c: Likewise.
4683 * config/v850/v850.c: Likewise.
4684 * config/vax/vax.c: Likewise.
4685 * config/visium/visium.c: Likewise.
4686 * config/xtensa/xtensa.c: Likewise.
4687
4688 2017-08-07 Michael Meissner <meissner@linux.vnet.ibm.com>
4689
4690 PR target/81593
4691 * config/rs6000/vsx.md (vsx_concat_<mode>, VSX_D): Cleanup
4692 constraints since the -mupper-regs-* switches have been
4693 eliminated.
4694 (vsx_concat_<mode>_1): New combiner insns to recognize inserting
4695 into a vector from a double word element that was extracted from
4696 another vector, and eliminate extra XXPERMDI instructions.
4697 (vsx_concat_<mode>_2): Likewise.
4698 (vsx_concat_<mode>_3): Likewise.
4699 (vsx_set_<mode>, VSX_D): Rewrite vector set in terms of vector
4700 concat to allow optimizing inserts from previous extracts.
4701
4702 2017-08-07 Uros Bizjak <ubizjak@gmail.com>
4703
4704 * config/i386/i386.c (ix86_stack_protect_guard): Generate
4705 memory reference to a SSP offset in TLS address space.
4706 (ix86_print_operand) <case '@'>: Remove.
4707 (ix86_print_operand_punct_valid_p): Remove '@' code.
4708 * config/i386/i386.md (unspec): Remove UNSPEC_SP_TLS_SET and
4709 UNSPEC_SP_TLS_TEST.
4710 (stack_tls_protect_set_<mode>): Remove.
4711 (stack_protect_set): Do not call gen_stack_tls_protect_set_<mode>.
4712 (stack_tls_protect_test_<mode>): Remove.
4713 (stack_protect_test): Do not call gen_stack_tls_protect_test_<mode>.
4714
4715 2017-08-07 Olivier Hainque <hainque@adacore.com>
4716
4717 PR target/81755
4718 * config/vxworksae.h (VXWORKS_HAVE_TLS): Define.
4719
4720 2017-08-07 Douglas Rupp <rupp@adacore.com>
4721
4722 * Makefile.in (install-mkheaders): Fix typo, where the multi_dir
4723 variable was referenced as multidir in command.
4724
4725 2017-08-07 Jakub Jelinek <jakub@redhat.com>
4726
4727 PR c/69389
4728 * gimplify.c (goa_stabilize_expr): Handle BIT_INSERT_EXPR and
4729 BIT_FIELD_REF.
4730
4731 2017-08-07 Martin Liska <mliska@suse.cz>
4732
4733 * config/m32c/m32c.c: Add include of stringpool.h and attribs.h.
4734 * config/rl78/rl78.c: Add include of attribs.h.
4735 * config/sh/sh.c: Likewise.
4736 * config/v850/v850.c: Likewise.
4737
4738 2017-08-07 Tom de Vries <tom@codesourcery.com>
4739
4740 PR middle-end/78266
4741 * omp-expand.c (expand_oacc_for): Ensure diff_type is large enough.
4742
4743 2017-08-07 Martin Liska <mliska@suse.cz>
4744
4745 * config/mips/mips.c: Include attribs.h.
4746
4747 2017-08-07 Thomas Koenig <tkoenig@gcc.gnu.org>
4748
4749 PR fortran/68829
4750 * doc/invoke.texi: Document change in behvaior for -Ofast for
4751 Fortran.
4752
4753 2017-08-07 Wilco Dijkstra <wdijkstr@arm.com>
4754
4755 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg):
4756 Use gen_frame_mem.
4757 (aarch64_pop_regs): Likewise.
4758 (aarch64_gen_load_pair): Likewise.
4759 (aarch64_save_callee_saves): Likewise.
4760 (aarch64_restore_callee_saves): Likewise.
4761
4762 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
4763
4764 * config/i386/i386.c: Revert the last change.
4765
4766 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
4767
4768 PR target/81736
4769 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Renamed
4770 to ...
4771 (ix86_finalize_stack_frame_flags): This. Also clear
4772 frame_pointer_needed if -fno-omit-frame-pointer is used without
4773 stack access.
4774 (ix86_expand_prologue): Replace ix86_finalize_stack_realign_flags
4775 with ix86_finalize_stack_frame_flags.
4776 (ix86_expand_epilogue): Likewise.
4777 (ix86_expand_split_stack_prologue): Likewise.
4778
4779 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
4780
4781 PR target/81743
4782 * config/i386/i386.c (get_builtin_code_for_version): Set priority
4783 to P_AES for Westmere.
4784
4785 2017-08-07 Jonathan Yong <10walls@gmail.com>
4786
4787 * config/i386/mingw.opt (fset-stack-executable): Removed.
4788 * config/i386/cygming.opt (fset-stack-executable): Moved
4789 from mingw.opt.
4790 * config/i386/cygwin.h: Define CHECK_EXECUTE_STACK_ENABLED.
4791
4792 2017-08-07 Segher Boessenkool <segher@kernel.crashing.org>
4793
4794 * print-rtl.c (print_exp): Print NOT as "~" instead of as "!".
4795
4796 2017-08-07 Marek Polacek <polacek@redhat.com>
4797
4798 PR middle-end/81737
4799 * fold-const.c (fold_indirect_ref_1): Check type_domain.
4800
4801 2017-08-07 Martin Liska <mliska@suse.cz>
4802
4803 * attribs.h (canonicalize_attr_name): New function.
4804 (cmp_attribs): Move from c-format.c and adjusted.
4805 (is_attribute_p): Moved from tree.h.
4806 * tree-inline.c: Add new includes.
4807 * tree.c (cmp_attrib_identifiers): Use cmp_attribs.
4808 (private_is_attribute_p): Remove.
4809 (private_lookup_attribute): Likewise.
4810 (private_lookup_attribute_by_prefix): Simplify.
4811 (remove_attribute): Use is_attribute_p.
4812 * tree.h: Remove removed declarations.
4813
4814 2017-08-07 Jakub Jelinek <jakub@redhat.com>
4815
4816 PR middle-end/81698
4817 * stmt.c (emit_case_dispatch_table): Add DEFAULT_EDGE argument,
4818 instead of computing it in the function. Formatting fix.
4819 (expand_case): Don't rely on default_edge being the first edge,
4820 clear it if removing it, pass default_edge to
4821 emit_case_dispatch_table.
4822 (expand_sjlj_dispatch_table): Pass NULL as DEFAULT_EDGE, formatting
4823 fix.
4824
4825 2017-08-06 Uros Bizjak <ubizjak@gmail.com>
4826
4827 * config/alpha/alpha.c (alpha_reorg): If trap is the last active
4828 insn in the function, emit NOP after the insn.
4829
4830 2017-08-06 Tom de Vries <tom@codesourcery.com>
4831
4832 * omp-expand.c (expand_oacc_for): Add missing edge probability for tile
4833 and element loops.
4834
4835 2017-08-06 Tom de Vries <tom@codesourcery.com>
4836
4837 * omp-expand.c (expand_oacc_for): Add missing edge probability for chunk
4838 loop.
4839
4840 2017-08-04 Yury Gribov <tetra2005@gmail.com>
4841
4842 PR tree-optimization/57371
4843 * match.pd: New pattern.
4844
4845 2017-08-04 Marek Polacek <polacek@redhat.com>
4846
4847 PR middle-end/81695
4848 * fold-const.c (fold_indirect_ref_1): For ((int *)&a + 4 -> a[1],
4849 perform the computation in offset_int.
4850
4851 2017-08-04 Richard Sandiford <richard.sandiford@linaro.org>
4852
4853 PR tree-optimization/81136
4854 * tree-vectorizer.h: Include tree-hash-traits.h.
4855 (vec_base_alignments): New typedef.
4856 (vec_info): Add a base_alignments field.
4857 (vect_record_base_alignments): Declare.
4858 * tree-data-ref.h (data_reference): Add an is_conditional_in_stmt
4859 field.
4860 (DR_IS_CONDITIONAL_IN_STMT): New macro.
4861 (create_data_ref): Add an is_conditional_in_stmt argument.
4862 * tree-data-ref.c (create_data_ref): Likewise. Use it to initialize
4863 the is_conditional_in_stmt field.
4864 (data_ref_loc): Add an is_conditional_in_stmt field.
4865 (get_references_in_stmt): Set the is_conditional_in_stmt field.
4866 (find_data_references_in_stmt): Update call to create_data_ref.
4867 (graphite_find_data_references_in_stmt): Likewise.
4868 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
4869 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
4870 (vect_record_base_alignment): New function.
4871 (vect_record_base_alignments): Likewise.
4872 (vect_compute_data_ref_alignment): Adjust base_addr and aligned_to
4873 for nested statements even if we fail to compute a misalignment.
4874 Use pooled base alignments for unconditional references.
4875 (vect_find_same_alignment_drs): Compare base addresses instead
4876 of base objects.
4877 (vect_analyze_data_refs_alignment): Call vect_record_base_alignments.
4878 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
4879
4880 2017-08-04 Richard Sandiford <richard.sandiford@linaro.org>
4881
4882 * tree-vectorizer.h (vec_info): Add a constructor and destructor.
4883 Add an explicit name for the enum. Use auto_vec for slp_instances
4884 and grouped_stores.
4885 (_loop_vec_info): Add a constructor and destructor. Use auto_vec
4886 for all vectors.
4887 (_bb_vec_info): Add a constructor and destructor.
4888 (vinfo_for_stmt): Return NULL for uids of -1 as well.
4889 (destroy_loop_vec_info): Delete.
4890 (vect_destroy_datarefs): Likewise.
4891 * tree-vectorizer.c (vect_destroy_datarefs): Delete.
4892 (vec_info::vec_info): New function.
4893 (vec_info::~vec_info): Likewise.
4894 (vectorize_loops): Use delete instead of destroy_loop_vec_info.
4895 * tree-parloops.c (gather_scalar_reductions): Use delete instead of
4896 destroy_loop_vec_info.
4897 * tree-vect-loop.c (new_loop_vec_info): Replace with...
4898 (_loop_vec_info::_loop_vec_info): ...this.
4899 (destroy_loop_vec_info): Replace with...
4900 (_loop_vec_info::~_loop_vec_info): ...this. Unconditionally delete
4901 the stmt_vec_infos. Leave handling of vec_info information to its
4902 destructor. Remove explicit vector releases.
4903 (vect_analyze_loop_form): Use new instead of new_loop_vec_info.
4904 (vect_analyze_loop): Use delete instead of destroy_loop_vec_info.
4905 * tree-vect-slp.c (new_bb_vec_info): Replace with...
4906 (_bb_vec_info::_bb_vec_info): ...this. Don't reserve space in
4907 BB_VINFO_GROUPED_STORES or BB_VINFO_SLP_INSTANCES.
4908 (destroy_bb_vec_info): Replace with...
4909 (_bb_vec_info::~_bb_vec_info): ...this. Leave handling of vec_info
4910 information to its destructor.
4911 (vect_slp_analyze_bb_1): Use new and delete instead of
4912 new_bb_vec_info and destroy_bb_vec_info.
4913 (vect_slp_bb): Replace 2 calls to destroy_bb_vec_info with a
4914 single delete.
4915
4916 2017-08-04 Richard Sandiford <richard.sandiford@linaro.org>
4917
4918 * tree-data-ref.h (subscript): Add access_fn field.
4919 (data_dependence_relation): Add could_be_independent_p.
4920 (SUB_ACCESS_FN, DDR_COULD_BE_INDEPENDENT_P): New macros.
4921 (same_access_functions): Move to tree-data-ref.c.
4922 * tree-data-ref.c (ref_contains_union_access_p): New function.
4923 (access_fn_component_p): Likewise.
4924 (access_fn_components_comparable_p): Likewise.
4925 (dr_analyze_indices): Add a reference to access_fn_component_p.
4926 (dump_data_dependence_relation): Use SUB_ACCESS_FN instead of
4927 DR_ACCESS_FN.
4928 (constant_access_functions): Likewise.
4929 (add_other_self_distances): Likewise.
4930 (same_access_functions): Likewise. (Moved from tree-data-ref.h.)
4931 (initialize_data_dependence_relation): Use XCNEW and remove
4932 explicit zeroing of DDR_REVERSED_P. Look for a subsequence
4933 of access functions that have the same type. Allow the
4934 subsequence to end with different bases in some circumstances.
4935 Record the chosen access functions in SUB_ACCESS_FN.
4936 (build_classic_dist_vector_1): Replace ddr_a and ddr_b with
4937 a_index and b_index. Use SUB_ACCESS_FN instead of DR_ACCESS_FN.
4938 (subscript_dependence_tester_1): Likewise dra and drb.
4939 (build_classic_dist_vector): Update calls accordingly.
4940 (subscript_dependence_tester): Likewise.
4941 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Check
4942 DDR_COULD_BE_INDEPENDENT_P.
4943 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Test
4944 comp_alias_ddrs instead of may_alias_ddrs.
4945 * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
4946 New function.
4947 (vect_analyze_data_ref_dependence): Use it if
4948 DDR_COULD_BE_INDEPENDENT_P, but fall back to using the recorded
4949 distance vectors if that fails.
4950 (dependence_distance_ge_vf): New function.
4951 (vect_prune_runtime_alias_test_list): Use it. Don't clear
4952 LOOP_VINFO_MAY_ALIAS_DDRS.
4953
4954 2017-08-04 Richard Biener <rguenther@suse.de>
4955
4956 PR middle-end/81705
4957 * fold-const.c (fold_binary_loc): Properly restrict
4958 minus_var0 && minus_var1 case when associating undefined overflow
4959 entities.
4960
4961 2017-08-04 Tom de Vries <tom@codesourcery.com>
4962
4963 * omp-simd-clone.c (simd_clone_adjust): Add missing edge probability.
4964
4965 2017-08-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4966
4967 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4968 Don't start diagnostic messages with a capital letter.
4969 * config/rs6000/rs6000.c (rs6000_option_override_internal):
4970 Likewise.
4971 (rs6000_invalid_builtin): Likewise.
4972 (rs6000_trampoline_init): Likewise.
4973
4974 2017-08-03 Jakub Jelinek <jakub@redhat.com>
4975
4976 PR target/81621
4977 * bb-reorder.c (pass_partition_blocks::execute): Return TODO_df_finish
4978 after setting changeable df flags.
4979
4980 2017-08-03 Richard Biener <rguenther@suse.de>
4981
4982 * tree-ssa-reassoc.c (should_break_up_subtract): Also break
4983 up if the use is in USE - X.
4984
4985 2017-08-03 Alexander Monakov <amonakov@ispras.ru>
4986
4987 * toplev.c (dumpfile.h): New include.
4988 (internal_error_reentered): New static function. Use it...
4989 (internal_error_function): ...here to handle reentered internal_error.
4990
4991 2017-08-03 Richard Biener <rguenther@suse.de>
4992
4993 PR middle-end/81148
4994 * fold-const.c (split_tree): Add minus_var and minus_con
4995 arguments, remove unused loc arg. Never generate NEGATE_EXPRs
4996 here but always use minus_*.
4997 (associate_trees): Assert we never associate with MINUS_EXPR
4998 and NULL first operand. Do not recurse for PLUS_EXPR operands
4999 when associating as MINUS_EXPR either.
5000 (fold_binary_loc): Track minus_var and minus_con.
5001
5002 2017-08-03 Tom de Vries <tom@codesourcery.com>
5003
5004 PR lto/81430
5005 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers): If
5006 ACCEL_COMPILER, apply finish_options on
5007 DECL_FUNCTION_SPECIFIC_OPTIMIZATION.
5008
5009 2017-08-03 Tom de Vries <tom@codesourcery.com>
5010
5011 PR target/81662
5012 * config/nvptx/nvptx.c (nvptx_option_override): Emit sorry if
5013 function_entry_patch_area_size > 0.
5014
5015 2017-08-03 Jakub Jelinek <jakub@redhat.com>
5016
5017 PR driver/81650
5018 * calls.c (alloc_max_size): Use HOST_WIDE_INT_UC (10??)
5019 instead of 10??LU, perform unit multiplication in wide_int,
5020 don't change alloc_object_size_limit if the limit is larger
5021 than SSIZE_MAX.
5022
5023 PR tree-optimization/81655
5024 PR tree-optimization/81588
5025 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle also
5026 the case when ranges[i].low and high are 1 for unsigned type with
5027 precision 1.
5028
5029 PR middle-end/81052
5030 * omp-low.c (diagnose_sb_0): Handle flag_openmp_simd like flag_openmp.
5031 (pass_diagnose_omp_blocks::gate): Enable also for flag_openmp_simd.
5032
5033 2017-08-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5034
5035 * tree-vrp.h: Add include guard.
5036
5037 2017-08-02 Uros Bizjak <ubizjak@gmail.com>
5038
5039 PR target/81644
5040 * config/i386/i386.md (unspecv): Add UNSPECV_UD2.
5041 (ud2): New insn pattern.
5042 * config/i386/i386.c (ix86_expand_epilogue):
5043 For naked functions, generate ud2 instead of trap insn.
5044
5045 2017-08-02 Marek Polacek <polacek@redhat.com>
5046
5047 PR other/81667
5048 * alloc-pool.h (base_pool_allocator): Initialize m_elt_size.
5049
5050 2017-08-02 Tom de Vries <tom@codesourcery.com>
5051 Cesar Philippidis <cesar@codesourcery.com>
5052
5053 * config/nvptx/nvptx.c (nvptx_lockless_update, nvptx_lockfull_update):
5054 Add missing edge probabilities.
5055
5056 2017-08-02 Tamar Christina <tamar.christina@arm.com>
5057
5058 * config/aarch64/aarch64.c (aarch64_reinterpret_float_as_int):
5059 Correct endianness.
5060
5061 2017-08-02 Jakub Jelinek <jakub@redhat.com>
5062
5063 PR middle-end/79499
5064 * function.c (thread_prologue_and_epilogue_insns): Determine blocks
5065 for find_many_sub_basic_blocks bitmap by looking up BLOCK_FOR_INSN
5066 of first NONDEBUG_INSN_P in each of the split_prologue_seq and
5067 prologue_seq sequences - if any.
5068
5069 2017-08-02 Richard Biener <rguenther@suse.de>
5070
5071 * tree-vect-stmts.c (vectorizable_store): Perform vector extracts
5072 via vectors if supported, integer extracts via punning if supported
5073 or otherwise vector extracts.
5074
5075 2017-08-02 Richard Biener <rguenther@suse.de>
5076
5077 * tree-ssa-pre.c (bitmap_insert_into_set_1): Remove and inline
5078 into ...
5079 (bitmap_insert_into_set): ... this.
5080
5081 2017-08-02 Richard Biener <rguenther@suse.de>
5082
5083 PR tree-optimization/81633
5084 Revert
5085 2015-08-17 Alan Hayward <alan.hayward@arm.com>
5086
5087 PR tree-optimization/71752
5088 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
5089
5090 2017-08-01 Daniel Santos <daniel.santos@pobox.com>
5091
5092 * config/i386/i386.h (ix86_frame::outlined_save_offset): Remove field.
5093 (machine_function::call_ms2sysv_pad_out): Remove field.
5094 * config/i386/i386.c (xlogue_layout::get_stack_space_used): Modify.
5095 (ix86_compute_frame_layout): Likewise.
5096
5097 2017-08-01 H.J. Lu <hongjiu.lu@intel.com>
5098
5099 PR target/81654
5100 * config/i386/i386.c (ix86_set_func_type): Disallow naked
5101 attribute with interrupt attribute.
5102
5103 2017-08-01 Andrew Pinski <apinski@cavium.com>
5104
5105 * tree-ssa-scopedtables.c (hashable_expr_equal_p): Check
5106 BIT_INSERT_EXPR's operand 1
5107 to see if the types precision matches.
5108
5109 2017-08-01 Martin Liska <mliska@suse.cz>
5110
5111 PR middle-end/70140
5112 * builtins.c (expand_builtin_memcpy_args): Remove.
5113 (expand_builtin_memcpy): Call newly added function
5114 expand_builtin_memory_copy_args.
5115 (expand_builtin_memcpy_with_bounds): Likewise.
5116 (expand_builtin_mempcpy): Remove last argument.
5117 (expand_builtin_mempcpy_with_bounds): Likewise.
5118 (expand_builtin_memory_copy_args): New function created from
5119 expand_builtin_mempcpy_args with small modifications.
5120 (expand_builtin_mempcpy_args): Remove.
5121 (expand_builtin_stpcpy): Remove unused argument.
5122 (expand_builtin): Likewise.
5123 (expand_builtin_with_bounds): Likewise.
5124
5125 2017-08-01 Martin Liska <mliska@suse.cz>
5126
5127 Revert r250771
5128 Make mempcpy more optimal (PR middle-end/70140).
5129
5130 2017-08-01 Jakub Jelinek <jakub@redhat.com>
5131
5132 PR target/81622
5133 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): For
5134 __builtin_vec_cmpne verify both arguments are compatible vectors
5135 before looking at TYPE_MODE on the element type. For __builtin_vec_ld
5136 verify arg1_type is a pointer or array type. For __builtin_vec_st,
5137 move computation of aligned to after checking the argument types.
5138 Formatting fixes.
5139
5140 PR target/80846
5141 * config/rs6000/vsx.md (vextract_fp_from_shorth,
5142 vextract_fp_from_shortl): Add element mode after mode in gen_vec_init*
5143 calls.
5144
5145 2017-08-01 Jerome Lambourg <lambourg@adacore.com>
5146 Doug Rupp <rupp@adacore.com>
5147 Olivier Hainque <hainque@adacore.com>
5148
5149 * config.gcc (arm-wrs-vxworks*): Rework to handle arm-wrs-vxworks7 as
5150 well as arm-wrs-vxworks. Update target_cpu_name from arm6 (arch v3) to
5151 arm8 (arch v4).
5152 * config/arm/vxworks.h (MAYBE_TARGET_BPABI_CPP_BUILTINS): New, helper
5153 for TARGET_OS_CPP_BUILTIN.
5154 (TARGET_OS_CPP_BUILTIN): Invoke MAYBE_TARGET_BPABI_CPP_BUILTINS(),
5155 refine CPU definitions for arm_arch5 and add those for arm_arch6 and
5156 arm_arch7.
5157 (MAYBE_ASM_ABI_SPEC): New, helper for SUBTARGET_EXTRA_ASM_SPEC,
5158 passing required abi options to the assembler for EABI configurations.
5159 (EXTRA_CC1_SPEC): New macro, to help prevent the implicit production
5160 of .text.hot and .text.unlikely sections for kernel modules when
5161 using ARM style exceptions.
5162 (CC1_SPEC): Remove obsolete attempt at mimicking Diab toolchain
5163 options. Add EXTRA_CC1_SPEC.
5164 (VXWORKS_ENDIAN_SPEC): Adjust comment and remove handling of Diab
5165 toolchain options.
5166 (DWARF2_UNWIND_INFO): Redefine to handle the pre/post VxWorks 7
5167 transition.
5168 (ARM_TARGET2_DWARF_FORMAT): Define.
5169 * config/arm/t-vxworks: Adjust multilib control to removal of the
5170 Diab command line options.
5171
5172 2017-08-01 Martin Liska <mliska@suse.cz>
5173
5174 PR gcov-profile/81561
5175 * gcov.c (unblock): Make unblocking safe as we need to preserve
5176 index correspondence of blocks and block_lists.
5177
5178 2017-08-01 Richard Biener <rguenther@suse.de>
5179
5180 PR tree-optimization/81181
5181 * tree-ssa-pre.c (compute_antic_aux): Defer clean() to ...
5182 (compute_antic): ... end of iteration here.
5183
5184 2017-08-01 James Greenhalgh <james.greenhalgh@arm.com>
5185
5186 * common.opt (ftree-vectorize): No longer set flag_tree_vectorize.
5187 (ftree-loop-vectorize): Set as EnabledBy ftree-vectorize.
5188 (ftree-slp-vectorize): Likewise.
5189 * omp-expand (expand_omp_simd): Remove flag_tree_vectorize, as it
5190 can no longer be set independent of flag_tree_loop_vectorize.
5191 * omp-general.c (emp_max_vf): Likewise.
5192 * opts.c (enable_fdo_optimizations): Remove references to
5193 flag_tree_vectorize, these are now implicit.
5194 (common_handle_option): Remove handling for OPT_ftree_vectorize,
5195 and leave it for the options machinery.
5196
5197 2017-08-01 Martin Liska <mliska@suse.cz>
5198
5199 PR middle-end/70140
5200 * builtins.c (expand_builtin_memcpy_args): Remove.
5201 (expand_builtin_memcpy): Call newly added function
5202 expand_builtin_memory_copy_args.
5203 (expand_builtin_memcpy_with_bounds): Likewise.
5204 (expand_builtin_mempcpy): Remove last argument.
5205 (expand_builtin_mempcpy_with_bounds): Likewise.
5206 (expand_builtin_memory_copy_args): New function created from
5207 expand_builtin_mempcpy_args with small modifications.
5208 (expand_builtin_mempcpy_args): Remove.
5209 (expand_builtin_stpcpy): Remove unused argument.
5210 (expand_builtin): Likewise.
5211 (expand_builtin_with_bounds): Likewise.
5212
5213 2017-08-01 Uros Bizjak <ubizjak@gmail.com>
5214
5215 PR target/81641
5216 * config/i386/i386.c (ix86_print_operand_address_as): For -masm=intel
5217 print "ds:" only for immediates in generic address space.
5218
5219 2017-08-01 Uros Bizjak <ubizjak@gmail.com>
5220
5221 PR target/81639
5222 * config/i386/i386.c (ix86_funciton_naked): New prototype.
5223 (ix86_function_ok_for_sibcall): Return false for naked functions.
5224
5225 2017-08-01 Richard Biener <rguenther@suse.de>
5226
5227 * tree-ssa-pre.c (print_pre_expr): Handle NULL expr.
5228 (compute_antic): Seed worklist with exit block predecessors.
5229 * cfganal.c (dfs_find_deadend): For a cycle return the source
5230 of the edge closing it.
5231
5232 2017-08-01 Tamar Christina <tamar.christina@arm.com>
5233
5234 * config/aarch64/aarch64.c
5235 (aarch64_can_const_movi_rtx_p): Move 0 check.
5236
5237 2017-08-01 Bin Cheng <bin.cheng@arm.com>
5238
5239 * tree.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Delete.
5240 * fold-const.c (fold_comparison, fold_binary_loc): Delete use of
5241 above macro.
5242 * match.pd: Ditto in address comparison pattern.
5243
5244 2017-08-01 Bin Cheng <bin.cheng@arm.com>
5245
5246 PR tree-optimization/81627
5247 * tree-predcom.c (prepare_finalizers): Always rewrite into loop
5248 closed ssa form for store-store chain.
5249
5250 2017-08-01 Bin Cheng <bin.cheng@arm.com>
5251
5252 PR tree-optimization/81620
5253 * tree-predcom.c (add_ref_to_chain): Don't set has_max_use_after
5254 for store-store chain.
5255
5256 2017-08-01 Jakub Jelinek <jakub@redhat.com>
5257
5258 PR tree-optimization/81588
5259 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): If
5260 ranges[i].in_p, invert comparison code ccode. For >/>=,
5261 swap rhs1 and rhs2 and comparison code unconditionally,
5262 for </<= don't do that. Don't swap rhs1/rhs2 again if
5263 ranges[i].in_p, instead invert comparison code ccode if
5264 opcode or oe->rank is BIT_IOR_EXPR.
5265
5266 PR target/80846
5267 * optabs.def (vec_extract_optab, vec_init_optab): Change from
5268 a direct optab to conversion optab.
5269 * optabs.c (expand_vector_broadcast): Use convert_optab_handler
5270 with GET_MODE_INNER as last argument instead of optab_handler.
5271 * expmed.c (extract_bit_field_1): Likewise. Use vector from
5272 vector extraction if possible and optab is available.
5273 * expr.c (store_constructor): Use convert_optab_handler instead
5274 of optab_handler. Use vector initialization from smaller
5275 vectors if possible and optab is available.
5276 * tree-vect-stmts.c (vectorizable_load): Likewise.
5277 * doc/md.texi (vec_extract, vec_init): Document that the optabs
5278 now have two modes.
5279 * config/i386/i386.c (ix86_expand_vector_init): Handle expansion
5280 of vec_init from half-sized vectors with the same element mode.
5281 * config/i386/sse.md (ssehalfvecmode): Add V4TI case.
5282 (ssehalfvecmodelower, ssescalarmodelower): New mode attributes.
5283 (reduc_plus_scal_v8df, reduc_plus_scal_v4df, reduc_plus_scal_v2df,
5284 reduc_plus_scal_v16sf, reduc_plus_scal_v8sf, reduc_plus_scal_v4sf,
5285 reduc_<code>_scal_<mode>, reduc_umin_scal_v8hi): Add element mode
5286 after mode in gen_vec_extract* calls.
5287 (vec_extract<mode>): Renamed to ...
5288 (vec_extract<mode><ssescalarmodelower>): ... this.
5289 (vec_extract<mode><ssehalfvecmodelower>): New expander.
5290 (rotl<mode>3, rotr<mode>3, <shift_insn><mode>3, ashrv2di3): Add
5291 element mode after mode in gen_vec_init* calls.
5292 (VEC_INIT_HALF_MODE): New mode iterator.
5293 (vec_init<mode>): Renamed to ...
5294 (vec_init<mode><ssescalarmodelower>): ... this.
5295 (vec_init<mode><ssehalfvecmodelower>): New expander.
5296 * config/i386/mmx.md (vec_extractv2sf): Renamed to ...
5297 (vec_extractv2sfsf): ... this.
5298 (vec_initv2sf): Renamed to ...
5299 (vec_initv2sfsf): ... this.
5300 (vec_extractv2si): Renamed to ...
5301 (vec_extractv2sisi): ... this.
5302 (vec_initv2si): Renamed to ...
5303 (vec_initv2sisi): ... this.
5304 (vec_extractv4hi): Renamed to ...
5305 (vec_extractv4hihi): ... this.
5306 (vec_initv4hi): Renamed to ...
5307 (vec_initv4hihi): ... this.
5308 (vec_extractv8qi): Renamed to ...
5309 (vec_extractv8qiqi): ... this.
5310 (vec_initv8qi): Renamed to ...
5311 (vec_initv8qiqi): ... this.
5312 * config/rs6000/vector.md (VEC_base_l): New mode attribute.
5313 (vec_init<mode>): Renamed to ...
5314 (vec_init<mode><VEC_base_l>): ... this.
5315 (vec_extract<mode>): Renamed to ...
5316 (vec_extract<mode><VEC_base_l>): ... this.
5317 * config/rs6000/paired.md (vec_initv2sf): Renamed to ...
5318 (vec_initv2sfsf): ... this.
5319 * config/rs6000/altivec.md (splitter, altivec_copysign_v4sf3,
5320 vec_unpacku_hi_v16qi, vec_unpacku_hi_v8hi, vec_unpacku_lo_v16qi,
5321 vec_unpacku_lo_v8hi, mulv16qi3, altivec_vreve<mode>2): Add
5322 element mode after mode in gen_vec_init* calls.
5323 * config/aarch64/aarch64-simd.md (vec_init<mode>): Renamed to ...
5324 (vec_init<mode><Vel>): ... this.
5325 (vec_extract<mode>): Renamed to ...
5326 (vec_extract<mode><Vel>): ... this.
5327 * config/aarch64/iterators.md (Vel): New mode attribute.
5328 * config/s390/s390.c (s390_expand_vec_strlen, s390_expand_vec_movstr):
5329 Add element mode after mode in gen_vec_extract* calls.
5330 * config/s390/vector.md (non_vec_l): New mode attribute.
5331 (vec_extract<mode>): Renamed to ...
5332 (vec_extract<mode><non_vec_l>): ... this.
5333 (vec_init<mode>): Renamed to ...
5334 (vec_init<mode><non_vec_l>): ... this.
5335 * config/s390/s390-builtins.def (s390_vlgvb, s390_vlgvh, s390_vlgvf,
5336 s390_vlgvf_flt, s390_vlgvg, s390_vlgvg_dbl): Add element mode after
5337 vec_extract mode.
5338 * config/arm/iterators.md (V_elem_l): New mode attribute.
5339 * config/arm/neon.md (vec_extract<mode>): Renamed to ...
5340 (vec_extract<mode><V_elem_l>): ... this.
5341 (vec_extractv2di): Renamed to ...
5342 (vec_extractv2didi): ... this.
5343 (vec_init<mode>): Renamed to ...
5344 (vec_init<mode><V_elem_l>): ... this.
5345 (reduc_plus_scal_<mode>, reduc_plus_scal_v2di, reduc_smin_scal_<mode>,
5346 reduc_smax_scal_<mode>, reduc_umin_scal_<mode>,
5347 reduc_umax_scal_<mode>, neon_vget_lane<mode>, neon_vget_laneu<mode>):
5348 Add element mode after gen_vec_extract* calls.
5349 * config/mips/mips-msa.md (vec_init<mode>): Renamed to ...
5350 (vec_init<mode><unitmode>): ... this.
5351 (vec_extract<mode>): Renamed to ...
5352 (vec_extract<mode><unitmode>): ... this.
5353 * config/mips/loongson.md (vec_init<mode>): Renamed to ...
5354 (vec_init<mode><unitmode>): ... this.
5355 * config/mips/mips-ps-3d.md (vec_initv2sf): Renamed to ...
5356 (vec_initv2sfsf): ... this.
5357 (vec_extractv2sf): Renamed to ...
5358 (vec_extractv2sfsf): ... this.
5359 (reduc_plus_scal_v2sf, reduc_smin_scal_v2sf, reduc_smax_scal_v2sf):
5360 Add element mode after gen_vec_extract* calls.
5361 * config/mips/mips.md (unitmode): New mode iterator.
5362 * config/spu/spu.c (spu_expand_prologue, spu_allocate_stack,
5363 spu_builtin_extract): Add element mode after gen_vec_extract* calls.
5364 * config/spu/spu.md (inner_l): New mode attribute.
5365 (vec_init<mode>): Renamed to ...
5366 (vec_init<mode><inner_l>): ... this.
5367 (vec_extract<mode>): Renamed to ...
5368 (vec_extract<mode><inner_l>): ... this.
5369 * config/sparc/sparc.md (veltmode): New mode iterator.
5370 (vec_init<VMALL:mode>): Renamed to ...
5371 (vec_init<VMALL:mode><VMALL:veltmode>): ... this.
5372 * config/ia64/vect.md (vec_initv2si): Renamed to ...
5373 (vec_initv2sisi): ... this.
5374 (vec_initv2sf): Renamed to ...
5375 (vec_initv2sfsf): ... this.
5376 (vec_extractv2sf): Renamed to ...
5377 (vec_extractv2sfsf): ... this.
5378 * config/powerpcspe/vector.md (VEC_base_l): New mode attribute.
5379 (vec_init<mode>): Renamed to ...
5380 (vec_init<mode><VEC_base_l>): ... this.
5381 (vec_extract<mode>): Renamed to ...
5382 (vec_extract<mode><VEC_base_l>): ... this.
5383 * config/powerpcspe/paired.md (vec_initv2sf): Renamed to ...
5384 (vec_initv2sfsf): ... this.
5385 * config/powerpcspe/altivec.md (splitter, altivec_copysign_v4sf3,
5386 vec_unpacku_hi_v16qi, vec_unpacku_hi_v8hi, vec_unpacku_lo_v16qi,
5387 vec_unpacku_lo_v8hi, mulv16qi3): Add element mode after mode in
5388 gen_vec_init* calls.
5389
5390 2017-08-01 Richard Biener <rguenther@suse.de>
5391
5392 PR tree-optimization/81297
5393 * tree-vrp.c (get_single_symbol): Remove assert, instead drop
5394 TREE_OVERFLOW from INTEGER_CSTs.
5395
5396 2017-07-31 Segher Boessenkool <segher@kernel.crashing.org>
5397
5398 * config/rs6000/rs6000.c (enum rs6000_reg_type): Delete trailing comma.
5399
5400 2017-07-31 Carl Love <cel@us.ibm.com>
5401
5402 * config/rs6000/rs6000-c: Add support for built-in functions
5403 vector signed char vec_xl_be (signed long long, signed char *);
5404 vector unsigned char vec_xl_be (signed long long, unsigned char *);
5405 vector signed int vec_xl_be (signed long long, signed int *);
5406 vector unsigned int vec_xl_be (signed long long, unsigned int *);
5407 vector signed long long vec_xl_be (signed long long, signed long long *);
5408 vector unsigned long long vec_xl_be (signed long long, unsigned long long *);
5409 vector signed short vec_xl_be (signed long long, signed short *);
5410 vector unsigned short vec_xl_be (signed long long, unsigned short *);
5411 vector double vec_xl_be (signed long long, double *);
5412 vector float vec_xl_be (signed long long, float *);
5413 * config/rs6000/altivec.h (vec_xl_be): Add #define.
5414 * config/rs6000/rs6000-builtin.def (XL_BE_V16QI, XL_BE_V8HI, XL_BE_V4SI)
5415 XL_BE_V2DI, XL_BE_V4SF, XL_BE_V2DF, XL_BE): Add definitions
5416 for the builtins.
5417 * config/rs6000/rs6000.c (altivec_expand_xl_be_builtin): Add function.
5418 (altivec_expand_builtin): Add switch statement to call
5419 altivec_expand_xl_be for each builtin.
5420 (altivec_init_builtins): Add def_builtin for _builtin_vsx_le_be_v8hi,
5421 __builtin_vsx_le_be_v4si, __builtin_vsx_le_be_v2di,
5422 __builtin_vsx_le_be_v4sf, __builtin_vsx_le_be_v2df,
5423 __builtin_vsx_le_be_v16qi.
5424 * doc/extend.texi: Update the built-in documentation file for the
5425 new built-in functions.
5426
5427 2017-07-31 Uros Bizjak <ubizjak@gmail.com>
5428
5429 PR target/25967
5430 * config/i386/i386.c (ix86_allocate_stack_slots_for_args):
5431 New function.
5432 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
5433
5434 2017-07-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5435
5436 * config.gcc: Add z14.
5437 * config/s390/driver-native.c (s390_host_detect_local_cpu): Add
5438 CPU model numbers for z13s and z14.
5439 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Replace
5440 arch12 with z14.
5441 * config/s390/s390-opts.h (enum processor_type): Rename
5442 PROCESSOR_ARCH12 to PROCESSOR_3906_Z14.
5443 * config/s390/s390.c (processor_table): Add field for CPU name to
5444 be passed to Binutils.
5445 (s390_asm_output_machine_for_arch): Use the new field in
5446 processor_table for Binutils.
5447 (s390_expand_builtin): Replace arch12 with z14.
5448 (s390_issue_rate): Rename PROCESSOR_ARCH12 to PROCESSOR_3906_Z14.
5449 (s390_get_sched_attrmask): Likewise.
5450 (s390_get_unit_mask): Likewise.
5451 * config/s390/s390.opt: Add z14 to processor_type enum.
5452
5453 2017-07-31 Martin Jambor <mjambor@suse.cz>
5454
5455 PR hsa/81477
5456 * ipa-fnsummary.c (ipa_fn_summary_generate): Set versionable
5457 regardless of optimization level.
5458
5459 2017-07-31 Jan Hubicka <hubicka@ucw.cz>
5460 Martin Liska <mliska@suse.cz>
5461
5462 * predict.def: Remove old comment and adjust probability.
5463 * gimplify.c (should_warn_for_implicit_fallthrough): Ignore
5464 PREDICT statements.
5465
5466 2017-07-31 Uros Bizjak <ubizjak@gmail.com>
5467
5468 PR target/25967
5469 * config/i386/i386.c (ix86_function_naked): New function.
5470 (ix86_can_use_return_insn_p): Return false for naked functions.
5471 (ix86_expand_prologue): Skip prologue for naked functions.
5472 (ix86_expand_epilogue): Skip epilogue for naked functions
5473 and emit trap instruction.
5474 (ix86_warn_func_return): New function.
5475 (ix86_attribute_table): Add "naked" attribute specification.
5476 (TARGET_WARN_FUNC_RETURN): Define.
5477 * doc/extend.texi (x86 Function Attributes) <naked>: Document it.
5478
5479 2017-07-31 Martin Liska <mliska@suse.cz>
5480
5481 * gimple-pretty-print.c (dump_gimple_label): Never dump BB info.
5482 (dump_gimple_bb_header): Always dump BB info.
5483 (pp_cfg_jump): Do not append info about BB when dumping a jump.
5484
5485 2017-07-31 Martin Liska <mliska@suse.cz>
5486
5487 PR sanitize/81530
5488 * convert.c (convert_to_integer_1): Guard condition with flag_sanitize_p
5489 also with current_function_decl non-null equality.
5490
5491 2017-07-31 Jakub Jelinek <jakub@redhat.com>
5492
5493 PR sanitizer/81604
5494 * ubsan.c (ubsan_type_descriptor): For UBSAN_PRINT_ARRAY don't
5495 change type to the element type, instead add eltype variable and
5496 use it where we are interested in the element type.
5497
5498 PR tree-optimization/81603
5499 * ipa-polymorphic-call.c
5500 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Perform
5501 offset arithmetic in offset_int, bail out if the resulting bit offset
5502 doesn't fit into shwi.
5503
5504 2017-07-31 Martin Liska <mliska@suse.cz>
5505
5506 * gimplify.c (mostly_copy_tree_r): Remove Java specific hunk.
5507 (gimplify_save_expr): Fix comment.
5508
5509 2017-07-30 H.J. Lu <hongjiu.lu@intel.com>
5510
5511 PR target/79793
5512 * config/i386/i386.c (ix86_function_arg): Update arguments for
5513 exception handler.
5514 (ix86_compute_frame_layout): Set the initial stack offset to
5515 INCOMING_FRAME_SP_OFFSET. Update red-zone offset with
5516 INCOMING_FRAME_SP_OFFSET.
5517 (ix86_expand_epilogue): Don't pop the 'ERROR_CODE' off the
5518 stack before exception handler returns.
5519 * config/i386/i386.h (INCOMING_FRAME_SP_OFFSET): Add the
5520 the 'ERROR_CODE' for exception handler.
5521
5522 2017-07-30 Uros Bizjak <ubizjak@gmail.com>
5523
5524 * config/i386/i386.h (ASM_PRINTF_EXTENSIONS): New macro.
5525 (ASM_OUTPUT_REG_PUSH): Rewrite with new operand modifiers.
5526 (ASM_OUTPUT_REG_POP): Ditto.
5527 * config/i386/i386.c (ix86_asm_output_function_label): Use fputs
5528 instead of asm_fprintf to output pure string.
5529
5530 2017-07-29 Jakub Jelinek <jakub@redhat.com>
5531
5532 * debug.h (struct gcc_debug_hooks): Add IMPLICIT argument
5533 to imported_module_or_decl hook.
5534 (debug_nothing_tree_tree_tree_bool): Remove.
5535 (debug_nothing_tree_tree_tree_bool_bool): New declaration.
5536 * debug.c (do_nothing_debug_hooks): Use
5537 debug_nothing_tree_tree_tree_bool_bool instead of
5538 debug_nothing_tree_tree_tree_bool.
5539 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5540 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
5541 * sdbout.c (sdb_debug_hooks): Likewise.
5542 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
5543 (gen_namespace_die): Add DW_AT_export_symbols attribute if
5544 langhook wants it.
5545 (dwarf2out_imported_module_or_decl): Add IMPLICIT argument,
5546 if true, -gdwarf-5 and decl will have DW_AT_export_symbols
5547 attribute, don't add anything.
5548
5549 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5550
5551 * fold-const.c (fold_build1_stat_loc): Remove _stat from name.
5552 (fold_build2_stat_loc): Likewise.
5553 (fold_build3_stat_loc): Likewise.
5554 * fold-const.h (fold_build1, fold_build2, fold_build3): Adjust.
5555 (fold_build1_loc): Remove macro.
5556 (fold_build2_loc): Likewise.
5557 (fold_build3_loc): Likewise.
5558
5559 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5560
5561 * gimple.c (gimple_build_debug_bind_stat): Remove _stat from name.
5562 (gimple_build_debug_bind_source_stat): Likewise.
5563 * gimple.h (gimple_build_debug_bind): Remove macro.
5564 (gimple_build_debug_bind_source): Likewise.
5565
5566 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5567
5568 * bitmap.c (bitmap_alloc): Adjust.
5569 (bitmap_gc_alloc): Likewise.
5570 * bitmap.h (bitmap_initialize_stat): Remove _stat from name.
5571
5572 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5573
5574 * bitmap.c (bitmap_obstack_alloc_stat): Rename to bitmap_alloc.
5575 (bitmap_gc_alloc_stat): Rename to bitmap_gc_alloc.
5576 * bitmap.h (bitmap_obstack_alloc_stat): Adjust prototype.
5577 (bitmap_gc_alloc_stat): Likewise.
5578 (BITMAP_ALLOC, BITMAP_GGC_ALLOC): Adjust.
5579
5580 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5581
5582 * rtl.c (shallow_copy_rtx_stat): Remove _stat from name.
5583 * rtl.h (shallow_copy_rtx): Remove macro.
5584
5585 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5586
5587 * emit-rtl.c (gen_raw_REG): Adjust.
5588 * gengenrtl.c (gendef): Likewise.
5589 * rtl.c (rtx_alloc_stat): Remove _stat from name.
5590 * rtl.h (rtx_alloc): Remove macro.
5591
5592 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5593
5594 * tree.c (build_tree_list_vec_stat): Remove _stat from name.
5595 (build_tree_list_stat): Likewise.
5596 * tree.h (build_tree_list): Remove macro.
5597 (build_tree_list_vec): Likewise.
5598
5599 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5600
5601 * tree.c (make_vector_stat): Remove _stat from name.
5602 (build_vector_stat): Likewise.
5603 * tree.h (make_vector_stat): Remove macro.
5604 (build_vector_stat): Likewise.
5605
5606 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5607
5608 * tree.h (build_var_debug_value): Remove prototype.
5609
5610 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5611
5612 * tree.c (tree_cons_stat): Remove _stat from name.
5613 * tree.h (tree_cons): Remove macro.
5614
5615 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5616
5617 * tree.c (build_vl_exp_stat): Remove _stat from name.
5618 * tree.h (build_vl_exp): Remove macro.
5619
5620 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5621
5622 * tree.c (build_decl_stat): Remove _stat from name.
5623 * tree.h (build_decl): Remove macro.
5624
5625 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5626
5627 * gimple.c (gimple_build_with_ops_stat): Adjust.
5628 (gimple_alloc_stat): Remove _stat from name.
5629 * gimple.h (gimple_alloc): Remove macro.
5630
5631 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5632
5633 * tree.c (make_tree_vec_stat): Remove _stat from name.
5634 (grow_tree_vec_stat): Likewise.
5635 * tree.h (make_tree_vec_stat): Adjust prototype.
5636 (grow_tree_vec_stat): Likewise.
5637 (make_tree_vec): Remove macro.
5638 (grow_tree_vec): Likewise.
5639
5640 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5641
5642 * fold-const.c (fold_build1_stat_loc): Adjust.
5643 (fold_build2_stat_loc): Likewise.
5644 (fold_build3_stat_loc): Likewise.
5645 * tree.c (build0_stat): Remove _stat from name.
5646 (build1_stat): Likewise.
5647 (build2_stat): Likewise.
5648 (build3_stat): Likewise.
5649 (build4_stat): Likewise.
5650 (build5_stat): Likewise.
5651 * tree.h (build1_loc): Remove macro, and rename _stat function
5652 to this.
5653 (build2_loc): Likewise.
5654 (build3_loc): Likewise.
5655 (build4_loc): Likewise.
5656 (build5_loc): Likewise.
5657
5658 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5659
5660 * tree.c (make_int_cst_stat): Remove _stat from name.
5661 * tree.h (make_int_cst_stat): Adjust prototype.
5662 (make_int_cst): Remove macro.
5663
5664 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5665
5666 * tree.c (make_tre_binfo_stat): Remove _stat from name.
5667 * tree.h (make_tree_binfo_stat): Adjust prototype.
5668 (make_tree_binfo): Remove.
5669
5670 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5671
5672 * tree.c (copy_node_stat): Rename to copy_node.
5673 (build_distinct_type_copy): Adjust.
5674 * tree.h (copy_node_stat): Adjust prototype.
5675 (copy_node): Remove macro.
5676
5677 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5678
5679 * tree.c (make_node_stat): rename to make_node.
5680 (build_tree_list_stat): Adjust.
5681 (build0_stat): Likewise.
5682 (build2_stat): Likewise.
5683 (build3_stat): Likewise.
5684 (build4_stat): Likewise.
5685 (build5_stat): Likewise.
5686 (build_decl_stat): Likewise.
5687 * tree.h (make_node_stat): Adjust prototype.
5688 (make_node): remove macro.
5689
5690 2017-07-28 Peter Bergner <bergner@vnet.ibm.com>
5691
5692 * config/rs6000/ppc-auxv.h (PPC_FEATURE2_DARN): New define.
5693 (PPC_FEATURE2_SCV): Likewise.
5694 * config/rs6000/rs6000.c (cpu_supports_info): Use them.
5695
5696 2017-07-28 Tamar Christina <tamar.christina@arm.com>
5697
5698 * config/aarch64/aarch64.c
5699 (aarch64_internal_mov_immediate): Add new special pattern.
5700 * config/aarch64/aarch64.md (*movdi_aarch64):
5701 Add reg/32bit const mov case.
5702
5703 2017-07-28 Tamar Christina <tamar.christina@arm.com>
5704 Richard Sandiford <richard.sandiford@linaro.org>
5705
5706 * config/aarch64/aarch64.md (mov<mode>): Generalize.
5707 (*movhf_aarch64, *movsf_aarch64, *movdf_aarch64):
5708 Add integer and movi cases.
5709 (movi-split-hf-df-sf split, fp16): New.
5710 (enabled): Added TARGET_FP_F16INST.
5711 * config/aarch64/iterators.md (GPF_HF): New.
5712 * config/aarch64/predicates.md (aarch64_reg_or_fp_float): New.
5713
5714 2017-07-28 Tamar Christina <tamar.christina@arm.com>
5715
5716 * config/aarch64/aarch64.c
5717 (aarch64_simd_container_mode): Add prototype.
5718 (aarch64_expand_mov_immediate): Add HI support.
5719 (aarch64_reinterpret_float_as_int, aarch64_float_const_rtx_p: New.
5720 (aarch64_can_const_movi_rtx_p): New.
5721 (aarch64_preferred_reload_class):
5722 Remove restrictions of using FP registers for certain SIMD operations.
5723 (aarch64_rtx_costs): Added new cost for CONST_DOUBLE moves.
5724 (aarch64_valid_floating_const): Add integer move validation.
5725 (aarch64_simd_imm_scalar_p): Remove.
5726 (aarch64_output_scalar_simd_mov_immediate): Generalize function.
5727 (aarch64_legitimate_constant_p): Expand list of supported cases.
5728 * config/aarch64/aarch64-protos.h
5729 (aarch64_float_const_rtx_p, aarch64_can_const_movi_rtx_p): New.
5730 (aarch64_reinterpret_float_as_int): New.
5731 (aarch64_simd_imm_scalar_p): Remove.
5732 * config/aarch64/constraints.md (Uvi): New.
5733 (Dd): Split into Ds and new Dd.
5734 * config/aarch64/aarch64.md (*movsi_aarch64):
5735 Add SIMD mov case.
5736 (*movdi_aarch64): Add SIMD mov case.
5737
5738 2017-07-28 Bin Cheng <bin.cheng@arm.com>
5739
5740 * tree-predcom.c: (struct chain): Handle store-store chain in which
5741 stores for elimination only store loop invariant values.
5742 (execute_pred_commoning_chain): Ditto.
5743 (prepare_initializers_chain_store_elim): Ditto.
5744 (prepare_finalizers): Ditto.
5745 (is_inv_store_elimination_chain): New function.
5746 (initialize_root_vars_store_elim_1): New function.
5747
5748 2017-07-28 Bin Cheng <bin.cheng@arm.com>
5749
5750 * tree-predcom.c: Revise general description of the pass.
5751 (enum chain_type): New enum type for store elimination.
5752 (struct chain): New field supporting store elimination.
5753 (struct component): Ditto.
5754 (dump_chain): Dump store-stores chain.
5755 (release_chain): Release resources.
5756 (split_data_refs_to_components): Compute and create component
5757 contains only stores for elimination.
5758 (get_chain_last_ref_at): New function.
5759 (make_invariant_chain): Initialization.
5760 (make_rooted_chain): Specify chain type in parameter and record it.
5761 (add_looparound_copies): Skip for store-stores chain.
5762 (determine_roots_comp): Compute type of chain and pass it to
5763 make_rooted_chain.
5764 (initialize_root_vars_store_elim_2): New function.
5765 (finalize_eliminated_stores): New function.
5766 (remove_stmt): Handle store for elimination.
5767 (execute_pred_commoning_chain): Execute predictive commoning on
5768 store-store chains.
5769 (determine_unroll_factor): Skip unroll for store-stores chain.
5770 (prepare_initializers_chain_store_elim): New function.
5771 (prepare_initializers_chain): Hanlde store-store chain.
5772 (prepare_finalizers_chain, prepare_finalizers): New function.
5773 (tree_predictive_commoning_loop): Return integer value indicating
5774 if loop is unrolled or lcssa form is corrupted.
5775 (tree_predictive_commoning): Rewrite for lcssa form if necessary.
5776
5777 2017-07-28 Bin Cheng <bin.cheng@arm.com>
5778
5779 * tree-predcom.c (initialize_root): Delete.
5780 (execute_pred_commoning_chain): Initialize root vars and replace
5781 reference of non-combined chain directly, rather than call above
5782 function.
5783
5784 2017-07-28 Bin Cheng <bin.cheng@arm.com>
5785
5786 * tree-predcom.c (ref_at_iteration): Add parameter NITERS. Compute
5787 memory reference to DR at (NITERS + ITERS)-th iteration of loop.
5788
5789 2017-07-28 Bin Cheng <bin.cheng@arm.com>
5790
5791 * tree-predcom.c (struct chain): New field init_seq.
5792 (release_chain): Release init_seq.
5793 (prepare_initializers_chain): Record intialization stmts in above
5794 field.
5795 (insert_init_seqs): New function.
5796 (tree_predictive_commoning_loop): Call insert_init_seqs.
5797
5798 2017-07-28 Bin Cheng <bin.cheng@arm.com>
5799
5800 * tree-predcom.c (determine_roots_comp): Skip trivial components.
5801
5802 2017-07-28 Richard Biener <rguenther@suse.de>
5803
5804 * match.pd: Remove superfluous :c.
5805 * genmatch.c (simplify::id): Add member.
5806 (lower_commutative, lower_opt_convert, lower_cond, lower_for):
5807 Copy id.
5808 (current_id): New global.
5809 (dt_node::parent): Move from ...
5810 (dt_operand::parent): ... here. Add for_id member.
5811 (is_a_helper <dt_operand *>::test): DT_TRUE is also a dt_operand.
5812 (decision_tree::find_node): Relax order requirement when
5813 merging DT_TRUE nodes to ones inbetween the current simplify
5814 and the one we try to merge with. Add diagnostic whenever
5815 we need to enforce pattern order by not merging.
5816 (decision_tree::insert): Set current_id.
5817 (decision_tree::print_node): Dump parent node and for_id.
5818 (parser::last_id): Add member.
5819 (parser::push_simplify): Assign unique id.
5820 (parser::parser): Initialize last_id.
5821
5822 2017-07-28 Martin Liska <mliska@suse.cz>
5823
5824 PR sanitizer/81340
5825 * sanopt.c (sanitize_rewrite_addressable_params): Set VALUE_EXPR after
5826 gimple_build_debug_bind.
5827
5828 2017-07-28 Richard Biener <rguenther@suse.de>
5829
5830 PR tree-optimization/81502
5831 * match.pd: Add pattern combining BIT_INSERT_EXPR with
5832 BIT_FIELD_REF.
5833 * tree-cfg.c (verify_expr): Verify types of BIT_FIELD_REF
5834 size/pos operands.
5835 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR pos.
5836 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Use bitsizetype
5837 for BIT_FIELD_REF args.
5838 * fold-const.c (make_bit_field_ref): Likewise.
5839 * tree-vect-stmts.c (vectorizable_simd_clone_call): Likewise.
5840
5841 2017-07-28 Jakub Jelinek <jakub@redhat.com>
5842
5843 PR sanitizer/80998
5844 * sanopt.c (pass_sanopt::execute): Handle IFN_UBSAN_PTR.
5845 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.
5846 * flag-types.h (enum sanitize_code): Add SANITIZER_POINTER_OVERFLOW.
5847 Or it into SANITIZER_UNDEFINED.
5848 * ubsan.c: Include gimple-fold.h and varasm.h.
5849 (ubsan_expand_ptr_ifn): New function.
5850 (instrument_pointer_overflow): New function.
5851 (maybe_instrument_pointer_overflow): New function.
5852 (instrument_object_size): Formatting fix.
5853 (pass_ubsan::execute): Call instrument_pointer_overflow
5854 and maybe_instrument_pointer_overflow.
5855 * internal-fn.c (expand_UBSAN_PTR): New function.
5856 * ubsan.h (ubsan_expand_ptr_ifn): Declare.
5857 * sanitizer.def (__ubsan_handle_pointer_overflow,
5858 __ubsan_handle_pointer_overflow_abort): New builtins.
5859 * tree-ssa-tail-merge.c (merge_stmts_p): Handle IFN_UBSAN_PTR.
5860 * internal-fn.def (UBSAN_PTR): New internal function.
5861 * opts.c (sanitizer_opts): Add pointer-overflow.
5862 * lto-streamer-in.c (input_function): Handle IFN_UBSAN_PTR.
5863 * fold-const.c (build_range_check): Compute pointer range check in
5864 integral type if pointer arithmetics would be needed. Formatting
5865 fixes.
5866
5867 2017-07-28 Martin Liska <mliska@suse.cz>
5868
5869 PR sanitizer/81460
5870 * sanopt.c (sanitize_rewrite_addressable_params): Do not rewrite
5871 parameters that are of a variable-length.
5872
5873 2017-07-28 Sebastian Huber <sebastian.huber@embedded-brains.de>
5874
5875 * config.gcc (powerpc-*-rtems*): Remove rs6000/eabi.h. Add
5876 rs6000/biarch64.h.
5877 * config/rs6000/rtems.h (ASM_DECLARE_FUNCTION_SIZE): New macro.
5878 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
5879 (CRT_CALL_STATIC_FUNCTION): Likewise.
5880 (ASM_DEFAULT_SPEC): New define.
5881 (ASM_SPEC32): Likewise.
5882 (ASM_SPEC64): Likewise.
5883 (ASM_SPEC_COMMON): Likewise.
5884 (ASM_SPEC): Likewise.
5885 (INVALID_64BIT): Likewise.
5886 (LINK_OS_DEFAULT_SPEC): Likewise.
5887 (LINK_OS_SPEC32): Likewise.
5888 (LINK_OS_SPEC64): Likewise.
5889 (POWERPC_LINUX): Likewise.
5890 (PTRDIFF_TYPE): Likewise.
5891 (RESTORE_FP_PREFIX): Likewise.
5892 (RESTORE_FP_SUFFIX): Likewise.
5893 (SAVE_FP_PREFIX): Likewise.
5894 (SAVE_FP_SUFFIX): Likewise.
5895 (SIZE_TYPE): Likewise.
5896 (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
5897 (TARGET_64BIT): Likewise.
5898 (TARGET_64BIT): Likewise.
5899 (TARGET_AIX): Likewise.
5900 (WCHAR_TYPE_SIZE): Likewise.
5901 (WCHAR_TYPE): Undefine.
5902 (TARGET_OS_CPP_BUILTINS): Add 64-bit PowerPC defines.
5903 (CPP_OS_DEFAULT_SPEC): Use previous CPP_OS_RTEMS_SPEC.
5904 (CPP_OS_RTEMS_SPEC): Delete.
5905 (SUBSUBTARGET_EXTRA_SPECS): Remove cpp_os_rtems. Add
5906 asm_spec_common, asm_spec32, asm_spec64, link_os_spec32, and
5907 link_os_spec64.
5908 * config/rs6000/t-rtems: Add mcpu=e6500/m64 multilibs.
5909
5910 2017-07-28 Jakub Jelinek <jakub@redhat.com>
5911
5912 PR tree-optimization/81578
5913 * tree-parloops.c (build_new_reduction): Bail out if
5914 reduction_code isn't one of the standard OpenMP reductions.
5915 Move the details printing after that decision.
5916
5917 2017-07-27 Peter Bergner <bergner@vnet.ibm.com>
5918
5919 * config/rs6000/predicates.md (volatile_mem_operand): Remove code
5920 related to reload_in_progress.
5921 (splat_input_operand): Likewise.
5922 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
5923 Delete prototype.
5924 * config/rs6000/rs6000.c (machine_function): Remove sdmode_stack_slot
5925 field.
5926 (TARGET_EXPAND_TO_RTL_HOOK): Delete.
5927 (TARGET_INSTANTIATE_DECLS): Likewise.
5928 (legitimate_indexed_address_p): Delete reload_in_progress code.
5929 (rs6000_debug_legitimate_address_p): Likewise.
5930 (rs6000_eliminate_indexed_memrefs): Likewise.
5931 (rs6000_emit_le_vsx_store): Likewise.
5932 (rs6000_emit_move_si_sf_subreg): Likewise.
5933 (rs6000_emit_move): Likewise.
5934 (register_to_reg_type): Likewise.
5935 (rs6000_pre_atomic_barrier): Likewise.
5936 (rs6000_machopic_legitimize_pic_address): Likewise.
5937 (rs6000_allocate_stack_temp): Likewise.
5938 (rs6000_address_for_fpconvert): Likewise.
5939 (rs6000_address_for_altivec): Likewise.
5940 (rs6000_secondary_memory_needed_rtx): Delete function.
5941 (rs6000_check_sdmode): Likewise.
5942 (rs6000_alloc_sdmode_stack_slot): Likewise.
5943 (rs6000_instantiate_decls): Likewise.
5944 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
5945 * config/rs6000/rs6000.md (splitter for *movsi_got_internal):
5946 Delete reload_in_progress.
5947 (*vec_reload_and_plus_<mptrsize>): Likewise.
5948 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
5949 (vsx_div_v2di): Likewise.
5950 (vsx_udiv_v2di): Likewise.
5951
5952 2017-07-27 Peter Bergner <bergner@vnet.ibm.com>
5953
5954 * config/rs6000/rs6000.opt (mlra): Replace with stub.
5955 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Delete OPTION_MASK_LRA.
5956 * config/rs6000/rs6000.c (TARGET_LRA_P): Delete.
5957 (rs6000_debug_reg_global): Delete print of LRA status.
5958 (rs6000_option_override_internal): Delete dead LRA related code.
5959 (rs6000_lra_p): Delete function.
5960 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mlra.
5961
5962 2017-07-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
5963
5964 * config.gcc (riscv*-*-elf*): Add (riscv*-*-rtems*).
5965 * config/riscv/rtems.h: New file.
5966
5967 2017-07-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5968 Sudakshina Das <sudi.das@arm.com>
5969
5970 * config/aarch64/aarch64.md
5971 (define_split for and<mode>3nr_compare): Move
5972 non aarch64_logical_operand to a register.
5973 (define_split for and_<SHIFT:optab><mode>3nr_compare0): Move non
5974 register immediate operand to a register.
5975 * config/aarch64/predicates.md (aarch64_mov_imm_operand): New.
5976
5977 2017-07-27 Peter Bergner <bergner@vnet.ibm.com>
5978
5979 PR middle-end/81564
5980 * tree-cfg.c (group_case_labels_stmt): Handle already deleted blocks.
5981
5982 2017-07-27 Richard Biener <rguenther@suse.de>
5983
5984 PR tree-optimization/81573
5985 PR tree-optimization/81494
5986 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
5987 multi defuse cycle case.
5988
5989 2017-07-27 Richard Biener <rguenther@suse.de>
5990
5991 PR tree-optimization/81571
5992 * tree-vect-slp.c (vect_build_slp_tree): Properly verify reduction
5993 PHIs.
5994
5995 2017-07-27 Eric Botcazou <ebotcazou@adacore.com>
5996
5997 * config/sparc/sparc.c (sparc_option_override): Set MASK_FSMULD flag
5998 earlier and only if MASK_FPU is set. Adjust formatting.
5999
6000 2017-07-27 Martin Liska <mliska@suse.cz>
6001
6002 * opt-functions.awk: Add validation of value of Init.
6003 * optc-gen.awk: Pass new argument.
6004
6005 2017-07-27 Martin Liska <mliska@suse.cz>
6006
6007 * auto-profile.c (autofdo_source_profile::update_inlined_ind_target):
6008 Fix wrong condition.
6009
6010 2017-07-27 Martin Liska <mliska@suse.cz>
6011
6012 * auto-profile.c (afdo_annotate_cfg): Assign zero counts to
6013 BBs and edges seen by autoFDO.
6014
6015 2017-07-27 Richard Biener <rguenther@suse.de>
6016
6017 PR tree-optimization/81502
6018 * tree-ssa.c (non_rewritable_lvalue_p): Handle BIT_INSERT_EXPR
6019 with incompatible but same sized type.
6020 (execute_update_addresses_taken): Likewise.
6021
6022 2017-07-27 James Greenhalgh <james.greenhalgh@arm.com>
6023
6024 * tree-ssa-loop-ch.c (pass_ch::process_loop_p): Guard on
6025 flag_tree_loop_vectorize rather than flag_tree_vectorize.
6026
6027 2017-07-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6028
6029 PR target/81534
6030 * config/s390/s390.md ("*atomic_compare_and_swap<mode>_1")
6031 ("*atomic_compare_and_swapdi_2", "*atomic_compare_and_swapsi_3"):
6032 Change s_operand to memory_operand.
6033
6034 2017-07-27 Richard Sandiford <richard.sandiford@linaro.org>
6035
6036 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_permute): Declare.
6037 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Replace with...
6038 (rs6000_emit_le_vsx_permute): ...this. Take the destination as input.
6039 Emit instructions rather than returning an expression. Handle TFmode
6040 and KFmode by casting to TImode.
6041 (rs6000_emit_le_vsx_load): Update to use rs6000_emit_le_vsx_permute.
6042 (rs6000_emit_le_vsx_store): Likewise.
6043 * config/rs6000/vsx.md (VSX_TI): New iterator.
6044 (*vsx_le_permute_<mode>): Use it instead of VSX_LE_128.
6045 (*vsx_le_undo_permute_<mode>): Likewise.
6046 (*vsx_le_perm_load_<mode>): Use rs6000_emit_le_vsx_permute to
6047 emit the split sequence.
6048 (*vsx_le_perm_store_<mode>): Likewise.
6049
6050 2017-07-27 Jakub Jelinek <jakub@redhat.com>
6051
6052 PR tree-optimization/81555
6053 PR tree-optimization/81556
6054 * tree-ssa-reassoc.c (rewrite_expr_tree): Add NEXT_CHANGED argument,
6055 if true, force CHANGED for the recursive invocation.
6056 (reassociate_bb): Remember original length of ops array, pass
6057 len != orig_len as NEXT_CHANGED in rewrite_expr_tree call.
6058
6059 * attribs.c (decl_attributes): Imply noinline, noclone and no_icf
6060 attributes for noipa attribute. For naked attribute use
6061 lookup_attribute first before lookup_attribute_spec.
6062 * final.c (rest_of_handle_final): Disable IPA RA for functions with
6063 noipa attribute.
6064 * ipa-visibility.c (non_local_p): Fix comment typos. Return true
6065 for functions with noipa attribute.
6066 (cgraph_externally_visible_p): Return true for functions with noipa
6067 attribute.
6068 * cgraph.c (cgraph_node::get_availability): Return AVAIL_INTERPOSABLE
6069 for functions with noipa attribute.
6070 * doc/extend.texi: Document noipa function attribute.
6071 * tree-ssa-structalias.c (refered_from_nonlocal_fn): Set *nonlocal_p
6072 also for functions with noipa attribute.
6073 (ipa_pta_execute): Set nonlocal_p also for nodes with noipa attribute.
6074
6075 2017-07-26 Andrew Pinski <apinski@cavium.com>
6076
6077 * config/aarch64/aarch64.c (thunderx_vector_cost): Decrease cost of
6078 vec_unalign_load_cost and vec_unalign_store_cost.
6079
6080 2017-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
6081
6082 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Delete
6083 -mvsx-small-integer option.
6084 (ISA_3_0_MASKS_IEEE): Likewise.
6085 (OTHER_VSX_VECTOR_MASKS): Likewise.
6086 (POWERPC_MASKS): Likewise.
6087 * config/rs6000/rs6000.opt (-mvsx-small-integer): Likewise.
6088 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Simplify
6089 code, only testing for DImode being allowed in non-VSX floating
6090 point registers.
6091 (rs6000_init_hard_regno_mode_ok): Change TARGET_VSX_SMALL_INTEGER
6092 to TARGET_P8_VECTOR test. Remove redundant VSX test inside of
6093 another VSX test.
6094 (rs6000_option_override_internal): Delete -mvsx-small-integer.
6095 (rs6000_expand_vector_set): Change TARGET_VSX_SMALL_INTEGER to
6096 TARGET_P8_VECTOR test.
6097 (rs6000_secondary_reload_simple_move): Likewise.
6098 (rs6000_preferred_reload_class): Delete TARGET_VSX_SMALL_INTEGER,
6099 since TARGET_P9_VECTOR was already tested.
6100 (rs6000_opt_masks): Remove -mvsx-small-integer.
6101 * config/rs6000/vsx.md (vsx_extract_<mode>): Delete
6102 TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
6103 used.
6104 (vsx_extract_<mode>_p9): Delete TARGET_VSX_SMALL_INTEGER, since a
6105 test for TARGET_VEXTRACTUB was used, and that uses
6106 TARGET_P9_VECTOR.
6107 (p9 extract splitter): Likewise.
6108 (vsx_extract_<mode>_di_p9): Likewise.
6109 (vsx_extract_<mode>_store_p9): Likewise.
6110 (vsx_extract_si): Delete TARGET_VSX_SMALL_INTEGER, since a test
6111 for TARGET_P9_VECTOR was used. Delete code that is now dead with
6112 the elimination of TARGET_VSX_SMALL_INTEGER.
6113 (vsx_extract_<mode>_p8): Likewise.
6114 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>): Likewise.
6115 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Likewise.
6116 (vsx_set_<mode>_p9): Likewise.
6117 (vsx_set_v4sf_p9): Likewise.
6118 (vsx_set_v4sf_p9_zero): Likewise.
6119 (vsx_insert_extract_v4sf_p9): Likewise.
6120 (vsx_insert_extract_v4sf_p9_2): Likewise.
6121 * config/rs6000/rs6000.md (sign extend splitter): Change
6122 TARGET_VSX_SMALL_INTEGER to TARGET_P8_VECTOR test.
6123 (floatsi<mode>2_lfiwax_mem): Likewise.
6124 (floatunssi<mode>2_lfiwzx_mem): Likewise.
6125 (float<QHI:mode><FP_ISA3:mode>2): Delete TARGET_VSX_SMALL_INTEGER,
6126 since a test for TARGET_P9_VECTOR was used.
6127 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
6128 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
6129 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
6130 (fix_trunc<mode>si2): Change TARGET_VSX_SMALL_INTEGER to
6131 TARGET_P8_VECTOR test.
6132 (fix_trunc<mode>si2_stfiwx): Likewise.
6133 (fix_trunc<mode>si2_internal): Likewise.
6134 (fix_trunc<SFDF:mode><QHI:mode>2): Delete
6135 TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
6136 used.
6137 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
6138 (fixuns_trunc<mode>si2): Change TARGET_VSX_SMALL_INTEGER to
6139 TARGET_P8_VECTOR test.
6140 (fixuns_trunc<mode>si2_stfiwx): Likewise.
6141 (fixuns_trunc<SFDF:mode><QHI:mode>2): Delete
6142 TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
6143 used.
6144 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
6145 (fctiw<u>z_<mode>_smallint): Delete TARGET_VSX_SMALL_INTEGER,
6146 since a test for TARGET_P9_VECTOR was used.
6147 (splitter for loading small constants): Likewise.
6148
6149 2017-07-26 Andrew Pinski <apinski@cavium.com>
6150
6151 * config/aarch64/aarch64.c (thunderx_vector_cost): Fix
6152 vec_fp_stmt_cost.
6153
6154 2017-07-26 H.J. Lu <hongjiu.lu@intel.com>
6155
6156 PR target/81563
6157 * config/i386/i386.c (sp_valid_at): Properly check CFA offset.
6158 (fp_valid_at): Likewise.
6159
6160 2017-07-26 James Greenhalgh <james.greenhalgh@arm.com>
6161
6162 * config/aarch64/aarch64.c (cortexa57_addrcost_table): Remove.
6163 (qdf24xx_addrcost_table): Likewise.
6164 (cortexa57_tunings): Update to use generic_branch_cost.
6165 (cortexa72_tunings): Likewise.
6166 (cortexa73_tunings): Likewise.
6167 (qdf24xx_tunings): Likewise.
6168
6169 2017-07-26 James Greenhalgh <james.greenhalgh@arm.com>
6170
6171 * config/aarch64/aarch64.c (cortexa57_branch_cost): Remove.
6172 (thunderx2t99_branch_cost): Likewise.
6173 (cortexa35_tunings): Update to use generic_branch_cost.
6174 (cortexa53_tunings): Likewise.
6175 (cortexa57_tunings): Likewise.
6176 (cortexa72_tunings): Likewise.
6177 (cortexa73_tunings): Likewise.
6178 (thunderx2t99_tunings): Likewise.
6179
6180 2017-07-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
6181
6182 * config/sparc/sparc.c (dump_target_flag_bits): Dump MASK_FSMULD.
6183 (sparc_option_override): Honour MASK_FSMULD.
6184 * config/sparc/sparc.h (MASK_FEATURES): Add MASK_FSMULD.
6185 * config/sparc/sparc.md (muldf3_extend): Use TARGET_FSMULD.
6186 * config/sparc/sparc.opt (mfsmuld): New option.
6187 * doc/invoke.texi (mfsmuld): Document option.
6188
6189 2017-07-26 Marek Polacek <polacek@redhat.com>
6190
6191 PR middle-end/70992
6192 * tree.c (build2_stat): Don't set TREE_CONSTANT on divisions by zero.
6193
6194 2017-07-26 Richard Biener <rguenther@suse.de>
6195
6196 * gimple-match-head.c (do_valueize): Return OP if valueize
6197 returns NULL_TREE.
6198 (get_def): New helper to get at the def stmt of a SSA name
6199 if valueize allows.
6200 * genmatch.c (dt_node::gen_kids_1): Use get_def instead of
6201 do_valueize to get at the def stmt.
6202 (dt_operand::gen_gimple_expr): Simplify do_valueize calls.
6203
6204 2017-07-26 Wilco Dijkstra <wdijkstr@arm.com>
6205
6206 PR middle-end/46932
6207 * auto-inc-dec.c (parse_add_or_inc): Block autoinc on sfp.
6208
6209 2017-07-26 Martin Liska <mliska@suse.cz>
6210
6211 PR sanitize/81186
6212 * function.c (expand_function_start): Make expansion of
6213 nonlocal_goto_save_area after parm_birth_insn.
6214
6215 2017-07-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
6216
6217 * config/sparc/sparc.c (sparc_option_override): Remove MASK_FPU
6218 from all CPU target flags enable members.
6219
6220 2017-07-26 Richard Biener <rguenther@suse.de>
6221
6222 * genmatch.c (dt_simplify::gen): Make iterator vars const.
6223 (decision_tree::gen): Make 'type' const.
6224 (write_predicate): Likewise.
6225
6226 2017-07-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6227
6228 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok):
6229 Eliminate TARGET_UPPER_REGS_{DF,DI,SF} usage.
6230 (rs6000_option_override_internal): Likewise.
6231 (rs6000_expand_vector_set): Likewise.
6232 * config/rs6000/rs6000.h (TARGET_UPPER_REGS_DF): Delete.
6233 (TARGET_UPPER_REGS_SF): Likewise.
6234 (TARGET_UPPER_REGS_DI): Likewise.
6235 (TARGET_VEXTRACTUB): Eliminate TARGET_UPPER_REGS_{DF,DI,SF}.
6236 (TARGET_DIRECT_MOVE_64BIT): Likewise.
6237 * config/rs6000/rs6000.md (ALTIVEC_DFORM): Likewise.
6238 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
6239 (Splitters for DI constants in Altivec registers): Likewise.
6240 * config/rs6000/vsx.md (vsx_set_<mode>_p9): Likewise.
6241 (vsx_set_v4sf_p9): Likewise.
6242 (vsx_set_v4sf_p9_zero): Likewise.
6243 (vsx_insert_extract_v4sf_p9): Likewise.
6244 (vsx_insert_extract_v4sf_p9_2): Likewise.
6245
6246 2017-07-25 Carl Love <cel@us.ibm.com>
6247
6248 * doc/extend.texi: Update the built-in documentation file for the
6249 existing built-in functions
6250 vector signed char vec_cnttz (vector signed char);
6251 vector unsigned char vec_cnttz (vector unsigned char);
6252 vector signed short vec_cnttz (vector signed short);
6253 vector unsigned short vec_cnttz (vector unsigned short);
6254 vector signed int vec_cnttz (vector signed int);
6255 vector unsigned int vec_cnttz (vector unsigned int);
6256 vector signed long long vec_cnttz (vector signed long long);
6257 vector unsigned long long vec_cnttz (vector unsigned long long);
6258
6259 2017-07-25 Andrew Pinski <apinski@cavium.com>
6260
6261 * tree-ssa-uninit.c (warn_uninitialized_vars): Don't warn about memory
6262 accesses where the use is for the first operand of a BIT_INSERT.
6263
6264 2017-07-25 Jim Wilson <jim.wilson@linaro.org>
6265
6266 PR bootstrap/81521
6267 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition): Look
6268 for FUNCTION_DECLs in TYPE_FIELDS rather than TYPE_METHODS.
6269
6270 2017-07-25 Jim Wilson <jim.wilson@linaro.org>
6271
6272 * config/i386/gstabs.h: Delete.
6273 * config/i386/openbsd.h, config/i386/t-openbsd: Likewise.
6274
6275 2017-07-25 Uros Bizjak <ubizjak@gmail.com>
6276
6277 * config/i386/i386.c (ix86_decompose_address): Do not check for
6278 register RTX when looking at index_reg or base_reg.
6279 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use stack_pointer_rtx.
6280
6281 2017-07-25 Eric Botcazou <ebotcazou@adacore.com>
6282
6283 * gimple.c (gimple_assign_set_rhs_with_ops): Do not ask gsi_replace
6284 to update EH info here.
6285
6286 2017-07-25 Alexander Monakov <amonakov@ispras.ru>
6287
6288 * match.pd ((X * CST1) * CST2): Simplify to X * (CST1 * CST2).
6289
6290 2017-07-25 Alexander Monakov <amonakov@ispras.ru>
6291
6292 * match.pd ((X * CST) * Y): Reassociate to (X * Y) * CST.
6293
6294 2017-07-25 Torsten Duwe <duwe@suse.de>
6295
6296 * common.opt: Introduce -fpatchable-function-entry
6297 command line option, and its variables function_entry_patch_area_size
6298 and function_entry_patch_area_start.
6299 * opts.c (common_handle_option): Add -fpatchable_function_entry_ case,
6300 including a two-value parser.
6301 * target.def (print_patchable_function_entry): New target hook.
6302 * targhooks.h (default_print_patchable_function_entry): New function.
6303 * targhooks.c (default_print_patchable_function_entry): Likewise.
6304 * toplev.c (process_options): Switch off IPA-RA if
6305 patchable function entries are being generated.
6306 * varasm.c (assemble_start_function): Look at the
6307 patchable-function-entry command line switch and current
6308 function attributes and maybe generate NOP instructions by
6309 calling the print_patchable_function_entry hook.
6310 * doc/extend.texi: Document patchable_function_entry attribute.
6311 * doc/invoke.texi: Document -fpatchable_function_entry
6312 command line option.
6313 * doc/tm.texi.in (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
6314 New target hook.
6315 * doc/tm.texi: Re-generate.
6316
6317 2017-07-25 Jakub Jelinek <jakub@redhat.com>
6318
6319 PR target/81532
6320 * config/i386/constraints.md (Yd, Ye): Use ALL_SSE_REGS for
6321 TARGET_AVX512DQ rather than TARGET_AVX512BW.
6322
6323 2017-07-25 Tamar Christina <tamar.christina@arm.com>
6324
6325 * config/arm/parsecpu.awk (all_cores): Remove duplicates.
6326
6327 2017-07-25 Richard Biener <rguenther@suse.de>
6328
6329 PR tree-optimization/81455
6330 * tree-ssa-loop-unswitch.c (find_loop_guard): Make sure to
6331 not walk in cycles when looking for guards.
6332
6333 2017-07-25 Richard Biener <rguenther@suse.de>
6334
6335 PR tree-optimization/81529
6336 * tree-vect-stmts.c (process_use): Disregard live induction PHIs
6337 when optimizing backedge uses.
6338
6339 2017-07-25 David Edelsohn <dje.gcc@gmail.com>
6340
6341 * dwarf2asm.c (dw2_asm_output_nstring): Encode double quote
6342 character for AIX.
6343 * dwarf2out.c (output_macinfo): Copy debug_line_section_label
6344 to dl_section_ref. On AIX, append an expression to subtract
6345 the size of the section length to dl_section_ref.
6346
6347 2017-07-25 Segher Boessenkool <segher@kernel.crashing.org>
6348
6349 * configure.ac: If any of the config.* scripts fail, exit 1.
6350 * configure: Regenerate.
6351
6352 2017-07-25 Richard Biener <rguenther@suse.de>
6353
6354 PR middle-end/81546
6355 * tree-ssa-operands.c (verify_imm_links): Remove cap on number
6356 of immediate uses, be more verbose on errors.
6357
6358 2017-07-25 Richard Biener <rguenther@suse.de>
6359
6360 PR tree-optimization/81510
6361 * tree-vect-loop.c (vect_is_simple_reduction): When the
6362 reduction stmt is not inside the loop bail out.
6363
6364 2017-07-25 Richard Biener <rguenther@suse.de>
6365
6366 PR tree-optimization/81303
6367 * tree-vect-loop-manip.c (vect_loop_versioning): Build
6368 profitability check against LOOP_VINFO_NITERSM1.
6369
6370 2017-07-25 Alexander Monakov <amonakov@ispras.ru>
6371
6372 * domwalk.c (cmp_bb_postorder): Simplify.
6373 (sort_bbs_postorder): New function. Use it...
6374 (dom_walker::walk): ...here to optimize common cases.
6375
6376 2017-07-25 Martin Liska <mliska@suse.cz>
6377
6378 PR ipa/81520
6379 * ipa-visibility.c (function_and_variable_visibility): Make the
6380 redirection just on target that supports aliasing.
6381 Fix GNU coding style.
6382
6383 2017-07-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
6384
6385 PR libgcc/61152
6386 * config/aarch64/rtems.h: Add GCC Runtime Library Exception.
6387 Format changes.
6388 * config/arm/rtems.h: Likewise.
6389 * config/bfin/rtems.h: Likewise.
6390 * config/i386/rtemself.h: Likewise.
6391 * config/lm32/rtems.h: Likewise.
6392 * config/m32c/rtems.h: Likewise.
6393 * config/m68k/rtemself.h: Likewise.
6394 * config/microblaze/rtems.h: Likewise.
6395 * config/mips/rtems.h: Likewise.
6396 * config/moxie/rtems.h: Likewise.
6397 * config/nios2/rtems.h: Likewise.
6398 * config/powerpcspe/rtems.h: Likewise.
6399 * config/rs6000/rtems.h: Likewise.
6400 * config/rtems.h: Likewise.
6401 * config/sh/rtems.h: Likewise.
6402 * config/sh/rtemself.h: Likewise.
6403 * config/sparc/rtemself.h: Likewise.
6404
6405 2017-07-25 Georg-Johann Lay <avr@gjlay.de>
6406
6407 PR 81487
6408 * hsa-brig.c (brig_init): Use xasprintf instead of asprintf.
6409 * gimple-pretty-print.c (dump_profile, dump_probability): Same.
6410 * tree-ssa-structalias.c (alias_get_name): Same.
6411
6412 2017-07-25 Bin Cheng <bin.cheng@arm.com>
6413
6414 PR target/81414
6415 * config/aarch64/cortex-a57-fma-steering.c (analyze): Skip fmul/fmac
6416 instructions if no du chain is found.
6417
6418 2017-07-25 Georg-Johann Lay <avr@gjlay.de>
6419
6420 * config/avr/avr-log.c (avr_log_vadump) ['T']: Print NULL-TREE.
6421
6422 2017-07-25 Richard Biener <rguenther@suse.de>
6423
6424 PR middle-end/81505
6425 * fold-const.c (fold_negate_const): TREE_OVERFLOW should be
6426 sticky.
6427
6428 2017-07-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6429
6430 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Delete
6431 upper-regs options.
6432 (ISA_2_7_MASKS_SERVER): Likewise.
6433 (ISA_3_0_MASKS_IEEE): Likewise.
6434 (OTHER_P8_VECTOR_MASKS): Likewise.
6435 (OTHER_VSX_VECTOR_MASKS): Likewise.
6436 (POWERPC_MASKS): Likewise.
6437 (power7 cpu): Use ISA_2_6_MASKS_SERVER instead of using a
6438 duplicate list of options.
6439 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Remove
6440 explicit -mupper-regs options.
6441 * config/rs6000/rs6000.opt (-mvsx-scalar-memory): Delete
6442 -mupper-regs* options. Delete -mvsx-scalar-memory, which was an
6443 alias for -mupper-regs-df.
6444 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Likewise.
6445 (rs6000_init_hard_regno_mode_ok): Likewise.
6446 (rs6000_option_override_internal): Likewise.
6447 (rs6000_opt_masks): Likewise.
6448 * config/rs6000/rs6000.h (TARGET_UPPER_REGS_DF): Define upper regs
6449 options in terms of whether -mvsx or -mpower8-vector was used.
6450 (TARGET_UPPER_REGS_DI): Likewise.
6451 (TARGET_UPPER_REGS_SF): Likewise.
6452 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete the
6453 -mupper-regs-* options.
6454
6455 2017-07-24 Segher Boessenkool <segher@kernel.crashing.org>
6456
6457 * passes.c (emergency_dump_function): Print some empty lines and a
6458 header before the RTL dump.
6459
6460 2017-07-24 Segher Boessenkool <segher@kernel.crashing.org>
6461
6462 * cfgrtl.c (rtl_dump_bb): Don't call NEXT_INSN on NULL.
6463
6464 2017-07-24 Wilco Dijkstra <wdijkstr@arm.com>
6465
6466 PR target/79041
6467 * config/aarch64/aarch64.c (aarch64_classify_symbol):
6468 Avoid SYMBOL_SMALL_ABSOLUTE for literals with pc-relative literals.
6469
6470 2017-07-24 Carl Love <cel@us.ibm.com>
6471
6472 * config/rs6000/rs6000-c.c: Add support for built-in functions
6473 vector float vec_extract_fp32_from_shorth (vector unsigned short);
6474 vector float vec_extract_fp32_from_shortl (vector unsigned short);
6475 * config/rs6000/altivec.h (vec_extract_fp_from_shorth,
6476 vec_extract_fp_from_shortl): Add defines for the two builtins.
6477 * config/rs6000/rs6000-builtin.def (VEXTRACT_FP_FROM_SHORTH,
6478 VEXTRACT_FP_FROM_SHORTL): Add BU_P9V_OVERLOAD_1 and BU_P9V_VSX_1
6479 new builtins.
6480 * config/rs6000/vsx.md vsx_xvcvhpsp): Add define_insn.
6481 (vextract_fp_from_shorth, vextract_fp_from_shortl): Add define_expands.
6482 * doc/extend.texi: Update the built-in documentation file for the
6483 new built-in function.
6484
6485 2017-07-24 Jakub Jelinek <jakub@redhat.com>
6486
6487 PR bootstrap/81521
6488 * tree.def: Remove TYPE_METHODS documentation, adjust TYPE_FIELDS
6489 documentation.
6490 * doc/generic.texi: Likewise.
6491 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition): Look
6492 for FUNCTION_DECLs in TYPE_FIELDS rather than TYPE_METHODS.
6493
6494 2017-07-24 Jackson Woodruff <jackson.woodruff@arm.com>
6495
6496 * config/aarch64/aarch64-simd.md (aarch64_mla_elt_merge<mode>): New.
6497 (aarch64_mls_elt_merge<mode>): Likewise.
6498
6499 2017-07-23 Krister Walfridsson <krister.walfridsson@gmail.com>
6500
6501 * config.gcc (*-*-netbsd*): Remove check for NetBSD versions not
6502 having __cxa_atexit.
6503
6504 2017-07-23 Michael Collison <michael.collison@arm.com>
6505
6506 * config/arm/arm.c (arm_option_override): Deprecate
6507 use of -mstructure-size-boundary.
6508 * config/arm/arm.opt: Deprecate -mstructure-size-boundary.
6509 * doc/invoke.texi: Deprecate -mstructure-size-boundary.
6510
6511 2017-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6512
6513 PR target/80695
6514 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
6515 Reduce cost estimate for direct moves.
6516
6517 2017-07-23 Uros Bizjak <ubizjak@gmail.com>
6518
6519 PR target/80569
6520 * config/i386/i386.c (ix86_option_override_internal): Disable
6521 BMI, BMI2 and TBM instructions for -m16.
6522
6523 2017-07-21 Carl Love <cel@us.ibm.com>
6524
6525 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6526 ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
6527 ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
6528 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
6529 builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
6530 * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
6531 VMULOSW): New enum "unspec" values.
6532 (altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
6533 altivec_vmulosw): New patterns.
6534 * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
6535 VMULOSW): Add definitions.
6536
6537 2017-07-21 Jim Wilson <jim.wilson@linaro.org>
6538
6539 * config/aarch64/aarch64-cores.def (falkor): Add AARCH64_FL_RDMA.
6540 (qdf24xx): Likewise.
6541 * config/aarch64/aarch64-options-extensions.def (rdma); New.
6542 * config/aarch64/aarch64.h (AARCH64_FL_RDMA): New.
6543 (AARCH64_FL_V8_1): Renumber.
6544 (AARCH64_FL_FOR_ARCH8_1): Add AARCH64_FL_RDMA.
6545 (AARCH64_ISA_RDMA): Use AARCH64_FL_RDMA.
6546 * config/aarch64/arm_neon.h: Use +rdma instead of arch=armv8.1-a.
6547 * doc/invoke.texi (AArch64 Options): Mention +rmda in -march docs. Add
6548 rdma to feature modifiers list.
6549
6550 2017-07-21 Yury Gribov <tetra2005@gmail.com>
6551
6552 PR middle-end/56727
6553 * ipa-visibility (function_and_variable_visibility): Convert
6554 recursive PLT call to direct call if appropriate.
6555
6556 2017-07-21 Andrew Pinski <apinski@cavium.com>
6557
6558 * tree-ssa-sccvn.c (vn_nary_op_eq): Check BIT_INSERT_EXPR's
6559 operand 1 to see if the types precision matches.
6560 * fold-const.c (operand_equal_p): Likewise.
6561
6562 2017-07-21 Richard Biener <rguenther@suse.de>
6563
6564 PR tree-optimization/81303
6565 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs): Pass
6566 in datarefs vector. Allow NULL dr0 for no peeling cost estimate.
6567 (vect_peeling_hash_get_lowest_cost): Adjust.
6568 (vect_enhance_data_refs_alignment): Likewise. Use
6569 vect_get_peeling_costs_all_drs to compute the penalty for no
6570 peeling to match up costs.
6571
6572 2017-07-21 Richard Biener <rguenther@suse.de>
6573
6574 PR tree-optimization/81500
6575 * tree-vect-loop.c (vect_is_simple_reduction): Properly fail if
6576 we didn't identify a reduction path.
6577
6578 2017-07-21 Tom de Vries <tom@codesourcery.com>
6579 Cesar Philippidis <cesar@codesourcery.com>
6580
6581 PR gcov-profile/81442
6582 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Add missing edge
6583 probabilities.
6584
6585 2017-07-21 Tom de Vries <tom@codesourcery.com>
6586
6587 PR lto/81430
6588 * config/nvptx/nvptx.c (nvptx_override_options_after_change): New
6589 function.
6590 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define to
6591 nvptx_override_options_after_change.
6592
6593 2017-07-21 Ulrich Drepper <drepper@redhat.com>
6594
6595 * dwarf2out.c (output_file_names): Avoid double testing for
6596 dwarf_version >= 5.
6597
6598 2017-07-21 Georg-Johann Lay <avr@gjlay.de>
6599
6600 * doc/invoke.texi (AVR Built-in Functions): Re-layout section.
6601
6602 2016-07-21 Jan Hubicka <hubicka@ucw.cz>
6603
6604 * cfgcleanup.c (flow_find_cross_jump): Do not crossjump across
6605 hot/cold regions.
6606 (try_crossjump_to_edge): Do not punt on partitioned functions.
6607
6608 2016-07-21 Jan Hubicka <hubicka@ucw.cz>
6609
6610 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
6611 Put all BBs reachable only via paths crossing cold region to cold
6612 region.
6613 * cfgrtl.c (find_bbs_reachable_by_hot_paths): New function.
6614
6615 2016-07-21 Richard Biener <rguenther@suse.de>
6616
6617 PR tree-optimization/81303
6618 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Take
6619 into account prologue and epilogue iterations when raising
6620 min_profitable_iters to sth at least covering one vector iteration.
6621
6622 2017-07-21 Tamar Christina <tamar.christina@arm.com>
6623
6624 * config/arm/arm.c (arm_test_cpu_arch_dat):
6625 Check for overlap.
6626
6627 2017-07-20 Nathan Sidwell <nathan@acm.org>
6628
6629 Remove TYPE_METHODS.
6630 * tree.h (TYPE_METHODS): Delete.
6631 * dwarf2out.c (gen_member_die): Member fns are on TYPE_FIELDS.
6632 * dbxout.c (dbxout_type_fields): Ignore FUNCTION_DECLs.
6633 (dbxout_type_methods): Scan TYPE_FIELDS.
6634 (dbxout_type): Don't check TYPE_METHODS here.
6635 * function.c (use_register_for_decl): Always ignore register for
6636 class types when not optimizing.
6637 * ipa-devirt.c (odr_types_equivalent_p): Delete TYPE_METHODS scan.
6638 * tree.c (free_lang_data_in_type): Stitch out member functions and
6639 templates from TYPE_FIELDS.
6640 (build_distinct_type_copy, verify_type_variant,
6641 verify_type): Member fns are on TYPE_FIELDS.
6642 * tree-dump.c (dequeue_and_dump): No TYPE_METHODS.
6643 * tree-pretty-print.c (dump_generic_node): Likewise.
6644
6645 2017-07-20 Jakub Jelinek <jakub@redhat.com>
6646
6647 PR target/80846
6648 * config/i386/i386.c (ix86_expand_vector_init_general): Handle
6649 V2TImode and V4TImode.
6650 (ix86_expand_vector_extract): Likewise.
6651 * config/i386/sse.md (VMOVE): Enable V4TImode even for just
6652 TARGET_AVX512F, instead of only for TARGET_AVX512BW.
6653 (ssescalarmode): Handle V4TImode and V2TImode.
6654 (VEC_EXTRACT_MODE): Add V4TImode and V2TImode.
6655 (*vec_extractv2ti, *vec_extractv4ti): New insns.
6656 (VEXTRACTI128_MODE): New mode iterator.
6657 (splitter for *vec_extractv?ti first element): New.
6658 (VEC_INIT_MODE): New mode iterator.
6659 (vec_init<mode>): Consolidate 3 expanders into one using
6660 VEC_INIT_MODE mode iterator.
6661
6662 2017-07-20 Alexander Monakov <amonakov@ispras.ru>
6663
6664 * lra-assigns.c (pseudo_compare_func): Fix comparison step based on
6665 non_spilled_static_chain_regno_p.
6666
6667 2017-07-20 Alexander Monakov <amonakov@ispras.ru>
6668
6669 * gimple-ssa-store-merging.c (sort_by_bitpos): Return 0 on equal bitpos.
6670
6671 2017-07-20 Jan Hubicka <hubicka@ucw.cz>
6672
6673 * bb-reorder.c (connect_traces): Allow copying of blocks within
6674 single partition.
6675
6676 2017-07-20 Richard Biener <rguenther@suse.de>
6677
6678 * gimple.h (gimple_phi_result): Add gphi * overload.
6679 (gimple_phi_result_ptr): Likewise.
6680 (gimple_phi_arg): Likewise. Adjust index assert to only
6681 allow actual argument accesses rather than all slots available
6682 by capacity.
6683 (gimple_phi_arg_def): Add gphi * overload.
6684 * tree-phinodes.c (make_phi_node): Initialize only actual
6685 arguments.
6686 (resize_phi_node): Clear memory not covered by old node,
6687 do not initialize excess argument slots.
6688 (reserve_phi_args_for_new_edge): Initialize new argument slot
6689 completely.
6690
6691 2017-07-20 Bin Cheng <bin.cheng@arm.com>
6692
6693 PR tree-optimization/81388
6694 Revert r238585:
6695 2016-07-21 Bin Cheng <bin.cheng@arm.com>
6696
6697 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
6698 by removing computation of may_be_zero.
6699
6700 2017-07-18 Jan Hubicka <hubicka@ucw.cz>
6701 Tom de Vries <tom@codesourcery.com>
6702
6703 PR middle-end/81030
6704 * cfgbuild.c (find_many_sub_basic_blocks): Update REG_BR_PROB note
6705 when gimple level profile disagrees with what RTL expander did.
6706
6707 2017-07-20 Richard Biener <rguenther@suse.de>
6708
6709 PR tree-optimization/61171
6710 * tree-vectorizer.h (slp_instance): Add reduc_phis member.
6711 (vect_analyze_stmt): Add slp instance parameter.
6712 (vectorizable_reduction): Likewise.
6713 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust.
6714 (vect_is_simple_reduction): Deal with chains not detected
6715 as SLP reduction chain, specifically not properly associated
6716 chains containing a mix of plus/minus.
6717 (get_reduction_op): Remove.
6718 (get_initial_defs_for_reduction): Simplify, pass in whether
6719 this is a reduction chain, pass in the SLP node for the PHIs.
6720 (vect_create_epilog_for_reduction): Get the SLP instance as
6721 arg and adjust.
6722 (vectorizable_reduction): Get the SLP instance as arg.
6723 During analysis remember the SLP node with the PHIs in the
6724 instance. Simplify getting at the vectorized reduction PHIs.
6725 * tree-vect-slp.c (vect_slp_analyze_node_operations): Pass
6726 through SLP instance.
6727 (vect_slp_analyze_operations): Likewise.
6728 * tree-vect-stms.c (vect_analyze_stmt): Likewise.
6729 (vect_transform_stmt): Likewise.
6730
6731 2017-07-20 Tom de Vries <tom@codesourcery.com>
6732
6733 PR tree-optimization/81489
6734 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Move
6735 read of phi arg location to before loop that modifies phi.
6736
6737 2017-07-20 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
6738
6739 * match.pd (((m1 >/</>=/<= m2) * d -> (m1 >/</>=/<= m2) ? d : 0):
6740 New pattern.
6741
6742 2017-07-19 Jan Hubicka <hubicka@ucw.cz>
6743
6744 PR middle-end/81331
6745 * except.c (execute): Fix ordering issue.
6746
6747 2018-07-19 Segher Boessenkool <segher@kernel.crashing.org>
6748
6749 PR rtl-optimization/81423
6750 * combine.c (make_compound_operation_int): Don't try to optimize
6751 the AND of a SUBREG of an LSHIFTRT if that SUBREG is paradoxical.
6752
6753 2017-07-19 Segher Boessenkool <segher@kernel.crashing.org>
6754
6755 PR rtl-optimization/81423
6756 * simplify-rtx.c (simplify_truncation): Handle truncating an IOR
6757 with a constant that is -1 in the truncated to mode.
6758
6759 2017-07-19 Jan Hubicka <hubicka@ucw.cz>
6760
6761 * predict.c (propagate_unlikely_bbs_forward): Break out from ...
6762 (determine_unlikely_bbs): ... here.
6763 * predict.h (propagate_unlikely_bbs_forward): Declare.
6764 * cfgexpand.c (pass_expand::execute): Use it.
6765 * bb-reorder.c (sanitize_hot_paths): Do not consider known to be
6766 unlikely edges.
6767 (find_rarely_executed_basic_blocks_and_crossing_edges): Use
6768 propagate_unlikely_bbs_forward.
6769
6770 2017-07-19 Jan Hubicka <hubicka@ucw.cz>
6771
6772 PR middle-end/81331
6773 * except.c (maybe_add_nop_after_section_switch): New function.
6774 (execute): Use it.
6775
6776 2017-07-19 Tom de Vries <tom@codesourcery.com>
6777
6778 * gimple.h (gimple_phi_set_arg): Make assert more strict.
6779
6780 2017-07-19 Tom de Vries <tom@codesourcery.com>
6781
6782 * gimple.h (gimple_phi_arg): Make assert more strict.
6783
6784 2017-07-19 Steven Munroe <munroesj@gcc.gnu.org>
6785
6786 * config.gcc (powerpc*-*-*): Add mmintrin.h.
6787 * config/rs6000/mmintrin.h: New file.
6788 * config/rs6000/x86intrin.h [__ALTIVEC__]: Include mmintrin.h.
6789
6790 2017-07-19 Jakub Jelinek <jakub@redhat.com>
6791
6792 PR tree-optimization/81346
6793 * match.pd: Optimize (X - 1U) <= INT_MAX-1U into (int) X > 0.
6794
6795 2017-07-19 Tom de Vries <tom@codesourcery.com>
6796
6797 * config/nvptx/nvptx.md (VECIM): Add V2DI.
6798
6799 2017-07-19 Tom de Vries <tom@codesourcery.com>
6800
6801 * config/nvptx/nvptx-modes.def: Add V2DImode.
6802 * config/nvptx/nvptx-protos.h (nvptx_data_alignment): Declare.
6803 * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Handle V2DImode.
6804 (nvptx_output_mov_insn): Handle lack of mov.b128.
6805 (nvptx_print_operand): Handle 'H' and 'L' codes.
6806 (nvptx_vector_mode_supported): Allow V2DImode.
6807 (nvptx_preferred_simd_mode): New function.
6808 (nvptx_data_alignment): New function.
6809 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Redefine to
6810 nvptx_preferred_simd_mode.
6811 * config/nvptx/nvptx.h (STACK_BOUNDARY, BIGGEST_ALIGNMENT): Change from
6812 64 to 128 bits.
6813 (DATA_ALIGNMENT): Define. Set to nvptx_data_alignment.
6814
6815 2017-07-19 Tom de Vries <tom@codesourcery.com>
6816
6817 * config/nvptx/nvptx-modes.def: New file. Add V2SImode.
6818 * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Handle V2SImode.
6819 (nvptx_vector_mode_supported): New function. Allow V2SImode.
6820 (TARGET_VECTOR_MODE_SUPPORTED_P): Redefine to nvptx_vector_mode_supported.
6821 * config/nvptx/nvptx.md (VECIM): New mode iterator. Add V2SI.
6822 (mov<VECIM>_insn): New define_insn.
6823 (define_expand "mov<VECIM>): New define_expand.
6824
6825 2017-07-19 Tom de Vries <tom@codesourcery.com>
6826
6827 * config/nvptx/nvptx.c (nvptx_print_operand): Handle v2 vector mode.
6828
6829 2017-07-19 Jakub Jelinek <jakub@redhat.com>
6830
6831 PR tree-optimization/81346
6832 * fold-const.h (fold_div_compare, range_check_type): Declare.
6833 * fold-const.c (range_check_type): New function.
6834 (build_range_check): Use range_check_type.
6835 (fold_div_compare): No longer static, rewritten into
6836 a match.pd helper function.
6837 (fold_comparison): Don't call fold_div_compare here.
6838 * match.pd (X / C1 op C2): New optimization using fold_div_compare
6839 as helper function.
6840
6841 2017-07-19 Nathan Sidwell <nathan@acm.org>
6842
6843 * tree.h (TYPE_MINVAL, TYPE_MAXVAL): Rename to ...
6844 (TYPE_MIN_VALUE_RAW, TYPE_MAX_VALUE_RAW): ... these.
6845 * tree.c (find_decls_types_r, verify_type): Use
6846 TYPE_{MIN,MAX}_VALUE_RAW.
6847 * lto-streamer-out.c (DFS::DFS_write_tree_body): Likewise.
6848 (hash_tree): Likewise.
6849 * tree-streamer-in.c (lto_input_ts_type_non_common_tree_pointers):
6850 Likewise.
6851 * tree-streamer-out.c (write_ts_type_non_common_tree_pointers):
6852 Likewise.
6853
6854 2017-07-18 Tom de Vries <tom@codesourcery.com>
6855
6856 PR middle-end/81464
6857 * omp-expand.c (expand_omp_for_static_chunk): Handle
6858 equal-argument loop exit phi.
6859
6860 2017-07-18 Uros Bizjak <ubizjak@gmail.com>
6861
6862 PR target/81471
6863 * config/i386/i386.md (rorx_immediate_operand): New mode attribute.
6864 (*bmi2_rorx<mode>3_1): Use rorx_immediate_operand as
6865 operand 2 predicate.
6866 (*bmi2_rorxsi3_1_zext): Use const_0_to_31_operand as
6867 operand 2 predicate.
6868 (ror,rol -> rorx splitters): Use const_int_operand as
6869 operand 2 predicate.
6870
6871 2017-06-18 Richard Biener <rguenther@suse.de>
6872
6873 PR tree-optimization/81410
6874 * tree-vect-stmts.c (vectorizable_load): Properly adjust for
6875 the gap in the ! slp_perm SLP case after each group.
6876
6877 2017-07-18 Jan Hubicka <hubicka@ucw.cz>
6878
6879 PR middle-end/81463
6880 * cfgloopmanip.c (scale_loop_profile): Watch out for zero frequency
6881 again.
6882
6883 2017-07-18 Jan Hubicka <hubicka@ucw.cz>
6884
6885 PR middle-end/81462
6886 * predict.c (set_even_probabilities): Cleanup; do not affect
6887 probabilities that are already known.
6888 (combine_predictions_for_bb): Call even when count is set.
6889
6890 2017-07-18 Nathan Sidwell <nathan@acm.org>
6891
6892 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
6893 TYPE_MAX_VALUE.
6894
6895 2017-07-18 Bin Cheng <bin.cheng@arm.com>
6896
6897 PR target/81408
6898 * tree-ssa-loop-niter.c (number_of_iterations_exit): Dump missed
6899 optimization for loop niter analysis.
6900
6901 2017-07-18 Georg-Johann Lay <avr@gjlay.de>
6902
6903 PR target/81473
6904 * config/avr/avr.c (avr_optimize_casesi): Don't use
6905 INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX.
6906
6907 2017-07-18 Robin Dapp <rdapp@linux.vnet.ibm.com>
6908
6909 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Remove
6910 body_cost_vec from _vect_peel_extended_info.
6911 (vect_peeling_hash_get_lowest_cost): Do not set body_cost_vec.
6912 (vect_peeling_hash_choose_best_peeling): Remove body_cost_vec and
6913 npeel.
6914
6915 2017-07-18 Bin Cheng <bin.cheng@arm.com>
6916
6917 * config/arm/arm.c (emit_unlikely_jump): Remove unused var.
6918
6919 2017-07-18 Richard Biener <rguenther@suse.de>
6920
6921 PR tree-optimization/80620
6922 PR tree-optimization/81403
6923 * tree-ssa-pre.c (phi_translate_1): Clear range and points-to
6924 info when re-using a VN table entry.
6925
6926 2017-07-18 Richard Biener <rguenther@suse.de>
6927
6928 PR tree-optimization/81418
6929 * tree-vect-loop.c (vectorizable_reduction): Properly compute
6930 vectype_in. Verify that with lane-reducing reduction operations
6931 we have a single def-use cycle.
6932
6933 2017-07-17 Carl Love <cel@us.ibm.com>
6934
6935 Revert commit r249424 2017-06-20 Carl Love <cel@us.ibm.com>
6936
6937 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6938 ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
6939 ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
6940 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
6941 builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
6942 * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
6943 VMULOSW): New enum "unspec" values.
6944 (vec_widen_umult_even_v4si, vec_widen_smult_even_v4si,
6945 vec_widen_umult_odd_v4si, vec_widen_smult_odd_v4si,
6946 altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
6947 altivec_vmulosw): New patterns.
6948 * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
6949 VMULOSW): Add definitions.
6950 2017-07-17 Uros Bizjak <ubizjak@gmail.com>
6951
6952 * config/alpha/alpha.c: Include predict.h.
6953
6954 2017-07-17 Yury Gribov <tetra2005@gmail.com>
6955
6956 * tree-vrp.c (compare_assert_loc): Fix comparison function
6957 to return predictable results.
6958
6959 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
6960
6961 * config/arc/arc.md (adddi3): Remove support for mexpand-adddi
6962 option.
6963 (subdi3): Likewise.
6964 * config/arc/arc.opt (mexpand-adddi): Deprecate it.
6965 * doc/invoke.texi (mexpand-adddi): Update text.
6966
6967 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
6968
6969 * config/arc/arc.md (clzsi2): Expand to an arc_clzsi2 instruction
6970 that also clobbers the CC register. The old expand code is moved
6971 to ...
6972 (*arc_clzsi2): ... here.
6973 (ctzsi2): Expand to an arc_ctzsi2 instruction that also clobbers
6974 the CC register. The old expand code is moved to ...
6975 (arc_ctzsi2): ... here.
6976
6977 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
6978
6979 * config/arc/arc.opt (mindexed-loads): Use initial value
6980 TARGET_INDEXED_LOADS_DEFAULT.
6981 (mauto-modify-reg): Use initial value
6982 TARGET_AUTO_MODIFY_REG_DEFAULT.
6983 * config/arc/elf.h (TARGET_INDEXED_LOADS_DEFAULT): Define.
6984 (TARGET_AUTO_MODIFY_REG_DEFAULT): Likewise.
6985 * config/arc/linux.h (TARGET_INDEXED_LOADS_DEFAULT): Define.
6986 (TARGET_AUTO_MODIFY_REG_DEFAULT): Likewise.
6987
6988 2017-07-17 Martin Liska <mliska@suse.cz>
6989
6990 PR sanitizer/81302
6991 * opts.c (finish_options): Do not allow -fgnu-tm
6992 w/ -fsanitize={kernel-,}address. Say sorry.
6993
6994 2017-07-17 Bin Cheng <bin.cheng@arm.com>
6995
6996 PR target/81369
6997 * tree-loop-distribution.c (classify_partition): Only assert on
6998 numer of iterations.
6999 (merge_dep_scc_partitions): Delete prameter. Update function call.
7000 (distribute_loop): Remove code handling loop with unknown niters.
7001 (pass_loop_distribution::execute): Skip loop with unknown niters.
7002
7003 2017-07-17 Bin Cheng <bin.cheng@arm.com>
7004
7005 PR target/81369
7006 * tree-loop-distribution.c (merge_dep_scc_partitions): Sink call to
7007 function sort_partitions_by_post_order.
7008
7009 2017-07-17 Bin Cheng <bin.cheng@arm.com>
7010
7011 PR tree-optimization/81374
7012 * tree-loop-distribution.c (pass_loop_distribution::execute): Record
7013 the max index of basic blocks, rather than number of basic blocks.
7014
7015 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
7016
7017 * config/arc/arc-protos.h (arc_legitimate_pc_offset_p): Remove
7018 proto.
7019 (arc_legitimate_pic_operand_p): Likewise.
7020 * config/arc/arc.c (arc_legitimate_pic_operand_p): Remove
7021 function.
7022 (arc_needs_pcl_p): Likewise.
7023 (arc_legitimate_pc_offset_p): Likewise.
7024 (arc_legitimate_pic_addr_p): Remove LABEL_REF case, as this
7025 function is also used in constrains.md.
7026 (arc_legitimate_constant_p): Use arc_legitimate_pic_addr_p to
7027 validate pic constants. Handle CONST_INT, CONST_DOUBLE, MINUS and
7028 PLUS. Only return true/false in known cases, otherwise assert.
7029 (arc_legitimate_address_p): Remove arc_legitimate_pic_addr_p as it
7030 is already called in arc_legitimate_constant_p.
7031 * config/arc/arc.h (CONSTANT_ADDRESS_P): Consider also LABEL for
7032 pic addresses.
7033 (LEGITIMATE_PIC_OPERAND_P): Use
7034 arc_raw_symbolic_reference_mentioned_p function.
7035 * config/arc/constraints.md (Cpc): Use arc_legitimate_pic_addr_p
7036 function.
7037 (Cal): Likewise.
7038 (C32): Likewise.
7039
7040 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
7041 Andrew Burgess <andrew.burgess@embecosm.com>
7042
7043 * config/arc/arc-protos.h (arc_compute_function_type): Change prototype.
7044 (arc_return_address_register): New function.
7045 * config/arc/arc.c (arc_handle_fndecl_attribute): New function.
7046 (arc_handle_fndecl_attribute): Add naked attribute.
7047 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
7048 (TARGET_WARN_FUNC_RETURN): Likewise.
7049 (arc_allocate_stack_slots_for_args): New function.
7050 (arc_warn_func_return): Likewise.
7051 (machine_function): Change type fn_type.
7052 (arc_compute_function_type): Consider new naked function type,
7053 change function return type.
7054 (arc_must_save_register): Adapt to handle new
7055 arc_compute_function_type's return type.
7056 (arc_expand_prologue): Likewise.
7057 (arc_expand_epilogue): Likewise.
7058 (arc_return_address_regs): Delete.
7059 (arc_return_address_register): New function.
7060 (arc_epilogue_uses): Use above function.
7061 * config/arc/arc.h (arc_return_address_regs): Delete prototype.
7062 (arc_function_type): Change encoding, add naked type.
7063 (ARC_INTERRUPT_P): Change to handle the new encoding.
7064 (ARC_FAST_INTERRUPT_P): Likewise.
7065 (ARC_NORMAL_P): Define.
7066 (ARC_NAKED_P): Likewise.
7067 (arc_compute_function_type): Delete prototype.
7068 * config/arc/arc.md (in_ret_delay_slot): Use
7069 arc_return_address_register function.
7070 (simple_return): Likewise.
7071 (p_return_i): Likewise.
7072
7073 2017-07-17 Jakub Jelinek <jakub@redhat.com>
7074
7075 PR tree-optimization/81428
7076 * match.pd (X / X -> one): Don't optimize _Fract divisions, as 1
7077 can't be built for those types.
7078
7079 2017-07-17 Georg-Johann Lay <avr@gjlay.de>
7080
7081 Remove stuff dead since r239246.
7082
7083 * config/avr/avr-arch.h (avr_inform_devices): Remove dead proto.
7084 * config/avr/avr-devices.c (mcu_name, comparator, avr_mcus_str)
7085 (avr_inform_devices): Remove dead stuff.
7086
7087 2017-07-17 Tamar Christina <tamar.christina@arm.com>
7088
7089 * config/arm/arm_neon.h: Fix softp typo.
7090
7091 2017-07-17 Jakub Jelinek <jakub@redhat.com>
7092
7093 PR tree-optimization/81365
7094 * tree-ssa-phiprop.c (propagate_with_phi): When considering hoisting
7095 aggregate moves onto bb predecessor edges, make sure there are no
7096 loads that could alias the lhs in between the start of bb and the
7097 loads from *phi.
7098
7099 2017-07-17 Georg-Johann Lay <avr@gjlay.de>
7100
7101 PR 80929
7102 * config/avr/avr.c (avr_mul_highpart_cost): New static function.
7103 (avr_rtx_costs_1) [TRUNCATE]: Use it to compute mul_highpart cost.
7104 [LSHIFTRT, outer_code = TRUNCATE]: Same.
7105
7106 2017-07-17 Jakub Jelinek <jakub@redhat.com>
7107
7108 PR tree-optimization/81396
7109 * tree-ssa-math-opts.c (struct symbolic_number): Add n_ops field.
7110 (init_symbolic_number): Initialize it to 1.
7111 (perform_symbolic_merge): Add n_ops from both operands into the new
7112 n_ops.
7113 (find_bswap_or_nop): Don't consider n->n == cmpnop computations
7114 without base_addr as useless if they need more than one operation.
7115 (bswap_replace): Handle !bswap case for NULL base_addr.
7116
7117 2017-07-17 Tom de Vries <tom@codesourcery.com>
7118
7119 PR target/81069
7120 * config/nvptx/nvptx.c (nvptx_single): Insert diverging branch as late
7121 as possible.
7122
7123 2017-07-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
7124
7125 * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
7126 conditional builtin define __FIX_LEON3FT_B2BST.
7127
7128 2017-07-17 Daniel Cederman <cederman@gaisler.com>
7129
7130 * config/sparc/t-rtems: Add mfix-gr712rc multilibs. Replace
7131 MULTILIB_EXCEPTIONS with MULTILIB_REQUIRED. Match -mfix-gr712rc
7132 with -mfix-ut700.
7133
7134 2017-07-16 Eric Botcazou <ebotcazou@adacore.com>
7135
7136 PR rtl-optimization/81424
7137 * optabs.c (prepare_cmp_insn): Use copy_to_reg instead of force_reg
7138 to remove potential trapping from operands if -fnon-call-exceptions.
7139
7140 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
7141
7142 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Use
7143 profile_proability for scalling.
7144 * scale_profile_for_vect_loop.c (scale_profile_for_vect_loop): Likewise.
7145
7146 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
7147
7148 * cgraph.c (cgraph_edge::redirect_call_stmt_to_caller): Cleanup.
7149
7150 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
7151
7152 * cfgloopmanip.c (scale_loop_profile): Avoid use of REG_BR_PROB_BASE
7153 fixpoint arithmetics.
7154
7155 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
7156
7157 * tree-ssa-loop-unswitch.c (hoist_guard): Avoid use of REG_BR_PROB_BASE
7158 fixpoint arithmetics.
7159
7160 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
7161
7162 * asan.c (create_cond_insert_point): Avoid use of REG_BR_PROB_BASE
7163 fixpoint arithmetics.
7164
7165 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
7166
7167 * profile-count.h (profile_probability::from_reg_br_prob_note,
7168 profile_probability::to_reg_br_prob_note): New functions.
7169 * doc/rtl.texi (REG_BR_PROB_NOTE): Update documentation.
7170 * reg-notes.h (REG_BR_PROB, REG_BR_PRED): Update docs.
7171 * predict.c (probability_reliable_p): Update.
7172 (edge_probability_reliable_p): Update.
7173 (br_prob_note_reliable_p): Update.
7174 (invert_br_probabilities): Update.
7175 (add_reg_br_prob_note): New function.
7176 (combine_predictions_for_insn): Update.
7177 * asan.c (asan_clear_shadow): Update.
7178 * cfgbuild.c (compute_outgoing_frequencies): Update.
7179 * cfgrtl.c (force_nonfallthru_and_redirect): Update.
7180 (update_br_prob_note): Update.
7181 (rtl_verify_edges): Update.
7182 (purge_dead_edges): Update.
7183 (fixup_reorder_chain): Update.
7184 * emit-rtl.c (try_split): Update.
7185 * ifcvt.c (cond_exec_process_insns): Update.
7186 (cond_exec_process_if_block): Update.
7187 (dead_or_predicable): Update.
7188 * internal-fn.c (expand_addsub_overflow): Update.
7189 (expand_neg_overflow): Update.
7190 (expand_mul_overflow): Update.
7191 * loop-doloop.c (doloop_modify): Update.
7192 * loop-unroll.c (compare_and_jump_seq): Update.
7193 * optabs.c (emit_cmp_and_jump_insn_1): Update.
7194 * predict.h: Update.
7195 * reorg.c (mostly_true_jump): Update.
7196 * rtl.h: Update.
7197 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Update.
7198 * config/alpha/alpha.c (emit_unlikely_jump): Update.
7199 * config/arc/arc.c: (emit_unlikely_jump): Update.
7200 * config/arm/arm.c: (emit_unlikely_jump): Update.
7201 * config/bfin/bfin.c (cbranch_predicted_taken_p): Update.
7202 * config/frv/frv.c (frv_print_operand_jump_hint): Update.
7203 * config/i386/i386.c (ix86_expand_split_stack_prologue): Update.
7204 (ix86_print_operand): Update.
7205 (ix86_split_fp_branch): Update.
7206 (predict_jump): Update.
7207 * config/ia64/ia64.c (ia64_print_operand): Update.
7208 * config/mmix/mmix.c (mmix_print_operand): Update.
7209 * config/powerpcspe/powerpcspe.c (output_cbranch): Update.
7210 (rs6000_expand_split_stack_prologue): Update.
7211 * config/rs6000/rs6000.c: Update.
7212 * config/s390/s390.c (s390_expand_vec_strlen): Update.
7213 (s390_expand_vec_movstr): Update.
7214 (s390_expand_cs_tdsi): Update.
7215 (s390_expand_split_stack_prologue): Update.
7216 * config/sh/sh.c (sh_print_operand): Update.
7217 (expand_cbranchsi4): Update.
7218 (expand_cbranchdi4): Update.
7219 * config/sparc/sparc.c (output_v9branch): Update.
7220 * config/spu/spu.c (get_branch_target): Update.
7221 (ea_load_store_inline): Update.
7222 * config/tilegx/tilegx.c (cbranch_predicted_p): Update.
7223 * config/tilepro/tilepro.c: Update.
7224
7225 2017-07-16 Eric Botcazou <ebotcazou@adacore.com>
7226
7227 * gimplify.c (mostly_copy_tree_r): Revert latest change.
7228 (gimplify_save_expr): Likewise.
7229
7230 2017-07-07 Jan Hubicka <hubicka@ucw.cz>
7231
7232 * ipa-visibility.c (function_and_variable_visibility): Fix pasto.
7233
7234 2017-07-07 Jan Hubicka <hubicka@ucw.cz>
7235
7236 * ipa-fnsummary.c (pass_data_ipa_fn_summary): Use
7237 TV_IPA_FNSUMMARY.
7238 * timevar.def (TV_IPA_FNSUMMARY): Define.
7239
7240 2017-07-16 Daniel Cederman <cederman@gaisler.com>
7241
7242 * config/sparc/sparc.md (divdf3_fix): Add NOP to prevent back
7243 to back store errata sensitive sequence from being generated.
7244 (sqrtdf2_fix): Likewise.
7245
7246 2017-07-07 Jan Hubicka <hubicka@ucw.cz>
7247
7248 * tree-ssa-threadupdate.c (compute_path_counts,
7249 update_joiner_offpath_counts): Use profile_probability.
7250
7251 2017-07-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
7252
7253 Revert:
7254 2017-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
7255
7256 * config/arm/arm-c.c (arm_cpu_builtins): Define
7257 __ARM_FEATURE_NUMERIC_MAXMIN solely based on TARGET_VFP5.
7258
7259 2017-07-14 Kelvin Nilsen <kelvin@gcc.gnu.org>
7260
7261 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7262 array entries to represent __ieee128 versions of the
7263 scalar_test_data_class, scalar_test_neg, scalar_extract_exp,
7264 scalar_extract_sig, and scalar_insert_exp built-in functions.
7265 (altivec_resolve_overloaded_builtin): Add special case handling
7266 for the __builtin_scalar_insert_exp function, as represented by
7267 the P9V_BUILTIN_VEC_VSIEDP constant.
7268 * config/rs6000/rs6000-builtin.def (VSEEQP): Add scalar extract
7269 exponent support for __ieee128 argument.
7270 (VSESQP): Add scalar extract signature support for __ieee128
7271 argument.
7272 (VSTDCNQP): Add scalar test negative support for __ieee128
7273 argument.
7274 (VSIEQP): Add scalar insert exponent support for __int128 argument
7275 with __ieee128 result.
7276 (VSIEQPF): Add scalar insert exponent support for __ieee128
7277 argument with __ieee128 result.
7278 (VSTDCQP): Add scalar test data class support for __ieee128
7279 argument.
7280 (VSTDCNQP): Add overload support for scalar test negative with
7281 __ieee128 argument.
7282 (VSTDCQP): Add overload support for scalar test data class
7283 __ieee128 argument.
7284 * config/rs6000/vsx.md (UNSPEC_VSX_SXSIG) Replace
7285 UNSPEC_VSX_SXSIGDP.
7286 (UNSPEC_VSX_SIEXPQP): New constant.
7287 (xsxexpqp): New insn for VSX scalar extract exponent quad
7288 precision.
7289 (xsxsigqp): New insn for VSX scalar extract significand quad
7290 precision.
7291 (xsiexpqpf): New insn for VSX scalar insert exponent quad
7292 precision with floating point argument.
7293 (xststdcqp): New expand for VSX scalar test data class quad
7294 precision.
7295 (xststdcnegqp): New expand for VSX scalar test negative quad
7296 precision.
7297 (xststdcqp): New insn to match expansions for VSX scalar test data
7298 class quad precision and VSX scalar test negative quad precision.
7299 * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
7300 special case operand checking to enforce that second operand of
7301 VSX scalar test data class with quad precision argument is a 7-bit
7302 unsigned literal.
7303 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
7304 prototypes and descriptions of __ieee128 versions of
7305 scalar_extract_exp, scalar_extract_sig, scalar_insert_exp,
7306 scalar_test_data_class, and scalar_test_neg built-in functions.
7307
7308 2016-07-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7309
7310 PR tree-optimization/81162
7311 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Don't
7312 replace a negate with an add.
7313
7314 2017-07-14 James Greenhalgh <james.greenhalgh@arm.com>
7315
7316 * doc/invoke.texi (arm/-mcpu): Document +crypto.
7317
7318 2017-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
7319
7320 * config/arm/arm-c.c (arm_cpu_builtins): Define
7321 __ARM_FEATURE_NUMERIC_MAXMIN solely based on TARGET_VFP5.
7322
7323 2017-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
7324
7325 * config/arm/arm-cpus.in (cortex-r52): Add new entry.
7326 (armv8-r): Set ARM Cortex-R52 as default CPU.
7327 * config/arm/arm-tables.opt: Regenerate.
7328 * config/arm/arm-tune.md: Regenerate.
7329 * config/arm/driver-arm.c (arm_cpu_table): Add entry for ARM
7330 Cortex-R52.
7331 * doc/invoke.texi: Mention -mtune=cortex-r52 and availability of fp.dp
7332 extension for -mcpu=cortex-r52.
7333
7334 2017-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
7335
7336 * config/arm/arm-isa.h (isa_bit_FP_ARMv8): Delete enumerator.
7337 (ISA_FP_ARMv8): Define as ISA_FPv5 and ISA_FP_D32.
7338 * config/arm/arm-cpus.in (armv8-r): Define fp.sp as enabling FPv5.
7339 (fp-armv8): Define it as FP_ARMv8 only.
7340 config/arm/arm.h (TARGET_FPU_ARMV8): Delete.
7341 (TARGET_VFP_FP16INST): Define using TARGET_VFP5 rather than
7342 TARGET_FPU_ARMV8.
7343 config/arm/arm.c (arm_rtx_costs_internal): Replace checks against
7344 TARGET_FPU_ARMV8 by checks against TARGET_VFP5.
7345 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Define
7346 first ARM_CHECK_BUILTIN_MODE definition using TARGET_VFP5 rather
7347 than TARGET_FPU_ARMV8.
7348 * config/arm/arm-c.c (arm_cpu_builtins): Likewise for
7349 __ARM_FEATURE_NUMERIC_MAXMIN macro definition.
7350 * config/arm/arm.md (cmov<mode>): Condition on TARGET_VFP5 rather than
7351 TARGET_FPU_ARMV8.
7352 * config/arm/neon.md (neon_vrint): Likewise.
7353 (neon_vcvt): Likewise.
7354 (neon_<fmaxmin_op><mode>): Likewise.
7355 (<fmaxmin><mode>3): Likewise.
7356 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Likewise.
7357 * config/arm/predicates.md (arm_cond_move_operator): Check against
7358 TARGET_VFP5 rather than TARGET_FPU_ARMV8 and fix spacing.
7359
7360 2017-07-14 Jackson Woodruff <jackson.woodruff@arm.com>
7361
7362 * config/aarch64/aarch64.c (aarch64_print_operand): Move comments
7363 to top of function.
7364
7365 2017-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7366
7367 * gimple-ssa-store-merging.c (clear_bit_region): Replace reference to
7368 loop in comment with memset.
7369
7370 2017-07-14 Martin Liska <mliska@suse.cz>
7371
7372 * cfgexpand.c (expand_gimple_basic_block): Remove dead comment.
7373 * dwarf2out.c (is_java): Remove the function.
7374 (output_pubname): Remove usage of the function.
7375 (lower_bound_default): Remove usage of DW_LANG_Java.
7376 (gen_compile_unit_die): Likewise.
7377 * gcc.c: Remove compiler defaults for .java and .zip files.
7378 * gimple-expr.c (remove_suffix): Change as there's no longer
7379 extension than 4-letter one.
7380 * gimplify.c (mostly_copy_tree_r): Remove Java-special part.
7381 (gimplify_save_expr): Likewise.
7382 * ipa-utils.h (polymorphic_type_binfo_p): Remove the comment
7383 as it's possible even for other languages than Java.
7384 * langhooks.h (struct lang_hooks): Remove Java from a comment.
7385 * lto-opts.c (lto_write_options): Remove reference to Java.
7386 * opts.c (strip_off_ending): Update file extension handling.
7387 * tree-cfg.c (verify_gimple_call): Remove comment with Java.
7388 * tree-eh.c (lower_resx): Likewise.
7389 * tree.c (free_lang_data_in_type): Remove dead code.
7390 (find_decls_types_r): Likewise.
7391 (build_common_builtin_nodes): Remove Java from a comment.
7392 (verify_type): Remove dead code.
7393 * varasm.c (assemble_external): Remove Java from a comment.
7394
7395 2017-07-14 Martin Liska <mliska@suse.cz>
7396
7397 * opts.c (finish_options): Add quotes.
7398 (common_handle_option): Likewise.
7399
7400 2017-07-14 Martin Liska <mliska@suse.cz>
7401
7402 * dbxout.c (get_lang_number): Do not handle GNU Pascal.
7403 * dbxout.h (extern void dbxout_stab_value_internal_label_diff):
7404 Remove N_SO_PASCAL.
7405 * dwarf2out.c (lower_bound_default): Do not handle
7406 DW_LANG_Pascal83.
7407 (gen_compile_unit_die): Likewise.
7408 * gcc.c: Remove default extension binding for GNU Pascal.
7409 * stmt.c: Remove Pascal language from a comment.
7410 * xcoffout.c: Likewise.
7411
7412 2017-07-13 David Malcolm <dmalcolm@redhat.com>
7413
7414 PR c/81405
7415 * diagnostic-show-locus.c (fixit_cmp): New function.
7416 (layout::layout): Sort m_fixit_hints.
7417 (column_range::column_range): Assert that the values are valid.
7418 (struct char_span): New struct.
7419 (correction::overwrite): New method.
7420 (struct source_line): New struct.
7421 (line_corrections::add_hint): Add assertions. Reimplement memcpy
7422 calls in terms of classes source_line and char_span, and
7423 correction::overwrite.
7424 (selftest::test_overlapped_fixit_printing_2): New function.
7425 (selftest::diagnostic_show_locus_c_tests): Call it.
7426
7427 2017-07-13 Will Schmidt <will_schmidt@vnet.ibm.com>
7428
7429 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Return
7430 early if there is no lhs.
7431
7432 2017-07-13 Martin Liska <mliska@suse.cz>
7433
7434 * dwarf2out.c (gen_pointer_type_die): Remove dead code.
7435 (gen_reference_type_die): Likewise.
7436 * stor-layout.c: Remove Pascal-related comment.
7437
7438 2017-07-13 Martin Liska <mliska@suse.cz>
7439
7440 * opts.c (finish_options): Add quotes to error messages.
7441 (parse_sanitizer_options): Likewise.
7442
7443 2017-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
7444
7445 * doc/invoke.texi (armv8-r): Document +fp.sp ARMv8-R extension.
7446
7447 2017-07-13 Richard Earnshaw <rearnsha@arm.com>
7448
7449 * config/arm/vxworks.h (TARGET_ENDIAN_DEFAULT): Define.
7450
7451 2017-07-13 Maxim Ostapenko <m.ostapenko@samsung.com>
7452
7453 * asan.c (asan_emit_allocas_unpoison): Use ptr_mode for arguments
7454 during expansion.
7455 * builtins.c (expand_asan_emit_allocas_unpoison): Likewise.
7456
7457 2017-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
7458
7459 PR target/81193
7460 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): If GLIBC
7461 provides the hardware capability bits, define the macro
7462 __BUILTIN_CPU_SUPPORTS__.
7463 * config/rs6000/rs6000.c (cpu_expand_builtin): Generate a warning
7464 if GLIBC does not provide the hardware capability bits. Add a
7465 gcc_unreachable call if the built-in cpu function is neither
7466 __builtin_cpu_is nor __builtin_cpu_supports.
7467 (rs6000_get_function_versions_dispatcher): Change the warning
7468 that an old GLIBC is used which does not export the capability
7469 bits to be an error.
7470 * doc/extend.texi (target_clones attribute): Document the
7471 restriction that GLIBC 2.23 or newer is needed on the PowerPC.
7472 (PowerPC built-in functions): Document that GLIBC 2.23 or newer is
7473 needed by __builtin_cpu_is and __builtin_cpu_supports. Document
7474 the macros defined by GCC if the newer GLIBC is available.
7475
7476 2017-07-12 Jeff Law <law@redhat.com>
7477
7478 * config/riscv/riscv.c: Remove unnecessary includes. Reorder
7479 remaining includes slightly.
7480 * config/riscv/riscv-builtins.c: Include profile-count.h.
7481
7482 2017-07-12 Georg-Johann Lay <avr@gjlay.de>
7483
7484 PR target/79883
7485 * config/avr/avr.c (avr_set_current_function): In diagnostic
7486 messages: Quote keywords and (parts of) identifiers.
7487 [WITH_AVRLIBC]: Warn for functions named "ISR", "SIGNAL" or
7488 "INTERUPT".
7489
7490 2017-07-12 Carl Love <cel@us.ibm.com>
7491
7492 * config/rs6000/rs6000-c.c: Add support for built-in functions
7493 vector bool char vec_revb (vector bool char);
7494 vector bool short vec_revb (vector short char);
7495 vector bool int vec_revb (vector bool int);
7496 vector bool long long vec_revb (vector bool long long);
7497 * doc/extend.texi: Update the built-in documentation file for the
7498 new built-in functions.
7499
7500 2017-07-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7501
7502 * config/s390/s390.md: Remove movcc splitter.
7503
7504 2017-07-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7505
7506 * config/s390/s390.c (s390_rtx_costs): Return proper costs for
7507 load/store on condition.
7508
7509 2017-07-12 Georg-Johann Lay <avr@gjlay.de>
7510
7511 PR target/81407
7512 * config/avr/avr.c (avr_encode_section_info)
7513 [progmem && !TREE_READONLY]: Error if progmem object needs
7514 constructing.
7515
7516 2017-07-11 Michael Collison <michael.collison@arm.com>
7517
7518 * config/aarch64/aarch64-simd.md (aarch64_sub<mode>_compare0):
7519 New pattern.
7520
7521 2017-07-11 Carl Love <cel@us.ibm.com>
7522
7523 * config/rs6000/rs6000-c.c: Add support for builtins
7524 vector unsigned int vec_parity_lsbb (vector signed int);
7525 vector unsigned int vec_parity_lsbb (vector unsigned int);
7526 vector unsigned __int128 vec_parity_lsbb (vector signed __int128);
7527 vector unsigned __int128 vec_parity_lsbb (vector unsigned __int128);
7528 vector unsigned long long vec_parity_lsbb (vector signed long long);
7529 vector unsigned long long vec_parity_lsbb (vector unsigned long long);
7530 * config/rs6000/rs6000-builtin.def (VPARITY_LSBB): Add BU_P9V_OVERLOAD1.
7531 * config/rs6000/altivec.h (vec_parity_lsbb): Add define.
7532 * doc/extend.texi: Update the built-in documentation file for the
7533 new built-in functions.
7534
7535 2017-07-11 David Malcolm <dmalcolm@redhat.com>
7536
7537 * diagnostic-show-locus.c: Include "gcc-rich-location.h".
7538 (layout::m_primary_loc): New field.
7539 (layout::layout): Initialize new field. Move location filtering
7540 logic from here to...
7541 (layout::maybe_add_location_range): ...this new method. Add
7542 support for filtering to just the lines already specified by other
7543 locations.
7544 (layout::will_show_line_p): New method.
7545 (gcc_rich_location::add_location_if_nearby): New method.
7546 (selftest::test_add_location_if_nearby): New test function.
7547 (selftest::diagnostic_show_locus_c_tests): Call it.
7548 * gcc-rich-location.h (gcc_rich_location::add_location_if_nearby):
7549 New method.
7550
7551 2017-07-11 Tom de Vries <tom@codesourcery.com>
7552
7553 * config/nvptx/nvptx.c (WORKAROUND_PTXJIT_BUG): New macro.
7554 (bb_first_real_insn): New function.
7555 (nvptx_single): Add extra initialization of broadcasted condition
7556 variables.
7557
7558 2017-07-11 Nathan Sidwell <nathan@acm.org>
7559
7560 * dwarf2out.c (gen_member_die): Remove useless check for anon ctors.
7561
7562 2017-07-11 Georg-Johann Lay <avr@gjlay.de>
7563
7564 * doc/extend.texi (AVR Function Attributes): Remove weblink to
7565 Binutils doc as TEXI will mess them up.
7566 * doc/invoke.texi (AVR Options): Same here.
7567
7568 2017-07-11 Daniel Cederman <cederman@gaisler.com>
7569
7570 * config/sparc/sparc.opt (mfix-ut700): New option.
7571 (mfix-gr712rc): Likewise.
7572 (sparc_fix_b2bst): New variable.
7573 * doc/invoke.texi (SPARC options): Document them.
7574 (ARM options): Fix warnings.
7575 * config/sparc/sparc.c (sparc_do_work_around_errata): Insert NOP
7576 instructions to prevent sequences that can trigger the store-store
7577 errata for certain LEON3FT processors.
7578 (pass_work_around_errata::gate): Also test sparc_fix_b2bst.
7579 (sparc_option_override): Set sparc_fix_b2bst appropriately.
7580 * config/sparc/sparc.md (fix_b2bst): New attribute.
7581 (in_branch_delay): Prevent stores in delay slot if fix_b2bst.
7582
7583 2017-07-10 Uros Bizjak <ubizjak@gmail.com>
7584
7585 PR target/81375
7586 * config/i386/i386.md (divsf3): Add TARGET_SSE to TARGET_SSE_MATH.
7587 (rcpps): Ditto.
7588 (*rsqrtsf2_sse): Ditto.
7589 (rsqrtsf2): Ditto.
7590 (div<mode>3): Macroize insn from divdf3 and divsf3
7591 using MODEF mode iterator.
7592
7593 2017-07-10 Martin Sebor <msebor@redhat.com>
7594
7595 PR tree-optimization/80397
7596 * gimple-ssa-sprintf.c (format_integer): Use INTEGRAL_TYPE_P()
7597 instead of testing for equality to INTEGER_TYPE.
7598
7599 2017-07-10 Vineet Gupta <vgupta@synopsys.com>
7600
7601 * config.gcc: Remove uclibc from arc target spec.
7602
7603 2017-07-10 Claudiu Zissulescu <claziss@synopsys.com>
7604
7605 * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Define.
7606
7607 2017-07-07 Jan Hubicka <hubicka@ucw.cz>
7608
7609 PR lto/80838
7610 * lto-wrapper.c (remove_option): New function.
7611 (merge_and_complain): Merge PIC/PIE options more realistically.
7612
7613 2017-07-10 Georg-Johann Lay <avr@gjlay.de>
7614
7615 Better ISR prologues by supporting GASes __gcc_isr pseudo insn.
7616
7617 PR target/20296
7618 PR target/81268
7619 * configure.ac [target=avr]: Add GAS check for -mgcc-isr.
7620 (HAVE_AS_AVR_MGCCISR_OPTION): If so, AC_DEFINE it.
7621 * config.in: Regenerate.
7622 * configure: Regenerate.
7623 * doc/extend.texi (AVR Function Attributes) <no_gccisr>: Document it.
7624 * doc/invoke.texi (AVR Options) <-mgas-isr-prologues>: Document it.
7625 * config/avr/avr.opt (-mgas-isr-prologues): New option and...
7626 (TARGET_GASISR_PROLOGUES): ...target mask.
7627 * common/config/avr/avr-common.c
7628 (avr_option_optimization_table) [OPT_LEVELS_1_PLUS_NOT_DEBUG]:
7629 Set -mgas-isr-prologues.
7630 * config/avr/avr-passes.def (avr_pass_pre_proep): Add
7631 INSERT_PASS_BEFORE for it.
7632 * config/avr/avr-protos.h (make_avr_pass_pre_proep): New proto.
7633 * config/avr/avr.c (avr_option_override)
7634 [!HAVE_AS_AVR_MGCCISR_OPTION]: Unset TARGET_GASISR_PROLOGUES.
7635 (avr_no_gccisr_function_p, avr_hregs_split_reg): New static functions.
7636 (avr_attribute_table) <no_gccisr>: Add new function attribute.
7637 (avr_set_current_function) <is_no_gccisr>: Init machine field.
7638 (avr_pass_data_pre_proep, avr_pass_pre_proep): New pass data
7639 and rtl_opt_pass.
7640 (make_avr_pass_pre_proep): New function.
7641 (emit_push_sfr) <treg>: Add argument to function and use it
7642 instead of TMP_REG.
7643 (avr_expand_prologue) [machine->gasisr.maybe]: Emit gasisr insn
7644 and set machine->gasisr.yes.
7645 (avr_expand_epilogue) [machine->gasisr.yes]: Similar.
7646 (avr_asm_function_end_prologue) [machine->gasisr.yes]: Add
7647 __gcc_isr.n_pushed to .L__stack_usage.
7648 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define to...
7649 (avr_asm_final_postscan_insn): ...this new static function.
7650 * config/avr/avr.h (machine_function)
7651 <is_no_gccisr, use_L__stack_usage>: New fields.
7652 <gasisr, gasisr.yes, gasisr.maybe, gasisr.regno>: New fields.
7653 * config/avr/avr.md (UNSPECV_GASISR): Add unspecv enum.
7654 (GASISR_Prologue, GASISR_Epilogue, GASISR_Done): New define_constants.
7655 (gasisr, *gasisr): New expander and insn.
7656 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
7657 [HAVE_AS_AVR_MGCCISR_OPTION]: Print asm_gccisr spec.
7658 * config/avr/specs.h (ASM_SPEC) <asm_gccisr>: Add sub spec.
7659
7660 2017-07-10 Richard Earnshaw <rearnsha@arm.com>
7661
7662 * config/arm/parsecpu.awk (gen_comm_data): Do not escape single quotes
7663 in quoted strings.
7664
7665 2017-07-10 Georg-Johann Lay <avr@gjlay.de>
7666
7667 Move jump-tables out of .text again.
7668
7669 PR target/81075
7670 * config/avr/avr.c (ASM_OUTPUT_ADDR_VEC_ELT): Remove function.
7671 (ASM_OUTPUT_ADDR_VEC): New function.
7672 (avr_adjust_insn_length) [JUMP_TABLE_DATA_P]: Return 0.
7673 (avr_final_prescan_insn) [avr_log.insn_addresses]: Dump
7674 INSN_ADDRESSes as asm comment.
7675 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION): Adjust comment.
7676 (ASM_OUTPUT_ADDR_VEC_ELT): Remove define.
7677 (ASM_OUTPUT_ADDR_VEC): Define to avr_output_addr_vec.
7678 * config/avr/avr.md (*tablejump): Adjust comment.
7679 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
7680 * config/avr/avr-log.c (avr_log_set_avr_log) <insn_addresses>:
7681 New detail.
7682 * config/avr/avr-protos.h (avr_output_addr_vec_elt): Remove proto.
7683 (avr_output_addr_vec): New proto.
7684 (avr_log_t) <insn_addresses>: New field.
7685
7686 2017-07-09 H.J. Lu <hongjiu.lu@intel.com>
7687
7688 PR target/81313
7689 * config/i386/i386.c (ix86_function_arg_advance): Set
7690 outgoing_args_on_stack to true if there are outgoing arguments
7691 on stack.
7692 (ix86_function_arg): Likewise.
7693 (ix86_get_drap_rtx): Use DRAP only if there are outgoing
7694 arguments on stack and ACCUMULATE_OUTGOING_ARGS is false.
7695 * config/i386/i386.h (machine_function): Add
7696 outgoing_args_on_stack.
7697
7698 2017-07-09 Krister Walfridsson <krister.walfridsson@gmail.com>
7699
7700 * config.gcc (*-*-netbsd*): Remove check for NetBSD versions not
7701 supporting pthreds.
7702 * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always enable pthreads.
7703
7704 2017-07-08 Richard Sandiford <richard.sandiford@linaro.org>
7705
7706 * Makefile.in (HOOKS_H, RTL_BASE_H, FUNCTION_H, EXPR_H, REGS_H)
7707 (REAL_H): Remove $(MACHMODE_H).
7708 (FIXED_VALUE_H, TREE_CORE_H, CFGLOOP_H): Remove $(MACHMODE_H) and
7709 double-int.h.
7710 (CORETYPES_H): Add signop.h, wide-int.h, wide-int-print.h,
7711 $(MACHMODE_H) and double-int.h.
7712 (build/min-insn-modes.o): Depend on $(CORETYPES_H) rather than
7713 $(MACHMODE_H).
7714 (gengtype-state.o, gengtype.o, build/gengtype.o): Don't depend on
7715 double-int.h.
7716
7717 2017-07-07 Andrew Pinski <apinski@cavium.com>
7718
7719 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Check
7720 prev_set and curr_set for AARCH64_FUSE_ALU_BRANCH.
7721
7722 2017-07-07 Michael Meissner <meissner@linux.vnet.ibm.com>
7723
7724 * config/rs6000/rs6000.c (rs6000_get_function_versions_dispatcher):
7725 Add warning if GCC was not configured to link against a GLIBC that
7726 exports the hardware capability bits.
7727 (make_resolver_func): Make resolver function private and not a
7728 COMDAT function. Create the name with clone_function_name instead
7729 of make_unique_name.
7730
7731 PR target/81348
7732 * config/rs6000/rs6000.md (HI sign_extend splitter): Use the
7733 correct operand in doing the split.
7734
7735 2017-07-07 Carl Love <cel@us.ibm.com>
7736
7737 * config/rs6000/rs6000-c: Add support for built-in function
7738 vector unsigned short vec_pack_to_short_fp32 (vector float,
7739 vector float).
7740 * config/rs6000/rs6000-builtin.def (CONVERT_4F32_8I16): Add
7741 BU_P9V_AV_2 and BU_P9V_OVERLOAD_2 definitions.
7742 * config/rs6000/altivec.h (vec_pack_to_short_fp32): Add define.
7743 * config/rs6000/altivec.md(UNSPEC_CONVERT_4F32_8I16): Add UNSPEC.
7744 (convert_4f32_8i16): Add define_expand.
7745 * doc/extend.texi: Update the built-in documentation file for the
7746 new built-in function.
7747
7748 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
7749
7750 * config/sparc/m8.md: New file.
7751 * config/sparc/sparc.md: Include m8.md.
7752
7753 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
7754
7755 * config/sparc/sparc.opt: New option -mvis4b.
7756 * config/sparc/sparc.c (dump_target_flag_bits): Handle MASK_VIS4B.
7757 (sparc_option_override): Handle VIS4B.
7758 (enum sparc_builtins): Define
7759 SPARC_BUILTIN_DICTUNPACK{8,16,32},
7760 SPARC_BUILTIN_FPCMP{LE,GT,EQ,NE}{8,16,32}SHL,
7761 SPARC_BUILTIN_FPCMPU{LE,GT}{8,16,32}SHL,
7762 SPARC_BUILTIN_FPCMPDE{8,16,32}SHL and
7763 SPARC_BUILTIN_FPCMPUR{8,16,32}SHL.
7764 (check_constant_argument): New function.
7765 (sparc_vis_init_builtins): Define builtins
7766 __builtin_vis_dictunpack{8,16,32},
7767 __builtin_vis_fpcmp{le,gt,eq,ne}{8,16,32}shl,
7768 __builtin_vis_fpcmpu{le,gt}{8,16,32}shl,
7769 __builtin_vis_fpcmpde{8,16,32}shl and
7770 __builtin_vis_fpcmpur{8,16,32}shl.
7771 (sparc_expand_builtin): Check that the constant operands to
7772 __builtin_vis_fpcmp*shl and _builtin_vis_dictunpack* are indeed
7773 constant and in range.
7774 * config/sparc/sparc-c.c (sparc_target_macros): Handle
7775 TARGET_VIS4B.
7776 * config/sparc/sparc.h (SPARC_IMM2_P): Define.
7777 (SPARC_IMM5_P): Likewise.
7778 * config/sparc/sparc.md (cpu_feature): Add new feagure "vis4b".
7779 (enabled): Handle vis4b.
7780 (UNSPEC_DICTUNPACK): New unspec.
7781 (UNSPEC_FPCMPSHL): Likewise.
7782 (UNSPEC_FPUCMPSHL): Likewise.
7783 (UNSPEC_FPCMPDESHL): Likewise.
7784 (UNSPEC_FPCMPURSHL): Likewise.
7785 (cpu_feature): New CPU feature `vis4b'.
7786 (dictunpack{8,16,32}): New insns.
7787 (FPCSMODE): New mode iterator.
7788 (fpcscond): New code iterator.
7789 (fpcsucond): Likewise.
7790 (fpcmp{le,gt,eq,ne}{8,16,32}{si,di}shl): New insns.
7791 (fpcmpu{le,gt}{8,16,32}{si,di}shl): Likewise.
7792 (fpcmpde{8,16,32}{si,di}shl): Likewise.
7793 (fpcmpur{8,16,32}{si,di}shl): Likewise.
7794 * config/sparc/constraints.md: Define constraints `q' for unsigned
7795 2-bit integer constants and `t' for unsigned 5-bit integer
7796 constants.
7797 * config/sparc/predicates.md (imm5_operand_dictunpack8): New
7798 predicate.
7799 (imm5_operand_dictunpack16): Likewise.
7800 (imm5_operand_dictunpack32): Likewise.
7801 (imm2_operand): Likewise.
7802 * doc/invoke.texi (SPARC Options): Document -mvis4b.
7803 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
7804 ditunpack* and fpcmp*shl builtins.
7805
7806 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
7807
7808 * config.gcc: Handle m8 in --with-{cpu,tune} options.
7809 * config.in: Add HAVE_AS_SPARC6 define.
7810 * config/sparc/driver-sparc.c (cpu_names): Add entry for the SPARC
7811 M8.
7812 * config/sparc/sol2.h (CPP_CPU64_DEFAULT_SPEC): Define for
7813 TARGET_CPU_m8.
7814 (ASM_CPU32_DEFAUILT_SPEC): Likewise.
7815 (CPP_CPU_SPEC): Handle m8.
7816 (ASM_CPU_SPEC): Likewise.
7817 * config/sparc/sparc-opts.h (enum processor_type): Add
7818 PROCESSOR_M8.
7819 * config/sparc/sparc.c (m8_costs): New struct.
7820 (sparc_option_override): Handle TARGET_CPU_m8.
7821 (sparc32_initialize_trampoline): Likewise.
7822 (sparc64_initialize_trampoline): Likewise.
7823 (sparc_issue_rate): Likewise.
7824 (sparc_register_move_cost): Likewise.
7825 * config/sparc/sparc.h (TARGET_CPU_m8): Define.
7826 (CPP_CPU64_DEFAULT_SPEC): Define for M8.
7827 (ASM_CPU64_DEFAULT_SPEC): Likewise.
7828 (CPP_CPU_SPEC): Handle M8.
7829 (ASM_CPU_SPEC): Likewise.
7830 (AS_M8_FLAG): Define.
7831 * config/sparc/sparc.md: Add m8 to the cpu attribute.
7832 * config/sparc/sparc.opt: New option -mcpu=m8 for sparc targets.
7833 * configure.ac (HAVE_AS_SPARC6): Check for assembler support for
7834 M8 instructions.
7835 * configure: Regenerate.
7836 * doc/invoke.texi (SPARC Options): Document -mcpu=m8 and
7837 -mtune=m8.
7838
7839 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
7840
7841 * config/sparc/niagara7.md: Rework the DFA scheduler to use insn
7842 subtypes.
7843 * config/sparc/sparc.md: Remove the `v3pipe' insn attribute.
7844 ("*movdi_insn_sp32"): Do not set v3pipe.
7845 ("*movsi_insn"): Likewise.
7846 ("*movdi_insn_sp64"): Likewise.
7847 ("*movsf_insn"): Likewise.
7848 ("*movdf_insn_sp32"): Likewise.
7849 ("*movdf_insn_sp64"): Likewise.
7850 ("*zero_extendsidi2_insn_sp64"): Likewise.
7851 ("*sign_extendsidi2_insn"): Likewise.
7852 ("*mov<VM32:mode>_insn"): Likewise.
7853 ("*mov<VM64:mode>_insn_sp64"): Likewise.
7854 ("*mov<VM64:mode>_insn_sp32"): Likewise.
7855 ("<plusminus_insn><VADDSUB:mode>3"): Likewise.
7856 ("<vlop:code><VL:mode>3"): Likewise.
7857 ("*not_<vlop:code><VL:mode>3"): Likewise.
7858 ("*nand<VL:mode>_vis"): Likewise.
7859 ("*<vlnotop:code>_not1<VL:mode>_vis"): Likewise.
7860 ("*<vlnotop:code>_not2<VL:mode>_vis"): Likewise.
7861 ("one_cmpl<VL:mode>2"): Likewise.
7862 ("faligndata<VM64:mode>_vis"): Likewise.
7863 ("alignaddrsi_vis"): Likewise.
7864 ("alignaddrdi_vis"): Likweise.
7865 ("alignaddrlsi_vis"): Likewise.
7866 ("alignaddrldi_vis"): Likewise.
7867 ("fcmp<gcond:code><GCM:gcm_name><P:mode>_vis"): Likewise.
7868 ("bmaskdi_vis"): Likewise.
7869 ("bmasksi_vis"): Likewise.
7870 ("bshuffle<VM64:mode>_vis"): Likewise.
7871 ("cmask8<P:mode>_vis"): Likewise.
7872 ("cmask16<P:mode>_vis"): Likewise.
7873 ("cmask32<P:mode>_vis"): Likewise.
7874 ("pdistn<P:mode>_vis"): Likewise.
7875 ("<vis3_addsub_ss_patname><VASS:mode>3"): Likewise.
7876
7877 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
7878
7879 * config/sparc/sparc.md ("subtype"): New insn attribute.
7880 ("*wrgsr_sp64"): Set insn subtype.
7881 ("*rdgsr_sp64"): Likewise.
7882 ("alignaddrsi_vis"): Likewise.
7883 ("alignaddrdi_vis"): Likewise.
7884 ("alignaddrlsi_vis"): Likewise.
7885 ("alignaddrldi_vis"): Likewise.
7886 ("<plusminus_insn><VADDSUB:mode>3"): Likewise.
7887 ("fexpand_vis"): Likewise.
7888 ("fpmerge_vis"): Likewise.
7889 ("faligndata<VM64:mode>_vis"): Likewise.
7890 ("bshuffle<VM64:mode>_vis"): Likewise.
7891 ("cmask8<P:mode>_vis"): Likewise.
7892 ("cmask16<P:mode>_vis"): Likewise.
7893 ("cmask32<P:mode>_vis"): Likewise.
7894 ("fchksm16_vis"): Likewise.
7895 ("v<vis3_shift_patname><GCM:mode>3"): Likewise.
7896 ("fmean16_vis"): Likewise.
7897 ("fp<plusminus_insn>64_vis"): Likewise.
7898 ("<plusminus_insn>v8qi3"): Likewise.
7899 ("<vis3_addsub_ss_patname><VASS:mode>3"): Likewise.
7900 ("<vis4_minmax_patname><VMMAX:mode>3"): Likewise.
7901 ("<vis4_uminmax_patname><VMMAX:mode>3"): Likewise.
7902 ("<vis3_addsub_ss_patname>v8qi3"): Likewise.
7903 ("<vis4_addsub_us_patname><VAUS:mode>3"): Likewise.
7904 ("*movqi_insn"): Likewise.
7905 ("*movhi_insn"): Likewise.
7906 ("*movsi_insn"): Likewise.
7907 ("movsi_pic_gotdata_op"): Likewise.
7908 ("*movdi_insn_sp32"): Likewise.
7909 ("*movdi_insn_sp64"): Likewise.
7910 ("movdi_pic_gotdata_op"): Likewise.
7911 ("*movsf_insn"): Likewise.
7912 ("*movdf_insn_sp32"): Likewise.
7913 ("*movdf_insn_sp64"): Likewise.
7914 ("*zero_extendhisi2_insn"): Likewise.
7915 ("*zero_extendqihi2_insn"): Likewise.
7916 ("*zero_extendqisi2_insn"): Likewise.
7917 ("*zero_extendqidi2_insn"): Likewise.
7918 ("*zero_extendhidi2_insn"): Likewise.
7919 ("*zero_extendsidi2_insn_sp64"): Likewise.
7920 ("ldfsr"): Likewise.
7921 ("prefetch_64"): Likewise.
7922 ("prefetch_32"): Likewise.
7923 ("tie_ld32"): Likewise.
7924 ("tie_ld64"): Likewise.
7925 ("*tldo_ldub_sp32"): Likewise.
7926 ("*tldo_ldub1_sp32"): Likewise.
7927 ("*tldo_ldub2_sp32"): Likewise.
7928 ("*tldo_ldub_sp64"): Likewise.
7929 ("*tldo_ldub1_sp64"): Likewise.
7930 ("*tldo_ldub2_sp64"): Likewise.
7931 ("*tldo_ldub3_sp64"): Likewise.
7932 ("*tldo_lduh_sp32"): Likewise.
7933 ("*tldo_lduh1_sp32"): Likewise.
7934 ("*tldo_lduh_sp64"): Likewise.
7935 ("*tldo_lduh1_sp64"): Likewise.
7936 ("*tldo_lduh2_sp64"): Likewise.
7937 ("*tldo_lduw_sp32"): Likewise.
7938 ("*tldo_lduw_sp64"): Likewise.
7939 ("*tldo_lduw1_sp64"): Likewise.
7940 ("*tldo_ldx_sp64"): Likewise.
7941 ("*mov<VM32:mode>_insn"): Likewise.
7942 ("*mov<VM64:mode>_insn_sp64"): Likewise.
7943 ("*mov<VM64:mode>_insn_sp32"): Likewise.
7944
7945 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
7946
7947 * config/sparc/sparc.md ("type"): New insn type viscmp.
7948 ("fcmp<gcond:code><GCM:gcm_name><P:mode>_vis"): Set insn type to
7949 viscmp.
7950 ("fpcmp<gcond:code>8<P:mode>_vis"): Likewise.
7951 ("fucmp<gcond:code>8<P:mode>_vis"): Likewise.
7952 ("fpcmpu<gcond:code><GCM:gcm_name><P:mode>_vis"): Likewise.
7953 * config/sparc/niagara7.md ("n7_vis_logical_v3pipe"): Handle
7954 viscmp.
7955 ("n7_vis_logical_11cycle"): Likewise.
7956 * config/sparc/niagara4.md ("n4_vis_logical"): Likewise.
7957 * config/sparc/niagara2.md ("niag3_vis": Likewise.
7958 * config/sparc/niagara.md ("niag_vis"): Likewise.
7959 * config/sparc/ultra3.md ("us3_fga"): Likewise.
7960 * config/sparc/ultra1_2.md ("us1_fga_double"): Likewise.
7961
7962 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
7963
7964 * config/sparc/sparc.md: New instruction type `bmask'.
7965 (bmaskdi_vis): Use the `bmask' type.
7966 (bmasksi_vis): Likewise.
7967 * config/sparc/ultra3.md (us3_array): Likewise.
7968 * config/sparc/niagara7.md (n7_array): Likewise.
7969 * config/sparc/niagara4.md (n4_array): Likewise.
7970 * config/sparc/niagara2.md (niag2_vis): Likewise.
7971 (niag3_vis): Likewise.
7972 * config/sparc/niagara.md (niag_vis): Likewise.
7973
7974 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
7975
7976 * ipa-comdats.c: Remove optimize check from gate.
7977 * ipa-fnsummary.c (ipa_fn_summary_generate): do not generate summary
7978 for functions not optimized.
7979 (ipa_fn_summary_read): Skip optimize check.
7980 (ipa_fn_summary_write): Likewise.
7981 * ipa-inline-analysis.c (do_estimate_growth_1): Check that caller
7982 is optimized.
7983 * ipa-inline.c (can_inline_edge_p): Not optimized functions are
7984 uninlinable.
7985 (can_inline_edge_p): Check flag_pcc_struct_return for match.
7986 (check_callers): Give up on caller which is not optimized.
7987 (inline_small_functions): Likewise.
7988 (ipa_inline): Do not give up when not optimizing.
7989 * ipa-visbility.c (function_and_variable_visibility): Do not optimize
7990 away unoptimizes cdtors.
7991 (whole_program_function_and_variable_visibility): Do
7992 ipa_discover_readonly_nonaddressable_vars in LTO mode.
7993 * ipa.c (process_references): Do not check optimize.
7994 (symbol_table::remove_unreachable_nodes): Update optimize check.
7995 (set_writeonly_bit): Update optimize check.
7996 (pass_ipa_cdtor_merge::gate): Do not check optimize.
7997 (pass_ipa_single_use::gate): Remove.
7998
7999 2017-07-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8000
8001 * config/rs6000/rs6000.c (union_defs, union_uses, insn_is_load_p,
8002 insn_is_store_p, insn_is_swap_p, const_load_sequence_p, v2df_reduction_p,
8003 rtx_is_swappable_p, insn_is_swappable_p, chain_contains_only_swaps,
8004 mark_swaps_for_removal, swap_const_vector_halves, adjust_subreg_index,
8005 permute_load, permute_store, adjust_extract, adjust_splat,
8006 adjust_xxpermdi, adjust_concat, adjust_vperm, handle_special_swappables,
8007 replace_swap_with_copy, dump_swap_insn_table,
8008 alignment_with_canonical_addr, alignment_mask, find_alignment_op,
8009 recombine_lvx_pattern, recombine_stvx_pattern,
8010 recombine_lvx_stvx_patterns, rs6000_analyze_swaps,
8011 make_pass_analyze_swaps): Move all code related to p8 swap optimizations
8012 to file rs6000-p8swap.c.
8013 * config/rs6000/rs6000-p8swap.c: New file.
8014 * config/rs6000/t-rs6000: Add rule to build rs6000-p8swap.o.
8015 * config.gcc: Add rs6000-p8swap.o to extra_objs for powerpc*-*-*
8016 and rs6000*-*-* targets.
8017
8018 2017-07-06 David Malcolm <dmalcolm@redhat.com>
8019
8020 * Makefile.in (selftest): Remove dependency on s-selftest-c++.
8021
8022 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
8023
8024 * lto-wrapper.c (merge_and_complain): Do not merge
8025 fexceptions, fnon_call_exceptions, ftrapv, ffp_contract_, fmath_errno,
8026 fsigned_zeros, ftrapping_math, fwrapv.
8027 (append_compiler_options): Do not track these options.
8028 (append_linker_options): Likewie
8029
8030 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
8031
8032 * cgraphunit.c (cgraph_node::finalize_function): When
8033 !flag_toplevel_reorde set no_reorder flag.
8034 (varpool_node::finalize_decl): Likewise.
8035 (symbol_table::compile): Drop no toplevel reorder path.
8036
8037 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
8038
8039 * bb-reorder.c (better_edge_p): Do not build traces across abnormal/eh
8040 edges; zero probability is not better than uninitialized.
8041
8042 2017-07-06 Maxim Ostapenko <m.ostapenko@samsung.com>
8043
8044 * asan.h (asan_sanitize_allocas_p): Declare.
8045 * asan.c (asan_sanitize_allocas_p): New function.
8046 (handle_builtin_stack_restore): Bail out if !asan_sanitize_allocas_p.
8047 (handle_builtin_alloca): Likewise.
8048 * cfgexpand.c (expand_used_vars): Do not add allocas unpoisoning stuff
8049 if !asan_sanitize_allocas_p.
8050 * params.def (asan-instrument-allocas): Add new option.
8051 * params.h (ASAN_PROTECT_ALLOCAS): Define.
8052 * opts.c (common_handle_option): Disable allocas sanitization for
8053 KASan by default.
8054
8055 2017-07-06 Maxim Ostapenko <m.ostapenko@samsung.com>
8056
8057 * asan.c: Include gimple-fold.h.
8058 (get_last_alloca_addr): New function.
8059 (handle_builtin_stackrestore): Likewise.
8060 (handle_builtin_alloca): Likewise.
8061 (asan_emit_allocas_unpoison): Likewise.
8062 (get_mem_refs_of_builtin_call): Add new parameter, remove const
8063 quallifier from first paramerer. Handle BUILT_IN_ALLOCA,
8064 BUILT_IN_ALLOCA_WITH_ALIGN and BUILT_IN_STACK_RESTORE builtins.
8065 (instrument_builtin_call): Pass gimple iterator to
8066 get_mem_refs_of_builtin_call.
8067 (last_alloca_addr): New global.
8068 * asan.h (asan_emit_allocas_unpoison): Declare.
8069 * builtins.c (expand_asan_emit_allocas_unpoison): New function.
8070 (expand_builtin): Handle BUILT_IN_ASAN_ALLOCAS_UNPOISON.
8071 * cfgexpand.c (expand_used_vars): Call asan_emit_allocas_unpoison
8072 if function calls alloca.
8073 * gimple-fold.c (replace_call_with_value): Remove static keyword.
8074 * gimple-fold.h (replace_call_with_value): Declare.
8075 * internal-fn.c: Include asan.h.
8076 * sanitizer.def (BUILT_IN_ASAN_ALLOCA_POISON,
8077 BUILT_IN_ASAN_ALLOCAS_UNPOISON): New builtins.
8078
8079 2017-07-06 David Malcolm <dmalcolm@redhat.com>
8080
8081 * Makefile.in (SELFTEST_FLAGS): Drop "-x c", moving it to...
8082 (C_SELFTEST_FLAGS): New.
8083 (CPP_SELFTEST_FLAGS): New.
8084 (SELFTEST_DEPS): New, from deps of s-selftest.
8085 (C_SELFTEST_DEPS): New, from deps of s-selftest.
8086 (CPP_SELFTEST_DEPS): New.
8087 (selftest): Add dependency on s-selftest-c++.
8088 (s-selftest): Rename to...
8089 (s-selftest-c): ...this, moving deps to SELFTEST_DEPS
8090 and C_SELFTEST_DEPS, and using C_SELFTEST_FLAGS rather
8091 than SELFTEST_FLAGS.
8092 (selftest-gdb): Rename to...
8093 (selftest-c-gdb): ...this, using C_SELFTEST_DEPS and
8094 C_SELFTEST_FLAGS.
8095 (selftest-gdb): Reintroduce as an alias for selftest-c-gdb.
8096 (selftest-valgrind): Rename to...
8097 (selftest-c-valgrind): ...this, using C_SELFTEST_DEPS and
8098 C_SELFTEST_FLAGS.
8099 (selftest-valgrind): Reintroduce as an alias for
8100 selftest-c-valgrind.
8101 (s-selftest-c++): New.
8102 (selftest-c++-gdb): New.
8103 (selftest-c++-valgrind): New.
8104
8105 2017-07-06 Olivier Hainque <hainque@adacore.com>
8106
8107 * gcc.c (process_command): When deciding if undefined variables
8108 should be ignored when processing specs, accept "gcc -v" as well.
8109
8110 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
8111
8112 * auto-profile.c (afdo_set_bb_count, afdo_propagate_edge,
8113 afdo_annotate_cfg): Set counts/probabilities as determined by afdo.
8114
8115 2017-07-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8116
8117 * config/arm/arm-cpus.in (armv8-r): Add new entry.
8118 * config/arm/arm-isa.h (ISA_ARMv8r): Define macro.
8119 * config/arm/arm-tables.opt: Regenerate.
8120 * config/arm/arm.h (enum base_architecture): Add BASE_ARCH_8R
8121 enumerator.
8122 * doc/invoke.texi: Mention -march=armv8-r and its extensions.
8123
8124 2017-07-06 Carl Love <cel@us.ibm.com>
8125
8126 * ChangeLog: Clean up from mid air collision
8127
8128 2017-07-06 Carl Love <cel@us.ibm.com>
8129
8130 * config/rs6000/rs6000-c.c: Add support for built-in functions
8131 vector signed int vec_subc (vector signed int, vector signed int);
8132 vector signed __int128 vec_subc (vector signed __int128,
8133 vector signed __int128);
8134 vector unsigned __int128 vec_subc (vector unsigned __int128,
8135 vector unsigned __int128);
8136 vector signed int vec_sube (vector signed int, vector signed int,
8137 vector signed int);
8138 vector unsigned int vec_sube (vector unsigned int,
8139 vector unsigned int,
8140 vector unsigned int);
8141 vector signed __int128 vec_sube (vector signed __int128,
8142 vector signed __int128,
8143 vector signed__int128);
8144 vector unsigned __int128 vec_sube (vector unsigned __int128,
8145 vector unsigned __int128,
8146 vector unsigned __int128);
8147 vector signed int vec_subec (vector signed int, vector signed int,
8148 vector signed int);
8149 vector unsigned int vec_subec (vector unsigned int,
8150 vector unsigned int,
8151 vector unsigned int);
8152 vector signed __int128 vec_subec (vector signed __int128,
8153 vector signed __int128,
8154 vector signed__int128);
8155 vector unsigned __int128 vec_subec (vector unsigned __int128,
8156 vector unsigned __int128,
8157 vector unsigned __int128);
8158 * config/rs6000/rs6000.c (ALTIVEC_BUILTIN_VEC_SUBE,
8159 ALTIVEC_BUILTIN_VEC_SUBEC): Add ef_builtins.
8160 * config/rs6000/rs6000-builtin.def (SUBE, SUBEC): Add
8161 BU_ALTIVEC_OVERLOAD_X definitions.
8162 * config/rs6000/altivec.h (vec_sube, vec_subec): Add builtin defines.
8163 * doc/extend.texi: Update the built-in documentation file for the new
8164 built-in functions.
8165
8166 2017-07-06 David Malcolm <dmalcolm@redhat.com>
8167
8168 PR c++/79300
8169 * diagnostic-show-locus.c (layout::layout): Use start and finish
8170 spelling location for the start and finish of each range.
8171 * genmatch.c (linemap_client_expand_location_to_spelling_point):
8172 Add unused aspect param.
8173 * input.c (expand_location_1): Add "aspect" param, and use it
8174 to access the correct part of the location.
8175 (expand_location): Pass LOCATION_ASPECT_CARET to new param of
8176 expand_location_1.
8177 (expand_location_to_spelling_point): Likewise.
8178 (linemap_client_expand_location_to_spelling_point): Add "aspect"
8179 param, and pass it to expand_location_1.
8180
8181 2017-07-06 Sebastian Peryt <sebastian.peryt@intel.com>
8182
8183 * config/i386/avx512fintrin.h (_mm_mask_getexp_round_ss,
8184 _mm_maskz_getexp_round_ss, _mm_mask_getexp_round_sd,
8185 _mm_maskz_getexp_round_sd, _mm_mask_getmant_round_sd,
8186 _mm_maskz_getmant_round_sd, _mm_mask_getmant_round_ss,
8187 _mm_maskz_getmant_round_ss, _mm_mask_getexp_ss, _mm_maskz_getexp_ss,
8188 _mm_mask_getexp_sd, _mm_maskz_getexp_sd, _mm_mask_getmant_sd,
8189 _mm_maskz_getmant_sd, _mm_mask_getmant_ss,
8190 _mm_maskz_getmant_ss): New intrinsics.
8191 (__builtin_ia32_getexpss128_mask): Changed to ...
8192 __builtin_ia32_getexpss128_round ... this.
8193 (__builtin_ia32_getexpsd128_mask): Changed to ...
8194 __builtin_ia32_getexpsd128_round ... this.
8195 * config/i386/i386-builtin-types.def
8196 ((V2DF, V2DF, V2DF, INT, V2DF, UQI, INT),
8197 (V4SF, V4SF, V4SF, INT, V4SF, UQI, INT)): New function type aliases.
8198 * config/i386/i386-builtin.def (__builtin_ia32_getexpsd_mask_round,
8199 __builtin_ia32_getexpss_mask_round, __builtin_ia32_getmantsd_mask_round,
8200 __builtin_ia32_getmantss_mask_round): New builtins.
8201 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_UQI_INT,
8202 V4SF_FTYPE_V4SF_V4SF_INT_V4SF_UQI_INT): Handle new types.
8203 (CODE_FOR_avx512f_vgetmantv2df_mask_round,
8204 CODE_FOR_avx512f_vgetmantv4sf_mask_round): New cases.
8205 * config/i386/sse.md
8206 (avx512f_sgetexp<mode><round_saeonly_name>): Changed to ...
8207 avx512f_sgetexp<mode><mask_scalar_name>
8208 <round_saeonly_scalar_name> ... this.
8209 (vgetexp<ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|
8210 %0, %1, %2<round_saeonly_op3>}): Changed to ...
8211 vgetexp<ssescalarmodesuffix>
8212 \t{<round_saeonly_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
8213 %0<mask_scalar_operand3>, %1, %2<round_saeonly_scalar_mask_op3>} ... this.
8214 (avx512f_vgetmant<mode><round_saeonly_name>): Changed to ...
8215 avx512f_vgetmant<mode><mask_scalar_name>
8216 <round_saeonly_scalar_name> ... this.
8217 (vgetmant<ssescalarmodesuffix>\t{%3, <round_saeonly_op4>%2, %1, %0|
8218 %0, %1, %2<round_saeonly_op4>, %3}): Changed to ...
8219 vgetmant<ssescalarmodesuffix>
8220 \t{%3, <round_saeonly_scalar_mask_op4>%2, %1, %0<mask_scalar_operand4>|
8221 %0<mask_scalar_operand4>, %1, %2
8222 <round_saeonly_scalar_mask_op4>, %3} ... this.
8223 * config/i386/subst.md (mask_scalar_operand4,
8224 round_saeonly_scalar_mask_operand4, round_saeonly_scalar_mask_op4,
8225 round_saeonly_scalar_nimm_predicate): New subst attributes.
8226
8227 2017-07-06 Julia Koval <julia.koval@intel.com>
8228
8229 * config/i386/i386.c (ix86_erase_embedded_rounding):
8230 Remove code for old rounding pattern.
8231
8232 2017-07-06 Richard Earnshaw <rearnsha@arm.com>
8233
8234 * config/arm/t-arm (GTM_H): Add arm-cpu.h.
8235
8236 2017-07-06 Christophe Lyon <christophe.lyon@linaro.org>
8237
8238 * doc/sourcebuild.texi (Test Directives, Variants of
8239 dg-require-support): Add documentation for dg-require-stack-check.
8240
8241 2017-07-05 Sebastian Peryt <sebastian.peryt@intel.com>
8242
8243 * config/i386/subst.md (mask_scalar, round_scalar,
8244 round_saeonly_scalar): New meta-templates.
8245 (mask_scalar_name, mask_scalar_operand3, round_scalar_name,
8246 round_scalar_mask_operand3, round_scalar_mask_op3,
8247 round_scalar_constraint, round_scalar_prefix, round_saeonly_scalar_name,
8248 round_saeonly_scalar_mask_operand3, round_saeonly_scalar_mask_op3,
8249 round_saeonly_scalar_constraint,
8250 round_saeonly_scalar_prefix): New subst attribute.
8251 * config/i386/sse.md
8252 (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): Renamed to ...
8253 <sse>_vm<plusminus_insn><mode>3<mask_scalar_name>
8254 <round_scalar_name> ... this.
8255 (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): Renamed to ...
8256 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name>
8257 <round_scalar_name> ... this.
8258 (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): Renamed to ...
8259 <sse>_vm<code><mode>3<mask_scalar_name>
8260 <round_saeonly_scalar_name> ... this.
8261 (v<plusminus_mnemonic><ssescalarmodesuffix>
8262 \t{<round_mask_op3>%2, %1, %0<mask_operand3>|
8263 %0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}): Changed to ...
8264 v<plusminus_mnemonic><ssescalarmodesuffix>
8265 \t{<round_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
8266 %0<mask_scalar_operand3>, %1, %<iptr>2<round_scalar_mask_op3>} ... this.
8267 (v<multdiv_mnemonic><ssescalarmodesuffix>
8268 \t{<round_mask_op3>%2, %1, %0<mask_operand3>|
8269 %0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}): Changed to ...
8270 v<multdiv_mnemonic><ssescalarmodesuffix>
8271 \t{<round_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
8272 %0<mask_scalar_operand3>, %1, %<iptr>2<round_scalar_mask_op3>} ... this.
8273 (v<maxmin_float><ssescalarmodesuffix>
8274 \t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|
8275 %0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}): Changed to ...
8276 v<maxmin_float><ssescalarmodesuffix>
8277 \t{<round_saeonly_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
8278 %0<mask_scalar_operand3>, %1, %<iptr>2
8279 <round_saeonly_scalar_mask_op3>} ... this.
8280
8281 2017-07-05 Richard Earnshaw <rearnsha@arm.com>
8282
8283 * config/arm/arm.c (arm_fixed_condition_code_regs): New function.
8284 (TARGET_FIXED_CONDITION_CODE_REGS): Redefine.
8285
8286 2017-07-05 Richard Sandiford <richard.sandiford@linaro.org>
8287 Alan Hayward <alan.hayward@arm.com>
8288 David Sherwood <david.sherwood@arm.com>
8289
8290 * combine.c (simplify_if_then_else): Remove "enum" before
8291 "machine_mode".
8292 * compare-elim.c (can_eliminate_compare): Likewise.
8293 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_std_type):
8294 Likewise.
8295 (aarch64_lookup_simd_builtin_type): Likewise.
8296 (aarch64_simd_builtin_type): Likewise.
8297 (aarch64_init_simd_builtin_types): Likewise.
8298 (aarch64_simd_expand_args): Likewise.
8299 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist):
8300 Likewise.
8301 (aarch64_reverse_mask): Likewise.
8302 (aarch64_simd_emit_reg_reg_move): Likewise.
8303 (aarch64_gen_adjusted_ldpstp): Likewise.
8304 (aarch64_ccmp_mode_to_code): Likewise.
8305 (aarch64_operands_ok_for_ldpstp): Likewise.
8306 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
8307 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class):
8308 Likewise.
8309 (aarch64_min_divisions_for_recip_mul): Likewise.
8310 (aarch64_reassociation_width): Likewise.
8311 (aarch64_get_condition_code_1): Likewise.
8312 (aarch64_simd_emit_reg_reg_move): Likewise.
8313 (aarch64_simd_attr_length_rglist): Likewise.
8314 (aarch64_reverse_mask): Likewise.
8315 (aarch64_operands_ok_for_ldpstp): Likewise.
8316 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
8317 (aarch64_gen_adjusted_ldpstp): Likewise.
8318 * config/aarch64/cortex-a57-fma-steering.c (fma_node::rename):
8319 Likewise.
8320 * config/arc/arc.c (legitimate_offset_address_p): Likewise.
8321 * config/arm/arm-builtins.c (arm_simd_builtin_std_type): Likewise.
8322 (arm_lookup_simd_builtin_type): Likewise.
8323 (arm_simd_builtin_type): Likewise.
8324 (arm_init_simd_builtin_types): Likewise.
8325 (arm_expand_builtin_args): Likewise.
8326 * config/arm/arm-protos.h (arm_expand_builtin): Likewise.
8327 * config/ft32/ft32.c (ft32_libcall_value): Likewise.
8328 (ft32_setup_incoming_varargs): Likewise.
8329 (ft32_function_arg): Likewise.
8330 (ft32_function_arg_advance): Likewise.
8331 (ft32_pass_by_reference): Likewise.
8332 (ft32_arg_partial_bytes): Likewise.
8333 (ft32_valid_pointer_mode): Likewise.
8334 (ft32_addr_space_pointer_mode): Likewise.
8335 (ft32_addr_space_legitimate_address_p): Likewise.
8336 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple):
8337 Likewise.
8338 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
8339 (ix86_emit_outlined_ms2sysv_restore): Likewise.
8340 (iamcu_alignment): Likewise.
8341 (canonicalize_vector_int_perm): Likewise.
8342 (ix86_noce_conversion_profitable_p): Likewise.
8343 (ix86_mpx_bound_mode): Likewise.
8344 (ix86_operands_ok_for_move_multiple): Likewise.
8345 * config/microblaze/microblaze-protos.h
8346 (microblaze_expand_conditional_branch_reg): Likewise.
8347 * config/microblaze/microblaze.c
8348 (microblaze_expand_conditional_branch_reg): Likewise.
8349 * config/powerpcspe/powerpcspe.c (rs6000_init_hard_regno_mode_ok):
8350 Likewise.
8351 (rs6000_reassociation_width): Likewise.
8352 (rs6000_invalid_binary_op): Likewise.
8353 (fusion_p9_p): Likewise.
8354 (emit_fusion_p9_load): Likewise.
8355 (emit_fusion_p9_store): Likewise.
8356 * config/riscv/riscv-protos.h (riscv_regno_mode_ok_for_base_p):
8357 Likewise.
8358 (riscv_hard_regno_mode_ok_p): Likewise.
8359 (riscv_address_insns): Likewise.
8360 (riscv_split_symbol): Likewise.
8361 (riscv_legitimize_move): Likewise.
8362 (riscv_function_value): Likewise.
8363 (riscv_hard_regno_nregs): Likewise.
8364 (riscv_expand_builtin): Likewise.
8365 * config/riscv/riscv.c (riscv_build_integer_1): Likewise.
8366 (riscv_build_integer): Likewise.
8367 (riscv_split_integer): Likewise.
8368 (riscv_legitimate_constant_p): Likewise.
8369 (riscv_cannot_force_const_mem): Likewise.
8370 (riscv_regno_mode_ok_for_base_p): Likewise.
8371 (riscv_valid_base_register_p): Likewise.
8372 (riscv_valid_offset_p): Likewise.
8373 (riscv_valid_lo_sum_p): Likewise.
8374 (riscv_classify_address): Likewise.
8375 (riscv_legitimate_address_p): Likewise.
8376 (riscv_address_insns): Likewise.
8377 (riscv_load_store_insns): Likewise.
8378 (riscv_force_binary): Likewise.
8379 (riscv_split_symbol): Likewise.
8380 (riscv_force_address): Likewise.
8381 (riscv_legitimize_address): Likewise.
8382 (riscv_move_integer): Likewise.
8383 (riscv_legitimize_const_move): Likewise.
8384 (riscv_legitimize_move): Likewise.
8385 (riscv_address_cost): Likewise.
8386 (riscv_subword): Likewise.
8387 (riscv_output_move): Likewise.
8388 (riscv_canonicalize_int_order_test): Likewise.
8389 (riscv_emit_int_order_test): Likewise.
8390 (riscv_function_arg_boundary): Likewise.
8391 (riscv_pass_mode_in_fpr_p): Likewise.
8392 (riscv_pass_fpr_single): Likewise.
8393 (riscv_pass_fpr_pair): Likewise.
8394 (riscv_get_arg_info): Likewise.
8395 (riscv_function_arg): Likewise.
8396 (riscv_function_arg_advance): Likewise.
8397 (riscv_arg_partial_bytes): Likewise.
8398 (riscv_function_value): Likewise.
8399 (riscv_pass_by_reference): Likewise.
8400 (riscv_setup_incoming_varargs): Likewise.
8401 (riscv_print_operand): Likewise.
8402 (riscv_elf_select_rtx_section): Likewise.
8403 (riscv_save_restore_reg): Likewise.
8404 (riscv_for_each_saved_reg): Likewise.
8405 (riscv_register_move_cost): Likewise.
8406 (riscv_hard_regno_mode_ok_p): Likewise.
8407 (riscv_hard_regno_nregs): Likewise.
8408 (riscv_class_max_nregs): Likewise.
8409 (riscv_memory_move_cost): Likewise.
8410 * config/rl78/rl78-protos.h (rl78_split_movsi): Likewise.
8411 * config/rl78/rl78.c (rl78_split_movsi): Likewise.
8412 (rl78_addr_space_address_mode): Likewise.
8413 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8414 Likewise.
8415 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
8416 (rs6000_reassociation_width): Likewise.
8417 (rs6000_invalid_binary_op): Likewise.
8418 (fusion_p9_p): Likewise.
8419 (emit_fusion_p9_load): Likewise.
8420 (emit_fusion_p9_store): Likewise.
8421 * config/visium/visium-protos.h (prepare_move_operands): Likewise.
8422 (ok_for_simple_move_operands): Likewise.
8423 (ok_for_simple_move_strict_operands): Likewise.
8424 (ok_for_simple_arith_logic_operands): Likewise.
8425 (visium_legitimize_reload_address): Likewise.
8426 (visium_select_cc_mode): Likewise.
8427 (output_cbranch): Likewise.
8428 (visium_split_double_move): Likewise.
8429 (visium_expand_copysign): Likewise.
8430 (visium_expand_int_cstore): Likewise.
8431 (visium_expand_fp_cstore): Likewise.
8432 * config/visium/visium.c (visium_pass_by_reference): Likewise.
8433 (visium_function_arg): Likewise.
8434 (visium_function_arg_advance): Likewise.
8435 (visium_libcall_value): Likewise.
8436 (visium_setup_incoming_varargs): Likewise.
8437 (visium_legitimate_constant_p): Likewise.
8438 (visium_legitimate_address_p): Likewise.
8439 (visium_legitimize_address): Likewise.
8440 (visium_secondary_reload): Likewise.
8441 (visium_register_move_cost): Likewise.
8442 (visium_memory_move_cost): Likewise.
8443 (prepare_move_operands): Likewise.
8444 (ok_for_simple_move_operands): Likewise.
8445 (ok_for_simple_move_strict_operands): Likewise.
8446 (ok_for_simple_arith_logic_operands): Likewise.
8447 (visium_function_value_1): Likewise.
8448 (rtx_ok_for_offset_p): Likewise.
8449 (visium_legitimize_reload_address): Likewise.
8450 (visium_split_double_move): Likewise.
8451 (visium_expand_copysign): Likewise.
8452 (visium_expand_int_cstore): Likewise.
8453 (visium_expand_fp_cstore): Likewise.
8454 (visium_split_cstore): Likewise.
8455 (visium_select_cc_mode): Likewise.
8456 (visium_split_cbranch): Likewise.
8457 (output_cbranch): Likewise.
8458 (visium_print_operand_address): Likewise.
8459 * expmed.c (flip_storage_order): Likewise.
8460 * expmed.h (emit_cstore): Likewise.
8461 (flip_storage_order): Likewise.
8462 * genrecog.c (validate_pattern): Likewise.
8463 * hsa-gen.c (gen_hsa_addr): Likewise.
8464 * internal-fn.c (expand_arith_overflow): Likewise.
8465 * ira-color.c (allocno_copy_cost_saving): Likewise.
8466 * lra-assigns.c (find_hard_regno_for_1): Likewise.
8467 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
8468 (process_invariant_for_inheritance): Likewise.
8469 * lra-eliminations.c (move_plus_up): Likewise.
8470 * omp-low.c (lower_oacc_reductions): Likewise.
8471 * simplify-rtx.c (simplify_subreg): Likewise.
8472 * target.def (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
8473 (TARGET_CHKP_BOUND_MODE): Likewise..
8474 * targhooks.c (default_chkp_bound_mode): Likewise.
8475 (default_setup_incoming_vararg_bounds): Likewise.
8476 * targhooks.h (default_chkp_bound_mode): Likewise.
8477 (default_setup_incoming_vararg_bounds): Likewise.
8478 * tree-ssa-math-opts.c (divmod_candidate_p): Likewise.
8479 * tree-vect-loop.c (calc_vec_perm_mask_for_shift): Likewise.
8480 (have_whole_vector_shift): Likewise.
8481 * tree-vect-stmts.c (vectorizable_load): Likewise.
8482 * doc/tm.texi: Regenerate.
8483
8484 2017-07-05 Georg-Johann Lay <avr@gjlay.de>
8485
8486 Graceful degrade if Binutils PR21472 is not available.
8487
8488 PR target/81072
8489 * configure.ac [target=avr]: WARN instead of ERROR if avrxmega3
8490 .rodata in flash test fails.
8491 (HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH): Define it if test passes.
8492 * confgure: Regenerate.
8493 * config.in: Regenerate.
8494 * config/avr/avr.c (avr_asm_named_section)
8495 [HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH]: Only trigger
8496 __do_copy_data for stuff in .rodata if flash_pm_offset = 0.
8497 (avr_asm_init_sections): Same.
8498
8499 2017-07-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8500
8501 * config/arm/neon.md (fma<VCVTF:mode>4): Remove %?.
8502 (fma<VH:mode>4_intrinsic): Likewise.
8503 (*fmsub<VCVTF:mode>4): Likewise.
8504 (*fmsub<VH:mode>4_intrinsic): Likewise.
8505
8506 2017-07-05 Georg-Johann Lay <avr@gjlay.de>
8507
8508 PR target/81305
8509 * config/avr/avr.c (avr_out_movhi_mr_r_xmega) [CONSTANT_ADDRESS_P]:
8510 Don't depend on "optimize > 0".
8511 (out_movhi_r_mr, out_movqi_mr_r): Same.
8512 (out_movhi_mr_r, out_movqi_r_mr): Same.
8513 (avr_address_cost) [CONSTANT_ADDRESS_P]: Don't depend cost for
8514 io_address_operand on "optimize > 0".
8515
8516 2017-07-05 Bin Cheng <bin.cheng@arm.com>
8517
8518 * tree-loop-distribution.c: Add general explanantion on the pass.
8519 (generate_loops_for_partition): Mark distributed loop.
8520 (pg_add_dependence_edges): New parameter. Handle alias data
8521 dependence specially and record it in the parameter if asked.
8522 (struct pg_vdata, pg_edata, pg_edge_callback_data): New structs.
8523 (init_partition_graph_vertices, add_partition_graph_edge): New.
8524 (pg_skip_alias_edge, free_partition_graph_edata_cb): New.
8525 (free_partition_graph_vdata, build_partition_graph): New.
8526 (sort_partitions_by_post_order, merge_dep_scc_partitions): New.
8527 (pg_collect_alias_ddrs, break_alias_scc_partitions): New.
8528 (data_ref_segment_size, latch_dominated_by_data_ref): New.
8529 (compute_alias_check_pairs, version_loop_by_alias_check): New.
8530 (version_for_distribution_p, finalize_partitions): New.
8531 (distribute_loop): Handle alias data dependence specially. Factor
8532 out loop fusion code as functions and call these functions.
8533
8534 2017-07-05 Bin Cheng <bin.cheng@arm.com>
8535
8536 * tree-loop-distribution.c (classify_partition): New parameter and
8537 better handle reduction statement.
8538 (rdg_build_partitions): Revise comment.
8539 (distribute_loop): Compute statements in all partitions and pass it
8540 to classify_partition.
8541
8542 2017-07-05 Bin Cheng <bin.cheng@arm.com>
8543
8544 * tree-loop-distribution.c (enum partition_type): New.
8545 (struct partition): New field type.
8546 (partition_merge_into): Add parameter. Update partition type.
8547 (data_dep_in_cycle_p, update_type_for_merge): New functions.
8548 (build_rdg_partition_for_vertex): Compute partition type.
8549 (rdg_build_partitions): Dump partition type.
8550 (distribute_loop): Update calls to partition_merge_into.
8551
8552 2017-07-05 Bin Cheng <bin.cheng@arm.com>
8553
8554 * tree-loop-distribution.c (struct ddr_hasher): New.
8555 (ddr_hasher::hash, ::equal, get_data_dependence): New function.
8556 (ddrs_table): New.
8557 (classify_partition): Call get_data_dependence.
8558 (pg_add_dependence_edges): Ditto.
8559 (distribute_loop): Release data dependence hash table.
8560
8561 2017-07-05 Bin Cheng <bin.cheng@arm.com>
8562
8563 * tree-loop-distribution.c (ref_base_address): Delete.
8564 (similar_memory_accesses): Rename ...
8565 (share_memory_accesses): ... to this. Check if partitions access
8566 the same memory reference.
8567 (distribute_loop): Call share_memory_accesses.
8568
8569 2017-07-05 Bin Cheng <bin.cheng@arm.com>
8570
8571 * tree-loop-distribution.c (struct partition): New field recording
8572 its data reference.
8573 (partition_alloc, partition_free): Init and release data refs.
8574 (partition_merge_into): Merge data refs.
8575 (build_rdg_partition_for_vertex): Collect data refs for partition.
8576 (pg_add_dependence_edges): Change parameters from vector to bitmap.
8577 Update uses.
8578 (distribute_loop): Remve data refs from vertice data of partition
8579 graph.
8580
8581 2017-07-05 Bin Cheng <bin.cheng@arm.com>
8582
8583 * tree-loop-distribution.c (params.h): Include header file.
8584 (MAX_DATAREFS_NUM, DR_INDEX): New macro.
8585 (datarefs_vec): New global var.
8586 (create_rdg_vertices): Use datarefs_vec directly.
8587 (free_rdg): Don't free data references.
8588 (build_rdg): Update use. Don't free data references.
8589 (distribute_loop): Compute global variable for data references.
8590 Bail out if there are too many data references.
8591
8592 2017-07-05 Bin Cheng <bin.cheng@arm.com>
8593
8594 * tree-loop-distribution.c (loop_nest): New global var.
8595 (build_rdg): Use loop directly, rather than loop nest.
8596 (pg_add_dependence_edges): Remove loop nest parameter. Use global
8597 variable directly.
8598 (distribute_loop): Compute global variable loop nest. Update use.
8599
8600 2017-07-05 Bin Cheng <bin.cheng@arm.com>
8601
8602 * tree-loop-distribution.c (enum fuse_type, fuse_message): New.
8603 (partition_merge_into): New parameter. Dump reason for fusion.
8604 (distribute_loop): Update use of partition_merge_into.
8605
8606 2017-07-05 Bin Cheng <bin.cheng@arm.com>
8607
8608 * tree-loop-distribution.c (bb_top_order_index): New.
8609 (bb_top_order_index_size, bb_top_order_cmp): New.
8610 (stmts_from_loop): Use topological order.
8611 (pass_loop_distribution::execute): Compute and release topological
8612 order for basic blocks.
8613
8614 2017-07-05 Bin Cheng <bin.cheng@arm.com>
8615
8616 * tree-loop-distribution.c (pass_loop_distribution::execute): Skip
8617 if no loops.
8618
8619 2017-07-05 Bin Cheng <bin.cheng@arm.com>
8620
8621 * cfgloop.h (struct loop): Add comment. New field orig_loop_num.
8622 * cfgloopmanip.c (lv_adjust_loop_entry_edge): Comment change.
8623 * internal-fn.c (expand_LOOP_DIST_ALIAS): New function.
8624 * internal-fn.def (LOOP_DIST_ALIAS): New.
8625 * tree-vectorizer.c (fold_loop_vectorized_call): Rename to ...
8626 (fold_loop_internal_call): ... this.
8627 (vect_loop_dist_alias_call): New function.
8628 (set_uid_loop_bbs): Call fold_loop_internal_call.
8629 (vectorize_loops): Fold IFN_LOOP_VECTORIZED and IFN_LOOP_DIST_ALIAS
8630 internal calls.
8631
8632 2017-07-04 Uros Bizjak <ubizjak@gmail.com>
8633
8634 PR target/81300
8635 * config/i386/i386.md (setcc + movzbl/and to xor + setcc peepholes):
8636 Require dead FLAGS_REG at the beginning of a peephole.
8637
8638 2017-07-04 Uros Bizjak <ubizjak@gmail.com>
8639
8640 PR target/81294
8641 * config/i386/adxintrin.h (_subborrow_u32): Swap _X and _Y
8642 arguments in the call to __builtin_ia32_sbb_u32.
8643 (_subborrow_u64): Swap _X and _Y arguments in the call to
8644 __builtin_ia32_sbb_u64.
8645
8646 2017-07-04 Jakub Jelinek <jakub@redhat.com>
8647
8648 PR debug/81278
8649 * tree-vrp.c (compare_assert_loc): Turn into a function template
8650 with stable template parameter. Only test if a->e is NULL,
8651 !a->e == !b->e has been verified already. Use e == NULL or
8652 e != NULL instead of e or ! e tests. If stable is true, don't use
8653 iterative_hash_expr, on the other side allow a or b or both NULL
8654 and sort the NULLs last.
8655 (process_assert_insertions): Sort using compare_assert_loc<false>
8656 instead of compare_assert_loc, later sort using
8657 compare_assert_loc<true> before calling process_assert_insertions_for
8658 in a loop. Use break instead of continue once seen NULL pointer.
8659
8660 2017-07-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
8661
8662 * config/arm/driver-arm.c (arm_cpu_table): Add entry for ARM
8663 Cortex-R7 and Cortex-R8 processors.
8664
8665 2017-07-04 Jan Hubicka <hubicka@ucw.cz>
8666
8667 * ipa-utils.c (ipa_merge_profiles): Fix merging when dst is
8668 uninitialized while src is not.
8669
8670 2017-07-04 Richard Earnshaw <rearnsha@arm.com>
8671
8672 * common/config/arm/arm-common.c: Adjust include path for
8673 arm-cpu-cdata.h
8674 * config/arm/t-arm (TM_H): Adjust path for arm-cpu.h.
8675 (arm-cpu.h): Create in build directory. Adjust dependency rules.
8676 (arm-cpu-data.h): Likewise.
8677 (arm-cpu-cdata.h): Likewise.
8678 * config/arm/arm-cpu.h: Delete.
8679 * config/arm/arm-cpu-cdata.h: Delete.
8680 * config/arm/arm-cpu-data.h: Delete.
8681
8682 2017-07-04 James Greenhalgh <james.greenhalgh@arm.com>
8683
8684 * config/arm/arm-cpus.in (cortex-a55): New.
8685 (cortex-a75): Likewise.
8686 (cortex-a75.cortex-a55): Likewise.
8687 * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a55 and
8688 cortex-a75.
8689 * doc/invoke.texi (-mcpu): Document cortex-a55 and cortex-a75.
8690 * config/arm/arm-cpu-cdata.h: Regenerate.
8691 * config/arm/arm-cpu-data.h: Regenerate.
8692 * config/arm/arm-cpu.h: Regenerate.
8693 * config/arm/arm-tables.opt: Regenerate.
8694 * config/arm/arm-tune.md: Regenerate.
8695
8696 2017-07-04 Jan Hubicka <hubicka@ucw.cz>
8697
8698 * haifa-sched.c (sched_create_recovery_edges): Update profile.
8699
8700 2017-07-04 Jan Hubicka <hubicka@ucw.cz>
8701
8702 * bb-reorder.c (better_edge_p): Fix handling of uninitialized
8703 probability.
8704
8705 2017-07-04 Richard Sandiford <richard.sandiford@linaro.org>
8706
8707 PR tree-optimization/81292
8708 * tree-ssa-strlen.c (handle_builtin_strlen): When setting
8709 full_string_p, also call adjust_related_strinfos if the adjustment
8710 is simple, otherwise invalidate related strinfos.
8711
8712 2017-07-04 Martin Liska <mliska@suse.cz>
8713
8714 PR sanitizer/81040
8715 * sanopt.c (sanitize_rewrite_addressable_params): Mark the
8716 newly created variable as DECL_IGNORED_P.
8717
8718 2017-07-04 Martin Liska <mliska@suse.cz>
8719
8720 PR ipa/81293
8721 * ipa-inline.c (inline_small_functions):
8722 Use xstrdup_for_dump.
8723
8724 2017-07-04 Tom de Vries <tom@codesourcery.com>
8725
8726 * graph.c (draw_cfg_edges): Save and restore EDGE_DFS_BACK.
8727
8728 2017-07-03 Dominique d'Humieres <dominiq@lps.ens.fr>
8729
8730 PR target/81033
8731 * config/darwin.c (darwin_function_switched_text_sections):
8732 Fix spaces.
8733
8734 2017-07-03 Jan Hubicka <hubicka@ucw.cz>
8735
8736 * tree-vect-loop-manip.c (vect_do_peeling): Fix scaling up.
8737
8738 2017-07-03 Richard Earnshaw <rearnsha@arm.com>
8739
8740 * doc/invoke.texi (ARM Options): Add -mbe8 and -mbe32 to option summary.
8741
8742 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
8743
8744 * tree-vect-loop.c (vect_analyze_loop_2): Treat min_scalar_loop_bound,
8745 min_profitable_iters, and th as inclusive lower bounds.
8746 Fix LOOP_VINFO_PEELING_FOR_GAPS condition.
8747 (vect_estimate_min_profitable_iters): Return inclusive lower bounds
8748 for min_profitable_iters and min_profitable_estimate.
8749 (vect_transform_loop): Treat th as an inclusive lower bound.
8750 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
8751
8752 2017-07-03 Dominique d'Humieres <dominiq@lps.ens.fr>
8753
8754 PR target/81033
8755 * config/darwin.c (darwin_function_switched_text_sections):
8756 Replace DECL_NAME with DECL_ASSEMBLER_NAME, split assemble_name_raw
8757 in two pieces, and suppress the use of buf.
8758
8759 2017-07-03 Nathan Sidwell <nathan@acm.org>
8760
8761 * hash-table.h (hash_table_mod1): Fix indentation.
8762
8763 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
8764
8765 PR middle-end/81290
8766 * predict.c (force_edge_cold): Be more careful about propagation
8767 backward.
8768 * profile-count.h (profile_probability::guessed,
8769 profile_probability::fdo, profile_count::guessed, profile_count::fdo):
8770 New.
8771 * tree-ssa-threadupdate.c (recompute_probabilities): Result is guessed.
8772
8773 2017-07-03 James Greenhalgh <james.greenhalgh@arm.com>
8774
8775 * doc/invoke.texi (rcpc architecture extension): Document it.
8776
8777 2017-07-03 Richard Biener <rguenther@suse.de>
8778
8779 PR tree-optimization/60510
8780 * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass in
8781 the scalar reduction PHI and use it.
8782 (vectorizable_reduction): Properly guard the single_defuse_cycle
8783 path for non-SLP reduction chains where we cannot use it.
8784 Rework reduc_def/index and vector type deduction. Rework
8785 vector operand gathering during reduction op code-gen.
8786 * tree-vect-slp.c (vect_analyze_slp): For failed SLP reduction
8787 chains dissolve the chain and leave it to non-SLP reduction
8788 handling.
8789
8790 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
8791
8792 * tree-data-ref.h (dr_alignment): Declare.
8793 * tree-data-ref.c (dr_alignment): New function.
8794 * tree-vectorizer.h (dataref_aux): Remove base_element_aligned.
8795 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Don't
8796 set it.
8797 * tree-vect-stmts.c (vectorizable_store): Use dr_alignment.
8798
8799 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
8800
8801 * tree-data-ref.h (innermost_loop_behavior): Add base_alignment
8802 and base_misalignment fields.
8803 (DR_BASE_ALIGNMENT, DR_BASE_MISALIGNMENT): New macros.
8804 * tree-data-ref.c: Include builtins.h.
8805 (dr_analyze_innermost): Set up the new innmost_loop_behavior fields.
8806 * tree-vectorizer.h (STMT_VINFO_DR_BASE_ALIGNMENT): New macro.
8807 (STMT_VINFO_DR_BASE_MISALIGNMENT): Likewise.
8808 * tree-vect-data-refs.c: Include tree-cfg.h.
8809 (vect_compute_data_ref_alignment): Use the new innermost_loop_behavior
8810 fields instead of calculating an alignment here.
8811 (vect_analyze_data_refs): Use dr_analyze_innermost. Dump the new
8812 innermost_loop_behavior fields.
8813
8814 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
8815
8816 * tree-data-ref.h (innermost_loop_behavior): Add a step_alignment
8817 field.
8818 (DR_STEP_ALIGNMENT): New macro.
8819 * tree-vectorizer.h (STMT_VINFO_DR_STEP_ALIGNMENT): Likewise.
8820 * tree-data-ref.c (dr_analyze_innermost): Initalize step_alignment.
8821 (create_data_ref): Print it.
8822 * tree-vect-stmts.c (vectorizable_load): Use the step alignment
8823 to tell whether the step preserves vector (mis)alignment.
8824 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
8825 Move the check for an integer step and generalise to all INTEGER_CST.
8826 (vect_analyze_data_refs): Set DR_STEP_ALIGNMENT when setting DR_STEP.
8827 Print the outer step alignment.
8828
8829 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
8830
8831 * tree-data-ref.h (innermost_loop_behavior): Replace aligned_to
8832 with offset_alignment.
8833 (DR_ALIGNED_TO): Delete.
8834 (DR_OFFSET_ALIGNMENT): New macro.
8835 * tree-vectorizer.h (STMT_VINFO_DR_ALIGNED_TO): Delete.
8836 (STMT_VINFO_DR_OFFSET_ALIGNMENT): New macro.
8837 * tree-data-ref.c (dr_analyze_innermost): Update after above changes.
8838 (create_data_ref): Likewise.
8839 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
8840 (vect_analyze_data_refs): Likewise.
8841 * tree-if-conv.c (if_convertible_loop_p_1): Use memset before
8842 creating dummy innermost behavior.
8843
8844 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
8845
8846 * tree-data-ref.h (dr_analyze_innermost): Replace the dr argument
8847 with a "innermost_loop_behavior *" and refeence tree.
8848 * tree-data-ref.c (dr_analyze_innermost): Likewise.
8849 (create_data_ref): Update call accordingly.
8850 * tree-predcom.c (find_looparound_phi): Likewise.
8851
8852 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
8853
8854 * tree-vectorizer.h (_stmt_vec_info): Replace individual dr_*
8855 fields with dr_wrt_vec_loop.
8856 (STMT_VINFO_DR_BASE_ADDRESS, STMT_VINFO_DR_INIT, STMT_VINFO_DR_OFFSET)
8857 (STMT_VINFO_DR_STEP, STMT_VINFO_DR_ALIGNED_TO): Update accordingly.
8858 (STMT_VINFO_DR_WRT_VEC_LOOP): New macro.
8859 (vect_dr_behavior): New function.
8860 (vect_create_addr_base_for_vector_ref): Remove loop parameter.
8861 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
8862 vect_dr_behavior. Use a step_preserves_misalignment_p boolean to
8863 track whether the step preserves the misalignment.
8864 (vect_create_addr_base_for_vector_ref): Remove loop parameter.
8865 Use vect_dr_behavior.
8866 (vect_setup_realignment): Update call accordingly.
8867 (vect_create_data_ref_ptr): Likewise. Use vect_dr_behavior.
8868 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Update
8869 call to vect_create_addr_base_for_vector_ref.
8870 (vect_create_cond_for_align_checks): Likewise.
8871 * tree-vect-patterns.c (vect_recog_bool_pattern): Copy
8872 STMT_VINFO_DR_WRT_VEC_LOOP as a block.
8873 (vect_recog_mask_conversion_pattern): Likewise.
8874 * tree-vect-stmts.c (compare_step_with_zero): Use vect_dr_behavior.
8875 (new_stmt_vec_info): Remove redundant zeroing.
8876
8877 2017-07-03 Richard Earnshaw <rearnsha@arm.com>
8878
8879 * common/config/arm/arm-common.c (arm_be8_option): New function.
8880 * config/arm/arm-isa.h (isa_feature): Add new feature bit isa_bit_be8.
8881 (ISA_ARMv6): Add isa_bit_be8.
8882 * config/arm/arm.h (arm_be8_option): Add prototype.
8883 (BE8_SPEC_FUNCTION): New define.
8884 (EXTRA_SPEC_FUNCTIONS): Add BE8_SPEC_FUNCTION.
8885 * config/arm/arm.opt (mbig-endian): Mark as Negative of mlittle-endian.
8886 (mlittle-endian): Similarly.
8887 (mbe8, mbe32): New options.
8888 * config/arm/bpabi.h (BE8_LINK_SPEC): Call arm_be8_option.
8889 * doc/invoke.texi (ARM Options): Document -mbe8 and -mbe32.
8890
8891 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
8892
8893 * tree-cfg.c (gimple_find_sub_bbs): Fix profile updating.
8894
8895 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
8896
8897 * tree-cfgcleanup.c (want_merge_blocks_p): New function.
8898 (cleanup_tree_cfg_bb): Use it.
8899 * profile-count.h (profile_count::of_for_merging, profile_count::merge):
8900 New functions.
8901 * tree-cfg.c (gimple_merge_blocks): Use profile_count::merge.
8902
8903 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
8904
8905 PR bootstrap/81285
8906 * loop-doloop.c (add_test): Update profile.
8907
8908 2017-07-03 Martin Liska <mliska@suse.cz>
8909
8910 PR sanitize/81040
8911 * sanopt.c (rewrite_usage_of_param): New function.
8912 (sanitize_rewrite_addressable_params): Likewise.
8913 (pass_sanopt::execute): Call rewrite_usage_of_param.
8914
8915 2017-07-03 Richard Biener <rguenther@suse.de>
8916
8917 * tree-vect-loop.c (vect_create_epilog_for_reduction): Revert
8918 back to using VIEW_CONVERT_EXPR.
8919
8920 2017-07-03 Martin Liska <mliska@suse.cz>
8921
8922 PR other/78366
8923 * doc/extend.texi: Document when a resolver function is
8924 generated for target_clones.
8925
8926 2017-07-03 Martin Liska <mliska@suse.cz>
8927
8928 * asan.c (asan_emit_stack_protection): Unpoison just red zones
8929 and shadow memory of auto variables which are subject of
8930 use-after-scope sanitization.
8931 (asan_expand_mark_ifn): Add do set only when is_poison.
8932
8933 2016-07-03 Richard Biener <rguenther@suse.de>
8934
8935 * tree-vect-loop.c (vect_analyze_loop_operations): Also analyze
8936 reduction PHIs.
8937 (vect_force_simple_reduction): Record reduction def -> phi mapping.
8938 (vectorizable_reduction): Perform reduction PHI creation when
8939 visiting a reduction PHI and adjust and simplify code generation
8940 phase of the reduction op. Cache dts, use fold_binary, not fold_build2.
8941 (vect_transform_loop): Visit reduction PHIs.
8942 * tree-vect-slp.c (vect_get_and_check_slp_defs): Record reduction
8943 defs into the SLP tree.
8944 (vect_build_slp_tree): Reduction defs terminate the recursion.
8945 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): Allow lookup
8946 of reduction defs.
8947 (vect_get_vec_defs_for_stmt_copy): Export.
8948 (vect_get_vec_defs): Likewise.
8949 * tree-vectorizer.h (struct _stmt_vec_info): Amend reduc_def
8950 purpose.
8951 (vect_get_vec_defs_for_stmt_copy): Declare.
8952 (vect_get_vec_defs): Likewise.
8953
8954 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
8955
8956 * tree-data-ref.c (dr_analyze_innermost): Replace the "nest"
8957 parameter with a "loop" parameter and use it instead of the
8958 loop containing DR_STMT. Don't check simple_iv when doing
8959 BB analysis. Describe the two analysis modes in the comment.
8960
8961 2017-07-03 Tom de Vries <tom@codesourcery.com>
8962
8963 PR tree-optimization/69468
8964 * tree-ssa-tail-merge.c (ignore_edge_flags): New constant.
8965 (find_same_succ_bb): Handle ignore_edge_flags.
8966
8967 2017-07-03 Tom de Vries <tom@codesourcery.com>
8968
8969 PR tree-optimization/81192
8970 * tree-ssa-tail-merge.c (same_succ_hash): Use bb->loop_father->num in
8971 hash.
8972 (same_succ::equal): Don't find bbs to be equal if bb->loop_father
8973 differs.
8974 (find_same_succ_bb): Remove obsolete test on bb->loop_father->latch.
8975
8976 2017-07-03 Tom de Vries <tom@codesourcery.com>
8977
8978 PR tree-optimization/81192
8979 * tree-ssa-tail-merge.c (same_succ_flush_bb): Handle
8980 BB_SAME_SUCC (bb) == NULL.
8981
8982 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
8983
8984 * cfgrtl.c (rtl_verify_edges): Enable checking of profile_probability
8985 consistency.
8986
8987 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
8988
8989 * dumpfile.c: Include profile-count.h
8990 * tree-cfg.c (gimple_duplicate_sese_tail): Drop UNUSED attributes;
8991 update profile.
8992 (insert_cond_bb): Update profile.
8993 * tree-cfg.h (insert_cond_bb): Update prototype.
8994 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Update.
8995 * tree-dump.c: Do not include tree-cfg.
8996
8997 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
8998
8999 * bb-reorder.c (fix_up_crossing_landing_pad): Update profile.
9000
9001 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
9002
9003 * expect.c (dw2_build_landing_pads): Update profile of the landing pad
9004 bb.
9005
9006 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
9007
9008 * tree-complex.c (expand_complex_div_wide): update profile.
9009
9010 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
9011 Alan Hayward <alan.hayward@arm.com>
9012 David Sherwood <david.sherwood@arm.com>
9013
9014 * Makefile.in (MACHMODE_H): Remove insn-modes.h
9015 (CORETYPES_H): New define.
9016 (MOSTLYCLEANFILES): Add insn-modes-inline.h.
9017 (insn-modes-inline.h, s-modes-inline-h): New rules.
9018 (generated_files): Add insn-modes-inline.h.
9019 (RTL_BASE_H, TREE_CORE_H): Use CORETYPES_H instead of coretypes.h.
9020 (build/gensupport.o, build/ggc-none.o, build/print-rtl.o): Likewise.
9021 (build/read-md.o, build/read-rtl.o, build/rtl.o): Likewise.
9022 (build/vec.o, build/hash-table.o, build/inchash.o): Likewise.
9023 (build/gencondmd.o, build/genattr.o, build/genattr-common.o): Likewise.
9024 (build/genattrtab.o, build/genautomata.o, build/gencheck.o): Likewise.
9025 (build/gencodes.o, build/genconditions.o): Likewise.
9026 (build/genconfig.o, build/genconstants.o, build/genemit.o): Likewise.
9027 (build/genenums.o, build/genextract.o, build/genflags.o): Likewise.
9028 (build/gentarget-def.o, build/genmddeps.o, build/genopinit.o)
9029 (build/genoutput.o, build/genpeep.o, build/genpreds.o): Likewise.
9030 (build/genrecog.o, build/genmddump.o, build/genmatch.o): Likewise.
9031 (build/gencfn-macros.o, build/gcov-iov.o): Likewise.
9032 * coretypes.h: Include everything up to real.h for generators.
9033 Include insn-modes.h first. Include wide-int-print.h after
9034 wide-int.h. Include insn-modes-inline.h and then machmode.h.
9035 * machmode.h: Don't include insn-modes.h here.
9036 * function-tests.c: Remove includes of signop.h, machmode.h,
9037 double-int.h and wide-int.h.
9038 * rtl.h: Likewise.
9039 * gcc-rich-location.c: Remove includes of machmode.h, double-int.h
9040 and wide-int.h.
9041 * optc-save-gen.awk: Likewise.
9042 * gencheck.c (BITS_PER_UNIT): Delete dummy definition.
9043 * godump.c: Remove include of wide-int-print.h.
9044 * pretty-print.h: Likewise.
9045 * wide-int-print.cc: Likewise.
9046 * wide-int.cc: Likewise.
9047 * hash-map-tests.c: Remove include of signop.h.
9048 * hash-set-tests.c: Likewise.
9049 * rtl-tests.c: Likewise.
9050 * mkconfig.sh: Remove include of machmode.h.
9051 * genmodes.c (emit_insn_modes_h): Split emission of inline functions
9052 into...
9053 (emit_insn_modes_inline_h): ...this new function. Emit the code
9054 into an insn-modes-inline.h header file, adding appropriate
9055 include guards and end comments.
9056 (emit_insn_modes_c_header): Remove include of machmode.h.
9057 (emit_min_insn_modes_c_header): Include coretypes.h rather than
9058 machmode.h.
9059 (main): Handle -i flag and call emit_insn_modes_inline_h when
9060 it is passed.
9061
9062 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
9063
9064 * tree-ssa-strlen.c (strinfo): Rename the length field to
9065 nonzero_chars. Add a full_string_p field.
9066 (compare_nonzero_chars, zero_length_string_p): New functions.
9067 (get_addr_stridx): Add an offset_out parameter.
9068 Use compare_nonzero_chars.
9069 (get_stridx): Update accordingly. Use compare_nonzero_chars.
9070 (new_strinfo): Update after above changes to strinfo.
9071 (set_endptr_and_length): Set full_string_p.
9072 (get_string_length): Update after above changes to strinfo.
9073 (unshare_strinfo): Update call to new_strinfo.
9074 (maybe_invalidate): Likewise.
9075 (get_stridx_plus_constant): Change off to unsigned HOST_WIDE_INT.
9076 Use compare_nonzero_chars and zero_string_p. Treat nonzero_chars
9077 as a uhwi instead of an shwi. Update after above changes to
9078 strinfo and new_strinfo.
9079 (zero_length_string): Assert that chainsi contains full strings.
9080 Use zero_length_string_p. Update call to new_strinfo.
9081 (adjust_related_strinfos): Update after above changes to strinfo.
9082 Copy full_string_p from origsi.
9083 (adjust_last_stmt): Use zero_length_string_p.
9084 (handle_builtin_strlen): Update after above changes to strinfo and
9085 new_strinfo. Install the lhs as the string length if the previous
9086 entry didn't describe a full string.
9087 (handle_builtin_strchr): Update after above changes to strinfo
9088 and new_strinfo.
9089 (handle_builtin_strcpy): Likewise.
9090 (handle_builtin_strcat): Likewise.
9091 (handle_builtin_malloc): Likewise.
9092 (handle_pointer_plus): Likewise.
9093 (handle_builtin_memcpy): Likewise. Track nonzero characters
9094 that aren't necessarily followed by a nul terminator.
9095 (handle_char_store): Likewise.
9096
9097 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
9098
9099 PR tree-optimization/80769
9100 * tree-ssa-strlen.c (strinfo): Document that "stmt" is also used
9101 for malloc and calloc. Document the new invariant that all related
9102 strinfos have delayed lengths or none do.
9103 (verify_related_strinfos): Move earlier in file.
9104 (set_endptr_and_length): New function, split out from...
9105 (get_string_length): ...here. Also set the lengths of related
9106 strinfos.
9107 (zero_length_string): Assert that chainsi has known (rather than
9108 delayed) lengths.
9109 (adjust_related_strinfos): Likewise.
9110
9111 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
9112
9113 PR tree-optimization/81136
9114 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Only
9115 assert that two references with the same misalignment have the same
9116 compile-time misalignment if those compile-time misalignments
9117 are known.
9118
9119 2017-07-01 Andi Kleen <ak@linux.intel.com>
9120
9121 * print-tree.c (print_node): Print all attributes.
9122
9123 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
9124
9125 * cfg.c (scale_bbs_frequencies): New function.
9126 * cfg.h (scale_bbs_frequencies): Declare it.
9127 * cfgloopanal.c (single_likely_exit): Cleanup.
9128 * cfgloopmanip.c (scale_loop_frequencies): Take profile_probability
9129 as parameter.
9130 (scale_loop_profile): Likewise.
9131 (loop_version): Likewise.
9132 (create_empty_loop_on_edge): Update.
9133 * cfgloopmanip.h (scale_loop_frequencies, scale_loop_profile,
9134 scale_loop_frequencies, scale_loop_profile, loopify,
9135 loop_version): Update prototypes.
9136 * modulo-sched.c (sms_schedule): Update.
9137 * predict.c (unlikely_executed_edge_p): Also check probability.
9138 (probably_never_executed_edge_p): Fix typo.
9139 * tree-if-conv.c (version_loop_for_if_conversion): Update.
9140 * tree-parloops.c (gen_parallel_loop): Update.
9141 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update.
9142 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
9143 * tree-ssa-loop-split.c (split_loop): Update.
9144 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
9145 * tree-vect-loop-manip.c (vect_do_peeling): Update.
9146 (vect_loop_versioning): Update.
9147 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
9148
9149 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
9150
9151 * trans-mem.c (split_bb_make_tm_edge): Update profile.
9152
9153 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
9154
9155 * tree-if-conv.c (combine_blocks): Use make_single_succ_edge
9156 to keep profile consistent.
9157
9158 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
9159
9160 * cfgrtl.c (rtl_flow_call_edges_add): Update profile.
9161 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
9162 * profile-count.h (max_safe_multiplier): Make unsigned.
9163 (profile_count::guessed_zero): New.
9164
9165 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
9166
9167 * bb-reorder.c (fix_up_crossing_landing_pad,
9168 fix_crossing_conditional_branches): Use make_single_succ_edge
9169 to keep profile consistent.
9170
9171 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
9172
9173 * tree-vect-loop.c (optimize_mask_stores): Use make_single_succ_edge
9174 to update profile.
9175
9176 2017-07-01 Jakub Jelinek <jakub@redhat.com>
9177
9178 PR sanitizer/81262
9179 * bb-reorder.c (fix_up_fall_thru_edges): Move variable declarations to
9180 the right scopes, make sure cond_jump isn't preserved between multiple
9181 iterations. Search for fallthru edge whenever there are 3+ edges and
9182 use find_fallthru_edge for it.
9183
9184 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
9185
9186 Patch by Alexander Monakov <amonakov@ispras.ru>
9187 * sel-sched-ir.c (compute_succs_info): Handle uninitialized
9188 probabilities consistently.
9189
9190 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
9191
9192 * pa.c (pa_expand_compare_and_swap_loop): Update call of
9193 emit_cmp_and_jump_insns.
9194
9195 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
9196
9197 PR ipa/81261
9198 * tree-inline.c (expand_call_inline): Combine profile statuses.
9199
9200 2017-06-30 Andrew Pinski <apinski@cavium.com>
9201
9202 * tree-if-conv.c (predicate_scalar_phi): Update new_stmt if
9203 fold_stmt returned true.
9204
9205 2017-06-30 Nathan Sidwell <nathan@acm.org>
9206
9207 * ggc.h (empty_string): Delete.
9208 * cfgexpand.c (expand_asm_stmt): Use plain "".
9209 * optabs.c (expand_asm_memory_barrier): Likewise.
9210 * stringpool.c (empty_string): Delete.
9211 (digit_vector, digit_string): Delete.
9212 (ggc_alloc_string): Use plain "", don't optimize single digit
9213 strings. Use ggc_alloc_atomic.
9214
9215 2017-06-30 Richard Earnshaw <rearnsha@arm.com>
9216
9217 * rtlanal.c (insn_rtx_cost): If a parallel contains exactly one
9218 comparison set and one other set, use the cost of the non-comparison
9219 set.
9220
9221 2017-06-30 Nathan Sidwell <nathan@acm.org>
9222
9223 * ggc.h: Replace all 'static inline' with plain 'inline'. Fix
9224 some formatting.
9225
9226 2017-06-30 Peter Bergner <bergner@vnet.ibm.com>
9227
9228 * tree-cfg.c (group_case_labels_stmt): Merge scanning and compressing
9229 loops. Remove now unneeded calls to gimple_switch_set_label() that
9230 just set removed labels to NULL_TREE.
9231
9232 2017-06-30 Aldy Hernandez <aldyh@redhat.com>
9233
9234 * tree-ssanames.c (set_range_info_raw): Abstract from ...
9235 (set_range_info): ...here. Only call set_range_info_raw if domain
9236 is useful.
9237 (set_nonzero_bits): Call set_range_info_raw.
9238 * tree-ssanames.h (set_range_info_raw): New.
9239
9240 2017-06-30 Jakub Jelinek <jakub@redhat.com>
9241
9242 PR target/81225
9243 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): For V8FI,
9244 V16FI and VI8F_256 iterators, use <store_mask_predicate> instead
9245 of nonimmediate_operand and <store_mask_constraint> instead of m
9246 for the input operand. For V8FI iterator, always split if input
9247 is a MEM. For V16FI and V8SF_256 iterators, don't test if both
9248 operands are MEM if <mask_applied>. For VI4F_256 iterator, use
9249 <store_mask_predicate> instead of register_operand and
9250 <store_mask_constraint> instead of v for the input operand. Make
9251 sure both operands aren't MEMs for if not <mask_applied>.
9252
9253 2017-06-30 Sylvestre Ledru <sylvestre@debian.org>
9254
9255 * lto-wrapper.c (copy_file) Close both file descriptors before
9256 exiting normally.
9257
9258 2017-06-30 Martin Liska <mliska@suse.cz>
9259
9260 PR ipa/81214
9261 * multiple_target.c (create_dispatcher_calls): Make ifunc
9262 also for function that don't have calls or are not referenced.
9263
9264 2017-06-30 Richard Biener <rguenther@suse.de>
9265
9266 * tree-vect-slp.c (vect_slp_analyze_node_operations): Only
9267 analyze the first scalar stmt. Move vector type computation
9268 for the BB case here from ...
9269 * tree-vect-stmts.c (vect_analyze_stmt): ... here. Guard
9270 live operation processing in the SLP case properly.
9271
9272 2017-06-30 Richard Biener <rguenther@suse.de>
9273
9274 * graph.c (draw_cfg_node_succ_edges): Fix broken dot syntax.
9275
9276 2017-06-30 Martin Liska <mliska@suse.cz>
9277
9278 PR sanitizer/81021
9279 * tree-eh.c (lower_resx): Call BUILT_IN_ASAN_HANDLE_NO_RETURN
9280 before BUILT_IN_UNWIND_RESUME when ASAN is used.
9281
9282 2017-06-30 Yvan Roux <yvan.roux@linaro.org>
9283
9284 * doc/invoke.texi (AArch64): Add missing options and remove redundant
9285 ones.
9286
9287 2017-06-30 Richard Biener <rguenther@suse.de>
9288
9289 PR tree-optimization/81249
9290 * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
9291 condition reduction result to original scalar type.
9292
9293 2017-06-30 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9294
9295 * profile-count.h (enum profile_quality): Fix typos and whitespace
9296 issues.
9297
9298 2017-06-30 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9299
9300 * config/s390/s390.c (s390_expand_setmem): Adjust to the new data
9301 type for branch probabilities.
9302
9303 2017-06-29 Julian Brown <julian@codesourcery.com>
9304 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
9305
9306 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_BRANCH entry.
9307 * config/aarch64/aarch64.c (AARCH64_FUSE_ALU_BRANCH): New fusion type.
9308 (thunderx2t99_tunings): Set AARCH64_FUSE_ALU_BRANCH flag.
9309 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_ALU_BRANCH.
9310
9311 2017-06-29 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
9312
9313 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Push the
9314 check for CC usage into AARCH64_FUSE_CMP_BRANCH.
9315 * config/i386/i386.c (ix86_macro_fusion_pair_p): Push the check for
9316 CC usage from generic code to here.
9317 * sched-deps.c (sched_macro_fuse_insns): Move the condition for
9318 CC usage into the target macros.
9319
9320 2017-06-29 Maya Rashish <coypu@sdf.org>
9321
9322 * config/netbsd.h (NETBSD_LIB_SPEC): Add -lc when creating shared
9323 objects.
9324
9325 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
9326
9327 * arm/arm-builtins.c: Include profile-count.h
9328 * except.c (sjlj_emit_function_enter): Use
9329 profile_probability::unlikely.
9330
9331 2017-06-29 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9332
9333 * config/rs6000/rs6000.c (toc_relative_expr_p): Make tocrel_base
9334 and tocrel_offset be pointer args rather than implicitly using
9335 static versions.
9336 (legitimate_constant_pool_address_p, rs6000_emit_move,
9337 const_load_sequence_p, adjust_vperm): Add local tocrel_base and
9338 tocrel_offset and use in toc_relative_expr_p call.
9339 (print_operand, print_operand_address): Use static tocrel_base_oac
9340 and tocrel_offset_oac.
9341 (rs6000_output_addr_const_extra): Use static tocrel_base_oac and
9342 tocrel_offset_oac.
9343
9344 2017-06-29 Maya Rashish <coypu@sdf.org>
9345
9346 * config/vax/builtins.md (ffssi2_internal): Correct constraint.
9347
9348 2017-06-29 Eric Botcazou <ebotcazou@adacore.com>
9349
9350 * expr.c (expand_expr) <normal_inner_ref>: When testing for unaligned
9351 objects, take into account only the alignment of 'op0' and 'mode1' if
9352 'op0' is a MEM.
9353
9354 2017-06-29 Steve Ellcey <sellcey@cavium.com>
9355
9356 * ccmp.c (ccmp_tree_comparison_p): New function.
9357 (ccmp_candidate_p): Update to use above function.
9358 (get_compare_parts): New function.
9359 (expand_ccmp_next): Update to use new functions.
9360 (expand_ccmp_expr_1): Take tree arg instead of gimple, update to use
9361 new functions.
9362 (expand_ccmp_expr): Pass tree instead of gimple to expand_ccmp_expr_1,
9363 take mode as argument.
9364 * ccmp.h (expand_ccmp_expr): Add mode as argument.
9365 * expr.c (expand_expr_real_1): Pass mode as argument.
9366
9367 2017-06-29 Segher Boessenkool <segher@kernel.crashing.org>
9368
9369 * combine.c (combine_instructions): Print insns to dump_file, together
9370 with their costs.
9371
9372 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
9373
9374 * asan.c (asan_emit_stack_protection): Update.
9375 (create_cond_insert_point): Update.
9376 * auto-profile.c (afdo_propagate_circuit): Update.
9377 * basic-block.h (struct edge_def): Turn probability to
9378 profile_probability.
9379 (EDGE_FREQUENCY): Update.
9380 * bb-reorder.c (find_traces_1_round): Update.
9381 (better_edge_p): Update.
9382 (sanitize_hot_paths): Update.
9383 * cfg.c (unchecked_make_edge): Initialize probability to uninitialized.
9384 (make_single_succ_edge): Update.
9385 (check_bb_profile): Update.
9386 (dump_edge_info): Update.
9387 (update_bb_profile_for_threading): Update.
9388 * cfganal.c (connect_infinite_loops_to_exit): Initialize new edge
9389 probabilitycount to 0.
9390 * cfgbuild.c (compute_outgoing_frequencies): Update.
9391 * cfgcleanup.c (try_forward_edges): Update.
9392 (outgoing_edges_match): Update.
9393 (try_crossjump_to_edge): Update.
9394 * cfgexpand.c (expand_gimple_cond): Update make_single_succ_edge.
9395 (expand_gimple_tailcall): Update.
9396 (construct_init_block): Use make_single_succ_edge.
9397 (construct_exit_block): Use make_single_succ_edge.
9398 * cfghooks.c (verify_flow_info): Update.
9399 (redirect_edge_succ_nodup): Update.
9400 (split_edge): Update.
9401 (account_profile_record): Update.
9402 * cfgloopanal.c (single_likely_exit): Update.
9403 * cfgloopmanip.c (scale_loop_profile): Update.
9404 (set_zero_probability): Remove.
9405 (duplicate_loop_to_header_edge): Update.
9406 * cfgloopmanip.h (loop_version): Update prototype.
9407 * cfgrtl.c (try_redirect_by_replacing_jump): Update.
9408 (force_nonfallthru_and_redirect): Update.
9409 (update_br_prob_note): Update.
9410 (rtl_verify_edges): Update.
9411 (purge_dead_edges): Update.
9412 (rtl_lv_add_condition_to_bb): Update.
9413 * cgraph.c: (cgraph_edge::redirect_call_stmt_to_calle): Update.
9414 * cgraphunit.c (init_lowered_empty_function): Update.
9415 (cgraph_node::expand_thunk): Update.
9416 * cilk-common.c: Include profile-count.h
9417 * dojump.c (inv): Remove.
9418 (jumpifnot): Update.
9419 (jumpifnot_1): Update.
9420 (do_jump_1): Update.
9421 (do_jump): Update.
9422 (do_jump_by_parts_greater_rtx): Update.
9423 (do_compare_rtx_and_jump): Update.
9424 * dojump.h (jumpifnot, jumpifnot_1, jumpif_1, jumpif, do_jump,
9425 do_jump_1. do_compare_rtx_and_jump): Update prototype.
9426 * dwarf2cfi.c: Include profile-count.h
9427 * except.c (dw2_build_landing_pads): Use make_single_succ_edge.
9428 (sjlj_emit_dispatch_table): Likewise.
9429 * explow.c: Include profile-count.h
9430 * expmed.c (emit_store_flag_force): Update.
9431 (do_cmp_and_jump): Update.
9432 * expr.c (compare_by_pieces_d::generate): Update.
9433 (compare_by_pieces_d::finish_mode): Update.
9434 (emit_block_move_via_loop): Update.
9435 (store_expr_with_bounds): Update.
9436 (store_constructor): Update.
9437 (expand_expr_real_2): Update.
9438 (expand_expr_real_1): Update.
9439 * expr.h (try_casesi, try_tablejump): Update prototypes.
9440 * gimple-pretty-print.c (dump_probability): Update.
9441 (dump_profile): New.
9442 (dump_gimple_label): Update.
9443 (dump_gimple_bb_header): Update.
9444 * graph.c (draw_cfg_node_succ_edges): Update.
9445 * hsa-gen.c (convert_switch_statements): Update.
9446 * ifcvt.c (cheap_bb_rtx_cost_p): Update.
9447 (find_if_case_1): Update.
9448 (find_if_case_2): Update.
9449 * internal-fn.c (expand_arith_overflow_result_store): Update.
9450 (expand_addsub_overflow): Update.
9451 (expand_neg_overflow): Update.
9452 (expand_mul_overflow): Update.
9453 (expand_vector_ubsan_overflow): Update.
9454 * ipa-cp.c (good_cloning_opportunity_p): Update.
9455 * ipa-split.c (split_function): Use make_single_succ_edge.
9456 * ipa-utils.c (ipa_merge_profiles): Update.
9457 * loop-doloop.c (add_test): Update.
9458 (doloop_modify): Update.
9459 * loop-unroll.c (compare_and_jump_seq): Update.
9460 (unroll_loop_runtime_iterations): Update.
9461 * lra-constraints.c (lra_inheritance): Update.
9462 * lto-streamer-in.c (input_cfg): Update.
9463 * lto-streamer-out.c (output_cfg): Update.
9464 * mcf.c (adjust_cfg_counts): Update.
9465 * modulo-sched.c (sms_schedule): Update.
9466 * omp-expand.c (expand_omp_for_init_counts): Update.
9467 (extract_omp_for_update_vars): Update.
9468 (expand_omp_ordered_sink): Update.
9469 (expand_omp_for_ordered_loops): Update.
9470 (expand_omp_for_generic): Update.
9471 (expand_omp_for_static_nochunk): Update.
9472 (expand_omp_for_static_chunk): Update.
9473 (expand_cilk_for): Update.
9474 (expand_omp_simd): Update.
9475 (expand_omp_taskloop_for_outer): Update.
9476 (expand_omp_taskloop_for_inner): Update.
9477 * omp-simd-clone.c (simd_clone_adjust): Update.
9478 * optabs.c (expand_doubleword_shift): Update.
9479 (expand_abs): Update.
9480 (emit_cmp_and_jump_insn_1): Update.
9481 (expand_compare_and_swap_loop): Update.
9482 * optabs.h (emit_cmp_and_jump_insns): Update prototype.
9483 * predict.c (predictable_edge_p): Update.
9484 (edge_probability_reliable_p): Update.
9485 (set_even_probabilities): Update.
9486 (combine_predictions_for_insn): Update.
9487 (combine_predictions_for_bb): Update.
9488 (propagate_freq): Update.
9489 (estimate_bb_frequencies): Update.
9490 (force_edge_cold): Update.
9491 * profile-count.c (profile_count::dump): Add missing space into dump.
9492 (profile_count::debug): Add newline.
9493 (profile_count::differs_from_p): Explicitly convert to unsigned.
9494 (profile_count::stream_in): Update.
9495 (profile_probability::dump): New member function.
9496 (profile_probability::debug): New member function.
9497 (profile_probability::differs_from_p): New member function.
9498 (profile_probability::differs_lot_from_p): New member function.
9499 (profile_probability::stream_in): New member function.
9500 (profile_probability::stream_out): New member function.
9501 * profile-count.h (profile_count_quality): Rename to ...
9502 (profile_quality): ... this one.
9503 (profile_probability): New.
9504 (profile_count): Update.
9505 * profile.c (compute_branch_probabilities): Update.
9506 * recog.c (peep2_attempt): Update.
9507 * sched-ebb.c (schedule_ebbs): Update.
9508 * sched-rgn.c (find_single_block_region): Update.
9509 (compute_dom_prob_ps): Update.
9510 (schedule_region): Update.
9511 * sel-sched-ir.c (compute_succs_info): Update.
9512 * stmt.c (struct case_node): Update.
9513 (do_jump_if_equal): Update.
9514 (get_outgoing_edge_probs): Update.
9515 (conditional_probability): Update.
9516 (emit_case_dispatch_table): Update.
9517 (expand_case): Update.
9518 (expand_sjlj_dispatch_table): Update.
9519 (emit_case_nodes): Update.
9520 * targhooks.c: Update.
9521 * tracer.c (better_p): Update.
9522 (find_best_successor): Update.
9523 * trans-mem.c (expand_transaction): Update.
9524 * tree-call-cdce.c: Update.
9525 * tree-cfg.c (gimple_split_edge): Upate.
9526 (move_sese_region_to_fn): Upate.
9527 * tree-cfgcleanup.c (cleanup_control_expr_graph): Upate.
9528 * tree-eh.c (lower_resx): Upate.
9529 (cleanup_empty_eh_move_lp): Upate.
9530 * tree-if-conv.c (version_loop_for_if_conversion): Update.
9531 * tree-inline.c (copy_edges_for_bb): Update.
9532 (copy_cfg_body): Update.
9533 * tree-parloops.c (gen_parallel_loop): Update.
9534 * tree-profile.c (gimple_gen_ic_func_profiler): Update.
9535 (gimple_gen_time_profiler): Update.
9536 * tree-ssa-dce.c (remove_dead_stmt): Update.
9537 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
9538 * tree-ssa-loop-im.c (execute_sm_if_changed): Update.
9539 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update.
9540 (unloop_loops): Update.
9541 (try_peel_loop): Update.
9542 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
9543 * tree-ssa-loop-split.c (connect_loops): Update.
9544 (split_loop): Update.
9545 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
9546 (hoist_guard): Update.
9547 * tree-ssa-phionlycprop.c (propagate_rhs_into_lhs): Update.
9548 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update.
9549 (value_replacement): Update.
9550 * tree-ssa-reassoc.c (branch_fixup): Update.
9551 * tree-ssa-tail-merge.c (replace_block_by): Update.
9552 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Update.
9553 (create_edge_and_update_destination_phis): Update.
9554 (compute_path_counts): Update.
9555 (recompute_probabilities): Update.
9556 (update_joiner_offpath_counts): Update.
9557 (freqs_to_counts_path): Update.
9558 (duplicate_thread_path): Update.
9559 * tree-switch-conversion.c (hoist_edge_and_branch_if_true): Update.
9560 (struct switch_conv_info): Update.
9561 (gen_inbound_check): Update.
9562 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
9563 (vect_do_peeling): Update.
9564 (vect_loop_versioning): Update.
9565 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
9566 (optimize_mask_stores): Update.
9567 * ubsan.c (ubsan_expand_null_ifn): Update.
9568 * value-prof.c (gimple_divmod_fixed_value): Update.
9569 (gimple_divmod_fixed_value_transform): Update.
9570 (gimple_mod_pow2): Update.
9571 (gimple_mod_pow2_value_transform): Update.
9572 (gimple_mod_subtract): Update.
9573 (gimple_mod_subtract_transform): Update.
9574 (gimple_ic): Update.
9575 (gimple_stringop_fixed_value): Update.
9576 (gimple_stringops_transform): Update.
9577 * value-prof.h: Update.
9578
9579 2017-06-29 Carl Love <cel@us.ibm.com>
9580
9581 * config/rs6000/rs6000-c.c: Add support for built-in functions
9582 vector signed int vec_signed (vector float);
9583 vector signed long long vec_signed (vector double);
9584 vector signed int vec_signed2 (vector double, vector double);
9585 vector signed int vec_signede (vector double);
9586 vector signed int vec_signedo (vector double);
9587 * config/rs6000/rs6000.c (rs6000_generate_vsigned2_code): Add
9588 instruction generator.
9589 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
9590 UNSPEC_VSX_VSIGNED2): Add UNSPECS.
9591 (vsx_xvcvspsxws, vsx_xvcvdpuxds_scale, vsx_xvcvspuxws, vsigned2_v2df):
9592 Add define_insn.
9593 (vsignedo_v2df, vsignede_v2df, vunsigned2_v2df, vunsignedo_v2df,
9594 vunsignede_v2df): Add define_expands.
9595 * config/rs6000/rs6000-builtin.def (VEC_SIGNED, VEC_UNSIGNED,
9596 VEC_SIGNED2, VEC_UNSIGNED2, VEC_SIGNEDE, VEC_UNSIGNEDE, VEC_SIGNEDO,
9597 VEC_UNSIGNEDO): Add definitions.
9598 * config/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
9599 UNSPEC_VSX_VSIGNED2): Add UNSPECs.
9600 (vsx_xvcvspsxws, vsx_xvcvspuxws): Add define_insn.
9601 (vsigned2_v2df, vsigendo_v2df, vsignede_v2df,
9602 vunsigned2_v2df, vunsignedo_v2df, vunsignede_v2df): Add define_expands.
9603 * config/rs6000/altivec.h (vec_signed, vec_signed2,
9604 vec_signede and vec_signedo, vec_unsigned, vec_unsigned2,
9605 vec_unsignede, vec_unsignedo): Add builtin defines.
9606 * config/rs6000-protos.h (rs6000_generate_vsigned2_code): Add extern
9607 declaration.
9608 * doc/extend.texi: Update the built-in documentation file for the
9609 new built-in functions.
9610
9611 2017-06-29 Richard Biener <rguenther@suse.de>
9612
9613 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Do not add
9614 reduction chains to LOOP_VINFO_REDUCTIONS.
9615 * tree-vect-slp.c (vect_analyze_slp): Continue looking for
9616 SLP reductions after processing reduction chains.
9617
9618 2017-06-29 Nathan Sidwell <nathan@acm.org>
9619
9620 * builtins.c (fold_builtin_FUNCTION): Use
9621 lang_hooks.decl_printable_name.
9622
9623 2017-06-29 Peter Bergner <bergner@vnet.ibm.com>
9624
9625 PR middle-end/81194
9626 * cfgexpand.c (expand_gimple_stmt_1): Handle switch statements
9627 with only one label.
9628 * stmt.c (expand_case): Assert NCASES is greater than one.
9629
9630 2017-06-29 Richard Biener <rguenther@suse.de>
9631
9632 * tree-cfg.c (group_case_labels_stmt): Return whether we changed
9633 anything.
9634 (group_case_labels): Likewise.
9635 (find_taken_edge): Push sanity checking on val to workers...
9636 (find_taken_edge_cond_expr): ... here
9637 (find_taken_edge_switch_expr): ... and here, handle cases
9638 with just a default label.
9639 * tree-cfg.h (group_case_labels_stmt): Adjust prototype.
9640 (group_case_labels): Likewise.
9641 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing): When
9642 group_case_labels does anything cleanup the CFG again.
9643
9644 2017-06-29 Bin Cheng <bin.cheng@arm.com>
9645
9646 PR tree-optimization/81196
9647 * tree-ssa-loop-niter.c (number_of_iterations_cond): Handle loop
9648 exit condition comparing two IVs.
9649
9650 2017-06-29 Richard Earnshaw <rearnsha@arm.com>
9651
9652 * config/arm/parsecpu.awk (gen_comm_data): Add initializer for
9653 profile to the dummy entry at the end of the list of architectures.
9654 * config/arm/arm-cpu-cdata.h: Regenerated.
9655
9656 2017-06-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9657 Michael Collison <michael.collison@arm.com>
9658
9659 PR target/70119
9660 * config/aarch64/aarch64.md (*aarch64_<optab>_reg_<mode>3_mask1):
9661 New pattern.
9662 (*aarch64_reg_<mode>3_neg_mask2): New pattern.
9663 (*aarch64_reg_<mode>3_minus_mask): New pattern.
9664 (*aarch64_<optab>_reg_di3_mask2): New pattern.
9665 * config/aarch64/aarch64.c (aarch64_rtx_costs): Account for cost
9666 of shift when the shift amount is masked with constant equal to
9667 the size of the mode.
9668 * config/aarch64/predicates.md (subreg_lowpart_operator): New
9669 predicate.
9670
9671 2017-06-29 Martin Liska <mliska@suse.cz>
9672
9673 * config/i386/i386.opt: Change range from [1,5] to [0,5].
9674
9675 2017-06-29 Yury Gribov <tetra2005@gmail.com>
9676
9677 PR bootstrap/80565
9678 * ipa-cp.c (allocate_and_init_ipcp_value): Add initialization
9679 code.
9680 * ipa-inline.h
9681 (edge_growth_cache_entry::edge_growth_cache_entry): New
9682 function.
9683 (reset_edge_growth_cache): Update to use constructor.
9684
9685 2017-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9686
9687 * config/aarch64/aarch64.h (AARCH64_EXPAND_ALIGNMENT): New.
9688 (DATA_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
9689 (LOCAL_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
9690
9691 2017-06-28 Sebastian Peryt <sebastian.peryt@intel.com>
9692
9693 * config/i386/avx512vlintrin.h (_mm256_permutexvar_epi64)
9694 (_mm256_permutexvar_epi32, _mm256_permutex_epi64): New intrinsics.
9695
9696 2017-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
9697
9698 * config.gcc (*-linux-musl*): Add t-musl tmake_file.
9699 (*-linux-uclibc*): Add t-uclibc tmake_file.
9700 * config/t-musl: New.
9701 * config/t-uclibc: New.
9702
9703 2017-06-28 Richard Earnshaw <rearnsha@arm.com>
9704
9705 * config/arm/parsecpu.awk (profile): Parse new keyword in an arch
9706 context.
9707 (gen_comm_data): Emit architectural setting of arch_prof.
9708 * config/arm/arm-cpus.in (armv6-m, armv6s-m, armv7-a, armv7ve): Set the
9709 profile.
9710 (armv7-r, armv7-m, armv7e-m, armv8-a, armv8.1-a, armv8.2-a): Likewise.
9711 (armv8-m.base, armv8-m.main): Likewise.
9712 * arm-protos.h (arm_build_target): Add profile field.
9713 (arch_option): Likewise.
9714 * config/arm/arm.c (arm_configure_build_target): Copy the profile to
9715 the active target.
9716 * config/arm/arm.h (TARGET_ARM_ARCH_PROFILE): Use
9717 arm_active_target.profile.
9718
9719 2017-06-28 Richard Biener <rguenther@suse.de>
9720
9721 PR middle-end/81227
9722 * fold-const.c (negate_expr_p): Use TYPE_UNSIGNED, not
9723 TYPE_OVERFLOW_WRAPS.
9724 * match.pd (negate_expr_p): Likewise.
9725 * tree-ssa-reassoc.c (optimize_range_tests_diff): Use
9726 fold_build2, not fold_binary.
9727
9728 2017-06-28 Wilco Dijkstra <wdijkstr@arm.com>
9729
9730 * config/aarch64/aarch64 (aarch64_expand_mov_immediate):
9731 Convert memory address to Pmode.
9732 (aarch64_print_operand): Assert MEM operands are always Pmode.
9733
9734 2017-06-28 Wilco Dijkstra <wdijkstr@arm.com>
9735
9736 PR target/79665
9737 * config/arm/aarch-common.c (arm_no_early_alu_shift_dep):
9738 Remove redundant if.
9739 (aarch_forward_to_shift_is_not_shifted_reg): Remove.
9740 * config/arm/aarch-common-protos.h
9741 (aarch_forward_to_shift_is_not_shifted_re): Remove.
9742 * config/arm/cortex-a53.md: Use arm_no_early_alu_shift_dep in bypass.
9743
9744 2017-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
9745
9746 PR ipa/81238
9747 * multiple_target.c (create_dispatcher_calls): Set the default
9748 clone to be static, not public.
9749
9750 2017-06-28 Richard Biener <rguenther@suse.de>
9751
9752 * tree-vect-loop.c (vectorizable_reduction): Move special
9753 cond reduction IV var creation ...
9754 (vect_create_epilog_for_reduction): ... here. Remove induction_index
9755 parameter. Use STMT_VINFO_VECTYPE.
9756 * tree-vect-slp.c (vect_get_constant_vectors): Properly reset
9757 constant_p.
9758
9759 2017-06-28 Martin Liska <mliska@suse.cz>
9760
9761 PR ipa/81128
9762 * ipa-visibility.c (non_local_p): Handle visibility.
9763
9764 2017-06-28 Martin Liska <mliska@suse.cz>
9765
9766 PR driver/79659
9767 * common.opt: Add IntegerRange to various options.
9768 * opt-functions.awk (integer_range_info): New function.
9769 * optc-gen.awk: Add integer_range_info to cl_options struct.
9770 * opts-common.c (decode_cmdline_option): Handle
9771 CL_ERR_INT_RANGE_ARG.
9772 (cmdline_handle_error): Likewise.
9773 * opts.c (print_filtered_help): Show valid interval in
9774 when --help is provided.
9775 * opts.h (struct cl_option): Add range_min and range_max fields.
9776 * config/i386/i386.opt: Add IntegerRange for -mbranch-cost.
9777
9778 2017-06-28 Marc Glisse <marc.glisse@inria.fr>
9779
9780 * match.pd ((X & ~Y) | (~X & Y)): Generalize to + and ^.
9781 (x * C EQ/NE y * C): New transformation.
9782
9783 2017-06-28 Christophe Lyon <christophe.lyon@linaro.org>
9784
9785 * genmultilib (combination_space): Accept '+' in option names.
9786
9787 2017-06-28 Martin Liska <mliska@suse.cz>
9788
9789 PR sanitizer/81224
9790 * asan.c (instrument_derefs): Bail out inner references
9791 that are hard register variables.
9792
9793 2017-06-28 Jakub Jelinek <jakub@redhat.com>
9794
9795 PR target/81175
9796 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use def_builtin
9797 rather than def_builtin_pure for __builtin_ia32_gatherpf*.
9798
9799 2017-06-28 Richard Biener <rguenther@suse.de>
9800
9801 * tree-vectorizer.h (vect_get_vec_defs): Remove.
9802 (vect_get_slp_defs): Adjust.
9803 * tree-vect-loop.c (get_initial_defs_for_reduction): Split
9804 out from ...
9805 * tree-vect-slp.c (vect_get_constant_vectors): ... here and
9806 simplify.
9807 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
9808 get_initial_defs_for_reduction instead of vect_get_vec_defs.
9809 (vectorizable_reduction): Adjust.
9810 * tree-vect-slp.c (vect_get_constant_vectors): Remove reduction
9811 handling.
9812 (vect_get_slp_defs): Likewise.
9813 * tree-vect-stmts.c (vect_get_vec_defs): Make static and adjust.
9814 (vectorizable_bswap): Adjust.
9815 (vectorizable_call): Likewise.
9816 (vectorizable_conversion): Likewise.
9817 (vectorizable_assignment): Likewise.
9818 (vectorizable_shift): Likewise.
9819 (vectorizable_operation): Likewise.
9820 (vectorizable_store): Likewise.
9821 (vectorizable_condition): Likewise.
9822 (vectorizable_comparison): Likewise.
9823
9824 2017-06-28 Michael Collison <michael.collison@arm.com>
9825
9826 PR target/68535
9827 * config/arm/arm.c (gen_ldm_seq): Remove last unnecessary
9828 set of base_reg
9829 (arm_gen_movmemqi): Removed unused variable 'i'.
9830 Convert 'for' loop into 'while' loop.
9831 (arm_expand_prologue): Remove last unnecessary set of insn.
9832 (thumb_pop): Remove unused variable 'pushed_words'.
9833 (thumb_exit): Remove last unnecessary set of regs_to_pop.
9834
9835 2017-06-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9836
9837 * config/s390/predicates.md: Use s390_rel_address_ok_p.
9838 * config/s390/s390-protos.h: Add prototype of
9839 s390_rel_address_ok_p.
9840 * config/s390/s390.c (s390_got_symbol): New function.
9841 (s390_rel_address_ok_p): New function.
9842 (legitimize_pic_address): Use s390_rel_address_ok_p.
9843 (s390_load_got): Use s390_got_symbol.
9844 (s390_option_override): Issue error if
9845 -mno-pic-data-is-text-relative is used without -fpic/-fPIC.
9846 * config/s390/s390.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
9847 New macro.
9848 * config/s390/s390.opt: New option mpic-data-is-text-relative.
9849
9850 2017-06-27 Andrew Pinski <apinski@cavium.com>
9851
9852 * match.pd (X >/>=/</<= 0 ? 1.0 : -1.0): New patterns.
9853 (X * copysign (1.0, X)): New pattern.
9854 (X * copysign (1.0, -X)): New pattern.
9855 (copysign (-1.0, CST)): New pattern.
9856
9857 2017-06-27 Joseph Myers <joseph@codesourcery.com>
9858
9859 * genmultilib (combination_space): Remove variable.
9860 Validate reuse rules against regular expression for any sequence
9861 of multilib options in any order.
9862
9863 2017-06-27 Michael Collison <michael.collison@arm.com>
9864
9865 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Directly
9866 call aarch64_split_simd_combine.
9867 * (aarch64_combine_internal<mode>): Delete pattern.
9868 * config/aarch64/aarch64.c (aarch64_split_simd_combine):
9869 Allow register and subreg operands.
9870
9871 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
9872
9873 * config/i386/vxworks.h (ASM_SPEC): Remove definition. No target
9874 specific need, just fallback on defaults.
9875 (ASM_OUTPUT_ALIGNED_BSS): Add #undef before #define.
9876
9877 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
9878 Olivier Hainque <hainque@adacore.com>
9879
9880 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Pick distinct
9881 map for 64bits.
9882 (TARGET_OS_CPP_BUILTINS): builtin_define CPU to X86_64 for 64bit
9883 targets. Pick a default if no particular attempt applied.
9884 (STACK_CHECK_PROTECT): Double for 64bit targets, which have
9885 larger contexts.
9886
9887 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
9888
9889 * config.gcc (i*86-wrs-vxworks7): Handle new acceptable triplet.
9890 (x86_64-wrs-vxworks7): Likewise.
9891
9892 2017-06-27 Marek Polacek <polacek@redhat.com>
9893
9894 PR sanitizer/81223
9895 * ubsan.c (instrument_null): Check get_base_address's result for null.
9896
9897 2017-06-27 Marc Glisse <marc.glisse@inria.fr>
9898
9899 * match.pd ((A+-B)+(C-A), (A+B)-(A-C)): New transformations.
9900
9901 2017-06-27 Marc Glisse <marc.glisse@inria.fr>
9902
9903 * builtin-types.def (BT_FENV_T_PTR, BT_CONST_FENV_T_PTR,
9904 BT_FEXCEPT_T_PTR, BT_CONST_FEXCEPT_T_PTR): New primitive types.
9905 (BT_FN_INT_FENV_T_PTR, BT_FN_INT_CONST_FENV_T_PTR,
9906 BT_FN_INT_FEXCEPT_T_PTR_INT, BT_FN_INT_CONST_FEXCEPT_T_PTR_INT):
9907 New function types.
9908 * builtins.def (BUILT_IN_FECLEAREXCEPT, BUILT_IN_FEGETENV,
9909 BUILT_IN_FEGETEXCEPTFLAG, BUILT_IN_FEGETROUND,
9910 BUILT_IN_FEHOLDEXCEPT, BUILT_IN_FERAISEEXCEPT,
9911 BUILT_IN_FESETENV, BUILT_IN_FESETEXCEPTFLAG,
9912 BUILT_IN_FESETROUND, BUILT_IN_FETESTEXCEPT,
9913 BUILT_IN_FEUPDATEENV): New builtins.
9914 * tree-core.h (TI_FENV_T_PTR_TYPE, TI_CONST_FENV_T_PTR_TYPE,
9915 TI_FEXCEPT_T_PTR_TYPE, TI_CONST_FEXCEPT_T_PTR_TYPE): New entries.
9916 * tree.h (fenv_t_ptr_type_node, const_fenv_t_ptr_type_node,
9917 fexcept_t_ptr_type_node, const_fexcept_t_ptr_type_node): New
9918 macros.
9919 (builtin_structptr_types): Adjust size.
9920 * tree.c (builtin_structptr_types): Add four entries.
9921
9922 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
9923 Olivier Hainque <hainque@adacore.com>
9924
9925 * config/vxworks.h (VXWORKS_LIB_SPEC): Incorporate ...
9926 (TLS_SYM): New local macro, forcing reference to __tls__ on
9927 link command lines for VxWorks 7 RTPs, triggering initialization
9928 of tlsLib.
9929 (VXWORKS_HAVE_TLS): New macro. State whether the target VxWorks
9930 OS features TLS support, true for RTPs on VxWorks 7.
9931 * config/vxworks.c (vxworks_override_options): Setup emutls
9932 accordingly.
9933
9934 2017-06-27 Jakub Jelinek <jakub@redhat.com>
9935
9936 * predict.c (test_prediction_value_range): Use -1U instead of -1
9937 to avoid narrowing conversion warning.
9938 * dumpfile.c (dump_options): Wrap all value into dump_flags_t cast
9939 to avoid narrowing conversion warning.
9940 * opt-functions.awk (var_ref): Return (unsigned short) -1 instead of
9941 -1.
9942 * optc-gen.awk (END): Expect (unsigned short) -1 instead of -1.
9943
9944 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
9945
9946 * config/vxworks.h (VXWORKS_LIBS_RTP): Alternative definition for
9947 64bit configurations.
9948 (PTR_DIFF_TYPE): Alternative definition for TARGET_LP64.
9949 (SIZE_TYPE): Likewise.
9950 * config/vxworks.c (vxworks_emutls_var_fields): Use
9951 long_unsigned_type_node instead of unsigned_type_node as the offset
9952 field type, which is "pointer" mode in emutls.c.
9953
9954 2017-06-27 Jakub Jelinek <jakub@redhat.com>
9955
9956 PR sanitizer/81209
9957 * ubsan.c (ubsan_encode_value): Initialize DECL_CONTEXT on var.
9958
9959 PR middle-end/81207
9960 * gimple-fold.c (replace_call_with_call_and_fold): Handle
9961 gimple_vuse copying separately from gimple_vdef copying.
9962
9963 2017-06-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9964
9965 * value-prof.c (free_hist): Remove call to memset and the enclosing if
9966 condition.
9967
9968 2017-06-26 Jerome Lambourg <lambourg@adacore.com>
9969 Olivier Hainque <hainque@adacore.com>
9970
9971 * config.gcc (*-*-vxworks*): Add TARGET_VXWORKS7=1 to tm_defines
9972 for all vxworks7 targets.
9973 * config/vxworks.h (TARGET_VXWORKS7): If not defined, define to 0.
9974 (VXWORKS_ADDITIONAL_CPP_SPEC): Alternative definition for VXWORKS7.
9975 (VXWORKS_LIBS_RTP, VXWORKS_LIBS_RTP_DIR): New macros, allowing
9976 variations for VX6/VX7 and 32/64bits later on in ...
9977 (VXWORKS_LIB_SPEC): Leverage new macros.
9978 (VXWORKS_OS_CPP_BUILTINS): Define _VSB_CONFIG_FILE for VXWORKS7,
9979 as well as _ALLOW_KEYWORD_MACROS when "inline" is not a keyword.
9980
9981 2017-06-26 Jerome Lambourg <lambourg@adacore.com>
9982
9983 * config/vxworks.h (VXWORKS_OS_CPP_BUILTINS): builtin_define
9984 _VX_TOOL_FAMILY and _VX_TOOL to gnu.
9985
9986 2017-06-26 Carl Love <cel@us.ibm.com>
9987
9988 * config/rs6000/rs6000-c.c: Add support for built-in functions
9989 vector bool char vec_reve (vector bool char);
9990 vector signed char vec_reve (vector signed char);
9991 vector unsigned char vec_reve (vector unsigned char);
9992 vector bool int vec_reve (vector bool int);
9993 vector signed int vec_reve (vector signed int);
9994 vector unsigned int vec_reve (vector unsigned int);
9995 vector bool long long vec_reve (vector bool long long);
9996 vector signed long long vec_reve (vector signed long long);
9997 vector unsigned long long vec_reve (vector unsigned long long);
9998 vector bool short vec_reve (vector bool short);
9999 vector signed short vec_reve (vector signed short);
10000 vector double vec_reve (vector double);
10001 vector float vec_reve (vector float);
10002 * config/rs6000/rs6000-builtin.def (VREVE_V2DI, VREVE_V4SI,
10003 VREVE_V8HI, VREVE_V16QI, VREVE_V2DF, VREVE_V4SF, VREVE): New builtin.
10004 * config/rs6000/altivec.md (UNSPEC_VREVEV): New UNSPEC.
10005 (altivec_vreve): New pattern.
10006 * config/rs6000/altivec.h (vec_reve): New define.
10007 * doc/extend.texi (vec_rev): Update the built-in documentation file
10008 for the new built-in functions.
10009
10010 2016-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10011
10012 PR tree-optimization/71815
10013 * gimple-ssa-strength-reduction.c (uses_consumed_by_stmt): New
10014 function.
10015 (find_basis_for_candidate): Call uses_consumed_by_stmt rather than
10016 has_single_use.
10017 (slsr_process_phi): Likewise.
10018 (replace_uncond_cands_and_profitable_phis): Don't replace a
10019 multiply candidate with a stride of 1 (copy or cast).
10020 (phi_incr_cost): Call uses_consumed_by_stmt rather than
10021 has_single_use.
10022 (lowest_cost_path): Likewise.
10023 (total_savings): Likewise.
10024
10025 2017-06-26 Richard Biener <rguenther@suse.de>
10026
10027 PR target/81175
10028 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
10029 Use def_builtin_pure for all gather builtins.
10030
10031 2017-06-26 Richard Biener <rguenther@suse.de>
10032
10033 PR tree-optimization/81203
10034 * tree-tailcall.c (find_tail_calls): Do not move stmts into
10035 non-dominating BBs.
10036
10037 2017-06-26 Marek Polacek <polacek@redhat.com>
10038
10039 PR c/80116
10040 * doc/invoke.texi: Document -Wmultistatement-macros.
10041
10042 2017-06-26 Christophe Lyon <christophe.lyon@linaro.org>
10043
10044 * doc/sourcebuild.texi (ARM-specific attributes): Document new
10045 arm_neon_ok_no_float_abi effective target.
10046
10047 2017-06-26 Richard Biener <rguenther@suse.de>
10048
10049 PR tree-optimization/80928
10050 * cfghooks.c (duplicate_block): Do not copy BB_DUPLICATED flag.
10051 (copy_bbs): Set BB_DUPLICATED flag early.
10052 (execute_on_growing_pred): Do not execute for BB_DUPLICATED
10053 marked blocks.
10054 (execute_on_shrinking_pred): Likewise.
10055 * tree-ssa.c (ssa_redirect_edge): Do not look for PHI args in
10056 BB_DUPLICATED blocks.
10057 * tree-ssa-phionlycoprop.c (eliminate_degenerate_phis_1): Properly
10058 iterate over all PHIs considering removal of *gsi.
10059
10060 2017-06-23 Jim Wilson <jim.wilson@linaro.org>
10061
10062 * doc/invoke.texi (AArch64 Options, -mtune): Re-add falkor and
10063 qdf24xx.
10064
10065 2017-06-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10066
10067 * config/rs6000/rs6000-string.c: (expand_block_clear,
10068 do_load_for_compare, select_block_compare_mode,
10069 compute_current_alignment, expand_block_compare,
10070 expand_strncmp_align_check, expand_strn_compare,
10071 expand_block_move, rs6000_output_load_multiple)
10072 Move functions related to string/block move/compare
10073 to a separate file.
10074 * config/rs6000/rs6000.c: Move above functions to rs6000-string.c.
10075 * config/rs6000/rs6000-protos.h (rs6000_emit_dot_insn): Add prototype
10076 for this function which is now used in two files.
10077 * config/rs6000/t-rs6000: Add rule to compile rs6000-string.o.
10078 * config.gcc: Add rs6000-string.o to extra_objs for
10079 targets powerpc*-*-* and rs6000*-*-*.
10080
10081 2017-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
10082
10083 PR target/80510
10084 * config/rs6000/rs6000.md (ALTIVEC_DFORM): Do not allow DImode in
10085 32-bit, since indexed is not valid for DImode.
10086 (mov<mode>_hardfloat32): Reorder ISA 2.07 load/stores before ISA
10087 3.0 d-form load/stores to be the same as mov<mode>_hardfloat64.
10088 (define_peephole2 for Altivec d-form load): Add 32-bit support.
10089 (define_peephole2 for Altivec d-form store): Likewise.
10090
10091 PR ipa/81185
10092 * multiple_target.c (create_dispatcher_calls): Only create the
10093 dispatcher call if the function is the default clone of a
10094 versioned function.
10095
10096 2017-06-23 Segher Boessenkool <segher@kernel.crashing.org>
10097
10098 PR middle-end/80902
10099 * builtins.c (expand_builtin_atomic_fetch_op): If emitting code after
10100 a call, force the call to not be a tail call.
10101
10102 2017-06-23 Jeff Law <law@redhat.com>
10103
10104 * doc/contrib.texi: Add entry for Steven Pemberton's work on
10105 enquire.
10106
10107 2017-06-23 Will Schmidt <will_schmidt@vnet.ibm.com>
10108
10109 * config/rs6000/rs6000.c: Add include of ssa-propagate.h for
10110 update_call_from_tree(). (rs6000_gimple_fold_builtin): Add
10111 handling for early expansion of vector shifts (sl,sr,sra,rl).
10112 (builtin_function_type): Add vector shift right instructions
10113 to the unsigned argument list.
10114
10115 2017-06-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
10116
10117 rtl-optimizatoin/79286
10118 * ira.c (update_equiv_regs): Revert to using may_trap_or_fault_p again.
10119 * rtlanal.c (rtx_addr_can_trap_p_1): SYMBOL_REF_FUNCTION_P can never
10120 trap. PIC register plus a const unspec without offset can never trap.
10121
10122 2017-06-23 Marc Glisse <marc.glisse@inria.fr>
10123
10124 * tree.h (builtin_structptr_type): New type.
10125 (builtin_structptr_types): Declare new array.
10126 * tree.c (builtin_structptr_types): New array.
10127 (free_lang_data, build_common_tree_nodes): Use it.
10128
10129 2017-06-23 Jonathan Wakely <jwakely@redhat.com>
10130
10131 PR c++/81187
10132 * doc/invoke.texi (-Wnoexcept-type): Fix name of option, from
10133 -Wnoexcept.
10134
10135 2017-06-22 Matt Turner <mattst88@gmail.com>
10136
10137 * config/i386/driver-i386.c (host_detect_local_cpu): Add Kaby
10138 Lake models to skylake case. Assume skylake for unknown
10139 models with clflushopt.
10140
10141 2017-06-22 Jeff Law <law@redhat.com>
10142
10143 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Handle
10144 frame sizes that do not satisfy aarch64_uimm12_shift.
10145
10146 2017-06-22 Jan Hubicka <hubicka@ucw.cz>
10147
10148 * profile-count.h (apply_probability,
10149 apply_scale, probability_in): Fix checks for zero.
10150
10151 2017-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10152
10153 * incpath.c (add_sysroot_to_chain): Allow for $SYSROOT prefix.
10154 * doc/cppdiropts.texi (-I @var{dir}): Document it.
10155
10156 2016-06-22 Richard Biener <rguenther@suse.de>
10157
10158 * tree-vect-loop.c (vect_model_reduction_cost): Handle
10159 COND_REDUCTION and INTEGER_INDUC_COND_REDUCTION without
10160 REDUC_MAX_EXPR support.
10161 (vectorizable_reduction): Likewise.
10162 (vect_create_epilog_for_reduction): Likewise.
10163
10164 2017-06-22 James Greenhalgh <james.greenhalgh@arm.com>
10165
10166 * match.pd (A / (1 << B) -> A >> B): New.
10167 * generic-match-head.c: Include optabs-tree.h.
10168 * gimple-match-head.c: Likewise.
10169 * optabs-tree.h (target_supports_op_p): New.
10170 * optabs-tree.c (target_supports_op_p): New.
10171
10172 2017-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10173
10174 * configure.ac (gcc_cv_ld_static_dynamic): Also check stderr for
10175 $gcc_cv_ld --help output.
10176 (gcc_cv_ld_demangle): Likewise.
10177 (gcc_cv_ld_eh_frame_hdr): Likewise.
10178 (gcc_cv_ld_pie): Likewise.
10179 (gcc_cv_ld_as_needed): Likewise. Prefer native forms unless $gnu_ld.
10180 (gcc_cv_ld_buildid): Likewise.
10181 (gcc_cv_ld_sysroot): Likewise.
10182 (ld_bndplt_support): Likewise.
10183 (ld_pushpopstate_support): Likewise.
10184 * configure: Regenerate.
10185 * config/sol2.h [!USE_GLD] (SYSROOT_SPEC): Define.
10186
10187 2017-06-21 Jakub Jelinek <jakub@redhat.com>
10188
10189 PR target/81151
10190 * config/i386/sse.md (round<mode>2): Renumber match_dup and
10191 operands indexes to avoid gap between operands and match_dups.
10192
10193 2017-06-21 Andrew Pinski <apinski@cavium.com>
10194
10195 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
10196 Increment Arith_shift and Arith_shift_reg by 1.
10197 * config/aarch64/aarch64-tuning-flags.def (cheap_shift_extend):
10198 New tuning flag.
10199 * config/aarch64/aarch64.c (thunderx_tunings): Enable
10200 AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
10201 (aarch64_strip_extend): Add new argument and test for it.
10202 (aarch64_cheap_mult_shift_p): New function.
10203 (aarch64_rtx_mult_cost): Call aarch64_cheap_mult_shift_p and don't
10204 add a cost if it is true.
10205 Update calls to aarch64_strip_extend.
10206 (aarch64_rtx_costs): Update calls to aarch64_strip_extend.
10207
10208 2017-06-21 Andrew Pinski <apinski@cavium.com>
10209
10210 * config/aarch64/aarch64-cores.def (thunderxt88p1): Use thunderxt88
10211 tunings.
10212 (thunderxt88): Likewise.
10213 * config/aarch64/aarch64.c (thunderxt88_prefetch_tune): New variable.
10214 (thunderx_prefetch_tune): New variable.
10215 (thunderx2t99_prefetch_tune): Update for the correct values.
10216 (thunderxt88_tunings): New variable.
10217 (thunderx_tunings): Use thunderx_prefetch_tune instead of
10218 generic_prefetch_tune.
10219 (thunderx2t99_tunings): Use AUTOPREFETCHER_WEAK.
10220
10221 2017-06-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10222
10223 * config/aarch64/atomics.md (aarch64_compare_and_swap<mode>_lse,
10224 SHORT): Relax operand 3 to aarch64_reg_or_zero and constraint to Z.
10225 (aarch64_compare_and_swap<mode>_lse, GPI): Likewise.
10226 (aarch64_atomic_cas<mode>, SHORT): Likewise for operand 2.
10227 (aarch64_atomic_cas<mode>, GPI): Likewise.
10228
10229 2017-06-21 Martin Liska <mliska@suse.cz>
10230
10231 * gimplify.c (gimplify_label_expr): Insert GIMPLE_PREDICT
10232 statements on cold and hot labels.
10233 * predict.c (tree_estimate_probability_bb): Remove the
10234 prediction from this place.
10235
10236 2017-06-21 Martin Liska <mliska@suse.cz>
10237
10238 PR tree-optimization/79489
10239 * gimplify.c (maybe_add_early_return_predict_stmt): New
10240 function.
10241 (gimplify_return_expr): Call the function.
10242 * predict.c (tree_estimate_probability_bb): Remove handling
10243 of early return.
10244 * predict.def: Update comment about early return predictor.
10245 * gimple-predict.h (is_gimple_predict): New function.
10246 * predict.def: Change default value of early return to 66.
10247 * tree-tailcall.c (find_tail_calls): Skip GIMPLE_PREDICT
10248 statements.
10249 * passes.def: Put pass_strip_predict_hints to the beginning of
10250 IPA passes.
10251
10252 2017-06-21 Pierre-Marie de Rodat <derodat@adacore.com>
10253
10254 * dwarf2out.c (gen_decl_die): Remove the guard to skip file-scope
10255 FUNCTION_DECL declarations.
10256 (dwarf2out_early_global_decl): Remove the guard to skip FUNCTION_DECL
10257 declarations.
10258 (dwaf2out_decl): Likewise.
10259 * godump.c (go_early_global_decl): Skip call to the real debug hook
10260 for FUNCTION_DECL declarations.
10261 * passes.c (rest_of_decl_compilation): Skip call to the
10262 early_global_decl debug hook for FUNCTION_DECL declarations, unless
10263 -fdump-go-spec is passed.
10264
10265 2017-06-21 Marc Glisse <marc.glisse@inria.fr>
10266
10267 * config/i386/i386.c (struct builtin_isa): New field pure_p.
10268 Reorder for compactness.
10269 (def_builtin, def_builtin2, ix86_add_new_builtins): Handle pure_p.
10270 (def_builtin_pure, def_builtin_pure2): New functions.
10271 (ix86_init_mmx_sse_builtins) [__builtin_ia32_stmxcsr]: Mark as pure.
10272
10273 2017-06-21 Marc Glisse <marc.glisse@inria.fr>
10274
10275 * match.pd (nop_convert): New predicate.
10276 ((A +- CST1) +- CST2): Allow some NOP conversions.
10277
10278 2017-06-21 Jakub Jelinek <jakub@redhat.com>
10279
10280 PR c++/81130
10281 * gimplify.c (omp_add_variable): Don't force GOVD_SEEN for types
10282 with ctors/dtors if GOVD_SHARED is set.
10283
10284 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
10285
10286 * config/aarch64/aarch64.md (movti_aarch64):
10287 Emit mov rather than orr.
10288 (movtf_aarch64): Likewise.
10289 * config/aarch64/aarch64-simd.md (aarch64_simd_mov):
10290 Emit mov rather than orr.
10291
10292 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
10293
10294 * config/aarch64/aarch64-simd.md (aarch64_simd_dup):
10295 Swap alternatives, make integer dup more expensive.
10296
10297 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
10298
10299 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p):
10300 Return true for non-tls symbols.
10301
10302 2017-06-21 James Greenhalgh <james.greenhalgh@arm.com>
10303
10304 * config/aarch64/aarch64-cores.def (cortex-a55): New.
10305 (cortex-a75): Likewise.
10306 (cortex-a75.cortex-a55): Likewise.
10307 * config/aarch64/aarch64-tune.md: Regenerate.
10308 * doc/invoke.texi (-mtune): Document new values for -mtune.
10309
10310 2017-06-21 Tom de Vries <tom@codesourcery.com>
10311
10312 * doc/sourcebuild.texi (Add Options, Features for dg-add-options): Add
10313 stack_size feature.
10314 (Effective-Target Keywords, Other attributes): Suggest using
10315 dg-add-options stack_size feature to get stack limit in stack_size
10316 effective target documentation.
10317
10318 2017-06-21 Julian Brown <julian@codesourcery.com>
10319 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
10320
10321 * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi)
10322 (aarch64_crypto_pmullv2di): Change type attribute to crypto_pmull.
10323 * config/aarch64/thunderx2t99.md (thunderx2t99_pmull): New
10324 reservation.
10325 * config/arm/cortex-a53.md (cortex_a53_advsimd_type): Add crypto_pmull to
10326 attribute type list for neon_multiply.
10327 * config/arm/cortex-a57.md (cortex_a57_neon_type): Add crypto_pmull to
10328 attribute type list for neon_multiply.
10329 * config/arm/crypto.md (crypto_vmullp64): Change type to crypto_pmull.
10330 * config/arm/exynos-m1.md (exynos_m1_neon_type): Add crypto_pmull to
10331 attribute type list for neon_multiply.
10332 * config/arm/types.md (crypto_pmull): Add.
10333 * config/arm/xgene1.md (xgene1_neon_pmull): Add crypto_pmull to
10334 attribute type list.
10335
10336 2017-06-20 Andreas Tobler <andreast@gcc.gnu.org>
10337
10338 * config.gcc (armv6*-*-freebsd*): Change the target_cpu_cname to
10339 arm1176jzf-s.
10340
10341 2017-06-20 Jakub Jelinek <jakub@redhat.com>
10342
10343 * ira-costs.c (find_costs_and_classes): Initialize cost_classes later
10344 to make sure not to dereference a NULL cost_classes_ptr pointer.
10345
10346 2017-06-20 Carl Love <cel@us.ibm.com>
10347
10348 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10349 ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
10350 ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
10351 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
10352 builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
10353 * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
10354 VMULOSW): New enum "unspec" values.
10355 (vec_widen_umult_even_v4si, vec_widen_smult_even_v4si,
10356 vec_widen_umult_odd_v4si, vec_widen_smult_odd_v4si,
10357 altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
10358 altivec_vmulosw): New patterns.
10359 * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
10360 VMULOSW): Add definitions.
10361
10362 2017-06-20 Julia Koval <julia.koval@intel.com>
10363
10364 * config/i386/i386.c: Fix rounding expand for new pattern.
10365 * config/i386/subst.md: Fix pattern (parallel -> unspec).
10366
10367 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
10368
10369 * config/aarch64/aarch64-option-extensions.def (rcpc): New.
10370 * config/aarch64/aarch64.h (AARCH64_FL_RCPC): New.
10371
10372 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
10373
10374 * config/aarch64/aarch64-option-extensions.def (fp16): Fix expected
10375 feature string.
10376
10377 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
10378
10379 * config/aarch64/aarch64-cores.def: Rearrange to sort by
10380 architecture, then by implementer ID.
10381 * config/aarch64/aarch64-tune.md: Regenerate.
10382
10383 2017-06-20 Richard Biener <rguenther@suse.de>
10384
10385 PR middle-end/81097
10386 * fold-const.c (split_tree): Fold to type before negating.
10387
10388 2017-06-20 David Malcolm <dmalcolm@redhat.com>
10389
10390 * diagnostic-show-locus.c
10391 (selftest::test_fixit_deletion_affecting_newline): New function.
10392 (selftest::diagnostic_show_locus_c_tests): Call it.
10393
10394 2017-06-20 Andreas Schwab <schwab@suse.de>
10395
10396 PR target/80970
10397 * config/m68k/m68k.md (bsetdreg, bchgdreg, bclrdreg): Use "=d"
10398 instead of "+d".
10399
10400 2017-06-20 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
10401
10402 * config/arm/arm-c.c (arm_cpu_builtins): New block to define
10403 __ARM_FEATURE_COPROC according to support.
10404
10405 2017-06-20 Jakub Jelinek <jakub@redhat.com>
10406
10407 * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
10408 Rewritten to avoid overflow for > 32-bit pointers.
10409
10410 PR sanitizer/81125
10411 * ubsan.h (ubsan_encode_value): Workaround buggy clang++ parser
10412 by removing enum keyword.
10413 (ubsan_type_descriptor): Likewise. Formatting fix.
10414
10415 PR target/81121
10416 * config/i386/i386.md (TARGET_USE_VECTOR_CONVERTS float si->{sf,df}
10417 splitter): Require TARGET_SSE2 in the condition.
10418
10419 2017-06-20 Michael Meissner <meissner@linux.vnet.ibm.com>
10420
10421 PR target/79799
10422 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Add support
10423 for doing vector set of SFmode on ISA 3.0.
10424 * config/rs6000/vsx.md (vsx_set_v4sf_p9): Likewise.
10425 (vsx_set_v4sf_p9_zero): Special case setting 0.0f to a V4SF
10426 element.
10427 (vsx_insert_extract_v4sf_p9): Add an optimization for inserting a
10428 SFmode value into a V4SF variable that was extracted from another
10429 V4SF variable without converting the element to double precision
10430 and back to single precision vector format.
10431 (vsx_insert_extract_v4sf_p9_2): Likewise.
10432
10433 2017-06-19 Jakub Jelinek <jakub@redhat.com>
10434
10435 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Multiply
10436 in UWHI to avoid undefined overflow.
10437
10438 PR sanitizer/81125
10439 * ubsan.h (enum ubsan_encode_value_phase): New.
10440 (ubsan_encode_value): Change second argument to
10441 enum ubsan_encode_value_phase with default value of
10442 UBSAN_ENCODE_VALUE_GENERIC.
10443 * ubsan.c (ubsan_encode_value): Change second argument to
10444 enum ubsan_encode_value_phase PHASE from bool IN_EXPAND_P,
10445 adjust uses, for UBSAN_ENCODE_VALUE_GENERIC use just
10446 create_tmp_var_raw instead of create_tmp_var and use a
10447 TARGET_EXPR.
10448 (ubsan_expand_bounds_ifn, ubsan_build_overflow_builtin,
10449 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
10450 ubsan_encode_value callers.
10451
10452 PR sanitizer/81111
10453 * ubsan.c (ubsan_encode_value): If current_function_decl is NULL,
10454 use create_tmp_var_raw instead of create_tmp_var, mark it addressable
10455 just by setting TREE_ADDRESSABLE on the result and use a TARGET_EXPR.
10456
10457 2017-06-19 Richard Biener <rguenther@suse.de>
10458
10459 PR middle-end/81118
10460 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop): Clear niter
10461 estimates if we changed anything.
10462
10463 2017-06-19 Richard Biener <rguenther@suse.de>
10464
10465 PR tree-optimization/80887
10466 * tree-ssa-sccvn.c (mprts_hook_cnt): New global.
10467 (vn_lookup_simplify_result): Allow only mprts_hook_cnt succesful
10468 simplified lookups, then reset mprts_hook.
10469 (vn_nary_build_or_lookup_1): Set mprts_hook_cnt to 9 before
10470 simplifying.
10471 (try_to_simplify): Likewise.
10472
10473 2017-06-19 Martin Liska <mliska@suse.cz>
10474
10475 PR sanitizer/80879
10476 * gimplify.c (gimplify_switch_expr):
10477 Initialize live_switch_vars for SWITCH_BODY == STATEMENT_LIST.
10478
10479 2017-06-19 Martin Liska <mliska@suse.cz>
10480
10481 * doc/install.texi: Document that PGO runs in 4 stages.
10482
10483 2017-06-19 Martin Liska <mliska@suse.cz>
10484
10485 PR ipa/80732
10486 * attribs.c (make_dispatcher_decl): Do not append '.ifunc'
10487 to dispatcher function name.
10488 * multiple_target.c (replace_function_decl): New function.
10489 (create_dispatcher_calls): Redirect both edges and references.
10490
10491 2017-06-19 Jan Hubicka <hubicka@ucw.cz>
10492
10493 * profile-count.c (profile_count::dump): Dump quality.
10494 (profile_count::differs_from_p): Update for unsigned val.
10495 * profile-count.h (profile_count_quality): New enum.
10496 (profile_count): Turn m_val to 62bit unsigned, add quality tracking.
10497
10498 2017-06-19 Richard Biener <rguenther@suse.de>
10499
10500 * tree-ssa-loop-niter.h (estimate_numbers_of_iterations): Take
10501 struct function as arg.
10502 (estimate_numbers_of_iterations): Export overload with loop arg.
10503 (free_numbers_of_iterations_estimates_loop): Use an overload of
10504 free_numbers_of_iterations_estimates instead.
10505 * tree-cfg.c (remove_bb): Adjust.
10506 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Likewise.
10507 * tree-parloops.c (gen_parallel_loop): Likewise.
10508 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
10509 Likewise.
10510 (tree_unroll_loops_completely): Likewise.
10511 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
10512 Use an overload instead and export.
10513 (estimated_loop_iterations): Adjust.
10514 (max_loop_iterations): Likewise.
10515 (likely_max_loop_iterations): Likewise.
10516 (estimate_numbers_of_iterations): Take struct function as arg
10517 and adjust.
10518 (loop_exits_before_overflow): Adjust.
10519 (free_numbers_of_iterations_estimates_loop): Use an overload.
10520 * tree-vect-loop.c (vect_analyze_loop_form): Adjust.
10521 * tree-vectorizer.c (vect_free_loop_info_assumptions): Likewise.
10522
10523 2017-06-19 Richard Biener <rguenther@suse.de>
10524
10525 PR ipa/81112
10526 * ipa-prop.c (find_constructor_constant_at_offset): Handle
10527 RANGE_EXPR conservatively.
10528
10529 2017-06-16 Carl Love <cel@us.ibm.com>
10530
10531 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10532 definitions for vec_float, vec_float2, vec_floato,
10533 vec_floate built-ins.
10534 * config/rs6000/vsx.md (define_c_enum "unspec"): Add RTL code
10535 for instructions vsx_xvcvsxws vsx_xvcvuxwsp, float2, floato and
10536 floate.
10537 * config/rs6000/rs6000-builtin.def (FLOAT2_V2DI, FLOATE_V2DF,
10538 FLOATE_2DI, FLOATO_V2DF, FLOATEE_V2DI, XVCVSXWSP_V4SF,
10539 UNS_FLOATO_V2DI, UNS_FLOATE_V2DI): Add definitions.
10540 * config/altivec.md (define_insn "p8_vmrgew_<mode>",
10541 define_mode_attr VF_sxddp): Add V4SF type to p8_vmrgew.
10542 * config/rs6000/altivec.h (vec_float, vec_float2, vec_floate,
10543 vec_floato): Add builtin defines.
10544 * doc/extend.texi (vec_float, vec_float2, vec_floate, vec_floato):
10545 Update the built-in documentation file for the new built-in
10546 functions.
10547
10548 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10549
10550 * config/arm/arm.opt (marm): Mark as the negative of of -mthumb.
10551 (mthumb): Mark as the negative of -marm.
10552
10553 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10554
10555 * doc/invoke.texi (ARM Options, -mcpu): Document supported
10556 extension options.
10557 (ARM Options, -mtune): Document that this accepts the same
10558 extension options as -mcpu.
10559 (ARM Options, -mfpu): Document addition of -mfpu=auto.
10560
10561 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10562
10563 * doc/invoke.texi (ARM Options, -march=): Document new syntax and
10564 permitted extensions.
10565
10566 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10567
10568 * config/arm/arm-cpus.in (armv7): Add extension +nofp.
10569 (armv7-r): Add aliases vfpv3xd and vfpv3-d16.
10570 (armv8-m.main): Add option +nodsp.
10571 * config/arm/arm-cpu-cdata.h: Regenerated.
10572
10573 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10574
10575 * config/arm/t-fuchsia: New file.
10576 * config.gcc (arm*-*-fuchsia*): Use it.
10577
10578 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10579
10580 * config/arm/t-symbian: Rewrite for new option infrastructure.
10581
10582 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10583
10584 * config/arm/t-phoenix (MULTILIB_REUSE): Clear variable.
10585 (MULTILIB_REQUIRED): Likewise.
10586
10587 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10588
10589 * config/arm/t-linux-eabi (MULTILIB_EXCEPTIONS): Set to empty.
10590 (MULTILIB_RESUE): Likewise.
10591 (MULTILIB_MATCHES): Likewise.
10592 (MULTLIB_REQUIRED): Likewise.
10593
10594 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10595
10596 * config/arm/t-rtems: Rewrite for new option framework.
10597
10598 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10599
10600 * config/arm/t-aprofile (v7_a_nosimd_variants, v7_a_simd_variants)
10601 (v7ve_nosimd_variatns, v7ve_vfpv3_simd_variants)
10602 (v7ve_vfpv4_simd_variants, v8_a_nosimd_variants, v8_a_simd_variants)
10603 (v8_1_a_simd_variants, v8_2_a_simd_variants): Move to ...
10604 * config/arm/t-multilib: ... here.
10605 (MULTILIB_OPTIONS): Add armv7 and armv7+fp architectures.
10606 (MULTILIB_MATCHES): Use armv7 libraries for armv7-r. Also use for
10607 armv7-a and armv8*-a when A-profile libraries have not been built.
10608 * config/arm/t-rmprofile: Rewrite.
10609
10610 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10611
10612 * genmultilib (multilib_reuse): Allow an explicit period to be escaped
10613 with a backslash. Remove the backslash after substituting unescaped
10614 periods.
10615 * doc/fragments.texi (MULTILIB_REUSE): Document it.
10616
10617 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10618
10619 * config.gcc: (arm*-*-*): When building a-profile libraries, force
10620 the driver to pass through the default setting of -mfloat-abi.
10621 * common/config/arm/arm-common.c (arm_target_thumb_only): Return -marm
10622 rather than NULL.
10623 * config/arm/t-multilib (MULTILIB_REUSE): Initialize to empty.
10624 (all_feat_combs): New rule.
10625 (MULTILIB_OPTIONS): Use explicit ARM and Thumb directories. Rework
10626 default libraries.
10627 * config/arm/t-aprofile: Rewrite.
10628
10629 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10630
10631 * config/arm/arm.h (FPUTYPE_AUTO): Define.
10632 * config/arm/arm.c (arm_option_override): Use FPUTYPE_AUTO if the
10633 fpu is not specified by the user/command-line.
10634 * config/arm/bpabi.h (FPUTYPE_DEFAULT): Delete.
10635 * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Delete.
10636 * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Delete.
10637 * config/arm/vxworks.h (FPUTYPE_DEFAULT): Delete.
10638 * common/config/arm/arm-common.c (arm_canon_arch_option): Use
10639 FPUTYPE_AUTO insted of FPUTYPE_DEFAULT.
10640
10641 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10642
10643 * config/arm/elf.h (MULTILIB_DEFAULTS): Delete.
10644 * config/arm/t-arm-elf: Rewritten.
10645
10646 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10647
10648 * config/arm/arm.h (TARGET_HARD_FLOAT): Also check that we
10649 have some floating-point instructions.
10650 (TARGET_SOFT_FLOAT): Define as inverse of TARGET_HARD_FLOAT.
10651 (TARGET_MAYBE_HARD_FLOAT): New macro.
10652 * config/arm/arm-builtins.c (arm_init_builtins): Use
10653 TARGET_MAYBE_HARD_FLOAT.
10654 * config/arm/arm.c (arm_option_override): Use TARGET_HARD_FLOAT_ABI.
10655
10656 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10657
10658 * common/config/arm/arm-common.c: Define INCLUDE_LIST.
10659 (configargs.h): Include it.
10660 (arm_print_hint_for_fpu_option): New function.
10661 (arm_parse_fpu_option): New function.
10662 (candidate_extension): New class.
10663 (arm_canon_for_multilib): New function.
10664 * config/arm/arm.h (CANON_ARCH_SPEC_FUNCTION): New macro.
10665 (EXTRA_SPEC_FUNCTIONS): Add CANON_ARCH_SPEC_FUNCTION.
10666 (ARCH_CANONICAL_SPECS): New macro.
10667 (DRIVER_SELF_SPECS): Add ARCH_CANONICAL_SPECS.
10668
10669 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10670
10671 * config.gcc (arm*-*-*): Ensure both target_cpu_cname and with_cpu
10672 are set after handling multilib fragments. Set target_cpu_default2
10673 from with_cpu.
10674
10675 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10676
10677 * config.gcc (arm*-*-fucshia*): Set target_cpu_cname to the real
10678 cpu name.
10679 (arm*-*-*): Set target_cpu_default2 to a quoted string.
10680 * config/arm/parsecpu.awk (check_cpu): Validate any extension
10681 options.
10682 (check_arch): Likewise.
10683 * config/arm/arm.c (arm_configure_build_target): Handle
10684 TARGET_CPU_DEFAULT being a string constant. Scan any feature
10685 options in the default.
10686
10687 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10688
10689 * config/arm/arm-protos.h (cpu_arch_extension): Add field to record
10690 when an option is an alias of another.
10691 * config/arm/parsecpu.awk (optalias): New parser token.
10692 (gen_comm_data): Mark non-alias options as such. Emit entries
10693 for extension aliases.
10694 * config/arm/arm-cpus.in (armv5e): Make vfpv2 an alias.
10695 (armv5te, armv5tej, armv6, armv6j, armv6k, armv6z): Likewise.
10696 (armv6kz, armv6zk, armv6t2): Likewise.
10697 (armv7): Make vfpv3-d16 an alias.
10698 (armv7-a): Make vfpv3-d16, neon and neon-vfpv3 aliases. Sort in
10699 canonical order.
10700 (armv7ve): Make vfpv4-d16, neon-vfpv3 and neon-vfpv4 aliases.
10701 Sort in canonical order.
10702 (armv8-a): Sort in canonical order.
10703 (armv8.1-a, armv8.2-a): Likewise.
10704 (generic-armv7-a): Make neon and neon-vfpv3 aliases. Sort in
10705 canonical order.
10706 (cortex-a9): Sort in canonical order.
10707 * config/arm/arm.c (selftests.h): Include it.
10708 (arm_test_cpu_arch_data): New function.
10709 (arm_run_self_tests): New function.
10710 (TARGET_RUN_TARGET_SELFTESTS): Redefine.
10711 (targetm): Move declaration to the end of the file.
10712 * arm-cpu-cdata.h: Regenerated.
10713
10714 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10715
10716 * config/arm/arm.h (TARGET_MODE_SPECS): Add additional parameter to
10717 call to target_mode_check describing the type of option passed.
10718 * common/config/arm/arm-common.c (arm_arch_core_flag): Delete.
10719 (arm_target_thumb_only): Use arm_parse_arch_option_name or
10720 arm_parse_cpu_option_name to match parameters against list of
10721 available targets.
10722 * config/arm/parsecpu.awk (gen_comm_data): Don't generate
10723 arm_arch_core_flags data structure.
10724 * config/arm/arm-cpu_cdata.h: Regenerated.
10725
10726 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10727
10728 * common/config/arm/arm-common.c (arm_initialize_isa): Moved here from
10729 config/arm/arm.c.
10730 (arm_print_hint_for_cpu_option): Likewise.
10731 (arm_print_hint_for_arch_option): Likewise.
10732 (arm_parse_cpu_option_name): Likewise.
10733 (arm_parse_arch_option_name): Likewise.
10734 * config/arm/arm.c (arm_identify_fpu_from_isa): Use the computed number
10735 of entries in the all_fpus list.
10736 * config/arm/arm-protos.h (all_architectures, all_cores): Declare.
10737 (arm_parse_cpu_option_name): Declare.
10738 (arm_parse_arch_option_name): Declare.
10739 (arm_parse_option_features): Declare.
10740 (arm_intialize_isa): Declare.
10741 * config/arm/parsecpu.awk (gen_data): Move CPU and architecture
10742 data tables to ...
10743 (gen_comm_data): ... here. Make definitions non-static.
10744 * config/arm/arm-cpu-data.h: Regenerated.
10745 * config/arm/arm-cpu-cdata.h: Regenerated.
10746
10747 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10748
10749 * config/arm/arm-protos.h (arm_build_target): Remove arch_core.
10750 (cpu_arch_extension): New structure.
10751 (cpu_arch_option, arch_option, cpu_option): New structures.
10752 * config/arm/parsecpu.awk (gen_headers): Build an enumeration of
10753 architecture types.
10754 (gen_data): Generate new format data tables.
10755 * config/arm/arm.c (cpu_tune): New structure.
10756 (cpu_option, processors): Delete.
10757 (arm_print_hint_for_core_or_arch): Delete. Replace with ...
10758 (arm_print_hint_for_cpu_option): ... this and ...
10759 (arm_print_hint_for_arch_option): ... this.
10760 (arm_parse_arch_cpu_name): Delete. Replace with ...
10761 (arm_parse_cpu_option_name): ... this and ...
10762 (arm_parse_arch_option_name): ... this.
10763 (arm_unrecognized_feature): Change type of target parameter to
10764 cpu_arch_option.
10765 (arm_parse_arch_cpu_features): Delete. Replace with ...
10766 (arm_parse_option_features): ... this.
10767 (arm_configure_build_target): Rework to use new configuration data
10768 tables.
10769 (arm_print_tune_info): Rework for new configuration data tables.
10770 * config/arm/arm-cpu-data.h: Regenerated.
10771 * config/arm/arm-cpu.h: Regenerated.
10772
10773 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10774
10775 * Makefile.in (OBJS): Move sbitmap.o from here ...
10776 (OBJS-libcommon): ... to here.
10777
10778 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10779
10780 * config/arm/arm-isa.h (ISA_ALL_FPU_INTERNAL): Renamed from ISA_ALL_FPU.
10781 (ISA_ALL_CRYPTO): New macro.
10782 (ISA_ALL_SIMD): New macro
10783 (ISA_ALL_FP): New macro.
10784 * config/arm/arm.c (fpu_bitlist): Update initializer.
10785 * config/arm/arm-cpus.in: Use new ISA_ALL macros to disable crypto,
10786 simd or fp.
10787 (arm9e): Add fpu. Add option for nofp
10788 (arm946e-s, arm966e-s, arm968e-s, arm10e, arm1020e, arm1022e): Likewise.
10789 (arm926ej-s, arm1026ej-s): Likewise.
10790 (generic-armv7-a): Add fpu. Add options for simd, vfpv3, vfpv3-d16,
10791 vfpv3-fp16, vfpv3-d16-fp16, vfpv4, vfpv4-d16, neon, neon-vfp3,
10792 neon-fp16, neon-vfpv4, nofp and nosimd.
10793 (cortex-a5, cortex-a7): Add fpu. Add options for nosimd and nofp.
10794 (cortex-a8): Add fpu. Add option for nofp.
10795 (cortex-a9): Add fpu. Add options for nosimd and nofp.
10796 (cortex-a12, cortex-a15, cortex-a17): Add fpu. Add option for nofp.
10797 (cortex-r4f): Add fpu.
10798 (cortex-r5): Add fpu. Add options for nofp.dp and nofp.
10799 (cortex-r7): Use idiv option from architecture. Add fpu. Add option
10800 for nofp.
10801 (cortex-r8): Likewise.
10802 (cortex-m4): Add fpu. Add option for nofp.
10803 (cortex-a15.cortex-a7): Add fpu. Add option for nofp.
10804 (cortex-a17.cortex-a7): Likewise.
10805 (cortex-a32): Add fpu. Add options for crypto and nofp.
10806 (cortex-a35, cortex-a53): Likewise.
10807 (cortex-a57): Add fpu. Add option for crypto.
10808 (cortex-a72, cortex-a73): Likewise.
10809 (exynos-m1): Likewise.
10810 (cortex-a57.cortex-a53, cortex-a72.cortex-a53): Likewise.
10811 (cortex-a73.cortex-a35, cortex-a73.cortex-a53): Likewise.
10812 (cortex-m33): Add fpu. Add option for nofp.
10813 * config/arm/arm-cpu-cdata.h: Regenerated
10814 * config/arm/arm-cpu-data.h: Regenerated.
10815
10816 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10817
10818 * arm-cpus.in (armv5e): Add options fp, vfpv2 and nofp.
10819 (armv5te, armv5tej): Likewise.
10820 (armv6, armv6j, armv6k, armv6z, armv6kz, armv6zk, armv6t2): Likewise.
10821 (armv7): Add options fp and vfpv3-d16.
10822 (armv7-a): Add options fp, simd, vfpv3, vfpv3-d16, vfpv3-d16-fp16,
10823 vfpv3-fp16, vfpv4, vfpv4-d16, neon, neon-vfpv3, neon-fp16, neon-vfpv4,
10824 nofp and nosimd.
10825 (armv7ve): Likewise.
10826 (armv7-r): Add options fp, fp.sp, idiv, nofp and noidiv.
10827 (armv7e-m): Add options fp, fpv5, fp.dp and nofp.
10828 (armv8-a): Add nocrypto option.
10829 (armv8.1-a, armv8.2-a): Likewise.
10830 (armv8-m.main): add options fp, fp.dp and nofp.
10831
10832 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10833
10834 * config/arm/arm-cpus.in (armv8-a): Add options crc, simd crypto and
10835 nofp.
10836 (armv8-a+crc): Delete.
10837 (armv8.1-a): Add options simd, crypto and nofp.
10838 (armv8.2-a): Add options fp16, simd, crypto and nofp.
10839 (armv8.2-a+fp16): Delete.
10840 (armv8-m.main): Add option dsp.
10841 (armv8-m.main+dsp): Delete.
10842 (cortex-a8): Add fpu. Add nofp option.
10843 (cortex-a9): Add fpu. Add nofp and nosimd options.
10844 * config/arm/parsecpu.awk (gen_data): Generate option tables and
10845 link to main cpu and architecture data structures.
10846 (gen_comm_data): Only put isa attributes from the main architecture
10847 in common tables.
10848 (option): New statement for architecture and CPU entries.
10849 * arm.c (struct cpu_option): New structure.
10850 (struct processors): Add entry for options.
10851 (arm_unrecognized_feature): New function.
10852 (arm_parse_arch_cpu_name): Ignore any characters after the first
10853 '+' character.
10854 (arm_parse_arch_cpu_feature): New function.
10855 (arm_configure_build_target): Separate out any CPU and architecture
10856 features and parse separately. Don't error out if -mfpu=auto is
10857 used with only an architecture string.
10858 (arm_print_asm_arch_directives): New function.
10859 (arm_file_start): Call it.
10860 * config/arm/arm-cpu-cdata.h: Regenerated.
10861 * config/arm/arm-cpu-data.h: Likewise.
10862 * config/arm/arm-tables.opt: Likewise.
10863
10864 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10865
10866 * config/arm/elf.h (ASM_SPEC): Only pass -mfpu through to the
10867 assembler when it is not -mfpu=auto.
10868
10869 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10870
10871 * config/arm/arm.h (BIG_LITTLE_SPEC): Delete macro.
10872 (ASM_REWRITE_SPEC_FUNCTIONS): New macro.
10873 (BIG_LITTLE_CPU_SPEC_FUNCTIONS): Delete macro.
10874 (ASM_CPU_SPEC): Rewrite.
10875 (MCPU_MTUNE_NATIVE_FUNCTIONS): New macro.
10876 (EXTRA_SPEC_FUNCTIONS): Move outside of ifdef. Use
10877 MCPU_MTUNE_NATIVE_FUNCTIONS and ASM_REWRITE_SPEC_FUNCTIONS. Remove
10878 reference to BIG_LITTLE_CPU_SPEC_FUNCTIONS.
10879 * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): Ensure
10880 copied string is NUL-terminated. Also strip any characters prefixed
10881 by '+'.
10882 (arm_rewrite_selected_arch): New function.
10883 (arm_rewrite_march): New function.
10884
10885 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
10886
10887 * config/arm/arm.opt (x_arm_arch_string): New TargetSave option.
10888 (x_arm_cpu_string, x_arm_tune_string): Likewise.
10889 (march, mcpu, mtune): Convert to string-based options.
10890 * config/arm/arm.c (arm_print_hint_for_core_or_arch): New function.
10891 (arm_parse_arch_cpu_name): New function.
10892 (arm_configure_build_target): Use arm_parse_arch_cpu_name to
10893 identify selected architecture or CPU.
10894 (arm_option_save): New function.
10895 (TARGET_OPTION_SAVE): Redefine.
10896 (arm_option_restore): Restore string options.
10897 (arm_option_print): Print string options.
10898
10899 2017-06-16 Martin Sebor <msebor@redhat.com>
10900
10901 PR tree-optimization/80933
10902 PR tree-optimization/80934
10903 * builtins.c (fold_builtin_3): Do not handle bcmp here.
10904 * gimple-fold.c (gimple_fold_builtin_bcmp): New function.
10905 (gimple_fold_builtin_bcopy, gimple_fold_builtin_bzero): Likewise.
10906 (gimple_fold_builtin): Call them.
10907
10908 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
10909
10910 * gimple-ssa-isolate-paths.c (isolate_path): Set edge leading to path
10911 as unlikely; update profile.
10912
10913 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
10914
10915 * predict.c (force_edge_cold): Handle declaring edges impossible
10916 more aggresively.
10917
10918 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
10919
10920 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update
10921 profile.
10922 (try_unroll_loop_completely): Fix reporting.
10923
10924 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
10925
10926 * tree-ssa-tail-merge.c (replace_block_by): Fix profile updating.
10927
10928 2017-06-16 James Greenhalgh <james.greenhalgh@arm.com>
10929
10930 PR target/71778
10931 * config/arm/arm-builtins.c (arm_expand_builtin_args): Return TARGET
10932 if given a non-constant argument for an intrinsic which requires a
10933 constant.
10934
10935 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
10936
10937 * profile.c (compare_freqs): New function.
10938 (branch_prob): Sort edge list.
10939 (find_spanning_tree): Assume that the list is priority sorted.
10940
10941 2017-06-16 Richard Biener <rguenther@suse.de>
10942
10943 PR tree-optimization/81090
10944 * passes.def (pass_record_bounds): Remove.
10945 * tree-pass.h (make_pass_record_bounds): Likewise.
10946 * tree-ssa-loop.c (pass_data_record_bounds, pass_record_bounds,
10947 make_pass_record_bounds): Likewise.
10948 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Do
10949 not free niter estimates at the beginning but at the end.
10950 * tree-scalar-evolution.c (scev_finalize): Free niter estimates.
10951
10952 2017-06-16 Richard Biener <rguenther@suse.de>
10953
10954 * tree-switch-conversion.c (emit_case_bit_tests): Adjust
10955 initializer to workaround ICE in host GCC 4.8.
10956
10957 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
10958
10959 * ipa-inline-transform.c (update_noncloned_frequencies): Update also
10960 counts.
10961 (clone_inlined_nodes): Update.
10962
10963 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10964
10965 * config/aarch64/aarch64.c (qdf24xx_prefetch_tune): Update
10966 prefetch settings, and enable prefetching by default at -O3.
10967
10968 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10969
10970 * config/aarch64/aarch64.c (aarch64_override_options_internal):
10971 Set flag_prefetch_loop_arrays according to tuning data.
10972
10973 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10974
10975 * config/aarch64/aarch64-protos.h (struct cpu_prefetch_tune):
10976 New tune structure.
10977 (struct tune_params): Use cpu_prefetch_tune instead of cache_line_size.
10978 [Unrelated to main purpose of the patch] Place the pointer field last
10979 to enable type checking errors when tune structure are wrongly merged.
10980 * config/aarch64/aarch64.c (generic_prefetch_tune,)
10981 (exynosm1_prefetch_tune, qdf24xx_prefetch_tune,)
10982 (thunderx2t99_prefetch_tune): New tune constants.
10983 (tune_params *_tunings): Update all tunings (no functional change).
10984 (aarch64_override_options_internal): Set PARAM_SIMULTANEOUS_PREFETCHES,
10985 PARAM_L1_CACHE_SIZE, PARAM_L1_CACHE_LINE_SIZE, and PARAM_L2_CACHE_SIZE
10986 from tunings structures.
10987
10988 2017-06-16 Jakub Jelinek <jakub@redhat.com>
10989
10990 PR sanitizer/81094
10991 * ubsan.c (instrument_null): Add T argument, use it instead
10992 of computing it based on IS_LHS.
10993 (instrument_object_size): Likewise.
10994 (pass_ubsan::execute): Adjust instrument_null and
10995 instrument_object_size callers to pass gimple_get_lhs or
10996 gimple_assign_rhs1 result to it. Use instrument_null instead of
10997 calling get_base_address and instrument_mem_ref. Handle
10998 aggregate call arguments for object-size sanitization.
10999
11000 2017-06-16 Yury Gribov <tetra2005@gmail.com>
11001
11002 PR tree-optimization/81089
11003 * tree-vrp.c (is_masked_range_test): Validate operands of
11004 subexpression.
11005
11006 2017-06-15 Martin Sebor <msebor@redhat.com>
11007
11008 PR c++/80560
11009 * dumpfile.c (dump_register): Avoid calling memset to initialize
11010 a class with a default ctor.
11011 * gcc.c (struct compiler): Remove const qualification.
11012 * genattrtab.c (gen_insn_reserv): Replace memset with initialization.
11013 * hash-table.h: Ditto.
11014 * ipa-cp.c (allocate_and_init_ipcp_value): Replace memset with
11015 assignment.
11016 * ipa-prop.c (ipa_free_edge_args_substructures): Ditto.
11017 * omp-low.c (lower_omp_ordered_clauses): Replace memset with
11018 default ctor.
11019 * params.h (struct param_info): Make struct members non-const.
11020 * tree-switch-conversion.c (emit_case_bit_tests): Replace memset
11021 with default initialization.
11022 * vec.h (vec_copy_construct, vec_default_construct): New helper
11023 functions.
11024 (vec<T>::copy, vec<T>::splice, vec<T>::reserve): Replace memcpy
11025 with vec_copy_construct.
11026 (vect<T>::quick_grow_cleared): Replace memset with default ctor.
11027 (vect<T>::vec_safe_grow_cleared, vec_safe_grow_cleared): Same.
11028 * doc/invoke.texi (-Wclass-memaccess): Document.
11029
11030 2017-06-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11031
11032 * emit-rtl.h (is_leaf): Update comment about local
11033 register allocator.
11034
11035 2017-06-15 Jozef Lawrynowicz <jozef.l@somniumtech.com>
11036
11037 PR target/78818
11038 * config/msp430/msp430.c (msp430_data_attr): Check that it's possible
11039 for a variable to have a section before checking if the section has a
11040 name.
11041 Set section to.persistent if persistent attribute is set.
11042 Warn if .persistent attribute is used on an automatic variable.
11043
11044 2017-06-15 Eric Botcazou <ebotcazou@adacore.com>
11045
11046 PR rtl-optimization/80474
11047 * reorg.c (update_block): Do not ignore instructions in a delay slot.
11048
11049 2017-06-15 Segher Boessenkool <segher@kernel.crashing.org>
11050
11051 * config/rs6000/rs6000.md (add<mode>3): Use reg_or_subregno instead
11052 of REGNO.
11053
11054 2017-06-14 Maciej W. Rozycki <macro@imgtec.com>
11055
11056 * config/mips/mips.md (MIPS16_T_REGNUM): Remove constant.
11057 (casesi): Emit bounds checking as RTL.
11058 (casesi_internal_mips16_<mode>): Remove bounds checking.
11059
11060 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
11061
11062 * config/xtensa/xtensa.c (xtensa_option_override): Append
11063 MASK_CONST16 to target_flags in the absence of TARGET_L32R.
11064 (hwloop_optimize, hwloop_fail, hwloop_pattern_reg,
11065 xtensa_doloop_hooks): Define unconditionally.
11066 (xtensa_reorg_loops): Only call reorg_loops in the presence of
11067 TARGET_LOOPS.
11068 * config/xtensa/xtensa.h (TARGET_L32R): New definition.
11069 (TARGET_DEFAULT): Remove XCHAL_HAVE_L32R condition and account
11070 for it in xtensa_option_override.
11071 (HARD_FRAME_POINTER_IS_FRAME_POINTER,
11072 HARD_FRAME_POINTER_IS_ARG_POINTER): New definitions.
11073
11074 2017-06-14 Boris Kolpackov <boris@codesynthesis.com>
11075
11076 * doc/cppopts.texi: Document '-' special value to -MF.
11077
11078 2017-06-14 Wilco Dijkstra <wdijkstr@arm.com>
11079
11080 * config/arm/cortex-a53.md (cortex_a53_fpalu) Adjust latency.
11081 (cortex_a53_fconst): Likewise.
11082 (cortex_a53_fpmul): Likewise.
11083 (cortex_a53_f_load_64): Likewise.
11084 (cortex_a53_f_load_many): Likewise.
11085 (cortex_a53_advsimd_alu): Likewise.
11086 (cortex_a53_advsimd_alu_q): Likewise.
11087 (cortex_a53_advsimd_mul): Likewise.
11088 (cortex_a53_advsimd_mul_q): Likewise.
11089 (fpmac bypass): Add new bypass for fpmac-fpmac case.
11090 Add missing fmul, r2f_cvt and fconst cases.
11091
11092 2017-06-14 Richard Biener <rguenther@suse.de>
11093
11094 PR middle-end/81088
11095 * fold-const.c (split_tree): Drop TREE_OVERFLOW flag from
11096 literal constants.
11097 (fold_binary_loc): When associating do not treat pre-existing
11098 TREE_OVERFLOW on literal constants as a reason to allow
11099 TREE_OVERFLOW on associated literal constants.
11100
11101 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
11102
11103 * config/sparc/sparc.h (MASK_ISA): Add MASK_LEON and MASK_LEON3.
11104 (MASK_FEATURES): New macro.
11105 * config/sparc/sparc.c (sparc_option_override): Remove the special
11106 handling of -mfpu and generalize it to all MASK_FEATURES switches.
11107
11108 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
11109
11110 * simplify-rtx.c (simplify_binary_operation_1) <UDIV>: Do not simplify
11111 a division of 0 if non-call exceptions are enabled.
11112
11113 2017-06-14 Andrew Pinski <apinski@cavium.com>
11114 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
11115
11116 PR target/71663
11117 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
11118 Improve vector initialization code gen for only variable case.
11119
11120 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
11121
11122 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
11123
11124 2017-06-14 Richard Biener <rguenther@suse.de>
11125
11126 PR tree-optimization/81083
11127 * tree-ssa-sccvn.c (vn_reference_lookup_3): Do not use abnormals
11128 as values.
11129
11130 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
11131
11132 * config/rs6000/rs6000.c: Update all comments that mentioned SPE.
11133 (rs6000_expand_builtin): Remove RS6000_BTC_EVSEL.
11134 * config/rs6000/rs6000.h (RS6000_BTC_EVSEL): Delete.
11135 * config/rs6000/vxworks.h (VXCPU_FOR_8548): Delete. Adjust former use.
11136 * config/rs6000/vxworksae.h (VXCPU_FOR_8548): Delete.
11137 * config/rs6000/vxworksmils.h (VXCPU_FOR_8548): Delete.
11138
11139 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
11140
11141 * config/rs6000/rs6000-opts.h (enum rs6000_vector): Delete VECTOR_SPE.
11142 * config/rs6000/rs6000.c (rs6000_debug_vector_unit): Delete VECTOR_SPE.
11143
11144 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
11145
11146 * config/rs6000/rs6000.h (FIXED_SCRATCH): Delete.
11147
11148 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
11149
11150 * config/rs6000/t-rtems: Don't handle SPE.
11151
11152 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
11153
11154 * config/rs6000/t-linux: Don't handle SPE.
11155
11156 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
11157
11158 * config/rs6000/eabispe.h: Delete file.
11159
11160 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
11161
11162 * config/rs6000/t-spe: Delete file.
11163
11164 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
11165
11166 * config/rs6000/rs6000.c (SPE_CONST_OFFSET_OK): Delete.
11167 (rs6000_legitimate_offset_address_p): Return false for anything in
11168 V2SImode or V2SFmode.
11169
11170 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
11171
11172 * config/rs6000/rs6000-modes.def: Remove all 8-byte vector modes
11173 except V2SF and V2SI. Rearrange the vector modes, and add comments.
11174 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Remove V8QImode
11175 and V4HImode.
11176 (reg_offset_addressing_ok_p): Remove V4HImode and V1DImode.
11177 (rs6000_legitimate_offset_address_p): Ditto.
11178 (rs6000_emit_move): Ditto.
11179 (rs6000_init_builtins): Remove V4HI_type_node.
11180
11181 2017-06-13 Martin Liska <mliska@suse.cz>
11182
11183 PR sanitize/78204
11184 * asan.c (asan_sanitize_stack_p): Use sanitize_flags_p.
11185 (gate_asan): Likewise.
11186 * asan.h (asan_no_sanitize_address_p): Remove the function.
11187 (sanitize_flags_p): New function.
11188 * builtins.def: Fix coding style.
11189 * common.opt: Use renamed enum value.
11190 * convert.c (convert_to_integer_1): Use sanitize_flags_p.
11191 * doc/extend.texi: Document no_sanitize attribute.
11192 * flag-types.h (enum sanitize_code): Rename SANITIZE_NONDEFAULT
11193 to SANITIZE_UNDEFINED_NONDEFAULT.
11194 * gcc.c (sanitize_spec_function): Use the renamed enum value.
11195 * gimple-fold.c (optimize_atomic_compare_exchange_p):
11196 Use sanitize_flags_p.
11197 * gimplify.c (gimplify_function_tree): Likewise.
11198 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Likewise.
11199 * opts.c (parse_no_sanitize_attribute): New function.
11200 (common_handle_option): Use renamed enum value.
11201 * opts.h (parse_no_sanitize_attribute): Declare.
11202 * tree.c (sanitize_flags_p): New function.
11203 * tree.h: Declared here.
11204 * tsan.c: Use sanitize_flags_p.
11205 * ubsan.c (ubsan_expand_null_ifn): Likewise.
11206 (instrument_mem_ref): Likewise.
11207 (instrument_bool_enum_load): Likewise.
11208 (do_ubsan_in_current_function): Remove the function.
11209 (pass_ubsan::execute): Use sanitize_flags_p.
11210 * ubsan.h: Remove do_ubsan_in_current_function
11211 * tree-cfg.c (print_no_sanitize_attr_value): New function.
11212 (dump_function_to_file): Use it here.
11213
11214 2017-06-13 Martin Jambor <mjambor@suse.cz>
11215
11216 PR tree-optimization/80803
11217 PR tree-optimization/81063
11218 * tree-sra.c (subtree_mark_written_and_enqueue): Move up in the file.
11219 (propagate_subaccesses_across_link): Enqueue subtree whenever
11220 necessary instead of relying on the caller.
11221
11222 2017-06-13 Martin Jambor <mjambor@suse.cz>
11223
11224 * tree-sra.c (add_access_to_work_queue): Only enqueue accesses
11225 that have a first_link.
11226 (sort_and_splice_var_accesses): Do not check first_link before
11227 enquing.
11228 (subtree_mark_written_and_enqueue): Likewise.
11229 (propagate_all_subaccesses): Likewise and do not stop at first
11230 parent with a first_link.
11231
11232 2017-06-13 Martin Jambor <mjambor@suse.cz>
11233
11234 * tree-sra.c (dump_access_tree_1): Fix accidental dumping to stderr
11235 instead of f.
11236
11237 2017-06-13 Yury Gribov <tetra2005@gmail.com>
11238
11239 * match.pd: New pattern.
11240
11241 2017-06-13 Yury Gribov <tetra2005@gmail.com>
11242
11243 * tree-vrp.c (is_masked_range_test): New function.
11244 (register_edge_assert_for): Determine ranges for
11245 some bit tests.
11246
11247 2017-06-13 Yury Gribov <tetra2005@gmail.com>
11248
11249 PR tree-optimization/67328
11250 * fold-const.c (maskable_range_p): New function.
11251 (build_range_check): Generate bittests if possible.
11252
11253 2017-06-13 Martin Liska <mliska@suse.cz>
11254
11255 * gimple-pretty-print.c (dump_probability): Add new argument.
11256 (dump_edge_probability): Dump both probability and count.
11257 (dump_gimple_label): Likewise.
11258 (dump_gimple_bb_header): Likewise.
11259
11260 2017-06-13 Georg-Johann Lay <avr@gjlay.de>
11261
11262 PR target/81072
11263 * config/avr/avr-devices.c: Fix indentation.
11264 * config/avr/gen-avr-mmcu-specs.c: Dito.
11265
11266 2017-06-13 Richard Biener <rguenther@suse.de>
11267
11268 * tree-vect-loop.c (vect_model_reduction_cost): Do not fail,
11269 instead get vector type from stmt_info.
11270 (vectorizable_reduction): Adjust. Remove dead code.
11271
11272 2017-06-13 Richard Biener <rguenther@suse.de>
11273
11274 PR middle-end/81065
11275 * fold-const.c (extract_muldiv_1): Remove bogus distribution
11276 case of C * (x * C2 + C3).
11277 (fold_addr_of_array_ref_difference): Properly fold index difference.
11278
11279 2017-06-12 David S. Miller <davem@davemloft.net>
11280
11281 PR target/80968
11282 * config/sparc/sparc.md (return expander): Emit frame blockage if
11283 function uses alloca.
11284
11285 2017-06-12 Richard Sandiford <richard.sandiford@linaro.org>
11286
11287 * combine.c (make_field_assignment): Check len rather than the mode
11288 precision when calling force_to_mode.
11289
11290 2017-06-12 Georg-Johann Lay <avr@gjlay.de>
11291
11292 Support multilibs and devices that see flash in RAM address range.
11293
11294 PR target/81072
11295 * config/avr/avr-arch.h (avr_arch_id) <ARCH_AVRXMEGA3>: New enum.
11296 (avr_mcu_t) <flash_pm_offset>: New field.
11297 (avr_device_specific_features) <AVR_ISA_RCALL>: New enum.
11298 * config/avr/avr.h (AVR_SHORT_CALLS): New define.
11299 (AVR_HAVE_JMP_CALL): Don't set if AVR_SHORT_CALLS.
11300 (AVR_TINY_PM_OFFSET): Remove macro.
11301 * config/avr/avr.opt (-mshort-calls): New option.
11302 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
11303 [*self_spec]: Add / remove -mshort-calls depending on AVR_ISA_RCALL.
11304 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
11305 <__AVR_SHORT_CALLS__>: Built-in define if AVR_SHORT_CALLS.
11306 <__AVR_HAVE_JMP_CALL__>: Use AVR_HAVE_JMP_CALL as condition
11307 instead of avr_arch->have_jmp_call.
11308 <__AVR_PM_BASE_ADDRESS__>: Built-in define if avr_arch->flash_pm_offset.
11309 [AVR_TINY] <__AVR_TINY_PM_BASE_ADDRESS__>: Use
11310 avr_arch->flash_pm_offset to define.
11311 * config/avr/avr-devices.c (avr_arch_types): Add initializers for
11312 new field flash_pm_offset. Add entry for avrxmega3.
11313 (avr_texinfo): Add entry for avrxmega3.
11314 * config/avr/avr-mcus.def: Add entries for: avrxmega3,
11315 attiny212, attiny214,
11316 attiny412, attiny414, attiny416, attiny417,
11317 attiny814, attiny816, attiny817,
11318 attiny1614, attiny1616, attiny1617,
11319 attiny3214, attiny3216, attiny3217.
11320 * config/avr/avr.c (avr_assemble_integer)[AVR_TINY]: Use
11321 avr_arch->flash_pm_offset instead of AVR_TINY_PM_OFFSET.
11322 (avr_print_operand_address) [AVR_TINY]: Same.
11323 (avr_asm_init_sections) <readonly_data_section>: Only patch
11324 callback if avr_arch->flash_pm_offset = 0.
11325 (avr_asm_named_section) <avr_need_copy_data_p>: Skip setting it
11326 for rodata if avr_arch->flash_pm_offset != 0.
11327 (avr_encode_section_info) [AVR_TINY]: Adjust comment.
11328 * config/avr/genmultilib.awk (dir_rcall, opt_rcall): New vars.
11329 (opts) [AVR_ISA_RCALL]: Append opt_rcall.
11330 (m_options): Append opt_rcall.
11331 (m_dirnames): Append dir_rcall.
11332 * config/avr/t-multilib: Regenerate.
11333
11334 * configure.ac [target=avr]: Check whether avrxmega3 default
11335 linker description file works as needed.
11336 * configure: Regenerate.
11337 * doc/avr-mmcu.texi: Regenerate.
11338 * doc/invoke.texi (AVR Options) <-mshort-calls>: Document it.
11339 <__AVR_ARCH__>: Document avrxmega3 and 103.
11340 <__AVR_HAVE_JMP_CALL__>: Adjust documentation.
11341 <__AVR_SHORT_CALLS__>: Document it.
11342 <__AVR_PM_BASE_ADDRESS__>: Document it.
11343 * doc/extend.texi (AVR Options) <-mshort-calls>: Document it.
11344 (AVR Variable Attributes) <progmem>: Document this is
11345 not needed for avrxmega3.
11346 (AVR Named Address Spaces) <__flash>: Dito.
11347
11348 2017-06-12 Jan Hubicka <hubicka@ucw.cz>
11349
11350 * cgraph.c (cgraph_node::dump): Complain about profile insanities.
11351
11352 2017-06-12 Doug Rupp <rupp@adacore.com>
11353
11354 * config.gcc (*-*-vxworks*): Set use_gcc_stdint to "provide".
11355 Append vxworks-stdint.h to the tm_file list.
11356 * config/vxworks-stdint.h: New file.
11357
11358 2017-06-12 Martin Liska <mliska@suse.cz>
11359
11360 PR tree-optimization/81041
11361 * tree-profile.c (gimple_gen_ic_func_profiler):
11362 Create an extra BB in profile-generate
11363 (gimple_gen_time_profiler): Likewise.
11364
11365 2017-06-12 Jakub Jelinek <jakub@redhat.com>
11366
11367 PR tree-optimization/81003
11368 * tree-ssa-reassoc.c (force_into_ssa_name): New function.
11369 (update_range_test): Use it instead of force_gimple_operand_gsi.
11370
11371 2017-06-12 Richard Biener <rguenther@suse.de>
11372
11373 PR tree-optimization/81053
11374 * tree-vect-loop.c (vect_is_simple_reduction): Handle PHI
11375 with backedge value not defined in loop. Simplify def stmt
11376 compute.
11377
11378 2017-06-11 Tom de Vries <tom@codesourcery.com>
11379
11380 PR target/79939
11381 * config/nvptx/nvptx.c (nvptx_cannot_force_const_mem): New function.
11382 Return true.
11383 (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
11384 nvptx_cannot_force_const_mem.
11385
11386 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
11387
11388 * opts.c (finish_options): Move test for flag_split_stack after
11389 it has been initialized.
11390
11391 2017-06-11 Jason Merrill <jason@redhat.com>
11392
11393 * tree.h (id_equal): New.
11394 * dwarf2out.c, hsa-gen.c, ipa-devirt.c, omp-expand.c,
11395 omp-simd-clone.c, read-rtl-function.c, tree-chkp.c, tree.c: Use it
11396 instead of strcmp of IDENTIFIER_POINTER.
11397
11398 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
11399
11400 * ipa-inline-transform.c: Include function.h, cfg.h and basic-block.h
11401 (mark_all_inlined_calls_cdtor): Fix formating.
11402 (inline_transform): Rescale profile before inlining.
11403
11404 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
11405
11406 * cgraph.h (cgraph_edge::clone): Update prototype.
11407 * cgraphclones.c (cgraph_edge::clone): Update profile scaling.
11408 (cgraph_node::create_clone): Update.
11409 (cgraph_node::create_version_clone): Update.
11410 * tree-inline.c (copy_bb): Update.
11411 (expand_call_inline): Update.
11412
11413 2017-06-10 Segher Boessenkool <segher@kernel.crashing.org>
11414
11415 * config/rs6000/rs6000.c (emit_vrsave_prologue): New function,
11416 factored out from ...
11417 (rs6000_emit_prologue): ... here.
11418
11419 2017-06-10 Segher Boessenkool <segher@kernel.crashing.org>
11420
11421 * config/rs6000/rs6000.c (emit_split_stack_prologue): New function,
11422 factored out from ...
11423 (rs6000_emit_prologue): ... here.
11424
11425 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
11426
11427 * predict.c (drop_profile): Also drop individual bb/edge and cgraph
11428 edge counts.
11429 (handle_missing_profiles): Fix computation of tp_first_run.
11430 (counts_to_freqs): Do not touch freqs when count is 0.
11431
11432 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
11433
11434 * cgraphbuild.c (cgraph_edge::rebuild_references): Do not touch
11435 profile.
11436
11437 2017-06-10 Tom de Vries <tom@codesourcery.com>
11438
11439 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
11440 attributes): Document signal effective target.
11441
11442 2017-06-10 Tom de Vries <tom@codesourcery.com>
11443
11444 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
11445 Document effective target stack_size.
11446
11447 2017-06-09 David Malcolm <dmalcolm@redhat.com>
11448
11449 * diagnostic.c (diagnostic_report_diagnostic): Only add fixits
11450 to the edit_context if they can be auto-applied.
11451
11452 2017-06-9 Ian Lance Taylor <iant@golang.org>
11453
11454 * opts.c (finish_options): If -fsplit-stack, disable implicit
11455 -forder-blocks-and-partition.
11456 * doc/invoke.texi (Optimize Options): Document that when using
11457 -fsplit-stack -forder-blocks-and-partition is not implicitly
11458 enabled.
11459
11460 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
11461
11462 * builtin-attrs.def (ATTR_NORETURN_NOTHROW_LEAF_COLD_LIST,
11463 ATTR_CONST_NORETURN_NOTHROW_LEAF_COLD_LIST,
11464 ATTR_TMPURE_NORETURN_NOTHROW_LEAF_COLD_LIST): New.
11465 * builtins.def (abort, trap, unreachable): Declare cold.
11466 * calls.c (flags_from_decl_or_type): Lookup ECF_COLD.
11467 * tree-core.h (ECF_COLD): New.
11468 * tree.c (set_call_expr_flags): Handle ECF_COLD.
11469 (build_common_builtin_nodes): Mark unreachable and abort as cold.
11470
11471 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
11472
11473 * predict.c (unlikely_executed_stmt_p): Cleanup.
11474
11475 2017-06-09 Richard Biener <rguenther@suse.de>
11476
11477 * tree-ssa-loop-im.c (execute_sm): Do not force multi-threaded
11478 model if the ref is always written to.
11479
11480 2017-06-09 Tamar Christina <tamar.christina@arm.com>
11481
11482 * config/aarch64/aarch64.md (lrint<GPF:mode><GPI:mode>2): New.
11483
11484 2017-06-09 Tamar Christina <tamar.christina@arm.com>
11485
11486 * config/arm/arm.c (arm_rtx_costs_internal): Make sdiv more expensive
11487 than udiv.
11488
11489 2017-06-09 Tom de Vries <tom@codesourcery.com>
11490
11491 PR target/80855
11492 * config/nvptx/nvptx.md (define_expand "mov<QHSDISDFM>"): Error out with
11493 "target cannot support label values" when encountering LABEL_REF.
11494
11495 2017-06-09 Martin Liska <mliska@suse.cz>
11496
11497 * tree-profile.c (gimple_gen_ic_profiler): Update comment.
11498 (gimple_gen_ic_func_profiler): Emit direct comparison
11499 of __gcov_indirect_call_callee with NULL.
11500 (gimple_gen_time_profiler): Change probability from
11501 PROB_VERY_UNLIKELY to PROB_UNLIKELY.
11502
11503 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
11504
11505 * profile.c (edge_gcov_counts): Turn to pointer.
11506 (compute_branch_probabilities, compute_branch_probabilities): Update.
11507 (branch_prob): Do not clear edge_gcov_count.
11508 * profile.h (edge_gcov_counts): Turn to pointer.
11509 (edge_gcov_count): Update.
11510
11511 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
11512
11513 * gimple.h (gimple_check_failed): Mark cold.
11514
11515 2017-06-09 Richard Biener <rguenther@suse.de>
11516
11517 PR tree-optimization/66623
11518 * tree-vect-loop.c (vect_is_simple_reduction): Cleanup,
11519 refactor check_reduction into two parts, properly computing
11520 whether we have to check reduction validity for outer loop
11521 vectorization.
11522
11523 2017-06-09 Richard Biener <rguenther@suse.de>
11524
11525 PR tree-optimization/79483
11526 * graphite-scop-detection.c (order): New global.
11527 (get_order): Compute bb to order mapping that satisfies code
11528 generation constraints.
11529 (cmp_pbbs): New helper.
11530 (build_scops): Start domwalk at entry block, sort generated
11531 pbbs.
11532
11533 2017-06-09 Richard Biener <rguenther@suse.de>
11534
11535 PR middle-end/81007
11536 * ipa-polymorphic-call.c
11537 (ipa_polymorphic_call_context::restrict_to_inner_class):
11538 Skip FIELD_DECLs with error_mark_node type.
11539 * passes.def (all_lowering_passes): Run pass_build_cgraph_edges
11540 last again.
11541
11542 2017-06-09 Martin Liska <mliska@suse.cz>
11543
11544 * predict.c (struct branch_predictor): New struct.
11545 (test_prediction_value_range): New test.
11546 (predict_c_tests): New function.
11547 * selftest-run-tests.c (selftest::run_tests): Run the function.
11548 * selftest.h: Declare new tests.
11549
11550 2017-06-09 Segher Boessenkool <segher@kernel.crashing.org>
11551
11552 PR target/80966
11553 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Assert that
11554 gen_add3_insn did not fail.
11555 * config/rs6000/rs6000.md (add<mode>3): If asked to add a constant to
11556 r0, construct that number in a temporary reg and add that reg to r0.
11557 If asked to put the result in r0 as well, fail.
11558
11559 2017-06-08 Will Schmidt <will_schmidt@vnet.ibm.com>
11560
11561 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
11562 for early expansion of vec_eqv.
11563
11564 2017-06-08 Jakub Jelinek <jakub@redhat.com>
11565
11566 PR middle-end/81005
11567 * ubsan.c (instrument_null): Avoid pointless code temporary.
11568 (pass_ubsan::execute): Instrument aggregate arguments of calls.
11569
11570 2017-06-08 Uros Bizjak <ubizjak@gmail.com>
11571
11572 PR target/81015
11573 Revert:
11574 2016-12-14 Uros Bizjak <ubizjak@gmail.com>
11575
11576 PR target/59874
11577 * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
11578 (*clzhi2): Ditto.
11579
11580 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
11581
11582 * predict.c (unlikely_executed_edge_p): Move ahead.
11583 (probably_never_executed_edge_p): Use it.
11584
11585 2017-06-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
11586
11587 PR middle-end/79988
11588 * tree-chkp.c (chkp_gimple_call_builtin_p): Remove
11589 gimple_call_builtin_p call.
11590
11591 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
11592
11593 * system.h (fancy_abort): Annotate by ATTRIBUTE_COLD.
11594 * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
11595 rtl_check_failed_type2, rtl_check_failed_code1,
11596 rtl_check_failed_code2, rtl_check_failed_code_mode,
11597 rtl_check_failed_block_symbol, cwi_check_failed_bounds,
11598 rtvec_check_failed_bounds, rtl_check_failed_flag,
11599 _fatal_insn_not_found, _fatal_insn): Likewise.
11600 * tree.h (tree_contains_struct_check_failed,
11601 tree_check_failed, tree_not_check_failed,
11602 tree_class_check_failed, tree_range_check_failed,
11603 tree_not_class_check_failed, tree_int_cst_elt_check_failed,
11604 tree_vec_elt_check_failed, phi_node_elt_check_failed,
11605 tree_operand_check_failed, omp_clause_check_failed,
11606 omp_clause_operand_check_failed, omp_clause_range_check_failed):
11607 Likewise.
11608
11609 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
11610
11611 * cgraph.c (cgraph_edge::maybe_hot_p): Do not check
11612 flag_branch_probabilities.
11613 * ipa-inline.c (edge_badness): Likewise.
11614 * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
11615 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
11616 * predict.c (maybe_hot_frequency_p): Likewise.
11617 (probably_never_executed): Likewise.
11618 * sched-ebb.c (schedule_ebbs): Likewise.
11619 * sched-rgn.c (find_single_block_region): Likewise.
11620 * tracer.c (tail_duplicate): Likewise.
11621
11622 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
11623
11624 * opts.c (finish_options): x_flag_reorder_blocks_and_partition no
11625 longer requires x_flag_profile_use.
11626
11627 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
11628
11629 * cfgrtl.c (cfg_layout_initialize): Check crtl->has_bb_partition
11630 instead of flag_reorder_blocks_and_partition.
11631 * dbxout.c (dbxout_function_end): Likewise.
11632 * dwarf2out.c (gen_subprogram_die): Likewise.
11633 * haifa-sched.c (sched_create_recovery_edges): Likewise.
11634 * hw-doloop.c (reorg_loops): Likewise.
11635 * varasm.c (assemble_start_function,
11636 assemble_end_function): Likewise.
11637 (decide_function_section): Do not check for
11638 flag_reorder_blocks_and_partition.
11639
11640 2017-06-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
11641
11642 * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
11643 New function.
11644 (chkp_get_hard_register_fake_addr_expr): Ditto.
11645 (chkp_build_addr_expr): Add check for hard reg case.
11646 (chkp_parse_array_and_component_ref): Ditto.
11647 (chkp_find_bounds_1): Ditto.
11648 (chkp_process_stmt): Don't generate bounds store for
11649 hard reg case.
11650
11651 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
11652
11653 * predict.c (maybe_hot_bb_p): Do not check profile status.
11654 (maybe_hot_edge_p): Likewise.
11655 (probably_never_executed): Check for zero counts even if profile
11656 is not read.
11657 (unlikely_executed_edge_p): New function.
11658 (unlikely_executed_stmt_p): New function.
11659 (unlikely_executed_bb_p): New function.
11660 (set_even_probabilities): Use unlikely predicates.
11661 (combine_predictions_for_bb): Likewise.
11662 (predict_paths_for_bb): Likewise.
11663 (predict_paths_leading_to_edge): Likewise.
11664 (determine_unlikely_bbs): New function.
11665 (estimate_bb_frequencies): Use it.
11666 (compute_function_frequency): Use zero counts even if profile is
11667 not read.
11668 * profile-count.h: Fix typo.
11669
11670 2017-08-08 Julia Koval <julia.koval@intel.com>
11671
11672 * config/i386/avx512bwintrin.h (_mm512_mask_cvtepi16_storeu_epi8,
11673 _mm512_mask_cvtsepi16_storeu_epi8,
11674 _mm512_mask_cvtusepi16_storeu_epi8): New intrinsics.
11675 * config/i386/avx512vlbwintrin.h (_mm256_mask_cvtepi16_storeu_epi8,
11676 _mm_mask_cvtsepi16_storeu_epi8, _mm256_mask_cvtsepi16_storeu_epi8,
11677 _mm_mask_cvtusepi16_storeu_epi8, _mm256_mask_cvtusepi16_storeu_epi8,
11678 _mm_mask_cvtepi16_storeu_epi8): New intrinsics.
11679 * config/i386/i386-builtin-types.def (PV8Q, V8QI): New pointer type.
11680 (VOID_FTYPE_PV32QI_V32HI_USI, VOID_FTYPE_PV8QI_V8HI_UQI,
11681 VOID_FTYPE_PV16QI_V16HI_UHI): New function types.
11682 * config/i386/i386-builtin.def (__builtin_ia32_pmovwb128mem_mask,
11683 __builtin_ia32_pmovwb256mem_mask, __builtin_ia32_pmovswb128mem_mask,
11684 __builtin_ia32_pmovswb256mem_mask, __builtin_ia32_pmovuswb128mem_mask,
11685 __builtin_ia32_pmovuswb256mem_mask,
11686 __builtin_ia32_pmovuswb512mem_mask, __builtin_ia32_pmovswb512mem_mask)
11687 __builtin_ia32_pmovwb512mem_mask): New builtins.
11688
11689 2017-08-08 Julia Koval <julia.koval@intel.com>
11690
11691 PR target/73350,80862
11692 * config/i386/subst.md (round): Fix round pattern.
11693 * config/i386/i386.c (ix86_erase_embedded_rounding):
11694 Fix erasing rounding for the fixed pattern.
11695
11696 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
11697
11698 * cfgbuild.c (find_many_sub_basic_blocks): Fix thinko.
11699
11700 2017-06-08 Martin Liska <mliska@suse.cz>
11701
11702 PR gcov-profile/80911
11703 * gcov.c (block_info::block_info): New constructor.
11704
11705 2017-06-07 Carl Love <cel@us.ibm.com>
11706
11707 * config/rs6000/rs6000-c: The return type of the following
11708 built-in functions was implemented as int not long long. Fix sign
11709 of return value for the unsigned version of vec_mulo and vec_mule.
11710 vector unsigned long long vec_bperm (vector unsigned long long,
11711 vector unsigned char)
11712 vector signed long long vec_mule (vector signed int,
11713 vector signed int)
11714 vector unsigned long long vec_mule (vector unsigned int,
11715 vector unsigned int)
11716 vector signed long long vec_mulo (vector signed int,
11717 vector signed int)
11718 vector unsigned long long vec_mulo (vector unsigned int,
11719 vector unsigned int)
11720 * doc/extend.texi: Fix the documentation for the built-in
11721 functions.
11722
11723 2017-06-07 Carl Love <cel@us.ibm.com>
11724
11725 PR target/80982
11726 * config/rs6000/altivec.md (double<mode>2): Fix the implementation of
11727 for BE.
11728
11729 2017-06-07 Carl Love <cel@us.ibm.com>
11730
11731 * config/rs6000/altivec.md: Fix argument swizzle in vec_doublel
11732 support, Generate doublehv for signed int/float for BE case only.
11733
11734 2017-06-07 Alexander Monakov <amonakov@ispras.ru>
11735
11736 * doc/invoke.texi (mcx16): Rewrite.
11737
11738 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
11739
11740 * config/rs6000/predicates.md (rs6000_nonimmediate_operand): Delete.
11741 * config/rs6000/rs6000.md (*movsi_internal1, movsi_from_sf,
11742 *mov<mode>_softfloat, and an anonymous splitter): Use
11743 nonimmediate_operand instead of rs6000_nonimmediate_operand.
11744
11745 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
11746
11747 * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE_ACC and
11748 SPEFSCR registers.
11749 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
11750 (enum rs6000_reg_type): Delete SPE_ACC_TYPE and SPEFSCR_REG_TYPE.
11751 (rs6000_debug_reg_global): Adjust.
11752 (rs6000_init_hard_regno_mode_ok): Adjust.
11753 (rs6000_dbx_register_number): Adjust.
11754 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change to 115.
11755 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
11756 Remove SPE_ACC and SPEFSCR.
11757 (REG_ALLOC_ORDER): Ditto.
11758 (FRAME_POINTER_REGNUM): Change to 111.
11759 (enum reg_class): Remove the SPE_ACC and SPEFSCR registers.
11760 (REG_CLASS_NAMES): Ditto.
11761 (REG_CLASS_CONTENTS): Delete the SPE_ACC and SPEFSCR registers.
11762 (REGISTER_NAMES): Ditto.
11763 (ADDITIONAL_REG_NAMES): Ditto.
11764 (rs6000_reg_names): Ditto.
11765 * config/rs6000/rs6000.md: Renumber some register number
11766 define_constants.
11767
11768 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
11769
11770 * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE high
11771 registers.
11772 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
11773 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change from 149
11774 to 117.
11775 (DWARF_REG_TO_UNWIND_COLUMN): Do not define.
11776 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
11777 Delete the SPE high registers.
11778 (REG_ALLOC_ORDER): Ditto.
11779 (enum reg_class): Remove SPE_HIGH_REGS.
11780 (REG_CLASS_NAMES): Ditto.
11781 (REG_CLASS_CONTENTS): Delete the SPE high registers.
11782 (REGISTER_NAMES): Ditto.
11783 (rs6000_reg_names): Ditto.
11784 * doc/tm.texi.in: Remove SPE as example.
11785 * doc/tm.texi: Regenerate.
11786
11787 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
11788
11789 * config/rs6000/8540.md (ppc8540_brinc): Delete.
11790 * config/rs6000/e500mc.md (e500mc_brinc): Delete.
11791 * config/rs6000/e500mc64.md (e500mc64_brinc): Delete.
11792 * config/rs6000/rs6000.md (type): Remove "brinc".
11793
11794 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
11795
11796 * config.gcc (powerpc*-*-*): Don't add spe.h to extra_headers.
11797 (powerpc*-linux*spe*): Use ${cpu_type} instead of rs6000.
11798 * config/rs6000/linuxspe.h: Delete file.
11799 * config/rs6000/rs6000.md: Don't include spe.md.
11800 * config/rs6000/spe.h: Delete file.
11801 * config/rs6000/spe.md: Delete file.
11802 * config/rs6000/t-rs6000: Remove spe.md.
11803
11804 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
11805
11806 * config/rs6000/predicates.md (reg_or_mem_operand): Reformat.
11807 (reg_or_none500mem_operand): Delete.
11808 * config/rs6000/rs6000.md (extendsfdf2): Use reg_or_mem_operand
11809 instead of reg_or_none500mem_operand.
11810
11811 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
11812
11813 * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
11814 handling of SPE flags.
11815 * config/rs6000/rs6000.opt (-mspe, -mspe=no, -mspe=yes): Delete.
11816
11817 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
11818
11819 * config/rs6000/rs6000-common.c (rs6000_handle_option): Remove
11820 SPE ABI handling.
11821 * config/rs6000/paired.md (paired_negv2sf2): Rename to negv2sf2.
11822 (paired_absv2sf2, paired_addv2sf3, paired_subv2sf3, paired_mulv2sf3,
11823 paired_divv2sf3): Similar.
11824 * config/rs6000/predicates.md: Replace TARGET_SPE, TARGET_SPE_ABI,
11825 SPE_VECTOR_MODE and SPE_HIGH_REGNO_P by 0; simplify.
11826 * config/rs6000/rs6000-builtin.def: Delete RS6000_BUILTIN_E and
11827 RS6000_BUILTIN_S.
11828 Delete BU_SPE_1, BU_SPE_2, BU_SPE_3, BU_SPE_E, BU_SPE_P, and BU_SPE_X.
11829 Rename the paired_* instruction patterns.
11830 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Do not
11831 define __SPE__.
11832 * config/rs6000/rs6000-protos.h (invalid_e500_subreg): Delete.
11833 * config/rs6000/rs6000.c: Delete RS6000_BUILTIN_E and RS6000_BUILTIN_S.
11834 (struct rs6000_stack): Delete fields spe_gp_save_offset, spe_gp_size,
11835 spe_padding_size, and spe_64bit_regs_used. Replace TARGET_SPE and
11836 TARGET_SPE_ABI with 0, simplify. Replace SPE_VECTOR_MODE with
11837 PAIRED_VECTOR_MODE.
11838 (struct machine_function): Delete field spe_insn_chain_scanned_p.
11839 (spe_func_has_64bit_regs_p): Delete.
11840 (spe_expand_predicate_builtin): Delete.
11841 (spe_expand_evsel_builtin): Delete.
11842 (TARGET_DWARF_REGISTER_SPAN): Do not define.
11843 (TARGET_MEMBER_TYPE_FORCES_BLK): Do not define.
11844 (invalid_e500_subreg): Delete.
11845 (rs6000_legitimize_address): Always force_reg op2 as well, for
11846 paired single memory accesses.
11847 (rs6000_member_type_forces_blk): Delete.
11848 (rs6000_spe_function_arg): Delete.
11849 (rs6000_expand_unop_builtin): Delete SPE handling.
11850 (rs6000_expand_binop_builtin): Ditto.
11851 (spe_expand_stv_builtin): Delete.
11852 (bdesc_2arg_spe): Delete.
11853 (spe_expand_builtin): Delete.
11854 (spe_expand_predicate_builtin): Delete.
11855 (spe_expand_evsel_builtin): Delete.
11856 (rs6000_invalid_builtin): Remove RS6000_BTM_SPE handling.
11857 (spe_init_builtins): Delete.
11858 (spe_func_has_64bit_regs_p): Delete.
11859 (savres_routine_name): Delete "info" parameter. Adjust callers.
11860 (rs6000_emit_stack_reset): Ditto.
11861 (rs6000_dwarf_register_span): Delete.
11862 * config/rs6000/rs6000.h (TARGET_SPE_ABI, TARGET_SPE,
11863 UNITS_PER_SPE_WORD, SPE_HIGH_REGNO_P, SPE_SIMD_REGNO_P,
11864 SPE_VECTOR_MODE, RS6000_BTM_SPE, RS6000_BUILTIN_E, RS6000_BUILTIN_S):
11865 Delete.
11866 * config/rs6000/rs6000.md (FIRST_SPE_HIGH_REGNO, LAST_SPE_HIGH_REGNO):
11867 Delete.
11868 * config/rs6000/rs6000.opt (-mabi=spe, -mabi=no-spe): Delete.
11869 * config/rs6000/spe.md: Delete every pattern that uses TARGET_SPE.
11870 * config/rs6000/vector.md (absv2sf2, negv2sf2, addv2sf3, subv2sf3,
11871 mulv2sf3, divv2sf3): Delete expanders.
11872
11873 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
11874
11875 config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Delete.
11876
11877 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
11878
11879 * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit): Delete.
11880 * config/rs6000/rs6000.c: Ditto.
11881
11882 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
11883
11884 * config/rs6000/predicated.md (rs6000_cbranch_operator): Delete.
11885 * config/rs6000/rs6000.md: Replace rs6000_cbranch_operator by
11886 comparison_operator.
11887
11888 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
11889
11890 * config/rs6000/rs6000.c: Remove everything related to -mfloat-gprs.
11891 * config/rs6000/rs6000.opt: Ditto.
11892 * config/rs6000/t-rtems: Ditto.
11893
11894 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
11895
11896 * config/rs6000/predicates.md: Replace TARGET_E500_DOUBLE and
11897 TARGET_E500_SINGLE by 0, simplify.
11898 * config/rs6000/rs6000.c: Ditto.
11899 (rs6000_option_override_internal): Delete CHECK_E500_OPTIONS.
11900 (spe_build_register_parallel): Delete.
11901 * config/rs6000/rs6000.h: Delete TARGET_E500_SINGLE,
11902 TARGET_E500_DOUBLE, and CHECK_E500_OPTIONS.
11903 * config/rs6000/rs6000.md: Replace TARGET_E500_DOUBLE,
11904 TARGET_E500_SINGLE, and <E500_CONVERT> by 0, simplify.
11905 (E500_CONVERT): Delete.
11906 * config/rs6000/spe.md: Remove many patterns and all define_constants.
11907
11908 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
11909
11910 * config/rs6000/darwin.md: Replace TARGET_FPRS by 1 and simplify.
11911 * config/rs6000/dfp.md: Ditto.
11912 (negdd2, *negdd2_fpr): Merge.
11913 (absdd2, *absdd2_fpr): Merge.
11914 (negtd2, *negtd2_fpr): Merge.
11915 (abstd2, *abstd2_fpr): Merge.
11916 * config/rs6000/e500.h: Delete file.
11917 * config/rs6000/predicates.md (rs6000_cbranch_operator): Replace
11918 TARGET_FPRS by 1 and simplify.
11919 * config/rs6000/rs6000-c.c: Ditto.
11920 * config/rs6000/rs6000.c: Ditto. Also replace TARGET_SF_SPE and
11921 TARGET_DF_SPE by 0.
11922 * config/rs6000/rs6000.h: Ditto. Delete TARGET_SF_SPE and
11923 TARGET_DF_SPE.
11924 * config/rs6000/rs6000.md: Ditto.
11925 (floatdidf2, *floatdidf2_fpr): Merge.
11926 (move_from_CR_gt_bit): Delete.
11927 * config/rs6000/spe.md: Replace TARGET_FPRS by 1 and simplify.
11928 (E500_CR_IOR_COMPARE): Delete.
11929 (All patterns that require !TARGET_FPRS): Delete.
11930 * config/rs6000/vsx.md: Replace TARGET_FPRS by 1 and simplify.
11931
11932 2017-06-07 Bin Cheng <bin.cheng@arm.com>
11933
11934 * passes.def (pass_iv_canon): Move before pass_loop_distribution.
11935
11936 2017-06-07 Bin Cheng <bin.cheng@arm.com>
11937
11938 * graphds.c (add_edge): Intitialize edge's attached data.
11939 (foll_in_subgraph, dfs_fst_edge, dfs_next_edge): New function
11940 pointer parameter. Call pointed function on each edge during
11941 graph traversing. Skip traversing the edge when the function
11942 returns true.
11943 (graphds_dfs, graphds_scc): Ditto.
11944 (for_each_edge): New parameter. Pass the new parameter to callback
11945 function.
11946 * graphds.h (skip_edge_callback): New function pointer type.
11947 (graphds_dfs, graphds_scc): New function pointer parameter.
11948 (graphds_edge_callback, for_each_edge): New parameter.
11949
11950 2017-06-07 Bin Cheng <bin.cheng@arm.com>
11951
11952 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Factor
11953 out code checking if runtime alias check is possible to below ...
11954 Call the new function.
11955 * tree-data-ref.c (runtime_alias_check_p): ... to new function.
11956 * tree-data-ref.h (runtime_alias_check_p): New decalaration.
11957
11958 2017-06-07 Marek Polacek <polacek@redhat.com>
11959
11960 PR sanitizer/80932
11961 * fold-const.c (extract_muldiv_1) <case MINUS_EXPR>: Add
11962 TYPE_OVERFLOW_WRAPS check.
11963
11964 2017-06-07 Bin Cheng <bin.cheng@arm.com>
11965
11966 * tree-vect-loop-manip.c (vect_do_peeling): Don't skip vector loop
11967 if versioning is required.
11968 * tree-vect-loop.c (vect_analyze_loop_2): Merge niter check for loop
11969 peeling with the check for versioning.
11970
11971 2017-06-07 Bin Cheng <bin.cheng@arm.com>
11972
11973 * tree-vectorizer.h (vect_build_loop_niters): New parameter.
11974 * tree-vect-loop-manip.c (vect_build_loop_niters): New parameter.
11975 Set true to new parameter if new ssa variable is defined.
11976 (vect_gen_vector_loop_niters): Refactor. Set range information
11977 for the new vector loop bound variable.
11978 (vect_do_peeling): Ditto.
11979
11980 2017-06-07 Bin Cheng <bin.cheng@arm.com>
11981
11982 * tree-affine.c (ssa.h): Include header file.
11983 (tree_to_aff_combination): Handle (T1)(X - CST) when inner type
11984 has wrapping overflow behavior.
11985
11986 2017-06-07 Bin Cheng <bin.cheng@arm.com>
11987
11988 * tree-affine.c (tree_to_aff_combination): Handle (T1)(X + X).
11989
11990 2017-06-07 Bin Cheng <bin.cheng@arm.com>
11991
11992 (aff_combination_expand): Move (T1)(X *+- CST) simplification to ...
11993 (tree_to_aff_combination): ... here.
11994
11995 2017-06-07 Bin Cheng <bin.cheng@arm.com>
11996
11997 * tree-ssa-loop-ivopts.c (ivopts_estimate_reg_pressure): New
11998 reg_pressure model function.
11999 (ivopts_global_cost_for_size): Delete.
12000 (determine_set_costs, iv_ca_recount_cost): Call new model function
12001 ivopts_estimate_reg_pressure.
12002
12003 2017-06-07 Tamar Christina <tamar.christina@arm.com>
12004
12005 * config/aarch64/aarch64.c (aarch64_rtx_costs): Make sdiv more
12006 expensive than udiv. Remove floating point cases from mod.
12007
12008 2017-06-07 Tamar Christina <tamar.christina@arm.com>
12009
12010 * config/arm/aarch-cost-tables.h (cortexa53_extra_cost):
12011 Increase idiv cost.
12012
12013 2017-06-07 Tamar Christina <tamar.christina@arm.com>
12014
12015 * config/aarch64/aarch64.md
12016 (copysignsf3): Fix mask generation.
12017
12018 2017-06-07 Jakub Jelinek <jakub@redhat.com>
12019
12020 * dumpfile.h (enum tree_dump_index): Rename TDI_generic to
12021 TDI_gimple.
12022 (class dump_manager): Add register_dumps method.
12023 * dumpfile.c: Include langhooks.h.
12024 (dump_files): Use 0 instead of 3/4/5 for TDI_{original,gimple,nested}.
12025 (FIRST_AUTO_NUMBERED_DUMP): Decrease to 1.
12026 (FIRST_ME_AUTO_NUMBERED_DUMP): Define.
12027 (dump_manager::dump_register): Start with 512 entries instead of 32.
12028 (dump_manager::register_dumps): New method.
12029 * toplev.c (general_init): Instead of invoking register_dumps
12030 langhook, invoke register_dumps method on the dump manager.
12031 * gimplify.c (gimplify_function_tree): Use TDI_gimple instead of
12032 TDI_generic.
12033
12034 2017-06-07 Richard Sandiford <richard.sandiford@linaro.org>
12035
12036 * doc/md.texi: Clarify the restrictions on a define_insn condition.
12037 Say that # requires an associated define_split to exist, and that
12038 the define_split must be suitable for use after register allocation.
12039
12040 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
12041
12042 * cfgbuild.c (find_bb_boundaries): Initialize profile of split blocks.
12043 (compute_outgoing_frequencies): Also initialize zero counts.
12044 (find_many_sub_basic_blocks): Do not produce uninitialized profile
12045 around loops; preserve more of profile when nothing changes.
12046
12047 2017-06-06 Jim Wilson <jim.wilson@linaro.org>
12048
12049 * config/aarch64/aarch64-cost-tables.h (qdf24xx_extra_costs): Move to
12050 here.
12051 * config/arm/aarch-cost-tables.h (qdf24xx_extra_costs): From here.
12052 * config/arm/arm-cpu-cdata.h: Regenerate.
12053 * config/arm/arm-cpu-data.h, config/arm/arm-cpu.h: Likewise.
12054 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Likewise.
12055 * config/arm/arm-cpus.in: Delete falkor and qdf24xx entries.
12056 * config/arm/arm.c (arm_qdf24xx_tune): Delete.
12057 * config/arm/bpabi.h (BE8_LINK_SPEC): Delete falkor and qdf24xx
12058 support.
12059 * config/arm/t-aprofile (MULTILIB_MATCHES): Delete falkor and qdf24xx
12060 support.
12061 * config/arm/t-rmprofile: Likewise.
12062 * doc/invoke.texi (ARM Options): Drop falkor and qdf24xx support.
12063
12064 2017-06-06 David S. Miller <davem@davemloft.net>
12065
12066 PR target/80968
12067 * config/sparc/sparc.c (sparc_expand_prologue): Emit frame
12068 blockage if function uses alloca.
12069
12070 2017-06-06 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
12071
12072 * tree-ssa-loop-prefetch.c (struct mem_ref_group, struct mem_ref):
12073 New "uid" fields to hold pretty-print IDs of group and ref.
12074 Memory references are now identified as <group_id>:<ref_id>
12075 instead of using [random] addresses.
12076 (dump_mem_details): Simplify, no functional change.
12077 (dump_mem_ref): Simplify and make output more concise.
12078 Replace couple of fprintf's throughout code with calls to dump_mem_ref.
12079 (find_or_create_group): Initialize group uid.
12080 (record_ref): Initialize ref uid. Improve debug output.
12081 (prune_group_by_reuse, should_issue_prefetch_p,)
12082 (should_issue_prefetch_p, schedule_prefetches, issue_prefetch_ref,)
12083 (mark_nontemporal_store, determine_loop_nest_reuse):
12084 Improve debug output.
12085
12086 2017-06-06 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
12087
12088 * dbgcnt.def (prefetch): New debug counter.
12089 * tree-ssa-loop-prefetch.c (dbgcnt.h): New include.
12090 (schedule_prefetches): Stop issueing prefetches if debug counter
12091 tripped.
12092
12093 2017-06-06 Tom de Vries <tom@codesourcery.com>
12094
12095 * doc/sourcebuild.texi (Testsuites, C Language Testsuites,
12096 gcc.c-torture/compile): Remove mention of NO_LABEL_VALUES in fixme.
12097
12098 2017-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12099
12100 * config/aarch64/atomics.md (atomic_compare_and_swap<mode> expander):
12101 Use aarch64_reg_or_zero predicate for operand 4.
12102 (aarch64_compare_and_swap<mode> define_insn_and_split):
12103 Use aarch64_reg_or_zero predicate for operand 3. Add 'Z' constraint.
12104 (aarch64_store_exclusive<mode>): Likewise for operand 2.
12105
12106 2017-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
12107
12108 * config/arm/arm.c (arm_compute_save_reg_mask): Rename into ...
12109 (arm_compute_save_core_reg_mask): This.
12110 (thumb1_compute_save_reg_mask): Rename into ...
12111 (thumb1_compute_save_core_reg_mask): This.
12112 (arm_compute_save_reg0_reg12_mask): Adapt comment.
12113 (arm_compute_frame_layout): Likewise.
12114
12115 2017-06-06 Richard Biener <rguenther@suse.de>
12116
12117 PR tree-optimization/80974
12118 * tree-ssa-sccvn.c (set_ssa_val_to): Do not change but only
12119 keep or clear leaders SSA info.
12120
12121 2017-06-06 Tom de Vries <tom@codesourcery.com>
12122
12123 * config/nvptx/nvptx.c (split_mode_p): New function.
12124 (nvptx_declare_function_name, nvptx_print_operand): Use split_mode_p.
12125
12126 2017-06-06 Tom de Vries <tom@codesourcery.com>
12127
12128 * config/nvptx/nvptx.c (nvptx_print_operand): Use maybe_split_mode.
12129
12130 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
12131
12132 PR bootstrap/80978
12133 * tree-cfg.c (execute_fixup_cfg): Fix condition on when to rescale
12134 profile.
12135
12136 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
12137
12138 * shrink-wrap.c (handle_simple_exit): Update profile.
12139 (try_shrink_wrapping): Upate profile.
12140
12141 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
12142
12143 * predict.c (tree_estimate_probability_bb): Add LOCAL_ONLY.
12144 (tree_guess_outgoing_edge_probabilities): New.
12145 * predict.h (tree_guess_outgoing_edge_probabilities): Declare.
12146 * tree-cfg.c (gimple_find_sub_bbs): Propagate profile.
12147
12148 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
12149
12150 * ipa-split.c (split_function): Initialize return bb profile.
12151
12152 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
12153
12154 * profile.c (compute_branch_probabilities): Also initialize
12155 EXIT_BLOCK profile.
12156
12157 2017-06-06 Richard Biener <rguenther@suse.de>
12158
12159 PR tree-optimization/80928
12160 * tree-vect-loop.c (vect_update_vf_for_slp): Amend dumps.
12161 (vect_analyze_loop_operations): Properly guard analysis for
12162 pure SLP case.
12163 (vect_transform_loop): Likewise.
12164 (vect_analyze_loop_2): Also reset SLP type on PHIs.
12165 (vect_model_induction_cost): Do not cost for pure SLP.
12166 (vectorizable_induction): Pass in SLP node, implement SLP vectorization
12167 of induction in inner loop vectorization.
12168 * tree-vect-slp.c (vect_create_new_slp_node): Handle PHIs.
12169 (vect_get_and_check_slp_defs): Handle vect_induction_def.
12170 (vect_build_slp_tree): Likewise. Handle PHIs as terminating the
12171 recursion.
12172 (vect_analyze_slp_cost_1): Cost induction.
12173 (vect_detect_hybrid_slp_stmts): Handle PHIs.
12174 (vect_get_slp_vect_defs): Likewise.
12175 * tree-vect-stmts.c (vect_analyze_stmt): Handle induction.
12176 (vect_transform_stmt): Handle SLP reductions.
12177 * tree-vectorizer.h (vectorizable_induction): Adjust.
12178
12179 2017-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
12180
12181 * config/rs6000/rs6000.c (make_resolver_func): Update
12182 init_lowered_empty_function call.
12183
12184 2017-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
12185
12186 * doc/invoke.texi: Document the -fprofile-abs-path option.
12187 * common.opt (fprofile-abs-path): New option.
12188 * gcov-io.h (gcov_write_filename): Declare.
12189 * gcov-io.c (gcov_write_filename): New function.
12190 * coverage.c (coverage_begin_function): Use gcov_write_filename.
12191 * profile.c (output_location): Likewise.
12192
12193 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
12194
12195 * shring-wrap.c: Revert accidental commit.
12196
12197 2017-06-05 Volker Reichelt <v.reichelt@netcologne.de>
12198
12199 * doc/invoke.texi (-Wduplicated-branches): Add to warning list.
12200
12201 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
12202
12203 * cfgexpand.c (expand_gimple_tailcall): Initialize profile of
12204 new edge.
12205 * ipa-inline.c (want_inline_self_recursive_call_p): Watch for missing
12206 profile in callgraph edge.
12207 * profile-count.h (apply_probability): If THIS is 0, then result is 0
12208 (apply_scale): Likewise.
12209 * tree-inline.c (copy_bb, copy_edges_for_bb, copy_cfg_body):
12210 Also scale profile when inlining function with zero profile.
12211 (initialize_cfun): Update exit block profile even when it is zero.
12212 * tree-ssa-threadupdate.c (clear_counts_path): Handle correctly case
12213 when profile is read.
12214
12215 2017-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
12216
12217 * config/rs6000/rs6000.c (toplevel): Include attribs.h.
12218 (CLONE_*): New constants to define the processors we can generate
12219 code for with the target_clone attribute.
12220 (rs6000_clone_map): New array to identify which clone processors
12221 the current program is running on.
12222 (TARGET_COMPARE_VERSION_PRIORITY): Define to enable the
12223 target_clone attribute.
12224 (TARGET_GENERATE_VERSION_DISPATCHER_BODY): Likewise.
12225 (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): Likewise.
12226 (TARGET_OPTION_FUNCTION_VERSIONS): Likewise.
12227 (cpu_expand_builtin): Add support for target_clone attribute.
12228 (rs6000_valid_attribute_p): Allow "default" attribute.
12229 (get_decl_name): New debug function to simplify printing the
12230 current function name in debugging statements.
12231 (rs6000_clone_priority): New functions to support the target_clone
12232 attribute, and be able to generate code to switch between ISA 2.05
12233 through ISA 3.0 (power6 through power9).
12234 (rs6000_compare_version_priority): Likewise.
12235 (rs6000_get_function_versions_dispatcher): Likewise.
12236 (make_resolver_func): Likewise.
12237 (add_condition_to_bb): Likewise.
12238 (dispatch_function_versions): Likewise.
12239 (rs6000_generate_version_dispatcher_body): Likewise.
12240 (rs6000_can_inline_p): Call get_decl_name for debugging usage.
12241 (fusion_gpr_load_p): Fix a spacing issue.
12242 * doc/extend.texi (Common Function Attributes): Document that the
12243 PowerPC supports the target_clone attribute.
12244
12245 2017-06-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
12246
12247 * config/arm/arm.h: explain F symbol found in description of ARM
12248 register allocation in its legend.
12249
12250 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
12251
12252 * config/mips/frame-header-opt.c: Include profile-count.h.
12253 * config/riscv/riscv.c: Include profile-count.h
12254
12255 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
12256
12257 * tree-ssa-loop-im.c (execute_sm_if_changed): Add FLAG_BBS parameter;
12258 update profile.
12259 (sm_set_flag_if_changed): Add bbs field.
12260 (execute_sm_if_changed_flag_set): Pass BBS.
12261 (execute_sm): Update.
12262
12263 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12264
12265 * config/aarch64/aarch64-simd.md (aarch64_store_lane0<mode>):
12266 New pattern.
12267
12268 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12269
12270 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): New define_insn.
12271 (peephole2): New peephole2 to emit the above.
12272 * config/aarch64/predicates.md (aarch64_sub_immediate): New predicate.
12273
12274 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12275
12276 * config/aarch64/aarch64.c (define_peephole2 above
12277 *sub_<shift>_<mode>): New peephole.
12278
12279 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
12280
12281 * config/i386/i386.c (make_resolver_func): Update.
12282 * Makefile.in: Add profile-count.h and profile-count.o
12283 * auto-profile.c (afdo_indirect_call): Update to new API.
12284 (afdo_set_bb_count): Update.
12285 (afdo_propagate_edge): Update.
12286 (afdo_propagate_circuit): Update.
12287 (afdo_calculate_branch_prob): Update.
12288 (afdo_annotate_cfg): Update.
12289 * basic-block.h: Include profile-count.h
12290 (struct edge_def): Turn count to profile_count.
12291 (struct basic_block_def): Likewie.
12292 (REG_BR_PROB_BASE): Move to profile-count.h
12293 (RDIV): Move to profile-count.h
12294 * bb-reorder.c (max_entry_count): Turn to profile_count.
12295 (find_traces): Update.
12296 (rotate_loop):Update.
12297 (connect_traces):Update.
12298 (sanitize_hot_paths):Update.
12299 * bt-load.c (migrate_btr_defs): Update.
12300 * cfg.c (RDIV): Remove.
12301 (init_flow): Use alloc_block.
12302 (alloc_block): Uninitialize count.
12303 (unchecked_make_edge): Uninitialize count.
12304 (check_bb_profile): Update.
12305 (dump_edge_info): Update.
12306 (dump_bb_info): Update.
12307 (update_bb_profile_for_threading): Update.
12308 (scale_bbs_frequencies_int): Update.
12309 (scale_bbs_frequencies_gcov_type): Update.
12310 (scale_bbs_frequencies_profile_count): New.
12311 * cfg.h (update_bb_profile_for_threading): Update.
12312 (scale_bbs_frequencies_profile_count): Declare.
12313 * cfgbuild.c (compute_outgoing_frequencies): Update.
12314 (find_many_sub_basic_blocks): Update.
12315 * cfgcleanup.c (try_forward_edges): Update.
12316 (try_crossjump_to_edge): Update.
12317 * cfgexpand.c (expand_gimple_tailcall): Update.
12318 (construct_exit_block): Update.
12319 * cfghooks.c (verify_flow_info): Update.
12320 (dump_bb_for_graph): Update.
12321 (split_edge): Update.
12322 (make_forwarder_block): Update.
12323 (duplicate_block): Update.
12324 (account_profile_record): Update.
12325 * cfgloop.c (find_subloop_latch_edge_by_profile): Update.
12326 (get_estimated_loop_iterations): Update.
12327 * cfgloopanal.c (expected_loop_iterations_unbounded): Update.
12328 (single_likely_exit): Update.
12329 * cfgloopmanip.c (scale_loop_profile): Update.
12330 (loopify): Update.
12331 (set_zero_probability): Update.
12332 (lv_adjust_loop_entry_edge): Update.
12333 * cfgrtl.c (force_nonfallthru_and_redirect): Update.
12334 (purge_dead_edges): Update.
12335 (rtl_account_profile_record): Update.
12336 * cgraph.c (cgraph_node::create): Uninitialize count.
12337 (symbol_table::create_edge): Uninitialize count.
12338 (cgraph_update_edges_for_call_stmt_node): Update.
12339 (cgraph_edge::dump_edge_flags): Update.
12340 (cgraph_node::dump): Update.
12341 (cgraph_edge::maybe_hot_p): Update.
12342 * cgraph.h: Include profile-count.h
12343 (create_clone), create_edge, create_indirect_edge): Update.
12344 (cgraph_node): Turn count to profile_count.
12345 (cgraph_edge0: Likewise.
12346 (make_speculative, clone): Update.
12347 (create_edge): Update.
12348 (init_lowered_empty_function): Update.
12349 * cgraphclones.c (cgraph_edge::clone): Update.
12350 (duplicate_thunk_for_node): Update.
12351 (cgraph_node::create_clone): Update.
12352 * cgraphunit.c (cgraph_node::analyze): Update.
12353 (cgraph_node::expand_thunk): Update.
12354 * final.c (dump_basic_block_info): Update.
12355 * gimple-streamer-in.c (input_bb): Update.
12356 * gimple-streamer-out.c (output_bb): Update.
12357 * graphite.c (print_global_statistics): Update.
12358 (print_graphite_scop_statistics): Update.
12359 * hsa-brig.c: Include basic-block.h.
12360 * hsa-dump.c: Include basic-block.h.
12361 * hsa-gen.c (T sum_slice): Update.
12362 (convert_switch_statements):Update.
12363 * hsa-regalloc.c: Include basic-block.h.
12364 * ipa-chkp.c (chkp_produce_thunks): Update.
12365 * ipa-cp.c (struct caller_statistics): Update.
12366 (init_caller_stats): Update.
12367 (gather_caller_stats): Update.
12368 (ipcp_cloning_candidate_p): Update.
12369 (good_cloning_opportunity_p): Update.
12370 (get_info_about_necessary_edges): Update.
12371 (dump_profile_updates): Update.
12372 (update_profiling_info): Update.
12373 (update_specialized_profile): Update.
12374 (perhaps_add_new_callers): Update.
12375 (decide_about_value): Update.
12376 (ipa_cp_c_finalize): Update.
12377 * ipa-devirt.c (struct odr_type_warn_count): Update.
12378 (struct decl_warn_count): Update.
12379 (struct final_warning_record): Update.
12380 (possible_polymorphic_call_targets): Update.
12381 (ipa_devirt): Update.
12382 * ipa-fnsummary.c (redirect_to_unreachable): Update.
12383 * ipa-icf.c (sem_function::merge): Update.
12384 * ipa-inline-analysis.c (do_estimate_edge_time): Update.
12385 * ipa-inline.c (compute_uninlined_call_time): Update.
12386 (compute_inlined_call_time): Update.
12387 (want_inline_small_function_p): Update.
12388 (want_inline_self_recursive_call_p): Update.
12389 (edge_badness): Update.
12390 (lookup_recursive_calls): Update.
12391 (recursive_inlining): Update.
12392 (inline_small_functions): Update.
12393 (dump_overall_stats): Update.
12394 (dump_inline_stats): Update.
12395 * ipa-profile.c (ipa_profile_generate_summary): Update.
12396 (ipa_propagate_frequency): Update.
12397 (ipa_profile): Update.
12398 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
12399 * ipa-utils.c (ipa_merge_profiles): Update.
12400 * loop-doloop.c (doloop_modify): Update.
12401 * loop-unroll.c (report_unroll): Update.
12402 (unroll_loop_runtime_iterations): Update.
12403 * lto-cgraph.c (lto_output_edge): Update.
12404 (lto_output_node): Update.
12405 (input_node): Update.
12406 (input_edge): Update.
12407 (merge_profile_summaries): Update.
12408 * lto-streamer-in.c (input_cfg): Update.
12409 * lto-streamer-out.c (output_cfg): Update.
12410 * mcf.c (create_fixup_graph): Update.
12411 (adjust_cfg_counts): Update.
12412 (sum_edge_counts): Update.
12413 * modulo-sched.c (sms_schedule): Update.
12414 * postreload-gcse.c (eliminate_partially_redundant_load): Update.
12415 * predict.c (maybe_hot_count_p): Update.
12416 (probably_never_executed): Update.
12417 (dump_prediction): Update.
12418 (combine_predictions_for_bb): Update.
12419 (propagate_freq): Update.
12420 (handle_missing_profiles): Update.
12421 (counts_to_freqs): Update.
12422 (rebuild_frequencies): Update.
12423 (force_edge_cold): Update.
12424 * predict.h: Include profile-count.h
12425 (maybe_hot_count_p, counts_to_freqs): UPdate.
12426 * print-rtl-function.c: Do not include cfg.h
12427 * print-rtl.c: Include basic-block.h
12428 * profile-count.c: New file.
12429 * profile-count.h: New file.
12430 * profile.c (is_edge_inconsistent): Update.
12431 (correct_negative_edge_counts): Update.
12432 (is_inconsistent): Update.
12433 (set_bb_counts): Update.
12434 (read_profile_edge_counts): Update.
12435 (compute_frequency_overlap): Update.
12436 (compute_branch_probabilities): Update; Initialize and deinitialize
12437 gcov_count tables.
12438 (branch_prob): Update.
12439 * profile.h (bb_gcov_counts, edge_gcov_counts): New.
12440 (edge_gcov_count): New.
12441 (bb_gcov_count): New.
12442 * shrink-wrap.c (try_shrink_wrapping): Update.
12443 * tracer.c (better_p): Update.
12444 * trans-mem.c (expand_transaction): Update.
12445 (ipa_tm_insert_irr_call): Update.
12446 (ipa_tm_insert_gettmclone_call): Update.
12447 * tree-call-cdce.c: Update.
12448 * tree-cfg.c (gimple_duplicate_sese_region): Update.
12449 (gimple_duplicate_sese_tail): Update.
12450 (gimple_account_profile_record): Update.
12451 (execute_fixup_cfg): Update.
12452 * tree-inline.c (copy_bb): Update.
12453 (copy_edges_for_bb): Update.
12454 (initialize_cfun): Update.
12455 (freqs_to_counts): Update.
12456 (copy_cfg_body): Update.
12457 (expand_call_inline): Update.
12458 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
12459 * tree-ssa-loop-ivcanon.c (unloop_loops): Update.
12460 (try_unroll_loop_completely): Update.
12461 (try_peel_loop): Update.
12462 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
12463 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Update.
12464 * tree-ssa-loop-split.c (connect_loops): Update.
12465 * tree-ssa-loop-unswitch.c (hoist_guard): Update.
12466 * tree-ssa-reassoc.c (branch_fixup): Update.
12467 * tree-ssa-tail-merge.c (replace_block_by): Update.
12468 * tree-ssa-threadupdate.c (create_block_for_threading): Update.
12469 (compute_path_counts): Update.
12470 (update_profile): Update.
12471 (recompute_probabilities): Update.
12472 (update_joiner_offpath_counts): Update.
12473 (estimated_freqs_path): Update.
12474 (freqs_to_counts_path): Update.
12475 (clear_counts_path): Update.
12476 (ssa_fix_duplicate_block_edges): Update.
12477 (duplicate_thread_path): Update.
12478 * tree-switch-conversion.c (case_bit_test_cmp): Update.
12479 (struct switch_conv_info): Update.
12480 * tree-tailcall.c (decrease_profile): Update.
12481 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
12482 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
12483 * value-prof.c (check_counter): Update.
12484 (gimple_divmod_fixed_value): Update.
12485 (gimple_mod_pow2): Update.
12486 (gimple_mod_subtract): Update.
12487 (gimple_ic_transform): Update.
12488 (gimple_stringop_fixed_value): Update.
12489 * value-prof.h (gimple_ic): Update.
12490
12491 2017-06-02 Carl Love <cel@us.ibm.com>
12492
12493 * config/rs6000/rs6000-c: Add support for built-in functions
12494 vector double vec_doublee (vector signed int);
12495 vector double vec_doublee (vector unsigned int);
12496 vector double vec_doublee (vector float);
12497 vector double vec_doubleh (vector signed int);
12498 vector double vec_doubleh (vector unsigned int);
12499 vector double vec_doubleh (vector float);
12500 vector double vec_doublel (vector signed int);
12501 vector double vec_doublel (vector unsigned int);
12502 vector double vec_doublel (vector float);
12503 vector double vec_doubleo (vector signed int);
12504 vector double vec_doubleo (vector unsigned int);
12505 vector double vec_doubleo (vector float);.
12506 * config/rs6000/rs6000-builtin.def: Add definitions for DOUBLEE,
12507 DOUBLEO, DOUBLEH, DOUBLEL, UNS_DOUBLEO, UNS_DOUBLEE, UNS_DOUBLEH,
12508 UNS_DOUBLEL.
12509 * config/rs6000/altivec.md: Add code generator for doublee<mode>2,
12510 unsdoubleev4si2, doubleo<mode>2, unsdoubleov4si2, doubleh<mode>2,
12511 unsdoublehv4si2, doublel<mode>2, unsdoublelv4si2, add mode attribute
12512 VS_sxwsp.
12513 * config/rs6000/altivec.h: Add define for vec_doublee, vec_doubleo,
12514 vec_doublel, vec_doubleh.
12515 * doc/extend.texi: Update the built-in documentation file for the
12516 new built-in functions.
12517
12518 2017-06-02 David Malcolm <dmalcolm@redhat.com>
12519
12520 PR jit/80954
12521 * ipa-inline-analysis.c (free_growth_caches): Set
12522 edge_removal_hook_holder to NULL after removing it.
12523
12524 2017-06-02 Sudakshina Das <sudi.das@arm.com>
12525
12526 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
12527 comparision with zero.
12528
12529 2017-06-02 Will Schmidt <will_schmidt@vnet.ibm.com>
12530 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
12531 for early expansion of vec_min and vec_max builtins.
12532 (builtin_function_type): Add min/max unsigned variants to those
12533 identified as having unsigned arguments.
12534
12535 2017-06-02 Olivier Hainque <hainque@adacore.com>
12536
12537 * config/vx-common.h (DWARF_UNWIND_INFO): Switch #define to 1.
12538
12539 2017-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12540
12541 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
12542 Use VALL_F16 iterator rather than VALL.
12543
12544 2017-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12545
12546 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap):
12547 Emit CBNZ inside loop when doing a strong exchange and comparing
12548 against zero. Generate the CC flags after the loop.
12549
12550 2017-06-02 David Edelsohn <dje.gcc@gmail.com>
12551
12552 * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE_STR): New.
12553 (dl_section_ref): New.
12554 (dwarf2out_finish): Copy debug_line_section_label to dl_section_ref.
12555 On AIX, append an expression to subtract the size of the
12556 section length to dl_section_ref.
12557
12558 2017-06-02 Will Schmidt <will_schmidt@vnet.ibm.com>
12559
12560 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
12561 for early expansion of vector absolute builtins.
12562
12563 2017-06-02 Richard Biener <rguenther@suse.de>
12564
12565 * tree-vect-slp.c (vect_detect_hybrid_slp_2): Match up
12566 what we consider a relevant use stmt with vect_detect_hybrid_slp_stmts.
12567
12568 2017-06-02 Richard Biener <rguenther@suse.de>
12569
12570 PR tree-optimization/80948
12571 * tree-tailcall.c (find_tail_calls): Track stmts to move in
12572 stmt order as well.
12573
12574 2017-06-02 Richard Biener <rguenther@suse.de>
12575
12576 * tree-vect-loop.c (vect_analyze_loop_operations): Not relevant
12577 PHIs are ok.
12578 * tree-vect-stmts.c (process_use): Do not mark backedge defs
12579 for inductions as relevant.
12580
12581 2017-06-02 Richard Biener <rguenther@suse.de>
12582
12583 * tree-vect-loop.c (get_initial_def_for_induction): Inline into ...
12584 (vectorizable_induction): ... this. Remove dead code.
12585
12586 2017-06-02 Eric Botcazou <ebotcazou@adacore.com>
12587
12588 * builtins. (expand_builtin_alloca): Remove second parameter and
12589 infer its value from the first parameter instead.
12590 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust call to above.
12591
12592 2017-06-02 Jakub Jelinek <jakub@redhat.com>
12593
12594 PR rtl-optimization/80903
12595 * loop-doloop.c (add_test): Unshare sequence.
12596
12597 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
12598
12599 * doc/invoke.texi: Document the -Wsizeof-pointer-div warning.
12600
12601 2017-06-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12602
12603 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers): Make
12604 static.
12605 (xlogue_layout::get_stack_space_used, xlogue_layout::s_instances,
12606 xlogue_layout::get_instance, logue_layout::xlogue_layout,
12607 sp_valid_at, fp_valid_at, choose_basereg): Formatting.
12608 (xlogue_layout::get_stub_rtx): Make static.
12609 (xlogue_layout::get_stub_name): Avoid const-cast, make static.
12610 (xlogue_layout::compute_stub_managed_regs): Rename to...
12611 (xlogue_layout::count_stub_managed_regs): ...this.
12612 (xlogue_layout::is_stub_managed_reg): New function.
12613 (xlogue_layout::m_stub_names): Rename to...
12614 (xlogue_layout::s_stub_names): ...this, make static.
12615 (xlogue_layout::STUB_INDEX_OFFSET, xlogue_layout::MIN_REGS,
12616 xlogue_layout::MAX_REGS, xlogue_layout::MAX_EXTRA_REGS,
12617 xlogue_layout::VARIANT_COUNT, xlogue_layout::STUB_NAME_MAX_LEN,
12618 xlogue_layout::s_stub_names): Instantiate statics.
12619 (stub_managed_regs): Remove.
12620 (ix86_save_reg): Use xlogue_layout::compute_stub_managed_regs.
12621 (disable_call_ms2sysv_xlogues): Rename to...
12622 (warn_once_call_ms2sysv_xlogues): ...this, and warn only once.
12623 (ix86_initial_elimination_offset, ix86_expand_call): Fix call_ms2sysv
12624 warning logic.
12625 (ix86_static_chain): Make sure that ix86_static_chain_on_stack can't
12626 change after reload_completed.
12627 (ix86_can_use_return_insn_p): Use the ix86_frame data structure
12628 directly.
12629 (ix86_expand_prologue): Likewise.
12630 (ix86_expand_epilogue): Likewise.
12631 (ix86_expand_split_stack_prologue): Likewise.
12632 (ix86_compute_frame_layout): Remove frame parameter ...
12633 (TARGET_COMPUTE_FRAME_LAYOUT): ... and export it as a target hook.
12634 (ix86_finalize_stack_realign_flags): Call ix86_compute_frame_layout
12635 only if necessary.
12636 (ix86_init_machine_status): Don't set use_fast_prologue_epilogue_nregs.
12637 (ix86_frame): Move from here ...
12638 * config/i386/i386.h (ix86_frame): ... to here.
12639 (machine_function): Remove use_fast_prologue_epilogue_nregs, cache the
12640 complete ix86_frame data structure instead. Remove some_ld_name.
12641
12642 2017-06-01 Pierre-Marie de Rodat <derodat@adacore.com>
12643
12644 * dwarf2out.c (dwarf2out_late_global_decl): Add locations for
12645 symbols that hold a DECL_VALUE_EXPR.
12646
12647 2017-06-01 Martin Jambor <mjambor@suse.cz>
12648
12649 PR tree-optimization/80898
12650 * tree-sra.c (process_subtree_disqualification): Removed.
12651 (disqualify_candidate): Do not acll
12652 process_subtree_disqualification.
12653 (subtree_mark_written_and_enqueue): New function.
12654 (propagate_all_subaccesses): Set grp_write of LHS subtree if the
12655 RHS has been disqualified and re-queue LHS if necessary. Apart
12656 from that, ignore disqualified RHS.
12657
12658 2017-06-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12659
12660 * config/s390/s390.c (s390_emit_epilogue): Disable early return
12661 address fetch for z10 or later.
12662
12663 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
12664
12665 * config/arc/arc.md (tst_movb): Add guard when splitting.
12666
12667 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
12668
12669 * config/arc/arc.c (arc_can_eliminate): Test against
12670 arc_frame_pointer_needed.
12671
12672 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
12673
12674 * config/arc/arc.c (arc_expand_prologue): Emit a special barrier
12675 to prevent store reordering.
12676 * config/arc/arc.md (UNSPEC_ARC_STKTIE): Define.
12677 (type): Add block type.
12678 (stack_tie): Define special instruction to be used in
12679 expand_prologue.
12680
12681 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
12682
12683 * config/arc/arc.md (commutative_binary_comparison): Remove 'I'
12684 constraint. It is not valid for the pattern.
12685 (noncommutative_binary_comparison): Likewise.
12686
12687 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
12688
12689 * config/arc/simdext.md (movv2hi_insn): Change predicate to avoid
12690 scaled addresses.
12691
12692 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
12693
12694 * config/arc/arc.c (arc_conditional_register_usage): Allow r30 to
12695 be used by the reg-alloc.
12696
12697 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
12698
12699 * config/arc/arc.md (mulsi3): Avoid use of hard registers before
12700 reg-alloc when having mul64 or mul32x16 instructions.
12701 (mulsidi3): Likewise.
12702 (umulsidi3): Likewise.
12703 (mulsi32x16): New pattern.
12704 (mulsi64): Likewise.
12705 (mulsidi64): Likewise.
12706 (umulsidi64): Likewise.
12707 (MUL32x16_REG): Define.
12708 (mul64_600): Use MUL32x16_REG.
12709 (mac64_600): Likewise.
12710 (umul64_600): Likewise.
12711 (umac64_600): Likewise.
12712
12713 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
12714
12715 * config/arc/arc.md (mulsi3_700): Make it commutative.
12716
12717 2017-06-01 Jose E. Marchesi <jose.marchesi@oracle.com>
12718
12719 * config/sparc/sparc.md (*zero_extendsidi2_insn_sp64): Set insn
12720 type for movstouw.
12721 (*sign_extendsidi2_insn): Likewise for movstosw.
12722
12723 2017-06-01 Pierre-Marie de Rodat <derodat@adacore.com>
12724
12725 * dwarf2out.c (get_discr_value): Call the get_debug_type hook on
12726 the type of the input discriminant value. Convert the
12727 discriminant value of signedness vary.
12728
12729 2017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
12730
12731 * doc/invoke.texi (-Wcatch-value): Document new shortcut.
12732 Add to -Wall section.
12733
12734 2017-06-01 Richard Biener <rguenther@suse.de>
12735
12736 PR middle-end/66313
12737 * fold-const.c (fold_plusminus_mult_expr): If the factored
12738 factor may be zero use a wrapping type for the inner operation.
12739 * tree-tailcall.c (independent_of_stmt_p): Pass in to_move bitmap
12740 and handle moved defs.
12741 (process_assignment): Properly guard the unary op case. Return a
12742 tri-state indicating that moving the stmt before the call may allow
12743 to continue. Pass through to_move.
12744 (find_tail_calls): Handle moving unrelated defs before
12745 the call.
12746
12747 2017-05-31 Segher Boessenkool <segher@kernel.crashing.org>
12748
12749 PR target/80618
12750 * config/rs6000/vector.md (*vector_uneq<mode>): Write the nor in the
12751 splitter result in the canonical way.
12752
12753 2017-05-31 Uros Bizjak <ubizjak@gmail.com>
12754
12755 * config/i386/i386.md (*zero_extendsidi2): Enable alternative (?r, *Yj)
12756 also for 32bit target. Update insn attributes.
12757 (zero-extendsidi2 splitter): Allow all registers for operand 1.
12758
12759 2017-05-31 Sebastian Peryt <sebastian.peryt@intel.com>
12760
12761 * config/i386/avx512fintrin.h (_mm_mask_max_sd)
12762 (_mm_maskz_max_sd, _mm_mask_max_ss, _mm_maskz_max_ss)
12763 (_mm_mask_min_sd, _mm_maskz_min_sd, _mm_mask_min_ss)
12764 (_mm_maskz_min_ss): New intrinsics.
12765
12766 2017-05-31 Martin Liska <mliska@suse.cz>
12767
12768 * tree-vect-loop.c (vect_create_epilog_for_reduction):
12769 Change comment style to one we normally use.
12770 (vectorizable_reduction): Likewise.
12771 (vectorizable_induction): Likewise.
12772 * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
12773 (vectorizable_call): Likewise.
12774 (vectorizable_simd_clone_call): Likewise.
12775 (vectorizable_conversion): Likewise.
12776 (vectorizable_assignment): Likewise.
12777 (vectorizable_shift): Likewise.
12778 (vectorizable_operation): Likewise.
12779 (vectorizable_store): Likewise.
12780 (vectorizable_load): Likewise.
12781 * tree-vectorizer.h: Likewise.
12782
12783 2017-05-31 Alexander Monakov <amonakov@ispras.ru>
12784
12785 * passes.c (emergency_dump_function): New.
12786 * tree-pass.h (emergency_dump_function): Declare.
12787 * plugin.c (plugins_internal_error_function): Remove.
12788 * plugin.h (plugins_internal_error_function): Remove declaration.
12789 * toplev.c (internal_error_function): New static function. Use it...
12790 (general_init): ...here.
12791
12792 2017-05-31 Graham Markall <graham.markall@embecosm.com>
12793
12794 * config/arc/arc.c (arc_print_operand): Handle constant operands.
12795 (arc_rtx_costs): Add costs for new patterns.
12796 * config/arc/arc.md: Additional *add_n and *sub_n patterns.
12797 * config/arc/predicates.md: Add _1_2_3_operand predicate.
12798
12799 2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
12800
12801 * tree-ssa-strlen.c (get_next_strinfo): New function.
12802 (get_stridx_plus_constant): Use it.
12803 (zero_length_string): Likewise.
12804 (adjust_related_strinfos): Likewise.
12805 (adjust_last_stmt): Likewise.
12806
12807 2017-05-31 Richard Biener <rguenther@suse.de>
12808
12809 PR target/80880
12810 * config/i386/i386.c (ix86_expand_builtin): Remove assert
12811 for arg being an SSA name when expanding IX86_BUILTIN_BNDRET.
12812
12813 2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
12814
12815 * tree-vect-data-refs.c (vect_find_same_alignment_drs): Remove
12816 loop_vinfo argument and use of dependence distance vectors.
12817 Check instead whether the two references differ only in their
12818 initial value and assume that they have the same alignment if the
12819 difference is a multiple of the vector alignment.
12820 (vect_analyze_data_refs_alignment): Update call accordingly.
12821
12822 2017-05-31 Martin Liska <mliska@suse.cz>
12823
12824 PR target/79155
12825 * config/i386/cpuid.h: Fix typo in a comment in cpuid.h.
12826
12827 2017-05-31 Bin Cheng <bin.cheng@arm.com>
12828
12829 * tree-vect-loop-manip.c (create_intersect_range_checks_index)
12830 (create_intersect_range_checks): Move from ...
12831 * tree-data-ref.c (create_intersect_range_checks_index)
12832 (create_intersect_range_checks): ... to here.
12833 (create_runtime_alias_checks): New function factored from ...
12834 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): ...
12835 here. Call above function.
12836 * tree-data-ref.h (create_runtime_alias_checks): New function.
12837
12838 2017-05-31 Bin Cheng <bin.cheng@arm.com>
12839
12840 * tree-data-ref.c (prune_runtime_alias_test_list): Relax minimal
12841 segment length for dr_b and compute it in wide_int.
12842
12843 2017-05-31 Richard Biener <rguenther@suse.de>
12844
12845 PR tree-optimization/80906
12846 * graphite-isl-ast-to-gimple.c (copy_loop_close_phi_nodes): Get
12847 and pass through iv_map.
12848 (copy_bb_and_scalar_dependences): Adjust.
12849 (translate_pending_phi_nodes): Likewise.
12850 (copy_loop_close_phi_args): Handle code-generating IVs instead
12851 of ICEing.
12852
12853 2017-05-30 David Malcolm <dmalcolm@redhat.com>
12854
12855 * diagnostic-color.c (color_dict): Add "type-diff".
12856 (parse_gcc_colors): Update comment.
12857 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
12858 -fdiagnostics-show-template-tree and -fno-elide-type.
12859 (GCC_COLORS): Add type-diff to example.
12860 (type-diff=): New.
12861 (-fdiagnostics-show-template-tree): New.
12862 (-fno-elide-type): New.
12863 * pretty-print.c (pp_format): Pass quote and formatters[argno] to
12864 the pp_format_decoder callback. Call any m_format_postprocessor's
12865 "handle" method.
12866 (pretty_printer::pretty_printer): Initialize
12867 m_format_postprocessor.
12868 (pretty_printer::~pretty_printer): Delete any
12869 m_format_postprocessor.
12870 * pretty-print.h (printer_fn): Add bool and const char ** parameters.
12871 (class format_postprocessor): New class.
12872 (struct pretty_printer::format_decoder): Document the new parameters.
12873 (struct pretty_printer::m_format_postprocessor): New field.
12874 * tree-diagnostic.c (default_tree_printer): Update for new
12875 bool and const char ** params.
12876 * tree-diagnostic.h (default_tree_printer): Likewise.
12877
12878 2017-05-30 Segher Boessenkool <segher@kernel.crashing.org>
12879
12880 * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand): Delete.
12881 (lwa_operand): Delete rs6000_gen_cell_microcode test.
12882 * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
12883 rs6000_gen_cell_microcode code.
12884 (rs6000_final_prescan_insn): Delete.
12885 (rs6000_opt_vars): Delete the "gen-cell-microcode" and
12886 "warn-cell-microcode" entries.
12887 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Delete.
12888 * config/rs6000/rs6000.md: Delete rs6000_gen_cell_microcode tests
12889 throughout. Change cc_reg_not_micro_cr0_operand to
12890 cc_reg_not_cr0_operand throughout.
12891 (*extendhi<mode>2_noload): Delete.
12892 * config/rs6000/rs6000.opt (mgen-cell-microcode): Replace by stub.
12893 (mwarn-cell-microcode): Delete.
12894 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
12895 -mgen-cell-microcode and -mwarn-cell-microcode.
12896
12897 2017-05-30 Uros Bizjak <ubizjak@gmail.com>
12898
12899 PR target/80833
12900 * config/i386/constraints.md (Yd): New constraint.
12901 (Ye): Ditto.
12902 * config/i386/i386.md (*movti_internal): Add (?r, Ye)
12903 and (?Yd, r) alternatives. Update insn attributes.
12904 * config/i386/i386.md (*movti_internal): Add (?r, *Ye)
12905 and (?*Yd, r) alternatives. Update insn attributes.
12906 (double-mode inter-unit splitters): Add new GR<->XMM splitters.
12907
12908 2017-05-30 Pierre-Marie de Rodat <derodat@adacore.com>
12909
12910 * gimplify.c (gimplify_modify_expr): Don't create a
12911 DECL_DEBUG_EXPR link if *FROM_P does not belong to the current
12912 function.
12913
12914 2017-05-30 Wilco Dijkstra <wdijkstr@arm.com>
12915
12916 * config/arm/arm-builtins.c (arm_expand_builtin): Remove const.
12917
12918 2017-05-30 Richard Biener <rguenther@suse.de>
12919
12920 * tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type
12921 and reduc_def fields.
12922 (STMT_VINFO_REDUC_TYPE): New define.
12923 (STMT_VINFO_REDUC_DEF): Likewise.
12924 (vect_force_simple_reduction): Adjust prototype.
12925 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Adjust.
12926 (vect_is_simple_reduction): Remove check_reduction argument.
12927 (vect_force_simple_reduction): Adjust and set
12928 STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
12929 (vectorizable_reduction): Do not re-do reduction analysis
12930 but use STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
12931 * tree-parloops.c (gather_scalar_reductions): Adjust.
12932
12933 2017-05-30 Richard Biener <rguenther@suse.de>
12934
12935 PR middle-end/80901
12936 * cfgexpand.c (expand_gimple_cond): Match up loop fixup with
12937 split_edge code.
12938
12939 2017-05-24 Robin Dapp <rdapp@linux.vnet.ibm.com>
12940
12941 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
12942 Introduce unknown_misalignment parameter and remove vf.
12943 (vect_peeling_hash_get_lowest_cost):
12944 Pass unknown_misalignment parameter.
12945 (vect_enhance_data_refs_alignment):
12946 Fix unsupportable data ref treatment.
12947
12948 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
12949
12950 * tree-vect-data-refs.c (vect_get_data_access_cost):
12951 Workaround for SLP handling.
12952 (vect_enhance_data_refs_alignment):
12953 Compute costs for doing no peeling at all, compare to the best
12954 peeling costs so far and avoid peeling if cheaper.
12955
12956 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
12957
12958 * tree-vect-data-refs.c (vect_peeling_hash_choose_best_peeling):
12959 Return peeling info and set costs to zero for unlimited cost
12960 model.
12961 (vect_enhance_data_refs_alignment): Also inspect all datarefs
12962 with unknown misalignment. Compute and costs for unknown
12963 misalignment, compare them to the costs for known misalignment
12964 and choose the cheapest for peeling.
12965
12966 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
12967
12968 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Rename.
12969 (vect_get_peeling_costs_all_drs): Create function.
12970 (vect_peeling_hash_get_lowest_cost):
12971 Use vect_get_peeling_costs_all_drs.
12972 (vect_peeling_supportable): Create function.
12973 (vect_enhance_data_refs_alignment): Use vect_peeling_supportable.
12974
12975 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
12976
12977 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Create
12978 DR_HAS_NEGATIVE_STEP.
12979 (vect_update_misalignment_for_peel): Define DR_MISALIGNMENT.
12980 (vect_enhance_data_refs_alignment): Use.
12981 (vect_duplicate_ssa_name_ptr_info): Use.
12982 * tree-vectorizer.h (dr_misalignment): Use.
12983 (known_alignment_for_access_p): Use.
12984
12985 2017-05-30 Jozef Lawrynowicz <jozef.l@somniumtech.com>
12986
12987 PR target/78838
12988 * config/msp430/msp430.c (gen_prefix): Return NULL when section name is
12989 .lowtext.
12990 (has_section_name): New function.
12991
12992 2017-05-30 Martin Liska <mliska@suse.cz>
12993
12994 PR other/80909
12995 * auto-profile.c (get_function_decl_from_block): Fix
12996 parenthesis.
12997
12998 2017-05-30 Richard Biener <rguenther@suse.de>
12999
13000 PR middle-end/80876
13001 * cfgexpand.c (expand_gimple_cond): Fixup preserving loops again.
13002
13003 2017-05-30 Martin Liska <mliska@suse.cz>
13004
13005 * dumpfile.c: Use newly added macro DUMP_FILE_INFO.
13006 * dumpfile.h (struct dump_file_info): Remove ctors.
13007
13008 2017-05-30 Martin Liska <mliska@suse.cz>
13009
13010 * predict.def: Fix GNU coding style.
13011
13012 2017-05-29 Max Filippov <jcmvbkbc@gmail.com>
13013
13014 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
13015 Mark 'to' argument with ATTRIBUTE_UNUSED.
13016
13017 2017-05-29 Max Filippov <jcmvbkbc@gmail.com>
13018
13019 * config/xtensa/xtensa.c (xtensa_emit_call): Use
13020 HOST_WIDE_INT_PRINT_HEX instead of 0x%lx format string.
13021 (print_operand): Use HOST_WIDE_INT_PRINT_DEC instead of %ld
13022 format string.
13023
13024 2017-05-29 Eric Botcazou <ebotcazou@adacore.com>
13025
13026 * doc/install.texi (Options specification): Restore entry of
13027 --enable-sjlj-exceptions.
13028
13029 2017-05-27 Michael Eager <eager@eagercon.com>
13030
13031 Revert:
13032 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
13033
13034 See https://gcc.gnu.org/ml/gcc/2017-05/msg00221.html.
13035
13036 * config/microblaze/microblaze.h
13037 (FIXED_REGISTERS): Update in macro.
13038 (CALL_USED_REGISTERS): Update in macro.
13039
13040 2017-05-27 François-Xavier Coudett <fxcoudert@gcc.gnu.org>
13041
13042 * doc/install.texi: Add links to macOS binary distributions.
13043
13044 2017-05-27 Jakub Jelinek <jakub@redhat.com>
13045
13046 PR bootstrap/80887
13047 Revert:
13048 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
13049
13050 * match.pd ((A +- CST1) +- CST2): Allow some conversions.
13051
13052 2017-05-26 Martin Liska <mliska@suse.cz>
13053
13054 * dumpfile.h (enum dump_kind): Renumber TDF_* flags to be contiguous.
13055
13056 2017-05-26 Martin Liska <mliska@suse.cz>
13057
13058 * cfg.c (check_bb_profile): Do not use TDF_COMMENT and print
13059 always leading ';; '.
13060 (dump_bb_info): Likewise.
13061 (brief_dump_cfg): Likewise.
13062 * cfgrtl.c (print_rtl_with_bb): Do not use TDF_COMMENT.
13063 * dumpfile.c: Remove usage of TDF_VERBOSE.
13064 * dumpfile.h (enum dump_kind): Likewise.
13065 (dump_gimple_bb_header): Do not use TDF_COMMENT.
13066 * print-tree.c (debug_verbose): Remove.
13067 * tree-cfg.c (gimple_dump_cfg): Do not use TDF_COMMENT.
13068 (dump_function_to_file): Remove dumps guarded with TDF_VERBOSE.
13069 * tree-diagnostic.c (default_tree_printer): Replace
13070 TDF_DIAGNOSTIC with TDF_SLIM.
13071
13072 2017-05-26 Bin Cheng <bin.cheng@arm.com>
13073
13074 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Pass
13075 in parameter loop, rather than loop_vinfo.
13076 (create_intersect_range_checks): Ditto.
13077 (vect_create_cond_for_alias_checks): Update call to above functions.
13078
13079 2017-05-26 Bin Cheng <bin.cheng@arm.com>
13080
13081 PR tree-optimization/80815
13082 * tree-data-ref.c (prune_runtime_alias_test_list): Simplify condition
13083 for merging runtime alias checks. Handle negative DR_STEPs.
13084
13085 2017-05-26 Bin Cheng <bin.cheng@arm.com>
13086
13087 * tree-vect-data-refs.c (Operator==, comp_dr_with_seg_len_pair):
13088 Move from ...
13089 * tree-data-ref.c (Operator==, comp_dr_with_seg_len_pair): To here.
13090 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Factor
13091 out code pruning runtime alias checks.
13092 * tree-data-ref.c (prune_runtime_alias_test_list): New function
13093 factored out from above.
13094 * tree-vectorizer.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
13095 Move from ...
13096 * tree-data-ref.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
13097 ... to here.
13098 (prune_runtime_alias_test_list): New decalaration.
13099
13100 2017-05-26 Bin Cheng <bin.cheng@arm.com>
13101
13102 * tree-vect-data-refs.c (compare_tree): Rename and move ...
13103 * tree-data-ref.c (data_ref_compare_tree): ... to here.
13104 * tree-data-ref.h (data_ref_compare_tree): New decalaration.
13105 * tree-vect-data-refs.c (dr_group_sort_cmp): Update uses.
13106 (operator==, comp_dr_with_seg_len_pair): Ditto.
13107 (vect_prune_runtime_alias_test_list): Ditto.
13108
13109 2017-05-26 Martin Liska <mliska@suse.cz>
13110
13111 PR ipa/80663
13112 * params.def: Bound partial-inlining-entry-probability param.
13113
13114 2017-05-26 Marek Polacek <polacek@redhat.com>
13115
13116 PR sanitizer/80875
13117 * fold-const.c (fold_binary_loc) <case MULT_EXPR>: Check if OP1
13118 can be negated.
13119
13120 2017-05-26 Richard Biener <rguenther@suse.de>
13121
13122 PR tree-optimization/80842
13123 * tree-ssa-ccp.c (set_lattice_value): Always meet with the old
13124 value.
13125
13126 2017-05-26 Richard Biener <rguenther@suse.de>
13127
13128 PR tree-optimization/80844
13129 * tree-vectorizer.c (adjust_simduid_builtins): Propagate results.
13130
13131 2017-05-25 Sebastian Peryt <sebastian.peryt@intel.com>
13132
13133 * doc/md.texi (Machine Constraints): Update x86 family
13134 machine constraints section to match 'config/i386/constraints.md'.
13135
13136 2017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
13137
13138 * doc/invoke.texi (-Wcatch-value=): Document new warning option.
13139
13140 2017-05-25 Nathan Sidwell <nathan@acm.org>
13141
13142 * doc/invoke.texi (--enable-languages): Update documentation.
13143
13144 2017-05-25 Martin Liska <mliska@suse.cz>
13145
13146 * dumpfile.c: Add TDF_FOLDING.
13147 * dumpfile.h (enum dump_kind): Likewise.
13148 * genmatch.c (dt_simplify::gen_1): Use it.
13149
13150 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
13151
13152 * match.pd (view_convert (convert@0 @1)): Handle zero-extension.
13153
13154 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
13155
13156 * match.pd ((A +- CST1) +- CST2): Allow some conversions.
13157 * tree.c (drop_tree_overflow): Handle COMPLEX_CST and VECTOR_CST.
13158
13159 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
13160
13161 * fold-const.c (fold_binary_loc) [(A & C) == D]: Remove transformation.
13162 * match.pd (X == C): Rewrite it here.
13163 (with_possible_nonzero_bits, with_possible_nonzero_bits2,
13164 with_certain_nonzero_bits2): New predicates.
13165 * tree-ssanames.c (get_nonzero_bits): Handle INTEGER_CST.
13166
13167 2017-05-24 Nathan Sidwell <nathan@acm.org>
13168
13169 * lto-streamer-in.c (lto_input_data_block): Adjust T const cast to
13170 avoid warning.
13171
13172 * auto-profile.c (afdo_propagate): Adjust T const cast to avoid
13173 warning.
13174
13175 2017-05-24 Segher Boessenkool <segher@kernel.crashing.org>
13176
13177 * config/powerpcspe: New port. Files are copied from the rs6000
13178 port, with "rs6000" in filenames replaced by "powerpcspe".
13179
13180 2017-05-24 Wilco Dijkstra <wdijkstr@arm.com>
13181
13182 PR rtl-optimization/80754
13183 * lra-remat.c (do_remat): Add overlap checks for dst_regno.
13184
13185 2017-05-24 Sheldon Lobo <smlobo@sheldon.us.oracle.com>
13186
13187 * config/sparc/sparc.md (length): Return the correct value for -mflat
13188 sibcalls to match output_sibcall.
13189
13190 2017-05-24 Segher Boessenkool <segher@kernel.crashing.org>
13191
13192 PR bootstrap/80860
13193 PR bootstrap/80843
13194 * config/rs6000/rs6000.c (struct machine_function): Add new field
13195 n_components.
13196 (rs6000_get_separate_components): Init that field, use it.
13197 (rs6000_components_for_bb): Use the field.
13198
13199 2017-05-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13200
13201 * config/arm/arm.c (arm_expand_prologue): Fix typo in comment.
13202
13203 2017-05-24 Peter Bergner <bergner@vnet.ibm.com>
13204
13205 PR middle-end/80823
13206 * tree-cfg.c (group_case_labels_stmt): Delete increment of "i";
13207
13208 2017-05-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13209
13210 PR target/80725
13211 * config/s390/s390.c (s390_check_qrst_address): Check incoming
13212 address against address_operand predicate.
13213 * config/s390/s390.md ("*indirect_jump"): Swap alternatives.
13214
13215 2017-05-24 Eric Botcazou <ebotcazou@adacore.com>
13216
13217 * var-tracking.c (track_expr_p): Do not return 0 for tracked record
13218 parameters passed indirectly.
13219
13220 2017-05-23 Uros Bizjak <ubizjak@gmail.com>
13221
13222 * config/i386/i386.md (*movdi_internal): Remove SSE4
13223 alternative 18 (?r, *v). Update insn attributes.
13224 (*movsi_internal): Remove SSE4 alternative 13 (?r, *v).
13225 Update insn attributes.
13226 (*zero_extendsidi2): Remove SSE4 alternative (?r, *x).
13227 Update insn attributes.
13228 * config/i386/sse.md (vec_extract<ssevecmodelower>_0): Remove SSE4
13229 alternative 1 (r, v). Remove isa attribute.
13230 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
13231 Always move value through stack for !TARGET_INTER_UNIT_MOVES_TO_VEC
13232 and !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
13233
13234 2017-05-23 Tom de Vries <tom@codesourcery.com>
13235
13236 * doc/sourcebuild.texi (Directives, Verify compiler message): Document
13237 dg-line directive.
13238
13239 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
13240
13241 * cgraphunit.c (symbol_table::process_new_functions): Update.
13242 * ipa-fnsummary.c (pass_data_inline_parameters): Remove.
13243 (inline_generate_summary): Rename to ...
13244 (ipa_fn_summary_generate): ... this one.
13245 (inline_read_summary): Rename to ...
13246 (ipa_fn_summary_read): ... this one.
13247 (inline_write_summary): Rename to ...
13248 (ipa_fn_summary_write): ... this one.
13249 (inline_free_summary): Rename to ...
13250 (ipa_free_fn_summary): ... this one.
13251 (pass_data_local_fn_summary, pass_local_fn_summary,
13252 make_pass_local_fn_summary, pass_data_ipa_free_fn_summary,
13253 pass_ipa_free_fn_summary, make_pass_ipa_free_fn_summary,
13254 pass_data_ipa_fn_summary, pass_ipa_fn_summary,
13255 make_pass_ipa_fn_summary): New.
13256 * ipa-fnsummary.h (inline_generate_summary, inline_read_summary,
13257 inline_write_summary, inline_free_summary): Remove.
13258 (ipa_free_fn_summary) : New.
13259 * ipa-inline.c (ipa_inline): Update.
13260 (pass_ipa_inline): Do not generate summaries.
13261 * ipa.c (pass_data_ipa_free_fn_summary, pass_ipa_free_fn_summary):
13262 Remove.
13263 * passes.def: Replace pass_inline_parameters by pass_local_fn_summary
13264 and add pass_ipa_fn_summary.
13265 * tree-pass.h (make_pass_ipa_fn_summary, make_pass_local_fn_summary):
13266 New.
13267 (make_pass_inline_parameters): Remove.
13268
13269 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
13270
13271 * omp-low.c (struct omp_context): Remove "default_kind" member.
13272 Adjust all users.
13273
13274 * omp-offload.c (execute_oacc_device_lower): Remove the
13275 parallelism dimensions function attributes for unparallelized
13276 OpenACC kernels constructs.
13277
13278 2017-05-23 Martin Liska <mliska@suse.cz>
13279
13280 * cgraph.c (cgraph_node::get_create): Use symtab_node::dump_{asm_,}name
13281 functions.
13282 (cgraph_edge::make_speculative): Likewise.
13283 (cgraph_edge::resolve_speculation): Likewise.
13284 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
13285 (cgraph_node::dump): Likewise.
13286 * cgraph.h: Likewise.
13287 * cgraphunit.c (analyze_functions): Likewise.
13288 (symbol_table::compile): Likewise.
13289 * ipa-cp.c (print_all_lattices): Likewise.
13290 (determine_versionability): Likewise.
13291 (initialize_node_lattices): Likewise.
13292 (ipcp_verify_propagated_values): Likewise.
13293 (estimate_local_effects): Likewise.
13294 (update_profiling_info): Likewise.
13295 (create_specialized_node): Likewise.
13296 (perhaps_add_new_callers): Likewise.
13297 (decide_about_value): Likewise.
13298 (decide_whether_version_node): Likewise.
13299 (identify_dead_nodes): Likewise.
13300 (ipcp_store_bits_results): Likewise.
13301 * ipa-devirt.c (dump_targets): Likewise.
13302 (ipa_devirt): Likewise.
13303 * ipa-icf.c (sem_item::dump): Likewise.
13304 (sem_function::equals): Likewise.
13305 (sem_variable::equals): Likewise.
13306 (sem_item_optimizer::read_section): Likewise.
13307 (sem_item_optimizer::execute): Likewise.
13308 (congruence_class::dump): Likewise.
13309 * ipa-inline-analysis.c (dump_ipa_call_summary): Likewise.
13310 (dump_inline_summary): Likewise.
13311 (estimate_node_size_and_time): Likewise.
13312 (inline_analyze_function): Likewise.
13313 * ipa-inline-transform.c (inline_call): Likewise.
13314 * ipa-inline.c (report_inline_failed_reason): Likewise.
13315 (want_early_inline_function_p): Likewise.
13316 (edge_badness): Likewise.
13317 (update_edge_key): Likewise.
13318 (inline_small_functions): Likewise.
13319 * ipa-profile.c (ipa_profile): Likewise.
13320 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
13321 (ipa_make_edge_direct_to_target): Likewise.
13322 (remove_described_reference): Likewise.
13323 (ipa_impossible_devirt_target): Likewise.
13324 (propagate_controlled_uses): Likewise.
13325 (ipa_print_node_params): Likewise.
13326 (ipcp_transform_function): Likewise.
13327 * ipa-pure-const.c (pure_const_read_summary): Likewise.
13328 (propagate_pure_const): Likewise.
13329 * ipa-reference.c (generate_summary): Likewise.
13330 (read_write_all_from_decl): Likewise.
13331 (propagate): Likewise.
13332 (ipa_reference_read_optimization_summary): Likewise.
13333 * ipa-utils.c (ipa_merge_profiles): Likewise.
13334 * ipa.c (walk_polymorphic_call_targets): Likewise.
13335 (symbol_table::remove_unreachable_nodes): Likewise.
13336 (ipa_single_use): Likewise.
13337 * passes.c (execute_todo): Likewise.
13338 * predict.c (drop_profile): Likewise.
13339 * symtab.c (symtab_node::get_dump_name): New function.
13340 (symtab_node::dump_name): Likewise.
13341 (symtab_node::dump_asm_name): Likewise.
13342 (symtab_node::dump_references): Likewise.
13343 (symtab_node::dump_referring): Likewise.
13344 (symtab_node::dump_base): Likewise.
13345 (symtab_node::debug_symtab): Likewise.
13346 * tree-sra.c (convert_callers_for_node): Likewise.
13347 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
13348 * value-prof.c (init_node_map): Likewise.
13349
13350 2017-05-23 Martin Liska <mliska@suse.cz>
13351
13352 * cgraph.h: Move symtab_node::dump_table to symbol_table::dump
13353 and symtab_node::debug_symtab to symbol_table::debug.
13354 * cgraphunit.c (analyze_functions): Use the renamed function.
13355 (symbol_table::compile): Likewise.
13356 * ipa-cp.c (ipcp_verify_propagated_values): Likewise.
13357 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
13358 * passes.c (execute_todo): Likewise.
13359 * symtab.c (symbol_table::dump): New function.
13360 * tree-ssa-structalias.c (ipa_pta_execute): Use the renamed function.
13361
13362 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
13363
13364 * ipa-fnsummary.c (estimate_node_size_and_time): Do not sanity check
13365 that nonconst implies exec.
13366
13367 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
13368
13369 * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
13370 inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
13371 (inline_edge_summary_vec): Turn into ...
13372 (ipa_call_summaries): ... this one.
13373 (redirect_to_unreachable, edge_set_predicate,
13374 evaluate_properties_for_edge, inline_summary_alloc,
13375 reset_ipa_call_summary, reset_inline_summary,
13376 inline_summary_t::duplicate): Update.
13377 (inline_edge_duplication_hook): Turn to ...
13378 (ipa_call_summary_t::duplicate): ... this one.
13379 (inline_edge_removal_hook): Turn to ...
13380 (ipa_call_summary_t::remove): ... this one.
13381 (dump_inline_edge_summary): Turn to ...
13382 (dump_ipa_call_summary): ... this one.
13383 (estimate_function_body_sizes): Update.
13384 (inline_update_callee_summaries): Update.
13385 (remap_edge_change_prob): Update.
13386 (remap_edge_summaries): Update.
13387 (inline_merge_summary): Update.
13388 (do_estimate_edge_time): Update.
13389 (inline_generate_summary): Update.
13390 (inline_read_section): Update.
13391 (inline_read_summary): Update.
13392 (inline_free_summary): Update.
13393 * ipa-inline.c (can_inline_edge_p): Update.
13394 (compute_inlined_call_time): Update.
13395 (want_inline_small_function_p): Update.
13396 (edge_badness): Update.
13397 (early_inliner): Update.
13398 * ipa-inline.h (inline_edge_summary): Turn to ...
13399 (ipa_call_summary): ... this one.
13400 (ipa_call_summary_t): New class.
13401 (inline_edge_summary_t, inline_edge_summary_vec): Remove.
13402 (ipa_call_summaries): New.
13403 (inline_edge_summary): Remove.
13404 (estimate_edge_growth): Update.
13405 * ipa-profile.c (ipa_propagate_frequency_1): Update.
13406 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
13407 * ipa-split.c (execute_split_functions): Update.
13408 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
13409
13410 2017-05-23 Tom de Vries <tom@codesourcery.com>
13411
13412 * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
13413 attributes): Document rdrand effective target.
13414
13415 2017-05-23 Tom de Vries <tom@codesourcery.com>
13416
13417 * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
13418 attributes): Sort alphabetically.
13419
13420 2017-05-23 Georg-Johann Lay <avr@gjlay.de>
13421
13422 * config/avr/genmultilib.awk: Use gsub instead of gensub.
13423
13424 2017-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
13425
13426 PR target/80718
13427 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Split
13428 V2DF/V2DI splat into two separate patterns, one that handles
13429 registers, and the other that only handles memory. Drop support
13430 for splatting from a GPR on ISA 2.07 and then splitting the
13431 splat into direct move and splat.
13432 (vsx_splat_<mode>_reg): Likewise.
13433 (vsx_splat_<mode>_mem): Likewise.
13434
13435 2017-05-22 Segher Boessenkool <segher@kernel.crashing.org>
13436
13437 * cfgcleanup.c (bb_is_just_return): Allow CLOBBERs.
13438
13439 2017-05-22 Jakub Jelinek <jakub@redhat.com>
13440
13441 PR middle-end/80809
13442 * omp-low.c (finish_taskreg_remap): New function.
13443 (finish_taskreg_scan): If unit size of ctx->record_type
13444 is non-constant, unshare the size expression and replace
13445 decls in it with possible outer var refs.
13446
13447 PR middle-end/80809
13448 * gimplify.c (omp_add_variable): For GOVD_DEBUG_PRIVATE use
13449 GOVD_SHARED rather than GOVD_PRIVATE with it.
13450 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Expect
13451 GOVD_SHARED rather than GOVD_PRIVATE with GOVD_DEBUG_PRIVATE.
13452
13453 PR middle-end/80853
13454 * omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
13455 as last argument to build_outer_var_ref for pointer bases of array
13456 section reductions.
13457
13458 2017-05-19 Martin Sebor <msebor@redhat.com>
13459
13460 * print-tree.c (print_node): Print DECL_READ_P flag.
13461
13462 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
13463
13464 * Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h
13465 * auto-profile.c: Replace ipa-inline.h by ipa-fnsummary.h
13466 * cgraph.c: Likewise.
13467 * cgraphunit.c: Likewise.
13468 * gengtype.c: Likewise.
13469 * ipa-cp.c: Likewise.
13470 * ipa-devirt.c: Likewise.
13471 * ipa-icf.c: Likewise.
13472 * ipa-predicate.c: Likewise.
13473 * ipa-profile.c: Likewise.
13474 * ipa-prop.c: Likewise.
13475 * ipa-split.c: Likewise.
13476 * ipa.c: Likewise.
13477 * ipa-inline-analysis.c (inline_summaries, ipa_call_summaries,
13478 edge_predicate_pool, dump_inline_hints,
13479 inline_summary::account_size_time, redirect_to_unreachable,
13480 edge_set_predicate, set_hint_predicate,
13481 evaluate_conditions_for_known_args, evaluate_properties_for_edge,
13482 inline_summary_alloc, ipa_call_summary::reset, inline_summary::reset,
13483 inline_summary_t::remove, remap_hint_predicate_after_duplication,
13484 inline_summary_t::duplicate, ipa_call_summary_t::duplicate,
13485 ipa_call_summary_t::remove, initialize_growth_caches,
13486 free_growth_caches, dump_ipa_call_summary, dump_inline_summary,
13487 debug_inline_summary, dump_inline_summaries, initialize_inline_failed,
13488 mark_modified, unmodified_parm_1, unmodified_parm,
13489 unmodified_parm_or_parm_agg_item, eliminated_by_inlining_prob,
13490 set_cond_stmt_execution_predicate, set_switch_stmt_execution_predicate,
13491 compute_bb_predicates, will_be_nonconstant_expr_predicate,
13492 will_be_nonconstant_predicate, record_modified_bb_info,
13493 get_minimal_bb, record_modified, param_change_prob,
13494 phi_result_unknown_predicate, predicate_for_phi_result,
13495 array_index_predicate, clobber_only_eh_bb_p, fp_expression_p,
13496 estimate_function_body_sizes, compute_inline_parameters,
13497 compute_inline_parameters_for_curren, pass_data_inline_parameters,
13498 estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,
13499 inline_update_callee_summaries, remap_edge_change_prob,
13500 remap_edge_summaries, remap_hint_predicate, inline_merge_summary,
13501 inline_update_overall_summary, inline_indirect_intraprocedural_analysis,
13502 inline_analyze_function, inline_summary_t::insert,
13503 inline_generate_summary, read_ipa_call_summary, inline_read_section,
13504 inline_read_summary, write_ipa_call_summary, inline_write_summary,
13505 inline_free_summary): Move to ipa-fnsummary.h
13506 (predicate_t): Remove.
13507 * ipa-fnsummary.c: New file.
13508 * ipa-inline.h: Do not include sreal.h and ipa-predicate.h
13509 (enum inline_hints_vals, inline_hints, agg_position_info,
13510 INLINE_SIZE_SCALE, size_time_entry, inline_summary, inline_summary_t,
13511 inline_summaries, ipa_call_summary, ipa_call_summary_t,
13512 ipa_call_summaries, debug_inline_summary, dump_inline_summaries,
13513 dump_inline_summary, dump_inline_hints, inline_generate_summary,
13514 inline_read_summary, inline_write_summary, inline_free_summary,
13515 inline_analyze_function, initialize_inline_failed,
13516 inline_merge_summary, inline_update_overall_summary,
13517 compute_inline_parameters): Move to ipa-fnsummary.h
13518 * ipa-fnsummary.h: New file.
13519 * ipa-inline-transform.h: Include ipa-inline.h.
13520 * ipa-inline.c: LIkewise.
13521
13522 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
13523
13524 * ipa-inline.c (edge_badness): Use inlined_time instead of
13525 inline_summaries->get.
13526
13527 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
13528
13529 * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
13530
13531 2017-05-22 Nathan Sidwell <nathan@acm.org>
13532
13533 * doc/invoke.texi (fdump-translation-unit): Delete documentation.
13534 (fdump-lang): Document 'raw' option.
13535 * dumpfile.h (TDI_tu): Delete.
13536 * dumpfile.c (dump_files): Remove translation-unit.
13537 (FIRST_AUTO_NUMBERED_DUMP): Decrement.
13538
13539 2017-05-22 Georg-Johann Lay <avr@gjlay.de>
13540
13541 * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
13542 command option from $(AWK) call.
13543 * config/avr/genmultilib.awk: Simplify and rewrite so that it
13544 generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
13545 [FORMAT]: Remove handling of variable.
13546 * config/avr/t-multilib: Regenerate.
13547
13548 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
13549
13550 * ipa-inline-analysis.c (inline_summary::reset): Do not reset
13551 self_time.
13552 (dump_inline_summary): Do not print self_time.
13553 (estimate_function_body_sizes): Do not set self_time.
13554 (compute_inline_parameters): Likewise.
13555 (inline_read_section, inline_write_summary): Do not stream self_time.
13556 * ipa-inline.h (inline_summary): Drop self_time.
13557
13558 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
13559
13560 * ipa-inline-analysis.c (account_size_time): Rename to ...
13561 (inline_summary::account_size_time): ... this one.
13562 (reset_ipa_call_summary): Turn to ...
13563 (ipa_call_summary::reset): ... this one.
13564 (reset_inline_summary): Turn to ...
13565 (inline_summary::reset): ... this one.
13566 (inline_summary_t::remove): Update.
13567 (inline_summary_t::duplicate): Update.
13568 (ipa_call_summary_t::remove): Update.
13569 (dump_inline_summary): Update.
13570 (estimate_function_body_sizes): Update.
13571 (compute_inline_parameters): Update.
13572 (estimate_node_size_and_time): Update.
13573 (inline_merge_summary): Update.
13574 (inline_update_overall_summary): Update.
13575 (inline_read_section): Update.
13576 (inline_write_summary): Update.
13577 * ipa-inline.h (inline_summary): Rename entry to size_time_table;
13578 add account_size_time and reset member functions.
13579 (ipa_call_summary): Add reset function.
13580 * ipa-predicate.h (predicate::operator &): Constify.
13581
13582 2017-05-22 Richard Biener <rguenther@suse.de>
13583
13584 * df-scan.c (df_insn_refs_verify): Speedup when not verifying.
13585
13586 2017-05-19 Jason Merrill <jason@redhat.com>
13587
13588 * tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
13589
13590 2017-05-19 Marek Polacek <polacek@redhat.com>
13591
13592 PR sanitizer/80800
13593 * fold-const.c (extract_muldiv_1) <case TRUNC_DIV_EXPR>: Add
13594 TYPE_OVERFLOW_WRAPS checks.
13595
13596 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
13597
13598 * tree-core.h (enum omp_clause_default_kind): Add
13599 "OMP_CLAUSE_DEFAULT_PRESENT".
13600 * tree-pretty-print.c (dump_omp_clause): Handle it.
13601 * gimplify.c (enum gimplify_omp_var_data): Add
13602 "GOVD_MAP_FORCE_PRESENT".
13603 (gimplify_adjust_omp_clauses_1): Map it to
13604 "GOMP_MAP_FORCE_PRESENT".
13605 (oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
13606
13607 * gimplify.c (oacc_default_clause): Clarify.
13608
13609 2017-05-19 Nathan Sidwell <nathan@acm.org>
13610
13611 LANG_HOOK_REGISTER_DUMPS
13612 * toplev.c (general_init): Call register dump lang hook.
13613 * doc/invoke.texi: Document -fdump-lang option family.
13614 * dumpfile.c (dump_files): Remove class dump here.
13615 (FIRST_AUTO_NUMBERED_DUMP): Adjust.
13616 * dumpfile.h (tree_dump_index): Remove TDI_class.
13617 * langhooks-def.h (lhd_register_dumps): Declare.
13618 (LANG_HOOKS_REGISTER_DUMPS): Define.
13619 (LANG_HOOKS_INITIALIZER): Add it.
13620 * langhooks.c (lhd_register_dumps): Define.
13621 * langhooks.h (struct lang_hooks): Add register_dumps.
13622
13623 2017-05-19 Nathan Sidwell <nathan@acm.org>
13624
13625 * context.h (context::set_passes): New.
13626 * context.c (context::context): Do not create pass manager.
13627 * toplev.c (general_init): Create pass manager here.
13628
13629 2017-05-19 Segher Boessenkool <segher@kernel.crashing.org>
13630
13631 * config/rs6000/rs6000.md (splitter to load of -1 and mask): Don't
13632 use this splitter if two add or or instructions would also work for
13633 the constant we want to generate.
13634
13635 2017-05-19 Richard Biener <rguenther@suse.de>
13636
13637 PR build/80821
13638 * genmatch.c (dt_node::gen_kids_1): Add missing scope around
13639 predicate evaluation.
13640
13641 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
13642
13643 * ipa-inline.h (ipa_call_summary): Turn sizes into signed;
13644 add ctor.
13645 * ipa-inline.c (want_inline_small_function_p): Do not cast to
13646 unsigned.
13647
13648 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
13649
13650 * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
13651 inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
13652 (inline_edge_summary_vec): Turn into ...
13653 (ipa_call_summaries): ... this one.
13654 (redirect_to_unreachable, edge_set_predicate,
13655 evaluate_properties_for_edge, inline_summary_alloc,
13656 reset_ipa_call_summary, reset_inline_summary,
13657 inline_summary_t::duplicate): Update.
13658 (inline_edge_duplication_hook): Turn to ...
13659 (ipa_call_summary_t::duplicate): ... this one.
13660 (inline_edge_removal_hook): Turn to ...
13661 (ipa_call_summary_t::remove): ... this one.
13662 (dump_inline_edge_summary): Turn to ...
13663 (dump_ipa_call_summary): ... this one.
13664 (estimate_function_body_sizes): Update.
13665 (inline_update_callee_summaries): Update.
13666 (remap_edge_change_prob): Update.
13667 (remap_edge_summaries): Update.
13668 (inline_merge_summary): Update.
13669 (do_estimate_edge_time): Update.
13670 (inline_generate_summary): Update.
13671 (inline_read_section): Update.
13672 (inline_read_summary): Update.
13673 (inline_free_summary): Update.
13674 * ipa-inline.c (can_inline_edge_p): Update.
13675 (compute_inlined_call_time): Update.
13676 (want_inline_small_function_p): Update.
13677 (edge_badness): Update.
13678 (early_inliner): Update.
13679 * ipa-inline.h (inline_edge_summary): Turn to ...
13680 (ipa_call_summary): ... this one.
13681 (ipa_call_summary_t): New class.
13682 (inline_edge_summary_t, inline_edge_summary_vec): Remove.
13683 (ipa_call_summaries): New.
13684 (inline_edge_summary): Remove.
13685 (estimate_edge_growth): Update.
13686 * ipa-profile.c (ipa_propagate_frequency_1): Update.
13687 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
13688 * ipa-split.c (execute_split_functions): Update.
13689 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
13690
13691 2017-05-19 Richard Biener <rguenther@suse.de>
13692
13693 PR middle-end/80764
13694 * cfgexpand.c (expand_gimple_cond): Fix loop fixup.
13695
13696 2017-05-18 Segher Boessenkool <segher@kernel.crashing.org>
13697
13698 * config/rs6000/rs6000.c (struct machine_function): Add field
13699 fpr_is_wrapped_separately.
13700 (rs6000_get_separate_components): Use 64 components. Handle the
13701 new FPR components.
13702 (rs6000_components_for_bb): Handle the FPR components.
13703 (rs6000_emit_prologue_components): Handle the FPR components.
13704 (rs6000_emit_epilogue_components): Handle the FPR components.
13705 (rs6000_set_handled_components): Handle the FPR components.
13706 (rs6000_emit_prologue): Don't output prologue code for those FPRs
13707 that are already separately shrink-wrapped.
13708 (rs6000_emit_epilogue): Don't output epilogue code for those FPRs
13709 that are already separately shrink-wrapped.
13710
13711 2017-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
13712
13713 PR target/80510
13714 * config/rs6000/predicates.md (simple_offsettable_mem_operand):
13715 New predicate.
13716
13717 * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
13718 (define_peephole2 for Altivec d-form load): Add peepholes to catch
13719 cases where the register allocator uses a move and an offsettable
13720 memory operation to/from a FPR register on ISA 2.06/2.07.
13721 (define_peephole2 for Altivec d-form store): Likewise.
13722
13723 2017-05-18 Uros Bizjak <ubizjak@gmail.com>
13724
13725 PR target/80799
13726 * config/i386/mmx.md (*mov<mode>_internal): Enable
13727 alternatives 11, 12, 13 and 14 also for 32bit targets.
13728 Remove alternatives 15, 16, 17 and 18.
13729 * config/i386/sse.md (vec_concatv2di): Change
13730 alternative (!x, *y) to (x, ?!*Yn).
13731
13732 2017-05-18 Paolo Carlini <paolo.carlini@oracle.com>
13733
13734 * dumpfile.h (enum dump_kind): Remove stray comma.
13735
13736 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
13737
13738 * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
13739 * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
13740 predicate::num_conditions
13741 (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
13742 (CHANGED): turn into predicate::changed.
13743 (agg_position_info): Move to ipa-predicate.h
13744 (add_condition, predicate::add_clause, predicate::operator &=,
13745 predicate::or_with, predicate::evaluate, predicate::probability,
13746 dump_condition, dump_clause, predicate::dump,
13747 predicate::remap_after_duplication, predicate::remap_after_inlining,
13748 predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
13749 (evaluate_conditions_for_known_args): Update.
13750 (set_cond_stmt_execution_predicate): Update.
13751 * ipa-inline.h: Include ipa-predicate.h
13752 (condition, inline_param_summary, conditions, agg_position_info,
13753 predicate): Move to ipa-predicate.h
13754 * ipa-predicate.c: New file.
13755 * ipa-predicate.h: New file.
13756
13757 2017-05-18 Wilco Dijkstra <wdijkstr@arm.com>
13758
13759 * final.c (leaf_function_p): Check we are not in a sequence.
13760
13761 2017-05-18 Martin Liska <mliska@suse.cz>
13762
13763 * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
13764 * dumpfile.c (dump_register): Use new enum dump_kind.
13765 (get_dump_file_name): Likewise.
13766 (dump_enable_all): Likewise.
13767 (dump_switch_p_1): Likewise.
13768 (enable_rtl_dump_file): Remove usage of TDF_RTL.
13769 * dumpfile.h (enum dump_kind): New enum type.
13770 (struct dump_file_info): Create constructor and
13771 format fields and comments.
13772 * passes.c (pass_manager::register_one_dump_file):
13773 Use num dump_kind.
13774 * statistics.c (statistics_early_init): Likewise.
13775 * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
13776 TDF_TREE with TDF_SLIM.
13777 (gather_memory_references_ref): Likewise.
13778
13779 2017-05-18 Martin Liska <mliska@suse.cz>
13780
13781 * vec.h (struct vnull): Use it.
13782
13783 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
13784
13785 * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
13786 (true_predicate, false_predicate, true_predicate_p,
13787 false_predicate_p): Remove.
13788 (single_cond_predicate, not_inlined_predicate): Turn to member function
13789 in ipa-inline.h
13790 (add_condition): Update.
13791 (add_clause): Turn to...
13792 (predicate::add_clause): ... this one; update; allow passing NULL
13793 as parameter.
13794 (and_predicates): Turn to ...
13795 (predicate::operator &=): ... this one.
13796 (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
13797 (or_predicates): Turn to ...
13798 (predicate::or_with): ... this one.
13799 (evaluate_predicate): Turn to ...
13800 (predicate::evaluate): ... this one.
13801 (predicate_probability): Turn to ...
13802 (predicate::probability): ... this one.
13803 (dump_condition): Update.
13804 (dump_predicate): Turn to ...
13805 (predicate::dump): ... this one.
13806 (account_size_time): Update.
13807 (edge_set_predicate): Update.
13808 (set_hint_predicate): UPdate.
13809 (evaluate_conditions_for_known_args): Update.
13810 (evaluate_properties_for_edge): Update.
13811 (remap_predicate_after_duplication): Turn to...
13812 (predicate::remap_after_duplication): ... this one.
13813 (remap_hint_predicate_after_duplication): Update.
13814 (inline_summary_t::duplicate): UPdate.
13815 (dump_inline_edge_summary): Update.
13816 (dump_inline_summary): Update.
13817 (set_cond_stmt_execution_predicate): Update.
13818 (set_switch_stmt_execution_predicate): Update.
13819 (compute_bb_predicates): Update.
13820 (will_be_nonconstant_expr_predicate): Update.
13821 (will_be_nonconstant_predicate): Update.
13822 (phi_result_unknown_predicate): Update.
13823 (predicate_for_phi_result): Update.
13824 (array_index_predicate): Update.
13825 (estimate_function_body_sizes): Update.
13826 (estimate_node_size_and_time): Update.
13827 (estimate_ipcp_clone_size_and_time): Update.
13828 (remap_predicate): Rename to ...
13829 (predicate::remap_after_inlining): ... this one.
13830 (remap_hint_predicate): Update.
13831 (inline_merge_summary): Update.
13832 (inline_update_overall_summary): Update.
13833 (estimate_size_after_inlining): Update.
13834 (read_predicate): Rename to ...
13835 (predicate::stream_in): ... this one.
13836 (read_inline_edge_summary): Update.
13837 (write_predicate): Rename to ...
13838 (predicate::stream_out): ... this one.
13839 (write_inline_edge_summary): Update.
13840 * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
13841 (clause_t): Turn to uint32_t
13842 (predicate): Turn to class; implement constructor and operators
13843 ==, !=, &
13844 (size_time_entry): Update.
13845 (inline_summary): Update.
13846 (inline_edge_summary): Update.
13847
13848 2017-05-18 Marc Glisse <marc.glisse@inria.fr>
13849
13850 * fold-const.c (fold_binary_loc): Move transformation...
13851 * match.pd (C - X CMP X): ... here.
13852
13853 2017-05-18 Sheldon Lobo <sheldon.lobo@oracle.com>
13854
13855 * config/sparc/sparc.c (sparc_option_override): Set function
13856 alignment for -mcpu=niagara7 to 64 to match the I$ line.
13857 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
13858 latency to 1.
13859 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
13860 latency to 2.
13861 * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
13862
13863 2017-05-18 Marek Polacek <polacek@redhat.com>
13864
13865 PR sanitizer/80797
13866 * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
13867 (pass_ubsan::execute): Call gimple_assign_single_p instead of
13868 gimple_assign_load_p.
13869
13870 2017-05-17 Segher Boessenkool <segher@kernel.crashing.org>
13871
13872 PR middle-end/80692
13873 * real.c (do_compare): Give decimal_do_compare preference over
13874 comparing just the signs.
13875
13876 2017-05-17 Uros Bizjak <ubizjak@gmail.com>
13877
13878 * doc/md.texi (Canonicalization of Instructions): Describe the
13879 canonical form of instructions that inherently set a condition
13880 code register.
13881
13882 2017-05-17 Peter Bergner <bergner@vnet.ibm.com>
13883
13884 PR middle-end/80775
13885 * tree-cfg.c: Move deletion of unreachable case statements to after
13886 the merging of consecutive case labels.
13887
13888 2017-05-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
13889
13890 * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
13891 readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
13892 restoring of callee-saved registers.
13893
13894 2017-05-17 Eric Botcazou <ebotcazou@adacore.com>
13895
13896 * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
13897 * config/visium/visium.c (single_set_and_flags): Likewise.
13898 * config/visium/visium.md (Substitutions): Likewise.
13899
13900 2017-05-17 Martin Liska <mliska@suse.cz>
13901
13902 * cfg.c: Introduce dump_flags_t type and
13903 use it instead of int type.
13904 * cfg.h: Likewise.
13905 * cfghooks.c: Likewise.
13906 * cfghooks.h (struct cfg_hooks): Likewise.
13907 * cfgrtl.c: Likewise.
13908 * cfgrtl.h: Likewise.
13909 * cgraph.c (cgraph_node::get_body): Likewise.
13910 * coretypes.h: Likewise.
13911 * domwalk.c: Likewise.
13912 * domwalk.h: Likewise.
13913 * dumpfile.c (struct dump_option_value_info): Likewise.
13914 (dump_enable_all): Likewise.
13915 (dump_switch_p_1): Likewise.
13916 (opt_info_switch_p): Likewise.
13917 * dumpfile.h (enum tree_dump_index): Likewise.
13918 (struct dump_file_info): Likewise.
13919 * genemit.c: Likewise.
13920 * generic-match-head.c: Likewise.
13921 * gengtype.c (open_base_files): Likewise.
13922 * gimple-pretty-print.c: Likewise.
13923 * gimple-pretty-print.h: Likewise.
13924 * graph.c (print_graph_cfg): Likewise.
13925 * graphite-scop-detection.c (dot_all_sese): Likewise.
13926 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
13927 * loop-unroll.c (report_unroll): Likewise.
13928 * passes.c (pass_manager::register_one_dump_file): Likewise.
13929 * print-tree.c: Likewise.
13930 * statistics.c: Likewise.
13931 * tree-cfg.c: Likewise.
13932 * tree-cfg.h: Likewise.
13933 * tree-dfa.c: Likewise.
13934 * tree-dfa.h: Likewise.
13935 * tree-dump.c (dump_function): Likewise.
13936 * tree-dump.h (struct dump_info): Likewise.
13937 * tree-pretty-print.c: Likewise.
13938 * tree-pretty-print.h: Likewise.
13939 * tree-ssa-live.c: Likewise.
13940 * tree-ssa-live.h: Likewise.
13941 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
13942 * tree-vect-loop.c: Likewise.
13943 * tree-vect-slp.c: Likewise.
13944
13945 2017-05-16 James Greenhalgh <james.greenhalgh@arm.com>
13946 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13947
13948 PR tree-optimization/80457
13949 * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
13950 of all arguments to a statement as scalar_to_vec operations.
13951 (vectorizable_call): Adjust call to vect_model_simple_cost for
13952 new parameter.
13953 (vectorizable_conversion): Likewise.
13954 (vectorizable_assignment): Likewise.
13955 (vectorizable_shift): Likewise.
13956 (vectorizable_operation): Likewise.
13957 (vectorizable_comparison): Likewise.
13958 (vect_is_simple_cond): Record the def types for operands.
13959 (vectorizable_condition): Likewise, call vect_model_simple_cost.
13960 * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
13961 for statement argument count.
13962
13963 2017-05-16 Carl Love <cel@us.ibm.com>
13964
13965 * config/rs6000/rs6000-c: Add support for built-in functions
13966 vector unsigned long long vec_bperm (vector unsigned long long,
13967 vector unsigned char)
13968 vector signed long long vec_mule (vector signed int,
13969 vector signed int)
13970 vector unsigned long long vec_mule (vector unsigned int,
13971 vector unsigned int)
13972 vector signed long long vec_mulo (vector signed int,
13973 vector signed int)
13974 vector unsigned long long vec_mulo (vector unsigned int,
13975 vector unsigned int)
13976 vector signed char vec_sldw (vector signed char,
13977 vector signed char,
13978 const int)
13979 vector unsigned char vec_sldw (vector unsigned char,
13980 vector unsigned char,
13981 const int)
13982 vector signed short vec_sldw (vector signed short,
13983 vector signed short,
13984 const int)
13985 vector unsigned short vec_sldw (vector unsigned short,
13986 vector unsigned short,
13987 const int)
13988 vector signed int vec_sldw (vector signed int,
13989 vector signed int,
13990 const int)
13991 vector unsigned int vec_sldw (vector unsigned int,
13992 vector unsigned int,
13993 const int)
13994 vector signed long long vec_sldw (vector signed long long,
13995 vector signed long long,
13996 const int)
13997 vector unsigned long long vec_sldw (vector unsigned long long,
13998 vector unsigned long long,
13999 const int)
14000 * config/rs6000/rs6000-c: Add support for built-in functions
14001 * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
14002 * config/rs6000/altivec.h: Add defintion for vec_sldw.
14003 * doc/extend.texi: Update the built-in documentation for the
14004 new built-in functions.
14005
14006 2017-05-16 Marek Polacek <polacek@redhat.com>
14007
14008 PR sanitizer/80536
14009 PR sanitizer/80386
14010 * tree.c (save_expr): Don't fold the expression.
14011
14012 2017-05-16 Uros Bizjak <ubizjak@gmail.com>
14013
14014 * config/i386/i386.md (*movsi_internal): Split (?rm,*y) alternative
14015 to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
14016 and (?*y,m). Update insn attributes.
14017
14018 2017-05-16 Martin Liska <mliska@suse.cz>
14019
14020 * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
14021 flags argument of print_gimple_stmt, print_gimple_expr,
14022 print_generic_stmt and print_generic_expr.
14023 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
14024 * coretypes.h: Likewise.
14025 * except.c (dump_eh_tree): Likewise.
14026 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
14027 * gimple-pretty-print.h: Likewise.
14028 * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
14029 (backprop::push_to_worklist): Likewise.
14030 (backprop::pop_from_worklist): Likewise.
14031 (backprop::process_use): Likewise.
14032 (backprop::intersect_uses): Likewise.
14033 (note_replacement): Likewise.
14034 * gimple-ssa-store-merging.c
14035 (pass_store_merging::terminate_all_aliasing_chains): Likewise.
14036 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
14037 (pass_store_merging::execute): Likewise.
14038 * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
14039 (ssa_base_cand_dump_callback): Likewise.
14040 (dump_incr_vec): Likewise.
14041 (replace_refs): Likewise.
14042 (replace_mult_candidate): Likewise.
14043 (create_add_on_incoming_edge): Likewise.
14044 (create_phi_basis): Likewise.
14045 (insert_initializers): Likewise.
14046 (all_phi_incrs_profitable): Likewise.
14047 (introduce_cast_before_cand): Likewise.
14048 (replace_one_candidate): Likewise.
14049 * gimplify.c (gimplify_expr): Likewise.
14050 * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
14051 (set_rename): Likewise.
14052 (rename_uses): Likewise.
14053 (copy_loop_phi_nodes): Likewise.
14054 (add_close_phis_to_merge_points): Likewise.
14055 (copy_loop_close_phi_args): Likewise.
14056 (copy_cond_phi_args): Likewise.
14057 (graphite_copy_stmts_from_block): Likewise.
14058 (translate_pending_phi_nodes): Likewise.
14059 * graphite-poly.c (print_pdr): Likewise.
14060 (dump_gbb_cases): Likewise.
14061 (dump_gbb_conditions): Likewise.
14062 (print_scop_params): Likewise.
14063 * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
14064 (build_cross_bb_scalars_use): Likewise.
14065 (gather_bbs::before_dom_children): Likewise.
14066 * hsa-dump.c (dump_hsa_immed): Likewise.
14067 * ipa-cp.c (print_ipcp_constant_value): Likewise.
14068 (get_replacement_map): Likewise.
14069 * ipa-inline-analysis.c (dump_condition): Likewise.
14070 (estimate_function_body_sizes): Likewise.
14071 * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
14072 (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
14073 * ipa-prop.c (ipa_dump_param): Likewise.
14074 (ipa_print_node_jump_functions_for_edge): Likewise.
14075 (ipa_modify_call_arguments): Likewise.
14076 (ipa_modify_expr): Likewise.
14077 (ipa_dump_param_adjustments): Likewise.
14078 (ipa_dump_agg_replacement_values): Likewise.
14079 (ipcp_modif_dom_walker::before_dom_children): Likewise.
14080 * ipa-pure-const.c (check_stmt): Likewise.
14081 (pass_nothrow::execute): Likewise.
14082 * ipa-split.c (execute_split_functions): Likewise.
14083 * omp-offload.c (dump_oacc_loop_part): Likewise.
14084 (dump_oacc_loop): Likewise.
14085 * trans-mem.c (tm_log_emit): Likewise.
14086 (tm_memopt_accumulate_memops): Likewise.
14087 (dump_tm_memopt_set): Likewise.
14088 (dump_tm_memopt_transform): Likewise.
14089 * tree-cfg.c (gimple_verify_flow_info): Likewise.
14090 (print_loop): Likewise.
14091 * tree-chkp-opt.c (chkp_print_addr): Likewise.
14092 (chkp_gather_checks_info): Likewise.
14093 (chkp_get_check_result): Likewise.
14094 (chkp_remove_check_if_pass): Likewise.
14095 (chkp_use_outer_bounds_if_possible): Likewise.
14096 (chkp_reduce_bounds_lifetime): Likewise.
14097 * tree-chkp.c (chkp_register_addr_bounds): Likewise.
14098 (chkp_mark_completed_bounds): Likewise.
14099 (chkp_register_incomplete_bounds): Likewise.
14100 (chkp_mark_invalid_bounds): Likewise.
14101 (chkp_maybe_copy_and_register_bounds): Likewise.
14102 (chkp_build_returned_bound): Likewise.
14103 (chkp_get_bound_for_parm): Likewise.
14104 (chkp_build_bndldx): Likewise.
14105 (chkp_get_bounds_by_definition): Likewise.
14106 (chkp_generate_extern_var_bounds): Likewise.
14107 (chkp_get_bounds_for_decl_addr): Likewise.
14108 * tree-chrec.c (chrec_apply): Likewise.
14109 * tree-data-ref.c (dump_data_reference): Likewise.
14110 (dump_subscript): Likewise.
14111 (dump_data_dependence_relation): Likewise.
14112 (analyze_overlapping_iterations): Likewise.
14113 * tree-inline.c (expand_call_inline): Likewise.
14114 (tree_function_versioning): Likewise.
14115 * tree-into-ssa.c (dump_defs_stack): Likewise.
14116 (dump_currdefs): Likewise.
14117 (dump_names_replaced_by): Likewise.
14118 (dump_update_ssa): Likewise.
14119 (update_ssa): Likewise.
14120 * tree-object-size.c (pass_object_sizes::execute): Likewise.
14121 * tree-parloops.c (build_new_reduction): Likewise.
14122 (try_create_reduction_list): Likewise.
14123 (ref_conflicts_with_region): Likewise.
14124 (oacc_entry_exit_ok_1): Likewise.
14125 (oacc_entry_exit_single_gang): Likewise.
14126 * tree-pretty-print.h: Likewise.
14127 * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
14128 (get_scalar_evolution): Likewise.
14129 (add_to_evolution): Likewise.
14130 (get_loop_exit_condition): Likewise.
14131 (analyze_evolution_in_loop): Likewise.
14132 (analyze_initial_condition): Likewise.
14133 (analyze_scalar_evolution): Likewise.
14134 (instantiate_scev): Likewise.
14135 (number_of_latch_executions): Likewise.
14136 (gather_chrec_stats): Likewise.
14137 (final_value_replacement_loop): Likewise.
14138 (scev_const_prop): Likewise.
14139 * tree-sra.c (dump_access): Likewise.
14140 (disqualify_candidate): Likewise.
14141 (create_access): Likewise.
14142 (reject): Likewise.
14143 (maybe_add_sra_candidate): Likewise.
14144 (create_access_replacement): Likewise.
14145 (analyze_access_subtree): Likewise.
14146 (analyze_all_variable_accesses): Likewise.
14147 (sra_modify_assign): Likewise.
14148 (initialize_constant_pool_replacements): Likewise.
14149 (find_param_candidates): Likewise.
14150 (decide_one_param_reduction): Likewise.
14151 (replace_removed_params_ssa_names): Likewise.
14152 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
14153 * tree-ssa-copy.c (dump_copy_of): Likewise.
14154 (copy_prop_visit_cond_stmt): Likewise.
14155 * tree-ssa-dce.c (mark_operand_necessary): Likewise.
14156 * tree-ssa-dom.c (pass_dominator::execute): Likewise.
14157 (record_equivalences_from_stmt): Likewise.
14158 * tree-ssa-dse.c (compute_trims): Likewise.
14159 (delete_dead_call): Likewise.
14160 (delete_dead_assignment): Likewise.
14161 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
14162 (forward_propagate_into_cond): Likewise.
14163 (pass_forwprop::execute): Likewise.
14164 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
14165 * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
14166 Likewise.
14167 (move_computations_worker): Likewise.
14168 (execute_sm): Likewise.
14169 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
14170 (remove_exits_and_undefined_stmts): Likewise.
14171 (remove_redundant_iv_tests): Likewise.
14172 * tree-ssa-loop-ivopts.c (dump_use): Likewise.
14173 (adjust_iv_update_pos): Likewise.
14174 * tree-ssa-math-opts.c (bswap_replace): Likewise.
14175 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
14176 (value_replacement): Likewise.
14177 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
14178 * tree-ssa-pre.c (print_pre_expr): Likewise.
14179 (get_representative_for): Likewise.
14180 (create_expression_by_pieces): Likewise.
14181 (insert_into_preds_of_block): Likewise.
14182 (eliminate_insert): Likewise.
14183 (eliminate_dom_walker::before_dom_children): Likewise.
14184 (eliminate): Likewise.
14185 (remove_dead_inserted_code): Likewise.
14186 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
14187 * tree-ssa-reassoc.c (get_rank): Likewise.
14188 (eliminate_duplicate_pair): Likewise.
14189 (eliminate_plus_minus_pair): Likewise.
14190 (eliminate_not_pairs): Likewise.
14191 (undistribute_ops_list): Likewise.
14192 (eliminate_redundant_comparison): Likewise.
14193 (update_range_test): Likewise.
14194 (optimize_range_tests_var_bound): Likewise.
14195 (optimize_vec_cond_expr): Likewise.
14196 (rewrite_expr_tree): Likewise.
14197 (rewrite_expr_tree_parallel): Likewise.
14198 (linearize_expr): Likewise.
14199 (break_up_subtract): Likewise.
14200 (linearize_expr_tree): Likewise.
14201 (attempt_builtin_powi): Likewise.
14202 (attempt_builtin_copysign): Likewise.
14203 (transform_stmt_to_copy): Likewise.
14204 (transform_stmt_to_multiply): Likewise.
14205 (dump_ops_vector): Likewise.
14206 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
14207 (print_scc): Likewise.
14208 (set_ssa_val_to): Likewise.
14209 (visit_reference_op_store): Likewise.
14210 (visit_use): Likewise.
14211 (sccvn_dom_walker::before_dom_children): Likewise.
14212 (run_scc_vn): Likewise.
14213 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
14214 Likewise.
14215 (expr_hash_elt::print): Likewise.
14216 (const_and_copies::pop_to_marker): Likewise.
14217 (const_and_copies::record_const_or_copy_raw): Likewise.
14218 * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
14219 * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
14220 (dump_predicates): Likewise.
14221 (find_uninit_use): Likewise.
14222 (warn_uninitialized_phi): Likewise.
14223 (pass_late_warn_uninitialized::execute): Likewise.
14224 * tree-ssa.c (verify_vssa): Likewise.
14225 (verify_ssa): Likewise.
14226 (maybe_optimize_var): Likewise.
14227 * tree-vrp.c (dump_value_range): Likewise.
14228 (dump_all_value_ranges): Likewise.
14229 (dump_asserts_for): Likewise.
14230 (register_edge_assert_for_2): Likewise.
14231 (vrp_visit_cond_stmt): Likewise.
14232 (vrp_visit_switch_stmt): Likewise.
14233 (vrp_visit_stmt): Likewise.
14234 (vrp_visit_phi_node): Likewise.
14235 (simplify_cond_using_ranges_1): Likewise.
14236 (fold_predicate_in): Likewise.
14237 (evrp_dom_walker::before_dom_children): Likewise.
14238 (evrp_dom_walker::push_value_range): Likewise.
14239 (evrp_dom_walker::pop_value_range): Likewise.
14240 (execute_early_vrp): Likewise.
14241
14242 2017-05-16 Richard Biener <rguenther@suse.de>
14243
14244 * dwarf2out.c (loc_list_from_tree_1): Do not create
14245 DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
14246
14247 2017-05-16 Richard Biener <rguenther@suse.de>
14248
14249 * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
14250 just generated.
14251 (note_variable_value_in_expr): If we resolved the decl ref
14252 do not push to the stack.
14253
14254 2017-05-16 Matthew Wahab <matthew.wahab@arm.com>
14255
14256 * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
14257 operations in fast-math mode.
14258 (vaddq_f16): Likewise.
14259 (vmul_f16): Likewise.
14260 (vmulq_f16): Likewise.
14261 (vsub_f16): Likewise.
14262 (vsubq_f16): Likewise.
14263 * config/arm/neon.md (add<mode>3): New.
14264 (sub<mode>3): New.
14265 (fma:<VH:mode>3): New. Also remove outdated comment.
14266 (mul<mode>3): New.
14267
14268 2017-05-16 Martin Liska <mliska@suse.cz>
14269
14270 PR ipa/79849.
14271 PR ipa/79850.
14272 * ipa-devirt.c (warn_types_mismatch): Fix typo.
14273 (odr_types_equivalent_p): Likewise.
14274
14275 2017-05-15 Sylvestre Ledru <sylvestre@debian.org>
14276
14277 * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
14278
14279 2017-05-15 Uros Bizjak <ubizjak@gmail.com>
14280
14281 PR target/80425
14282 * config/i386.i386.md (*zero_extendsidi2): Do not penalize
14283 non-interunit SSE move alternatives with '?'.
14284 (zero-extendsidi peephole2): New peephole to skip intermediate
14285 general register in SSE zero-extend sequence.
14286
14287 2017-05-15 Jeff Law <law@redhat.com>
14288
14289 * reorg.c (relax_delay_slots): Create a new variable to hold
14290 the temporary target rather than clobbering TARGET_LABEL.
14291
14292 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
14293 missing argument to extract_bit_field call.
14294 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
14295
14296 2017-05-15 Martin Liska <mliska@suse.cz>
14297
14298 PR driver/31468
14299 * gcc.c (process_command): Do not allow empty argument of -o option.
14300
14301 2017-05-15 Renlin Li <renlin.li@arm.com>
14302
14303 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
14304 * config/aarch64/aarch64.c (aarch64_expand_call): Define.
14305 * config/aarch64/constraints.md (Usf): Add long call check.
14306 * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
14307 (call_value): Likewise.
14308 (sibcall): Likewise.
14309 (sibcall_value): Likewise.
14310 (call_insn): New.
14311 (call_value_insn): New.
14312 (sibcall_insn): Update rtx pattern.
14313 (sibcall_value_insn): Likewise.
14314 (call_internal): Remove.
14315 (call_value_internal): Likewise.
14316 (sibcall_internal): Likewise.
14317 (sibcall_value_internal): Likewise.
14318 (call_reg): Likewise.
14319 (call_symbol): Likewise.
14320 (call_value_reg): Likewise.
14321 (call_value_symbol): Likewise.
14322
14323 2017-05-14 Krister Walfridsson <krister.walfridsson@gmail.com>
14324
14325 PR target/80600
14326 * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
14327
14328 2017-05-14 Uros Bizjak <ubizjak@gmail.com>
14329
14330 * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
14331 compatible with CCGOCmode and with CCZmode.
14332
14333 2017-05-14 Martin Sebor <msebor@redhat.com>
14334
14335 PR middle-end/77671
14336 * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
14337 (gimple_fold_builtin_snprintf): Same.
14338 * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
14339 (gimple_fold_builtin_snprintf): Same.
14340 * gimple-ssa-sprintf.c (get_format_string): Correct the detection
14341 of character types.
14342 (is_call_safe): New function.
14343 (try_substitute_return_value): Call it.
14344 (try_simplify_call): New function.
14345 (pass_sprintf_length::handle_gimple_call): Call it.
14346
14347 2017-05-14 Martin Sebor <msebor@redhat.com>
14348
14349 PR middle-end/80669
14350 * builtins.c (expand_builtin_stpncpy): Simplify.
14351
14352 2017-05-14 Daniel Santos <daniel.santos@pobox.com>
14353
14354 * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
14355 * config/i386/i386.h
14356 (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
14357 (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
14358 (struct machine_function): Add new members call_ms2sysv,
14359 call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
14360 (struct machine_frame_state): New fields sp_realigned and
14361 sp_realigned_offset.
14362 * config/i386/i386.c
14363 (enum xlogue_stub): New enum.
14364 (enum xlogue_stub_sets): New enum.
14365 (class xlogue_layout): New class.
14366 (struct ix86_frame): New fields stack_realign_allocate_offset,
14367 stack_realign_offset and outlined_save_offset. Modify comments to
14368 detail stack layout when using out-of-line stubs.
14369 (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
14370 (ix86_option_override_internal): Add sorry() for TARGET_SEH and
14371 -mcall-ms2sysv-xlogues.
14372 (stub_managed_regs): New static variable.
14373 (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
14374 registers managed by out-of-line stub.
14375 (disable_call_ms2sysv_xlogues): New function.
14376 (ix86_compute_frame_layout): Modify re-alignment calculations, disable
14377 m->call_ms2sysv when appropriate and compute frame layout for
14378 out-of-line stubs.
14379 (sp_valid_at, fp_valid_at): New inline functions.
14380 (choose_basereg): New function.
14381 (choose_baseaddr): Add align parameter, use choose_basereg and modify
14382 all callers.
14383 (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
14384 Use align parameter of choose_baseaddr to generated aligned SSE movs
14385 when possible.
14386 (pro_epilogue_adjust_stack): Modify to track
14387 machine_frame_state::sp_realigned.
14388 (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
14389 (ix86_nsaved_sseregs): Likewise.
14390 (ix86_emit_save_regs): Likewise.
14391 (ix86_emit_save_regs_using_mov): Likewise.
14392 (ix86_emit_save_sse_regs_using_mov): Likewise.
14393 (get_scratch_register_on_entry): Likewise.
14394 (gen_frame_set): New function.
14395 (gen_frame_load): Likewise.
14396 (gen_frame_store): Likewise.
14397 (emit_outlined_ms2sysv_save): Likewise.
14398 (emit_outlined_ms2sysv_restore): Likewise.
14399 (ix86_expand_prologue): Modify stack re-alignment code and call
14400 emit_outlined_ms2sysv_save when appropriate.
14401 (ix86_emit_leave): Clear machine_frame_state::sp_realigned. Add
14402 parameter rtx_insn *insn, which allows the function to be used to only
14403 generate the notes.
14404 (ix86_expand_epilogue): Modify validity checks of frame and stack
14405 pointers, and call emit_outlined_ms2sysv_restore when appropriate.
14406 (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
14407 * config/i386/predicates.md
14408 (save_multiple): New predicate.
14409 (restore_multiple): Likewise.
14410 * config/i386/sse.md
14411 (save_multiple<mode>): New pattern.
14412 (save_multiple_realign<mode>): Likewise.
14413 (restore_multiple<mode>): Likewise.
14414 (restore_multiple_and_return<mode>): Likewise.
14415 (restore_multiple_leave_return<mode>): Likewise.
14416 * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
14417
14418 2017-05-14 Julia Koval <julia.koval@intel.com>
14419
14420 * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
14421 * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
14422 (__builtin_ia32_xsetbv): New builtins.
14423 * config/i386/i386.c (ix86_expand_special_args_builtin):
14424 Process new types.
14425 (ix86_expand_builtin): Special expand for new intrinsics.
14426 * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
14427 (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
14428 * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
14429
14430 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14431
14432 * cfganal.c (inverted_post_order_compute): Change argument type
14433 to vec *.
14434 * cfganal.h (inverted_post_order_compute): Adjust prototype.
14435 * df-core.c (rest_of_handle_df_initialize): Adjust.
14436 (rest_of_handle_df_finish): Likewise.
14437 (df_analyze_1): Likewise.
14438 (df_analyze): Likewise.
14439 (loop_inverted_post_order_compute): Change argument to be a vec *.
14440 (df_analyze_loop): Adjust.
14441 (df_get_n_blocks): Likewise.
14442 (df_get_postorder): Likewise.
14443 * df.h (struct df_d): Change field to be a vec.
14444 * lcm.c (compute_laterin): Adjust.
14445 (compute_available): Likewise.
14446 * lra-lives.c (lra_create_live_ranges_1): Likewise.
14447 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
14448 * tree-ssa-pre.c (compute_antic): Likewise.
14449
14450 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14451
14452 * cfganal.c (connect_infinite_loops_to_exit): Adjust.
14453 (depth_first_search::depth_first_search): Change structure init
14454 function to this constructor.
14455 (depth_first_search::add_bb): Rename function to this member.
14456 (depth_first_search::execute): Likewise.
14457 (flow_dfs_compute_reverse_finish): Adjust.
14458
14459 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14460
14461 * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
14462 (longest_simple_path): Likewise.
14463 * shrink-wrap.c (spread_components): Likewise.
14464 (disqualify_problematic_components): Likewise.
14465 (emit_common_heads_for_components): Likewise.
14466 (emit_common_tails_for_components): Likewise.
14467 (insert_prologue_epilogue_for_components): Likewise.
14468
14469 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14470
14471 * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
14472 auto_sbitmap.
14473
14474 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14475
14476 * df-core.c (df_set_blocks): Start using auto_bitmap.
14477 (df_compact_blocks): Likewise.
14478 * df-problems.c (df_rd_confluence_n): Likewise.
14479 * df-scan.c (df_insn_rescan_all): Likewise.
14480 (df_process_deferred_rescans): Likewise.
14481 (df_update_entry_block_defs): Likewise.
14482 (df_update_exit_block_uses): Likewise.
14483 (df_entry_block_bitmap_verify): Likewise.
14484 (df_exit_block_bitmap_verify): Likewise.
14485 (df_scan_verify): Likewise.
14486 * lra-constraints.c (lra_constraints): Likewise.
14487 (undo_optional_reloads): Likewise.
14488 (lra_undo_inheritance): Likewise.
14489 * lra-remat.c (calculate_gen_cands): Likewise.
14490 (do_remat): Likewise.
14491 * lra-spills.c (assign_spill_hard_regs): Likewise.
14492 (spill_pseudos): Likewise.
14493 * tree-ssa-pre.c (bitmap_set_and): Likewise.
14494 (bitmap_set_subtract_values): Likewise.
14495
14496 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14497
14498 * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
14499 management with auto_bitmap.
14500 (fix_inter_tick): Likewise.
14501 (fix_recovery_deps): Likewise.
14502 * ira.c (add_store_equivs): Likewise.
14503 (find_moveable_pseudos): Likewise.
14504 (split_live_ranges_for_shrink_wrap): Likewise.
14505 * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
14506 (rtx_reuse_manager::seen_def_p): Likewise.
14507 (rtx_reuse_manager::set_seen_def): Likewise.
14508 * print-rtl.h (class rtx_reuse_manager): Likewise.
14509
14510 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14511
14512 * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
14513 lifetime.
14514 (migrate_btr_def): Likewise.
14515 * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
14516 * df-core.c (loop_post_order_compute): Likewise.
14517 (loop_inverted_post_order_compute): Likewise.
14518 * hsa-common.h: Likewise.
14519 * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
14520 * init-regs.c (initialize_uninitialized_regs): Likewise.
14521 * ipa-inline.c (resolve_noninline_speculation): Likewise.
14522 (inline_small_functions): Likewise.
14523 * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
14524 * ira.c (combine_and_move_insns): Likewise.
14525 (build_insn_chain): Likewise.
14526 * loop-invariant.c (find_invariants): Likewise.
14527 * lower-subreg.c (propagate_pseudo_copies): Likewise.
14528 * predict.c (tree_predict_by_opcode): Likewise.
14529 (predict_paths_leading_to): Likewise.
14530 (predict_paths_leading_to_edge): Likewise.
14531 (estimate_loops_at_level): Likewise.
14532 (estimate_loops): Likewise.
14533 * shrink-wrap.c (try_shrink_wrapping): Likewise.
14534 (spread_components): Likewise.
14535 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
14536 * tree-loop-distribution.c (rdg_build_partitions): Likewise.
14537 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
14538 * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
14539 * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
14540 * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
14541 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
14542 * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
14543 (mark_threaded_blocks): Likewise.
14544 (thread_through_all_blocks): Likewise.
14545 * tree-ssa.c (verify_ssa): Likewise.
14546 (execute_update_addresses_taken): Likewise.
14547 * tree-ssanames.c (verify_ssaname_freelists): Likewise.
14548
14549 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14550
14551 * cfganal.c (mark_dfs_back_edges): Replace manual stack with
14552 auto_vec.
14553 (post_order_compute): Likewise.
14554 (inverted_post_order_compute): Likewise.
14555 (pre_and_rev_post_order_compute_fn): Likewise.
14556
14557 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14558
14559 * genrecog.c (int_set::int_set): Explicitly construct our
14560 auto_vec base class.
14561 * vec.h (auto_vec::auto_vec): New constructor.
14562
14563 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14564
14565 * bitmap.h (class auto_bitmap): New constructor taking
14566 bitmap_obstack * argument.
14567
14568 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14569
14570 * bitmap.h (class auto_bitmap): Change type of m_bits to
14571 bitmap_head, and adjust ctor / dtor and member operators.
14572
14573 2017-05-13 Uros Bizjak <ubizjak@gmail.com>
14574
14575 * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
14576 when returned register mode doesn't match original mode.
14577
14578 2017-05-12 Jeff Law <law@redhat.com>
14579 Jakub Jelinek <jakub@redhat.com>
14580
14581 * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
14582 we look for cc setter after the compare-elim changes.
14583 * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
14584 within the vector to match what compare-elim now expects.
14585 (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
14586 (xorsi3_flags, one_cmplsi2_flags): Likewise.
14587
14588 * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
14589 after the compare-elim changes.
14590 * config/rx/rx.md (abssi2_flags): Fix order of patterns within
14591 the vector to match what compare-elim now expects.
14592 (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
14593 (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
14594 (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
14595 (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
14596 (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
14597
14598 * config/visium/visium.c (single_set_and_flags): Fix where
14599 we look for cc setter after the compare-elim changes.
14600 * config/visium/visium.md (flags_subst_logic): Fix order of patterns
14601 with the vector to match what compare-elim now expects.
14602 (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
14603 (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
14604 (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
14605 (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
14606 (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
14607 (neg<mode>2_insn_set_overflow): Likewise.
14608
14609 2017-05-12 Jim Wilson <jim.wilson@linaro.org>
14610
14611 PR middle-end/79794
14612 * expmed.c (extract_bit_field_1): Add alt_rtl argument. Before
14613 maybe_expand_insn call, set ops[0].target. If still set after call,
14614 set alt_rtl. Add extra arg to recursive calls.
14615 (extract_bit_field): Add alt_rtl argument. Pass to
14616 extract_bit_field.
14617 * expmed.h (extract_bit_field): Fix prototype.
14618 * expr.c (emit_group_load_1, copy_blkmode_from_reg)
14619 (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
14620 to extract_bit_field_calls.
14621 (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
14622 Pass alt_rtl to extract_bit_field calls.
14623 * calls.c (store_unaligned_arguments_into_psuedos)
14624 load_register_parameters): Pass extra NULL to extract_bit_field calls.
14625 * optabs.c (maybe_legitimize_operand): Clear op->target when call
14626 gen_reg_rtx.
14627 * optabs.h (struct expand_operand): Add target bitfield.
14628
14629 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
14630
14631 * compare-elim.c (try_eliminate_compare): Canonicalize
14632 operation with embedded compare to
14633 [(set (reg:CCM) (compare:CCM (operation) (immediate)))
14634 (set (reg) (operation)].
14635
14636 * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
14637
14638 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
14639
14640 PR target/80723
14641 * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
14642 cost of adding a carry flag for ADC instruction.
14643 [case MINUS]: Ignore the cost of subtracting a carry flag
14644 for SBB instruction.
14645
14646 2017-05-12 Steven Munroe <munroesj@gcc.gnu.org>
14647
14648 * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
14649 and x86intrin.h
14650 * config/rs6000/bmiintrin.h: New file.
14651 * config/rs6000/bmi2intrin.h: New file.
14652 * config/rs6000/x86intrin.h: New file.
14653
14654 2017-05-12 Jeff Law <law@redhat.com>
14655
14656 * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
14657 markers.
14658
14659 2017-05-12 Peter Bergner <bergner@vnet.ibm.com>
14660
14661 PR middle-end/80707
14662 * tree-cfg.c: Remove cfg edges of unreachable case statements.
14663
14664 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
14665
14666 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
14667 early expansion of vector divide builtins.
14668 (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
14669 builtins identified as having unsigned arguments.
14670
14671 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
14672
14673 * config/rs6000/rs6000.c (gimple-fold.h): New #include.
14674 (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
14675 expansion of vector logical operations (and, andc, or, xor,
14676 nor, orc, nand).
14677
14678 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
14679
14680 * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
14681 * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
14682
14683 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
14684
14685 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
14686 early GIMPLE expansion of vector multiplies.
14687
14688 2017-05-12 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
14689
14690 * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
14691 TARGET_HAVE_MOVT conditional.
14692 (movt splitter): Likewise.
14693
14694 2017-05-12 Richard Biener <rguenther@suse.de>
14695
14696 * tree-ssa-sccvn.h (has_VN_INFO): Declare.
14697 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14698 Fold all stmts not inplace.
14699
14700 2017-05-12 Richard Biener <rguenther@suse.de>
14701
14702 PR tree-optimization/80713
14703 * tree-ssa-pre.c (remove_dead_inserted_code): Clear
14704 inserted_exprs bit for not removed stmts.
14705
14706 2017-05-12 Thomas Schwinge <thomas@codesourcery.com>
14707
14708 PR middle-end/69921
14709 * tree-parloops.c (create_parallel_loop): Set "oacc kernels
14710 parallelized" attribute for parallelized OpenACC kernels.
14711 * omp-offload.c (execute_oacc_device_lower): Use it.
14712
14713 * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
14714 Set "oacc kernels" attribute.
14715 * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
14716 parameter. Adjust all users.
14717 (oacc_fn_attrib_kernels_p): Remove function.
14718 * omp-offload.c (execute_oacc_device_lower): Look for "oacc
14719 kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
14720 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
14721 * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
14722 assert "oacc kernels" attribute is set.
14723
14724 2017-05-11 Carl Love <cel@us.ibm.com>
14725
14726 * config/rs6000/rs6000-c: Add support for built-in functions
14727 vector unsigned char vec_popcnt (vector signed char)
14728 vector unsigned char vec_popcnt (vector unsigned char)
14729 vector unsigned short vec_popcnt (vector signed short)
14730 vector unsigned short vec_popcnt (vector unsigned short)
14731 vector unsigned int vec_popcnt (vector signed int)
14732 vector unsigned int vec_popcnt (vector unsigned int)
14733 vector unsigned long long vec_popcnt (vector signed long long)
14734 vector unsigned long long vec_popcnt (vector unsigned long long)
14735 vector signed long long vec_slo (vector signed long long,
14736 vector signed char)
14737 vector signed long long vec_slo (vector signed long long,
14738 vector unsigned char)
14739 vector unsigned long long vec_slo (vector unsigned long long,
14740 vector signed char)
14741 vector unsigned long long vec_slo (vector unsigned long long,
14742 vector unsigned char)
14743 * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
14744 VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
14745 * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
14746 vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
14747 * doc/extend.texi: Update the built-in documentation file for the
14748 new built-in functions.
14749
14750 2017-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
14751
14752 * attribs.h (sorted_attr_string): Move machine independent
14753 functions for target clone support from the i386 port to common
14754 code. Rename ix86_function_versions to common_function_versions.
14755 Rename make_name to make_unique_name.
14756 (common_function_versions): Likewise.
14757 (make_unique_name): Likewise.
14758 (make_dispatcher_decl): Likewise.
14759 (is_function_default_version): Likewise.
14760 * attribs.c (attr_strcmp): Likewise.
14761 (sorted_attr_string): Likewise.
14762 (common_function_versions): Likewise.
14763 (make_unique_name): Likewise.
14764 (make_dispatcher_decl): Likewise.
14765 (is_function_default_version): Likewise.
14766 * config/i386/i386.c (attr_strcmp): Likewise.
14767 (sorted_attr_string): Likewise.
14768 (ix86_function_versions): Likewise.
14769 (make_name): Likewise.
14770 (make_dispatcher_decl): Likewise.
14771 (is_function_default_version): Likewise.
14772 (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
14773
14774 2017-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14775
14776 PR target/80695
14777 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
14778 Account for direct move costs for vec_construct of integer
14779 vectors.
14780
14781 2017-05-11 Uros Bizjak <ubizjak@gmail.com>
14782
14783 PR target/80706
14784 * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
14785 (UNSPEC_STX_ATOMIC): Ditto.
14786 (loaddi_via_sse): New insn.
14787 (storedi_via_sse): Ditto.
14788 (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
14789 Update corresponding peephole2 patterns.
14790 (atomic_storedi_fpu): Ditto.
14791
14792 2017-05-11 Julia Koval <julia.koval@intel.com>
14793
14794 * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
14795 (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
14796 New intrinsics.
14797 * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
14798 (__builtin_ia32_rsqrt14ss_mask): New builtins.
14799 * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
14800
14801 2017-05-11 Nathan Sidwell <nathan@acm.org>
14802
14803 * graphite-poly.c: Include dumpfile.h.
14804
14805 * dumpfle.h (dump_function): Declare here ...
14806 * tree-dump.h (dump_function): ... not here.
14807 * dumpfile.c: #include tree-cfg.h.
14808 (dump_function): Move here from ...
14809 * tree-dump.c (dump_function): ... here.
14810 * gimplify.c: #include splay-tree.h, not tree-dump.h.
14811 * graphite-poly.c: Don't include tree-dump.h.
14812 * cgraphclones.c: Include dumpfile.h not tree-dump.h.
14813 * print-tree.c: Likewise.
14814 * stor-layout.c: Likewise.
14815 * tree-nested.c: Likewise.
14816
14817 * dumpfile.c (dump_start): Use TDF_FLAGS.
14818 (dump_enable_all): Fix TDF_KIND check thinko.
14819
14820 2017-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
14821
14822 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14823 array entries to represent two legal parameterizations of the
14824 overloaded __builtin_cmpb function, as represented by the
14825 P6_OV_BUILTIN_CMPB constant.
14826 (altivec_resolve_overloaded_builtin): Add special case handling
14827 for the __builtin_cmpb function, as represented by the
14828 P6_OV_BUILTIN_CMPB constant.
14829 * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
14830 (BU_P6_64BIT_2): New macro.
14831 (BU_P6_OVERLOAD_2): New macro
14832 (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
14833 (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
14834 (CMPB): Add overload support to represent both 32-bit and 64-bit
14835 compare-bytes function.
14836 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
14837 support for TARGET_CMPB.
14838 * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
14839 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
14840 documentation of the __builtin_cmpb overloaded built-in function.
14841
14842 2017-05-11 Richard Biener <rguenther@suse.de>
14843
14844 PR tree-optimization/80705
14845 * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
14846 bases are not vectorizable.
14847
14848 2017-05-11 Bin Cheng <bin.cheng@arm.com>
14849
14850 * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
14851 when counting register pressure.
14852
14853 2017-05-11 Bin Cheng <bin.cheng@arm.com>
14854
14855 * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
14856 (iv_ca_more_deps): Renamed to ...
14857 (iv_ca_compare_deps): ... this.
14858 (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
14859
14860 2017-05-11 Bin Cheng <bin.cheng@arm.com>
14861
14862 * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
14863 to ...
14864 (determine_group_iv_costs): ... here.
14865 (find_inv_vars_cb): Record inv var if it's not recorded before.
14866
14867 2017-05-11 Bin Cheng <bin.cheng@arm.com>
14868
14869 * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
14870 (get_shiftadd_cost): Ditto.
14871
14872 2017-05-11 Bin Cheng <bin.cheng@arm.com>
14873
14874 * tree-ssa-address.c: Include header file.
14875 (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
14876 address.
14877 (add_to_parts): Refactor.
14878 (addr_to_parts): New parameter. Update use of move_hint_to_base.
14879 (create_mem_ref): Update use of addr_to_parts. Re-associate addr
14880 in new order.
14881
14882 2017-05-11 Bin Cheng <bin.cheng@arm.com>
14883
14884 PR tree-optimization/53090
14885 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
14886 COMP_IV_EXPR_2.
14887 (extract_cond_operands): Detect condition with IV on both sides
14888 and return COMP_IV_EXPR_2.
14889 (find_interesting_uses_cond): Add iv_use for both IVs in condition.
14890 (rewrite_use_compare): Simplify by removing call to function
14891 extract_cond_operands.
14892
14893 2017-05-11 Bin Cheng <bin.cheng@arm.com>
14894
14895 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
14896 (extract_cond_operands): Detect condition comparing against non-
14897 invariant bound and return appropriate enum value.
14898 (find_interesting_uses_cond): Update use of extract_cond_operands.
14899 Handle its return value accordingly.
14900 (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
14901
14902 2017-05-11 Bin Cheng <bin.cheng@arm.com>
14903
14904 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
14905 nonlinear iv_use computation in loop invariant sensitive way.
14906
14907 2017-05-11 Bin Cheng <bin.cheng@arm.com>
14908
14909 * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
14910 (find_iv_candidates): Call relate_compare_use_with_all_cands.
14911
14912 2017-05-11 Bin Cheng <bin.cheng@arm.com>
14913
14914 * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
14915 (dump_cand): Support iv_cand.inv_exprs.
14916 (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
14917 for candidates.
14918 (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
14919 iv_cand.inv_exprs.
14920
14921 2017-05-11 Bin Cheng <bin.cheng@arm.com>
14922
14923 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
14924 from ...
14925 * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
14926 as local function. Include necessary header files.
14927 * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
14928
14929 2017-05-11 Bin Cheng <bin.cheng@arm.com>
14930
14931 * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
14932
14933 2017-05-11 Bin Cheng <bin.cheng@arm.com>
14934
14935 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
14936 operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
14937 RSHIFT_EXPR and BIT_NOT_EXPR.
14938
14939 2017-05-11 Bin Cheng <bin.cheng@arm.com>
14940
14941 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
14942 (adjust_setup_cost): New parameter supporting round up adjustment.
14943 (struct address_cost_data): Delete.
14944 (force_expr_to_var_cost): Don't bound cost with spill_cost.
14945 (split_address_cost, ptr_difference_cost): Delete.
14946 (difference_cost, compare_aff_trees, record_inv_expr): Delete.
14947 (struct ainc_cost_data): New struct.
14948 (get_address_cost_ainc): New function.
14949 (get_address_cost, get_computation_cost): Reimplement.
14950 (determine_group_iv_cost_address): Record inv_expr for all uses of
14951 a group.
14952 (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
14953 (iv_ca_has_deps): Reimplemented to ...
14954 (iv_ca_more_deps): ... this. Check if NEW_CP introduces more deps
14955 than OLD_CP.
14956 (iv_ca_extend): Call iv_ca_more_deps.
14957
14958 2017-05-11 Bin Cheng <bin.cheng@arm.com>
14959
14960 * tree-ssa-address.c (struct mem_address): Move to header file.
14961 (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
14962 * tree-ssa-address.h (struct mem_address): Move from C file.
14963 (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
14964
14965 2017-05-11 Bin Cheng <bin.cheng@arm.com>
14966
14967 * tree-affine.h (aff_combination_type): New interface.
14968 (aff_combination_zero_p): Remove static.
14969 (aff_combination_const_p): New interface.
14970 (aff_combination_singleton_var_p): New interfaces.
14971
14972 2017-05-11 Richard Biener <rguenther@suse.de>
14973
14974 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14975 Skip unreachable blocks and destinations.
14976 (eliminate): Move stmt removal and fixup ...
14977 (fini_eliminate): ... here. Skip inserted exprs.
14978 (pass_pre::execute): Move fini_pre after fini_eliminate.
14979 * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
14980 (tail_merge_optimize): Run cleanup_tree_cfg if requested by
14981 PRE to get rid of dead code that has invalid SSA form and
14982 split critical edges again.
14983
14984 2017-05-11 Bin Cheng <bin.cheng@arm.com>
14985
14986 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
14987
14988 2017-05-11 Richard Biener <rguenther@suse.de>
14989
14990 * passes.c (execute_function_todo): Verify loops if they are
14991 said to be up-to-date.
14992 * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
14993 * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
14994
14995 2017-05-10 John David Anglin <danglin@gcc.gnu.org>
14996
14997 PR target/80090
14998 * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
14999 handle calling assemble_external ourself.
15000
15001 PR target/79027
15002 * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
15003 modes with zero size. Enhance comment.
15004
15005 2017-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15006
15007 * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
15008 built-ins for vec_xl and vec_xst with short and char pointer
15009 arguments.
15010
15011 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
15012
15013 * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
15014 (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
15015 (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
15016 (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
15017 (_mm_maskz_min_round_ss): New intrinsics.
15018 * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
15019 (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
15020 * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
15021 (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
15022 (__builtin_ia32_minss_mask_round): New builtins.
15023 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
15024 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
15025 * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
15026 Rename to ...
15027 (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
15028 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
15029 Change to ...
15030 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
15031 ... this.
15032
15033 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
15034
15035 * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
15036 (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
15037 (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
15038 (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
15039 (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
15040 (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
15041 (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
15042 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
15043 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
15044 * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
15045 (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
15046 (__builtin_ia32_mulss_mask_round): New builtins.
15047 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
15048 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
15049 * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
15050 Rename to ...
15051 (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
15052 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
15053 Change to ...
15054 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
15055 ... this.
15056
15057 2017-05-10 Julia Koval <julia.koval@intel.com>
15058
15059 * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
15060 (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
15061 (_mm256_setr_m128i): New intrinsics.
15062
15063 2017-05-10 Julia Koval <julia.koval@intel.com>
15064
15065 * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
15066 (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
15067 (_mm_maskz_rcp14_ss): New intrinsics.
15068 * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
15069 (__builtin_ia32_rcp14ss_mask): New builtins.
15070 * config/i386/sse.md (srcp14<mode>_mask): New pattern.
15071
15072 2017-05-10 Peter Bergner <bergner@vnet.ibm.com>
15073
15074 PR tree-optimization/51513
15075 * tree-cfg.c (gimple_seq_unreachable_p): New function.
15076 (assert_unreachable_fallthru_edge_p): Use it.
15077 (group_case_labels_stmt): Likewise.
15078 * tree-cfg.h: Prototype it.
15079 * stmt.c: Include cfghooks.h and tree-cfg.h.
15080 (emit_case_dispatch_table) <gap_label>: New local variable.
15081 Use it to fill dispatch table gaps.
15082 Test for default_label before updating probabilities.
15083 (expand_case) <default_label>: Remove unneeded initialization.
15084 Test for unreachable default case statement and remove its edge.
15085 Set default_label accordingly.
15086 * tree-ssa-ccp.c (optimize_unreachable): Update comment.
15087
15088 2017-05-10 Carl Love <cel@us.ibm.com>
15089
15090 * config/rs6000/rs6000-c: Add support for built-in functions
15091 vector signed char vec_neg (vector signed char)
15092 vector signed short int vec_neg (vector short int)
15093 vector signed int vec_neg (vector signed int)
15094 vector signed long long vec_neg (vector signed long long)
15095 vector float vec_neg (vector float)
15096 vector double vec_neg (vector double)
15097 * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
15098 overload.
15099 * config/rs6000/altivec.h: Add define for vec_neg
15100 * doc/extend.texi: Update the built-in documentation for the
15101 new built-in functions.
15102
15103 2017-05-10 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15104
15105 PR tree-optimization/77644
15106 * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
15107
15108 2017-05-10 Nathan Sidwell <nathan@acm.org>
15109
15110 * dumpfile.h (TDI_lang_all): New.
15111 (TDF_KIND): New. Renumber others
15112 (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
15113 than bits.
15114 * dumpfile.c (dump_files): Mark language dumps as TDF_LANG. add
15115 lang-all.
15116 (get_dump_file_name): Adjust suffix generation.
15117 (dump_enable_all): Use TDF_KIND.
15118 * doc/invoke.texi (-fdump-lang-all): Document.
15119
15120 * dumpfile.h: Tabify.
15121
15122 2017-05-10 Wilco Dijkstra <wdijkstr@arm.com>
15123
15124 PR target/80671
15125 * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
15126 Move member access before delete.
15127
15128 2017-05-10 Alexandre Oliva <aoliva@redhat.com>
15129
15130 * tree-inline.c (expand_call_inline): Split block at stmt
15131 before the call.
15132
15133 2017-05-09 Michael Meissner <meissner@linux.vnet.ibm.com>
15134
15135 PR target/68163
15136 * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
15137 are now unused after splitting mov{sf,sd}_hardfloat.
15138 (f32_lr2): Likewise.
15139 (f32_lm): Likewise.
15140 (f32_lm2): Likewise.
15141 (f32_li): Likewise.
15142 (f32_li2): Likewise.
15143 (f32_lv): Likewise.
15144 (f32_sr): Likewise.
15145 (f32_sr2): Likewise.
15146 (f32_sm): Likewise.
15147 (f32_sm2): Likewise.
15148 (f32_si): Likewise.
15149 (f32_si2): Likewise.
15150 (f32_sv): Likewise.
15151 (f32_dm): Likewise.
15152 (f32_vsx): Likewise.
15153 (f32_av): Likewise.
15154 (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
15155 For movsf, order stores so the VSX stores occur before the GPR
15156 store which encourages the register allocator to use a traditional
15157 FPR instead of a GPR. For movsd, order the stores so that the GPR
15158 store comes before the VSX stores to allow the power6 to work.
15159 This is due to the power6 not having a 32-bit integer store
15160 instruction from a FPR.
15161 (movsf_hardfloat): Likewise.
15162 (movsd_hardfloat): Likewise.
15163
15164 2017-05-09 Martin Sebor <msebor@redhat.com>
15165
15166 PR translation/80280
15167 * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
15168 added in r247778.
15169
15170 PR translation/80280
15171 * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
15172 data member added in r247778.
15173 (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
15174
15175 2017-05-09 Nathan Sidwell <nathan@acm.org>
15176
15177 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
15178
15179 * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
15180 typedefs.
15181
15182 2017-05-09 Marek Polacek <polacek@redhat.com>
15183
15184 * doc/invoke.texi: Fix typo.
15185
15186 2017-05-09 Richard Biener <rguenther@suse.de>
15187
15188 * tree-vrp.c (vrp_val_is_max): Adjust comment.
15189 (vrp_val_is_min): Likewise.
15190 (set_value_range_to_value): Likewise.
15191 (set_value_range_to_nonnegative): Likewise.
15192 (gimple_assign_nonzero_p): Likewise.
15193 (gimple_stmt_nonzero_p): Likewise.
15194 (vrp_int_const_binop): Likewise. Remove unreachable case.
15195 (adjust_range_with_scev): Adjust comments.
15196 (compare_range_with_value): Likewise.
15197 (extract_range_from_phi_node): Likewise.
15198 (test_for_singularity): Likewise.
15199
15200 2017-05-09 Richard Biener <rguenther@suse.de>
15201
15202 * tree-vrp.c (get_single_symbol): Add assert that we don't
15203 get overflowed constants as invariant part.
15204 (compare_values_warnv): Add comment before the TREE_NO_WARNING
15205 checks. Use wi::cmp instead of recursing for integer constants.
15206 (compare_values): Just ignore whether we assumed undefined
15207 overflow instead of failing the compare.
15208 (extract_range_for_var_from_comparison_expr): Add comment before the
15209 TREE_NO_WARNING sets.
15210 (test_for_singularity): Likewise.
15211 (extract_range_from_comparison): Do not disable optimization
15212 when we assumed undefined overflow.
15213 (extract_range_basic): Remove init of unused var.
15214
15215 2017-05-09 Richard Biener <rguenther@suse.de>
15216
15217 * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
15218 (extract_range_from_multiplicative_op_1): Adjust.
15219 (extract_range_from_binary_expr_1): Use int_const_binop.
15220
15221 2017-05-08 Kelvin Nilsen <kelvin@gcc.gnu.org>
15222
15223 PR target/80101
15224 * config/rs6000/power6.md: Replace store_data_bypass_p calls with
15225 rs6000_store_data_bypass_p in seven define_bypass directives and
15226 in several comments.
15227 * config/rs6000/rs6000-protos.h: Add prototype for
15228 rs6000_store_data_bypass_p function.
15229 * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
15230 function implements slightly different (rs6000-specific) semantics
15231 than store_data_bypass_p, returning false rather than aborting
15232 with assertion error when arguments do not satisfy the
15233 requirements of store data bypass.
15234 (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
15235 rs6000_store_data_bypass_p.
15236
15237 2017-05-08 Max Filippov <jcmvbkbc@gmail.com>
15238
15239 * config/xtensa/xtensa-protos.h
15240 (xtensa_initial_elimination_offset): New declaration.
15241 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
15242 New function. Move its body from the INITIAL_ELIMINATION_OFFSET
15243 macro definition, add case for FRAME_POINTER_REGNUM when
15244 FRAME_GROWS_DOWNWARD.
15245 * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
15246 (INITIAL_ELIMINATION_OFFSET): Replace body with call to
15247 xtensa_initial_elimination_offset.
15248
15249 2017-05-08 Nathan Sidwell <nathan@acm.org>
15250
15251 * doc/invoke.texi: Alphabetize -fdump options.
15252
15253 2017-05-08 Martin Sebor <msebor@redhat.com>
15254
15255 PR translation/80280
15256 * config/sol2-c.c (solaris_pragma_align): Correct quoting.
15257
15258 2017-05-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
15259
15260 * target.def (compute_frame_layout): New optional target hook.
15261 * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
15262 * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
15263 * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
15264 target hook.
15265 * reload1.c (verify_initial_elim_offsets): Likewise.
15266 * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
15267 (use_simple_return_p): Call arm_compute_frame_layout if needed.
15268 (arm_get_frame_offsets): Split up into this ...
15269 (arm_compute_frame_layout): ... and this function.
15270
15271 2017-05-08 Richard Sandiford <richard.sandiford@arm.com>
15272
15273 * config/aarch64/constraints.md (Usa): New constraint.
15274 * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
15275
15276 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
15277
15278 * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
15279 with_multilib_list after it has been checked.
15280
15281 2017-05-08 Richard Biener <rguenther@suse.de>
15282
15283 * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
15284 (bitmap_set_subtract_values): Likewise.
15285
15286 2017-05-08 Richard Biener <rguenther@suse.de>
15287
15288 * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
15289 (gimple_assign_nonzero): ... this and remove strict_overflow_p
15290 argument.
15291 (gimple_stmt_nonzero_warnv_p): Rename to ...
15292 (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
15293 argument.
15294 (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
15295 (extract_range_basic): Adjust, do not disable propagation on
15296 strict overflow sensitive simplification.
15297 (vrp_visit_cond_stmt): Likewise.
15298
15299 2017-05-05 Jan Hubicka <hubicka@ucw.cz>
15300
15301 * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
15302 body size unconditionally.
15303
15304 2017-05-07 Jeff Law <law@redhat.com>
15305
15306 Revert:
15307 2017-05-06 Jeff Law <law@redhat.com>
15308 PR tree-optimization/78496
15309 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
15310 code.
15311
15312 PR tree-optimization/78496
15313 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
15314 (simplify_stmt_using_ranges): Call it.
15315 (vrp_dom_walker::before_dom_children): Extract equivalences
15316 from an ASSERT_EXPR with an equality comparison against a
15317 constant.
15318
15319 2017-05-06 Jeff Law <law@redhat.com>
15320
15321 PR tree-optimization/78496
15322 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
15323 code.
15324
15325 PR tree-optimization/78496
15326 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
15327 (simplify_stmt_using_ranges): Call it.
15328 (vrp_dom_walker::before_dom_children): Extract equivalences
15329 from an ASSERT_EXPR with an equality comparison against a
15330 constant.
15331
15332 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
15333
15334 * lra-constraints.c (lra_copy_reg_equiv): New function.
15335 (split_reg): Use it to copy equivalence information from the
15336 original register to the spill register.
15337
15338 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
15339
15340 PR rtl-optimization/75964
15341 * simplify-rtx.c (simplify_const_relational_operation): Remove
15342 invalid handling of comparisons of integer ABS.
15343
15344 2017-05-06 Uros Bizjak <ubizjak@gmail.com>
15345
15346 * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
15347 initialize to zero.
15348 (init_regs): Remove declaration.
15349 (function_arg_advance_32): Initialize error_p as boolean variable.
15350
15351 2017-05-05 Nathan Sidwell <nathan@acm.org>
15352
15353 * store-motion.c (remove_reachable_equiv_notes): Reformat long
15354 lines. Use for (;;).
15355
15356 2017-05-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15357
15358 * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
15359 (rs6000_init_cost): Initialize rs6000_vect_nonmem.
15360 (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
15361 (rs6000_finish_cost): Avoid vectorizing simple copy loops with
15362 VF=2 that require versioning.
15363
15364 2017-05-05 David Malcolm <dmalcolm@redhat.com>
15365
15366 * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
15367 int.
15368
15369 2017-05-05 David Malcolm <dmalcolm@redhat.com>
15370
15371 * diagnostic.h (diagnostic_override_option_index): Convert from
15372 macro to inline function.
15373
15374 2017-05-05 David Malcolm <dmalcolm@redhat.com>
15375
15376 * diagnostic.c (last_module_changed_p): New function.
15377 (set_last_module): New function.
15378 (diagnostic_report_current_module): Convert macro usage to
15379 the above functions.
15380 * diagnostic.h (diagnostic_context::last_module): Strengthen
15381 from const line_map * to const line_map_ordinary *.
15382 (diagnostic_last_module_changed): Delete macro.
15383 (diagnostic_set_last_module): Delete macro.
15384
15385 2017-05-05 David Malcolm <dmalcolm@redhat.com>
15386
15387 * diagnostic.c (diagnostic_impl): Replace report_diagnostic
15388 with diagnostic_report_diagnostic.
15389 (diagnostic_n_impl_richloc): Likewise.
15390 * diagnostic.h (report_diagnostic): Delete macro.
15391 * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
15392 with diagnostic_report_diagnostic.
15393 * substring-locations.c (format_warning_va): Likewise.
15394
15395 2017-05-05 David Malcolm <dmalcolm@redhat.com>
15396
15397 * diagnostic.c (diagnostic_report_diagnostic): Eliminate
15398 save/restor of format_spec. Move option-printing code to...
15399 (print_option_information): ...this new function, and
15400 reimplement by simply printing to the pretty_printer,
15401 rather than appending to the format string.
15402
15403 2017-05-05 David Malcolm <dmalcolm@redhat.com>
15404
15405 * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
15406 handling logic into...
15407 (update_effective_level_from_pragmas): ...this new function.
15408
15409 2017-05-04 Andrew Waterman <andrew@sifive.com>
15410
15411 * config/riscv/riscv.opt (mstrict-align): New option.
15412 * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it. Update comment.
15413 (SLOW_UNALIGNED_ACCESS): Define.
15414 (riscv_slow_unaligned_access): Declare.
15415 * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
15416 field.
15417 (riscv_slow_unaligned_access): New variable.
15418 (rocket_tune_info): Set slow_unaligned_access to true.
15419 (optimize_size_tune_info): Set slow_unaligned_access to false.
15420 (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
15421 (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
15422 (riscv_option_override): Set riscv_slow_unaligned_access.
15423 * doc/invoke.texi: Add -mstrict-align to RISC-V.
15424
15425 2017-05-04 Kito Cheng <kito.cheng@gmail.com>
15426
15427 * config/riscv/riscv.md: Unify indentation.
15428
15429 2017-05-05 Michael Meissner <meissner@linux.vnet.ibm.com>
15430
15431 PR target/79038
15432 PR target/79202
15433 PR target/79203
15434 * config/rs6000/rs6000.md (u code attribute): Add FIX and
15435 UNSIGNED_FIX.
15436 (extendsi<mode>2): Add support for doing sign extension via
15437 VUPKHSW and XXPERMDI if the value is in Altivec registers and we
15438 don't have ISA 3.0 instructions.
15439 (extendsi<mode>2 splitter): Likewise.
15440 (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
15441 generate the normal insns since SImode can now go in vector
15442 registers. Disallow the special UNSPECs needed for previous
15443 machines to hide SImode being used. Add new insns
15444 fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
15445 (fix_trunc<mode>si2_stfiwx): Likewise.
15446 (fix_trunc<mode>si2_internal): Likewise.
15447 (fixuns_trunc<mode>si2): Likewise.
15448 (fixuns_trunc<mode>si2_stfiwx): Likewise.
15449 (fctiw<u>z_<mode>_smallint): Likewise.
15450 (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
15451 of floating point to 32-bit integer from doing a direct move to
15452 the GPR registers to do a store.
15453 (fctiwz_<mode>): Break long line.
15454
15455 2017-05-05 Bin Cheng <bin.cheng@arm.com>
15456
15457 * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
15458 * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
15459 (addr_list, addr_offset_valid_p): New.
15460 (split_address_groups): Check offset validity with above function.
15461 (gt-tree-ssa-loop-ivopts.h): Include header file.
15462
15463 2017-05-05 Nathan Sidwell <nathan@acm.org>
15464
15465 * config.gcc (arm*-*-*): Add missing 'fi'.
15466
15467 2017-05-05 Steve Ellcey <sellcey@cavium.com>
15468
15469 * doc/invoke.texi (-fopt-info): Explicitly say order of options
15470 included in -fopt-info does not matter.
15471 * doc/optinfo.texi (-fopt-info): Fix description of default
15472 behavour. Explicitly say order of options included in -fopt-info
15473 does not matter.
15474
15475 2017-05-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
15476
15477 * config.gcc: Allow combinations of aprofile and rmprofile values for
15478 --with-multilib-list.
15479 * config/arm/t-multilib: New file.
15480 * config/arm/t-aprofile: Remove initialization of MULTILIB_*
15481 variables. Remove setting of ISA and floating-point ABI in
15482 MULTILIB_OPTIONS and MULTILIB_DIRNAMES. Set architecture and FPU in
15483 MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
15484 and MULTILIB_DIRNAMES respectively. Add comment to introduce all
15485 matches. Add architecture matches for marvel-pj4 and generic-armv7-a
15486 CPU options.
15487 * config/arm/t-rmprofile: Likewise except for the matches changes.
15488 * doc/install.texi (--with-multilib-list): Document the combination of
15489 aprofile and rmprofile values and warn about pitfalls in doing that.
15490
15491 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
15492
15493 * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
15494 (movdi_aarch64): Likewise.
15495
15496 2017-05-05 Jakub Jelinek <jakub@redhat.com>
15497
15498 PR tree-optimization/80632
15499 * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
15500 field.
15501 (build_arrays): Initialize it for virtual phis.
15502 (fix_phi_nodes): Use it for virtual phis.
15503
15504 PR tree-optimization/80558
15505 * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
15506 [x, y] op z into [x op, y op z] for op & or | if conditions
15507 are met.
15508
15509 2017-05-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
15510 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
15511
15512 PR target/71607
15513 * config/arm/arm.md (use_literal_pool): Remove.
15514 (64-bit immediate split): No longer takes cost into consideration
15515 if arm_disable_literal_pool is enabled.
15516 * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
15517 used when arm_disable_literal_pool is enabled.
15518 (arm_max_const_double_inline_cost): Remove use of
15519 arm_disable_literal_pool.
15520 (push_minipool_fix): Add assert.
15521 (arm_reorg): Add return if arm_disable_literal_pool is enabled.
15522 * config/arm/vfp.md (no_literal_pool_df_immediate): New.
15523 (no_literal_pool_sf_immediate): New.
15524
15525 2017-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15526
15527 PR tree-optimization/80613
15528 * tree-ssa-dce.c (propagate_necessity): Remove cases for
15529 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
15530
15531 2017-05-05 Richard Biener <rguenther@suse.de>
15532
15533 * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
15534
15535 2017-05-05 Georg-Johann Lay <avr@gjlay.de>
15536
15537 * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
15538 of this flag from insn conditions due to removal from r247495.
15539
15540 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
15541
15542 * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
15543 New function.
15544 (arm_early_store_addr_dep_ptr): Likewise.
15545 * config/arm/aarch-common-protos.h
15546 (arm_early_load_addr_dep_ptr): Add prototype.
15547 (arm_early_store_addr_dep_ptr): Likewise.
15548 * config/arm/cortex-a53.md: Add new bypasses.
15549
15550 2017-05-05 Jakub Jelinek <jakub@redhat.com>
15551
15552 * tree.c (next_type_uid): Change type to unsigned.
15553 (type_hash_canon): Decrement back next_type_uid if
15554 freeing a type node with the highest TYPE_UID. For INTEGER_TYPEs
15555 also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
15556 if possible.
15557
15558 2017-05-04 Martin Sebor <msebor@redhat.com>
15559
15560 * builtins.c: Fix a trivial typo in a comment.
15561
15562 PR middle-end/79234
15563 * builtins.c (check_sizes): Adjust to handle reading past the end.
15564 Avoid printing excessive upper bound of ranges. Use %E to print
15565 tree nodes instead of converting them to %wu.
15566 (expand_builtin_memchr): New function.
15567 (compute_dest_size): Rename...
15568 (compute_objsize): ...to this.
15569 (expand_builtin_memcpy): Adjust.
15570 (expand_builtin_mempcpy): Adjust.
15571 (expand_builtin_strcat): Adjust.
15572 (expand_builtin_strcpy): Adjust.
15573 (check_strncat_sizes): Adjust.
15574 (expand_builtin_strncat): Adjust.
15575 (expand_builtin_strncpy): Adjust and simplify.
15576 (expand_builtin_memset): Adjust.
15577 (expand_builtin_bzero): Adjust.
15578 (expand_builtin_memcmp): Adjust.
15579 (expand_builtin): Handle memcmp.
15580 (maybe_emit_chk_warning): Check strncat just once.
15581
15582 2017-05-04 Martin Sebor <msebor@redhat.com>
15583
15584 PR preprocessor/79214
15585 PR middle-end/79222
15586 PR middle-end/79223
15587 * builtins.c (check_sizes): Add inlining context and issue
15588 warnings even when -Wno-system-headers is set.
15589 (check_strncat_sizes): Same.
15590 (expand_builtin_strncat): Same.
15591 (expand_builtin_memmove): New function.
15592 (expand_builtin_stpncpy): Same.
15593 (expand_builtin): Handle memmove and stpncpy.
15594
15595 2017-05-04 Bin Cheng <bin.cheng@arm.com>
15596
15597 * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
15598 which is not used any more.
15599
15600 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
15601
15602 * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
15603
15604 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
15605
15606 * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
15607 (cortexa53_tunings): Likewise.
15608 (cortexa57_tunings): Likewise.
15609 (cortexa72_tunings): Likewise.
15610 (cortexa73_tunings): Likewise.
15611
15612 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
15613
15614 * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
15615 Set loop alignment to 8.
15616
15617 2017-05-04 Martin Sebor <msebor@redhat.com>
15618
15619 PR translation/80280
15620 * builtins.c (expand_builtin_object_size): Add missing quoting to
15621 %D and like directives.
15622 * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
15623 (hsa_type_for_tree_type): Same.
15624 (verify_function_arguments): Same.
15625 * symtab.c (symbol_table::change_decl_assembler_name): Same.
15626 * varasm.c (get_section): Same.
15627 (mark_weak): Same.
15628
15629 2017-05-04 Martin Sebor <msebor@redhat.com>
15630
15631 PR translation/80280
15632 * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
15633
15634 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
15635
15636 * config/aarch64/aarch64.c (generic_addrcost_table):
15637 Change HI/TI mode setting.
15638
15639 2017-05-04 Martin Jambor <mjambor@suse.cz>
15640
15641 PR tree-optimization/80622
15642 * tree-sra.c (comes_initialized_p): New function.
15643 (build_accesses_from_assign): Only set write lazily when
15644 comes_initialized_p is false.
15645 (analyze_access_subtree): Use comes_initialized_p.
15646 (propagate_subaccesses_across_link): Assert !comes_initialized_p
15647 instead of testing for PARM_DECL.
15648
15649 2017-05-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15650
15651 * config/aarch64/aarch64.md (prefetch); Adjust predicate and
15652 constraint on operand 0 to allow more general addressing modes.
15653 Adjust output template.
15654 * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
15655 New function.
15656 * config/aarch64/aarch64-protos.h
15657 (aarch64_address_valid_for_prefetch_p): Declare prototype.
15658 * config/aarch64/constraints.md (Dp): New address constraint.
15659 * config/aarch64/predicates.md (aarch64_prefetch_operand): New
15660 predicate.
15661
15662 2017-05-04 Jan Hubicka <hubicka@ucw.cz>
15663
15664 * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
15665 update use of estimate_ipcp_clone_size_and_time.
15666 (estimate_local_effects): Update use of
15667 estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
15668 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
15669 * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
15670 Return nonspecialized time.
15671
15672 2017-05-04 Richard Biener <rguenther@suse.de>
15673
15674 * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
15675 for the last VUSE which def dominates the PHI. Directly call
15676 maybe_skip_until.
15677 (get_continuation_for_phi_1): Remove.
15678
15679 2017-05-04 Richard Sandiford <richard.sandiford@linaro.org>
15680
15681 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
15682 to explain the use of truncating division. Cap the number of
15683 iterations to the maximum given by nb_iterations_upper_bound,
15684 if defined.
15685
15686 2017-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
15687
15688 * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
15689 * configure: Regenerate.
15690 * config.in: Regenerate.
15691 * config/i386/driver-mingw32.c: new file.
15692 * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
15693 * config.host: Link driver-mingw32.o on MinGW host.
15694 * doc/install.texi: Document new --enable-mingw-wildcard configure
15695 option.
15696
15697 2017-05-04 Marek Polacek <polacek@redhat.com>
15698
15699 PR tree-optimization/80612
15700 * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
15701
15702 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
15703 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
15704
15705 * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
15706 (movt splitter): Likewise.
15707 * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
15708 to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
15709 (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
15710 block for Thumb-1 with MOVT.
15711 (thumb2_legitimate_address_p): Move code block ...
15712 (can_avoid_literal_pool_for_label_p): ... into this new function.
15713 (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
15714 literal pool.
15715 (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
15716 * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
15717 "M-profile targets with the MOVT instruction".
15718
15719 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
15720
15721 * config/arm/arm-builtins.c (arm_init_builtins): Rename
15722 __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
15723 __builtin_arm_stfscr to __builtin_arm_set_fpscr.
15724
15725 2017-05-04 Martin Liska <mliska@suse.cz>
15726
15727 * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
15728 variable cond_code.
15729
15730 2017-05-04 Richard Biener <rguenther@suse.de>
15731
15732 * tree.c (array_at_struct_end_p): Handle arrays at struct
15733 end with flexarrays more conservatively. Refactor and treat
15734 arrays of arrays or aggregates more strict. Fix
15735 VIEW_CONVERT_EXPR handling. Remove allow_compref argument.
15736 * tree.c (array_at_struct_end_p): Adjust prototype.
15737 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
15738 * gimple-fold.c (get_range_strlen): Likewise.
15739 * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
15740
15741 2017-05-04 Richard Biener <rguenther@suse.de>
15742
15743 PR tree-optimization/31130
15744 * tree-vrp.c (needs_overflow_infinity): Remove as always returning
15745 false.
15746 (supports_overflow_infinity): Likewise.
15747 (is_negative_overflow_infinity): Likewise.
15748 (is_positive_overflow_infinity): Likewise.
15749 (is_overflow_infinity): Likewise.
15750 (stmt_overflow_infinity): Likewise.
15751 (overflow_infinity_range_p): Likewise.
15752 (usable_range_p): Remove as always returning true.
15753 (make_overflow_infinity): Remove.
15754 (negative_overflow_infinity): Likewise.
15755 (positive_overflow_infinity): Likewise.
15756 (avoid_overflow_infinity): Likewise.
15757 (set_value_range): Adjust accordingly.
15758 (set_value_range_to_nonnegative): Likewise, remove now unused
15759 overflow_infinity arg.
15760 (vrp_operand_equal_p): Adjust.
15761 (update_value_range): Likewise.
15762 (range_int_cst_singleton_p): Likewise.
15763 (operand_less_p): Likewise.
15764 (compare_values_warnv): Likewise.
15765 (extract_range_for_var_from_comparison_expr): Likewise.
15766 (vrp_int_const_binop): Likewise.
15767 (zero_nonzero_bits_from_vr): Likewise.
15768 (extract_range_from_multiplicative_op_1): Likewise.
15769 (extract_range_from_binary_expr_1): Likewise.
15770 (extract_range_from_unary_expr): Likewise.
15771 (extract_range_from_comparison): Likewise.
15772 (extract_range_basic): Likewise.
15773 (adjust_range_with_scev): Likewise.
15774 (compare_ranges): Likewise.
15775 (compare_range_with_value): Likewise.
15776 (dump_value_range): Likewise.
15777 (test_for_singularity): Likewise, remove strict_overflow_p parameter
15778 never used.
15779 (simplify_cond_using_ranges): Adjust.
15780
15781 2017-05-04 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
15782
15783 * brig-builtins.def: Added a builtin for class_f64.
15784 * builtin-types.def: Added a builtin type needed by class_f64.
15785
15786 2017-05-03 Jason Merrill <jason@redhat.com>
15787
15788 * timevar.def: Add TV_CONSTEXPR.
15789
15790 2017-05-03 David Malcolm <dmalcolm@redhat.com>
15791
15792 * common.opt (fdiagnostics-parseable-fixits): Fix typo.
15793
15794 2017-05-03 Martin Jambor <mjambor@suse.cz>
15795
15796 * ipa-prop.c (ipa_update_after_lto_read): Removed.
15797 * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
15798 * ipa-cp.c (ipcp_propagate_stage): Do not call
15799 ipa_update_after_lto_read.
15800 * ipa-inline.c (ipa_inline): Likewise.
15801
15802 2017-05-03 Martin Jambor <mjambor@suse.cz>
15803
15804 * ipa-prop.h (ipa_edge_args): Make a class. Mark with for_user GTY
15805 tag. Added a default constructor and a destructor.
15806 (ipa_edge_args_sum_t): New class;
15807 (ipa_edge_args_sum): Declare.
15808 (ipa_edge_args_vector): Remove declaration.
15809 (IPA_EDGE_REF): Use ipa_edge_args_sum.
15810 (ipa_free_edge_args_substructures): Remove declaration.
15811 (ipa_check_create_edge_args): Use ipa_edge_args_sum.
15812 (ipa_edge_args_info_available_for_edge_p): Likewise.
15813 * ipa-prop.c (ipa_edge_args_vector): Removed.
15814 (edge_removal_hook_holder): Likewise.
15815 (edge_duplication_hook_holder): Likewise.
15816 (ipa_edge_args_sum): New variable.
15817 (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
15818 ipa_edge_args_vector.
15819 (ipa_free_edge_args_substructures): Likewise.
15820 (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
15821 ipa_edge_args_vector.
15822 (ipa_edge_removal_hook): Turned into method
15823 ipa_edge_args_sum_t::remove.
15824 (ipa_edge_duplication_hook): Turned into method
15825 ipa_edge_args_sum_t::duplicate.
15826 (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
15827 registering edge hooks.
15828 (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
15829 * ipa-inline-analysis.c (estimate_function_body_sizes): Test
15830 ipa_edge_args_sum instead of ipa_edge_args_vector.
15831 * ipa-profile.c (ipa_profile): Likewise.
15832
15833 2017-05-03 Martin Jambor <mjambor@suse.cz>
15834
15835 * symbol-summary.h (function_summary): New method exists.
15836 (function_summary::symtab_removal): Deallocate through release.
15837 (call_summary): New class.
15838 (gt_ggc_mx): New overload.
15839 (gt_pch_nx): Likewise.
15840 (gt_pch_nx): Likewise.
15841
15842 2017-05-03 Jeff Law <law@redhat.com>
15843
15844 PR tree-optimization/78496
15845 * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
15846 from simplify_cond_using_ranges. Split off code to walk
15847 backwards through casts into ...
15848 (simplify_cond_using_ranges_2): New function.
15849 (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
15850 (execute_vrp): After identifying jump threads, call
15851 simplify_cond_using_ranges_2.
15852
15853 2017-05-03 Jan Hubicka <hubicka@ucw.cz>
15854
15855 PR bootstrap/80609
15856 * ipa-inline.h (inline_summary): Add ctor.
15857 (create_ggc): Do not use ggc_cleared_alloc.
15858
15859 2017-05-03 Jeff Downs <heydowns@somuchpressure.net>
15860 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15861
15862 * gcc.c (handle_braces): Support escaping in switch matching
15863 text.
15864 * doc/invoke.texi (Spec Files): Document it.
15865 Remove superfluous @code markup in items.
15866
15867 2017-05-03 David Malcolm <dmalcolm@redhat.com>
15868
15869 * diagnostic-show-locus.c (struct column_range): New struct.
15870 (get_affected_columns): New function.
15871 (get_printed_columns): New function.
15872 (struct correction): New struct.
15873 (correction::ensure_capacity): New function.
15874 (correction::ensure_terminated): New function.
15875 (struct line_corrections): New struct.
15876 (line_corrections::~line_corrections): New dtor.
15877 (line_corrections::add_hint): New function.
15878 (layout::print_trailing_fixits): Reimplement in terms of the new
15879 classes.
15880 (selftest::test_overlapped_fixit_printing): New function.
15881 (selftest::diagnostic_show_locus_c_tests): Call it.
15882
15883 2017-05-03 Nathan Sidwell <nathan@acm.org>
15884
15885 Canonicalize canonical type hashing
15886 * tree.h (type_hash_canon_hash): Declare.
15887 * tree.c (type_hash_list, attribute_hash_list): Move into
15888 type_hash_canon_hash.
15889 (build_type_attribute_qual_variant): Break out hash code calc into
15890 type_hash_canon_hash.
15891 (type_hash_canon_hash): New. Generic type hash computation.
15892 (build_range_type_1, build_array_type_1, build_function_type,
15893 build_method_type_directly, build_offset_type, build_complex_type,
15894 make_vector_type): Call it.
15895
15896 2017-05-03 Richard Biener <rguenther@suse.de>
15897
15898 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
15899 When all DRs have unknown misaligned do not always peel
15900 when there is a store but apply the same costing model as if
15901 there were only loads.
15902
15903 2017-05-03 Richard Biener <rguenther@suse.de>
15904
15905 Revert
15906 PR tree-optimization/80492
15907 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
15908 compare_base_decls returning dont-know properly.
15909
15910 2017-05-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
15911
15912 * config/arm/iterators.md (CCSI): New mode iterator.
15913 (arch): New mode attribute.
15914 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
15915 (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
15916 (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This. Use CCSI
15917 code iterator for success result mode.
15918 * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
15919 the corresponding new insn generators.
15920
15921 2017-05-03 Bin Cheng <bin.cheng@arm.com>
15922
15923 Revert r247509
15924 2017-05-02 Bin Cheng <bin.cheng@arm.com>
15925 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
15926
15927 2017-05-03 Richard Sandiford <richard.sandiford@linaro.org>
15928
15929 * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
15930 (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
15931 (DDR_A): Wrap DDR argument in brackets.
15932 (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
15933 (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
15934 (DDR_REVERSED_P): Likewise.
15935
15936 2017-05-03 Jakub Jelinek <jakub@redhat.com>
15937
15938 PR tree-optimization/79472
15939 * tree-switch-conversion.c (struct switch_conv_info): Add
15940 contiguous_range and default_case_nonstandard fields.
15941 (collect_switch_conv_info): Compute contiguous_range and
15942 default_case_nonstandard fields, don't clear final_bb if
15943 contiguous_range and only the default case doesn't have the required
15944 structure.
15945 (check_all_empty_except_final): Set default_case_nonstandard instead
15946 of failing if contiguous_range and the default case doesn't have empty
15947 block.
15948 (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
15949 and only the default case doesn't have the required constants. Skip
15950 virtual phis.
15951 (gather_default_values): Skip virtual phis. Allow non-NULL CASE_LOW
15952 if default_case_nonstandard.
15953 (build_constructors): Build constant 1 just once. Assert that default
15954 values aren't inserted in between cases if contiguous_range. Skip
15955 virtual phis.
15956 (build_arrays): Skip virtual phis.
15957 (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
15958 (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
15959 Handle virtual phis.
15960 (gen_inbound_check): Handle default_case_nonstandard case.
15961 (process_switch): Adjust check_final_bb caller. Call
15962 gather_default_values with the first non-default case instead of
15963 default case if default_case_nonstandard.
15964
15965 2017-05-02 Nathan Sidwell <nathan@acm.org>
15966
15967 * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
15968 check. Fix formatting.
15969
15970 2017-05-02 Jan Hubicka <hubicka@ucw.cz>
15971
15972 * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
15973 errors when comparing specialized and unspecialized times.
15974
15975 2017-05-02 David Malcolm <dmalcolm@redhat.com>
15976
15977 * diagnostic-show-locus.c
15978 (layout::should_print_annotation_line_p): Make private.
15979 (layout::print_annotation_line): Make private.
15980 (layout::annotation_line_showed_range_p): Make private.
15981 (layout::show_ruler): Make private.
15982 (layout::print_source_line): Make private. Pass in line and
15983 line_width, rather than calling location_get_source_line. Drop
15984 returned value.
15985 (layout::print_leading_fixits): New method.
15986 (layout::print_any_fixits): Rename to...
15987 (layout::print_trailing_fixits): ...this, and make private.
15988 Don't print newline fixits.
15989 (diagnostic_show_locus): Move logic for printing one row into...
15990 (layout::print_line): ...this new function. Move the
15991 location_get_source_line call and error-handling from
15992 print_source_line to here. Call print_leading_fixits, and rename
15993 print_any_fixits to print_trailing_fixits.
15994 (selftest::test_fixit_insert_containing_newline): Update now that
15995 newlines are partially supported.
15996 (selftest::test_fixit_insert_containing_newline_2): New test.
15997 (selftest::test_fixit_replace_containing_newline): Update comments.
15998 (selftest::diagnostic_show_locus_c_tests): Call the new test.
15999 * edit-context.c (class added_line): New class.
16000 (class edited_line): Describe newline handling in comment.
16001 (edited_line::actually_edited_p): New method.
16002 (edited_line::print_content): Delete redundant decl.
16003 (edited_line::m_predecessors): New field.
16004 (edited_file::print_content): Call edited_line::print_content.
16005 (edited_file::print_diff): Update to support newlines.
16006 (edited_file::print_diff_hunk): Likewise.
16007 (edited_file::print_run_of_changed_lines): New function.
16008 (edited_file::print_diff_line): Convert to...
16009 (print_diff_line): ...this.
16010 (edited_file::get_effective_line_count): New function.
16011 (edited_line::edited_line): Initialize new field m_predecessors.
16012 (edited_line::~edited_line): Clean up m_predecessors.
16013 (edited_line::apply_fixit): Handle newlines.
16014 (edited_line::get_effective_line_count): New function.
16015 (edited_line::print_content): New function.
16016 (edited_line::print_diff_lines): New function.
16017 (selftest::test_applying_fixits_insert_containing_newline): New
16018 test.
16019 (selftest::test_applying_fixits_replace_containing_newline): New
16020 test.
16021 (selftest::insert_line): New function.
16022 (selftest::test_applying_fixits_multiple_lines): Add example of
16023 inserting a line.
16024 (selftest::edit_context_c_tests): Call the new tests.
16025
16026 2017-05-02 Bin Cheng <bin.cheng@arm.com>
16027
16028 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
16029 parameter cand. Update dump information.
16030 (get_computation_cost): Update uses.
16031
16032 2017-05-02 Bin Cheng <bin.cheng@arm.com>
16033
16034 * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
16035 (get_computation_aff): Reorder parameters. Use get_computation_aff_1.
16036 (get_computation_at, rewrite_use_address): Update use of
16037 get_computation_aff.
16038
16039 2017-05-02 Bin Cheng <bin.cheng@arm.com>
16040
16041 * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
16042 (get_computation): Delete.
16043 (get_computation_cost): Implement like get_computation_cost_at.
16044 Use get_computation_at.
16045 (get_computation_cost_at): Delete.
16046 (rewrite_use_nonlinear_expr): Use get_computation_at.
16047 (rewrite_use_compare, remove_unused_ivs): Ditto.
16048
16049 2017-05-02 Bin Cheng <bin.cheng@arm.com>
16050
16051 * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
16052
16053 2017-05-02 Bin Cheng <bin.cheng@arm.com>
16054
16055 * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
16056 (ivopts_global_cost_for_size): Rename parameter and update uses.
16057 (iv_ca_recount_cost): Update uses.
16058 (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
16059 candidates seperately in n_invs and n_cands.
16060 (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
16061
16062 2017-05-02 Bin Cheng <bin.cheng@arm.com>
16063
16064 * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
16065 (find_inv_vars_cb): New.
16066 (find_depends): Renamed to ...
16067 (find_inv_vars): ... this.
16068 (add_candidate_1, force_var_cost): Call find_inv_vars.
16069 (split_address_cost, determine_group_iv_cost_cond): Ditto.
16070
16071 2017-05-02 Bin Cheng <bin.cheng@arm.com>
16072
16073 * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
16074 inv_vars. Add inv_exprs.
16075 (struct iv_cand): Rename depends_on to inv_vars.
16076 (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
16077 max_inv_var_id/n_inv_var_uses. Move max_inv_expr_id around.
16078 Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
16079 (dump_cand): Dump inv_vars.
16080 (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
16081 (record_invariant, find_depends, add_candidate_1): Ditto.
16082 (set_group_iv_cost, force_var_cost): Ditto.
16083 (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
16084 (get_computation_cost_at, get_computation_cost): Ditto.
16085 (determine_group_iv_cost_generic): Ditto.
16086 (determine_group_iv_cost_address): Ditto.
16087 (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
16088 (determine_group_iv_costs): Ditto.
16089 (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
16090 (iv_ca_set_remove_invariants): Renamed to ...
16091 (iv_ca_set_remove_invs): ... this. Support inv_vars and inv_exprs.
16092 (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
16093 (iv_ca_set_add_invariants): Renamed to ...
16094 (iv_ca_set_add_invs): ... this. Support inv_vars and inv_exprs.
16095 (iv_ca_set_cp): Use iv_ca_set_add_invs.
16096 (iv_ca_has_deps): Support inv_vars and inv_exprs.
16097 (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
16098 (create_new_ivs): Remove useless dump.
16099
16100 2017-05-02 Bin Cheng <bin.cheng@arm.com>
16101
16102 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
16103 iv_cand code.
16104 (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
16105 (iv_ca_set_no_cp, create_new_iv): Ditto.
16106
16107 2017-05-02 Bin Cheng <bin.cheng@arm.com>
16108
16109 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
16110
16111 2017-05-02 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
16112
16113 * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
16114 function tree_check2.
16115
16116 2017-05-02 Martin Liska <mliska@suse.cz>
16117
16118 * doc/gcov.texi: Add missing preposition.
16119 * gcov.c (function_info::function_info): Properly fill up
16120 all member variables.
16121
16122 2017-05-02 Tamar Christina <tamar.christina@arm.com>
16123
16124 * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
16125
16126 2017-05-02 Tamar Christina <tamar.christina@arm.com>
16127
16128 * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
16129
16130 2017-05-02 Martin Liska <mliska@suse.cz>
16131
16132 PR lto/77954.
16133 * lto-streamer-in.c (lto_read_tree_1): Remove
16134 LTO_STREAMER_DEBUG.
16135 * lto-streamer.c (struct tree_hash_entry): Likewise.
16136 (struct tree_entry_hasher): Likewise.
16137 (tree_entry_hasher::hash): Likewise.
16138 (tree_entry_hasher::equal): Likewise.
16139 (lto_streamer_init): Likewise.
16140 (lto_orig_address_map): Likewise.
16141 (lto_orig_address_get): Likewise.
16142 (lto_orig_address_remove): Likewise.
16143 * lto-streamer.h: Likewise.
16144 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
16145 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
16146
16147 2017-05-02 Sebastian Peryt <sebastian.peryt@intel.com>
16148
16149 * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
16150 (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
16151 (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
16152 (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
16153 (mm_maskz_sub_round_ss, _mm_mask_add_sd)
16154 (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
16155 (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
16156 (mm_maskz_sub_ss): New intrinsics.
16157 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
16158 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
16159 * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
16160 (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
16161 (__builtin_ia32_subss_mask_round): New builtins.
16162 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
16163 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
16164 * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
16165 Renamed to ...
16166 (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
16167 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
16168 Changed to ...
16169 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
16170 ... this.
16171
16172 2017-05-02 Martin Jambor <mjambor@suse.cz>
16173
16174 PR tree-optimization/78687
16175 * tree-sra.c (access): New field parent.
16176 (process_subtree_disqualification): New function.
16177 (disqualify_candidate): Call it.
16178 (build_accesses_from_assign): Reset write flag if creating an
16179 assighnment link.
16180 (build_access_subtree): Fill in parent field and also prpagate
16181 down grp_write flag.
16182 (create_artificial_child_access): New parameter set_grp_write, set
16183 grp_write to its value.
16184 (propagate_subaccesses_across_link): Also propagate grp_write flag
16185 values.
16186 (propagate_all_subaccesses): Push the closest parent back to work
16187 queue if add_access_to_work_queue returned true.
16188
16189 2017-05-02 Richard Biener <rguenther@suse.de>
16190
16191 * common.opt (fstrict-overflow): Alias negative to fwrapv.
16192 * doc/invoke.texi (fstrict-overflow): Remove all traces of
16193 -fstrict-overflow documentation.
16194 * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
16195 (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
16196 flag_strict_overflow.
16197 * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
16198 * lto-opts.c (lto_write_options): Do not stream it.
16199 * lto-wrapper.c (merge_and_complain): Do not handle it.
16200 * opts.c (default_options_table): Do not set -fstrict-overflow.
16201 (finish_options): Likewise do not clear it when sanitizing.
16202 * simplify-rtx.c (simplify_const_relational_operation): Do not
16203 test flag_strict_overflow.
16204
16205 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
16206
16207 * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
16208 using enabled attribute.
16209 (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
16210 (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
16211 (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
16212 (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
16213 (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
16214 (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
16215 (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
16216 (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
16217 (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
16218 (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
16219
16220 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
16221
16222 * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
16223
16224 2017-05-02 Richard Biener <rguenther@suse.de>
16225
16226 PR tree-optimization/80591
16227 Revert
16228 2017-04-10 Richard Biener <rguenther@suse.de>
16229
16230 * tree-ssa-structalias.c (find_func_aliases): Properly handle
16231 asm inputs.
16232
16233 2017-05-02 Richard Biener <rguenther@suse.de>
16234
16235 PR tree-optimization/80549
16236 * tree-cfgcleanup.c (mfb_keep_latches): New helper.
16237 (cleanup_tree_cfg_noloop): Create forwarders to known loop
16238 headers if they do not have a preheader.
16239
16240 2017-05-02 Martin Liska <mliska@suse.cz>
16241
16242 PR other/80589
16243 * common.opt: Fix typo.
16244 * doc/invoke.texi: Likewise.
16245
16246 2017-05-01 Jan Beulich <jbeulich@suse.com>
16247
16248 * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
16249 swapping, add (x,x,m,x,n) alternative.
16250
16251 2017-05-01 Nathan Sidwell <nathan@acm.org>
16252
16253 * calls.c (combine_pending_stack_adjustment_and_call): Remove
16254 unnecessary unadjusted_alignment check.
16255
16256 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
16257
16258 PR c++/80038
16259 * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
16260 operations here.
16261 * gimplify.c (gimplify_cilk_detach): New function.
16262 (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
16263 * tree-core.h: Document EXPR_CILK_SPAWN.
16264 * tree.h (EXPR_CILK_SPAWN): Define.
16265
16266 2017-05-01 David Malcolm <dmalcolm@redhat.com>
16267
16268 * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
16269 to use new fixit_hint representation, using the "replace" logic.
16270 (get_line_span_for_fixit_hint): Likewise.
16271 (layout::print_any_fixits): Likewise.
16272 (selftest::test_one_liner_many_fixits): Rename to...
16273 (selftest::test_one_liner_many_fixits_1): ...this, and update
16274 comment and expected output to reflect that the multiple fix-it
16275 hints are now consolidated into one insertion.
16276 (selftest::test_one_liner_many_fixits_2): New test.
16277 (selftest::test_diagnostic_show_locus_one_liner): Update for
16278 above.
16279 (selftest::test_fixit_consolidation): Update for fix-it API
16280 change.
16281 * diagnostic.c (print_parseable_fixits): Likewise.
16282 * edit-context.c (edited_line::m_line_events): Convert from
16283 auto_vec <line_event *> to auto_vec <line_event>.
16284 (class line_event): Convert from abstract base class to a concrete
16285 class, taking over the role of replace_event.
16286 (class insert_event): Delete.
16287 (class replace_event): Rename to class line_event. Convert to
16288 half-open range.
16289 (edit_context::add_fixits): Reimplement.
16290 (edit_context::apply_insert): Delete.
16291 (edit_context::apply_replace): Rename to...
16292 (edit_context::apply_fixit): ...this. Convert to half-open range.
16293 (edited_file::apply_insert): Delete.
16294 (edited_file::apply_replace): Rename to...
16295 (edited_file::apply_fixit): ...this.
16296 (edited_line::~edited_line): Drop deletion of events.
16297 (edited_line::apply_insert): Delete.
16298 (edited_line::apply_replace): Rename to...
16299 (edited_line::apply_fixit): ...this. Convert to half-open range.
16300 Update for change to type of m_line_events.
16301 * edit-context.h (edit_context::apply_insert): Delete.
16302 (edit_context::apply_replace): Rename to...
16303 (edit_context::apply_fixit): ...this.
16304
16305 2017-05-01 Martin Sebor <msebor@redhat.com>
16306
16307 * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
16308 known.
16309
16310 2017-05-01 Uros Bizjak <ubizjak@gmail.com>
16311
16312 PR target/68491
16313 * config/i386/cpuid.h (__get_cpuid): Always return 0 when
16314 __get_cpuid_max returns 0.
16315 (__get_cpuid_count): Ditto.
16316
16317 2017-05-01 Eric Botcazou <ebotcazou@adacore.com>
16318
16319 * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
16320 replacement expression is another instance of one of its arguments.
16321
16322 2017-05-01 Jakub Jelinek <jakub@redhat.com>
16323
16324 PR target/79430
16325 * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
16326 check for stack push/pop autoinc.
16327 * config/i386/i386.c (ix86_agi_dependent): Return false
16328 if the only reason why modified_in_p returned true is that
16329 addr is SP based and set_insn is a push or pop.
16330
16331 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
16332
16333 * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
16334 overflow check.
16335
16336 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
16337
16338 PR ipa/79224
16339 * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
16340 (account_size_time): Use two predicates - exec_pred and
16341 nonconst_pred_ptr.
16342 (evaluate_conditions_for_known_args): Compute both clause and
16343 nonspec_clause.
16344 (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
16345 (inline_summary_t::duplicate): Update.
16346 (estimate_function_body_sizes): Caluculate exec and nonconst predicates
16347 separately.
16348 (compute_inline_parameters): Likewise.
16349 (estimate_edge_size_and_time): Update caluclation of time.
16350 (estimate_node_size_and_time): Compute both time and nonspecialized
16351 time.
16352 (estimate_ipcp_clone_size_and_time): Update.
16353 (inline_merge_summary): Update.
16354 (do_estimate_edge_time): Update.
16355 (do_estimate_edge_size): Update.
16356 (do_estimate_edge_hints): Update.
16357 (inline_read_section, inline_write_summary): Stream both new predicates.
16358 * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
16359 as argument.
16360 (compute_inlined_call_time): Cleanup.
16361 (big_speedup_p): Update.
16362 (edge_badness): Update.
16363 * ipa-inline.h (INLINE_TIME_SCALE): Remove.
16364 (size_time_entry): Replace predicate by exec_predicate and
16365 nonconst_predicate.
16366 (edge_growth_cache_entry): Cache both time nad nonspecialized time.
16367 (estimate_edge_time): Return also nonspec_time.
16368 (reset_edge_growth_cache): Update.
16369
16370 2017-04-29 Jakub Jelinek <jakub@redhat.com>
16371
16372 PR rtl-optimization/80491
16373 * ifcvt.c (noce_process_if_block): When looking for x setter
16374 with missing else_bb, don't check only the insn right before
16375 cond_earliest, but look for the last insn that x is modified in
16376 within the same bb.
16377
16378 PR rtl-optimization/80491
16379 * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
16380
16381 2017-04-29 Marc Glisse <marc.glisse@inria.fr>
16382
16383 PR tree-optimization/80487
16384 * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
16385
16386 2017-04-29 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16387
16388 PR tree-optimization/79697
16389 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
16390 is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
16391 (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
16392 BUILT_IN_STRNDUP.
16393 * gimple-fold.c (gimple_fold_builtin_realloc): New function.
16394 (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
16395
16396 2017-04-28 Martin Sebor <msebor@redhat.com>
16397
16398 PR tree-optimization/80523
16399 * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
16400 (init_target_to_host_charmap, target_to_host, target_strtol10): New
16401 functions.
16402 (maybe_warn, format_directive, parse_directive): Use new functions.
16403 (pass_sprintf_length::execute): Call init_target_to_host_charmap.
16404
16405 2017-04-28 Marc Glisse <marc.glisse@inria.fr>
16406
16407 * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
16408
16409 2017-04-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
16410
16411 * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
16412 target_header_dir): Set correctly.
16413 * configure: Regenerated.
16414 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
16415 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
16416 instead of SYSTEM_HEADER_DIR.
16417
16418 2017-04-28 Jan Hubicka <hubicka@ucw.cz>
16419
16420 * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
16421 (estimate_local_effects): Likewise.
16422 * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
16423 edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
16424 * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
16425 estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
16426 do_estimate_edge_time, estimate_edge_time): Likewise.
16427 * ipa-inline-analysis.c (estimate_node_size_and_time,
16428 estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
16429 (estimate_time_after_inlining): Remove.
16430
16431 2017-04-28 Martin Liska <mliska@suse.cz>
16432
16433 * doc/gcov.texi: Enhance documentation of gcov.
16434
16435 2017-04-28 Martin Liska <mliska@suse.cz>
16436
16437 * doc/gcov.texi: Sort options in alphabetic order.
16438 * doc/gcov-dump.texi: Likewise.
16439 * doc/gcov-tool.texi: Likewise.
16440 * gcov.c (print_usage): Likewise.
16441 * gcov-dump.c (print_usage): Likewise.
16442 * gcov-tool.c (print_merge_usage_message): Likewise.
16443 (print_rewrite_usage_message): Likewise.
16444 (print_overlap_usage_message): Likewise.
16445
16446 2017-04-28 Martin Liska <mliska@suse.cz>
16447
16448 PR gcov-profile/53915
16449 * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
16450
16451 2017-04-28 Martin Liska <mliska@suse.cz>
16452
16453 PR gcov-profile/79891
16454 * gcov.c (add_line_counts): Assign BBs to lines just if the BB
16455 is marked by compiler as living on a line.
16456 (get_cycles_count): Remove usage of the union.
16457 (output_intermediate_file): Likewise.
16458 (find_source): Fix GNU coding style.
16459 (accumulate_line_counts): Remove old non-all block mode.
16460 (output_lines): Remove usage of the union.
16461 * profile.c (output_location): Include all BBs, even if
16462 belonging to a same line (and file) as a previous BB.
16463
16464 2017-04-28 Martin Liska <mliska@suse.cz>
16465
16466 * gcov.c (process_args): Handle new argument 'w'.
16467 (read_graph_file): Assign ID to BBs.
16468 (output_branch_count): Display BB # if verbose flag is set.
16469 (output_lines): Likewise for arcs.
16470 (print_usage): Add '--verbose' option help.
16471 * doc/gcov.texi: Document --verbose (-w) option.
16472
16473 2017-04-28 Martin Liska <mliska@suse.cz>
16474
16475 * gcov.c (struct block_location_info): New struct.
16476 (process_file): Fill up the new structure.
16477 (read_graph_file): Replace usage of encoding by the newly added
16478 struct.
16479 (add_line_counts): Likewise.
16480 (accumulate_line_counts): Remove usage of the union.
16481 (function_info::function_info): New function.
16482 (function_info::~function_info): Likewise.
16483 (process_file): Call delete instead of release_function.
16484 (release_function): Release the function.
16485 (release_structures): Call delete instead of release_function.
16486 (solve_flow_graph): Replace usage of num_blocks.
16487 (find_exception_blocks): Likewise.
16488 (output_lines): Fix GNU coding style.
16489
16490 2017-04-28 Martin Liska <mliska@suse.cz>
16491
16492 PR driver/56469
16493 * coverage.c (coverage_remove_note_file): New function.
16494 * coverage.h: Declare the function.
16495 * toplev.c (finalize): Clean if an error has been seen.
16496
16497 2017-04-28 Martin Liska <mliska@suse.cz>
16498
16499 PR gcov-profile/80031
16500 * gcov-dump.c (tag_blocks): Just print number of basic blocks.
16501 * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
16502 * gcov.c (read_graph_file): Read just number of blocks.
16503 * profile.c (branch_prob): Do not stream 0 flags per a basic
16504 block.
16505
16506 2017-04-28 Martin Liska <mliska@suse.cz>
16507
16508 * gcov-dump.c (tag_*): Add new argument to declarations.
16509 (dump_gcov_file): Likewise.
16510 (tag_blocks): Add and use new argument depth.
16511 (tag_arcs): Likewise.
16512 (tag_lines): Likewise.
16513 (tag_counters): Likewise.
16514 (tag_summary): Likewise.
16515 (dump_working_sets): Use depth to do a proper indentation.
16516
16517 2017-04-28 Jakub Jelinek <jakub@redhat.com>
16518
16519 PR bootstrap/80531
16520 * cgraph.h (symtab_node::debug_symtab): No longer inline.
16521 * symtab.c (symtab_node::debug_symtab): Move definition here.
16522
16523 2017-04-28 Richard Biener <rguenther@suse.de>
16524
16525 * lto-streamer.h (LTO_major_version): Bump to 7.
16526
16527 2017-04-28 Richard Biener <rguenther@suse.de>
16528
16529 * tree-vrp.c (assert_info): New struct.
16530 (add_assert_info): New helper.
16531 (register_edge_assert_for_2): Refactor to add asserts to a vector
16532 of assert_info.
16533 (register_edge_assert_for_1): Likewise.
16534 (register_edge_assert_for): Likewise.
16535 (finish_register_edge_assert_for): New helper actually registering
16536 asserts where live on edge.
16537 (find_conditional_asserts): Adjust.
16538 (find_switch_asserts): Likewise.
16539 (evrp_dom_walker::try_find_new_range): Generalize.
16540 (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
16541
16542 2017-04-27 Marek Polacek <polacek@redhat.com>
16543
16544 PR sanitizer/80349
16545 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
16546 arg10 and arg11 to itype.
16547
16548 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
16549
16550 * doc/extend.texi (Object Size Checking): Improve grammar.
16551
16552 2017-04-27 Richard Earnshaw <rearnsha@arm.com>
16553
16554 PR target/80530
16555 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
16556 that the logic for permitting reciprocal estimates matches that
16557 in use_rsqrt_p.
16558
16559 2017-04-27 Jakub Jelinek <jakub@redhat.com>
16560
16561 PR c++/80534
16562 * tree.c (type_cache_hasher::equal): Only compare
16563 TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
16564 (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
16565 non-aggregate element types.
16566 * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
16567 about the flag on ARRAY_TYPEs in the comment, formatting fix.
16568
16569 2017-04-27 Richard Biener <rguenther@suse.de>
16570
16571 PR middle-end/80533
16572 * emit-rtl.c (set_mem_attributes_minus_bitpos): When
16573 stripping ARRAY_REFs from MEM_EXPR make sure we're not
16574 keeping a reference to a trailing array.
16575
16576 2017-04-27 Richard Biener <rguenther@suse.de>
16577
16578 PR middle-end/80539
16579 * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
16580 being in loop-closed SSA form conservatively.
16581 (chrec_fold_multiply_poly_poly): Likewise.
16582
16583 2017-04-27 Tamar Christina <tamar.christina@arm.com>
16584
16585 PR middle-end/79665
16586 * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
16587 CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
16588
16589 2017-04-27 Jakub Jelinek <jakub@redhat.com>
16590
16591 PR target/77728
16592 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
16593 (aarch64_function_arg_alignment): Return unsigned int again, but still
16594 ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
16595 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
16596 Don't emit -Wpsabi note.
16597 (aarch64_function_arg_boundary): Likewise.
16598 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
16599 caller.
16600
16601 2017-04-26 Nathan Sidwell <nathan@acm.org>
16602
16603 * tree.h (crc32_unsigned_n): Declare.
16604 (crc32_unsigned, crc32_unsigned): Make inline.
16605 * tree.c (crc32_unsigned_bits): Replace with ...
16606 (crc32_unsigned_n): ... this.
16607 (crc32_unsigned, crc32_byte): Remove.
16608 (crc32_string): Remove unnecessary braces.
16609
16610 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
16611
16612 * ipa-cp.c (estimate_local_effects): Convert sreal to int.
16613 * ipa-inline-analysis.c (MAX_TIME): Remove.
16614 (account_size_time): Use sreal for time.
16615 (dump_inline_summary): Update.
16616 (estimate_function_body_sizes): Update.
16617 (estimate_edge_size_and_time): Update.
16618 (estimate_calls_size_and_time): Update.
16619 (estimate_node_size_and_time): Update.
16620 (inline_merge_summary): Update.
16621 (inline_update_overall_summary): Update.
16622 (estimate_time_after_inlining): Update.
16623 (inline_read_section): Update.
16624 (inline_write_summary): Update.
16625 * ipa-inline.c (compute_uninlined_call_time): Update.
16626 (compute_inlined_call_time): Update.
16627 (recursive_inlining): Update.
16628 (inline_small_functions): Update.
16629 (dump_overall_stats): Update.
16630 * ipa-inline.h: Include sreal.h.
16631 (size_time_entry): Turn time to sreal.
16632 (inline_summary): Turn self_time nad time to sreal.
16633
16634 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
16635
16636 * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
16637 data-streamer.h
16638 (sreal::stream_out, sreal::stream_in): New.
16639 * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
16640
16641 2017-04-25 Jakub Jelinek <jakub@redhat.com>
16642
16643 * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
16644 environment.
16645
16646 2017-04-25 Uros Bizjak <ubizjak@gmail.com>
16647
16648 PR target/70799
16649 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
16650 Handle ASHIFTRT.
16651 (dimode_scalar_chain::compute_convert_gain): Ditto.
16652 (dimode_scalar_chain::make_vector_copies): Ditto.
16653 (dimode_scalar_chain::convert_reg): Ditto.
16654 (dimode_scalar_chain::convert_insn): Ditto.
16655 * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
16656 (VI248_AVX512BW_1): New mode iterator.
16657 (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
16658 <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
16659 mode iterator.
16660
16661 2017-04-25 Martin Sebor <msebor@redhat.com>
16662
16663 PR tree-optimization/80497
16664 * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
16665 constants are representable in HOST_WIDE_INT.
16666 (parse_directive): Ditto.
16667
16668 2017-04-25 Martin Sebor <msebor@redhat.com>
16669
16670 PR bootstrap/80486
16671 * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
16672 (new_zero_array): Adjust signature.
16673 (dom_info::dom_init): Used unsigned rather that size_t.
16674 (dom_info::dom_info): Same.
16675
16676 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16677 Jakub Jelinek <jakub@redhat.com>
16678
16679 PR target/77728
16680 * config/arm/arm.c: Include gimple.h.
16681 (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
16682 returns negative, increment ncrn only if it returned positive.
16683 (arm_needs_doubleword_align): Return int instead of bool,
16684 ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
16685 members, but if there is any such non-FIELD_DECL
16686 > PARM_BOUNDARY aligned decl, return -1 instead of false.
16687 (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
16688 returns negative, increment nregs only if it returned positive.
16689 (arm_setup_incoming_varargs): Likewise.
16690 (arm_function_arg_boundary): Emit -Wpsabi note if
16691 arm_needs_doubleword_align returns negative, return
16692 DOUBLEWORD_ALIGNMENT only if it returned positive.
16693
16694 2017-04-25 Marek Polacek <polacek@redhat.com>
16695
16696 PR sanitizer/80349
16697 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
16698 first argument to type.
16699
16700 2017-04-25 Bill Seurer <seurer@linux.vnet.ibm.com>
16701
16702 PR target/80482
16703 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
16704 type checks to test for compatibility instead of equality.
16705
16706 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16707 Jakub Jelinek <jakub@redhat.com>
16708
16709 PR target/77728
16710 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
16711 type.
16712 (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
16713 struct. Ignore DECL_ALIGN of decls other than FIELD_DECL for
16714 the alignment computation, but return their maximum in warn_alignment.
16715 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
16716 Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
16717 is smaller.
16718 (aarch64_function_arg_boundary): Likewise. Simplify using MIN/MAX.
16719 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
16720 caller.
16721
16722 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
16723
16724 * config/arc/simdext.md (dmpyh): Fix typo.
16725
16726 2017-04-25 Richard Biener <rguenther@suse.de>
16727
16728 PR tree-optimization/80492
16729 * alias.c (compare_base_decls): Handle registers with asm
16730 specification conservatively.
16731 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
16732 compare_base_decls returning dont-know properly.
16733
16734 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
16735
16736 * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
16737 (legitimate_offset_address_p): New function.
16738 (arc_legitimate_address_p): Use above function.
16739
16740 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
16741
16742 * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
16743
16744 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
16745
16746 * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
16747 ACCH registers whenever they are available.
16748
16749 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
16750
16751 * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
16752 double regs fix when not used.
16753
16754 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
16755
16756 * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
16757 core registers.
16758 (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
16759 (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
16760
16761 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
16762
16763 * config/arc/arc.c (arc_output_addsi): Check for h-register class
16764 when emitting short ADD instructions.
16765
16766 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
16767
16768 * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
16769 constraint.
16770 (cmpsi_cc_c_insn): Likewise.
16771 (cbranchsi4_scratch): Compute proper instruction length using
16772 compact_hreg_operand.
16773 * config/arc/predicates.md (compact_hreg_operand): New predicate.
16774
16775 2017-04-25 Richard Biener <rguenther@suse.de>
16776
16777 PR middle-end/80509
16778 * passes.c (pass_manager::pass_manager): Initialize
16779 m_name_to_pass_map.
16780
16781 2017-04-25 Richard Biener <rguenther@suse.de>
16782
16783 PR tree-optimization/79201
16784 * tree-ssa-sink.c (statement_sink_location): Handle calls.
16785
16786 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16787
16788 PR target/80464
16789 * config/s390/vector.md: Split MEM->GPR vector moves for
16790 non-s_operand addresses.
16791
16792 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16793
16794 PR target/79895
16795 * config/s390/predicates.md (reload_const_wide_int_operand): New
16796 predicate.
16797 * config/s390/s390.md ("movti"): Remove d/P alternative.
16798 ("movti_bigconst"): New pattern definition.
16799
16800 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
16801
16802 PR target/80080
16803 * s390-protos.h (s390_expand_cs_hqi): Removed.
16804 (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
16805 * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
16806 modes as well as CCZ1mode and CCZmode.
16807 (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
16808 signature of s390_emit_compare_and_swap.
16809 (s390_expand_cs_hqi): Likewise, make static.
16810 (s390_expand_cs_tdsi): Generate an explicit compare before trying
16811 compare-and-swap, in some cases.
16812 (s390_expand_cs): Wrapper function.
16813 (s390_expand_atomic_exchange_tdsi): New backend specific expander for
16814 atomic_exchange.
16815 (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
16816 * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
16817 patterns for small and large integers. Forbid symref memory operands.
16818 Move expander to s390.c. Require cc register.
16819 ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
16820 ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
16821 ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
16822 ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
16823 symref memory operands. Remove CC mode and call s390_match_ccmode
16824 instead.
16825 ("atomic_exchange<mode>"): Allow and implement all integer modes.
16826
16827 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
16828
16829 * config/s390/s390.md (define_peephole2): New peephole to help
16830 combining the load-and-test pattern with volatile memory.
16831
16832 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
16833
16834 * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
16835 with CCZmode for TARGET_Z196.
16836
16837 2017-04-25 Jakub Jelinek <jakub@redhat.com>
16838
16839 PR rtl-optimization/80501
16840 * combine.c (make_compound_operation_int): Set subreg_code to SET
16841 even for AND with mask of the sign bit of mode.
16842
16843 PR rtl-optimization/80500
16844 * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
16845 sum's initial value.
16846
16847 2017-04-25 Julian Brown <julian@codesourcery.com>
16848 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
16849
16850 * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
16851
16852 2017-04-25 Marc Glisse <marc.glisse@inria.fr>
16853
16854 * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
16855
16856 2017-04-25 Julian Brown <julian@codesourcery.com>
16857 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
16858
16859 * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
16860 (thunderx2t99_sha): New Reservation.
16861
16862 2017-04-25 Julian Brown <julian@codesourcery.com>
16863 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
16864
16865 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
16866 type for 1-element load.
16867
16868 2017-04-24 Marc Glisse <marc.glisse@inria.fr>
16869
16870 * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
16871
16872 2017-04-24 Martin Jambor <mjambor@suse.cz>
16873
16874 PR tree-optimization/80293
16875 * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
16876 char arrays not totally scalarizable if it is false.
16877 (analyze_all_variable_accesses): Pass correct value in the new
16878 parameter. Add a statistics counter.
16879
16880 2017-04-24 Jan Hubicka <hubicka@ucw.cz>
16881
16882 PR middle-end/79931
16883 * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
16884
16885 2017-04-24 Richard Biener <rguenther@suse.de>
16886
16887 PR tree-optimization/80494
16888 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
16889 out for complex types.
16890
16891 2017-04-24 Richard Biener <rguenther@suse.de>
16892
16893 * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
16894 * tree-ssa-sccvn.c (print_scc): Print SCC size.
16895 (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
16896 (DFS): Adjust and never fail.
16897 (sccvn_dom_walker::fail): Remove.
16898 (sccvn_dom_walker::before_dom_children): Adjust.
16899 (run_scc_vn): Likewise and never fail.
16900 * tree-ssa-pre.c (pass_pre::execute): Adjust.
16901 (pass_fre::execute): Likewise.
16902
16903 2017-04-24 Richard Biener <rguenther@suse.de>
16904
16905 PR tree-optimization/79725
16906 * tree-ssa-sink.c (statement_sink_location): Return whether
16907 failure reason was zero uses. Move that check later.
16908 (sink_code_in_bb): Deal with zero uses by removing the stmt
16909 if possible.
16910
16911 2017-04-24 Richard Biener <rguenther@suse.de>
16912
16913 PR c++/2972
16914 * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
16915 pointer-based references.
16916
16917 2017-04-24 Richard Biener <rguenther@suse.de>
16918
16919 PR bootstrap/79814
16920 * pass_manager.h (pass_manager::operator new): Remove.
16921 (pass_manager::operator delete): Likewise.
16922 * passes.c (pass_manager::operator new): Remove.
16923 (pass_manager::operator delete): Likewise.
16924 (pass_manager::pass_manager): Zero individual pass members.
16925
16926 2017-04-23 Uros Bizjak <ubizjak@gmail.com>
16927
16928 PR target/70799
16929 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
16930 <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
16931 Check "XEXP (src, 1)" operand here.
16932 <case PLUS, case MINUS, case IOR, case XOR, case AND>:
16933 Check "XEXP (src, 1)" operand here.
16934 (dimode_scalar_chain::make_vector_copies): Detect count register
16935 of a shift instruction. Zero extend count register from QImode
16936 to DImode to satisfy vector shift pattern count operand predicate.
16937 Substitute vector shift count operand with a DImode copy.
16938 (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
16939 vector register.
16940
16941 2017-04-21 Uros Bizjak <ubizjak@gmail.com>
16942
16943 * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
16944 Remove UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
16945 (*insvqi_1_mem_rex64): Move above insv<mode>_1. Remove
16946 UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
16947 (UNSPEC_NOREX_MEM): Remove definition.
16948
16949 2017-04-21 Richard Biener <rguenther@suse.de>
16950
16951 PR tree-optimization/79547
16952 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16953 Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
16954 bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
16955 without any constraints.
16956
16957 2017-04-21 Richard Biener <rguenther@suse.de>
16958
16959 PR tree-optimization/78847
16960 * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
16961
16962 2017-04-21 Richard Biener <rguenther@suse.de>
16963
16964 * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
16965 (build_distinct_type_copy): Likewise.
16966 (build_variant_type_copy): Likewise.
16967 * tree.c (build_qualified_type): Pass down mem-stat info.
16968 (build_distinct_type_copy): Likewise.
16969 (build_variant_type_copy): Likewise.
16970
16971 2017-04-21 Richard Biener <rguenther@suse.de>
16972
16973 PR tree-optimization/80237
16974 * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
16975 defaulted to NULL.
16976 (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
16977 for a simplified result.
16978
16979 2016-04-21 Richard Biener <rguenther@suse.de>
16980
16981 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
16982 sth as strict as a simple_iv but a chrec without symbols and an
16983 operand defined in the loop we are peeling (and not some subloop).
16984 (propagate_constants_for_unrolling): Propagate all constants.
16985
16986 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
16987
16988 PR target/79804
16989 * config/i386/i386.c (print_reg): Remove assert for disalowed
16990 regno values, call output_operand_lossage instead.
16991
16992 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
16993
16994 PR target/78090
16995 * config/i386/constraints.md (Yc): New register constraint.
16996 * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
16997 Use Yc constraint for alternative 2 of operand 0. Remove
16998 preferred_for_speed attribute.
16999
17000 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
17001
17002 * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
17003 lastprivate clauses in SIMT case.
17004
17005 2017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
17006
17007 * doc/invoke.texi (-Wextra-semi): Document new warning option.
17008
17009 2017-04-20 Richard Biener <rguenther@suse.de>
17010
17011 PR tree-optimization/57796
17012 * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
17013 as N scalar stores.
17014 (vect_model_load_cost): Cost gathers as N scalar loads.
17015
17016 2017-04-20 Richard Biener <rguenther@suse.de>
17017
17018 * ggc-page.c (ggc_allocated_p): Rename to ...
17019 (safe_lookup_page_table_entry): ... this and return the lookup
17020 result.
17021 (gt_ggc_m_S): Use safe_lookup_page_table_entry.
17022
17023 2017-04-20 Richard Biener <rguenther@suse.de>
17024
17025 PR tree-optimization/80453
17026 * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
17027 * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
17028 from the conditions.
17029 (vn_phi_eq): Pass them down.
17030 (vn_phi_lookup): Record them.
17031 (vn_phi_insert): Likewise.
17032
17033 2017-04-20 Matthew Fortune <matthew.fortune@imgtec.com>
17034
17035 * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
17036 uninitialized variable warning to avoid buffer overrun.
17037
17038 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
17039
17040 PR other/71250
17041 * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
17042 is suppressed for '{ 0 }' in C.
17043
17044 2017-04-20 Jakub Jelinek <jakub@redhat.com>
17045
17046 * BASE-VER: Set to 8.0.0.
17047
17048 2017-04-20 Thomas Preud'homme <thomas.preudhomme@arm.com>
17049
17050 * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
17051 priority .init_array and .fini_array section with SECTION_NOTYPE
17052 flag.
17053
17054 2017-04-20 Jakub Jelinek <jakub@redhat.com>
17055
17056 PR middle-end/80423
17057 * tree.h (build_array_type): Add typeless_storage default argument.
17058 * tree.c (type_cache_hasher::equal): Also compare
17059 TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
17060 (build_array_type): Add typeless_storage argument, set
17061 TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
17062 recursive call.
17063 (build_nonshared_array_type): Adjust build_array_type_1 caller.
17064 (build_array_type): Likewise. Add typeless_storage argument.
17065
17066 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
17067 Jakub Jelinek <jakub@redhat.com>
17068
17069 PR tree-optimization/80426
17070 * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
17071 operation on symbolic operands, also compute the overflow for the
17072 invariant part when the operation degenerates into a negation.
17073
17074 2017-04-19 Jakub Jelinek <jakub@redhat.com>
17075
17076 PR debug/80461
17077 * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
17078 Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
17079
17080 PR debug/80436
17081 * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
17082
17083 2017-04-19 Georg-Johann Lay <avr@gjlay.de>
17084
17085 PR target/80462
17086 * config/avr/avr.c (tree.h): Include it.
17087 (cgraph.h): Include it.
17088 (avr_encode_section_info): Don't warn for uninitialized progmem
17089 variable if it's just an alias.
17090
17091 2017-04-19 Richard Biener <rguenther@suse.de>
17092
17093 PR ipa/65972
17094 * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
17095 when needed by AutoPGO.
17096
17097 2017-04-19 Paulo J. Matos <paulo@matos-sorge.com>
17098
17099 PR lto/50345
17100 * doc/lto.texi: Remove an extra 'that'.
17101
17102 2017-04-19 Segher Boessenkool <segher@kernel.crashing.org>
17103
17104 PR rtl-optimization/80429
17105 * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
17106 are only used in debug insns.
17107
17108 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
17109 Vladimir Makarov <vmakarov@redhat.com>
17110
17111 * config/sparc/predicates.md (input_operand): Add comment. Return
17112 true for any memory operand when LRA is in progress.
17113 * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
17114
17115 2017-04-18 Jeff Law <law@redhat.com>
17116
17117 PR target/74563
17118 * mips.md ({return,simple_return}_internal): Do not overwrite
17119 operands[0].
17120
17121 2017-04-18 Jakub Jelinek <jakub@redhat.com>
17122
17123 PR tree-optimization/80443
17124 * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
17125 instead of adding 1, subtract -1 and similarly instead of subtracting
17126 1 add -1.
17127
17128 2017-04-18 Richard Sandiford <richard.sandiford@arm.com>
17129
17130 PR rtl-optimization/80357
17131 * haifa-sched.c (tmp_bitmap): New variable.
17132 (model_recompute): Handle duplicate use records.
17133 (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
17134 (free_global_sched_pressure_data): Free it.
17135
17136 2017-04-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
17137
17138 Revert:
17139 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
17140 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
17141 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
17142 instead of SYSTEM_HEADER_DIR.
17143
17144 2017-04-18 Jeff Law <law@redhat.com>
17145
17146 PR middle-end/80422
17147 * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
17148 predecessors after walking up the insn chain.
17149
17150 2017-04-18 Jakub Jelinek <jakub@redhat.com>
17151
17152 PR debug/80263
17153 * dwarf2out.c (modified_type_die): Try harder not to emit internal
17154 sizetype type into debug info.
17155
17156 2017-04-18 Michael Meissner <meissner@linux.vnet.ibm.com>
17157
17158 PR target/80099
17159 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
17160 unneeded test for TARGET_UPPER_REGS_SF.
17161 * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
17162
17163 2017-04-18 Jakub Jelinek <jakub@redhat.com>
17164
17165 PR sanitizer/80444
17166 * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
17167 instead of gsi_after_labels.
17168
17169 2017-04-18 Jeff Law <law@redhat.com>
17170
17171 * regcprop.c (maybe_mode_change): Avoid creating copies of the
17172 stack pointer.
17173
17174 Revert:
17175 2017-04-13 Jeff Law <law@redhat.com>
17176 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
17177 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
17178
17179 2017-04-18 Georg-Johann Lay <avr@gjlay.de>
17180
17181 PR target/79453
17182 * config/avr/avr.c (intl.h): Include it.
17183 (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
17184
17185 2017-04-18 Martin Liska <mliska@suse.cz>
17186
17187 PR gcov-profile/78783
17188 * gcov-tool.c (gcov_output_files): Validate that destination
17189 file is either removed by the tool or by a user.
17190
17191 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
17192 Guy Benyei <guybe@mellanox.com>
17193
17194 * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
17195 block, and do not negate it, the stored id is already negative.
17196
17197 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
17198
17199 * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
17200
17201 2017-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
17202
17203 PR target/80098
17204 * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
17205 masks of options that should be turned off if the VSX vector
17206 options are turned off.
17207 (OTHER_P8_VECTOR_MASKS): Likewise.
17208 (OTHER_VSX_VECTOR_MASKS): Likewise.
17209 * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
17210 rs6000_disable_incompatible_switches to validate no type switches
17211 like -mvsx.
17212 (rs6000_incompatible_switch): New function to disallow turning on
17213 other vector options if -mno-vsx, -mno-power8-vector, or
17214 -mno-power9-vector are specified.
17215
17216 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
17217
17218 * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
17219
17220 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
17221
17222 * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
17223 * config/arc/arc.c (arc_decl_pretend_args): Likewise.
17224 * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
17225 (ARG_POINTER_CFA_OFFSET): Likewise.
17226
17227 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
17228
17229 * config/arc/arc.c (arc_mode_dependent_address_p): Relax
17230 conditions to take advantage of various optimizations.
17231
17232 2017-04-13 Jeff Law <law@redhat.com>
17233
17234 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
17235 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
17236 (zero_extendsidi2_dext): Likewise.
17237
17238 2017-04-13 Jakub Jelinek <jakub@redhat.com>
17239
17240 PR sanitizer/80403
17241 * fold-const.c (fold_ternary_loc): Revert
17242 use op0 instead of fold_convert_loc (loc, type, arg0) part of
17243 2017-04-12 change.
17244
17245 2017-04-13 Vladimir Makarov <vmakarov@redhat.com>
17246
17247 PR rtl-optimization/80343
17248 * lra-remat.c (update_scratch_ops): Assign original hard reg to
17249 new scratch pseudo.
17250
17251 2017-04-13 Denis Khalikov <d.khalikov@partner.samsung.com>
17252
17253 PR sanitizer/80414
17254 * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
17255 to ubsan_encode_value.
17256
17257 2017-04-13 Jeff Law <law@redhat.com>
17258
17259 * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
17260 appearing in DEBUG_INSNs.
17261
17262 2017-04-13 Martin Liska <mliska@suse.cz>
17263
17264 PR gcov-profile/80413
17265 * gcov-io.c (gcov_write_string): Copy to buffer just when
17266 allocated size is greater than zero.
17267
17268 2017-04-13 Jakub Jelinek <jakub@redhat.com>
17269
17270 PR debug/80321
17271 * dwarf2out.c (decls_for_scope): Ignore declarations of
17272 current_function_decl in BLOCK_NONLOCALIZED_VARS.
17273
17274 2017-04-12 Jan Hubicka <hubicka@ucw.cz>
17275
17276 PR lto/69953
17277 * ipa-visibility.c (non_local_p): Fix typos.
17278 (localize_node): When localizing symbol in same comdat group,
17279 dissolve the group only when we know external symbols are going
17280 to be privatized.
17281 (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
17282
17283 2017-04-12 Jakub Jelinek <jakub@redhat.com>
17284
17285 PR tree-optimization/79390
17286 * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
17287 order does not result in usable sequence, retry with reversed operand
17288 order.
17289
17290 PR sanitizer/80403
17291 PR sanitizer/80404
17292 PR sanitizer/80405
17293 * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
17294 to fold_build2_loc. Convert TREE_OPERAND (tem, 0) to type. Use
17295 op0 instead of fold_convert_loc (loc, type, arg0).
17296
17297 2017-04-12 Jeff Law <law@redhat.com>
17298
17299 * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
17300 has a delay slot in the generated code.
17301
17302 * config/cris/cris.md (cris_preferred_reload_class): Return
17303 GENNONACR_REGS rather than GENERAL_REGS.
17304
17305 2017-04-12 Jakub Jelinek <jakub@redhat.com>
17306
17307 PR c/80163
17308 * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
17309 vs. ZERO_EXTEND based on signedness of treeop0's type rather than
17310 signedness of the result type.
17311
17312 2017-04-12 Richard Biener <rguenther@suse.de>
17313 Jeff Law <law@redhat.com>
17314
17315 PR tree-optimization/80359
17316 * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
17317 trim stores to TARGET_MEM_REFs.
17318
17319 2017-04-12 Richard Biener <rguenther@suse.de>
17320
17321 PR tree-optimization/79390
17322 * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
17323 threading case even more.
17324
17325 2017-04-12 Segher Boessenkool <segher@kernel.crashing.org>
17326
17327 PR target/80382
17328 * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
17329 for quad_address_p for TImode, instead of just not indexed_address.
17330
17331 2017-04-12 Richard Biener <rguenther@suse.de>
17332 Bernd Edlinger <bernd.edlinger@hotmail.de>
17333
17334 PR middle-end/79671
17335 * alias.c (component_uses_parent_alias_set_from): Handle
17336 TYPE_TYPELESS_STORAGE.
17337 (get_alias_set): Likewise.
17338 * tree-core.h (tree_type_common): Add typeless_storage flag.
17339 * tree.h (TYPE_TYPELESS_STORAGE): New macro.
17340 * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
17341 for types containing members with TYPE_TYPELESS_STORAGE.
17342 (place_field): Likewise.
17343 (layout_type): Likewise for ARRAY_TYPE.
17344 * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
17345 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
17346 TYPE_TYPELESS_STORAGE.
17347 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
17348
17349 2017-04-12 Jakub Jelinek <jakub@redhat.com>
17350
17351 PR sanitizer/80349
17352 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
17353 first argument to type.
17354
17355 2017-04-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17356
17357 PR target/80376
17358 PR target/80315
17359 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
17360 CONST0_RTX (mode) rather than const0_rtx where appropriate.
17361 (rs6000_expand_binop_builtin): Likewise.
17362 (rs6000_expand_ternop_builtin): Likewise; also add missing
17363 vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
17364 vshasigma built-ins.
17365 * doc/extend.texi: Document that vec_xxpermdi's third argument
17366 must be a constant.
17367
17368 2017-04-11 Uros Bizjak <ubizjak@gmail.com>
17369
17370 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
17371 Use shift_const cost parameter when calculating gain of STV shifts.
17372
17373 2017-04-11 Vladimir Makarov <vmakarov@redhat.com>
17374
17375 PR rtl-optimization/70478
17376 * lra-constraints.c (process_alt_operands): Check memory for
17377 disfavoring memory insn operand.
17378
17379 2017-04-11 Jakub Jelinek <jakub@redhat.com>
17380
17381 PR middle-end/80100
17382 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
17383 left shift in unsigned HOST_WIDE_INT type.
17384
17385 PR rtl-optimization/80385
17386 * simplify-rtx.c (simplify_unary_operation_1): Don't transform
17387 (not (neg X)) into (plus X -1) for complex or non-integral modes.
17388
17389 PR libgomp/80394
17390 * omp-low.c (scan_omp_task): Don't optimize away empty tasks
17391 if they have any depend clauses.
17392
17393 2017-04-11 Martin Liska <mliska@suse.cz>
17394
17395 PR ipa/80212
17396 * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
17397 * ipa-split.c (split_function): Create a local comdat symbol
17398 if caller is in a comdat group.
17399
17400 2017-04-11 Martin Liska <mliska@suse.cz>
17401
17402 PR ipa/80212
17403 * ipa-cp.c (determine_versionability): Handle calls_comdat_local
17404 flags.
17405
17406 2017-04-11 Martin Sebor <msebor@redhat.com>
17407
17408 PR middle-end/80364
17409 * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
17410 always use the int type. Use INTEGRAL_TYPE_P() rather than testing
17411 for INTEGER_TYPE.
17412 (directive::set_width, directive::set_precision, format_character):
17413 Adjust.
17414 (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
17415 INTEGER_TYPE.
17416
17417 2017-04-11 Richard Earnshaw <rearnsha@arm.com>
17418
17419 PR target/80389
17420 * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
17421 conflict, set target->arch_name instead of target->cpu_name.
17422
17423 2017-04-11 Richard Biener <rguenther@suse.de>
17424
17425 PR tree-optimization/80374
17426 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
17427 build_zero_cst, remove fold_convertible_p check again.
17428
17429 2017-04-11 Martin Liska <mliska@suse.cz>
17430
17431 PR sanitizer/70878
17432 * ubsan.c (instrument_object_size): Do not instrument register
17433 variables.
17434
17435 2017-04-11 Jakub Jelinek <jakub@redhat.com>
17436
17437 PR target/80381
17438 * config/i386/i386-builtin-types.def
17439 (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
17440 V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
17441 V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
17442 V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
17443 V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
17444 V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
17445 V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
17446 V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
17447 V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
17448 V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
17449 V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
17450 V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
17451 V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
17452 V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
17453 V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
17454 V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
17455 V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
17456 V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
17457 * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
17458 __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
17459 __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
17460 __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
17461 __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
17462 __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
17463 __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
17464 __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
17465 __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
17466 __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
17467 __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
17468 __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
17469 __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
17470 __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
17471 __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
17472 __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
17473 __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
17474 __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
17475 __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
17476 __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
17477 __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
17478 __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
17479 __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
17480 __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
17481 __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
17482 __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
17483 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
17484 __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
17485 aliases.
17486 * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
17487 flag to second_arg_count, handle 4 argument function type _COUNT
17488 aliases, handle second_arg_count on second argument rather than last.
17489
17490 2017-04-10 Jeff Law <law@redhat.com>
17491
17492 PR tree-optimization/80374
17493 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
17494 record anything if we can not convert integer_zero_node to the
17495 desired type.
17496
17497 2017-04-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
17498
17499 PR target/80108
17500 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17501 Enhance special handling given to the TARGET_P9_MINMAX option in
17502 relation to certain other options.
17503
17504 2017-04-10 Bin Cheng <bin.cheng@arm.com>
17505
17506 PR tree-optimization/80153
17507 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
17508 remove POINTER_PLUS_EXPR's base part directly, rather than through
17509 aff_tree.
17510
17511 2017-04-10 Richard Biener <rguenther@suse.de>
17512 Bin Cheng <bin.cheng@arm.com>
17513
17514 PR tree-optimization/80153
17515 * tree-affine.c (aff_combination_to_tree): Get base pointer from
17516 the first element of pointer type aff_tree. Build result expr in
17517 aff_tree's type.
17518 (add_elt_to_tree): Convert to type unconditionally. Remove other
17519 fold_convert calls.
17520 * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
17521 (rewrite_use_nonlinear_expr): Check invariant using iv information.
17522
17523 2017-04-10 Richard Biener <rguenther@suse.de>
17524
17525 * tree-ssa-structalias.c (find_func_aliases): Properly handle
17526 asm inputs.
17527
17528 2017-04-10 Vladimir Makarov <vmakarov@redhat.com>
17529
17530 PR rtl-optimization/70478
17531 * lra-constraints.c (curr_small_class_check): New.
17532 (update_and_check_small_class_inputs): New.
17533 (process_alt_operands): Update curr_small_class_check. Disfavor
17534 alternative insn memory operands. Check available regs for small
17535 class operands.
17536
17537 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
17538
17539 PR target/80057
17540 * config/mips/mips.opt (-mvirt): Update description.
17541 * doc/invoke.texi (-mvirt): Likewise.
17542
17543 2017-04-10 Richard Biener <rguenther@suse.de>
17544
17545 PR middle-end/80362
17546 * fold-const.c (fold_binary_loc): Look at unstripped ops when
17547 looking for NEGATE_EXPR in -A / -B to A / B folding.
17548
17549 2017-04-10 Martin Liska <mliska@suse.cz>
17550
17551 PR gcov-profile/80224
17552 * gcov.c (print_usage): Fix usage string.
17553 (get_gcov_intermediate_filename): Remove.
17554 (output_gcov_file): Use both for normal and intermediate format.
17555 (generate_results): Do not initialize special file for
17556 intermediate format.
17557
17558 2017-04-10 Richard Biener <rguenther@suse.de>
17559
17560 PR tree-optimization/80304
17561 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
17562 for safelen.
17563
17564 2017-04-10 Nathan Sidwell <nathan@acm.org>
17565
17566 PR target/79905
17567 * config/rs6000/rs6000.c (rs6000_vector_type): New.
17568 (rs6000_init_builtins): Use it.
17569
17570 2016-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17571
17572 * config/arm/arm.md (<mrc>): Add mode to SET source.
17573 (<mrrc>): Likewise.
17574
17575 2017-04-10 Richard Biener <rguenther@suse.de>
17576
17577 PR middle-end/80344
17578 * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
17579
17580 2017-04-10 Jakub Jelinek <jakub@redhat.com>
17581
17582 PR target/80324
17583 * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
17584 _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
17585 _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
17586 _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
17587 _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
17588 _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
17589 _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
17590 _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
17591 _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
17592 _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
17593 _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
17594 _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
17595 _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
17596 _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
17597 _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
17598 _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
17599 _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
17600 _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
17601 _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
17602 _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
17603 _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
17604 _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
17605 _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
17606
17607 2017-04-08 Vladimir Makarov <vmakarov@redhat.com>
17608
17609 PR rtl-optimization/70478
17610 * lra-constraints.c: Reverse the last patch.
17611
17612 2017-04-08 Andreas Tobler <andreast@gcc.gnu.org>
17613
17614 * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
17615 Add comment for WCHAR_T.
17616
17617 2017-04-08 Martin Liska <mliska@suse.cz>
17618
17619 Revert:
17620 2017-04-07 Martin Liska <mliska@suse.cz>
17621
17622 PR ipa/80212
17623 * ipa-split.c (split_function): Add function part to a same comdat
17624 group.
17625
17626 2017-04-08 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
17627
17628 PR target/80358
17629 * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
17630
17631 2017-04-07 Pat Haugen <pthaugen@us.ibm.com>
17632
17633 * rs6000/rs6000.c (vec_load_pendulum): Rename...
17634 (vec_pairing): ...to this.
17635 (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
17636 (rs6000_sched_init): Adjust for name change.
17637 (struct rs6000_sched_context): Likewise.
17638 (rs6000_init_sched_context): Likewise.
17639 (rs6000_set_sched_context): Likewise.
17640
17641 2017-04-07 Jakub Jelinek <jakub@redhat.com>
17642
17643 PR target/80322
17644 PR target/80323
17645 PR target/80325
17646 PR target/80326
17647 * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
17648 intrinsics.
17649 * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
17650 _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
17651 _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
17652
17653 2017-04-07 Andreas Tobler <andreast@gcc.gnu.org>
17654
17655 * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
17656
17657 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
17658
17659 PR rtl-optimization/70703
17660 * ira-color.c (update_conflict_hard_regno_costs): Use
17661 int64_t instead of HOST_WIDE_INT.
17662
17663 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
17664
17665 PR rtl-optimization/70478
17666 * lra-constraints.c (process_alt_operands): Disfavor alternative
17667 insn memory operands.
17668
17669 2017-04-07 Jeff Law <law@redhat.com>
17670
17671 * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
17672 CALL and NOTE_INSN_CALL_ARG_LOCATION.
17673
17674 2017-04-07 Martin Liska <mliska@suse.cz>
17675
17676 PR target/79889
17677 * config/aarch64/aarch64.c (aarch64_process_target_attr):
17678 Show error message instead of an ICE.
17679
17680 2017-04-07 Martin Liska <mliska@suse.cz>
17681
17682 PR ipa/80212
17683 * ipa-split.c (split_function): Add function part to a same comdat
17684 group.
17685
17686 2017-04-07 Richard Biener <rguenther@suse.de>
17687
17688 PR middle-end/80341
17689 * tree.c (get_unwidened): Also handle ! for_type case for
17690 INTEGER_CSTs.
17691 * convert.c (do_narrow): Split out from ...
17692 (convert_to_integer_1): ... here. Do not pass final truncation
17693 type to get_unwidened for TRUNC_DIV_EXPR.
17694
17695 2017-04-07 Richard Biener <rguenther@suse.de>
17696
17697 * tree-affine.c (wide_int_ext_for_comb): Take type rather
17698 than aff_tree.
17699 (aff_combination_const): Adjust.
17700 (aff_combination_scale): Likewise.
17701 (aff_combination_add_elt): Likewise.
17702 (aff_combination_add_cst): Likewise.
17703 (aff_combination_convert): Likewise.
17704 (add_elt_to_tree): Likewise. Remove unused argument.
17705 (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
17706
17707 2017-04-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
17708
17709 * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
17710 definition.
17711 * config/arm/arm.c (arm_default_short_enums): Use
17712 ARM_DEFAULT_SHORT_ENUMS.
17713 * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
17714
17715 2017-04-06 Jakub Jelinek <jakub@redhat.com>
17716
17717 PR debug/80234
17718 * dwarf2out.c (gen_member_die): Handle C++17 inline static data
17719 members with redundant out-of-class redeclaration.
17720
17721 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
17722
17723 PR target/80286
17724 * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
17725 * config/i386/i386.md (*zero_extendsidi2):
17726 Add (?*x,*x) and (?*v,*v) alternatives.
17727
17728 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
17729
17730 PR target/79733
17731 * config/i386/i386.c (ix86_expand_builtin)
17732 <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
17733 mode from insn data. Convert operands to insn operand mode.
17734 Copy operands that don't satisfy insn predicate to a register.
17735
17736 2017-04-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
17737
17738 * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
17739 Update comments.
17740
17741 2017-04-06 Richard Biener <rguenther@suse.de>
17742
17743 PR tree-optimization/80334
17744 * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
17745 preserve alignment of accesses.
17746
17747 2017-04-06 Richard Biener <rguenther@suse.de>
17748
17749 PR tree-optimization/80262
17750 * tree-sra.c (build_ref_for_offset): Preserve address-space
17751 information.
17752 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17753 Drop useless address-space information on MEM_REF offsets.
17754
17755 2017-04-05 Andreas Schwab <schwab@linux-m68k.org>
17756
17757 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
17758
17759 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
17760
17761 PR rtl-optimization/70703
17762 * ira-color.c (update_conflict_hard_regno_costs): Use
17763 HOST_WIDE_INT instead of long.
17764
17765 2017-04-05 Uros Bizjak <ubizjak@gmail.com>
17766
17767 PR target/80298
17768 * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
17769 not defined for x86_64 target. Add -mmmx target option when __SSE2__
17770 is not defined.
17771 * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
17772 for x86_64 target. Handle -m3dnowa option.
17773
17774 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
17775
17776 PR rtl-optimization/70703
17777 * ira-color.c (update_costs_from_allocno): Use the smallest mode.
17778 (update_conflict_hard_regno_costs): Use long instead of unsigned
17779 arithmetic for cost calculation.
17780
17781 2017-04-05 Jakub Jelinek <jakub@redhat.com>
17782 Bernd Edlinger <bernd.edlinger@hotmail.de>
17783
17784 PR sanitizer/80308
17785 * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
17786 for big endian.
17787
17788 2017-04-05 Eric Botcazou <ebotcazou@adacore.com>
17789
17790 PR target/78002
17791 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
17792 ptr_mode with Pmode throughout.
17793 * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
17794 into probe_stack_range and use DImode.
17795
17796 2017-04-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
17797
17798 PR target/79890
17799 * config/s390/s390.c (s390_register_info_gprtofpr): Return if
17800 call_eh_return is true.
17801
17802 2017-04-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17803
17804 * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
17805 Initialize last_match_fntype_index.
17806
17807 2017-04-05 Jakub Jelinek <jakub@redhat.com>
17808
17809 PR target/80310
17810 * tree-nvr.c: Include internal-fn.h.
17811 (pass_return_slot::execute): Ignore internal calls without
17812 direct optab.
17813
17814 2017-04-04 Jakub Jelinek <jakub@redhat.com>
17815 Richard Biener <rguenther@suse.de>
17816
17817 PR c++/80297
17818 * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
17819 captures used multiple times, except for the last use.
17820 * generic-match-head.c: Include gimplify.h.
17821
17822 2017-04-04 Jakub Jelinek <jakub@redhat.com>
17823
17824 PR tree-optimization/79390
17825 * target.h (struct noce_if_info): Declare.
17826 * targhooks.h (default_noce_conversion_profitable_p): Declare.
17827 * target.def (noce_conversion_profitable_p): New target hook.
17828 * ifcvt.h (struct noce_if_info): New type, moved from ...
17829 * ifcvt.c (struct noce_if_info): ... here.
17830 (noce_conversion_profitable_p): Renamed to ...
17831 (default_noce_conversion_profitable_p): ... this. No longer
17832 static nor inline.
17833 (noce_try_store_flag_constants, noce_try_addcc,
17834 noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
17835 noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
17836 instead of noce_conversion_profitable_p.
17837 * config/i386/i386.c: Include ifcvt.h.
17838 (ix86_option_override_internal): Don't override
17839 PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
17840 (ix86_noce_conversion_profitable_p): New function.
17841 (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
17842 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
17843 * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
17844 * doc/tm.texi: Regenerated.
17845
17846 2017-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17847
17848 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
17849 correction.
17850
17851 2017-04-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
17852
17853 PR target/80307
17854 * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
17855 instructions for small multiply cores.
17856
17857 2017-04-04 Jeff Law <law@redhat.com>
17858
17859 * config/mips/mips.c (mips_multi_add): Zero initialize the newly
17860 added member.
17861 (mips_expand_vec_perm_const): Initialize elements in orig_perm
17862 that are not set by the loop over the elements.
17863
17864 2017-04-04 Jakub Jelinek <jakub@redhat.com>
17865
17866 PR target/80286
17867 * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
17868 int mode, convert_modes it to mode as unsigned, otherwise use
17869 lowpart_subreg to mode rather than SImode.
17870 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
17871 ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
17872 Use DImode instead of SImode for the shift count operand.
17873 * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
17874 Likewise.
17875
17876 2017-04-04 Richard Biener <rguenther@suse.de>
17877
17878 PR middle-end/80281
17879 * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
17880 arithmetic done for the negate or the plus. Simplify.
17881 (A - (-B) -> A + B): Likewise.
17882 * fold-const.c (split_tree): Make sure to not negate pointers.
17883
17884 2017-04-04 Segher Boessenkool <segher@kernel.crashing.org>
17885
17886 PR rtl-optimization/60818
17887 * simplify-rtx.c (simplify_binary_operation_1): Do not replace
17888 a compare of comparisons with the thing compared if this results
17889 in a different machine mode.
17890
17891 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
17892
17893 * alias.c (base_alias_check): Fix typo in comment.
17894 * cgraph.h (class ipa_polymorphic_call_context): Likewise.
17895 * cgraphunit.c (symbol_table::compile): Likewise.
17896 * collect2.c (maybe_run_lto_and_relink): Likewise.
17897 * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
17898 * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
17899 * config/avr/avr.c (avr_map_op_t): Likewise.
17900 * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
17901 * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
17902 * config/epiphany/epiphany.md (movcc): Likewise.
17903 * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
17904 * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
17905 Likewise.
17906 * config/mips/mips.c (mips_save_restore_reg): Likewise.
17907 * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
17908 * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
17909 * config/sh/sh.c (sh_rtx_costs): Likewise.
17910 * fold-const.c (fold_truth_andor): Likewise.
17911 * genautomata.c (collapse_flag): Likewise.
17912 * gengtype.h (struct type::u::s): Likewise.
17913 * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
17914 * input.c (FORMAT_AMOUNT): Likewise.
17915 * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
17916 (known_aggs_to_agg_replacement_list): Likewise.
17917 * ipa-inline-analysis.c: Likewise.
17918 * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
17919 * ipa-polymorphic-call.c
17920 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
17921 * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
17922 * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
17923 Likewise.
17924 * modulo-sched.c (apply_reg_moves): Likewise.
17925 * omp-expand.c (build_omp_regions_1): Likewise.
17926 * trans-mem.c (struct tm_wrapper_hasher): Likewise.
17927 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
17928 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
17929 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
17930 * value-prof.c: Likewise.
17931 * var-tracking.c (val_reset): Likewise.
17932
17933 2017-04-03 Richard Biener <rguenther@suse.de>
17934
17935 PR tree-optimization/80275
17936 * fold-const.c (split_address_to_core_and_offset): Handle
17937 POINTER_PLUS_EXPR.
17938
17939 2017-04-03 Eric Botcazou <ebotcazou@adacore.com>
17940
17941 * tree-nested.c (get_descriptor_type): Make sure that the alignment of
17942 descriptors is at least equal to that of functions.
17943
17944 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
17945
17946 * config/i386/sse.md (movdi_to_sse): Add missing DONE.
17947
17948 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
17949
17950 PR target/80250
17951 * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
17952 (mov<IMOD4:mode>): New expander.
17953 (*mov<IMOD4:mode>_internal): New insn and split pattern.
17954
17955 2017-03-31 Segher Boessenkool <segher@kernel.crashing.org>
17956
17957 PR rtl-optimization/79405
17958 * fwprop.c (propagations_left): New variable.
17959 (forward_propagate_into): Decrement it.
17960 (fwprop_init): Initialize it.
17961 (fw_prop): If the variable has reached zero, stop propagating.
17962 (fwprop_addr): Ditto.
17963
17964 2017-03-31 Jakub Jelinek <jakub@redhat.com>
17965
17966 PR debug/79255
17967 * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
17968 a FUNCTION_DECL, pass it as decl instead of origin to
17969 process_scope_var.
17970
17971 2017-03-31 Alexander Monakov <amonakov@ispras.ru>
17972
17973 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
17974 string.
17975
17976 2017-03-31 Pat Haugen <pthaugen@us.ibm.com>
17977
17978 PR target/80107
17979 * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
17980 TARGET_VSX_SMALL_INTEGER.
17981
17982 2017-03-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17983
17984 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
17985 reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
17986
17987 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
17988
17989 * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
17990 extraction from odd-numbered MSA register.
17991
17992 2017-03-31 Jakub Jelinek <jakub@redhat.com>
17993
17994 PR middle-end/80173
17995 * expmed.c (store_bit_field_1): Don't attempt to create
17996 a word subreg out of hard registers wider than word if they
17997 have HARD_REGNO_NREGS of 1 for their mode.
17998
17999 PR middle-end/80163
18000 * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
18001 conversions to integer types wider than word and pointer.
18002
18003 PR debug/80025
18004 * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
18005 (rtx_equal_for_cselib_p): Pass 0 to it.
18006 * cselib.c (cselib_hasher::equal): Likewise.
18007 (rtx_equal_for_cselib_1): Add depth argument. If depth
18008 is 128, don't look up VALUE locs and punt. Increment
18009 depth in recursive calls when walking VALUE locs.
18010
18011 2017-03-31 Bernd Edlinger <bernd.edlinger@hotmail.de>
18012
18013 * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
18014 (make_gcov_file_name): Use the canonical path name for generating
18015 the MD5 value.
18016 (read_line): Fix handling of files with ascii null bytes.
18017
18018 2017-03-30 Matthew Fortune <matthew.fortune@imgtec.com>
18019
18020 * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
18021 to initialise a vector register instead
18022 of using a const_int.
18023
18024 2017-03-30 Jakub Jelinek <jakub@redhat.com>
18025
18026 PR translation/80189
18027 * gimplify.c (omp_default_clause): Use %qs instead of %s in
18028 diagnostic messages.
18029
18030 2017-03-30 Peter Bergner <bergner@vnet.ibm.com>
18031
18032 PR target/80246
18033 * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
18034 (dfp_diex_<mode>): Update mode of operand 1.
18035 * doc/extend.texi (dxex, dxexq): Document change to return type.
18036 (diex, diexq): Document change to argument type.
18037
18038 2017-03-30 Martin Jambor <mjambor@suse.cz>
18039
18040 PR ipa/77333
18041 * cgraph.h (cgraph_build_function_type_skip_args): Declare.
18042 * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
18043 it reflects the signature changes performed at the callee side.
18044 * cgraphclones.c (build_function_type_skip_args): Make public, renamed
18045 to cgraph_build_function_type_skip_args.
18046 (build_function_decl_skip_args): Adjust call to the above function.
18047
18048 2017-03-30 Jakub Jelinek <jakub@redhat.com>
18049
18050 PR target/80206
18051 * config/i386/sse.md
18052 (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
18053 register as dest whenever it is a MEM not rtx_equal_p to the
18054 corresponding dup operand, and when forcing into reg move the
18055 reg into the memory afterwards.
18056 (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
18057 Likewise. Use <ssehalfvecmode> instead of <ssequartermode>
18058 for the force_reg mode.
18059 (avx512vl_vextractf128<mode>): Use register as dest either
18060 always when a MEM, or when it is a MEM not rtx_equal_p to the
18061 corresponding dup operand, or even not when it is a CONST_VECTOR
18062 depending on the mode and lo vs. hi.
18063 (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
18064 parens.
18065 (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
18066 (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
18067 Likewise. Require that operands[2] is even.
18068 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
18069 Remove extraneous parens. Require that operands[2] is a multiple
18070 of 4.
18071 (vec_extract_lo_<mode><mask_name>): Don't bother testing if
18072 operands[0] is a MEM if <mask_applied>, the predicates/constraints
18073 disallow memory then.
18074
18075 2017-03-30 Richard Biener <rguenther@suse.de>
18076
18077 PR tree-optimization/77498
18078 * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
18079 to non-constants over backedges.
18080
18081 2017-03-29 Segher Boessenkool <segher@kernel.crashing.org>
18082
18083 PR rtl-optimization/80233
18084 * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
18085 as last_combined_insn. Do not test for BARRIER_P separately.
18086
18087 2017-03-29 Andreas Schwab <schwab@suse.de>
18088
18089 PR ada/80146
18090 * calls.c (prepare_call_address): Convert funexp to Pmode before
18091 copying to temp reg.
18092
18093 2017-03-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18094
18095 PR tree-optimization/80158
18096 * gimple-ssa-strength-reduction.c (replace_mult_candidate):
18097 Handle possible future case of more than one alternate
18098 interpretation.
18099 (replace_rhs_if_not_dup): Likewise.
18100 (replace_one_candidate): Likewise.
18101
18102 2017-03-28 Vladimir Makarov <vmakarov@redhat.com>
18103
18104 PR rtl-optimization/80193
18105 * ira.c (ira): Do not check allocation for LRA.
18106
18107 2017-03-28 Alexander Monakov <amonakov@ispras.ru>
18108
18109 * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
18110 (nvptx_output_simt_exit): Declare.
18111 * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
18112 cfun->machine->unisimt_location. Handle NULL unisimt_predicate.
18113 (init_softstack_frame): Move initialization of crtl->is_leaf to...
18114 (nvptx_declare_function_name): ...here. Emit declaration of local
18115 memory space buffer for omp_simt_enter insn.
18116 (nvptx_output_unisimt_switch): New.
18117 (nvptx_output_softstack_switch): New.
18118 (nvptx_output_simt_enter): New.
18119 (nvptx_output_simt_exit): New.
18120 * config/nvptx/nvptx.h (struct machine_function): New fields
18121 has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
18122 * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
18123 (UNSPECV_SIMT_EXIT): Ditto.
18124 (omp_simt_enter_insn): New insn.
18125 (omp_simt_enter): New expansion.
18126 (omp_simt_exit): New insn.
18127 * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
18128
18129 * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
18130 (expand_GOMP_SIMT_ENTER_ALLOC): New.
18131 (expand_GOMP_SIMT_EXIT): New.
18132 * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
18133 (GOMP_SIMT_ENTER_ALLOC): Ditto.
18134 (GOMP_SIMT_EXIT): Ditto.
18135 * target-insns.def (omp_simt_enter): New insn.
18136 (omp_simt_exit): Ditto.
18137 * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
18138 simt_dlist.
18139 (lower_rec_simd_input_clauses): Implement SIMT privatization.
18140 (lower_rec_input_clauses): Likewise.
18141 (lower_lastprivate_clauses): Handle SIMT privatization.
18142
18143 * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
18144 (ompdevlow_adjust_simt_enter): New.
18145 (find_simtpriv_var_op): New.
18146 (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
18147 IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
18148
18149 * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
18150 * tree-inline.c (expand_call_inline): Handle SIMT privatization.
18151 (copy_decl_for_dup_finish): Ditto.
18152
18153 * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
18154
18155 2017-03-28 Uros Bizjak <ubizjak@gmail.com>
18156
18157 PR target/53383
18158 * config/i386/i386.c (ix86_option_override_internal): Always
18159 allow -mpreferred-stack-boundary=3 for 64-bit targets.
18160
18161 2017-03-28 Bin Cheng <bin.cheng@arm.com>
18162
18163 * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
18164
18165 2017-03-28 Bin Cheng <bin.cheng@arm.com>
18166
18167 * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
18168 mark new edge's irreducible flag accordign to it.
18169 (vect_do_peeling): Check loop preheader edge's irreducible flag
18170 and pass it to function slpeel_add_loop_guard.
18171
18172 2017-03-28 Richard Sandiford <richard.sandiford@arm.com>
18173
18174 PR tree-optimization/80218
18175 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
18176 Update block frequencies and counts.
18177
18178 2017-03-28 Richard Biener <rguenther@suse.de>
18179
18180 PR tree-optimization/78644
18181 * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
18182 of a simplification result we may not use it at all.
18183
18184 2017-03-28 Richard Biener <rguenther@suse.de>
18185
18186 PR ipa/80205
18187 * tree-inline.c (copy_phis_for_bb): Do not create PHI node
18188 without arguments, generate default definition of a SSA name.
18189
18190 2017-03-28 Richard Biener <rguenther@suse.de>
18191
18192 PR middle-end/80222
18193 * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
18194 TYPE_REF_CAN_ALIAS_ALL references.
18195 * fold-const.c (fold_indirect_ref_1): Likewise.
18196
18197 2017-03-28 Martin Liska <mliska@suse.cz>
18198
18199 PR ipa/80104
18200 * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
18201 thunk call as DECL_GIMPLE_REG_P when vector or complex type.
18202
18203 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
18204 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
18205
18206 * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
18207 (EXTRA_SPECS): Define.
18208 (SUBTARGET_EXTRA_SPECS): Likewise.
18209 (SUBTARGET_CPP_SPEC): Likewise.
18210 * config/arc/elf.h (EXTRA_SPECS): Renamed to
18211 SUBTARGET_EXTRA_SPECS.
18212 * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
18213
18214 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
18215
18216 * config/arc/simdext.md (vst64_insn): Update pattern.
18217 (vld32wh_insn): Likewise.
18218 (vld32wl_insn): Likewise.
18219 (vld64_insn): Likewise.
18220 (vld32_insn): Likewise.
18221
18222 2017-03-28 Marek Polacek <polacek@redhat.com>
18223
18224 PR sanitizer/80067
18225 * fold-const.c (fold_comparison): Use protected_set_expr_location
18226 instead of SET_EXPR_LOCATION.
18227
18228 2017-03-28 Markus Trippelsdorf <markus@trippelsdorf.de>
18229
18230 * tree.c (add_expr): Avoid name lookup warning.
18231
18232 2017-03-27 Jeff Law <law@redhat.com>
18233
18234 PR tree-optimization/80216
18235 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
18236 function name. Limit recursion depth.
18237 (record_temporary_equivalences): Corresponding changes.
18238
18239 2017-03-27 Jonathan Wakely <jwakely@redhat.com>
18240
18241 * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
18242 covered first.
18243
18244 2017-03-27 Jakub Jelinek <jakub@redhat.com>
18245
18246 PR target/80102
18247 * reg-notes.def (REG_CFA_NOTE): Define. Use it for CFA related
18248 notes.
18249 * cfgcleanup.c (reg_note_cfa_p): New array.
18250 (insns_have_identical_cfa_notes): New function.
18251 (old_insns_match_p): Don't cross-jump in between /f
18252 and non-/f instructions. If both i1 and i2 are frame related,
18253 verify all CFA notes, their order and content.
18254
18255 2017-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
18256
18257 PR target/78543
18258 * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
18259 HImode and SImode with zero extend to DImode to one insn.
18260 (bswap<mode>2_extenddi): Likewise.
18261 (bswapsi2_extenddi): Likewise.
18262 (bswaphi2_extendsi): Likewise.
18263 (bswaphi2): Combine bswap HImode and SImode into one insn.
18264 Separate memory insns from swapping register.
18265 (bswapsi2): Likewise.
18266 (bswap<mode>2): Likewise.
18267 (bswaphi2_internal): Delete, no longer used.
18268 (bswapsi2_internal): Likewise.
18269 (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
18270 store, and gpr<-gpr swap insns.
18271 (bswap<mode>2_store): Likewise.
18272 (bswaphi2_reg): Register only splitter, combine with the splitter.
18273 (bswaphi2 splitter): Likewise.
18274 (bswapsi2_reg): Likewise.
18275 (bswapsi2 splitter): Likewise.
18276 (bswapdi2): If we have the LDBRX and STDBRX instructions, split
18277 the insns into load, store, and register/register insns.
18278 (bswapdi2_ldbrx): Likewise.
18279 (bswapdi2_load): Likewise.
18280 (bswapdi2_store): Likewise.
18281 (bswapdi2_reg): Likewise.
18282
18283 2017-03-27 Gunther Nikl <gnikl@users.sourceforge.net>
18284
18285 * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
18286 (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
18287
18288 2017-03-27 Kelvin Nilsen <kelvin@gcc.gnu.org>
18289
18290 PR target/80103
18291 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
18292 add comments.
18293 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
18294 special handling for target option conflicts between dform
18295 options (-mpower9-dform, -mpower9-dform-vector,
18296 -mpower9-dform-scalar) and -mno-direct-move.
18297
18298 2017-03-27 Richard Biener <rguenther@suse.de>
18299
18300 PR tree-optimization/80181
18301 * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
18302
18303 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
18304
18305 * config/arc/predicates.md (move_double_src_operand): Replace the
18306 call to move_double_src_operand with a call to address_operand.
18307
18308 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
18309
18310 * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
18311 * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
18312 * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
18313
18314 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
18315
18316 * config/arc/predicates.md (long_immediate_loadstore_operand):
18317 Consider scaled addresses cases.
18318
18319 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
18320
18321 * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
18322 restored when in interrupt.
18323 * config/arc/arc.md (simple_return): ARCv2 rtie instruction
18324 doesn't have delay slot.
18325
18326 2017-03-27 Richard Biener <rguenther@suse.de>
18327
18328 PR ipa/79776
18329 * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
18330 inlined thunk clones.
18331
18332 2017-03-27 Jakub Jelinek <jakub@redhat.com>
18333
18334 PR sanitizer/80168
18335 * asan.c (instrument_derefs): Copy over last operand from
18336 original COMPONENT_REF to the new COMPONENT_REF with
18337 DECL_BIT_FIELD_REPRESENTATIVE.
18338 * ubsan.c (instrument_object_size): Likewise.
18339
18340 2017-03-27 Richard Biener <rguenther@suse.de>
18341
18342 PR tree-optimization/80170
18343 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
18344 sure DR/SCEV didnt fold in constants we do not see when looking
18345 at the reference base alignment.
18346
18347 2017-03-27 Richard Biener <rguenther@suse.de>
18348
18349 PR middle-end/80171
18350 * gimple-fold.c (fold_ctor_reference): Properly guard against
18351 NULL return value from canonicalize_constructor_val.
18352
18353 2017-03-25 Uros Bizjak <ubizjak@gmail.com>
18354
18355 PR target/80180
18356 * config/i386/i386.c (ix86_expand_builtin)
18357 <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
18358 flags reg setting and flags reg using instructions.
18359 <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto. Use non-flags reg
18360 clobbering instructions to zero extend op2.
18361
18362 2017-03-25 Gerald Pfeifer <gerald@pfeifer.com>
18363
18364 * doc/install.texi (Configuration) <--with-aix-soname>:
18365 Update link to AIX ld.
18366
18367 2017-03-25 Bernd Schmidt <bschmidt@redhat.com>
18368
18369 PR rtl-optimization/80160
18370 PR rtl-optimization/80159
18371 * lra-assigns.c (must_not_spill_p): Tighten new test to also take
18372 reg_alternate_class into account.
18373
18374 2017-03-24 Vladimir Makarov <vmakarov@redhat.com>
18375
18376 PR target/80148
18377 * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
18378 to consider in curr_insn_transform.
18379
18380 2017-03-24 Jakub Jelinek <jakub@redhat.com>
18381
18382 * genrecog.c (validate_pattern): Add VEC_SELECT validation.
18383 * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
18384 and emit_mode_inner.
18385
18386 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18387
18388 * config/s390/s390-builtins.def: Add VXE builtins. Add a flags
18389 argument to the overloaded builtin variants. Use the new flag to
18390 deprecate certain builtin variants.
18391 * config/s390/s390-builtin-types.def: Add new builtin types.
18392 * config/s390/s390-builtins.h: Support new flags field for
18393 overloaded builtins.
18394 * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
18395 (s390_macro_to_expand): Enable vector float data type.
18396 (s390_cpu_cpp_builtins_internal): Indicate support of the new
18397 builtins by incrementing the __VEC__ version number.
18398 (s390_expand_overloaded_builtin): Support expansion of vec_xl and
18399 vec_xst.
18400 (s390_resolve_overloaded_builtin): Emit error messages depending
18401 on the builtin flags.
18402 * config/s390/s390.c (s390_expand_builtin): Support additional
18403 flags argument. Change error message to match the messages
18404 emitted in s390-c.c.
18405 * config/s390/s390.md: New UNSPEC_* constants.
18406 (op_type): Add new instruction types.
18407 * config/s390/vecintrin.h: Add new builtins and test data class
18408 constants.
18409 * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
18410 (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
18411 (VEC_INEXACT, VEC_NOINEXACT): New constants.
18412 ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
18413 ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
18414 ("vec_mergel<mode>"): V_HW -> VEC_HW.
18415
18416 ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
18417 ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
18418 ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
18419 ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
18420
18421 ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
18422 ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
18423 ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
18424 ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
18425
18426 ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
18427 ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
18428 ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
18429 ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
18430 ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
18431 ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
18432 ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
18433
18434 ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
18435 ("vec_scatter_element<V_HW_4:mode>_DI")
18436 ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
18437 ("vec_fpint<mode>", "vflls")
18438 ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
18439 ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
18440 ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
18441 ("*vec_cmphe<mode>_cc"): ... these.
18442
18443 ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
18444 mode constant instead of magic value.
18445
18446 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18447
18448 * config/s390/s390.c (s390_expand_vec_compare): Support other
18449 vector floating point modes than just V2DF.
18450 (s390_expand_vcond): Likewise.
18451 (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
18452 (s390_cannot_change_mode_class): Prevent mode changes between TF
18453 and V1TF in vector registers.
18454 * config/s390/s390.md (DF, SF): New mode attributes.
18455 ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
18456 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
18457 SFmode support for VRs.
18458 * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
18459 vector fp modes.
18460 (VFT, VF_HW): New mode iterators.
18461 (vw, sdx): New mode attributes.
18462 ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
18463 ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
18464 ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
18465 ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
18466 ("vec_unorderedv2df"): Adjust the v2df only patterns to support
18467 also the new vector floating point modes. Renaming to ...
18468
18469 ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
18470 ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
18471 ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
18472 ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
18473 ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
18474 ("vec_unordered<mode>"): ... these.
18475
18476 ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
18477 ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
18478 ("*vec_extendv2df"): New insn definitions.
18479
18480 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18481
18482 * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
18483 ("mulditi3_2", "*muldi3_sign"): New patterns.
18484 ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
18485 rename the pattern definition.
18486
18487 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18488
18489 * config/s390/s390.md ("indirect_jump"): Turn insn definition into
18490 expander.
18491 ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
18492
18493 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18494
18495 * config/s390/s390.c (s390_expand_vec_init): Use vllezl
18496 instruction if possible.
18497 * config/s390/vector.md (vec_halfnumelts): New mode
18498 attribute.
18499 ("*vec_vllezlf<mode>"): New pattern.
18500
18501 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18502
18503 * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
18504 ("popcountv4si2", "popcountv2di2"): Rename to ...
18505 ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
18506 ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
18507 condition.
18508 ("popcount<mode>2_vxe"): New pattern.
18509
18510 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18511
18512 * common/config/s390/s390-common.c (processor_flags_table): Add
18513 arch12.
18514 * config.gcc: Add arch12.
18515 * config/s390/driver-native.c (s390_host_detect_local_cpu):
18516 Default to arch12 for unknown CPU model numbers.
18517 * config/s390/s390-builtins.def: Add B_VXE builtin flag.
18518 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
18519 PROCESSOR_max sanity check.
18520 * config/s390/s390-opts.h (enum processor_type): Add
18521 PROCESSOR_ARCH12.
18522 * config/s390/s390.c (processor_table): Add arch12.
18523 (s390_expand_builtin): Add check for B_VXE flag.
18524 (s390_issue_rate): Add PROCESSOR_ARCH12.
18525 (s390_get_sched_attrmask): Likewise.
18526 (s390_get_unit_mask): Likewise.
18527 (s390_sched_score): Enable z13 scheduling for arch12.
18528 (s390_sched_reorder): Likewise.
18529 (s390_sched_variable_issue): Likewise.
18530 * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
18531 PF_VXE.
18532 (s390_tune_attr): Use z13 scheduling also for arch12.
18533 (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
18534 (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
18535 (TARGET_VXE_P): New macros.
18536 * config/s390/s390.md: Add arch12 to cpu attribute. Add arch12
18537 and vxe to cpu_facility. Add arch12 and vxe to enabled attribute.
18538 * config/s390/s390.opt: Add arch12 as processor_type.
18539
18540 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18541
18542 * config/s390/s390.md
18543 ("fixuns_truncdddi2", "fixuns_trunctddi2")
18544 ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
18545 ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
18546
18547 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
18548 Rename expanders to ...
18549
18550 ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
18551 ("fixuns_truncdddi2_emu"): ... these.
18552
18553 ("fixuns_trunc<mode>si2_emu"): New expander.
18554
18555 ("*fixuns_truncdfdi2_z13"): Rename to ...
18556 ("*fixuns_truncdfdi2_vx"): ... this.
18557
18558 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18559
18560 * config/s390/2964.md: Remove the single element vector compare
18561 instructions which are no longer used.
18562 * config/s390/s390.c (s390_select_ccmode): Remove handling of
18563 vector CCmodes.
18564 (s390_canonicalize_comparison): Remove handling of DFmode
18565 compares.
18566 (s390_expand_vec_compare_scalar): Remove function.
18567 (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
18568 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
18569 pattern.
18570 ("*cmp<mode>_ccs"): Add wfcdb instruction.
18571
18572 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18573
18574 * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
18575 FP zero.
18576 ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
18577 will anyway by matched by mov<mode>_64dfp.
18578
18579 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18580
18581 * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
18582 vlef/vstef. Add missing operand to vleif.
18583
18584 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18585
18586 * config/s390/s390.c (s390_expand_vec_init): Enable vector load
18587 pair for all vector types with 64 bit elements.
18588 * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
18589 * config/s390/vector.md (V_HW_64): ... here.
18590 (V_128_NOSINGLE): New mode iterator.
18591 ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
18592 ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
18593 ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
18594 ("*vec_load_pairv2di"): Change to ...
18595 ("*vec_load_pair<mode>"): ... this one.
18596
18597 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18598
18599 * config/s390/constraints.md: Add comments.
18600 (jKK): Reject element sizes > 8 bytes.
18601 * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
18602 s_operands.
18603 * config/s390/s390.md: Add the s_operand checks formerly in
18604 s390_split_ok_p to various splitters where they are still
18605 required.
18606 * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
18607 for 128 bit vectors. Plus two splitters.
18608
18609 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18610
18611 * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
18612 the file.
18613
18614 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18615
18616 PR target/79893
18617 * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
18618 error if the boundary argument is not constant.
18619
18620 2017-03-24 Jakub Jelinek <jakub@redhat.com>
18621
18622 PR rtl-optimization/80112
18623 * loop-doloop.c (doloop_condition_get): Don't check condition
18624 if cmp isn't SET with IF_THEN_ELSE src.
18625
18626 2017-03-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18627
18628 PR tree-optimization/80158
18629 * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
18630 replacing a candidate statement, also replace it for the
18631 candidate's alternate interpretation.
18632 (replace_rhs_if_not_dup): Likewise.
18633 (replace_one_candidate): Likewise.
18634
18635 2017-03-24 Richard Biener <rguenther@suse.de>
18636
18637 PR tree-optimization/80167
18638 * graphite-isl-ast-to-gimple.c
18639 (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
18640 properly.
18641 (translate_isl_ast_to_gimple::get_rename): Likewise.
18642
18643 2017-03-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
18644
18645 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
18646 handling of certain combinations of target options, including the
18647 combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
18648 -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
18649
18650 2017-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18651
18652 PR target/71436
18653 * config/arm/arm.md (*load_multiple): Add reload_completed to
18654 matching condition.
18655
18656 2017-03-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18657 Richard Biener <rguenth@suse.de>
18658
18659 PR tree-optimization/79908
18660 PR tree-optimization/80136
18661 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
18662 been cast away, gimplify_and_add suffices.
18663
18664 2017-03-23 Markus Trippelsdorf <markus@trippelsdorf.de>
18665
18666 * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
18667
18668 2017-03-23 Richard Biener <rguenther@suse.de>
18669
18670 PR tree-optimization/80032
18671 * gimplify.c (gimple_push_cleanup): Forced unconditional
18672 cleanups still have to go to the conditional_cleanups
18673 sequence.
18674
18675 2017-03-22 Jakub Jelinek <jakub@redhat.com>
18676
18677 PR tree-optimization/80072
18678 * tree-ssa-reassoc.c (struct operand_entry): Change id field type
18679 to unsigned int.
18680 (next_operand_entry_id): Change type to unsigned int.
18681 (sort_by_operand_rank): Make sure to return the right return value
18682 even if unsigned fields are bigger than INT_MAX.
18683 (struct oecount): Change cnt and id type to unsigned int.
18684 (oecount_hasher::equal): Formatting fix.
18685 (oecount_cmp): Make sure to return the right return value
18686 even if unsigned fields are bigger than INT_MAX.
18687 (undistribute_ops_list): Change next_oecount_id type to unsigned int.
18688
18689 PR c++/80129
18690 * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
18691 TREE_READONLY on result if writing it more than once.
18692
18693 PR sanitizer/80110
18694 * doc/invoke.texi (-fsanitize=thread): Document that with
18695 -fnon-call-exceptions atomics are not able to throw
18696 exceptions.
18697
18698 PR sanitizer/80110
18699 * tsan.c: Include tree-eh.h.
18700 (instrument_builtin_call): Call maybe_clean_eh_stmt or
18701 maybe_clean_or_replace_eh_stmt where needed.
18702 (instrument_memory_accesses): Add cfg_changed argument.
18703 Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
18704 if it returned true.
18705 (tsan_pass): Adjust caller. Return TODO_cleanup_cfg if cfg_changed.
18706
18707 PR rtl-optimization/63191
18708 * config/i386/i386.c (ix86_delegitimize_address): Turn into small
18709 wrapper function, moved the whole old content into ...
18710 (ix86_delegitimize_address_1): ... this. New inline function.
18711 (ix86_find_base_term): Use ix86_delegitimize_address_1 with
18712 true as last argument instead of ix86_delegitimize_address.
18713
18714 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
18715
18716 * config/aarch64/aarch64.c (generic_branch_cost): Copy
18717 cortexa57_branch_cost.
18718
18719 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
18720
18721 * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
18722
18723 2017-03-21 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
18724
18725 PR target/80123
18726 * doc/md.texi (Constraints): Document wA constraint.
18727 * config/rs6000/constraints.md (wA): New.
18728 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
18729 (rs6000_init_hard_regno_mode_ok): Init wA constraint.
18730 * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
18731 * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
18732
18733 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
18734
18735 PR c++/80029
18736 * gimplify.c (is_oacc_declared): New function.
18737 (oacc_default_clause): Use it to set default flags for acc declared
18738 variables inside parallel regions.
18739 (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
18740 declared variables.
18741 (gimplify_oacc_declare): Gimplify the declare clauses. Add the
18742 declare attribute to any decl as necessary.
18743
18744 2017-03-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
18745
18746 PR target/80082
18747 * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
18748 (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
18749 * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
18750 (arm_arch_lpae): This.
18751 * config/arm/arm.c (arm_arch7ve): Rename into ...
18752 (arm_arch_lpae): This. Define it in term of isa_bit_lpae.
18753 * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
18754 arm_arch_lpae.
18755
18756 2017-03-22 Martin Liska <mliska@suse.cz>
18757
18758 PR target/79906
18759 * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
18760 error message instead of an ICE.
18761
18762 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18763
18764 * doc/extend.texi (6.11 Additional Floating Types): Revise.
18765
18766 2017-03-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
18767
18768 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
18769 comments.
18770 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
18771 comments.
18772
18773 2017-03-21 Martin Sebor <msebor@redhat.com>
18774
18775 * doc/extend.texi: Use "cannot" instead of "can't."
18776 * doc/hostconfig.texi: Same.
18777 * doc/install.texi: Same.
18778 * doc/invoke.texi: Same.
18779 * doc/loop.texi: Same.
18780 * doc/md.texi: Same.
18781 * doc/objc.texi: Same.
18782 * doc/rtl.texi: Same.
18783 * doc/tm.texi: Same.
18784 * doc/tm.texi.in: Same.
18785 * doc/trouble.texi: Same.
18786
18787 2017-03-21 Alexandre Oliva <aoliva@redhat.com>
18788
18789 PR debug/63238
18790 * dwarf2out.c (struct checksum_attributes): Add at_alignment.
18791 (collect_checksum_attributes): Set it.
18792 (die_checksum_ordered): Use it.
18793
18794 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18795
18796 PR tree-optimization/79908
18797 * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
18798 change: For a VA_ARG whose LHS has been cast away, use
18799 force_gimple_operand to construct the side effects.
18800
18801 2017-03-21 David Malcolm <dmalcolm@redhat.com>
18802
18803 PR translation/80001
18804 * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
18805 more amenable to translation.
18806 (oacc_loop_auto_partitions): Likewise.
18807
18808 2017-03-21 Marek Polacek <polacek@redhat.com>
18809 Martin Sebor <msebor@redhat.com>
18810
18811 PR tree-optimization/80109
18812 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
18813 on INTEGRAL_TYPE_P.
18814
18815 2017-03-21 Jakub Jelinek <jakub@redhat.com>
18816 Segher Boessenkool <segher@kernel.crashing.org>
18817
18818 PR target/80125
18819 * combine.c (can_combine_p): Revert the 2017-03-20 change, only
18820 check reg_used_between_p between insn and one of succ or succ2
18821 depending on if succ is artificial insn not inserted into insn
18822 stream.
18823
18824 2017-03-21 Martin Liska <mliska@suse.cz>
18825
18826 PR gcov-profile/80081
18827 * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
18828 * doc/gcc.texi: Include gcov-dump stuff.
18829 * doc/gcov-dump.texi: New file.
18830
18831 2017-03-21 Toma Tabacu <toma.tabacu@imgtec.com>
18832
18833 PR rtl-optimization/79150
18834 * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
18835 conditional jump, if the jump is the last insn of the loop.
18836
18837 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18838 Richard Biener <rguenth@suse.de>
18839
18840 PR tree-optimization/79908
18841 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
18842 been cast away, use force_gimple_operand to construct the side
18843 effects.
18844
18845 2017-03-21 Martin Liska <mliska@suse.cz>
18846
18847 PR libfortran/79956
18848 * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
18849 to NULL.
18850
18851 2017-03-21 Brad Spengler <spender@grsecurity.net>
18852
18853 PR plugins/80094
18854 * plugin.c (htab_hash_plugin): New function.
18855 (add_new_plugin): Use it and adjust.
18856 (parse_plugin_arg_opt): Adjust.
18857 (init_one_plugin): Likewise.
18858
18859 2017-03-21 Richard Biener <rguenther@suse.de>
18860
18861 PR tree-optimization/80032
18862 * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
18863 if set force the cleanup to happen unconditionally.
18864 (gimplify_target_expr): Push inserted clobbers with force_uncond
18865 to avoid them being removed by control-dependent DCE.
18866
18867 2017-03-21 Richard Biener <rguenther@suse.de>
18868
18869 PR tree-optimization/80122
18870 * tree-inline.c (copy_bb): Do not expans va-arg packs or
18871 va_arg_pack_len when the inlined call stmt requires pack
18872 expansion itself.
18873 * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
18874
18875 2017-03-21 Jakub Jelinek <jakub@redhat.com>
18876
18877 PR sanitizer/78158
18878 * tsan.c (instrument_builtin_call): If the memory model argument
18879 is not a constant, assume it is valid.
18880
18881 PR c/67338
18882 * fold-const.c (round_up_loc): Negate divisor in unsigned type to
18883 avoid UB.
18884
18885 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
18886
18887 PR rtl-optimization/79910
18888 * combine.c (can_combine_p): Do not allow combining an I0 or I1
18889 if its dest is used by an insn before I2 (other than the combined
18890 insns themselves, which are properly handled already).
18891
18892 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
18893
18894 Revert:
18895 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
18896
18897 * combine.c (record_used_regs): New static function.
18898 (try_combine): Handle situations where there is an additional
18899 instruction between I2 and I3 which needs to have a LOG_LINK
18900 updated.
18901
18902 Revert:
18903 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
18904
18905 * combine.c (try_combine): Delete redundant i1 test. Call
18906 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
18907
18908 2017-03-20 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
18909
18910 PR target/80083
18911 * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
18912 alternatives 13/14.
18913
18914 2017-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18915
18916 PR tree-optimization/80054
18917 * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
18918 the optimization if a PHI or any of its arguments is not dominated
18919 by the candidate's basis. Use gphi* rather than gimple* as
18920 appropriate.
18921 (replace_profitable_candidates): Clean up a gimple* variable that
18922 should be a gphi* variable.
18923
18924 2017-03-20 Martin Sebor <msebor@redhat.com>
18925
18926 PR c++/52477
18927 * doc/extend.texi (attribute constructor): Document present limitation.
18928
18929 2017-03-20 Kelvin Nilsen <kelvin@gcc.gnu.org>
18930
18931 PR target/79963
18932 * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
18933 __POWER9_VECTOR__ #ifdef control, change template definition to
18934 use Power9-specific built-in function.
18935 (vec_any_eq): Likewise.
18936 * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
18937 to control outcomes from this test.
18938 (vector_ae_<mode>p): For VEC_F modes, likewise.
18939
18940 2017-03-20 Ian Lance Taylor <iant@google.com>
18941
18942 * config/i386/i386.c (ix86_function_regparm): Save an extra
18943 register for -fsplit-stack with DECL_STATIC_CHAIN.
18944
18945 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
18946
18947 PR target/79912
18948 * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
18949 (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
18950
18951 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
18952
18953 * config/riscv/riscv.c (riscv_print_operand): Use "fence
18954 iorw,ow".
18955 * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
18956 iorw,iorw".
18957
18958 2017-03-20 Marek Polacek <polacek@redhat.com>
18959
18960 PR sanitizer/80063
18961 * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
18962
18963 2017-03-20 Richard Biener <rguenther@suse.de>
18964
18965 PR tree-optimization/80113
18966 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
18967 allocate extra SSA name for PHI def.
18968 (add_close_phis_to_outer_loops): Likewise.
18969 (add_close_phis_to_merge_points): Likewise.
18970 (copy_loop_close_phi_args): Likewise.
18971 (copy_cond_phi_nodes): Likewise.
18972
18973 2017-03-20 Martin Liska <mliska@suse.cz>
18974
18975 PR middle-end/79753
18976 * tree-chkp.c (chkp_build_returned_bound): Do not build
18977 returned bounds for a LHS that's not a BOUNDED_P type.
18978
18979 2017-03-20 Martin Liska <mliska@suse.cz>
18980
18981 PR target/79769
18982 PR target/79770
18983 * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
18984 COMPLEX_CST and VECTOR_CST.
18985
18986 2017-03-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18987
18988 PR target/78857
18989 * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
18990 target operand. A new splitter adds the clobber statement in case
18991 the target operand is dead anyway.
18992
18993 2017-03-19 Gerald Pfeifer <gerald@pfeifer.com>
18994
18995 * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
18996 to age-old versions of binutils and glibc.
18997
18998 2017-03-18 Segher Boessenkool <segher@kernel.crashing.org>
18999
19000 * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
19001
19002 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
19003
19004 * doc/contrib.texi (Contributors): Add Segher Boessenkool.
19005
19006 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
19007
19008 * doc/install.texi (Specific) <arm-*-eabi>: Remove old
19009 requirement for binutils 2.13.
19010
19011 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
19012
19013 * combine.c (try_combine): Delete redundant i1 test. Call
19014 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
19015
19016 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com
19017
19018 * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
19019 riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
19020 contents.
19021 <riscv64-*-elf>: Re-arrange section
19022 <riscv32-*-elf>: Add a note about requiring binutils 2.28.
19023 <riscv32-*-linux>: Likewise.
19024 <riscv64-*-elf>: Likewise
19025 <riscv64-*-linux>: Likewise.
19026
19027 2017-03-17 Richard Earnshaw <rearnsha@arm.com>
19028
19029 PR target/80052
19030 * aarch64.opt(verbose-cost-dump): Fix typo.
19031
19032 2017-03-17 Pat Haugen <pthaugen@us.ibm.com>
19033
19034 PR target/79951
19035 * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
19036 for VECTOR_UNIT_VSX_P (<MODE>mode) too.
19037
19038 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
19039
19040 * reload.c (find_reloads): When reloading a nonoffsettable address,
19041 use RELOAD_OTHER for it and its address reloads.
19042
19043 PR rtl-optimization/79910
19044 * combine.c (record_used_regs): New static function.
19045 (try_combine): Handle situations where there is an additional
19046 instruction between I2 and I3 which needs to have a LOG_LINK
19047 updated.
19048
19049 2017-03-17 Jeff Law <law@redhat.com>
19050
19051 PR tree-optimization/71437
19052 * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
19053 conditional in the hash table first.
19054 (vrp_dom_walker::before_dom_children): Extract condition from
19055 ASSERT_EXPR. Record condition, its inverion and any implied
19056 conditions as well.
19057
19058 2017-03-17 Marek Polacek <polacek@redhat.com>
19059 Markus Trippelsdorf <markus@trippelsdorf.de>
19060
19061 PR tree-optimization/80079
19062 * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
19063 m_stores_head.
19064
19065 2017-03-17 Richard Biener <rguenther@suse.de>
19066
19067 PR middle-end/80075
19068 * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
19069 Properly verify the LHS before the RHS possibly claims to be
19070 handled.
19071 (stmt_could_throw_p): Hande gimple conds fully here. Clobbers
19072 do not throw.
19073
19074 2017-03-17 Martin Jambor <mjambor@suse.cz>
19075
19076 * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
19077 (List of -O2 options): Likewise.
19078 (-fipa-bit-cp): Replace "ipa" with "interprocedural."
19079 (-fipa-vrp) New.
19080
19081 2017-03-17 Tom de Vries <tom@codesourcery.com>
19082
19083 * gcov-dump.c (print_usage): Print bug_report_url.
19084
19085 2017-03-17 Richard Biener <rguenther@suse.de>
19086
19087 PR middle-end/80050
19088 * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
19089 (parser::peek): Likewise.
19090
19091 2017-03-17 Richard Biener <rguenther@suse.de>
19092
19093 PR tree-optimization/80048
19094 * sese.c (free_sese_info): Properly release rename_map and
19095 copied_bb_map elements.
19096
19097 2017-03-16 Alexandre Oliva <aoliva@redhat.com>
19098
19099 * gimple-ssa-store-merging.c (struct imm_store_chain_info):
19100 Add linked-list forward and backlinks. Insert on
19101 construction, remove on destruction.
19102 (class pass_store_merging): Add m_stores_head field.
19103 (pass_store_merging::terminate_and_process_all_chains):
19104 Iterate over m_stores_head list.
19105 (pass_store_merging::terminate_all_aliasing_chains):
19106 Likewise.
19107 (pass_store_merging::execute): Check for debug stmts first.
19108 Push new chains onto the m_stores_head stack.
19109
19110 2017-03-16 Michael Meissner <meissner@linux.vnet.ibm.com>
19111
19112 PR target/71294
19113 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
19114 SPLAT operation on ISA 2.07 64-bit systems that have direct move,
19115 but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
19116
19117 2017-03-16 Jeff Law <law@redhat.com>
19118
19119 PR tree-optimization/71437
19120 * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
19121 member function. Implementation moved into after_dom_children
19122 member function and into the threader's thread_outgoing_edges
19123 function.
19124 (dom_opt_dom_walker::after_dom_children): Simplify by moving
19125 some code into new thread_outgoing_edges.
19126 * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
19127 definition. Simplify marker handling (do it here). Assume we always
19128 have the available expression and the const/copies tables.
19129 (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
19130 and tree-vrp.c
19131 * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
19132 * tree-vrp.c (equiv_stack): No longer file scoped.
19133 (vrp_dom_walker): New class.
19134 (vrp_dom_walker::before_dom_children): New member function.
19135 (vrp_dom_walker::after_dom_children): Likewise.
19136 (identify_jump_threads): Setup domwalker. Use it rather than
19137 walking edges in a random order by hand. Simplify setup/finalization.
19138 (finalize_jump_threads): Remove.
19139 (vrp_finalize): Do not call identify_jump_threads here.
19140 (execute_vrp): Do it here instead and call thread_through_all_blocks
19141 here too.
19142
19143 PR tree-optimization/71437
19144 * tree-ssa-dom.c (pfn_simplify): Add basic_block argument. All
19145 callers changed.
19146 (simplify_stmt_for_jump_threading): Add basic_block argument. All
19147 callers changed.
19148 (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
19149 (dom_opt_dom_walker::thread_across_edge): Remove
19150 handle_dominating_asserts argument. All callers changed.
19151 (record_temporary_equivalences_from_stmts_at_dest): Corresponding
19152 changes. Remove calls to lhs_of_dominating_assert. Other
19153 uses of handle_dominating_asserts turn into unconditional code
19154 (simplify_control_stmt_condition_1): Likewise.
19155 (simplify_control_stmt_condition): Likewise.
19156 (thread_through_normal_block, thread_across_edge): Likewise.
19157 * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
19158 * tree-vrp.c (lhs_of_dominating_assert): Move here. Return original
19159 object if it is not an SSA_NAME.
19160 (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
19161 before calling into the VRP specific simplifiers.
19162 (identify_jump_threads): Remove handle_dominating_asserts
19163 argument.
19164
19165 2017-03-16 Jakub Jelinek <jakub@redhat.com>
19166
19167 PR fortran/79886
19168 * tree-diagnostic.c (default_tree_printer): No longer static.
19169 * tree-diagnostic.h (default_tree_printer): New prototype.
19170
19171 2017-03-16 Tamar Christina <tamar.christina@arm.com>
19172
19173 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
19174 Change ins into fmov.
19175
19176 2017-03-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19177
19178 * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
19179 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
19180 Use h_con constraint for operand 1.
19181 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
19182 (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
19183
19184 2017-03-15 Jeff Law <law@redhat.com>
19185
19186 PR tree-optimization/71437
19187 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
19188 (record_temporary_equivalences): Use it.
19189
19190 PR tree-optimization/71437
19191 * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
19192 tree-ssa-scopedtables.
19193 (lookup_avail_expr, build_and_record_new_cond): Likewise.
19194 (record_conditions, record_cond, vuse_eq): Likewise.
19195 (record_edge_info): Adjust to API tweak of record_conditions.
19196 (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
19197 (record_temporary_equivalences, optimize_stmt): Likewise.
19198 (eliminate_redundant_computations): Likewise.
19199 (record_equivalences_from_stmt): Likewise.
19200 * tree-ssa-scopedtables.c: Include options.h and params.h.
19201 (vuse_eq): New function, moved from tree-ssa-dom.c
19202 (build_and_record_new_cond): Likewise.
19203 (record_conditions): Likewise. Accept vector of conditions rather
19204 than edge_equivalence structure for first argument.
19205 for the first argument.
19206 (avail_exprs_stack::lookup_avail_expr): New member function, moved
19207 from tree-ssa-dom.c.
19208 (avail_exprs_stack::record_cond): Likewise.
19209 * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
19210 from tree-ssa-dom.c.
19211 (avail_exprs_stack): Add new member functions lookup_avail_expr
19212 and record_cond.
19213 (record_conditions): Declare.
19214
19215 2017-03-15 Vladimir Makarov <vmakarov@redhat.com>
19216
19217 PR target/80017
19218 * lra-constraints.c (process_alt_operands): Increase reject for
19219 reloading an input/output operand.
19220
19221 2017-03-15 Michael Meissner <meissner@linux.vnet.ibm.com>
19222
19223 PR target/79038
19224 * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
19225 insns to convert from signed/unsigned char/short to IEEE 128-bit
19226 floating point.
19227 (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
19228
19229 2017-03-15 Uros Bizjak <ubizjak@gmail.com>
19230
19231 PR target/80019
19232 * config/i386/i386.c (ix86_vector_duplicate_value): Create
19233 subreg of inner mode for values already in registers.
19234
19235 2017-03-15 Bernd Schmidt <bschmidt@redhat.com>
19236
19237 * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
19238 iteration reg is used after the loop.
19239
19240 2017-03-14 Martin Sebor <msebor@redhat.com>
19241
19242 PR tree-optimization/79800
19243 * gimple-ssa-sprintf.c (format_floating: Add argument. Handle
19244 precision in negative-positive range.
19245 (format_floating): Call non-const overload with adjusted precision.
19246
19247 2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
19248
19249 PR target/79947
19250 * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
19251 -mpowerpc-gfxopt.
19252
19253 2017-03-14 Martin Sebor <msebor@redhat.com>
19254
19255 PR middle-end/80020
19256 * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
19257 * builtins.def (aligned_alloc): Use it.
19258
19259 PR c/79936
19260 * Makefile.in (GTFILES): Add calls.c.
19261 * calls.c: Include "gt-calls.h".
19262
19263 2017-03-14 Bernd Schmidt <bschmidt@redhat.com>
19264
19265 PR rtl-optimization/79728
19266 * regs.h (struct target_regs): New field
19267 x_contains_allocatable_regs_of_mode.
19268 (contains_allocatable_regs_of_mode): New macro.
19269 * reginfo.c (init_reg_sets_1): Initialize it, and change
19270 contains_reg_of_mode so it includes global regs as well.
19271 * reload.c (push_reload): Use contains_allocatable_regs_of_mode
19272 rather than contains_regs_of_mode.
19273
19274 2017-03-14 Martin Liska <mliska@suse.cz>
19275
19276 * doc/invoke.texi: Document options that can't be combined with
19277 -fcheck-pointer-bounds.
19278
19279 2017-03-14 Martin Liska <mliska@suse.cz>
19280
19281 PR middle-end/79831
19282 * doc/invoke.texi (-Wchkp): Document the option.
19283
19284 2017-03-14 Martin Liska <mliska@suse.cz>
19285
19286 * Makefile.in: Install gcov-dump.
19287
19288 2017-03-14 Martin Liska <mliska@suse.cz>
19289
19290 * multiple_target.c (expand_target_clones): Bail out for
19291 an invalid attribute.
19292
19293 2017-03-14 Richard Biener <rguenther@suse.de>
19294
19295 * alias.c (struct alias_set_entry): Pack properly.
19296 * cfgloop.h (struct loop): Likewise.
19297 * cse.c (struct set): Likewise.
19298 * ipa-utils.c (struct searchc_env): Likewise.
19299 * loop-invariant.c (struct invariant): Likewise.
19300 * lra-remat.c (struct cand): Likewise.
19301 * recog.c (struct change_t): Likewise.
19302 * rtl.h (struct address_info): Likewise.
19303 * symbol-summary.h (function_summary): Likewise.
19304 * tree-loop-distribution.c (struct partition): Likewise.
19305 * tree-object-size.c (struct object_size_info): Likewise.
19306 * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
19307 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
19308 * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
19309 * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
19310 * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
19311 * tree-vectorizer.h (struct _loop_vec_info): Likewise.
19312 (struct _stmt_vec_info): Likewise.
19313
19314 2017-03-14 Martin Liska <mliska@suse.cz>
19315
19316 PR target/79892
19317 * multiple_target.c (create_dispatcher_calls): Check that
19318 a target can create a function dispatcher.
19319
19320 2017-03-14 Martin Liska <mliska@suse.cz>
19321
19322 PR lto/66295
19323 * multiple_target.c (expand_target_clones): Drop local.local
19324 flag for default implementation.
19325
19326 2017-03-14 Richard Biener <rguenther@suse.de>
19327
19328 PR tree-optimization/80030
19329 * tree-vect-stmts.c (vectorizable_store): Plug memleak.
19330
19331 2017-03-13 Kito Cheng <kito.cheng@gmail.com>
19332
19333 * config/riscv/riscv.c (riscv_emit_float_compare>: Use
19334 gcc_fallthrough() instead of __attribute__((fallthrough));
19335
19336 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
19337
19338 * doc/gcc.texi: Remove "up" link to (DIR).
19339 * doc/gccint.texi: Ditto.
19340
19341 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
19342
19343 * doc/install.texi (Specific) <avr>: Remove reference to
19344 binutils 2.13.
19345
19346 2017-03-13 Jeff Law <law@redhat.com>
19347
19348 * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
19349 attribute rather than comments.
19350
19351 * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
19352 match_scratch operand is highest.
19353
19354 2017-03-13 Martin Liska <mliska@suse.cz>
19355
19356 PR middle-end/78339
19357 * ipa-pure-const.c (warn_function_noreturn): If the declarations
19358 is a CHKP clone, use original declaration.
19359
19360 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
19361
19362 * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
19363 (arc_conditional_register_usage): Use a different allocation order
19364 when optimizing for size.
19365 * common/config/arc/arc-common.c (arc_option_optimization_table):
19366 Section anchors default on when optimizing for size.
19367
19368 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
19369
19370 * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
19371
19372 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
19373
19374 * config/arc/arc.c (arc_output_addsi): Emit code density adds.
19375 * config/arc/arc.md (cpu_facility): Add cd variant.
19376 (*movqi_insn): Add code density variant.
19377 (*movhi_insn): Likewise.
19378 (*movqi_insn): Likewise.
19379 (*addsi3_mixed): Likewise.
19380 (subsi3_insn): Likewise.
19381
19382 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
19383
19384 * config/arc/arc.md (movsi_cond_exec): Update constraint.
19385
19386 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
19387
19388 * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
19389 expressions with MINUS and UNARY ops.
19390
19391 2017-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19392
19393 PR target/79911
19394 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
19395 Rename to...
19396 (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
19397 between vec_select and vector argument.
19398 (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
19399 (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
19400 (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
19401 (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
19402 (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
19403 (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
19404
19405 2017-03-13 Richard Biener <rguenther@suse.de>
19406
19407 PR other/79991
19408 * params.def (vect-max-peeling-for-alignment): Fix typo.
19409
19410 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
19411
19412 * doc/install.texi (Specific) <mips-*-*>: Remove description of
19413 issue that only occurred with binutils below 2.18.
19414
19415 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
19416
19417 * doc/install.texi (Specific) <cris-axis-elf>: No longer
19418 refer to binutils 2.11/2.12 minimum.
19419
19420 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
19421
19422 * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
19423 ftp.kernel.org and simplify binutils requirement.
19424
19425 2017-03-11 Gerald Pfeifer <gerald@pfeifer.com>
19426
19427 * doc/invoke.texi (Warning Options): Fix spelling of link-time
19428 optimization.
19429 (Optimize Options): Ditto. Also remove redundancy.
19430
19431 2017-03-10 David Malcolm <dmalcolm@redhat.com>
19432
19433 PR translation/79848
19434 * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
19435 "%qs".
19436 * ipa-pure-const.c (suggest_attribute): Likewise. Convert _
19437 to G_ to avoid double translation.
19438
19439 2017-03-10 David Malcolm <dmalcolm@redhat.com>
19440
19441 PR translation/79923
19442 * auto-profile.c (get_combined_location): Convert leading
19443 character of diagnostics to lower case and remove trailing period.
19444 (read_profile): Likewise for various diagnostics.
19445 * config/arm/arm.c (arm_option_override): Remove trailing period
19446 from various diagnostics.
19447 * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
19448 (msp430_expand_delay_cycles): Likewise.
19449
19450 2017-03-10 David Malcolm <dmalcolm@redhat.com>
19451
19452 PR target/79925
19453 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
19454 full command-line argument, rather than just "str".
19455 (aarch64_validate_march): Likewise.
19456 (aarch64_validate_mtune): Likewise.
19457
19458 2017-03-10 Bernd Schmidt <bschmidt@redhat.com>
19459
19460 PR rtl-optimization/78911
19461 * lra-assigns.c (must_not_spill_p): New function.
19462 (spill_for): Use it.
19463
19464 2017-03-10 Jakub Jelinek <jakub@redhat.com>
19465
19466 PR tree-optimization/79981
19467 * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
19468 ATOMIC_COMPARE_EXCHANGE ifn result.
19469 (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
19470 IFN_ATOMIC_COMPARE_EXCHANGE.
19471
19472 2017-03-10 David Malcolm <dmalcolm@redhat.com>
19473
19474 PR driver/79875
19475 * opts.c (parse_sanitizer_options): Add missing question mark to
19476 "did you mean" message.
19477
19478 2017-03-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19479
19480 * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
19481 built-in.
19482 (VMULEUH_UNS): Likewise.
19483 (VMULOUB_UNS): Likewise.
19484 (VMULOUH_UNS): Likewise.
19485 * config/rs6000/rs6000.c (builtin_function_type): Remove
19486 references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
19487
19488 2017-03-10 David Malcolm <dmalcolm@redhat.com>
19489
19490 PR bootstrap/79952
19491 * read-rtl-function.c (function_reader::read_rtx_operand): Update
19492 x with result of extra_parsing_for_operand_code_0.
19493 (function_reader::extra_parsing_for_operand_code_0): Convert
19494 return type from void to rtx, returning x. When reading
19495 SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
19496 larger size containing struct block_symbol.
19497
19498 2017-03-10 Segher Boessenkool <segher@kernel.crashing.org>
19499
19500 * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
19501 -mfloat128-hardware without -m64.
19502
19503 2017-03-10 Will Schmidt <will_schmidt@vnet.ibm.com>
19504
19505 PR target/79941
19506 * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
19507 entries to the case statement that marks unsigned arguments to
19508 overloaded functions.
19509
19510 2017-03-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
19511
19512 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
19513 two typographic errors in the handling of TARGET_UPPER_REGS_DI.
19514
19515 2017-03-10 Pat Haugen <pthaugen@us.ibm.com>
19516
19517 PR target/79907
19518 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
19519 TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
19520
19521 2017-03-10 Martin Liska <mliska@suse.cz>
19522
19523 PR target/65705
19524 PR target/69804
19525 * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
19526 * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
19527 FIELD != NULL.
19528
19529 2017-03-10 Olivier Hainque <hainque@adacore.com>
19530
19531 * tree-switch-conversion (array_value_type): Start by resetting
19532 candidate type to it's main variant.
19533
19534 2017-03-10 Jakub Jelinek <jakub@redhat.com>
19535
19536 PR rtl-optimization/79909
19537 * combine.c (try_combine): Use simplify_replace_rtx on individual
19538 CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
19539 of the whole CALL_INSN_FUNCTION_USAGE.
19540
19541 PR tree-optimization/79972
19542 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
19543 get_range_info on SSA_NAMEs. Formatting fixes.
19544
19545 2017-03-10 Richard Biener <rguenther@suse.de>
19546 Jakub Jelinek <jakub@redhat.com>
19547
19548 PR tree-optimization/77975
19549 * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
19550 edge to be constant.
19551 (get_val_for): For constant x return it. Formatting fix.
19552 (loop_niter_by_eval): Avoid pointless looping if the next iteration
19553 would use the same bases as the current one.
19554
19555 2017-03-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19556
19557 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
19558 instead of vec_select for V1TImode.
19559 * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
19560 longer needed.
19561 (VSX_LE_128): Add V1TI to this mode iterator.
19562 (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
19563 (*vsx_le_perm_store_<mode>): Likewise.
19564 (pre-reload splitter for VSX stores): Likewise.
19565 (post-reload splitter for VSX stores): Likewise.
19566 (*vsx_xxpermdi2_le_<mode>): Likewise.
19567 (*vsx_lxvd2x2_le_<mode>): Likewise.
19568 (*vsx_stxvd2x2_le_<mode>): Likewise.
19569
19570 2017-03-09 Michael Eager <eager@eagercon.com>
19571
19572 Correct failures with --enable-checking=yes,rtl.
19573
19574 * config/microblaze/microblaze.c (microblaze_expand_shift):
19575 Replace GET_CODE test with CONST_INT_P and INTVAL test with
19576 test for const0_rtx.
19577 * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
19578 lshrsi3_byone): Replace INTVAL with test for const1_rtx.
19579
19580 2017-03-09 Richard Biener <rguenther@suse.de>
19581
19582 PR tree-optimization/79977
19583 * graphite-scop-detection.c (scop_detection::merge_sese):
19584 Handle the case of extra exits to blocks dominating the entry.
19585
19586 2017-03-09 Toma Tabacu <toma.tabacu@imgtec.com>
19587
19588 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
19589 Document rdynamic.
19590
19591 2017-03-09 Vladimir Makarov <vmakarov@redhat.com>
19592
19593 PR rtl-optimization/79949
19594 * lra-constraints.c (process_alt_operands): Check memory when
19595 trying to predict a cycle. Print about the overall increase.
19596
19597 2017-03-09 Richard Biener <rguenther@suse.de>
19598
19599 PR middle-end/79971
19600 * gimple-expr.c (useless_type_conversion_p): Preserve
19601 TYPE_SATURATING for fixed-point types.
19602
19603 2017-03-09 Richard Biener <rguenther@suse.de>
19604
19605 PR ipa/79970
19606 * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
19607 alignment of BLKmode params.
19608
19609 2017-03-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19610
19611 PR target/79913
19612 * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
19613 (VALL_NO_V2Q): Likewise.
19614 (VDQF_DF): Delete.
19615 * config/aarch64/aarch64-simd.md
19616 (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
19617 iterator.
19618 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
19619 VALL_NO_V2Q mode iterator.
19620 (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
19621
19622 2017-03-09 Martin Liska <mliska@suse.cz>
19623
19624 PR tree-optimization/79631
19625 * tree-chkp-opt.c (chkp_is_constant_addr): Call
19626 tree_int_cst_sign_bit just for INTEGER constants.
19627
19628 2017-03-09 Martin Liska <mliska@suse.cz>
19629
19630 PR target/65705
19631 PR target/69804
19632 * toplev.c (process_options): Disable -fcheck-pointer-bounds with
19633 sanitizers.
19634
19635 2017-03-09 Marek Polacek <polacek@redhat.com>
19636
19637 PR c++/79672
19638 * tree.c (inchash::add_expr): Handle TREE_VEC.
19639
19640 2017-03-09 Martin Liska <mliska@suse.cz>
19641
19642 PR ipa/79764
19643 (chkp_narrow_size_and_offset): New function.
19644 (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
19645 (void chkp_parse_bit_field_ref): New function.
19646 (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
19647 (chkp_process_stmt): Use chkp_parse_bit_field_ref.
19648
19649 2017-03-09 Martin Liska <mliska@suse.cz>
19650
19651 PR ipa/79761
19652 * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
19653 (chkp_find_bounds_1): Remove gcc_unreachable.
19654
19655 2017-03-09 Jakub Jelinek <jakub@redhat.com>
19656
19657 PR sanitizer/79944
19658 * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
19659 BUILT_IN_SYNC*, determine the access type from the size suffix and
19660 always build a MEM_REF with that type. Handle forgotten
19661 BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
19662
19663 PR target/79932
19664 * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
19665 _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
19666 _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
19667 _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
19668 _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
19669 _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
19670 _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
19671 _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
19672 _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
19673 _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
19674 _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
19675 _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
19676 _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
19677 _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
19678 _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
19679 _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
19680 _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
19681 _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
19682 _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
19683 _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
19684 _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
19685 _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
19686 _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
19687 _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
19688 _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
19689 _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
19690 _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
19691 _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
19692 _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
19693 _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
19694 definitions outside of __OPTIMIZE__ guarded section.
19695
19696 PR target/79932
19697 * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
19698 _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
19699 _mm512_packus_epi32, _mm512_maskz_packus_epi32,
19700 _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
19701 guarded section.
19702
19703 2017-03-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19704
19705 * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
19706 ("vfenez<mode>"): Add missing constraints.
19707
19708 2017-03-08 Martin Sebor <msebor@redhat.com>
19709
19710 PR target/79928
19711 * config/nds32/nds32.c (nds32_option_override):
19712 Fix misspelled diagnostic.
19713
19714 2017-03-08 Jakub Jelinek <jakub@redhat.com>
19715
19716 PR c/79940
19717 * gimplify.c (gimplify_omp_for): Replace index var in outer
19718 taskloop statement with an artificial variable and add
19719 OMP_CLAUSE_PRIVATE clause for it.
19720
19721 2017-03-08 Richard Biener <rguenther@suse.de>
19722
19723 PR tree-optimization/79955
19724 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
19725 for accesses that are completely outside of the variable.
19726
19727 2017-03-08 Andrew Haley <aph@redhat.com>
19728
19729 PR tree-optimization/79943
19730 * tree-ssa-loop-split.c (compute_new_first_bound): When
19731 calculating the new upper bound, (END-BEG) should be added, not
19732 subtracted.
19733
19734 2017-03-08 Jakub Jelinek <jakub@redhat.com>
19735
19736 * config/avr/avr.md (setmemhi): Make sure match_dup
19737 operand number comes before match_scratch.
19738
19739 2017-03-08 Richard Biener <rguenther@suse.de>
19740
19741 PR tree-optimization/79920
19742 * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
19743 with ncopies == 1 to ...
19744 (vect_transform_slp_perm_load): ... here. Properly compute
19745 all element loads by iterating VF times over the group. Do
19746 not handle ncopies (computed in a broken way) in
19747 vect_create_mask_and_perm.
19748
19749 2017-03-08 Jakub Jelinek <jakub@redhat.com>
19750
19751 PR sanitizer/79904
19752 * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
19753 is a uniform vector, use uniform_vector_p return value instead of
19754 building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
19755
19756 2017-03-07 Marek Polacek <polacek@redhat.com>
19757
19758 PR middle-end/79809
19759 * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
19760 (alloca_call_type): Likewise.
19761
19762 2017-03-07 Martin Liska <mliska@suse.cz>
19763
19764 * gcov.c (process_args): Put comment to correct location.
19765
19766 2017-03-07 Martin Liska <mliska@suse.cz>
19767
19768 PR middle-end/68270
19769 * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
19770 Use array_at_struct_end_p instead of DECL_CHAIN (field).
19771 (chkp_narrow_bounds_for_field): Likewise.
19772 (chkp_parse_array_and_component_ref): Pass one more argument to
19773 call.
19774
19775 2017-03-07 Richard Biener <rguenther@suse.de>
19776
19777 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
19778 preheaders.
19779
19780 2017-03-07 Segher Boessenkool <segher@kernel.crashing.org>
19781
19782 * config/i386/i386.c (ix86_local_alignment): Align most aggregates
19783 of 16 bytes and more to 16 bytes, not those of 16 bits and more.
19784
19785 2017-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19786
19787 PR c/79855
19788 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
19789 to end of description.
19790 (PARAM_MAX_STORES_TO_MERGE): Likewise.
19791
19792 2017-03-07 Jakub Jelinek <jakub@redhat.com>
19793
19794 PR rtl-optimization/79901
19795 * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
19796 ...
19797 (*avx512f_<code><mode>3<mask_name>): ... this.
19798 (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
19799 iterator instead of VI8_AVX2_AVX512BW.
19800
19801 PR rtl-optimization/79901
19802 * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
19803 min/max expander, expand it using expand_vec_cond_expr.
19804
19805 PR sanitizer/79897
19806 * ubsan.c (ubsan_encode_value): Call mark_addressable on the
19807 temporary.
19808
19809 2017-03-06 Jakub Jelinek <jakub@redhat.com>
19810
19811 PR c++/79821
19812 * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
19813 to void * for PCH reasons.
19814 * dwarf2out.c (output_loc_operands, output_die): Cast
19815 v.val_vec.array to unsigned char *.
19816
19817 2017-03-06 John David Anglin <danglin@gcc.gnu.org>
19818
19819 PR target/77850
19820 * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
19821 vector types.
19822
19823 2017-03-06 Vladimir Makarov <vmakarov@redhat.com>
19824
19825 PR rtl-optimization/79571
19826 * lra-constraints.c (process_alt_operands): Calculate static
19827 reject and subtract it from overall when only addresses will be
19828 reloaded.
19829
19830 2017-03-06 Julia Koval <julia.koval@intel.com>
19831
19832 PR target/79793
19833 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
19834 incoming stack boundary to 128 for 64-bit targets.
19835
19836 2017-03-06 Richard Biener <rguenther@suse.de>
19837
19838 PR tree-optimization/79894
19839 * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
19840 to NULL after folding it.
19841
19842 2017-03-06 Richard Biener <rguenther@suse.de>
19843
19844 PR tree-optimization/79824
19845 * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
19846 check disabling peeling for gaps.
19847
19848 2017-03-06 Toma Tabacu <toma.tabacu@imgtec.com>
19849
19850 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
19851 attributes): Document gettimeofday.
19852
19853 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
19854
19855 * config/s390/s390.c (s390_option_override_internal): Set
19856 PARAM_MIN_VECT_LOOP_BOUND
19857
19858 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
19859
19860 * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
19861 * config/s390/s390.md: Likewise.
19862
19863 2017-03-06 Jakub Jelinek <jakub@redhat.com>
19864
19865 PR target/79812
19866 * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
19867 (<avx2_avx512>_perm<mode>): Rename to ...
19868 (avx2_perm<mode>): ... this. Use VI8F_256 iterator instead
19869 of VI8F_256_512.
19870 (<avx512>_perm<mode>_mask): Rename to ...
19871 (avx512vl_perm<mode>_mask): ... this. Use VI8F_256 iterator instead
19872 of VI8F_256_512.
19873 (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
19874 (avx2_perm<mode>_1<mask_name): ... this. Use VI8F_256 iterator
19875 instead of VI8F_256_512.
19876 (avx512f_perm<mode>): New define_expand.
19877 (avx512f_perm<mode>_mask): Likewise.
19878 (avx512f_perm<mode>_1<mask_name>): New define_insn.
19879 (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
19880
19881 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
19882
19883 * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
19884 msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
19885 if_then_else.
19886 (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
19887
19888 2017-03-06 Martin Liska <mliska@suse.cz>
19889
19890 PR sanitize/79783
19891 * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
19892 when having a SSA NAME w/o VAR_DECL assigned to it.
19893
19894 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
19895
19896 * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
19897 msa_dpsub_<su>_d): Fix MODE for vec_select.
19898
19899 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
19900
19901 * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
19902 argument.
19903 * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
19904
19905 2017-03-06 Richard Biener <rguenther@suse.de>
19906
19907 * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
19908 * plugin.c (register_plugin_info): Likewise.
19909 * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
19910
19911 2017-03-05 Jakub Jelinek <jakub@redhat.com>
19912
19913 * config/i386/sse.md (sse_storehps, sse_storelps,
19914 avx_<castmode><avxsizesuffix>_<castmode>,
19915 avx512f_<castmode><avxsizesuffix>_<castmode>,
19916 avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
19917 in condition that at least one operand is not a MEM.
19918
19919 2017-03-03 Jakub Jelinek <jakub@redhat.com>
19920
19921 PR middle-end/79805
19922 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
19923 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
19924 ECF_NOTHROW.
19925 * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
19926 gimple_call_nothrow_p flag based on whether original builtin can throw.
19927 If it can, emit following stmts on the fallthrough edge.
19928 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
19929 don't create new bb if inserting just debug stmts on the edge, try to
19930 insert them on the fallthru bb or just reset debug stmts.
19931
19932 2017-03-03 Segher Boesssenkool <segher@kernel.crashing.org>
19933
19934 PR target/43763
19935 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
19936 restore recog_data (including the operand rtxes inside it) around
19937 the call to get_insn_template.
19938
19939 2017-03-03 Martin Sebor <msebor@redhat.com>
19940
19941 PR tree-optimization/79699
19942 * context.c (context::~context): Free MPFR caches to avoid
19943 a memory leak on program exit.
19944
19945 2017-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19946
19947 * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
19948 Use wide_int::ulow () instead of .elt (0).
19949
19950 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
19951
19952 * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
19953 (*pushxf): Limit oF constraint to 32bit targets and add oC
19954 constraint for 64bit targets.
19955 (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
19956 (*pushdf): Change rmF constraint to rmC.
19957
19958 2017-03-03 Martin Liska <mliska@suse.cz>
19959
19960 * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
19961 Remove unused variable.
19962
19963 2017-03-03 Jakub Jelinek <jakub@redhat.com>
19964
19965 PR target/79807
19966 * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
19967 is a memory operand, increase num_memory.
19968 (ix86_expand_args_builtin): Likewise.
19969
19970 2017-03-03 Jan Hubicka <jh@suse.cz>
19971
19972 PR lto/79760
19973 * ipa-devirt.c (maybe_record_node): Properly handle
19974 __cxa_pure_virtual visibility.
19975
19976 2017-03-03 Martin Liska <mliska@suse.cz>
19977
19978 PR tree-optimization/79803
19979 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
19980 assert.
19981 (pass_loop_prefetch::execute): Disabled optimization if an
19982 assumption about L1 cache size is not met.
19983
19984 2017-03-03 Martin Liska <mliska@suse.cz>
19985
19986 PR rtl-optimization/79574
19987 * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
19988 (hash_scan_set): Likewise.
19989 (dump_hash_table): Likewise.
19990 (hoist_code): Likewise.
19991
19992 2017-03-03 Richard Biener <rguenther@suse.de>
19993
19994 * fixed-value.c (fixed_from_string): Restore use of elt (1)
19995 in place of uhigh ().
19996 (fixed_convert_from_real): Likewise.
19997
19998 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
19999
20000 PR target/79514
20001 * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
20002
20003 2017-03-03 Richard Biener <rguenther@suse.de>
20004
20005 PR middle-end/79818
20006 * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
20007 TYPE_OVERFLOW_UNDEFINED check.
20008
20009 2017-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20010
20011 * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
20012 numbers.
20013 (vector_ae_<mode>_p): Likewise.
20014 (vector_nez_<mode>_p): Likewise.
20015 (vector_ne_v2di_p): Likewise.
20016 (vector_ae_v2di_p): Likewise.
20017 (vector_ne_<mode>_p): Likewise.
20018 * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
20019 numbers.
20020 (vsx_tsqrt<mode>2_fe): Likewise.
20021
20022 2017-03-02 Uros Bizjak <ubizjak@gmail.com>
20023
20024 PR target/79514
20025 * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
20026
20027 2017-03-02 Jakub Jelinek <jakub@redhat.com>
20028
20029 PR rtl-optimization/79780
20030 * cprop.c (one_cprop_pass): When second and further conditional trap
20031 in a single basic block is turned into an unconditional trap, turn it
20032 into a deleted note to avoid RTL verification failures.
20033
20034 2017-03-02 Richard Biener <rguenther@suse.de>
20035
20036 * fold-const.c (const_binop): Use ulow () instead of elt (0).
20037
20038 2017-03-02 Richard Biener <rguenther@suse.de>
20039
20040 PR tree-optimization/79345
20041 PR c++/42000
20042 * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
20043 param and abort the walk, returning -1 if it is hit.
20044 (walk_aliased_vdefs): Take a limit param and pass it on.
20045 * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
20046 defaulting to 0 and return a signed int.
20047 * tree-ssa-uninit.c (struct check_defs_data): New struct.
20048 (check_defs): New helper.
20049 (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
20050 about uninitialized memory.
20051 * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
20052 bogus uninitialized warning.
20053 (fixed_convert_from_real): Likewise.
20054
20055 2017-03-02 Bin Cheng <bin.cheng@arm.com>
20056
20057 PR tree-optimization/66768
20058 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
20059 iv_use if base object can't be determined.
20060
20061 2017-03-02 Jakub Jelinek <jakub@redhat.com>
20062
20063 PR tree-optimization/79345
20064 * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
20065 * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
20066 (get_pattern_stats): Initialize it.
20067 * genemit.c (gen_expand): Verify match_scratch numbers come after
20068 match_operand/match_dup numbers.
20069 * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
20070 match_scratch numbers.
20071 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
20072 Likewise.
20073 * config/s390/s390.md (trunctdsd2): Likewise.
20074
20075 2017-03-02 Richard Biener <rguenther@suse.de>
20076
20077 * wide-int.h (wide_int_storage::operator=): Implement in terms
20078 of wi::copy.
20079
20080 2017-03-02 Richard Biener <rguenther@suse.de>
20081
20082 PR tree-optimization/79777
20083 * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
20084 the to insert expression to sth existing.
20085
20086 2017-03-01 Martin Sebor <msebor@redhat.com>
20087
20088 PR middle-end/79692
20089 * gimple-ssa-sprintf.c
20090 (directive::known_width_and_precision): New function.
20091 (format_integer): Use it.
20092 (get_mpfr_format_length): Consider the full range of precision
20093 when computing %g output with the # flag. Set the likely byte
20094 count to 3 rather than 1 when precision is indeterminate.
20095 (format_floating): Correct the lower bound of precision.
20096
20097 2017-03-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20098
20099 * doc/invoke.texi: Document default code model for 64-bit Linux.
20100
20101 2017-03-01 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
20102
20103 PR target/79752
20104 * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
20105 udiv rather than div since input pattern is unsigned.
20106
20107 2017-03-01 Uros Bizjak <ubizjak@gmail.com>
20108
20109 * config/i386/i386.c (print_reg): Warn for values of
20110 unsupported size in integer register.
20111
20112 2017-03-01 Michael Meissner <meissner@linux.vnet.ibm.com>
20113
20114 PR target/79439
20115 * config/rs6000/predicates.md (current_file_function_operand): Do
20116 not allow self calls to be local if the function is replaceable.
20117
20118 2017-03-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
20119
20120 PR target/79395
20121 * config/rs6000/altivec.h (vec_ctz and others): Change the
20122 preprocessor macro that controls conditional compilation from
20123 _ARCH_PWR9 to __POWER9_VECTOR__.
20124 (vec_all_ne): Change parameterization of __altivec_scalar_pred
20125 macro expansion under preprocessor #ifdef __POWER9_VECTOR__
20126 control (instead of _ARCH_PWR9 control) so that template
20127 definition uses power9-specific function.
20128 (vec_any_eq): Likewise.
20129 (vec_all_ne): Change macro definition to use a power9-specific
20130 expansion under #ifdef __POWER9_VECTOR__ control (instead of
20131 _ARCH_PWR9 control).
20132 (vec_any_eq) Likewise.
20133 * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
20134 expansion for CMPNEF to remove support for xvcmpnesp instruction.
20135 (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
20136 support for xvcmpnedp instruction.
20137 (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
20138 macro expansion so that Power9 implementation of vec_all_ne does
20139 not use the AltiVec predicate framework.
20140 (VCMPNEH_P): Likewise.
20141 (VCMPNEW_P): Likewise.
20142 (VCMPNED_P): Likewise.
20143 (VCMPNEFP_P): Likewise.
20144 (VCMPNEDP_P): Likewise.
20145 (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
20146 implementation of vec_any_eq to not use AltiVec predicate
20147 framework.
20148 (VCMPAEH_P): Likewise.
20149 (VCMPAEW_P): Likewise.
20150 (VCMPAED_P): Likewise.
20151 (VCMPAEFP_P): Likewise.
20152 (VCMPAEDP_P): Likewise.
20153 (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
20154 BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
20155 not use the AltiVec predicate framework.
20156 (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
20157 of vec_any_eq to not use AltiVec predicate framework.
20158 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
20159 support for predefined __POWER9_VECTOR__ macro to indicate that
20160 Power9 instruction selection is enabled.
20161 (altivec_overloaded_builtins): Remove extraneous
20162 ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
20163 function argument types RS6000_BTI_bool_V16QI and
20164 RS6000_BTI_bool_V16QI. Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
20165 entry for overloaded function argument types RS6000_BTI_bool_V4SI
20166 andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB. Remove
20167 two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
20168 P9V_BUILTIN_CMPNEF to force use of instructions not specific to
20169 Power9 for implementations of vec_cmpne. Change the signature for
20170 all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
20171 (representing vec_all_ne) to remove the previously described first
20172 argument of type RS6000_BTI_INTSI, as this was an artifact of
20173 reliance on the AltiVec predicate framework, which is no longer
20174 used in the implementation of these functions. Add
20175 P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
20176 function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
20177 since, unlike the AltiVec predicate framework implementation, we
20178 do not share function descriptors between vec_alle and vec_anyeq.
20179 (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
20180 set of modes that receive special treatment even when
20181 TARGET_P9_VECTOR is true. The special treatment emits code that
20182 does not depend on Power9 instructions.
20183 * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
20184 define_expand to not rely on AltiVec predicate framework.
20185 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
20186 function.
20187 (vector_ne_v2di_p): Change this define_expand to not rely on
20188 AltiVec predicate framework.
20189 (vector_ae_v2di_p): New define_expand to represent vec_any_eq
20190 function.
20191 (vector_ne_<mode>_p): Change this define_expand to not rely on
20192 AltiVec predicate framework.
20193 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
20194 function.
20195 * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
20196 (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
20197 define_insn pattern.
20198 (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
20199 define_insn pattern because the xvcmpne<VSs>. instruction is not
20200 supported.
20201 (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
20202 instruction is not supported.
20203
20204 2017-03-01 Jakub Jelinek <jakub@redhat.com>
20205
20206 * config/nvptx/nvptx.c: Include intl.h.
20207
20208 2017-03-01 Martin Jambor <mjambor@suse.cz>
20209
20210 PR lto/78140
20211 * ipa-prop.h (ipa_bits): Removed field known.
20212 (ipa_jump_func): Removed field vr_known. Changed fields bits and m_vr
20213 to pointers. Adjusted their comments to warn about their sharing.
20214 (ipcp_transformation_summary): Change bits to a vector of pointers.
20215 (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
20216 (ipa_get_ipa_bits_for_value): Declare.
20217 * tree-vrp.h (value_range): Mark as GTY((for_user)).
20218 * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
20219 (ipa_bits_hash_table): Likewise.
20220 (ipa_vr_ggc_hash_traits): Likewise.
20221 (ipa_vr_hash_table): Likewise.
20222 (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
20223 being pointers and vr_known being removed.
20224 (ipa_set_jf_unknown): Likewise.
20225 (ipa_get_ipa_bits_for_value): New function.
20226 (ipa_set_jfunc_bits): Likewise.
20227 (ipa_get_value_range): New overloaded functions.
20228 (ipa_set_jfunc_vr): Likewise.
20229 (ipa_compute_jump_functions_for_edge): Use the above functions to
20230 construct bits and vr parts of jump functions.
20231 (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
20232 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
20233 exist.
20234 (ipcp_grow_transformations_if_necessary): Also allocate
20235 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
20236 exist.
20237 (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
20238 them. Fix too long lines.
20239 (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
20240 vr_known being removed.
20241 (ipa_read_jump_function): Use new setter functions to construct bits
20242 and vr parts of jump functions or set them to NULL.
20243 (write_ipcp_transformation_info): Adjust for bits being pointers.
20244 (read_ipcp_transformation_info): Likewise.
20245 (ipcp_update_bits): Likewise. Fix excessively long lines a trailing
20246 space.
20247 Include gt-ipa-prop.h.
20248 * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
20249 being pointers.
20250 (ipcp_store_bits_results): Likewise.
20251 (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
20252 Do not write to existing jump functions but use a temporary instead.
20253
20254 2017-03-01 Jakub Jelinek <jakub@redhat.com>
20255
20256 PR c++/79681
20257 * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
20258 attempt to use its first operand as BIT_FIELD_REF base.
20259
20260 2017-03-01 Richard Biener <rguenther@suse.de>
20261
20262 PR middle-end/79721
20263 * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
20264 interpolating formula in wrapping arithmetic.
20265 (chrec_apply): Convert chrec_evaluate return value to wanted type.
20266
20267 2017-03-01 Jakub Jelinek <jakub@redhat.com>
20268
20269 PR tree-optimization/79734
20270 * tree-vect-generic.c (expand_vector_condition): Optimize
20271 AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
20272 Handle VEC_COND_EXPR where comparison has different inner width from
20273 type's inner width.
20274
20275 2017-02-28 Sandra Loosemore <sandra@codesourcery.com>
20276
20277 * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
20278 markup, and similar issues. Remove @opindex entries for things
20279 that aren't options. Add missing -mmpy-option entries.
20280
20281 2017-02-28 Jakub Jelinek <jakub@redhat.com>
20282
20283 PR tree-optimization/79737
20284 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
20285 a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
20286 tmpbuf[byte_size - 1]. Call natice_encode_expr with byte_size - 1
20287 instead of byte_size. Formatting fix.
20288 (shift_bytes_in_array_right): Formatting fix.
20289
20290 2017-02-28 Eric Botcazou <ebotcazou@adacore.com>
20291
20292 PR target/79749
20293 * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
20294 condition on optimize for the leaf function test.
20295
20296 2017-02-28 Martin Liska <mliska@suse.cz>
20297
20298 PR lto/79625
20299 * read-rtl-function.c (function_reader::handle_unknown_directive):
20300 Bail out when one uses -flto.
20301
20302 2017-02-28 Martin Liska <mliska@suse.cz>
20303
20304 * common.opt: Replace space with tabular for options of <number>
20305 type.
20306 * config/i386/i386.opt: Show <number> value for
20307 -mlarge-data-threshold.
20308 * opts.c (print_filtered_help): Do not display number in hexadecimal
20309 format.
20310
20311 2017-02-28 Martin Liska <mliska@suse.cz>
20312
20313 * common.opt: Fix --help=option -Q for options which are of
20314 an enum type.
20315
20316 2017-02-28 Uros Bizjak <ubizjak@gmail.com>
20317
20318 * config/i386/i386.c (print_reg): Error out for values
20319 of 8-bit size in invalid integer register.
20320
20321 2017-02-28 Martin Sebor <msebor@redhat.com>
20322
20323 PR tree-optimization/79691
20324 * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
20325
20326 2017-02-28 Jakub Jelinek <jakub@redhat.com>
20327
20328 PR target/79729
20329 * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
20330 gcc_unreachable with output_operand_lossage.
20331
20332 2017-02-28 Richard Biener <rguenther@suse.de>
20333
20334 PR tree-optimization/79740
20335 * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
20336 inserts.
20337 (visit_nary_op): Insert the nary into the hashtable if we
20338 pattern-matched sth.
20339 * tree-ssa-pre.c (eliminate_insert): Robustify.
20340
20341 2017-02-28 Richard Biener <rguenther@suse.de>
20342
20343 PR middle-end/79731
20344 * fold-const.c (decode_field_reference): Reject out-of-bound
20345 accesses.
20346
20347 2017-02-28 Jakub Jelinek <jakub@redhat.com>
20348
20349 * config/i386/i386.c: Include intl.h.
20350 (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
20351 instead of just cond ? "..." : "...".
20352 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
20353 * coverage.c (read_counts_file): Likewise.
20354 * omp-offload.c: Include intl.h.
20355 (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
20356 of just cond ? "..." : "...".
20357 * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
20358 of just cond ? "..." : "...".
20359
20360 2017-02-28 Richard Earnshaw <rearnsha@arm.com>
20361
20362 PR target/79742
20363 * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
20364 entry, if present.
20365 * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
20366 'tune for' CPU name.
20367 * config/arm/arm-cpu-data.h: Regenerated.
20368
20369 2017-02-28 Richard Biener <rguenther@suse.de>
20370
20371 PR tree-optimization/79732
20372 * tree-inline.c (expand_call_inline): Do not shadow var.
20373
20374 2017-02-28 Richard Biener <rguenther@suse.de>
20375
20376 PR tree-optimization/79723
20377 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
20378 address-space properly.
20379
20380 2017-02-28 Thomas Schwinge <thomas@codesourcery.com>
20381
20382 * doc/optinfo.texi (Optimization groups): Fix option used for
20383 OPTGROUP_ALL.
20384 * doc/invoke.texi (-fopt-info): Document "omp".
20385 * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
20386 (OPTGROUP_ALL): Add OPTGROUP_OMP.
20387 * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
20388 * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
20389 * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
20390
20391 * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP. Adjust
20392 all users.
20393 * dumpfile.c (optgroup_options): Instead of "openmp", associate
20394 OPTGROUP_OMP with "omp".
20395
20396 2017-02-27 Pat Haugen <pthaugen@us.ibm.com>
20397
20398 PR target/79544
20399 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
20400 for arithmetic shift of unsigned V2DI.
20401
20402 2017-02-27 Claudiu Zissulescu <claziss@synopsys.com>
20403
20404 * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
20405 arc/linux.h headers.
20406 * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
20407 (LINK_SPEC): Likewise.
20408 (ARC_TLS_EXTRA_START_SPEC): Likewise.
20409 (EXTRA_SPECS): Likewise.
20410 (STARTFILE_SPEC): Likewise.
20411 (ENDFILE_SPEC): Likewise.
20412 (LIB_SPEC): Likewise.
20413 (TARGET_SDATA_DEFAULT): Likewise.
20414 (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
20415 (MULTILIB_DEFAULTS): Likewise.
20416 (DWARF2_UNWIND_INFO): Likewise.
20417 * config/arc/big.h: New file.
20418 * config/arc/elf.h: Likewise.
20419 * config/arc/linux.h: Likewise.
20420 * config/arc/t-uClibc: Remove.
20421
20422 2017-02-27 Bin Cheng <bin.cheng@arm.com>
20423
20424 PR tree-optimization/77536
20425 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
20426 (tree_transform_and_unroll_loop): Use above function to compute the
20427 estimated niter of unrolled loop and use it when scaling profile.
20428 Also use count info rather than frequency if it's non-zero.
20429 * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
20430 * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
20431 (vect_transform_loop): Call above function.
20432
20433 2017-02-27 Richard Biener <rguenther@suse.de>
20434
20435 PR tree-optimization/45397
20436 * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
20437 * tree-ssa-sccvn.c (valueized_wider_op): New helper.
20438 (visit_nary_op): Add pattern matching for CSEing sign-changed
20439 or truncated operations with wider ones.
20440
20441 2017-02-27 Richard Biener <rguenther@suse.de>
20442
20443 PR tree-optimization/79690
20444 * tree-vect-stmts.c (vectorizable_store): Use vector type
20445 built from the DR with address-space.
20446
20447 2017-02-26 Gerald Pfeifer <gerald@pfeifer.com>
20448
20449 * doc/invoke.texi (Optimize Options): Refine the description
20450 of asan-use-after-return.
20451
20452 2017-02-25 Alan Modra <amodra@gmail.com>
20453
20454 PR rtl-optimization/79584
20455 * lra-constraints.c (base_to_reg): Reload ad->base, the entire
20456 base, not ad->base_term, the reg within base. Remove assertion
20457 that ad->base == ad->base_term. Replace gen_int_mode using
20458 bogus mode with const0_rtx.
20459
20460 2017-02-25 Jakub Jelinek <jakub@redhat.com>
20461
20462 PR middle-end/79396
20463 * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
20464 FMA_EXPR like tcc_binary or tcc_unary.
20465
20466 * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
20467
20468 PR debug/77589
20469 * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
20470 bitfield.
20471 (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
20472 (output_loc_operands): Handle DW_OP_call_ref and
20473 DW_OP_GNU_variable_value.
20474 (struct variable_value_struct): New type.
20475 (struct variable_value_hasher): Likewise.
20476 (variable_value_hash): New variable.
20477 (string_types): Remove.
20478 (copy_loc_descr): New function.
20479 (add_loc_descr_to_each): Clarify comment. Use copy_loc_descr.
20480 (prepend_loc_descr_to_each): New function.
20481 (add_loc_list): Fix comment typo. Use prepend_loc_descr_to_each
20482 instead of add_loc_descr_to_each if the first argument is single
20483 location list and the second has multiple.
20484 (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
20485 (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
20486 when looking for variable value which doesn't have other location info.
20487 (loc_list_from_tree): Formatting fix.
20488 (gen_array_type_die): Simplify DW_AT_string_length handling.
20489 (adjust_string_types): Remove.
20490 (gen_subprogram_die): Don't call adjust_string_types nor test/set
20491 string_types. Call resolve_variable_values.
20492 (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
20493 (resolve_addr_in_expr): Likewise. Add A argument.
20494 (copy_deref_exprloc): Remove deref argument. Adjust for the
20495 original expression being DW_OP_GNU_variable_value with optionally
20496 DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
20497 optionally after it.
20498 (optimize_string_length): Rework for DW_OP_GNU_variable_value.
20499 (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
20500 callers. Set remove_AT_byte_size if removing DW_AT_string_length.
20501 (variable_value_hasher::hash, variable_value_hasher::equal): New
20502 methods.
20503 (resolve_variable_value_in_expr, resolve_variable_value,
20504 resolve_variable_values, note_variable_value_in_expr,
20505 note_variable_value): New functions.
20506 (dwarf2out_early_finish): Call note_variable_value on all toplevel
20507 DIEs.
20508
20509 2017-02-24 Jakub Jelinek <jakub@redhat.com>
20510
20511 PR c/79677
20512 * opts.h (handle_generated_option): Add GENERATED_P argument.
20513 * opts-common.c (handle_option): Adjust function comment.
20514 (handle_generated_option): Add GENERATED_P argument, pass it to
20515 handle_option.
20516 (control_warning_option): Pass false to handle_generated_option
20517 GENERATED_P.
20518 * opts.c (maybe_default_option): Pass true to handle_generated_option
20519 GENERATED_P.
20520 * optc-gen.awk: Likewise.
20521
20522 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
20523
20524 * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
20525 a REG, look at the REG it is a SUBREG of.
20526 (splitter for cmpeqsi_t): Ditto.
20527
20528 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
20529
20530 * config/pa/pa.c (pa_combine_instructions): Do not share RTL. Make
20531 the special USEs with the pattern of the insn, not the insn itself.
20532
20533 2017-02-24 Matthew Fortune <matthew.fortune@imgtec.com>
20534
20535 PR target/79473
20536 * doc/invoke.texi: Document -mload-store-pairs.
20537
20538 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
20539 Sandra Loosemore <sandra@codesourcery.com>
20540
20541 * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
20542 argument isn't a CONST_INT.
20543 (nios2_alternate_compare_const): Assert op is a CONST_INT.
20544 (nios2_valid_compare_const_p): Assert op is a CONST_INT.
20545 (nios2_validate_compare): Bypass alternate compare logic if *op2
20546 is not a CONST_INT.
20547 (ldstwm_operation_p): Return false if first_base is not a REG or
20548 if first_offset is not a CONST_INT.
20549
20550 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
20551
20552 * config/cris/cris.md: Use correct operand in a define_peephole2.
20553
20554 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
20555
20556 * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
20557
20558 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
20559
20560 * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
20561 this_insn if it is an INSN or JUMP_INSN.
20562 (force_offsettable): Look at base, not at addr.
20563 * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
20564 on things that aren't necessarily CONST_INTs.
20565
20566 2017-02-24 Uros Bizjak <ubizjak@gmail.com>
20567
20568 * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
20569 -mfpmath=sse is the default also for x86-32 targets with SSE2
20570 instruction set when @option{-ffast-math} is enabled
20571
20572 2017-02-24 Jeff Law <law@redhat.com>
20573
20574 PR rtl-optimizatoin/79286
20575 * ira.c (update_equiv_regs): Drop may_trap_p exception to
20576 dominance test.
20577
20578 2017-02-24 Richard Biener <rguenther@suse.de>
20579
20580 PR tree-optimization/79389
20581 * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
20582 debug insns.
20583
20584 2017-02-24 Aldy Hernandez <aldyh@redhat.com>
20585
20586 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
20587 function comment to reflect reality.
20588 (loop_exits_before_overflow): Fix typo in function description.
20589
20590 2017-02-24 Richard Biener <rguenther@suse.de>
20591
20592 PR tree-optimization/79389
20593 * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
20594 properly that a threading opportunity exists. Detect conditional
20595 copy/constant propagation opportunities.
20596
20597 2017-02-23 Eric Botcazou <ebotcazou@adacore.com>
20598
20599 * config/visium/visium.md (type): Add trap.
20600 (b): New mode attribute.
20601 (*btst): Rename into...
20602 (*btst<mode>): ...this and adjust.
20603 (*cbranchsi4_btst_insn): Rename into...
20604 (*cbranch<mode>4_btst_insn): ...this and adjust.
20605 (trap): New define_insn.
20606
20607 2017-02-23 Jakub Jelinek <jakub@redhat.com>
20608
20609 PR tree-optimization/79389
20610 * ifcvt.c (struct noce_if_info): Add rev_cond field.
20611 (noce_reversed_cond_code): New function.
20612 (noce_emit_store_flag): Use rev_cond if non-NULL instead of
20613 reversed_comparison_code. Formatting fix.
20614 (noce_try_store_flag): Test rev_cond != NULL in addition to
20615 reversed_comparison_code.
20616 (noce_try_store_flag_constants): Likewise.
20617 (noce_try_store_flag_mask): Likewise.
20618 (noce_try_addcc): Use rev_cond if non-NULL instead of
20619 reversed_comparison_code.
20620 (noce_try_cmove_arith): Likewise. Formatting fixes.
20621 (noce_try_minmax, noce_try_abs): Clear rev_cond.
20622 (noce_find_if_block): Initialize rev_cond.
20623 (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
20624 instead of false as last argument never attempt to reverse it
20625 afterwards.
20626
20627 2017-02-23 Bin Cheng <bin.cheng@arm.com>
20628
20629 PR tree-optimization/79663
20630 * tree-predcom.c (combine_chains): Process refs in reverse order
20631 only for ZERO length chains, and add explaining comment.
20632
20633 2017-02-23 Jeff Law <law@redhat.com>
20634
20635 PR tree-optimization/79578
20636 * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
20637 in call to operand_equal_p.
20638
20639 2017-01-23 Dominique d'Humieres <dominiq@lps.ens.fr>
20640
20641 PR target/71017
20642 * config/i386/cpuid.h: Fix another undefined behavior.
20643
20644 2017-02-23 Richard Biener <rguenther@suse.de>
20645
20646 PR tree-optimization/79683
20647 * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
20648 vector types for data-refs.
20649
20650 2017-02-23 Martin Liska <mliska@suse.cz>
20651
20652 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
20653
20654 2017-02-23 Jakub Jelinek <jakub@redhat.com>
20655
20656 PR middle-end/79665
20657 * internal-fn.c (get_range_pos_neg): Moved to ...
20658 * tree.c (get_range_pos_neg): ... here. No longer static.
20659 * tree.h (get_range_pos_neg): New prototype.
20660 * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
20661 are known to be in between 0 and signed maximum inclusive, try to
20662 expand both unsigned and signed divmod and use the cheaper one from
20663 those.
20664
20665 2017-02-22 Jeff Law <law@redhat.com>
20666
20667 PR tree-optimization/79578
20668 * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
20669 to compare base operands.
20670
20671 2017-02-22 Segher Boessenkool <segher@kernel.crashing.org>
20672
20673 PR target/79211
20674 * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
20675 gpc_reg_operand instead of fpr_reg_operand.
20676
20677 2017-02-22 Sameera Deshpande <sameera.deshpande@imgtec.com>
20678
20679 * config/mips/mips.c (mips_return_in_memory): Force FP
20680 vector types to be returned in memory for o32 ABI.
20681
20682 2017-02-22 Jakub Jelinek <jakub@redhat.com>
20683
20684 * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
20685 instead of DW_TAG_member for static data member declarations and don't
20686 set no_linkage_name for static inline data members.
20687 (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
20688 to DW_TAG_member.
20689
20690 2017-02-22 Martin Liska <mliska@suse.cz>
20691
20692 * doc/invoke.texi: Replace inequality signs with square brackets
20693 for -Wnormalized.
20694
20695 2017-02-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20696
20697 PR tree-optimization/68644
20698 * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
20699
20700 2017-02-22 Matthew Fortune <matthew.fortune@imgtec.com>
20701
20702 PR target/78660
20703 * lra-constraints.c (simplify_operand_subreg): Handle
20704 WORD_REGISTER_OPERATIONS targets.
20705
20706 2017-02-22 Jakub Jelinek <jakub@redhat.com>
20707
20708 PR target/70465
20709 * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
20710 and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
20711 elimination by swapping fld*.
20712
20713 2017-02-22 Richard Biener <rguenther@suse.de>
20714
20715 PR tree-optimization/79673
20716 * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
20717 convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
20718 irrelevant address-space qualifiers and avoiding a
20719 ADDR_SPACE_CONVERT_EXPR from fold_convert.
20720
20721 2017-02-22 Richard Biener <rguenther@suse.de>
20722
20723 PR tree-optimization/79666
20724 * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
20725 to not symbolically negate if that may introduce undefined
20726 overflow.
20727
20728 2017-02-22 Martin Liska <mliska@suse.cz>
20729
20730 PR lto/79587
20731 * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
20732 * data-streamer-out.c (streamer_write_gcov_count_stream):
20733 Likewise.
20734 * value-prof.c (stream_out_histogram_value): Make assert more
20735 precise based on type of counter.
20736
20737 2017-02-21 Uros Bizjak <ubizjak@gmail.com>
20738
20739 PR target/79593
20740 * config/i386/i386.md (standard_x87sse_constant_load splitter):
20741 Use nonimmediate_operand instead of memory_operand for operand 1.
20742 (float-extend standard_x87sse_constant_load splitter): Ditto.
20743
20744 2017-02-21 Jeff Law <law@redhat.com>
20745
20746 PR tree-optimization/79621
20747 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
20748 blocks with edges to themselves.
20749
20750 2017-02-21 Jakub Jelinek <jakub@redhat.com>
20751
20752 PR target/79633
20753 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
20754 is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
20755 Use gimple_call_builtin_p.
20756
20757 PR target/79570
20758 * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
20759 on temporarily removed DEBUG_INSNs.
20760
20761 PR tree-optimization/79649
20762 * tree-loop-distribution.c (classify_partition): Give up on
20763 non-generic address space loads/stores.
20764
20765 2017-02-21 Aldy Hernandez <aldyh@redhat.com>
20766
20767 * doc/loop.texi (Loop manipulation): Remove nonexistent
20768 tree_ssa_loop_version from the documentation.
20769 * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
20770
20771 2017-02-21 Jakub Jelinek <jakub@redhat.com>
20772
20773 PR target/79494
20774 * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
20775 make_reg_eh_region_note_nothrow_nononlocal on call_insn.
20776 * config/rs6000/rs6000.c: Include except.h.
20777 (rs6000_expand_split_stack_prologue): Call
20778 make_reg_eh_region_note_nothrow_nononlocal on the call insn.
20779
20780 2017-02-21 Martin Jambor <mjambor@suse.cz>
20781
20782 PR lto/79579
20783 * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
20784 have been analyzed.
20785
20786 2017-02-21 Martin Jambor <mjambor@suse.cz>
20787
20788 * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
20789 for backward compatibility only.
20790 * doc/invoke.texi (Option Summary): Remove all references to
20791 -fipa-cp-alignment.
20792
20793 2017-02-21 Matthew Fortune <matthew.fortune@imgtec.com>
20794
20795 PR target/78660
20796 Revert:
20797 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
20798
20799 * lra-constraints.c (curr_insn_transform): Handle
20800 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
20801
20802 2017-02-21 Martin Liska <mliska@suse.cz>
20803
20804 * config/i386/i386.opt: Replace -masm-dialect with -masm.
20805
20806 2017-02-21 Thomas Schwinge <thomas@codesourcery.com>
20807
20808 PR translation/79638
20809 * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
20810
20811 2017-02-21 Eric Botcazou <ebotcazou@adacore.com>
20812
20813 PR ada/67205
20814 * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
20815 (arm_function_ok_for_sibcall): Return false for an indirect call by
20816 descriptor if all the argument registers are used.
20817 (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
20818 alignment of the function.
20819
20820 2017-02-21 Jakub Jelinek <jakub@redhat.com>
20821
20822 PR tree-optimization/61441
20823 * simplify-rtx.c (simplify_const_unary_operation): For
20824 -fsignaling-nans and sNaN operand, return NULL_RTX rather than
20825 the sNaN unmodified.
20826
20827 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
20828
20829 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
20830 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
20831 instead of SYSTEM_HEADER_DIR.
20832
20833 2017-02-20 Gerald Pfeifer <gerald@pfeifer.com>
20834 Martin Liška <mliska@suse.cz>
20835
20836 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
20837 Fix typos and grammar, use active voice, and clarify.
20838
20839 2017-02-20 Marek Polacek <polacek@redhat.com>
20840
20841 PR middle-end/79537
20842 * gimplify.c (gimplify_expr): Handle unused *&&L;.
20843
20844 PR sanitizer/79558
20845 * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
20846
20847 2017-02-20 Jakub Jelinek <jakub@redhat.com>
20848
20849 PR target/79568
20850 * config/i386/i386.c (ix86_expand_builtin): Handle
20851 OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
20852 ix86_builtins_isa[fcode].isa as a requirement of those
20853 flags and any other flag in the bitmask.
20854 (ix86_init_mmx_sse_builtins): Use 0 instead of
20855 ~OPTION_MASK_ISA_64BIT as mask.
20856 * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
20857 __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
20858 __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
20859 __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
20860
20861 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
20862
20863 PR target/78012
20864 * lra-constraints.c (split_reg): Check requested split mode
20865 is supported by the register.
20866
20867 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
20868
20869 * lra-constraints.c (simplify_operand_subreg): Remove early
20870 return false.
20871
20872 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
20873
20874 PR target/78660
20875 * lra-constraints.c (curr_insn_transform): Tighten condition
20876 for converting SUBREG reloads from OP_OUT to OP_INOUT.
20877
20878 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
20879
20880 PR target/78660
20881 * lra-constraints.c (curr_insn_transform): Handle
20882 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
20883
20884 2017-02-19 Uros Bizjak <ubizjak@gmail.com>
20885
20886 Revert:
20887 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
20888
20889 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
20890
20891 2017-02-19 Jonathan Wakely <jwakely@redhat.com>
20892
20893 PR c++/69523
20894 * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
20895 description.
20896
20897 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20898
20899 * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
20900 for FMA_EXPR.
20901
20902 2017-02-18 Jakub Jelinek <jakub@redhat.com>
20903
20904 * final.c (last_columnnum, override_columnnum): New variables.
20905 (final_start_function): Set last_columnnum, pass it to begin_prologue
20906 hook and pass 0 to dwarf2out_begin_prologue.
20907 (final_scan_insn): Update override_columnnum. Pass last_columnnum
20908 to source_line debug hook.
20909 (notice_source_line): Compute last_columnnum and for debug_column_info
20910 return true on column changes.
20911 * debug.h (struct gcc_debug_hooks): Add column argument to
20912 source_line and begin_prologue hooks.
20913 (debug_nothing_int_charstar_int_bool): Remove prototype.
20914 (debug_nothing_int_int_charstar,
20915 debug_nothing_int_int_charstar_int_bool): New prototypes.
20916 (dwarf2out_begin_prologue): Add column argument.
20917 * debug.c (do_nothing_debug_hooks): Adjust source_line and
20918 begin_prologue hooks.
20919 (debug_nothing_int_charstar_int_bool): Remove.
20920 (debug_nothing_int_int_charstar,
20921 debug_nothing_int_int_charstar_int_bool): New functions.
20922 * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
20923 through to dwarf2out_source_line.
20924 (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
20925 (dwarf2out_source_line): Add column argument, emit it if requested.
20926 * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
20927 arguments.
20928 * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
20929 * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
20930 * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
20931 through to dwarf2out_begin_prologue.
20932 (vmsdbgout_source_line): Add column argument, pass it through to
20933 dwarf2out_source_line.
20934 * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
20935 dbxout_source_line caller.
20936 (dbxout_source_line): Add column argument.
20937
20938 * common.opt (gno-column-info, gcolumn-info): New options.
20939 * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
20940 (check_die): Also test for multiple DW_AT_decl_column attributes.
20941 (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
20942 DW_AT_decl_column if requested.
20943 (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
20944 if requested.
20945 (gen_variable_die): Likewise.
20946 (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
20947 * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
20948
20949 PR target/79569
20950 * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
20951 * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
20952 (ix86_handle_option): Handle OPT_m3dnowa.
20953 * doc/invoke.texi (-m3dnowa): Document.
20954 * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
20955 -m3dnowa instead of -m3dnow -march=athlon.
20956
20957 PR target/79559
20958 * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
20959 instead of gcc_assert for K, r and R code checks. Formatting fixes.
20960
20961 2017-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20962
20963 PR target/79261
20964 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
20965 support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
20966 * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
20967 generator for vsx_xxpermdi_<mode>_be.
20968 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
20969 force big-endian semantics.
20970 (vsx_xxpermdi_<mode>_be): New define_expand with same
20971 implementation as previous version of vsx_xxpermdi_<mode>.
20972
20973 2017-02-17 Jakub Jelinek <jakub@redhat.com>
20974
20975 PR tree-optimization/79327
20976 * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
20977 variable, its initialization and use.
20978
20979 2017-02-17 Julia Koval <julia.koval@intel.com>
20980
20981 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
20982 (OPTION_MASK_ISA_PKU_UNSET): New.
20983 (ix86_handle_option): Handle -mrdpid.
20984 * config/i386/cpuid.h (bit_RDPID): New.
20985 * config/i386/driver-i386.c (host_detect_local_cpu):
20986 Detect RDPID feature.
20987 * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
20988 * config/i386/i386-c.c (ix86_target_macros_internal):
20989 Handle RDPID flag.
20990 * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
20991 (ix86_valid_target_attribute_inner_p): Add "rdpid".
20992 (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
20993 * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
20994 * config/i386/i386.md (define_insn "rdpid"): New.
20995 * config/i386/i386.opt Add -mrdpid.
20996 * config/i386/immintrin.h (_rdpid_u32): New.
20997
20998 2017-02-17 Vladimir Makarov <vmakarov@redhat.com>
20999
21000 PR rtl-optimization/79541
21001 * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
21002 instead of transforming it into USE.
21003
21004 2017-02-17 Segher Boessenkool <segher@kernel.crashing.org>
21005
21006 * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
21007 If HONOR_SNANS (SFmode) force the input to a register.
21008 (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
21009 (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
21010 an frsp or similar insn.
21011
21012 2017-02-17 Martin Liska <mliska@suse.cz>
21013
21014 PR rtl-optimization/79577
21015 * params.def (selsched-max-sched-times): Increase minimum to 1.
21016
21017 2017-02-17 Martin Liska <mliska@suse.cz>
21018
21019 PR rtl-optimization/79574
21020 * gcse.c (want_to_gcse_p): Prevent integer overflow.
21021
21022 2017-02-17 Martin Liska <mliska@suse.cz>
21023
21024 PR tree-optimization/79529
21025 * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
21026 ssa_defined_default_def_p to handle cases which are implicitly
21027 defined.
21028 * tree-ssa.c (ssa_defined_default_def_p): New function.
21029 (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
21030 which are implicitly defined.
21031 * tree-ssa.h (ssa_defined_default_def_p): Declare.
21032
21033 2017-02-17 Richard Biener <rguenther@suse.de>
21034
21035 PR middle-end/79576
21036 * params.def (max-ssa-name-query-depth): Limit to 10.
21037
21038 2017-02-17 Richard Biener <rguenther@suse.de>
21039
21040 PR tree-optimization/79552
21041 * tree-ssa-structalias.c (visit_loadstore): Properly verify
21042 default defs.
21043
21044 2017-02-17 Richard Biener <rguenther@suse.de>
21045
21046 PR bootstrap/79567
21047 * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
21048
21049 2017-02-17 Marek Polacek <polacek@redhat.com>
21050
21051 PR middle-end/79536
21052 * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
21053 (fold_negate_expr): New wrapper.
21054
21055 2017-02-16 Sandra Loosemore <sandra@codesourcery.com>
21056
21057 * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]:
21058 Correct terminology and de-emphasize pre-standard behavior.
21059
21060 2017-02-16 Alan Modra <amodra@gmail.com>
21061
21062 PR rtl-optimization/79286
21063 * ira.c (def_dominates_uses): New function.
21064 (update_equiv_regs): Don't create an equivalence for insns that
21065 may trap where the register def does not dominate the use.
21066
21067 2017-02-16 Vladimir Makarov <vmakarov@redhat.com>
21068
21069 PR rtl-optimization/78127
21070 * lra.c (lra): Call lra_eliminate before finish the loop after
21071 lra_constraint.
21072
21073 2017-02-16 Richard Biener <rguenther@suse.de>
21074
21075 * graphite.h: Do not include isl/isl_val_gmp.h, instead include
21076 isl/isl_val.h.
21077 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
21078 (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
21079 * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
21080 (isl_val_int_from_wi): New function.
21081 (extract_affine_gmp): Rename to ...
21082 (extract_affine_wi): ... this, take a widest_int.
21083 (extract_affine_int): Just wrap extract_affine_wi.
21084 (add_param_constraints): Use isl_val_int_from_wi.
21085 (add_loop_constraints): Likewise, and extract_affine_wi.
21086
21087 2017-02-15 Jeff Law <law@redhat.com>
21088
21089 PR middle-end/79521
21090 * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
21091 ira_init_register_move_cost_if_necessary.
21092
21093 2017-02-15 Martin Sebor <msebor@redhat.com>
21094
21095 PR middle-end/32003
21096 * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
21097 removed in a prior commit.
21098
21099 2017-02-15 Bin Cheng <bin.cheng@arm.com>
21100
21101 PR tree-optimization/79347
21102 * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
21103 counters during peeling.
21104
21105 2017-02-15 Thomas Schwinge <thomas@codesourcery.com>
21106
21107 * Makefile.in (site.exp): Remove "set ISLVER".
21108
21109 2017-02-15 Jakub Jelinek <jakub@redhat.com>
21110
21111 PR target/79487
21112 * real.c (real_from_integer): Call real_convert even for decimal.
21113
21114 2017-02-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
21115
21116 PR target/79421
21117 * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
21118
21119 2017-02-14 Andrew Pinski <apinski@cavium.com>
21120
21121 * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
21122 cores and change the partno/implementer to be correct.
21123 (thunderx2t99p1): New core which replaces thunderx2t99 and still has
21124 the 'B" as the implementer.
21125 * config/aarch64/aarch64-tune.md: Regenerate.
21126
21127 2017-02-14 Carl Love <cel@us.ibm.com>
21128
21129 * config/rs6000/rs6000.c: Add case statement entry to make the
21130 xvcvuxdsp built-in argument unsigned.
21131 * config/rs6000/vsx.md: Fix the source and return operand types so they
21132 match the instruction definitions from the ISA document. Fix typo
21133 in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
21134 statement.
21135
21136 2017-02-14 Vladimir Makarov <vmakarov@redhat.com>
21137
21138 PR target/79282
21139 * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
21140 member early_clobber_alts.
21141 * lra-lives.c (reg_early_clobber_p): New.
21142 (process_bb_lives): Use it.
21143 * lra.c (new_insn_reg): New arg early_clobber_alts. Use it.
21144 (debug_operand_data): Initialize early_clobber_alts.
21145 (setup_operand_alternative): Set up early_clobber_alts.
21146 (collect_non_operand_hard_regs): Ditto. Pass early clobber
21147 alternatives to new_insn_reg.
21148 (add_regs_to_insn_regno_info): Add arg early_clobber_alts. Use
21149 it.
21150 (lra_update_insn_regno_info): Pass the new arg.
21151
21152 2017-02-14 Jakub Jelinek <jakub@redhat.com>
21153
21154 PR middle-end/79505
21155 * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
21156 (new_oacc_loop_raw): Don't clear already cleared fields.
21157
21158 PR target/79481
21159 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
21160 _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
21161 _mm512_prefetch_i64gather_ps): New inline functions and macros.
21162
21163 2017-02-14 Uros Bizjak <ubizjak@gmail.com>
21164
21165 PR target/79495
21166 * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
21167
21168 2017-02-14 H.J. Lu <hongjiu.lu@intel.com>
21169
21170 PR target/79498
21171 * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
21172 the extra instruction to the right place to store 128-bit constant
21173 when needed.
21174
21175 2017-02-14 Martin Sebor <msebor@redhat.com>
21176
21177 PR middle-end/79448
21178 * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
21179 warning for strings of unknown length.
21180
21181 2017-02-13 Segher Boessenkool <segher@kernel.crashing.org>
21182
21183 * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
21184
21185 2017-02-14 Jeff Law <law@redhat.com>
21186
21187 PR target/79404
21188 * ira-costs.c (scan_one_insn): Initialize register move costs
21189 for pseudos seen in USE/CLOBBER insns.
21190
21191 PR tree-optimization/79095
21192 * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
21193 if the numerator has the range ~[0,0] make the resultant range ~[0,0].
21194 (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
21195 if the operands are known to be not equal, then the resulting range
21196 is ~[0,0].
21197 (intersect_ranges): If the new range is ~[0,0] and the old range is
21198 wide, then prefer ~[0,0].
21199 * tree-vrp.c (overflow_comparison_p_1): New function.
21200 (overflow_comparison_p): New function.
21201 * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
21202 if NAME is used in an overflow test.
21203 (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
21204 overflow check that can be expressed as an equality test, then adjust
21205 ops to be that equality test.
21206
21207 2017-02-14 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21208
21209 * config/s390/s390-builtin-types.def: Remove flags argument.
21210 * config/s390/s390.c (s390_init_builtins): Likewise.
21211
21212 2017-02-14 Martin Liska <mliska@suse.cz>
21213
21214 * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
21215 vector. Fix trailing white spaces.
21216
21217 2017-02-14 James Greenhalgh <james.greenhalgh@arm.com>
21218
21219 * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
21220 HFmode.
21221
21222 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21223
21224 PR rtl-optimization/68664
21225 * config/arm/arm.c (arm_sched_can_speculate_insn):
21226 New function. Declare prototype.
21227 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
21228
21229 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21230
21231 PR rtl-optimization/68664
21232 * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
21233 New function.
21234 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
21235
21236 2017-02-14 Amit Pawar <amit.pawar@amd.com>
21237
21238 * config/i386/i386.c (znver1_cost): Fix the alignment for function and
21239 max skip bytes for function, loop and jump.
21240
21241 2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21242
21243 * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
21244 ABS_EXPR for gimple dump.
21245
21246 2017-02-14 Jakub Jelinek <jakub@redhat.com>
21247
21248 PR target/79462
21249 * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
21250
21251 PR tree-optimization/79408
21252 * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
21253 case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
21254 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
21255 also if rhs1 is INTEGER_CST.
21256
21257 2017-02-14 Richard Biener <rguenther@suse.de>
21258
21259 PR middle-end/79432
21260 * tree-into-ssa.c (insert_phi_nodes): When the function can
21261 have abnormal edges rewrite SSA names with broken use-def
21262 dominance out of SSA and register them for PHI insertion.
21263
21264 2017-02-13 Martin Sebor <msebor@redhat.com>
21265
21266 PR middle-end/79496
21267 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
21268 clearing info.nowrite flag when snprintf size argument is a range.
21269
21270 2017-02-13 Jakub Jelinek <jakub@redhat.com>
21271
21272 * cprop.c (cprop_jump): Add missing space in string literal.
21273 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
21274 (get_constraint_for_component_ref): Likewise.
21275 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
21276 * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
21277 * lra-constraints.c (process_alt_operands): Likewise.
21278 * ipa-inline.c (inline_small_functions): Likewise.
21279 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
21280 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
21281 * trans-mem.c (diagnose_tm_1_op): Likewise.
21282 * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
21283 (grid_parallel_clauses_gridifiable): Likewise.
21284
21285 * config/nvptx/mkoffload.c (process): Add space in between
21286 , and %d.
21287
21288 * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
21289 "MOD4_SSE_REGS" and "ALL_REGS".
21290
21291 * spellcheck.c (test_data): Add , in between "foo" and "food".
21292
21293 2017-02-13 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
21294
21295 PR target/79449
21296 * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
21297 boundary crossing check and subsequent code generation agree.
21298
21299 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21300
21301 * config/aarch64/aarch64.c (has_memory_op): Delete.
21302 (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
21303 has_memory_op.
21304
21305 2017-02-13 Jakub Jelinek <jakub@redhat.com>
21306
21307 PR rtl-optimization/79388
21308 PR rtl-optimization/79450
21309 * combine.c (distribute_notes): When removing TEM_INSN for which
21310 corresponding dest has last value recorded, invalidate that last
21311 value.
21312
21313 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21314
21315 * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
21316 of explicit '@'. Add missing assembly comment marker on branch costs
21317 printout.
21318
21319 2017-02-13 Nathan Sidwell <nathan@acm.org>
21320
21321 * gengtype-lex.l (<in_struct>): Add '/'.
21322
21323 2017-02-13 Martin Liska <mliska@suse.cz>
21324
21325 PR c/79471
21326 * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
21327
21328 2017-02-13 Richard Biener <rguenther@suse.de>
21329
21330 * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
21331 Remove.
21332 * configure: Re-generate.
21333 * config.in: Likewise.
21334 * graphite-dependences.c: Simplify as if
21335 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
21336 * graphite-isl-ast-to-gimple.c: Likewise.
21337 * graphite-optimize-isl.c: Likewise.
21338 * graphite-poly.c: Likewise.
21339 * graphite-sese-to-poly.c: Likewise.
21340 * graphite.h: Likewise.
21341 * toplev.c: Include isl/version.h and use isl_version () for
21342 printing the ISL version.
21343 * doc/install.texi: Update ISL requirement.
21344
21345 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
21346
21347 * doc/standards.texi (Standards): Update reference to
21348 Objective-C 2.0.
21349
21350 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
21351
21352 * doc/extend.texi (Named Address Spaces): sourceware.org now
21353 defaults to https.
21354 * doc/install.texi (Binaries): Ditto.
21355 (Specific): Ditto.
21356
21357 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
21358
21359 * doc/cpp.texi: Replace "stringify"/"stringification" with C
21360 standard terminology "stringize"/"stringizing" throughout.
21361 * doc/cppinternals.texi: Likewise.
21362
21363 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
21364
21365 * doc/extend.texi: Fix some spelling mistakes and typos.
21366 * doc/invoke.texi: Likewise.
21367
21368 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
21369
21370 PR ipa/79224
21371 * params.def (inline-min-speedup) Change from 10 to 8.
21372
21373 2017-02-11 Jakub Jelinek <jakub@redhat.com>
21374
21375 * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
21376 4.5.
21377
21378 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
21379
21380 PR ipa/79224
21381 * ipa-inline-analysis.c (get_minimal_bb): New function.
21382 (record_modified): Use it.
21383 (remap_edge_change_prob): Handle also ancestor functions.
21384
21385 2017-02-11 Gerald Pfeifer <gerald@pfeifer.com>
21386
21387 * doc/contrib.texi (Contributors): Remove broken link into
21388 the Mauve CVS repository.
21389
21390 2017-02-11 Jakub Jelinek <jakub@redhat.com>
21391
21392 PR middle-end/79454
21393 * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
21394 result computation whenever lhs doesn't have vector mode, not
21395 just when it has BLKmode.
21396
21397 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
21398
21399 * doc/makefile.texi (profiledbootstrap): Refer to the
21400 installation instructions only in textual form.
21401
21402 2017-02-10 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
21403
21404 PR target/79295
21405 * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
21406
21407 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
21408
21409 * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
21410 (Specific): Update mingw-w64 reference.
21411 (Binaries): Ditto.
21412 (Specific): Remove broken link to Renesas RX processor.
21413
21414 2017-02-10 Richard Biener <rguenther@suse.de>
21415
21416 * toplev.c (process_options): Do not mention obsolete graphite
21417 options when printing sorry message about missing graphite support.
21418 Mention -floop-nest-optimize.
21419
21420 2017-02-10 Christophe Lyon <christophe.lyon@linaro.org>
21421
21422 * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
21423 (vtst_p16): Likewise.
21424 (vtstq_p8): Likewise.
21425 (vtstq_p16): Likewise.
21426 (vtst_p64): New.
21427 (vtstq_p64): Likewise.
21428 * config/arm/arm_neon.h (vgetq_lane_p64): New.
21429 (vset_lane_p64): New.
21430 (vsetq_lane_p64): New.
21431
21432 2017-02-10 Jakub Jelinek <jakub@redhat.com>
21433
21434 PR tree-optimization/79411
21435 * tree-ssa-reassoc.c (is_reassociable_op): Return false if
21436 stmt operands are SSA_NAMEs used in abnormal phis.
21437 (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
21438 phis.
21439
21440 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
21441
21442 PR ipa/70795
21443 * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
21444 flag if needed.
21445
21446 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
21447
21448 * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
21449
21450 2017-02-09 Jakub Jelinek <jakub@redhat.com>
21451
21452 * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
21453 to avoid warning.
21454
21455 PR c/79413
21456 * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
21457 not arbitrary TREE_CONSTANT.
21458
21459 PR c/79431
21460 * gimplify.c (gimplify_adjust_omp_clauses): Ignore
21461 "omp declare target link" attribute unless is_global_var.
21462 * omp-offload.c (find_link_var_op): Likewise.
21463
21464 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
21465 Chung-Lin Tang <cltang@codesourcery.com>
21466
21467 * gimplify.c (gimplify_scan_omp_clauses): No special handling for
21468 OMP_CLAUSE_TILE.
21469 (gimplify_adjust_omp_clauses): Don't delete TILE.
21470 (gimplify_omp_for): Deal with TILE.
21471 * internal-fn.c (expand_GOACC_TILE): New function.
21472 * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
21473 (GOACC_TILE): New.
21474 * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
21475 (expand_oacc_collapse_init): Add LOC paramter. Initialize tile
21476 element fields.
21477 (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
21478 avoid DIV for outermost collapse var.
21479 (expand_oacc_for): Insert tile element loop as needed. Adjust.
21480 Remove out of date comments, fix whitespace.
21481 * omp-general.c (omp_extract_for_data): Deal with tiling.
21482 * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
21483 adjust OLF_DIM_BASE value.
21484 (struct omp_for_data): Add tiling field.
21485 * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
21486 (lower_oacc_head_mark): Add OLF_TILE as appropriate. Ensure 2 levels
21487 for auto loops. Remove default auto determining, moved to
21488 oacc_loop_fixed_partitions.
21489 * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
21490 stmts, add e_mask field.
21491 (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
21492 (oacc_thread_numbers): Use oacc_dim_call.
21493 (oacc_xform_tile): New.
21494 (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
21495 (finish_oacc_loop): Adjust for ifns vector.
21496 (oacc_loop_discover_walk): Append loop abstraction sites to list,
21497 add case for GOACC_TILE fns.
21498 (oacc_loop_xform_loop): Delete.
21499 (oacc_loop_process): Iterate over call list directly, and add
21500 handling for GOACC_TILE fns.
21501 (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
21502 dump partitioning.
21503 (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
21504 vector partitioning to outer loops. Assign 2 partitions to loops
21505 when available. Add TILE handling.
21506 (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
21507 (execite_oacc_device_lower): Process GOACC_TILE fns,
21508 ignore unknown specs.
21509 * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
21510 * tree.c (omp_clause_num_ops): Adjust TILE ops.
21511 * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
21512
21513 2017-02-09 Gerald Pfeifer <gerald@pfeifer.com>
21514
21515 * configure.ac (ACX_BUGURL): Update.
21516 * configure: Regenerate.
21517
21518 2017-02-09 Richard Biener <rguenther@suse.de>
21519
21520 PR tree-optimization/69823
21521 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
21522 Properly enumerate all BBs in the region. Use auto_vec/auto_bitmap.
21523
21524 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
21525
21526 * config/arc/arc-c.def: Add __NPS400__ definition.
21527 * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
21528 (TARGET_NPS400): Define.
21529
21530 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
21531
21532 * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
21533 file.
21534 (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
21535 pointer, arch_info.
21536 (arc_cpu_types): Fill the arch_info field with a pointer into the
21537 arc_arch_types table.
21538 (arc_selected_cpu): Declare.
21539 * config/arc/arc.c (arc_selected_cpu): Make global.
21540 (arc_selected_arch): Delete.
21541 (arc_base_cpu): Delete.
21542 (arc_override_options): Remove references to deleted variables,
21543 update access to arch information.
21544 (ARC_OPT): Update access to arch information.
21545 (ARC_OPTX): Likewise.
21546 * config/arc/arc.h (arc_base_cpu): Remove declaration.
21547 (TARGET_ARC600): Update access to arch information.
21548 (TARGET_ARC601): Likewise.
21549 (TARGET_ARC700): Likewise.
21550 (TARGET_EM): Likewise.
21551 (TARGET_HS): Likewise.
21552 * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
21553 information.
21554
21555 2017-02-08 Pat Haugen <pthaugen@us.ibm.com>
21556
21557 PR target/78604
21558 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
21559 condition/operands for integer GE/LE/GEU/LEU operations.
21560
21561 2017-02-08 Segher Boessenkool <segher@kernel.crashing.org>
21562
21563 PR translation/79397
21564 * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
21565 of AltiVec.
21566
21567 2017-02-08 Martin Jambor <mjambor@suse.cz>
21568
21569 PR ipa/79375
21570 * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
21571 whether allocation happened.
21572 (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
21573 nothing was allocated.
21574
21575 2017-02-08 Jakub Jelinek <jakub@redhat.com>
21576
21577 PR tree-optimization/79408
21578 * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
21579 constant, but SSA_NAME with a known integer range, use the minimum
21580 of that range instead of op1 to determine if modulo can be replaced
21581 with its first operand.
21582
21583 2016-02-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21584
21585 * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
21586
21587 2017-02-08 Richard Biener <rguenther@suse.de>
21588
21589 PR tree-optimization/71824
21590 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
21591 Check all loops contained in the merged region.
21592
21593 2017-02-07 Andrew Pinski <apinski@cavium.com>
21594
21595 * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
21596
21597 2017-02-07 Andrew Pinski <apinski@cavium.com>
21598
21599 * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
21600 (thunderxt88): Likewise.
21601 (thunderxt81): Disable LSE and change v8.1 to v8.
21602 (thunderxt83): Likewise.
21603
21604 2017-02-07 Jakub Jelinek <jakub@redhat.com>
21605 Richard Biener <rguenther@suse.de>
21606
21607 PR middle-end/79399
21608 * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
21609 type from int to size_t.
21610 * ira-costs.c (struct_costs_size): Change type from int to size_t.
21611
21612 2017-02-07 Jakub Jelinek <jakub@redhat.com>
21613
21614 PR rtl-optimization/79386
21615 * cprop.c (bypass_conditional_jumps): Initialize
21616 bypass_last_basic_block already before splitting bbs after
21617 unconditional traps...
21618 (bypass_conditional_jumps): ... rather than here.
21619
21620 PR target/79299
21621 * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
21622 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
21623 *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
21624 fix -masm=intel patterns.
21625
21626 2017-02-07 Richard Biener <rguenther@suse.de>
21627
21628 PR tree-optimization/79256
21629 PR middle-end/79278
21630 * builtins.c (get_object_alignment_2): Use min_align_of_type
21631 to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
21632 and ADJUST_FIELD_ALIGN.
21633
21634 * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
21635 type parameter.
21636 * doc/tm.texi: Regenerate.
21637 * stor-layout.c (layout_decl): Adjust.
21638 (update_alignment_for_field): Likewise.
21639 (place_field): Likewise.
21640 (min_align_of_type): Likewise.
21641 * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
21642 * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
21643 * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
21644 * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
21645 * config/frv/frv.c (frv_adjust_field_align): Likewise.
21646 * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
21647 * config/i386/i386.c (x86_field_alignment): Likewise.
21648 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
21649 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
21650 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
21651 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
21652 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
21653 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
21654 Likewise.
21655
21656 Revert
21657 2017-01-30 Richard Biener <rguenther@suse.de>
21658
21659 PR tree-optimization/79256
21660 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
21661 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
21662 alignment on TYPE.
21663
21664 2017-02-07 Toma Tabacu <toma.tabacu@imgtec.com>
21665
21666 * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
21667 argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
21668 builtins to SImode and emit a zero-extend, if necessary.
21669
21670 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
21671
21672 * docs/invoke.texi (RISC-V Options): Alphabetize.
21673
21674 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
21675
21676 * doc/invoke.texi (RISC-V Options): Use two spaces to separate
21677 options.
21678
21679 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
21680
21681 * config/riscv/riscv.c: New file.
21682 * common/config/riscv/riscv-common.c: Likewise.
21683 * config.gcc: Likewise.
21684 * config/riscv/constraints.md: Likewise.
21685 * config/riscv/elf.h: Likewise.
21686 * config/riscv/generic.md: Likewise.
21687 * config/riscv/linux.h: Likewise.
21688 * config/riscv/multilib-generator: Likewise.
21689 * config/riscv/peephole.md: Likewise.
21690 * config/riscv/pic.md: Likewise.
21691 * config/riscv/predicates.md: Likewise.
21692 * config/riscv/riscv-builtins.c: Likewise.
21693 * config/riscv/riscv-c.c: Likewise.
21694 * config/riscv/riscv-ftypes.def: Likewise.
21695 * config/riscv/riscv-modes.def: Likewise.
21696 * config/riscv/riscv-opts.h: Likewise.
21697 * config/riscv/riscv-protos.h: Likewise.
21698 * config/riscv/riscv.h: Likewise.
21699 * config/riscv/riscv.md: Likewise.
21700 * config/riscv/riscv.opt: Likewise.
21701 * config/riscv/sync.md: Likewise.
21702 * config/riscv/t-elf-multilib: Likewise.
21703 * config/riscv/t-linux: Likewise.
21704 * config/riscv/t-linux-multilib: Likewise.
21705 * config/riscv/t-riscv: Likewise.
21706 * configure.ac: Likewise.
21707 * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
21708 Waterman as RISC-V maintainers.
21709 * doc/install.texi: Add RISC-V entries.
21710 * doc/invoke.texi: Add RISC-V options section.
21711 * doc/md.texi: Add RISC-V constraints section.
21712 * configure: Regenerated.
21713
21714 2017-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
21715
21716 PR target/66144
21717 * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
21718 false values to be constant vectors with all 0 or all 1 bits set.
21719 (vcondu<mode><mode>): Likewise.
21720 * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
21721 predicate.
21722 (fpmask_comparison_operator): Update comment.
21723 (vecint_comparison_operator): New predicate.
21724 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
21725 vector conditionals when the true and false values are constant
21726 vectors with all 0 bits or all 1 bits set.
21727
21728 2017-02-06 Martin Sebor <msebor@redhat.com>
21729
21730 PR tree-optimization/79376
21731 * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
21732
21733 2017-02-06 Uros Bizjak <ubizjak@gmail.com>
21734
21735 * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
21736 explicit subreg RTX with operand 1. Use VECTOR_MODE_P predicate
21737 to simplify split condition.
21738
21739 2017-02-06 Jakub Jelinek <jakub@redhat.com>
21740
21741 * omp-expand.c (oxpand_omp_atomic_fetch_op,
21742 expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
21743 false.
21744
21745 2017-02-06 Segher Boessenkool <segher@kernel.crashing.org>
21746
21747 PR rtl-optimization/68664
21748 * target.def (can_speculate_insn): New hook.
21749 * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
21750 * doc/tm.texi: Regenerate.
21751 * sched-rgn.c (can_schedule_ready_p): Use the new hook.
21752 * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
21753 (rs6000_sched_can_speculate_insn): New function.
21754
21755 2017-02-06 Jakub Jelinek <jakub@redhat.com>
21756
21757 PR tree-optimization/79284
21758 * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
21759 * tree-vect-stmts.c (vect_get_vec_def_for_operand,
21760 vectorizable_mask_load_store, vectorizable_operation,
21761 vect_is_simple_cond, get_same_sized_vectype): Use it instead
21762 of comparing TREE_CODE of a type against BOOLEAN_TYPE.
21763 * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
21764 vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
21765 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
21766 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
21767 Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
21768 is_gimple_assign (stmt). Replace another such test with
21769 is_gimple_assign (stmt).
21770
21771 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
21772
21773 PR target/78883
21774 * config/avr/avr.c (rtl-iter.h): Include it.
21775 (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
21776 (avr_legitimate_combined_insn): ...and implementation.
21777
21778 2017-02-06 Dominik Vogt <vogt@linux.vnet.ibm.com>
21779
21780 * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
21781 * config/s390/s390.c (s390_const_operand_ok)
21782 (s390_canonicalize_comparison, s390_extract_part)
21783 (s390_single_part, s390_contiguous_bitmask_nowrap_p)
21784 (s390_contiguous_bitmask_p, s390_rtx_costs)
21785 (legitimize_pic_address): Likewise.
21786 * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
21787 * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
21788 ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
21789 ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
21790 * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
21791
21792 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
21793
21794 * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
21795 REGNO($0) == REGNO($1).
21796
21797 2017-02-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21798
21799 * config/s390/linux.h(SIZE_TYPE): Add comment.
21800
21801 2017-02-06 Julian Brown <julian@codesourcery.com>
21802 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
21803 Virendra Pathak <virendra.pathak@broadcom.com>
21804
21805 * config/aarch64/aarch64-cores.def: Change the scheduler
21806 to Thunderx2t99.
21807 * config/aarch64/aarch64.md: Include thunderx2t99.md.
21808 * config/aarch64/thunderx2t99.md: New file.
21809
21810 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
21811
21812 * doc/standards.texi (Go Language): Update link to language
21813 standard.
21814
21815 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
21816
21817 * tree-eh.c (lower_resx): Sanitize profile.
21818 (cleanup_empty_eh_move_lp): Likewise.
21819
21820 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
21821
21822 PR tree-ssa/79347
21823 * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
21824 ELSE_PROB.
21825 * cfgloopmanip.h (loop_version): Update prototype.
21826 * modulo-sched.c (sms_schedule): Update call of loop_version.
21827 * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
21828 * tree-parloops.c (gen_parallel_loop): Likewise.
21829 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
21830 * tree-ssa-loop-split.c (split_loop): Likewise.
21831 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
21832 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
21833
21834 2017-02-05 Martin Liska <mliska@suse.cz>
21835
21836 PR bootstrap/78985
21837 * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
21838 variable to NULL.
21839 (print_operand_address): Initialize a struct to zero.
21840
21841 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
21842
21843 * doc/contrib.texi (Contributors): Refer to Hans Boehm's
21844 garbage collector only in textual form.
21845
21846 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
21847
21848 * doc/extend.texi (x86 specific memory model extensions for
21849 transactional memory): Simplify a phrase.
21850
21851 2017-02-05 Eric Botcazou <ebotcazou@adacore.com>
21852
21853 PR target/79353
21854 * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
21855 'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
21856 (atomic_storedi_1): Likewise.
21857
21858 2017-02-04 Jakub Jelinek <jakub@redhat.com>
21859
21860 PR tree-optimization/79338
21861 * tree-parloops.c (gather_scalar_reductions): Don't call
21862 vect_analyze_loop_form for loop->inner before destroying loop's
21863 loop_vinfo.
21864
21865 2017-02-03 Martin Sebor <msebor@redhat.com>
21866
21867 PR tree-optimization/79327
21868 * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
21869 when precision has resulted in leading zeros.
21870 (format_integer): Adjust the likely counter to assume an unknown
21871 argument that may be zero is non-zero.
21872
21873 2017-02-03 Jason Merrill <jason@redhat.com>
21874
21875 PR c++/78689
21876 * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
21877 avoid copying non-taken branch.
21878
21879 2017-02-03 Jakub Jelinek <jakub@redhat.com>
21880
21881 PR tree-optimization/79340
21882 * tree-vect-loop.c (vectorizable_reduction): Release
21883 vec_defs elements after safe_splicing them into other vectors.
21884 Formatting fixes.
21885
21886 PR tree-optimization/79327
21887 * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
21888 true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
21889 dirtype.
21890 (format_integer): Use wide_int_to_tree instead of build_int_cst
21891 + to_?hwi. If argmin is NULL, just set argmin and argmax to
21892 TYPE_{MIN,MAX}_VALUE of argtype. Simplify and fix computation
21893 of shortest and longest sequence.
21894
21895 2017-02-03 Uros Bizjak <ubizjak@gmail.com>
21896
21897 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
21898 Use pextrd for TARGET_SSE4_1 when creating scalar copy.
21899
21900 2017-02-03 Walter Lee <walt@tilera.com>
21901
21902 PR target/78862
21903 * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
21904 after initial stackframe link reg save.
21905 * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
21906
21907 2017-02-03 Jakub Jelinek <jakub@redhat.com>
21908
21909 PR target/79354
21910 * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
21911 wu for stxssp alternative.
21912
21913 2017-02-03 Martin Sebor <msebor@redhat.com>
21914
21915 PR tree-optimization/79352
21916 * gimple-fold.c (get_range_strlen): Add argument.
21917 (get_range_strlen): Change return type to bool.
21918 (get_maxval_strlen): Pass in a dummy argument.
21919 * gimple-fold.h (get_range_strlen): Change return type to bool.
21920 * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
21921 * tree.h (array_at_struct_end_p): Add argument.
21922 * tree.c (array_at_struct_end_p): Handle it.
21923
21924 2017-02-03 Martin Liska <mliska@suse.cz>
21925
21926 PR lto/66295
21927 * multiple_target.c (create_dispatcher_calls): Redirect edge
21928 from a caller of a dispatcher.
21929 (expand_target_clones): Make the clones local.
21930 (ipa_target_clone): Do both target clones and resolvers.
21931 (ipa_dispatcher_calls): Remove the pass.
21932 (pass_dispatcher_calls::gate): Likewise.
21933 (make_pass_dispatcher_calls): Likewise.
21934 * passes.def (pass_target_clone): Put as very first IPA early
21935 pass.
21936
21937 2017-02-03 Martin Liska <mliska@suse.cz>
21938
21939 * symtab.c (symtab_node::binds_to_current_def_p): Bail out
21940 in case of a function with ifunc attribute.
21941
21942 2017-02-03 Martin Liska <mliska@suse.cz>
21943
21944 * cgraph.c (cgraph_node::dump): Dump function version info.
21945 * symtab.c (symtab_node::dump_base): Add missing new line.
21946
21947 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
21948
21949 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
21950 (ifcombine_ifandif): Use it.
21951
21952 2017-02-03 Martin Liska <mliska@suse.cz>
21953
21954 * doc/invoke.texi: Document default value for
21955 use-after-scope-direct-emission-threshold.
21956
21957 2017-02-03 Martin Liska <mliska@suse.cz>
21958
21959 PR tree-optimization/79339
21960 * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
21961 (format_floating): Likewise.
21962
21963 2017-02-03 Martin Liska <mliska@suse.cz>
21964
21965 PR ipa/79337
21966 * ipa-prop.c (ipa_node_params_t::insert): Remove current
21967 implementation.
21968 (ipa_node_params_t::remove): Likewise.
21969 * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
21970 initialization from removed ipa_node_params_t::insert.
21971 (ipa_node_params::~ipa_node_params): Move from removed
21972 ipa_node_params_t::release.
21973 * symbol-summary.h (symbol_summary::m_released): New member.
21974 Do not release a summary twice. Do not allow to call finalizer
21975 for types of a summary that live in GGC memory.
21976
21977 2017-02-02 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
21978
21979 * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
21980 cmp_branch fusion.
21981
21982 2017-02-02 Martin Sebor <msebor@redhat.com>
21983
21984 PR middle-end/79275
21985 * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
21986 (format_string): Tighten up the range of output for non-constant
21987 strings and correct the expected range for wide non-constant strings.
21988
21989 2017-02-02 Martin Sebor <msebor@redhat.com>
21990
21991 * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
21992
21993 PR middle-end/32003
21994 * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
21995 index.
21996 (-fdump-tree-@var): Add to index and document how to come up
21997 with pass-specific option and dump file names.
21998 (-fdump-passes): Clarify where to look for output.
21999
22000 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
22001
22002 PR middle-end/77445
22003 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
22004 statistics of the analyzed path; allow threading for speed when
22005 any of BBs along the path are optimized for speed.
22006
22007 2017-02-02 Eric Botcazou <ebotcazou@adacore.com>
22008
22009 PR middle-end/78468
22010 * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
22011 settings of the virtual registers.
22012
22013 Revert again
22014 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
22015
22016 * explow.c (get_dynamic_stack_size): Take known alignment of stack
22017 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
22018 needed.
22019
22020 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22021
22022 * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
22023 ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
22024
22025 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22026
22027 * config/s390/s390.md: Add missing comments with the expanded
22028 mnemonics.
22029 * config/s390/vector.md: Likewise.
22030 * config/s390/vx-builtins.md: Likewise.
22031
22032 2017-02-02 Jakub Jelinek <jakub@redhat.com>
22033
22034 PR target/79197
22035 * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
22036 (fixuns_trunc<mode>di2): ... this, remove previous expander. Put all
22037 conditions on a single line.
22038
22039 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22040
22041 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
22042 __S390_VX__ to __VX__.
22043
22044 2017-02-01 Andrew Pinski <apinski@cavium.com>
22045
22046 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
22047 stmt_info to record_stmt_cost.
22048 (vect_get_known_peeling_cost): Pass stmt_info if known to
22049 record_stmt_cost.
22050 * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
22051 cpu_vector_cost field into
22052 scalar_int_stmt_cost and scalar_fp_stmt_cost. Split vec_stmt_cost
22053 field into vec_int_stmt_cost and vec_fp_stmt_cost.
22054 * config/aarch64/aarch64.c (generic_vector_cost): Update for the
22055 splitting of scalar_stmt_cost and vec_stmt_cost.
22056 (thunderx_vector_cost): Likewise.
22057 (cortexa57_vector_cost): LIkewise.
22058 (exynosm1_vector_cost): Likewise.
22059 (xgene1_vector_cost): Likewise.
22060 (thunderx2t99_vector_cost): Improve after the splitting of the two
22061 fields.
22062 (aarch64_builtin_vectorization_cost): Update for the splitting of
22063 scalar_stmt_cost and vec_stmt_cost.
22064
22065 2017-02-01 Torvald Riegel <triegel@redhat.com>
22066 Richard Henderson <rth@redhat.com>
22067
22068 * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
22069 conditional on existance of a fast atomic load.
22070 * optabs-query.c (can_atomic_load_p): New function.
22071 * optabs-query.h (can_atomic_load_p): Declare it.
22072 * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
22073 no fast atomic load is available for the particular size of access.
22074 (expand_atomic_compare_and_swap): Likewise.
22075 (expand_atomic_load): Likewise.
22076 (expand_atomic_store): Likewise.
22077 (expand_atomic_fetch_op): Likewise.
22078 * testsuite/lib/target-supports.exp
22079 (check_effective_target_sync_int_128): Remove x86 because it provides
22080 no fast atomic load.
22081 (check_effective_target_sync_int_128_runtime): Likewise.
22082
22083 2017-02-01 Richard Biener <rguenther@suse.de>
22084
22085 * graphite.c: Include tree-vectorizer.h for find_loop_location.
22086 (graphite_transform_loops): Provide opt-info for optimized nests.
22087 * tree-parloop.c (parallelize_loops): Provide opt-info for
22088 parallelized loops.
22089
22090 2017-02-01 Richard Biener <rguenther@suse.de>
22091
22092 PR middle-end/79315
22093 * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
22094 was not set before.
22095
22096 2017-02-01 Richard Biener <rguenther@suse.de>
22097
22098 PR tree-optimization/71824
22099 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
22100 Verify the loops are valid in the merged SESE region.
22101 (scop_detection::can_represent_loop_1): Check analyzing the
22102 evolution of the number of iterations in the region succeeds.
22103
22104 2017-01-31 Ian Lance Taylor <iant@golang.org>
22105
22106 * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
22107 REG_ARGS_SIZE note to 32-bit push insns and call insn.
22108
22109 2017-01-31 David Malcolm <dmalcolm@redhat.com>
22110
22111 PR preprocessor/79210
22112 * input.c (get_substring_ranges_for_loc): Replace line_width
22113 assertion with error-handling.
22114
22115 2017-01-31 Richard Biener <rguenther@suse.de>
22116
22117 PR tree-optimization/77318
22118 * graphite-sese-to-poly.c (extract_affine): Fix assert.
22119 (create_pw_aff_from_tree): Take loop parameter.
22120 (add_condition_to_pbb): Pass loop of the condition to
22121 create_pw_aff_from_tree.
22122
22123 2017-01-31 Jakub Jelinek <jakub@redhat.com>
22124
22125 * config/s390/s390.c (s390_asan_shadow_offset): New function.
22126 (TARGET_ASAN_SHADOW_OFFSET): Redefine.
22127
22128 2017-01-31 Michael Meissner <meissner@linux.vnet.ibm.com>
22129
22130 PR target/78597
22131 PR target/79038
22132 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
22133 no longer used.
22134 (convert_int_to_float128): Likewise.
22135 * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
22136 (convert_int_to_float128): Likewise.
22137 * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
22138 (UNSPEC_IEEE128_CONVERT): Likewise.
22139 (floatsi<mode>2, FLOAT128 iterator): Bypass calling
22140 rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
22141 Use local variables for IBM extended format.
22142 (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
22143 (fix_trunc<mode>si2_fprs): Likewise.
22144 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
22145 (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
22146 (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
22147 to know that we can now have integers of all sizes in vector
22148 registers.
22149 (fix<uns>_<mode>di2_hw): Likewise.
22150 (float<uns>_<mode>si2_hw): Likewise.
22151 (fix_<mode>si2_hw): Likewise.
22152 (fixuns_<mode>si2_hw): Likewise.
22153 (float<uns>_<mode>di2_hw): Likewise.
22154 (float_<mode>di2_hw): Likewise.
22155 (float_<mode>si2_hw): Likewise.
22156 (floatuns_<mode>di2_hw): Likewise.
22157 (floatuns_<mode>si2_hw): Likewise.
22158 (xscvqp<su>wz_<mode>): Delete, no longer used.
22159 (xscvqp<su>dz_<mode>): Likewise.
22160 (xscv<su>dqp_<mode>): Likewise.
22161 (ieee128_mfvsrd_64bit): Likewise.
22162 (ieee128_mfvsrd_32bit): Likewise.
22163 (ieee128_mfvsrwz): Likewise.
22164 (ieee128_mtvsrw): Likewise.
22165 (ieee128_mtvsrd_64bit): Likewise.
22166 (ieee128_mtvsrd_32bit): Likewise.
22167
22168 2017-01-31 Martin Liska <mliska@suse.cz>
22169
22170 PR ipa/79285
22171 * ipa-prop.c (ipa_free_all_node_params): Call release method
22172 instead of ~sumbol_summary to not to trigger double times
22173 dtor of hash_map.
22174
22175 2017-01-31 Aldy Hernandez <aldyh@redhat.com>
22176
22177 PR tree-optimization/71691
22178 * bitmap.h (class auto_bitmap): New.
22179 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
22180 is_maybe_undefined instead of ssa_undefined_value_p.
22181
22182 2017-01-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22183
22184 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
22185 __S390_ARCH_LEVEL__ to __ARCH__.
22186
22187 2017-01-31 Jakub Jelinek <jakub@redhat.com>
22188
22189 PR tree-optimization/79267
22190 * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
22191 if should_remove_lhs_p is true.
22192
22193 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
22194
22195 PR debug/63238
22196 * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
22197 (add_alignment_attribute): New.
22198 (base_type_die): Add alignment attribute.
22199 (subrange_type_die): Likewise.
22200 (modified_type_die): Likewise.
22201 (gen_array_type_die): Likewise.
22202 (gen_descr_array_type_die: Likewise.
22203 (gen_enumeration_type_die): Likewise.
22204 (gen_subprogram_die): Likewise.
22205 (gen_variable_die): Likewise.
22206 (gen_field_die): Likewise.
22207 (gen_ptr_to_mbr_type_die): Likewise.
22208 (gen_struct_or_union_type_die): Likewise.
22209 (gen_subroutine_type_die): Likewise.
22210 (gen_typedef_die): Likewise.
22211 (base_type_cmp): Compare alignment attribute.
22212
22213 2017-01-30 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
22214
22215 PR target/79170
22216 * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
22217 (setb_unsigned) New pattern for setb with CCUNS.
22218 * config/rs6000/rs6000.c (expand_block_compare): Use a different
22219 subfc./subfe sequence to avoid overflow problems. Generate a
22220 shorter sequence with cmpld/setb for power9.
22221 * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
22222 for generating subfc. instruction.
22223 (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
22224 now uses this instruction.
22225
22226 2017-01-30 Ian Lance Taylor <iant@google.com>
22227
22228 PR debug/79289
22229 * dwarf2out.c (gen_type_die_with_usage): When picking a variant
22230 for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
22231
22232 2017-01-30 Martin Sebor <msebor@redhat.com>
22233
22234 * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
22235 Move constant to the right of a relational operator.
22236 (get_mpfr_format_length, format_character, format_string): Ditto.
22237 (should_warn_p, maybe_warn): Same.
22238
22239 * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
22240
22241 2017-01-30 Maxim Ostapenko <m.ostapenko@samsung.com>
22242
22243 PR lto/79061
22244 * asan.c (get_translation_unit_decl): Remove function.
22245 (asan_add_global): Force has_dynamic_init to zero in LTO mode.
22246
22247 2017-01-30 Martin Liska <mliska@suse.cz>
22248
22249 PR gcov-profile/79259
22250 * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
22251 -fprofile-generate.
22252
22253 2017-01-30 Martin Liska <mliska@suse.cz>
22254
22255 PR bootstrap/78985
22256 * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
22257 Initialize variables with NULL value.
22258
22259 2017-01-30 Richard Earnshaw <rearnsh@arm.com>
22260
22261 PR target/79260
22262 * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
22263 tm_p_file.
22264 * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
22265
22266 2017-01-30 Richard Biener <rguenther@suse.de>
22267
22268 PR tree-optimization/79276
22269 * tree-vrp.c (process_assert_insertions): Properly adjust common
22270 when removing a duplicate.
22271
22272 * gcc.dg/torture/pr79276.c: New testcase.
22273
22274 2017-01-30 Richard Biener <rguenther@suse.de>
22275
22276 PR tree-optimization/79256
22277 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
22278 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
22279 alignment on TYPE.
22280 * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
22281
22282 2017-01-30 Dominik Vogt <vogt@linux.vnet.ibm.com>
22283
22284 PR target/79240
22285 * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
22286 ("*r<noxa>sbg_<mode>_sll_bitmask")
22287 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
22288 ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
22289 Use contiguous_bitmask_nowrap_operand.
22290
22291 2017-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22292
22293 PR target/79268
22294 * config/rs6000/altivec.h (vec_xl): Revise #define.
22295 (vec_xst): Likewise.
22296
22297 2017-01-27 Uros Bizjak <ubizjak@gmail.com>
22298
22299 * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
22300
22301 2017-01-27 Bernd Schmidt <bschmidt@redhat.com>
22302
22303 PR rtl-optimization/79194
22304 * cprop.c (one_cprop_pass): Move deletion of code after unconditional
22305 traps before call to bypass_conditional_jumps.
22306
22307 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
22308
22309 PR tree-optimization/71374
22310 * lra-constraints.c (check_conflict_input_operands): New.
22311 (match_reload): Use it.
22312
22313 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
22314
22315 PR target/79131
22316 * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
22317 account to calculate conflict_set.
22318
22319 2017-01-27 Bin Cheng <bin.cheng@arm.com>
22320
22321 PR rtl-optimization/78559
22322 * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
22323 other_insn in combine.
22324
22325 2017-01-27 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
22326
22327 * builtin-types.def: Use unsigned_char_type_node for BT_UINT8. Use
22328 uint16_type_node for BT_UINT16.
22329
22330 2017-01-27 David Malcolm <dmalcolm@redhat.com>
22331
22332 * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
22333 "RTL Tests" to menu.
22334 (GIMPLE Tests): New node.
22335 (RTL Tests): New node.
22336
22337 2017-01-27 Richard Biener <rguenther@suse.de>
22338
22339 PR tree-optimization/79245
22340 * tree-loop-distribution.c (distribute_loop): Apply cost
22341 modeling also to detected patterns.
22342
22343 2017-01-27 Richard Biener <rguenther@suse.de>
22344
22345 PR tree-optimization/71433
22346 * tree-vrp.c (register_new_assert_for): Revert earlier changes.
22347 (compare_assert_loc): New function.
22348 (process_assert_insertions): Sort and optimize assert locations
22349 to remove duplicates and push down identical assertions on
22350 edges to their destination block.
22351
22352 2017-01-27 Richard Biener <rguenther@suse.de>
22353
22354 PR tree-optimization/79244
22355 * tree-vrp.c (remove_range_assertions): Forcefully propagate
22356 out SSA names even if abnormal.
22357
22358 2017-01-27 Jakub Jelinek <jakub@redhat.com>
22359
22360 * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
22361 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
22362 instead of MPFR_RNDN.
22363
22364 2017-01-27 Richard Earnshaw <rearnsha@arm.com>
22365
22366 PR target/79239
22367 * arm.c (arm_option_override): Don't call build_target_option_node
22368 until after doing all option overrides.
22369 (arm_valid_target_attribute_tree): Likewise.
22370
22371 2017-01-27 Martin Liska <mliska@suse.cz>
22372
22373 * doc/invoke.texi (-fprofile-arcs): Document profiling support
22374 for {cd}tors and C++ {cd}tors.
22375
22376 2017-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
22377
22378 * config/s390/s390.md ("*setmem_long_and")
22379 ("*setmem_long_and_31z"): Use zero_extend instead of and.
22380
22381 2017-01-26 Martin Sebor <msebor@redhat.com>
22382
22383 * gimple-ssa-sprintf.c (format_floating): Simplify the computation
22384 of precision.
22385
22386 2017-01-26 Martin Sebor <msebor@redhat.com>
22387
22388 * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
22389 HAVE_DFmode before using XFmode or DFmode.
22390 (parse_directive): Avoid using the z length modifier to avoid
22391 the ISO C++98 does not support the ‘z’ gnu_printf length modifier.
22392
22393 PR middle-end/78703
22394 * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
22395 to accept adjustment as an array.
22396 (get_int_range): New function.
22397 (struct directive): Make width and prec arrays.
22398 (directive::set_width, directive::set_precision): Call get_int_range.
22399 (format_integer, format_floating): Handle width and precision ranges.
22400 (format_string, parse_directive): Same.
22401
22402 2017-01-26 Jakub Jelinek <jakub@redhat.com>
22403
22404 PR debug/79129
22405 * dwarf2out.c (generate_skeleton_bottom_up): For children with
22406 comdat_type_p set, just clone them, but keep the children in the
22407 original DIE.
22408
22409 PR debug/78835
22410 * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
22411 which have direct callers with -fvar-tracking-assignments enabled
22412 in the current TU.
22413 (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
22414 inside of type units.
22415
22416 2017-01-26 Martin Sebor <msebor@redhat.com>
22417
22418 PR middle-end/78703
22419 * gimple-ssa-sprintf.c (struct result_range): Add likely and
22420 unlikely counters.
22421 (struct format_result): Replace number_chars, number_chars_min,
22422 and number_chars_max with a single member of struct result_range.
22423 Remove bounded.
22424 (format_result::operator+=): Adjust.
22425 (struct fmtresult): Remove bounded. Handle likely and unlikely
22426 counters.
22427 (fmtresult::adjust_for_width_or_precision): New function.
22428 (fmtresult:type_max_digits): New function.
22429 (bytes_remaining): Handle likely and unlikely counters.
22430 (min_bytes_remaining): Remove.
22431 (format_percent): Simplify.
22432 (format_integer, format_floating): Set likely and unlikely counters.
22433 (get_string_length, format_character, format_string): Same.
22434 (format_plain, should_warn_p): New function.
22435 (maybe_warn): Call should_warn_p. Update diagnostic messages
22436 and handle those for all directives, including plain strings.
22437 (format_directive): Handle likely and unlikely counters.
22438 Remove unnecessary quoting from diagnostics. Add an informational
22439 note.
22440 (add_bytes): Remove.
22441 (pass_sprintf_length::compute_format_length): Simplify.
22442 (try_substitute_return_value): Handle likely and unlikely counters.
22443
22444 2017-01-26 Carl Love <cel@us.ibm.com>
22445
22446 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
22447 bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
22448
22449 2017-01-26 Vladimir Makarov <vmakarov@redhat.com>
22450
22451 PR target/79131
22452 * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
22453 endianess for subregs into account.
22454 * lra-constraints.c (lra_constraints): Do risky transformations
22455 always on the first iteration.
22456 * lra-lives.c (check_pseudos_live_through_calls): Add arg
22457 last_call_used_reg_set.
22458 (process_bb_lives): Define and use last_call_used_reg_set.
22459 * lra.c (lra): Always continue after lra_constraints on the first
22460 iteration.
22461
22462 2017-01-26 Kirill Yukhin <kirill.yukhin@gmail.com>
22463
22464 * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
22465 constant.
22466 * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
22467
22468 2017-01-26 Jakub Jelinek <jakub@redhat.com>
22469
22470 * config/i386/avx512fintrin.h (_ktest_mask16_u8,
22471 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
22472 * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
22473 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
22474 * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
22475 __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
22476 OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
22477 * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
22478 (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
22479
22480 2017-01-26 Marek Polacek <polacek@redhat.com>
22481
22482 PR c/79199
22483 * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
22484 for the third operand.
22485
22486 2017-01-26 Jakub Jelinek <jakub@redhat.com>
22487
22488 PR middle-end/79236
22489 * omp-low.c (struct omp_context): Add simt_stmt field.
22490 (scan_omp_for): Return omp_context *.
22491 (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
22492 context to the _simt_ SIMD stmt.
22493 (lower_omp_for): For combined SIMD with sibling _simt_
22494 SIMD, make sure to use the same decls in _looptemp_
22495 clauses as in the sibling.
22496
22497 2017-01-26 David Sherwood <david.sherwood@arm.com>
22498
22499 PR middle-end/79212
22500 * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
22501 all contexts.
22502
22503 2017-01-26 Jakub Jelinek <jakub@redhat.com>
22504
22505 PR target/70465
22506 * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
22507 emit fld b; fld a; if possible.
22508
22509 * brig-builtins.def: Update copyright years.
22510 * config/arm/arm_acle_builtins.def: Update copyright years.
22511
22512 2017-01-25 Michael Meissner <meissner@linux.vnet.ibm.com>
22513
22514 PR target/79179
22515 * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
22516 constraint instead of o for the stxsd instruction.
22517
22518 2017-01-25 Carl Love <cel@us.ibm.com>
22519
22520 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
22521 of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
22522
22523 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
22524
22525 * doc/invoke.texi (C++ Dialect Options): Fix typo.
22526
22527 2017-01-25 Richard Biener <rguenther@suse.de>
22528
22529 PR tree-optimization/69264
22530 * target.def (vector_alignment_reachable): Improve documentation.
22531 * doc/tm.texi: Regenerate.
22532 * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
22533 and add a comment.
22534 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
22535 earlier changes with respect to TYPE_USER_ALIGN.
22536 (vector_alignment_reachable_p): Likewise. Improve dumping.
22537
22538 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22539
22540 PR target/79145
22541 * config/arm/arm.md (xordi3): Force constant operand into a register
22542 for TARGET_IWMMXT.
22543
22544 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22545
22546 * doc/invoke.texi (-fstore-merging): Correct default optimization
22547 levels at which it is enabled.
22548 (-O): Move -fstore-merging from list to...
22549 (-O2): ... Here.
22550
22551 2017-01-25 Richard Biener <rguenther@suse.de>
22552
22553 PR debug/78363
22554 * omp-expand.c: Include debug.h.
22555 (expand_omp_taskreg): Make sure to generate early debug before
22556 outlining anything from a function.
22557 (expand_omp_target): Likewise.
22558 (grid_expand_target_grid_body): Likewise.
22559
22560 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
22561
22562 PR lto/79061
22563 * asan.c (get_translation_unit_decl): New function.
22564 (asan_add_global): Extract modules file name from globals
22565 TRANSLATION_UNIT_DECL name.
22566
22567 2017-01-24 Eric Botcazou <ebotcazou@adacore.com>
22568
22569 PR target/77439
22570 * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
22571 for long calls with APCS frame and VFP.
22572
22573 2017-01-24 David Malcolm <dmalcolm@redhat.com>
22574
22575 * cfg.c (original_copy_tables_initialized_p): New function.
22576 * cfg.h (original_copy_tables_initialized_p): New decl.
22577 * cfgrtl.c (relink_block_chain): Guard the call to
22578 free_original_copy_tables with a call to
22579 original_copy_tables_initialized_p.
22580 * cgraph.h (symtab_node::native_rtl_p): New decl.
22581 * cgraphunit.c (symtab_node::native_rtl_p): New function.
22582 (symtab_node::needed_p): Don't assert for early assembly output
22583 for __RTL functions.
22584 (cgraph_node::finalize_function): Set "force_output" for __RTL
22585 functions.
22586 (cgraph_node::analyze): Bail out early for __RTL functions.
22587 (analyze_functions): Update assertion to support __RTL functions.
22588 (cgraph_node::expand): Bail out early for __RTL functions.
22589 * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
22590 __RTL functions.
22591 * function.h (struct function): Update comment for field
22592 "pass_startwith".
22593 * gimple-expr.c: Include "tree-pass.h".
22594 (gimple_has_body_p): Return false for __RTL functions.
22595 * Makefile.in (OBJS): Add run-rtl-passes.o.
22596 * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
22597 accessor.
22598 (gcc::pass_manager::get_clean_slate): New accessor.
22599 * passes.c: Include "insn-addr.h".
22600 (should_skip_pass_p): Add logging. Update logic for running
22601 "expand" to be compatible with both __GIMPLE and __RTL. Guard
22602 property-provider override so it is only done for gimple passes.
22603 Don't skip dfinit.
22604 (skip_pass): New function.
22605 (execute_one_pass): Call skip_pass when skipping passes.
22606 * read-md.c (md_reader::read_char): Support filtering
22607 the input to a subset of line numbers.
22608 (md_reader::md_reader): Initialize fields
22609 m_first_line and m_last_line.
22610 (md_reader::read_file_fragment): New function.
22611 * read-md.h (md_reader::read_file_fragment): New decl.
22612 (md_reader::m_first_line): New field.
22613 (md_reader::m_last_line): New field.
22614 * read-rtl-function.c (function_reader::create_function): Only
22615 create cfun if it doesn't already exist. Set PROP_rtl on cfun's
22616 curr_properties. Set DECL_INITIAL to a dummy block.
22617 (read_rtl_function_body_from_file_range): New function.
22618 * read-rtl-function.h (read_rtl_function_body_from_file_range):
22619 New decl.
22620 * run-rtl-passes.c: New file.
22621 * run-rtl-passes.h: New file.
22622
22623 2017-01-24 Jeff Law <law@redhat.com>
22624
22625 * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
22626 buffer size.
22627
22628 2017-01-24 Bin Cheng <bin.cheng@arm.com>
22629
22630 PR tree-optimization/79159
22631 * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
22632 (record_nonwrapping_iv): Improve boundary using above function if no
22633 value range information.
22634
22635 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
22636 Martin Jambor <mjambor@suse.cz>
22637
22638 * brig-builtins.def: New file.
22639 * builtins.def (DEF_HSAIL_BUILTIN): New macro.
22640 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
22641 (DEF_HSAIL_SAT_BUILTIN): Likewise.
22642 (DEF_HSAIL_INTR_BUILTIN): Likewise.
22643 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
22644 * builtin-types.def (BT_INT8): New.
22645 (BT_INT16): Likewise.
22646 (BT_UINT8): Likewise.
22647 (BT_UINT16): Likewise.
22648 (BT_FN_ULONG): Likewise.
22649 (BT_FN_UINT_INT): Likewise.
22650 (BT_FN_UINT_ULONG): Likewise.
22651 (BT_FN_UINT_LONG): Likewise.
22652 (BT_FN_UINT_PTR): Likewise.
22653 (BT_FN_ULONG_PTR): Likewise.
22654 (BT_FN_INT8_FLOAT): Likewise.
22655 (BT_FN_INT16_FLOAT): Likewise.
22656 (BT_FN_UINT32_FLOAT): Likewise.
22657 (BT_FN_UINT16_FLOAT): Likewise.
22658 (BT_FN_UINT8_FLOAT): Likewise.
22659 (BT_FN_UINT64_FLOAT): Likewise.
22660 (BT_FN_UINT16_UINT32): Likewise.
22661 (BT_FN_UINT32_UINT16): Likewise.
22662 (BT_FN_UINT16_UINT16_UINT16): Likewise.
22663 (BT_FN_INT_PTR_INT): Likewise.
22664 (BT_FN_UINT_PTR_UINT): Likewise.
22665 (BT_FN_LONG_PTR_LONG): Likewise.
22666 (BT_FN_ULONG_PTR_ULONG): Likewise.
22667 (BT_FN_VOID_UINT64_UINT64): Likewise.
22668 (BT_FN_UINT8_UINT8_UINT8): Likewise.
22669 (BT_FN_INT8_INT8_INT8): Likewise.
22670 (BT_FN_INT16_INT16_INT16): Likewise.
22671 (BT_FN_INT_INT_INT): Likewise.
22672 (BT_FN_UINT_FLOAT_UINT): Likewise.
22673 (BT_FN_FLOAT_UINT_UINT): Likewise.
22674 (BT_FN_ULONG_UINT_UINT): Likewise.
22675 (BT_FN_ULONG_UINT_PTR): Likewise.
22676 (BT_FN_ULONG_ULONG_ULONG): Likewise.
22677 (BT_FN_UINT_UINT_UINT): Likewise.
22678 (BT_FN_VOID_UINT_PTR): Likewise.
22679 (BT_FN_UINT_UINT_PTR: Likewise.
22680 (BT_FN_UINT32_UINT64_PTR): Likewise.
22681 (BT_FN_INT_INT_UINT_UINT): Likewise.
22682 (BT_FN_UINT_UINT_UINT_UINT): Likewise.
22683 (BT_FN_UINT_UINT_UINT_PTR): Likewise.
22684 (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
22685 (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
22686 (BT_FN_LONG_LONG_UINT_UINT): Likewise.
22687 (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
22688 (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
22689 (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
22690 (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
22691 (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
22692 (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
22693 * doc/frontends.texi: List BRIG FE.
22694 * doc/install.texi (Testing): Add BRIG tesring requirements.
22695 * doc/invoke.texi (Overall Options): Mention BRIG.
22696 * doc/standards.texi (Standards): Doucment BRIG HSA version.
22697
22698 2017-01-24 Richard Biener <rguenther@suse.de>
22699
22700 PR translation/79208
22701 * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
22702
22703 2017-01-24 Martin Jambor <mjambor@suse.cz>
22704
22705 PR bootstrap/79198
22706 * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
22707 * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
22708 and known_contexts.
22709
22710 2017-01-24 Aldy Hernandez <aldyh@redhat.com>
22711
22712 PR middle-end/79123
22713 * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
22714 casts from signed to unsigned really don't have a range.
22715
22716 2017-01-24 Markus Trippelsdorf <markus@trippelsdorf.de>
22717
22718 * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
22719 GMP_RNDx for compatiblity.
22720
22721 2017-01-24 Martin Liska <mliska@suse.cz>
22722
22723 PR bootstrap/79132
22724 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
22725 that would prevent us to call alloca with -1 as argument.
22726
22727 2017-01-24 Jakub Jelinek <jakub@redhat.com>
22728
22729 * dwarf2out.c (output_compilation_unit_header, output_file_names):
22730 Avoid -Wformat-security warning.
22731
22732 2017-01-23 Andrew Pinski <apinski@cavium.com>
22733
22734 * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
22735 cost table.
22736
22737 2017-01-23 Martin Sebor <msebor@redhat.com>
22738
22739 PR middle-end/78703
22740 * gimple-ssa-sprintf.c (warn_level): New global.
22741 (format_integer): Use it here and throughout the rest of the file.
22742 Use the same switch to compute sign as base.
22743 (maybe_warn): New function.
22744 (format_directive): Factor out warnings into maybe_warn.
22745 Add debugging output. Use warn_level.
22746 (add_bytes): Use warn_level.
22747 (pass_sprintf_length::compute_format_length): Add debugging output.
22748 (try_substitute_return_value): Same.
22749 (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
22750
22751 PR middle-end/78703
22752 * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
22753 (struct fmtresult, format_integer, format_floating): Adjust.
22754 (fmtresult::fmtresult): Set max correctly in two argument ctor.
22755 (get_string_length, format_string,format_directive): Same.
22756 (pass_sprintf_length::compute_format_length): Same.
22757 (try_substitute_return_value): Simplify slightly.
22758
22759 PR middle-end/78703
22760 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
22761 (fmtresult::operator+=): Outlined.
22762 (struct fmtresult): Add ctors.
22763 (struct conversion_spec): Rename...
22764 (struct directive): ...to this. Add and remove data members.
22765 (directive::set_width, directive::set_precision): New functions.
22766 (format_percent): Use fmtresult ctor.
22767 (get_width_and_precision): Remove.
22768 (format_integer): Make naming changes. Avoid computing width and
22769 precision.
22770 (format_floating): Same. Adjust indentation.
22771 (format_character, format_none): New functions.
22772 (format_string): Moved character handling to format_character.
22773 (format_directive): Remove arguments, change return type.
22774 (parse_directive): New function.
22775 (pass_sprintf_length::compute_format_length): Move directive
22776 parsing to parse_directive.
22777
22778 2017-01-23 Jakub Jelinek <jakub@redhat.com>
22779
22780 * tree.h (assign_assembler_name_if_neeeded): Rename to ...
22781 (assign_assembler_name_if_needed): ... this.
22782 * tree.c (assign_assembler_name_if_neeeded): Rename to ...
22783 (assign_assembler_name_if_needed): ... this.
22784 (free_lang_data_in_cgraph): Adjust callers.
22785 * cgraphunit.c (cgraph_node::analyze): Likewise.
22786 * omp-expand.c (expand_omp_taskreg, expand_omp_target):
22787 Likewise.
22788
22789 2017-01-23 Richard Biener <rguenther@suse.de>
22790
22791 PR tree-optimization/79088
22792 PR tree-optimization/79188
22793 * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
22794 resetting loop bounds after last path deletion. Reset loop
22795 bounds of the target loop, make code match the comments.
22796 * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
22797 Make sure loops need no fixups.
22798
22799 2017-01-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
22800
22801 * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
22802 exponent support with double type for first argument.
22803 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
22804 type returned by __builtin_vec_extract_sig,
22805 __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
22806 functions from "vector int" to "vector unsigned int" or from
22807 "vector long long int" to "vector unsigned long long int".
22808 Changed type returned by __builtin_vec_extract_exp,
22809 __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
22810 functions from "vector int" to "vector unsigned int" or from
22811 "vector long long int" to "vector unsigned long long int".
22812 Changed return type of __builtin_vec_test_data_class,
22813 __builtin_vec_test_data_class_sp, and
22814 __builtin_vec_test_data_class_dp from "vector int" to
22815 "vector bool int" or from "vector long long int" to "vector bool
22816 long long int" and changed second argument type from "unsigned
22817 int" to "int". Added new overloaded function forms "vector float
22818 __builtin_vec_insert_exp (vector float, vector unsigned int)" and
22819 "vector float __builtin_vec_insert_exp_sp (vector float, vector
22820 unsigned int)" and "vector double __builtin_vec_insert_exp (vector
22821 double, vector unsigned long long int)" and "vector double
22822 __builtin_vec_insert_exp_dp (vector double, vector unsigned long
22823 long int)". Changed return type of
22824 __builtin_scalar_test_data_class and
22825 __builtin_scalar_test_data_class_sp and
22826 __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
22827 int" and changed second argument from "unsigned int" to "int".
22828 Changed type returned by __builtin_scalar_test_neg,
22829 __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
22830 from "int" to "bool int". Added new overloaded function form
22831 "double __builtin_scalar_insert_exp (double, unsigned long long int)".
22832 * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
22833 exponent double-precision with floating point first argument.
22834 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
22835 documentation of scalar_test_data_class, scalar_test_neg,
22836 scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
22837 vector_extract_exp, vec_extract_sig, vec_insert_exp, and
22838 vec_test_data_class built-in functions to reflect refinements in
22839 their type signatures.
22840
22841 2017-01-23 Andreas Tobler <andreast@gcc.gnu.org>
22842
22843 * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
22844 size of buf.
22845 (aarch64_elf_asm_destructor): Likewise.
22846
22847 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
22848
22849 PR rtl-optimization/78634
22850 * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
22851 (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
22852 * ifcvt.c (noce_try_cmove): Add missing cost check.
22853
22854 PR rtl-optimization/71724
22855 * combine.c (if_then_else_cond): Look for situations where it is
22856 beneficial to undo the work of one of the recursive calls.
22857
22858 2017-01-23 Bin Cheng <bin.cheng@arm.com>
22859
22860 PR tree-optimization/70754
22861 * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
22862 (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE. Insert
22863 combined stmt before it if not NULL.
22864 (combine_chains): Process refs reversely and compute dominance point
22865 for root ref.
22866
22867 2017-01-23 Martin Liska <mliska@suse.cz>
22868
22869 PR tree-optimization/79196
22870 * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
22871 (fold_strstr_to_strncmp): ... this. Fold the pattern to strncmp
22872 instead of memcmp.
22873 (strlen_optimize_stmt): Call the renamed function.
22874
22875 2017-01-23 Michael Matz <matz@suse.de>
22876
22877 PR tree-optimization/78384
22878 * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
22879
22880 2017-01-23 Richard Biener <rguenther@suse.de>
22881
22882 PR tree-optimization/79186
22883 * tree-vrp.c (register_new_assert_for): Make sure we've seen
22884 both incoming edges before moving an assert.
22885
22886 2017-01-23 Martin Jambor <mjambor@suse.cz>
22887
22888 * ipa-prop.c (load_from_param_1): Removed.
22889 (load_from_unmodified_param): Bits from load_from_param_1 put back
22890 here.
22891 (load_from_param): Removed.
22892 (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
22893 with stmt. Reverted back to use of load_from_unmodified_param.
22894
22895 2017-01-23 Martin Jambor <mjambor@suse.cz>
22896
22897 PR ipa/79108
22898 * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
22899 (ipa_node_params): Annotate with GTY((for_user)). Make descriptors
22900 field a pointer to garbage collected vector, mark lattices and
22901 ipcp_orig_node with GTY((skip)).
22902 (ipa_get_param_count): Adjust to descriptors being a pointer.
22903 (ipa_get_param): Likewise.
22904 (ipa_get_type): Likewise.
22905 (ipa_get_param_move_cost): Likewise.
22906 (ipa_set_param_used): Likewise.
22907 (ipa_get_controlled_uses): Likewise.
22908 (ipa_set_controlled_uses): Likewise.
22909 (ipa_is_param_used): Likewise.
22910 (ipa_node_params_t): Move into garbage collector. New methods insert
22911 and remove.
22912 (ipa_node_params_sum): Annotate wth GTY(()).
22913 (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
22914 garbage collected.
22915 (ipa_load_from_parm_agg): Adjust declaration.
22916 * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
22917 * ipa-profile.c (ipa_profile): Likewise.
22918 * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
22919 (ipa_populate_param_decls): Make descriptors parameter garbage
22920 collected.
22921 (ipa_dump_param): Adjust to descriptors being a pointer.
22922 (ipa_alloc_node_params): Likewise.
22923 (ipa_initialize_node_params): Likewise.
22924 (load_from_param_1): Make descriptors parameter garbage collected.
22925 (load_from_unmodified_param): Likewise.
22926 (load_from_param): Likewise.
22927 (ipa_load_from_parm_agg): Likewise.
22928 (ipa_node_params::~ipa_node_params): Removed.
22929 (ipa_free_all_node_params): Remove call to delete operator.
22930 (ipa_node_params_t::insert): New.
22931 (ipa_node_params_t::remove): Likewise.
22932 (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
22933 copy known_csts and known_contexts vectors.
22934 (ipa_read_node_info): Adjust to descriptors being a pointer.
22935 (ipcp_modif_dom_walker): Make m_descriptors field garbage
22936 collected.
22937 (ipcp_transform_function): Make descriptors variable garbage
22938 collected.
22939
22940 2017-01-23 Andrew Senkevich <andrew.senkevich@intel.com>
22941
22942 * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
22943 * config/i386/avx512dqintrin.h: Ditto.
22944 * config/i386/avx512fintrin.h: Ditto.
22945 * config/i386/i386.c: Handle new builtins.
22946 * config/i386/i386-builtin.def: Add new builtins.
22947 * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
22948 (UNSPEC_KORTEST, UNSPEC_KTEST): New.
22949
22950 2017-01-23 Jakub Jelinek <jakub@redhat.com>
22951 Martin Liska <mliska@suse.cz>
22952
22953 * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
22954 * asan.c (asan_expand_poison_ifn): Support stores and use
22955 appropriate ASAN report function.
22956 * internal-fn.c (expand_ASAN_POISON_USE): New function.
22957 * internal-fn.def (ASAN_POISON_USE): Declare.
22958 * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
22959 (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
22960 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
22961 ASAN_POISON calls w/o LHS.
22962 * tree-ssa.c (execute_update_addresses_taken): Create clobber
22963 for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
22964 from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
22965 * gimplify.c (asan_poison_variables): Add attribute
22966 use_after_scope_memory to variables that really needs to live
22967 in memory.
22968 * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
22969 having the attribute.
22970
22971 2017-01-23 Martin Liska <mliska@suse.cz>
22972
22973 * asan.c (create_asan_shadow_var): New function.
22974 (asan_expand_poison_ifn): Likewise.
22975 * asan.h (asan_expand_poison_ifn): New declaration.
22976 * internal-fn.c (expand_ASAN_POISON): Likewise.
22977 * internal-fn.def (ASAN_POISON): New builtin.
22978 * sanopt.c (pass_sanopt::execute): Expand
22979 asan_expand_poison_ifn.
22980 * tree-inline.c (copy_decl_for_dup_finish): Make function
22981 external.
22982 * tree-inline.h (copy_decl_for_dup_finish): Likewise.
22983 * tree-ssa.c (is_asan_mark_p): New function.
22984 (execute_update_addresses_taken): Rewrite local variables
22985 (identified just by use-after-scope as addressable) into SSA.
22986
22987 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
22988
22989 * doc/install.texi (Specific): opensource.apple.com uses https
22990 now. Remove trailing slash.
22991
22992 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
22993
22994 * README.Portability: Remove note on an Irix compatibility issue.
22995
22996 2017-01-22 Dimitry Andric <dim@FreeBSD.org>
22997
22998 * gcov.c (INCLUDE_ALGORITHM): Define.
22999 (INCLUDE_VECTOR): Define.
23000 No longer include <vector> and <algorithm> directly.
23001
23002 2017-01-21 Gerald Pfeifer <gerald@pfeifer.com>
23003
23004 * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
23005 to https.
23006 * doc/invoke.texi (Code Gen Options): Ditto.
23007
23008 2017-01-21 Jan Hubicka <hubicka@ucw.cz>
23009
23010 PR lto/78407
23011 * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
23012
23013 2017-01-21 Bernd Schmidt <bschmidt@redhat.com>
23014
23015 rtl-optimization/79125
23016 * cprop.c (local_cprop_pass): Handle cases where we make an
23017 unconditional trap.
23018
23019 2017-01-20 Segher Boessenkool <segher@kernel.crashing.org>
23020
23021 PR target/61729
23022 PR target/77850
23023 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
23024 read from, for big endian.
23025
23026 2017-01-20 Jiong Wang <jiong.wang@arm.com>
23027
23028 * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
23029 register pauth builtins for LP64 only.
23030
23031 2017-01-20 Marek Polacek <polacek@redhat.com>
23032
23033 PR c/79152
23034 * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
23035 non-case labels.
23036
23037 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
23038
23039 * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
23040 of safelen status.
23041 * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
23042 * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
23043 * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
23044
23045 2017-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23046
23047 PR target/71270
23048 * config/arm/arm.c (neon_valid_immediate): Reject vector constants
23049 in big-endian mode when they are not a single duplicated value.
23050
23051 2017-01-20 Richard Biener <rguenther@suse.de>
23052
23053 * BASE-VER: Bump to 7.0.1.
23054
23055 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
23056
23057 * omp-low.c (omplow_simd_context): New struct. Use it...
23058 (lower_rec_simd_input_clauses): ...here and...
23059 (lower_rec_input_clauses): ...here to hold common data. Adjust all
23060 references to idx, lane, max_vf, is_simt.
23061
23062 2017-01-20 Graham Markall <graham.markall@embecosm.com>
23063
23064 * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
23065 mcpu=nps400.
23066
23067 2017-01-20 Martin Jambor <mjambor@suse.cz>
23068
23069 * hsa.h: Renaed to hsa-common.h. Adjusted a comment.
23070 * hsa.c: Renaed to hsa-common.c. Change include of gt-hsa.h to
23071 gt-hsa-common.h.
23072 * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
23073 (GTFILES): Rename hsa.c to hsa-common.c.
23074 * hsa-brig.c: Change include of hsa.h to hsa-common.h.
23075 * hsa-dump.c: Likewise.
23076 * hsa-gen.c: Likewise.
23077 * hsa-regalloc.c: Likewise.
23078 * ipa-hsa.c: Likewise.
23079 * omp-expand.c: Likewise.
23080 * omp-low.c: Likewise.
23081 * toplev.c: Likewise.
23082
23083 2017-01-20 Marek Polacek <polacek@redhat.com>
23084
23085 PR c/64279
23086 * doc/invoke.texi: Document -Wduplicated-branches.
23087 * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
23088 COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
23089 POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
23090 STATEMENT_LIST, and RETURN_EXPR. For non-pure non-const functions
23091 return 0 only when not OEP_LEXICOGRAPHIC.
23092 (fold_build_cleanup_point_expr): Use the expression
23093 location when building CLEANUP_POINT_EXPR.
23094 * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
23095 * tree.c (add_expr): Handle error_mark_node.
23096
23097 2017-01-20 Martin Liska <mliska@suse.cz>
23098
23099 PR lto/69188
23100 * tree-profile.c (init_ic_make_global_vars): Do not call
23101 finalize_decl.
23102 (gimple_init_gcov_profiler): Likewise.
23103
23104 2017-01-20 Martin Liska <mliska@suse.cz>
23105
23106 PR ipa/71190
23107 * cgraph.h (maybe_create_reference): Remove argument and
23108 update comment.
23109 * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
23110 argument.
23111 * ipa-cp.c (create_specialized_node): Likewise.
23112 * symtab.c (symtab_node::maybe_create_reference): Handle
23113 VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
23114
23115 2017-01-20 Martin Liska <mliska@suse.cz>
23116
23117 * read-rtl-function.c (function_reader::create_function): Use
23118 build_decl instread of build_decl_stat.
23119
23120 2017-01-20 Andrew Senkevich <andrew.senkevich@intel.com>
23121
23122 * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
23123 * config/i386/avx512dqintrin.h: Ditto.
23124 * config/i386/avx512fintrin.h: Ditto.
23125 * config/i386/i386-builtin-types.def: Add new types.
23126 * config/i386/i386.c: Handle new types.
23127 * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
23128 (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
23129 (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
23130 (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
23131 (__builtin_ia32_kshiftridi): New.
23132 * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
23133
23134 2017-01-19 Segher Boessenkool <segher@kernel.crashing.org>
23135
23136 PR target/78875
23137 PR target/79140
23138 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
23139 define to rs6000_init_stack_protect_guard.
23140 (rs6000_init_stack_protect_guard): New function.
23141
23142 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
23143 Yunqiang Su <yunqiang.su@imgtec.com>
23144
23145 * config.gcc (supported_defaults): Add madd4.
23146 (with_madd4): Add validation.
23147 (all_defaults): Add madd4.
23148 * config/mips/mips.opt (mmadd4): New option.
23149 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
23150 mmadd4.
23151 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
23152 __mips_no_madd4.
23153 (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
23154 (ISA_HAS_FUSED_MADD4): Likewise.
23155 * doc/invoke.texi (-mmadd4): Document the new option.
23156 * doc/install.texi (--with-madd4): Document the new option.
23157
23158 2017-01-19 Jiong Wang <jiong.wang@arm.com>
23159
23160 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
23161 entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
23162 AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
23163 (aarch64_init_pauth_hint_builtins): New.
23164 (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
23165 (aarch64_expand_builtin): Expand new builtins.
23166
23167 2017-01-19 Jiong Wang <jiong.wang@arm.com>
23168
23169 * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
23170 * combine-stack-adj.c (no_unhandled_cfa): Handle
23171 REG_CFA_TOGGLE_RA_MANGLE.
23172 * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
23173 * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
23174 info for return address signing.
23175 (aarch64_expand_epilogue): Likewise.
23176
23177 2017-01-19 Jiong Wang <jiong.wang@arm.com>
23178
23179 * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
23180 * config/aarch64/aarch64-protos.h
23181 (aarch64_return_address_signing_enabled): New declaration.
23182 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
23183 New function.
23184 (aarch64_expand_prologue): Sign return address before it's pushed onto
23185 stack.
23186 (aarch64_expand_epilogue): Authenticate return address fetched from
23187 stack.
23188 (aarch64_override_options): Sanity check for ILP32 and ISA level.
23189 (aarch64_attributes): New function attributes for "sign-return-address".
23190 * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
23191 UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
23192 ("*do_return"): Generate combined instructions according to key index.
23193 ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
23194 * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
23195 iterators.
23196 (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
23197 * config/aarch64/aarch64.opt (msign-return-address=): New.
23198 * doc/extend.texi (AArch64 Function Attributes): Documents
23199 "sign-return-address=".
23200 * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
23201
23202 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
23203
23204 * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
23205 overall option summary.
23206
23207 2017-01-19 Jiong Wang <jiong.wang@arm.com>
23208
23209 * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
23210 * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
23211 AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
23212 * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
23213
23214 2017-01-19 Michael Meissner <meissner@linux.vnet.ibm.com>
23215
23216 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
23217 -mpower9-minmax by default for -mcpu=power9.
23218 (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
23219 128-bit floating point.
23220
23221 2017-01-20 Alan Modra <amodra@gmail.com>
23222
23223 * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
23224 optimizing for size.
23225
23226 2017-01-20 Alan Modra <amodra@gmail.com>
23227
23228 PR target/79144
23229 * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
23230 for strcmp and strncmp from corresponding builtin decl.
23231
23232 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
23233
23234 * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
23235 instead of i386/rtems-64.h.
23236 * config/i386/rtems-64.h: Remove.
23237
23238 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
23239
23240 PR target/78478
23241 Revert:
23242 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
23243
23244 * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
23245
23246 2017-01-19 Tamar Christina <tamar.christina@arm.com>
23247
23248 * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
23249 Change int to HOST_WIDE_INT.
23250 * config/aarch64/aarch64-protos.h
23251 (aarch64_simd_gen_const_vector_dup): Likewise.
23252 * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
23253
23254 2017-01-19 David Malcolm <dmalcolm@redhat.com>
23255
23256 * langhooks-def.h (lhd_type_for_size): New decl.
23257 (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
23258 * langhooks.c (lhd_type_for_size): New function, taken from
23259 lto_type_for_size.
23260
23261 2017-01-19 Pat Haugen <pthaugen@us.ibm.com>
23262
23263 * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
23264 define_bypass for CR latency.
23265 (power9-cracked-alu): Update bypass latency and remove power9-branch.
23266 (power9-alu2): Add define_bypass for CR latency.
23267 (power9-cmp): New.
23268 (power9-mul): Update insn latency.
23269 (power9-mul-compare): Update insn latency, bypass latency and remove
23270 power9-branch.
23271
23272 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23273
23274 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
23275 Delete.
23276 * config/aarch64/aarch64.md
23277 (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
23278 aarch64_nopcrelative_literal_loads.
23279 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
23280
23281 2017-01-19 Chenghua Xu <paul.hua.gm@gmail.com>
23282
23283 * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
23284 TARGET_LOONGSON_3A.
23285 (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
23286
23287 2017-01-19 Doug Gilmore <doug.gilmore@imgtec.com>
23288
23289 PR target/78176
23290 * config.gcc (supported_defaults): Add lxc1-sxc1.
23291 (with_lxc1_sxc1): Add validation.
23292 (all_defaults): Add lxc1-sxc1.
23293 * config/mips/mips.opt (mlxc1-sxc1): New option.
23294 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
23295 mlxc1-sxc1.
23296 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
23297 __mips_no_lxc1_sxc1.
23298 (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
23299 * doc/invoke.texi (-mlxc1-sxc1): Document the new option.
23300 * doc/install.texi (--with-lxc1-sxc1): Document the new option.
23301
23302 2017-01-19 Richard Biener <rguenther@suse.de>
23303
23304 PR tree-optimization/72488
23305 * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
23306 sure to restore SSA info.
23307 * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
23308
23309 2017-01-19 Richard Earnshaw <rearnsha@arm.com>
23310
23311 PR rtl-optimization/79121
23312 * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
23313 of the inner type when shifting an extended value.
23314
23315 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
23316
23317 PR lto/78407
23318 * symtab.c (symtab_node::equal_address_to): Fix comparing of
23319 interposable aliases.
23320
23321 2017-01-18 Peter Bergner <bergner@vnet.ibm.com>
23322
23323 PR target/78516
23324 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
23325 Use the evmergelohi instruction.
23326 (mov_si<mode>_e500_subreg4_2_le): Likewise.
23327 (mov_sitf_e500_subreg8_2_be): Likewise.
23328 (mov_sitf_e500_subreg12_2_le): Likewise.
23329 (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
23330 (mov_si<mode>_e500_subreg4_2_be): Likewise.
23331 (mov_sitf_e500_subreg8_2_le): Likewise.
23332 (mov_sitf_e500_subreg12_2_be): Likewise.
23333
23334 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23335
23336 * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
23337 attribute from vecsimple to vecperm.
23338 (altivec_vbpermq2): Likewise.
23339
23340 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23341
23342 PR target/79040
23343 * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
23344
23345 2017-01-18 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
23346 * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
23347 * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
23348 strcmp. Fix bug where comparison didn't stop with zero byte. Fix
23349 case where N arg is SIZE_MAX.
23350 * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
23351 (cmpstrsi): Add pattern.
23352
23353 2017-01-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23354
23355 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23356 __builtin_vec_revb builtins.
23357 * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
23358 built-in functions to support generation of the ISA 3.0 XXBR<x>
23359 vector byte reverse instructions.
23360 (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
23361 (P9V_BUILTIN_XXBRD_V2DI): Likewise.
23362 (P9V_BUILTIN_XXBRD_V2DF): Likewise.
23363 (P9V_BUILTIN_XXBGW_V4SI): Likewise.
23364 (P9V_BUILTIN_XXBGW_V4SF): Likewise.
23365 (P9V_BUILTIN_XXBGH_V8HI): Likewise.
23366 (P9V_BUILTIN_VEC_REVB): Likewise.
23367 * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
23368 generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
23369 (p9_xxbrq_v16qi): Likewise.
23370 (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
23371 (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
23372 (p9_xxbrh_v8hi): Likewise.
23373 * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
23374 * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
23375 vec_revb built-in functions.
23376
23377 2017-01-18 Uros Bizjak <ubizjak@gmail.com>
23378
23379 PR rtl-optimization/78952
23380 * config/i386/i386.md (any_extract): New code iterator.
23381 (*insvqi_2): Use any_extract for source operand.
23382 (*insvqi_3): Use any_shiftrt for source operand.
23383
23384 2017-01-18 Wilco Dijkstra <wdijkstr@arm.com>
23385
23386 * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
23387 New function.
23388 (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
23389
23390 2017-01-18 Matthias Klose <doko@ubuntu.com>
23391
23392 * doc/install.texi: Allow default for --with-target-bdw-gc-include.
23393
23394 2016-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23395
23396 * config/rs6000/altivec.h (vec_bperm): Change #define.
23397 * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
23398 (altivec_vbpermq2): New define_insn.
23399 (altivec_vbpermd): Likewise.
23400 * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
23401 function interface.
23402 (VBPERMD): Likewise.
23403 (VBPERM): New polymorphic function interface.
23404 * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
23405 Add entries for P9V_BUILTIN_VEC_VBPERM.
23406 * doc/extend.texi: Add interfaces for vec_bperm.
23407
23408 2017-01-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23409
23410 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
23411 first letter of error messages.
23412 (s390_resolve_overloaded_builtin): Likewise.
23413 * config/s390/s390.c (s390_expand_builtin): Likewise.
23414 (s390_invalid_arg_for_unprototyped_fn): Likewise.
23415 (s390_valid_target_attribute_inner_p): Likewise.
23416 * config/s390/s390.md ("tabort"): Likewise.
23417
23418 2017-01-18 Toma Tabacu <toma.tabacu@imgtec.com>
23419
23420 * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
23421 (ISA_AVOID_DIV_HILO): New macro.
23422 (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
23423 (ISA_HAS_DDIV): Likewise.
23424
23425 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
23426
23427 * doc/invoke.texi (fabi-version): Correct number of occurrences.
23428
23429 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
23430
23431 * doc/invoke.texi (fabi-version): Spelling fix.
23432
23433 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
23434
23435 PR c++/70182
23436 * doc/invoke.texi (fabi-version): Mention mangling fix for
23437 operator names.
23438
23439 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
23440
23441 PR c++/77489
23442 * doc/invoke.texi (fabi-version): Document discriminator mangling.
23443
23444 2017-01-17 Segher Boessenkool <segher@kernel.crashing.org>
23445
23446 PR target/78875
23447 * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
23448 * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
23449 the new options.
23450 * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
23451 flexible settings.
23452 (stack_protect_test): Ditto.
23453 * config/rs6000/rs6000.opt (mstack-protector-guard=,
23454 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
23455 options.
23456 * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
23457 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
23458 -mstack-protector-guard-offset=.
23459 (RS/6000 and PowerPC Options): Ditto.
23460
23461 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
23462
23463 * config/i386/i386.h (MASK_CLASS_P): New define.
23464 * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
23465 there are no registers from different register sets also when
23466 mask registers are used. Update function comment.
23467 * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
23468 to (*k/*r) and (*k/*km) alternatives.
23469
23470 2017-01-17 Wilco Dijkstra <wdijkstr@arm.com>
23471
23472 * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
23473 * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
23474 (EH_RETURN_HANDLER_RTX): New define.
23475 * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
23476 Force frame pointer in EH return functions.
23477 (aarch64_expand_epilogue): Add barrier for eh_return.
23478 (aarch64_final_eh_return_addr): Remove.
23479 (aarch64_eh_return_handler_rtx): New function.
23480 * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
23481 Remove.
23482 (aarch64_eh_return_handler_rtx): New prototype.
23483
23484 2017-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23485
23486 * config/rs6000/altivec.h (vec_rlmi): New #define.
23487 (vec_vrlnm): Likewise.
23488 (vec_rlnm): Likewise.
23489 * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
23490 (UNSPEC_VRLNM): Likewise.
23491 (VIlong): New mode iterator.
23492 (altivec_vrl<VI_char>mi): New define_insn.
23493 (altivec_vrl<VI_char>nm): Likewise.
23494 * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
23495 function entry.
23496 (VRLDNM): Likewise.
23497 (RLNM): New polymorphic function entry.
23498 (VRLWMI): New monomorphic function entry.
23499 (VRLDMI): Likewise.
23500 (RLMI): New polymorphic function entry.
23501 * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
23502 new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
23503 * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
23504 vec_vrlnm.
23505
23506 2017-01-17 Jakub Jelinek <jakub@redhat.com>
23507
23508 PR debug/78839
23509 * dwarf2out.c (field_byte_offset): Restore the
23510 PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
23511 and DECL_FIELD_BIT_OFFSET. Use fold_build2 instead of build2 + fold.
23512 (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
23513 of build2 + fold.
23514
23515 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
23516
23517 PR ada/67205
23518 * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
23519
23520 2017-01-17 Jakub Jelinek <jakub@redhat.com>
23521
23522 PR debug/71669
23523 * dwarf2out.c (add_data_member_location_attribute): For constant
23524 offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
23525 instead of DW_AT_data_member_location, DW_AT_bit_offset and
23526 DW_AT_byte_size attributes.
23527
23528 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
23529
23530 * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
23531 after forcing to constant memory when the code model is medium.
23532
23533 2017-01-17 Julia Koval <julia.koval@intel.com>
23534
23535 PR target/76731
23536 * config/i386/avx512fintrin.h
23537 (_mm512_i32gather_ps): Change __addr type to void const*.
23538 (_mm512_mask_i32gather_ps): Ditto.
23539 (_mm512_i32gather_pd): Ditto.
23540 (_mm512_mask_i32gather_pd): Ditto.
23541 (_mm512_i64gather_ps): Ditto.
23542 (_mm512_mask_i64gather_ps): Ditto.
23543 (_mm512_i64gather_pd): Ditto.
23544 (_mm512_mask_i64gather_pd): Ditto.
23545 (_mm512_i32gather_epi32): Ditto.
23546 (_mm512_mask_i32gather_epi32): Ditto.
23547 (_mm512_i32gather_epi64): Ditto.
23548 (_mm512_mask_i32gather_epi64): Ditto.
23549 (_mm512_i64gather_epi32): Ditto.
23550 (_mm512_mask_i64gather_epi32): Ditto.
23551 (_mm512_i64gather_epi64): Ditto.
23552 (_mm512_mask_i64gather_epi64): Ditto.
23553 (_mm512_i32scatter_ps): Change __addr type to void*.
23554 (_mm512_mask_i32scatter_ps): Ditto.
23555 (_mm512_i32scatter_pd): Ditto.
23556 (_mm512_mask_i32scatter_pd): Ditto.
23557 (_mm512_i64scatter_ps): Ditto.
23558 (_mm512_mask_i64scatter_ps): Ditto.
23559 (_mm512_i64scatter_pd): Ditto.
23560 (_mm512_mask_i64scatter_pd): Ditto.
23561 (_mm512_i32scatter_epi32): Ditto.
23562 (_mm512_mask_i32scatter_epi32): Ditto.
23563 (_mm512_i32scatter_epi64): Ditto.
23564 (_mm512_mask_i32scatter_epi64): Ditto.
23565 (_mm512_i64scatter_epi32): Ditto.
23566 (_mm512_mask_i64scatter_epi32): Ditto.
23567 (_mm512_i64scatter_epi64): Ditto.
23568 (_mm512_mask_i64scatter_epi64): Ditto.
23569 * config/i386/avx512pfintrin.h
23570 (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
23571 (_mm512_mask_prefetch_i32gather_ps): Ditto.
23572 (_mm512_mask_prefetch_i64gather_pd): Ditto.
23573 (_mm512_mask_prefetch_i64gather_ps): Ditto.
23574 (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
23575 (_mm512_prefetch_i32scatter_ps): Ditto.
23576 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
23577 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
23578 (_mm512_prefetch_i64scatter_pd): Ditto.
23579 (_mm512_prefetch_i64scatter_ps): Ditto.
23580 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
23581 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
23582 * config/i386/avx512vlintrin.h
23583 (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
23584 (_mm_mmask_i32gather_ps): Ditto.
23585 (_mm256_mmask_i32gather_pd): Ditto.
23586 (_mm_mmask_i32gather_pd): Ditto.
23587 (_mm256_mmask_i64gather_ps): Ditto.
23588 (_mm_mmask_i64gather_ps): Ditto.
23589 (_mm256_mmask_i64gather_pd): Ditto.
23590 (_mm_mmask_i64gather_pd): Ditto.
23591 (_mm256_mmask_i32gather_epi32): Ditto.
23592 (_mm_mmask_i32gather_epi32): Ditto.
23593 (_mm256_mmask_i32gather_epi64): Ditto.
23594 (_mm_mmask_i32gather_epi64): Ditto.
23595 (_mm256_mmask_i64gather_epi32): Ditto.
23596 (_mm_mmask_i64gather_epi32): Ditto.
23597 (_mm256_mmask_i64gather_epi64): Ditto.
23598 (_mm_mmask_i64gather_epi64): Ditto.
23599 (_mm256_i32scatter_ps): Change __addr type to void*.
23600 (_mm256_mask_i32scatter_ps): Ditto.
23601 (_mm_i32scatter_ps): Ditto.
23602 (_mm_mask_i32scatter_ps): Ditto.
23603 (_mm256_i32scatter_pd): Ditto.
23604 (_mm256_mask_i32scatter_pd): Ditto.
23605 (_mm_i32scatter_pd): Ditto.
23606 (_mm_mask_i32scatter_pd): Ditto.
23607 (_mm256_i64scatter_ps): Ditto.
23608 (_mm256_mask_i64scatter_ps): Ditto.
23609 (_mm_i64scatter_ps): Ditto.
23610 (_mm_mask_i64scatter_ps): Ditto.
23611 (_mm256_i64scatter_pd): Ditto.
23612 (_mm256_mask_i64scatter_pd): Ditto.
23613 (_mm_i64scatter_pd): Ditto.
23614 (_mm_mask_i64scatter_pd): Ditto.
23615 (_mm256_i32scatter_epi32): Ditto.
23616 (_mm256_mask_i32scatter_epi32): Ditto.
23617 (_mm_i32scatter_epi32): Ditto.
23618 (_mm_mask_i32scatter_epi32): Ditto.
23619 (_mm256_i32scatter_epi64): Ditto.
23620 (_mm256_mask_i32scatter_epi64): Ditto.
23621 (_mm_i32scatter_epi64): Ditto.
23622 (_mm_mask_i32scatter_epi64): Ditto.
23623 (_mm256_i64scatter_epi32): Ditto.
23624 (_mm256_mask_i64scatter_epi32): Ditto.
23625 (_mm_i64scatter_epi32): Ditto.
23626 (_mm_mask_i64scatter_epi32): Ditto.
23627 (_mm256_i64scatter_epi64): Ditto.
23628 (_mm256_mask_i64scatter_epi64): Ditto.
23629 (_mm_i64scatter_epi64): Ditto.
23630 (_mm_mask_i64scatter_epi64): Ditto.
23631 * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
23632 (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
23633 (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
23634 (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
23635 (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
23636 (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
23637 (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
23638 (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
23639 (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
23640 (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
23641 (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
23642 (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
23643 (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
23644 (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
23645 (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
23646 (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
23647 (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
23648 (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
23649 (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
23650 (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
23651 (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
23652 (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
23653 (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
23654 (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
23655 (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
23656 (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
23657 (VOID_QI_V8DI_PCINT_INT_INT): Remove.
23658 (V16SF_V16SF_PCVOID_V16SI_HI_INT, V8DF_V8DF_PCVOID_V8SI_QI_INT)
23659 (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
23660 (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
23661 (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
23662 (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
23663 (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
23664 (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
23665 (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
23666 (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
23667 (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
23668 (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
23669 (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
23670 (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
23671 (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
23672 (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
23673 (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
23674 (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
23675 (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
23676 (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
23677 (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
23678 (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
23679 (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
23680 (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
23681 (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
23682 (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
23683 (VOID_QI_V8DI_PCVOID_INT_INT): Add.
23684 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
23685 definitions accordingly.
23686
23687 2017-01-17 Kito Cheng <kito.cheng@gmail.com>
23688 Kuan-Lin Chen <kuanlinchentw@gmail.com>
23689
23690 PR target/79079
23691 * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
23692 gen_lowpart.
23693
23694 2017-01-17 Vladimir Makarov <vmakarov@redhat.com>
23695
23696 PR target/79058
23697 * ira-conflicts.c (ira_build_conflicts): Update total conflict
23698 hard regs for inner regno.
23699
23700 2017-01-17 Martin Liska <mliska@suse.cz>
23701
23702 PR ipa/71207
23703 * ipa-polymorphic-call.c (contains_type_p): Fix wrong
23704 assumption and add comment.
23705
23706 2017-01-17 Nathan Sidwell <nathan@acm.org>
23707
23708 * ipa-visibility.c (localize_node): New function, broken out of ...
23709 (function_and_variable_visibility): ... here. Call it.
23710
23711 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
23712
23713 PR middle-end/77445
23714 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
23715 correctly set frequency of oudgoing edge.
23716 (duplicate_thread_path): Fix profile updating.
23717
23718 2017-01-17 Jakub Jelinek <jakub@redhat.com>
23719
23720 PR other/79046
23721 * configure.ac: Add GCC_BASE_VER.
23722 * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
23723 version from BASE-VER file.
23724 (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
23725 (gcc.o): Depend on $(BASEVER).
23726 * common.opt (dumpfullversion): New option.
23727 * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
23728 * doc/invoke.texi: Document -dumpfullversion.
23729 * doc/install.texi: Document --with-gcc-major-version-only.
23730 * configure: Regenerated.
23731
23732 2017-01-17 Richard Biener <rguenther@suse.de>
23733
23734 PR tree-optimization/71433
23735 * tree-vrp.c (register_new_assert_for): Merge same asserts
23736 on all incoming edges.
23737 (process_assert_insertions_for): Handle insertions at the
23738 beginning of BBs.
23739
23740 2017-01-17 Gerald Pfeifer <gerald@pfeifer.com>
23741
23742 * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
23743 * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
23744
23745 2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
23746
23747 PR target/78633
23748 * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
23749 RTL sharing.
23750
23751 2017-01-17 Alan Modra <amodra@gmail.com>
23752
23753 PR target/79066
23754 * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
23755 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
23756 symbolic stack limit when pic.
23757
23758 2017-01-16 Martin Sebor <msebor@redhat.com>
23759
23760 PR tree-optimization/78608
23761 * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
23762
23763 2017-01-16 Jeff Law <law@redhat.com>
23764
23765 Revert:
23766 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
23767 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
23768 for several include directories that may be relative to sysroot.
23769 * config/i386/x-mingw32 (gplus_includedir): Define.
23770 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
23771 (native_system_includedir): Likewise.
23772 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
23773 override if TARGET_SYSTEM_ROOT is defined.
23774 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
23775
23776 PR tree-optimization/79090
23777 PR tree-optimization/33562
23778 PR tree-optimization/61912
23779 PR tree-optimization/77485
23780 * tree-ssa-dse.c (compute_trims): Accept STMT argument. Dump STMT
23781 and computed trims into the dump file.
23782
23783 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
23784
23785 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
23786
23787 2017-01-16 Jakub Jelinek <jakub@redhat.com>
23788
23789 PR c/79089
23790 * gimplify.c (gimplify_init_constructor): If want_value and
23791 object == lhs, unshare lhs to avoid invalid tree sharing. Formatting
23792 fix.
23793
23794 PR target/79080
23795 * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
23796 sequence. Formatting fixes.
23797 (doloop_optimize): Formatting fixes.
23798
23799 PR driver/49726
23800 * gcc.c (debug_level_greater_than_spec_func): New function.
23801 (static_spec_functions): Add debug-level-gt spec function.
23802 (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
23803 !g0.
23804 * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
23805 * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
23806 * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
23807 gpubnames, ggnu-pubnames, gno-record-gcc-switches,
23808 grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
23809 gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
23810
23811 2017-01-16 Uros Bizjak <ubizjak@gmail.com>
23812
23813 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
23814 QImode fixups to general and mask registers only.
23815
23816 2017-01-16 Carl Love <cel@us.ibm.com>
23817
23818 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
23819 for built-in functions
23820 vector signed char vec_nabs (vector signed char)
23821 vector signed short vec_nabs (vector signed short)
23822 vector signed int vec_nabs (vector signed int)
23823 vector signed long long vec_nabs (vector signed long long)
23824 vector float vec_nabs (vector float)
23825 vector double vec_nabs (vector double)
23826 * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
23827 and NABS overload.
23828 * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
23829 * config/rs6000/altivec.h: New define for vec_nabs built-in function.
23830 * doc/extend.texi: Update the documentation file for the new built-in
23831 functions.
23832
23833 2017-01-16 Martin Sebor <msebor@redhat.com>
23834
23835 * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
23836 message.
23837
23838 2017-01-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23839
23840 * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
23841 UNSPEC_VSX__XXSPLTD to require special splat handling.
23842
23843 2017-01-16 David Malcolm <dmalcolm@redhat.com>
23844
23845 PR bootstrap/78616
23846 * system.h: Poison strndup.
23847
23848 2017-01-16 Alan Modra <amodra@gmail.com>
23849
23850 PR target/79098
23851 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
23852 use a switch.
23853
23854 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
23855
23856 * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
23857
23858 2017-01-15 Uros Bizjak <ubizjak@gmail.com>
23859
23860 * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
23861 call recog here. Assert that INSN_CODE (insn) is non-negative.
23862
23863 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
23864
23865 PR target/72749
23866 * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
23867 fallthrough.
23868 * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
23869 in the currently scheduled RTL fragment.
23870
23871 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
23872
23873 PR rtl-optimization/78751
23874 * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
23875 give up.
23876
23877 2017-01-14 Jeff Law <law@redhat.com>
23878
23879 PR tree-optimization/79090
23880 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
23881 variable length stores.
23882 (compute_trims): Delete dead assignment to *trim_tail.
23883 (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
23884 zero length.
23885
23886 2017-01-14 Bernd Schmidt <bschmidt@redhat.com>
23887
23888 PR rtl-optimization/78626
23889 PR rtl-optimization/78727
23890 * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
23891 of a block, and split such blocks after everything else is finished.
23892
23893 2017-01-14 Alan Modra <amodra@gmail.com>
23894
23895 PR target/72749
23896 * combine.c (recog_for_combine_1): Set INSN_CODE before calling
23897 target legitimate_combined_insn.
23898 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
23899 (rs6000_legitimate_combined_insn): New function.
23900 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
23901 all uses.
23902 (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
23903 (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
23904 (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
23905
23906 2017-01-14 Gerald Pfeifer <gerald@pfeifer.com>
23907
23908 * doc/frontends.texi (G++ and GCC): Remove references to Java.
23909
23910 2017-01-13 Jeff Law <law@redhat.com>
23911
23912 PR tree-optimization/33562
23913 PR tree-optimization/61912
23914 PR tree-optimization/77485
23915 * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
23916 a statement.
23917 (delete_dead_assignment): Likewise.
23918 (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
23919 statement to delete_dead_call and delete_dead_assignment.
23920
23921 2017-01-13 David Malcolm <dmalcolm@redhat.com>
23922
23923 PR c/78304
23924 * substring-locations.c (format_warning_va): Strengthen case 1 so
23925 that both endpoints of the substring must be within the format
23926 range for just the substring to be printed.
23927
23928 2017-01-13 Uros Bizjak <ubizjak@gmail.com>
23929
23930 * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
23931 * config/i386/i386.c (ix86_target_string): Add missing options
23932 to isa_opts and reorder options by implied ISAs. Rename isa_opts2 to
23933 isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
23934 flags_other and ix86_target_other to flags2_other. Display unknown
23935 isa2 options.
23936 (ix86_valid_target_attribute_inner_p): Add missing options and
23937 reorder options by implied ISAs, as in ix86_target_string.
23938
23939 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
23940
23941 * hash-table.h (hash_table::too_empty_p): New function.
23942 (hash_table::expand): Use it.
23943 (hash_table::traverse): Likewise.
23944 (hash_table::empty_slot): Use sizeof (value_type) instead of
23945 sizeof (PTR) to convert bytes to elements. Shrink the table
23946 if the current size is excessive for the current number of
23947 elements.
23948
23949 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
23950
23951 * ira-costs.c (record_reg_classes): Break from the inner loop
23952 early once alt_fail is known to be true. Update outer loop
23953 handling accordingly.
23954
23955 2017-01-13 Jeff Law <law@redhat.com>
23956
23957 * tree-ssa-dse.c (decrement_count): New function.
23958 (increment_start_addr, maybe_trim_memstar_call): Likewise.
23959 (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
23960 when we know the partially dead statement is a mem* function.
23961
23962 PR tree-optimization/61912
23963 PR tree-optimization/77485
23964 * tree-ssa-dse.c: Include expr.h.
23965 (maybe_trim_constructor_store): New function.
23966 (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
23967
23968 PR tree-optimization/33562
23969 PR tree-optimization/61912
23970 PR tree-optimization/77485
23971 * doc/invoke.texi: Document new dse-max-object-size param.
23972 * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
23973 * tree-ssa-dse.c: Include params.h.
23974 (dse_store_status): New enum.
23975 (initialize_ao_ref_for_dse): New, partially extracted from
23976 dse_optimize_stmt.
23977 (valid_ao_ref_for_dse, normalize_ref): New.
23978 (setup_live_bytes_from_ref, compute_trims): Likewise.
23979 (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
23980 (maybe_trim_partially_dead_store): Likewise.
23981 (maybe_trim_complex_store): Likewise.
23982 (dse_classify_store): Renamed from dse_possibly_dead_store_p.
23983 Track what bytes live from the original store. Return tri-state
23984 for dead, partially dead or live.
23985 (dse_dom_walker): Add constructor, destructor and new private members.
23986 (delete_dead_call, delete_dead_assignment): New extracted from
23987 dse_optimize_stmt.
23988 (dse_optimize_stmt): Make a member of dse_dom_walker.
23989 Use initialize_ao_ref_for_dse.
23990
23991 PR tree-optimization/33562
23992 PR tree-optimization/61912
23993 PR tree-optimization/77485
23994 * sbitmap.h (bitmap_count_bits): Prototype.
23995 (bitmap_clear_range, bitmap_set_range): Likewise.
23996 * sbitmap.c (bitmap_clear_range): New function.
23997 (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
23998
23999 2017-01-13 Martin Liska <mliska@suse.cz>
24000
24001 PR ipa/79043
24002 * function.c (set_cfun): Add new argument force.
24003 * function.h (set_cfun): Likewise.
24004 * ipa-inline-transform.c (inline_call): Use the function when
24005 strict alising from is dropped for function we inline to.
24006
24007 2017-01-13 Richard Biener <rguenther@suse.de>
24008
24009 * tree-pretty-print.c (dump_generic_node): Fix inverted condition
24010 for dumping GIMPLE INTEGER_CSTs.
24011
24012 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24013
24014 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
24015 to 201112L since C++17.
24016
24017 2017-01-13 Maxim Ostapenko <m.ostapenko@samsung.com>
24018
24019 PR sanitizer/78887
24020 * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
24021 if -fsanitize=kernel-address is present.
24022
24023 2017-01-13 Richard Biener <rguenther@suse.de>
24024
24025 * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
24026 as _Literal ( type ) number in case usual suffixes do not
24027 preserve all information.
24028
24029 2017-01-13 Richard Biener <rguenther@suse.de>
24030
24031 PR tree-optimization/77283
24032 * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
24033 and ssa-iterators.h.
24034 (is_feasible_trace): Implement a cost model based on joiner
24035 PHI node uses.
24036
24037 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
24038
24039 PR target/79004
24040 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
24041 char or short to __float128/_Float128 directly.
24042
24043 2017-01-12 Martin Sebor <msebor@redhat.com>
24044
24045 to -Wformat-overflow.
24046 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
24047 (min_bytes_remaining): Same.
24048 (get_string_length): Same.
24049 (format_string): Same.
24050 (format_directive): Same.
24051 (add_bytes): Same.
24052 (pass_sprintf_length::handle_gimple_call): Same.
24053
24054 2017-01-12 Jakub Jelinek <jakub@redhat.com>
24055
24056 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
24057 info.nowrite calls with no lhs that can't throw. Return bool
24058 whether gsi_remove has been called or not.
24059 (pass_sprintf_length::handle_gimple_call): Return bool whether
24060 try_substitute_return_value called gsi_remove. Formatting fix.
24061 (pass_sprintf_length::execute): Don't use gsi_remove if
24062 handle_gimple_call returned true.
24063
24064 PR bootstrap/79069
24065 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
24066 be removed due to side-effects, don't remove following barrier nor
24067 turn the successor edge into fallthru edge.
24068
24069 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24070
24071 PR target/79044
24072 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
24073 element-reversing loads and stores as not swappable.
24074
24075 2017-01-12 Nathan Sidwell <nathan@acm.org>
24076 Nicolai Stange <nicstange@gmail.com>
24077
24078 * combine.c (try_combine): Don't ignore result of overlap checking
24079 loop. Combine overlap & asm check into single loop.
24080
24081 2017-01-12 Richard Biener <rguenther@suse.de>
24082
24083 * tree-pretty-print.c (dump_generic_node): Provide -gimple
24084 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
24085
24086 2017-01-12 Richard Biener <rguenther@suse.de>
24087
24088 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
24089 and TS_TARGET_OPTION directly derive from TS_BASE.
24090 * tree-core.h (tree_optimization_option): Derive from tree_base.
24091 (tree_target_option): Likewise.
24092
24093 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
24094
24095 * config/i386/i386.c (memory_address_length): Increase len
24096 only when rip_relative_addr_p returns false.
24097
24098 2017-01-11 Julia Koval <julia.koval@intel.com>
24099
24100 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
24101 (OPTION_MASK_ISA_SGX_SET): New.
24102 (ix86_handle_option): Handle OPT_msgx.
24103 * config.gcc: Added sgxintrin.h.
24104 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
24105 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
24106 * config/i386/i386.c (ix86_target_string): Add -msgx.
24107 (PTA_SGX): New.
24108 (ix86_option_override_internal): Handle new options.
24109 (ix86_valid_target_attribute_inner_p): Add sgx.
24110 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
24111 * config/i386/i386.opt: Add msgx.
24112 * config/i386/sgxintrin.h: New file.
24113 * config/i386/x86intrin.h: Add sgxintrin.h.
24114
24115 2017-01-11 Jakub Jelinek <jakub@redhat.com>
24116
24117 PR c++/71537
24118 * fold-const.c (maybe_nonzero_address): Return 1 for function
24119 local objects.
24120 (tree_single_nonzero_warnv_p): Don't handle function local objects
24121 here.
24122
24123 PR c++/72813
24124 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
24125 of c-header.
24126
24127 2017-01-11 David Malcolm <dmalcolm@redhat.com>
24128
24129 PR driver/78877
24130 * opts.c: Include "spellcheck.h"
24131 (struct string_fragment): New struct.
24132 (struct edit_distance_traits<const string_fragment &>): New
24133 struct.
24134 (get_closest_sanitizer_option): New function.
24135 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
24136
24137 2017-01-11 Jakub Jelinek <jakub@redhat.com>
24138
24139 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
24140 by 12.
24141 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
24142 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
24143 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
24144 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
24145 for initial die_offset if dwarf_split_debug_info.
24146 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
24147 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
24148 fields.
24149 (output_skeleton_debug_sections): Formatting fix. Use
24150 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
24151 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
24152
24153 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
24154
24155 * config/arm/cortex-a53.md: Add bypasses for
24156 cortex_a53_r2f_cvt.
24157 (cortex_a53_r2f): Only use for transfers.
24158 (cortex_a53_f2r): Likewise.
24159 (cortex_a53_r2f_cvt): Add reservation for conversions.
24160 (cortex_a53_f2r_cvt): Likewise.
24161
24162 2017-01-11 Tamar Christina <tamar.christina@arm.com>
24163
24164 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
24165 to all inlined functions, change static to extern.
24166
24167 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
24168
24169 PR target/78253
24170 * config/arm/arm.c (legitimize_pic_address): Handle reference to
24171 weak symbol.
24172 (arm_assemble_integer): Likewise.
24173
24174 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
24175
24176 * config.gcc: Use new awk script to check CPU, FPU and architecture
24177 parameters for --with-... options.
24178 * config/arm/parsecpu.awk: New file
24179 * config/arm/arm-cpus.in: New file.
24180 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
24181 files.
24182 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
24183 files.
24184 * config/arm/t-arm: Update dependency rules.
24185 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
24186 of processing .def files.
24187 * config/arm/genopt.sh: Deleted.
24188 * config/arm/gentune.sh: Deleted.
24189 * config/arm/arm-cores.def: Deleted.
24190 * config/arm/arm-arches.def: Deleted.
24191 * config/arm/arm-fpus.def: Deleted.
24192 * config/arm/arm-tune.md: Regenerated.
24193 * config/arm/arm-tables.opt: Regenerated.
24194 * config/arm/arm-cpu.h: New generated file.
24195 * config/arm/arm-cpu-data.h: New generated file.
24196 * config/arm/arm-cpu-cdata.h: New generated file.
24197
24198 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
24199
24200 PR lto/79042
24201 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
24202 bit.
24203 (input_varpool_node): Unpack dynamically_initialized bit.
24204
24205 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
24206
24207 PR rtl-optimization/79032
24208 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
24209 the alignment of the adjusted memory reference against that of MODE,
24210 instead of the alignment of the original memory reference.
24211
24212 2017-01-11 Martin Jambor <mjambor@suse.cz>
24213
24214 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
24215 test.
24216 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
24217 decorated functions.
24218
24219 2017-01-11 Richard Biener <rguenther@suse.de>
24220
24221 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
24222 set range/nonnull info for PHI results. Do not set it on
24223 stmts marked for removal.
24224
24225 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
24226
24227 * expr.c (store_field): In the bitfield case, fetch the return value
24228 from the registers before applying a single big-endian adjustment.
24229 Always do a final load for a BLKmode value not larger than a word.
24230
24231 2017-01-10 David Malcolm <dmalcolm@redhat.com>
24232
24233 PR c++/77949
24234 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
24235 that we correctly handle column numbers greater than
24236 LINE_MAP_MAX_COLUMN_NUMBER.
24237
24238 2017-01-10 Martin Sebor <msebor@redhat.com>
24239
24240 PR middle-end/78245
24241 * gimple-ssa-sprintf.c (get_destination_size): Call
24242 {init,fini}object_sizes.
24243 * tree-object-size.c (addr_object_size): Adjust.
24244 (pass_through_call): Adjust.
24245 (pass_object_sizes::execute): Adjust.
24246 * tree-object-size.h (fini_object_sizes): Declare.
24247
24248 2017-01-10 Martin Sebor <msebor@redhat.com>
24249
24250 PR tree-optimization/78775
24251 * builtins.c (get_size_range): Move...
24252 * calls.c: ...to here.
24253 (alloc_max_size): Accept zero argument.
24254 (operand_signed_p): Remove.
24255 (maybe_warn_alloc_args_overflow): Call get_size_range.
24256 * calls.h (get_size_range): Declare.
24257
24258 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
24259
24260 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
24261 from TI's devices.csv file as of September 2016.
24262 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
24263
24264 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
24265
24266 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
24267 * doc/invoke.texi: Likewise.
24268 * doc/md.texi: Likewise.
24269 * doc/objc.texi: Likewise.
24270
24271 2017-01-10 Joshua Conner <joshconner@google.com>
24272
24273 * config/arm/fuchsia-elf.h: New file.
24274 * config/fuchsia.h: New file.
24275 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
24276 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
24277 targets.
24278 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
24279
24280 2016-01-10 Richard Biener <rguenther@suse.de>
24281
24282 PR tree-optimization/79034
24283 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
24284 Propagate out degenerate PHIs in the joiner.
24285
24286 2017-01-10 Martin Liska <mliska@suse.cz>
24287
24288 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
24289 (sort_congruence_classes_by_decl_uid): Likewise.
24290 (sort_congruence_class_groups_by_decl_uid): Likewise.
24291 (sem_item_optimizer::merge_classes): Sort class, groups in these
24292 classes and members in the groups by DECL_UID of declarations.
24293 This would make merge operations stable.
24294
24295 2017-01-10 Martin Liska <mliska@suse.cz>
24296
24297 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
24298 usage of m_classes_vec.
24299 (sem_item_optimizer::~sem_item_optimizer): Likewise.
24300 (sem_item_optimizer::get_group_by_hash): Likewise.
24301 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
24302 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
24303 (sem_item_optimizer::verify_classes): Likewise.
24304 (sem_item_optimizer::process_cong_reduction): Likewise.
24305 (sem_item_optimizer::dump_cong_classes): Likewise.
24306 (sem_item_optimizer::merge_classes): Likewise.
24307 * ipa-icf.h (congruence_class_hash): Rename from
24308 congruence_class_group_hash. Remove declaration of m_classes_vec.
24309
24310 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
24311
24312 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
24313 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
24314 * config.gcc: Add avx512vpopcntdqintrin.h.
24315 * config/i386/avx512vpopcntdqintrin.h: New.
24316 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
24317 * config/i386/i386-builtin-types.def: Add new types.
24318 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
24319 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
24320 __builtin_ia32_vpopcountq_v8di_mask): New.
24321 * config/i386/i386-c.c (ix86_target_macros_internal): Define
24322 __AVX512VPOPCNTDQ__.
24323 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
24324 (PTA_AVX512VPOPCNTDQ): Define.
24325 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
24326 TARGET_AVX512VPOPCNTDQ_P): Define.
24327 * config/i386/i386.opt: Add mavx512vpopcntdq.
24328 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
24329 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
24330
24331 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
24332
24333 PR middle-end/77484
24334 * predict.def (PRED_CALL): Set to 67.
24335
24336 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
24337
24338 * expr.c (store_field): In the bitfield case, if the value comes from
24339 a function call and is of an aggregate type returned in registers, do
24340 not modify the field mode; extract the value in all cases if the mode
24341 is BLKmode and the size is not larger than a word.
24342
24343 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
24344
24345 PR target/71017
24346 * config/i386/cpuid.h: Fix undefined behavior.
24347
24348 2017-01-04 Jeff Law <law@redhat.com>
24349
24350 PR tree-optimization/79007
24351 PR tree-optimization/67955
24352 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
24353 conservative for pt.null when flag_non_call_exceptions is on.
24354
24355 2017-01-09 Jakub Jelinek <jakub@redhat.com>
24356
24357 PR translation/79019
24358 PR translation/79020
24359 * params.def (PARAM_INLINE_MIN_SPEEDUP,
24360 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
24361 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
24362 in descriptions.
24363 * config/avr/avr.opt (maccumulate-args): Likewise.
24364 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
24365 * common.opt (freport-bug): Likewise.
24366 * cif-code.def (CIF_FINAL_ERROR): Likewise.
24367 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
24368 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
24369 translatable string.
24370 * config/i386/i386.c (function_value_32): Likewise.
24371 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
24372 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
24373 Likewise.
24374 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
24375 * common/config/msp430/msp430-common.c (msp430_handle_option):
24376 Likewise.
24377 * symtab.c (symtab_node::verify_base): Likewise.
24378 * opts.c (set_debug_level): Likewise.
24379 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
24380 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
24381 missing whitespace to translatable strings.
24382 * config/avr/avr.md (bswapsi2): Fix typo in comment.
24383 * config/sh/superh.h: Likewise.
24384 * config/i386/xopintrin.h: Likewise.
24385 * config/i386/znver1.md: Likewise.
24386 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
24387 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
24388 * double-int.h (struct double_int): Likewise.
24389 * double-int.c (div_and_round_double): Likewise.
24390 * wide-int.cc: Likewise.
24391 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
24392 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
24393 * cfgcleanup.c (crossjumps_occured): Renamed to ...
24394 (crossjumps_occurred): ... this.
24395 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
24396 Adjust all uses.
24397
24398 PR tree-optimization/78899
24399 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
24400 returning bool return struct loop *, NULL for failure and the new
24401 loop on success.
24402 (versionable_outer_loop_p): Don't version outer loop if it has
24403 dont_vectorized bit set.
24404 (tree_if_conversion): When versioning outer loop, ensure
24405 tree_if_conversion is performed also on the inner loop of the
24406 non-vectorizable outer loop copy.
24407 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
24408 LOOP_VECTORIZED in inner loop of the scalar outer loop and
24409 prevent vectorization of it.
24410 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
24411 the outer loop vectorization of the non-scalar version is attempted
24412 before vectorization of the inner loop in scalar version. If
24413 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
24414 vectorization of its inner loop.
24415 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
24416 has 2 inner loops, rename also on edges from bb whose single pred
24417 is outer_loop->header. Fix typo in function comment.
24418
24419 2017-01-09 Martin Sebor <msebor@redhat.com>
24420
24421 PR bootstrap/79033
24422 * asan.c (asan_emit_stack_protection): Increase local buffer size
24423 to avoid snprintf truncation warning.
24424
24425 2017-01-09 Andrew Pinski <apinski@cavium.com>
24426
24427 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
24428 to reference thunderx2t99 for the tuning structure
24429 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
24430 Rename to ...
24431 (thunderx2t99_extra_costs): This.
24432 * config/aarch64/aarch64-tune.md: Regenerate.
24433 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
24434 (vulcan_addrcost_table): This.
24435 (vulcan_regmove_cost): Rename to ...
24436 (thunderx2t99_regmove_cost): This.
24437 (vulcan_vector_cost): Rename to ...
24438 (thunderx2t99_vector_cost): this.
24439 (vulcan_branch_cost): Rename to ...
24440 (thunderx2t99_branch_cost): This.
24441 (vulcan_tunings): Rename to ...
24442 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
24443 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
24444
24445 2017-01-09 Martin Jambor <mjambor@suse.cz>
24446
24447 PR ipa/78365
24448 PR ipa/78599
24449 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
24450 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
24451 (propagate_vr_accross_jump_function): Use the above function for all
24452 value range computations for pass-through jump functions and type
24453 converasion from explicit value range values.
24454 (ipcp_propagate_stage): Do not attempt to deduce types of formal
24455 parameters from TYPE_ARG_TYPES.
24456 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
24457 (ipa_write_node_info): Stream type of the actual argument.
24458 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
24459
24460 2017-01-09 Martin Liska <mliska@suse.cz>
24461
24462 PR pch/78970
24463 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
24464 (lookup_compiler): Do not show error message with have_E.
24465
24466 2017-01-09 Jakub Jelinek <jakub@redhat.com>
24467
24468 PR tree-optimization/78938
24469 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
24470 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
24471 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
24472 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
24473 fixes.
24474
24475 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24476
24477 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
24478 is const0_rtx.
24479
24480 2017-01-09 Richard Biener <rguenther@suse.de>
24481
24482 PR tree-optimization/78997
24483 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
24484 name condition properly.
24485
24486 2017-01-09 Richard Biener <rguenther@suse.de>
24487
24488 PR debug/79000
24489 * dwarf2out.c (is_cxx): New overload with context.
24490 (is_naming_typedef_decl): Use it.
24491
24492 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
24493
24494 * invoke.texi (Option Summary): Correct spacing in option lists
24495 and add line breaks to fix over-long lines.
24496
24497 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
24498
24499 PR middle-end/17660
24500
24501 * extend.texi (Common Variable Attributes): Add xref to GCC
24502 Internals manual to explain mode attribute keywords.
24503
24504 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
24505
24506 PR other/16519
24507 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
24508 and Preprocessor Options.
24509 (Options for Linking): Document -pthread here....
24510 (RS/6000 and PowerPC Options): ...not here.
24511 (Solaris 2 Options): ...or here.
24512 * doc/cppopts.texi: Document -pthread.
24513
24514 2017-01-08 Martin Sebor <msebor@redhat.com>
24515
24516 PR middle-end/77708
24517 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
24518 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
24519 New member functions.
24520 (format_directive): Used them.
24521 (add_bytes): Same.
24522 (pass_sprintf_length::handle_gimple_call): Same.
24523 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
24524 to avoid truncation for any argument.
24525 (extract_affine_mul): Same.
24526 * tree.c (get_file_function_name): Same.
24527
24528 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
24529
24530 PR middle-end/77484
24531 * predict.def (PRED_INDIR_CALL): Set to 86.
24532
24533 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
24534
24535 PR preprocessor/54124
24536 * doc/cppopts.texi: Reformat -d subtable to list the full name
24537 of the options. Add cross-reference to the docs for the general
24538 compiler -d options.
24539 * doc/invoke.texi (Developer Options): Add cross-reference to the
24540 preprocessor-specific -d option documentation.
24541
24542 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
24543
24544 PR preprocessor/13498
24545 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
24546 redudant material, and reflect new command-line options.
24547 (System Headers): Likewise.
24548
24549 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
24550
24551 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
24552 -isystem, and -idirafter. Copy-edit.
24553 * doc/cppopts.texi: Copy-edit. Remove contradiction about
24554 default for -ftrack-macro-expansion. Delete obsolete and
24555 badly-formatted implementation details about -fdebug-cpp output.
24556 * doc/cppwarnopts.texi: Copy-edit.
24557
24558 2017-01-07 David Malcolm <dmalcolm@redhat.com>
24559
24560 PR c++/72803
24561 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
24562 that the transition from a max line width >= 1<<10 to narrower
24563 lines works correctly.
24564
24565 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
24566
24567 * doc/options.texi (PerFunction): New.
24568 * opt-functions.awk (switch_flags): Map both Optimization and
24569 PerFunction to CL_OPTIMIZATION.
24570 * opth-gen.awk: Test for PerFunction flag along with
24571 Optimization.
24572 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
24573 it only when the latter is present. Skip those that don't in
24574 the hash function generator.
24575 * common.opt (fvar-tracking): Mark as PerFunction instead of
24576 Optimization.
24577 (fvar-tracking-assignments): Likewise.
24578 (fvar-tracking-assignments-toggle): Likewise.
24579 (fvar-tracking-uninit): Likewise.
24580
24581 2017-01-07 Jakub Jelinek <jakub@redhat.com>
24582
24583 PR translation/79018
24584 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
24585 the and store.
24586
24587 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
24588
24589 PR target/57583
24590 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
24591 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
24592 TARGET_LONG_JUMP_TABLE_OFFSETS.
24593 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
24594 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
24595 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
24596 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
24597 * config/m68k/m68k.md (tablejump expander): Likewise.
24598 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
24599 TARGET_LONG_JUMP_TABLE_OFFSETS.
24600 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
24601 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
24602
24603 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
24604 David Holsgrove <david.holsgrove@xilinx.com>
24605
24606 * common/config/microblaze/microblaze-common.c
24607 (TARGET_EXCEPT_UNWIND_INFO): Remove.
24608 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
24609 New prototype.
24610 * config/microblaze/microblaze.c (microblaze_must_save_register)
24611 (microblaze_expand_epilogue, microblaze_return_addr): Handle
24612 calls_eh_return.
24613 (microblaze_eh_return): New function.
24614 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
24615 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
24616 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
24617 * config/microblaze/microblaze.md (eh_return): New pattern.
24618
24619 2017-01-06 Jakub Jelinek <jakub@redhat.com>
24620
24621 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
24622 GCC_DIAGNOSTIC_STRINGIFY): Define.
24623
24624 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
24625
24626 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
24627
24628 * config/arm/arm.md (<mcrr>): New.
24629 (<mrrc>): New.
24630 * config/arm/arm.c (arm_arch5te): New.
24631 (arm_option_override): Set arm_arch5te.
24632 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
24633 and mrrc2.
24634 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
24635 (arm_mcrr_qualifiers): ... this. New.
24636 (MRRC_QUALIFIERS): Define to...
24637 (arm_mrrc_qualifiers): ... this. New.
24638 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
24639 __arm_mrrc2): New.
24640 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
24641 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
24642 (MRRCI, mrrc, MRRC): New.
24643 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
24644 VUNSPEC_MRRC2): New.
24645
24646 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
24647
24648 * config/arm/arm.md (<mcr>): New.
24649 (<mrc>): New.
24650 * config/arm/arm.c (arm_coproc_builtin_available): Add
24651 support for mcr, mrc, mcr2 and mrc2.
24652 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
24653 (arm_mcr_qualifiers): ... this. New.
24654 (MRC_QUALIFIERS): Define to ...
24655 (arm_mrc_qualifiers): ... this. New.
24656 (MCR_QUALIFIERS): Define to ...
24657 (arm_mcr_qualifiers): ... this. New.
24658 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
24659 __arm_mrc2): New.
24660 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
24661 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
24662 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
24663 VUNSPEC_MRC2): New.
24664
24665 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
24666
24667 * config/arm/arm.md (*ldc): New.
24668 (*stc): New.
24669 (<ldc>): New.
24670 (<stc>): New.
24671 * config/arm/arm.c (arm_coproc_builtin_available): Add
24672 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
24673 (arm_coproc_ldc_stc_legitimate_address): New.
24674 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
24675 'qualifier_const_pointer'.
24676 (LDC_QUALIFIERS): Define to...
24677 (arm_ldc_qualifiers): ... this. New.
24678 (STC_QUALIFIERS): Define to...
24679 (arm_stc_qualifiers): ... this. New.
24680 * config/arm/arm-protos.h
24681 (arm_coproc_ldc_stc_legitimate_address): New.
24682 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
24683 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
24684 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
24685 stc2, stcl, stc2l): New.
24686 * config/arm/constraints.md (Uz): New.
24687 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
24688 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
24689 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
24690 VUNSPEC_STC2L): New.
24691
24692 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
24693
24694 * config/arm/arm.md (<cdp>): New.
24695 * config/arm/arm.c (neon_const_bounds): Rename this ...
24696 (arm_const_bounds): ... this.
24697 (arm_coproc_builtin_available): New.
24698 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
24699 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
24700 (CDP_QUALIFIERS): Define to...
24701 (arm_cdp_qualifiers): ... this. New.
24702 (void_UP): Define.
24703 (arm_expand_builtin_args): Add case for 6 arguments.
24704 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
24705 (arm_const_bounds): ... this.
24706 (arm_coproc_builtin_available): New.
24707 * config/arm/arm_acle.h (__arm_cdp): New.
24708 (__arm_cdp2): New.
24709 * config/arm/arm_acle_builtins.def (cdp): New.
24710 (cdp2): New.
24711 * config/arm/iterators.md (CDPI,CDP,cdp): New.
24712 * config/arm/neon.md: Rename all 'neon_const_bounds' to
24713 'arm_const_bounds'.
24714 * config/arm/types.md (coproc): New.
24715 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
24716 * doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
24717 * doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
24718 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
24719
24720 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
24721
24722 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
24723 (UBINOP_QUALIFIERS): New.
24724 (si_UP): Define.
24725 (acle_builtin_data): New. Change comment.
24726 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
24727 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
24728 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
24729 arm_acle_builtins.def.
24730 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
24731 (arm_init_acle_builtins): New.
24732 (CRC32_BUILTIN): Remove.
24733 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
24734 crc32cb, crc32ch and crc32cw.
24735 (arm_init_crc32_builtins): Remove.
24736 (arm_init_builtins): Use arm_init_acle_builtins rather
24737 than arm_init_crc32_builtins.
24738 (arm_expand_acle_builtin): New.
24739 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
24740 * config/arm/arm_acle_builtins.def: New.
24741
24742 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
24743
24744 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
24745 (arm_builtin_datum): ... this.
24746 (arm_init_neon_builtin): Rename to ...
24747 (arm_init_builtin): ... this. Add a new parameters PREFIX
24748 and USE_SIG_IN_NAME.
24749 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
24750 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
24751 'arm_builtin_datum'.
24752 (arm_init_vfp_builtins): Likewise.
24753 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
24754 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
24755 (arm_expand_neon_args): Rename to ...
24756 (arm_expand_builtin_args): ... this. Rename builtin_arg
24757 enum values and differentiate between ARG_BUILTIN_MEMORY
24758 and ARG_BUILTIN_NEON_MEMORY.
24759 (arm_expand_neon_builtin_1): Rename to ...
24760 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
24761 values, arm_expand_builtin_args and add bool parameter NEON.
24762 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
24763 (arm_expand_vfp_builtin): Likewise.
24764 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
24765
24766 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
24767
24768 PR middle-end/77484
24769 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
24770 * predict.c (tree_estimate_probability_bb): Reverse direction of
24771 polymorphic call predictor.
24772
24773 2017-01-06 David Malcolm <dmalcolm@redhat.com>
24774
24775 * passes.c (execute_one_pass): Split out pass-skipping logic into...
24776 (determine_pass_name_match): ...this new function and...
24777 (should_skip_pass_p): ...this new function.
24778
24779 2017-01-06 Nathan Sidwell <nathan@acm.org>
24780
24781 * ipa-visibility.c (function_and_variable_visibility): Reformat
24782 comments and long lines. Remove extrneous if.
24783 * symtab.c (symtab_node::make_decl_local): Fix code format.
24784 (symtab_node::set_section_for_node): Fix comment typo.
24785
24786 2017-01-06 Martin Liska <mliska@suse.cz>
24787
24788 PR bootstrap/79003
24789 * lra-constraints.c: Rename invariant to lra_invariant.
24790 * predict.c (set_even_probabilities): Initialize e to NULL.
24791
24792 2017-01-05 Martin Sebor <msebor@redhat.com>
24793
24794 PR tree-optimization/78910
24795 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
24796 (format_integer): Correct off-by-one error in the handling
24797 of precision with negative numbers in signed conversions..
24798
24799 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
24800
24801 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
24802
24803 2017-01-05 Jakub Jelinek <jakub@redhat.com>
24804
24805 PR tree-optimization/71016
24806 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
24807 factor_out_conditional_conversion. Formatting fix.
24808 (factor_out_conditional_conversion): Add cond_stmt argument.
24809 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
24810 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
24811 Formatting fix.
24812
24813 2017-01-05 David Malcolm <dmalcolm@redhat.com>
24814
24815 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
24816 read-rtl-function.o, and selftest-rtl.o.
24817 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
24818 (selftest::aarch64_test_loading_full_dump): New function.
24819 (selftest::aarch64_run_selftests): New function.
24820 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
24821 selftest::aarch64_run_selftests.
24822 * config/i386/i386.c
24823 (selftest::ix86_test_loading_dump_fragment_1): New function.
24824 (selftest::ix86_test_loading_call_insn): New function.
24825 (selftest::ix86_test_loading_full_dump): New function.
24826 (selftest::ix86_test_loading_unspec): New function.
24827 (selftest::ix86_run_selftests): Call the new functions.
24828 * emit-rtl.c (maybe_set_max_label_num): New function.
24829 * emit-rtl.h (maybe_set_max_label_num): New decl.
24830 * function.c (instantiate_decls): Guard call to
24831 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
24832 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
24833 "static".
24834 * gensupport.c (gen_reader::gen_reader): Pass "false"
24835 for new "compact" param of rtx_reader.
24836 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
24837 rather than an empty string for NULL strings.
24838 * read-md.c: Potentially include config.h rather than bconfig.h.
24839 Wrap include of errors.h with #ifdef GENERATOR_FILE.
24840 (have_error): New global, copied from errors.c.
24841 (md_reader::read_name): Rename to...
24842 (md_reader::read_name_1): ...this, adding "out_loc" param,
24843 and converting "missing name or number" to returning false, rather
24844 than failing.
24845 (md_reader::read_name): Reimplement in terms of read_name_1.
24846 (md_reader::read_name_or_nil): New function.
24847 (md_reader::read_string): Handle "(nil)" by returning NULL.
24848 (md_reader::md_reader): Add new param "compact".
24849 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
24850 (md_reader::read_file): New method.
24851 * read-md.h (md_reader::md_reader): Add new param "compact".
24852 (md_reader::read_file): New method.
24853 (md_reader::is_compact): New accessor.
24854 (md_reader::read_name): Convert return type from void to file_location.
24855 (md_reader::read_name_or_nil): New decl.
24856 (md_reader::read_name_1): New decl.
24857 (md_reader::m_compact): New field.
24858 (noop_reader::noop_reader): Pass "false" for new "compact" param
24859 of rtx_reader.
24860 (rtx_reader::rtx_reader): Add new "compact" param.
24861 (rtx_reader::read_rtx_operand): Make virtual and convert return
24862 type from void to rtx.
24863 (rtx_reader::read_until): New decl.
24864 (rtx_reader::handle_any_trailing_information): New virtual function.
24865 (rtx_reader::postprocess): New virtual function.
24866 (rtx_reader::finalize_string): New virtual function.
24867 (rtx_reader::m_in_call_function_usage): New field.
24868 (rtx_reader::m_reuse_rtx_by_id): New field.
24869 * read-rtl-function.c: New file.
24870 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
24871 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
24872 (selftest::verify_three_block_rtl_cfg): New decl.
24873 * read-rtl-function.h: New file.
24874 * read-rtl.c: Potentially include config.h rather than bconfig.h.
24875 For host, include function.h, memmodel.h, and emit-rtl.h.
24876 (one_time_initialization): New function.
24877 (struct compact_insn_name): New struct.
24878 (compact_insn_names): New array.
24879 (find_code): Handle insn codes in compact dumps.
24880 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
24881 (bind_subst_iter_and_attr): Likewise.
24882 (add_condition_to_string): Likewise.
24883 (add_condition_to_rtx): Likewise.
24884 (apply_attribute_uses): Likewise.
24885 (add_current_iterators): Likewise.
24886 (apply_iterators): Likewise.
24887 (initialize_iterators): Guard usage of apply_subst_iterator with
24888 #ifdef GENERATOR_FILE.
24889 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
24890 (md_reader::read_mapping): Likewise.
24891 (add_define_attr_for_define_subst): Likewise.
24892 (add_define_subst_attr): Likewise.
24893 (read_subst_mapping): Likewise.
24894 (check_code_iterator): Likewise.
24895 (rtx_reader::read_rtx): Likewise. Move one-time initialization
24896 logic to...
24897 (one_time_initialization): New function.
24898 (rtx_reader::read_until): New method.
24899 (read_flags): New function.
24900 (parse_reg_note_name): New function.
24901 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
24902 Handle reuse_rtx ids.
24903 Wrap iterator lookup within #ifdef GENERATOR_FILE.
24904 Add parsing support for RTL dumps, mirroring the special-cases in
24905 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
24906 values, and calling handle_any_trailing_information.
24907 (rtx_reader::read_rtx_operand): Convert return type from void
24908 to rtx, returning return_rtx. Handle case 'e'. Call
24909 finalize_string on XSTR and XTMPL fields.
24910 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
24911 "(nil)" values were omitted. Call the postprocess vfunc on the
24912 return_rtx.
24913 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
24914 class ctor. Initialize m_in_call_function_usage. Call
24915 one_time_initialization.
24916 * rtl-tests.c (selftest::test_uncond_jump): Call
24917 set_new_first_and_last_insn.
24918 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
24919 * selftest-rtl.c: New file.
24920 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
24921 (selftest::get_insn_by_uid): New decl.
24922 * selftest-run-tests.c (selftest::run_tests): Call
24923 read_rtl_function_c_tests.
24924 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
24925 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
24926 dumps.
24927
24928 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
24929
24930 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
24931 operands in a special way. Assert that pos+len <= mode precision.
24932
24933 2017-01-05 Jakub Jelinek <jakub@redhat.com>
24934
24935 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
24936 3 argument Alias with unlimited for the negative form.
24937 (fno-vect-cost-model): Removed.
24938
24939 2017-01-05 Martin Liska <mliska@suse.cz>
24940
24941 * hsa-gen.c (gen_hsa_divmod): New function.
24942 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
24943
24944 2017-01-05 Martin Liska <mliska@suse.cz>
24945
24946 PR pch/78970
24947 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
24948 header.
24949
24950 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24951
24952 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
24953 small constant length operands.
24954
24955 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24956
24957 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
24958 between loop iterations.
24959
24960 2017-01-05 Martin Liska <mliska@suse.cz>
24961
24962 PR sanitizer/78815
24963 * gimplify.c (gimplify_decl_expr): Compare to
24964 asan_poisoned_variables instread of checking flags.
24965 (gimplify_target_expr): Likewise.
24966 (gimplify_expr): Likewise.
24967 (gimplify_function_tree): Conditionally initialize
24968 asan_poisoned_variables.
24969
24970 2017-01-04 Jeff Law <law@redhat.com>
24971
24972 PR tree-optimizatin/78812
24973 * rtl.h (contains_mem_rtx_p): Prototype.
24974 * ifcvt.c (containts_mem_rtx_p): Move from here to...
24975 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
24976 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
24977 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
24978 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
24979
24980 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
24981
24982 * input.c (assert_char_at_range): Default-initialize actual_range.
24983
24984 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
24985
24986 * df-scan.c (df_ref_create_structure): Make regno unsigned,
24987 to match the caller.
24988
24989 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
24990
24991 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
24992 insns after final jump in test to emit dummy move.
24993
24994 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
24995
24996 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
24997 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
24998
24999 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
25000
25001 * multiple_target.c (create_dispatcher_calls): Init e_next.
25002 * tree-ssa-loop-split.c (split_loop): Init border.
25003 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
25004 scalar_type.
25005
25006 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
25007
25008 PR target/71977
25009 PR target/70568
25010 PR target/78823
25011 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
25012 (altivec_register_operand): Do not return true if the operand
25013 contains a SUBREG mixing SImode and SFmode.
25014 (vsx_register_operand): Likewise.
25015 (vsx_reg_sfsubreg_ok): New predicate.
25016 (vfloat_operand): Do not return true if the operand contains a
25017 SUBREG mixing SImode and SFmode.
25018 (vint_operand): Likewise.
25019 (vlogical_operand): Likewise.
25020 (gpc_reg_operand): Likewise.
25021 (int_reg_operand): Likewise.
25022 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
25023 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
25024 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
25025 SImode and SFmode.
25026 (rs6000_emit_move_si_sf_subreg): New helper function.
25027 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
25028 fixup SUBREGs involving SImode and SFmode.
25029 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
25030 numbers for the new peephole2 optimization.
25031 (peephole2 for SFmode unions): New peephole2 to optimize cases in
25032 the GLIBC math library that do AND/IOR/XOR operations on single
25033 precision floating point.
25034 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
25035 target macros to say whether we need to avoid SUBREGs mixing
25036 SImode and SFmode.
25037 (TARGET_ALLOW_SF_SUBREG): Likewise.
25038 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
25039 (UNSPEC_SI_FROM_SF): Likewise.
25040 (iorxor): Change spacing.
25041 (and_ior_xor): New iterator for AND, IOR, and XOR.
25042 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
25043 (movdi_from_sf_zero_ext): Likewise.
25044 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
25045 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
25046 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
25047 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
25048 (fms<mode>4): Likewise.
25049 (fnma<mode>4): Likewise.
25050 (fnms<mode>4): Likewise.
25051 (nfma<mode>4): Likewise.
25052 (nfms<mode>4): Likewise.
25053
25054 2017-01-04 Marek Polacek <polacek@redhat.com>
25055
25056 PR c++/64767
25057 * doc/invoke.texi: Document -Wpointer-compare.
25058
25059 2017-01-04 Jakub Jelinek <jakub@redhat.com>
25060
25061 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
25062 RejectNegative.
25063
25064 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
25065 descriptions for -gdwarf-5 and emit them as uleb128 instead of
25066 2-byte data.
25067
25068 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
25069
25070 PR target/78056
25071 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
25072 documentation of the powerpc_popcntb_ok attribute.
25073 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25074 code to issue warning messages if a requested CPU configuration is
25075 not supported by the binary (assembler and loader) toolchain.
25076 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
25077 made to define a built-in function that has been disabled.
25078 (paired_init_builtins): Add assertion to prevent ICE if attempt is
25079 made to define a built-in function that has been disabled.
25080 (altivec_init_builtins): Add comment explaining why definition
25081 of the DST built-in functions is not preceded by an assertion
25082 check. Add assertions to prevent ICE if attempts are made to
25083 define an altivec predicate or an abs* built-in function that has
25084 been disabled.
25085 (htm_init_builtins): Add comment explaining why definition of the
25086 htm built-in functions is not preceded by an assertion check.
25087
25088 2017-01-04 Jeff Law <law@redhat.com>
25089
25090 PR tree-optimizatin/67955
25091 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
25092 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
25093 the points-to solution does not include pt_null. Use DECL_PT_UID
25094 unconditionally.
25095
25096 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
25097
25098 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
25099 Use gen_int_mode instead of gen_lopwart for const_int operands.
25100
25101 2017-01-04 Jakub Jelinek <jakub@redhat.com>
25102
25103 PR tree-optimization/71563
25104 * match.pd: Simplify X << Y into X if Y is known to be 0 or
25105 out of range value - has low bits known to be zero.
25106
25107 2017-01-04 Alan Modra <amodra@gmail.com>
25108
25109 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
25110 * configure: Regenerate.
25111 * config.in: Regenerate.
25112
25113 2017-01-04 Jakub Jelinek <jakub@redhat.com>
25114
25115 PR bootstrap/77569
25116 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
25117 a substring of the message, but strcmp with the whole message. Ifdef
25118 ENABLE_NLS, translate the message first using dgettext.
25119
25120 2017-01-03 Jeff Law <law@redhat.com>
25121
25122 PR tree-optimizatin/78856
25123 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
25124 (mark_threaded_blocks): Remove code to truncate thread paths that
25125 cross multiple loop headers. Instead invalidate the cached loop
25126 iteration information and handle case of a thread path walking
25127 into an irreducible region.
25128
25129 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
25130
25131 PR target/78900
25132 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
25133 assertions. Add support for doing the signbit if the IEEE 128-bit
25134 floating point value is in a GPR.
25135 * config/rs6000/rs6000.md (Fsignbit): Delete.
25136 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
25137 Update the length attribute if the value is in a GPR.
25138 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
25139 the sign or zero extension instruction, since the value is always 0/1.
25140 (signbit<mode>2_dm2): Delete using <Fsignbit>.
25141
25142 PR target/78953
25143 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
25144 extracting SImode to a GPR register so that we can generate a
25145 store, limit the vector to be in a traditional Altivec register
25146 for the vextuwrx instruction.
25147
25148 2017-01-03 Ian Lance Taylor <iant@google.com>
25149
25150 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
25151
25152 2017-01-03 Martin Sebor <msebor@redhat.com>
25153
25154 PR tree-optimization/78696
25155 * gimple-ssa-sprintf.c (format_floating): Correct handling of
25156 precision. Use MPFR for %f for greater fidelity. Correct handling
25157 of %g.
25158 (pass_sprintf_length::compute_format_length): Set width and precision
25159 specified by asrerisk to void_node for vararg functions.
25160 (try_substitute_return_value): Adjust dump output.
25161
25162 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
25163
25164 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
25165
25166 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
25167
25168 * doc/invoke.texi (SPARC options): Document -mlra as the default.
25169 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
25170 -mlra/-mno-lra was passed to the compiler.
25171
25172 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
25173
25174 PR rtl-optimization/65618
25175 * emit-rtl.c (try_split): Move initialization of "before" and
25176 "after" to just before the call to emit_insn_after_setloc.
25177
25178 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
25179
25180 * doc/md.texi (Standard Names): Remove reference to Java frontend.
25181
25182 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
25183
25184 * dwarf2out.c (gen_enumeration_type_die): When
25185 -gno-strict-dwarf, add a DW_AT_encoding attribute.
25186
25187 2017-01-03 Jakub Jelinek <jakub@redhat.com>
25188
25189 PR tree-optimization/78965
25190 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
25191 Change first argument from const call_info & to call_info &. For %n
25192 set info.nowrite to false.
25193
25194 PR middle-end/78901
25195 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
25196 possibly throwing calls.
25197
25198 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
25199 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
25200 and fns handling, rather than in a separate case SSA_NAME.
25201
25202 2017-01-02 Jeff Law <law@redhat.com>
25203
25204 * config/darwin-driver.c (darwin_driver_init): Const-correctness
25205 fixes for first_period and second_period variables.
25206
25207 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
25208
25209 PR target/78967
25210 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
25211 (*insvqi_1): New insn pattern.
25212 (*insvqi_1_mem_rex64): Ditto.
25213 (*insvqi_2): Ditto.
25214 (*insvqi_3): Rename from *insvqi.
25215
25216 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
25217
25218 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
25219
25220 * doc/cfg.texi (Edges): Remove reference to Java.
25221 (Maintaining the CFG): Ditto.
25222
25223 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
25224
25225 PR middle-end/77674
25226 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
25227 transparent aliases.
25228
25229 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
25230
25231 PR middle-end/77484
25232 * predict.def (PRED_CALL): Update hitrate.
25233 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
25234 * predict.c (tree_estimate_probability_bb): Split CALL predictor
25235 into direct/indirect/polymorphic variants.
25236
25237 2017-01-01 Jakub Jelinek <jakub@redhat.com>
25238
25239 Update copyright years.
25240
25241 * gcc.c (process_command): Update copyright notice dates.
25242 * gcov-dump.c (print_version): Ditto.
25243 * gcov.c (print_version): Ditto.
25244 * gcov-tool.c (print_version): Ditto.
25245 * gengtype.c (create_file): Ditto.
25246 * doc/cpp.texi: Bump @copying's copyright year.
25247 * doc/cppinternals.texi: Ditto.
25248 * doc/gcc.texi: Ditto.
25249 * doc/gccint.texi: Ditto.
25250 * doc/gcov.texi: Ditto.
25251 * doc/install.texi: Ditto.
25252 * doc/invoke.texi: Ditto.
25253 \f
25254 Copyright (C) 2017 Free Software Foundation, Inc.
25255
25256 Copying and distribution of this file, with or without modification,
25257 are permitted in any medium without royalty provided the copyright
25258 notice and this notice are preserved.