]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
[4/77] Add FOR_EACH iterators for modes
[thirdparty/gcc.git] / gcc / ChangeLog
1 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2 Alan Hayward <alan.hayward@arm.com>
3 David Sherwood <david.sherwood@arm.com>
4
5 * machmode.h (mode_traits): New structure.
6 (get_narrowest_mode): New function.
7 (mode_iterator::start): Likewise.
8 (mode_iterator::iterate_p): Likewise.
9 (mode_iterator::get_wider): Likewise.
10 (mode_iterator::get_known_wider): Likewise.
11 (mode_iterator::get_2xwider): Likewise.
12 (FOR_EACH_MODE_IN_CLASS): New mode iterator.
13 (FOR_EACH_MODE): Likewise.
14 (FOR_EACH_MODE_FROM): Likewise.
15 (FOR_EACH_MODE_UNTIL): Likewise.
16 (FOR_EACH_WIDER_MODE): Likewise.
17 (FOR_EACH_2XWIDER_MODE): Likewise.
18 * builtins.c (expand_builtin_strlen): Use new mode iterators.
19 * combine.c (simplify_comparison): Likewise
20 * config/i386/i386.c (type_natural_mode): Likewise.
21 * cse.c (cse_insn): Likewise.
22 * dse.c (find_shift_sequence): Likewise.
23 * emit-rtl.c (init_derived_machine_modes): Likewise.
24 (init_emit_once): Likewise.
25 * explow.c (hard_function_value): Likewise.
26 * expmed.c (extract_fixed_bit_field_1): Likewise.
27 (extract_bit_field_1): Likewise.
28 (expand_divmod): Likewise.
29 (emit_store_flag_1): Likewise.
30 * expr.c (init_expr_target): Likewise.
31 (convert_move): Likewise.
32 (alignment_for_piecewise_move): Likewise.
33 (widest_int_mode_for_size): Likewise.
34 (emit_block_move_via_movmem): Likewise.
35 (copy_blkmode_to_reg): Likewise.
36 (set_storage_via_setmem): Likewise.
37 (compress_float_constant): Likewise.
38 * omp-low.c (omp_clause_aligned_alignment): Likewise.
39 * optabs-query.c (get_best_extraction_insn): Likewise.
40 * optabs.c (expand_binop): Likewise.
41 (expand_twoval_unop): Likewise.
42 (expand_twoval_binop): Likewise.
43 (widen_leading): Likewise.
44 (widen_bswap): Likewise.
45 (expand_parity): Likewise.
46 (expand_unop): Likewise.
47 (prepare_cmp_insn): Likewise.
48 (prepare_float_lib_cmp): Likewise.
49 (expand_float): Likewise.
50 (expand_fix): Likewise.
51 (expand_sfix_optab): Likewise.
52 * postreload.c (move2add_use_add2_insn): Likewise.
53 * reg-stack.c (reg_to_stack): Likewise.
54 * reginfo.c (choose_hard_reg_mode): Likewise.
55 * rtlanal.c (init_num_sign_bit_copies_in_rep): Likewise.
56 * stor-layout.c (mode_for_size): Likewise.
57 (smallest_mode_for_size): Likewise.
58 (mode_for_vector): Likewise.
59 (finish_bitfield_representative): Likewise.
60 * tree-ssa-math-opts.c (target_supports_divmod_p): Likewise.
61 * tree-vect-generic.c (type_for_widest_vector_mode): Likewise.
62 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
63 * var-tracking.c (prepare_call_arguments): Likewise.
64
65 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
66 Alan Hayward <alan.hayward@arm.com>
67 David Sherwood <david.sherwood@arm.com>
68
69 * genconditions.c (write_header): Add a "#define USE_ENUM_MODES".
70 * genmodes.c (emit_insn_modes_h): Define FOOmode to E_FOOmode if
71 USE_ENUM_MODES is defined and to ((void) 0, E_FOOmode) otherwise.
72 * machmode.h (mode_size): Move earlier in file.
73 (mode_precision): Likewise.
74 (mode_inner): Likewise.
75 (mode_nunits): Likewise.
76 (mode_unit_size): Likewise.
77 (unit_unit_precision): Likewise.
78 (mode_wider): Likewise.
79 (mode_2xwider): Likewise.
80 (machine_mode): New class.
81 (mode_to_bytes): New function.
82 (mode_to_bits): Likewise.
83 (mode_to_precision): Likewise.
84 (mode_to_inner): Likewise.
85 (mode_to_unit_size): Likewise.
86 (mode_to_unit_precision): Likewise.
87 (mode_to_nunits): Likewise.
88 (GET_MODE_SIZE): Use mode_to_bytes.
89 (GET_MODE_BITSIZE): Use mode_to_bits.
90 (GET_MODE_PRECISION): Use mode_to_precision.
91 (GET_MODE_INNER): Use mode_to_inner.
92 (GET_MODE_UNIT_SIZE): Use mode_to_unit_size.
93 (GET_MODE_UNIT_PRECISION): Use mode_to_unit_precision.
94 (GET_MODE_NUNITS): Use mode_to_nunits.
95 * system.h (ALWAYS_INLINE): New macro.
96 * config/powerpcspe/powerpcspe-c.c
97 (altivec_resolve_overloaded_builtin): Use machine_mode instead of
98 int for arg1_mode and arg2_mode.
99
100 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
101 Alan Hayward <alan.hayward@arm.com>
102 David Sherwood <david.sherwood@arm.com>
103
104 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_std_type):
105 Prefix mode names with E_ in case statements.
106 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
107 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Likewise.
108 (aarch64_split_simd_move): Likewise.
109 (aarch64_gen_storewb_pair): Likewise.
110 (aarch64_gen_loadwb_pair): Likewise.
111 (aarch64_gen_store_pair): Likewise.
112 (aarch64_gen_load_pair): Likewise.
113 (aarch64_get_condition_code_1): Likewise.
114 (aarch64_constant_pool_reload_icode): Likewise.
115 (get_rsqrte_type): Likewise.
116 (get_rsqrts_type): Likewise.
117 (get_recpe_type): Likewise.
118 (get_recps_type): Likewise.
119 (aarch64_gimplify_va_arg_expr): Likewise.
120 (aarch64_simd_container_mode): Likewise.
121 (aarch64_emit_load_exclusive): Likewise.
122 (aarch64_emit_store_exclusive): Likewise.
123 (aarch64_expand_compare_and_swap): Likewise.
124 (aarch64_gen_atomic_cas): Likewise.
125 (aarch64_emit_bic): Likewise.
126 (aarch64_emit_atomic_swap): Likewise.
127 (aarch64_emit_atomic_load_op): Likewise.
128 (aarch64_evpc_trn): Likewise.
129 (aarch64_evpc_uzp): Likewise.
130 (aarch64_evpc_zip): Likewise.
131 (aarch64_evpc_ext): Likewise.
132 (aarch64_evpc_rev): Likewise.
133 (aarch64_evpc_dup): Likewise.
134 (aarch64_gen_ccmp_first): Likewise.
135 (aarch64_gen_ccmp_next): Likewise.
136 * config/alpha/alpha.c (alpha_scalar_mode_supported_p): Likewise.
137 (alpha_emit_xfloating_libcall): Likewise.
138 (emit_insxl): Likewise.
139 (alpha_arg_type): Likewise.
140 * config/arc/arc.c (arc_vector_mode_supported_p): Likewise.
141 (arc_preferred_simd_mode): Likewise.
142 (arc_secondary_reload): Likewise.
143 (get_arc_condition_code): Likewise.
144 (arc_print_operand): Likewise.
145 (arc_legitimate_constant_p): Likewise.
146 * config/arc/arc.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
147 * config/arc/arc.md (casesi_load): Likewise.
148 (casesi_compact_jump): Likewise.
149 * config/arc/predicates.md (proper_comparison_operator): Likewise.
150 (cc_use_register): Likewise.
151 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
152 * config/arm/arm-builtins.c (arm_simd_builtin_std_type): Likewise.
153 (arm_init_iwmmxt_builtins): Likewise.
154 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
155 (neon_expand_vector_init): Likewise.
156 (arm_attr_length_move_neon): Likewise.
157 (maybe_get_arm_condition_code): Likewise.
158 (arm_emit_vector_const): Likewise.
159 (arm_preferred_simd_mode): Likewise.
160 (arm_output_iwmmxt_tinsr): Likewise.
161 (thumb1_output_casesi): Likewise.
162 (thumb2_output_casesi): Likewise.
163 (arm_emit_load_exclusive): Likewise.
164 (arm_emit_store_exclusive): Likewise.
165 (arm_expand_compare_and_swap): Likewise.
166 (arm_evpc_neon_vuzp): Likewise.
167 (arm_evpc_neon_vzip): Likewise.
168 (arm_evpc_neon_vrev): Likewise.
169 (arm_evpc_neon_vtrn): Likewise.
170 (arm_evpc_neon_vext): Likewise.
171 (arm_validize_comparison): Likewise.
172 * config/arm/neon.md (neon_vc<cmp_op><mode>): Likewise.
173 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
174 * config/avr/avr.c (avr_rtx_costs_1): Likewise.
175 * config/c6x/c6x.c (c6x_vector_mode_supported_p): Likewise.
176 (c6x_preferred_simd_mode): Likewise.
177 * config/epiphany/epiphany.c (get_epiphany_condition_code): Likewise.
178 (epiphany_rtx_costs): Likewise.
179 * config/epiphany/predicates.md (proper_comparison_operator):
180 Likewise.
181 * config/frv/frv.c (condexec_memory_operand): Likewise.
182 (frv_emit_move): Likewise.
183 (output_move_single): Likewise.
184 (output_condmove_single): Likewise.
185 (frv_hard_regno_mode_ok): Likewise.
186 (frv_matching_accg_mode): Likewise.
187 * config/h8300/h8300.c (split_adds_subs): Likewise.
188 (h8300_rtx_costs): Likewise.
189 (h8300_print_operand): Likewise.
190 (compute_mov_length): Likewise.
191 (output_logical_op): Likewise.
192 (compute_logical_op_length): Likewise.
193 (compute_logical_op_cc): Likewise.
194 (h8300_shift_needs_scratch_p): Likewise.
195 (output_a_shift): Likewise.
196 (compute_a_shift_length): Likewise.
197 (compute_a_shift_cc): Likewise.
198 (expand_a_rotate): Likewise.
199 (output_a_rotate): Likewise.
200 * config/i386/i386.c (classify_argument): Likewise.
201 (function_arg_advance_32): Likewise.
202 (function_arg_32): Likewise.
203 (function_arg_64): Likewise.
204 (function_value_64): Likewise.
205 (ix86_gimplify_va_arg): Likewise.
206 (ix86_legitimate_constant_p): Likewise.
207 (put_condition_code): Likewise.
208 (split_double_mode): Likewise.
209 (ix86_avx256_split_vector_move_misalign): Likewise.
210 (ix86_expand_vector_logical_operator): Likewise.
211 (ix86_split_idivmod): Likewise.
212 (ix86_expand_adjust_ufix_to_sfix_si): Likewise.
213 (ix86_build_const_vector): Likewise.
214 (ix86_build_signbit_mask): Likewise.
215 (ix86_match_ccmode): Likewise.
216 (ix86_cc_modes_compatible): Likewise.
217 (ix86_expand_branch): Likewise.
218 (ix86_expand_sse_cmp): Likewise.
219 (ix86_expand_sse_movcc): Likewise.
220 (ix86_expand_int_sse_cmp): Likewise.
221 (ix86_expand_vec_perm_vpermi2): Likewise.
222 (ix86_expand_vec_perm): Likewise.
223 (ix86_expand_sse_unpack): Likewise.
224 (ix86_expand_int_addcc): Likewise.
225 (ix86_split_to_parts): Likewise.
226 (ix86_vectorize_builtin_gather): Likewise.
227 (ix86_vectorize_builtin_scatter): Likewise.
228 (avx_vpermilp_parallel): Likewise.
229 (inline_memory_move_cost): Likewise.
230 (ix86_tieable_integer_mode_p): Likewise.
231 (x86_maybe_negate_const_int): Likewise.
232 (ix86_expand_vector_init_duplicate): Likewise.
233 (ix86_expand_vector_init_one_nonzero): Likewise.
234 (ix86_expand_vector_init_one_var): Likewise.
235 (ix86_expand_vector_init_concat): Likewise.
236 (ix86_expand_vector_init_interleave): Likewise.
237 (ix86_expand_vector_init_general): Likewise.
238 (ix86_expand_vector_set): Likewise.
239 (ix86_expand_vector_extract): Likewise.
240 (emit_reduc_half): Likewise.
241 (ix86_emit_i387_round): Likewise.
242 (ix86_mangle_type): Likewise.
243 (ix86_expand_round_sse4): Likewise.
244 (expand_vec_perm_blend): Likewise.
245 (canonicalize_vector_int_perm): Likewise.
246 (ix86_expand_vec_one_operand_perm_avx512): Likewise.
247 (expand_vec_perm_1): Likewise.
248 (expand_vec_perm_interleave3): Likewise.
249 (expand_vec_perm_even_odd_pack): Likewise.
250 (expand_vec_perm_even_odd_1): Likewise.
251 (expand_vec_perm_broadcast_1): Likewise.
252 (ix86_vectorize_vec_perm_const_ok): Likewise.
253 (ix86_expand_vecop_qihi): Likewise.
254 (ix86_expand_mul_widen_hilo): Likewise.
255 (ix86_expand_sse2_abs): Likewise.
256 (ix86_expand_pextr): Likewise.
257 (ix86_expand_pinsr): Likewise.
258 (ix86_preferred_simd_mode): Likewise.
259 (ix86_simd_clone_compute_vecsize_and_simdlen): Likewise.
260 * config/i386/sse.md (*andnot<mode>3): Likewise.
261 (<mask_codefor><code><mode>3<mask_name>): Likewise.
262 (*<code><mode>3): Likewise.
263 * config/ia64/ia64.c (ia64_expand_vecint_compare): Likewise.
264 (ia64_expand_atomic_op): Likewise.
265 (ia64_arg_type): Likewise.
266 (ia64_mode_to_int): Likewise.
267 (ia64_scalar_mode_supported_p): Likewise.
268 (ia64_vector_mode_supported_p): Likewise.
269 (expand_vec_perm_broadcast): Likewise.
270 * config/iq2000/iq2000.c (iq2000_move_1word): Likewise.
271 (iq2000_function_arg_advance): Likewise.
272 (iq2000_function_arg): Likewise.
273 * config/m32c/m32c.c (m32c_preferred_reload_class): Likewise.
274 * config/m68k/m68k.c (output_dbcc_and_branch): Likewise.
275 (m68k_libcall_value): Likewise.
276 (m68k_function_value): Likewise.
277 (sched_attr_op_type): Likewise.
278 * config/mcore/mcore.c (mcore_output_move): Likewise.
279 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
280 Likewise.
281 (microblaze_function_arg): Likewise.
282 * config/mips/mips.c (mips16_build_call_stub): Likewise.
283 (mips_print_operand): Likewise.
284 (mips_mode_ok_for_mov_fmt_p): Likewise.
285 (mips_vector_mode_supported_p): Likewise.
286 (mips_preferred_simd_mode): Likewise.
287 (mips_expand_vpc_loongson_even_odd): Likewise.
288 (mips_expand_vec_unpack): Likewise.
289 (mips_expand_vi_broadcast): Likewise.
290 (mips_expand_vector_init): Likewise.
291 (mips_expand_vec_reduc): Likewise.
292 (mips_expand_msa_cmp): Likewise.
293 * config/mips/mips.md (casesi_internal_mips16_<mode>): Likewise.
294 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
295 (cc_flags_for_mode): Likewise.
296 * config/msp430/msp430.c (msp430_print_operand): Likewise.
297 * config/nds32/nds32-md-auxiliary.c (nds32_mem_format): Likewise.
298 (nds32_output_casesi_pc_relative): Likewise.
299 * config/nds32/nds32.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
300 * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Likewise.
301 (nvptx_gen_unpack): Likewise.
302 (nvptx_gen_pack): Likewise.
303 (nvptx_gen_shuffle): Likewise.
304 (nvptx_gen_wcast): Likewise.
305 (nvptx_preferred_simd_mode): Likewise.
306 * config/pa/pa.c (pa_secondary_reload): Likewise.
307 * config/pa/predicates.md (base14_operand): Likewise.
308 * config/powerpcspe/powerpcspe-c.c
309 (altivec_resolve_overloaded_builtin): Likewise.
310 * config/powerpcspe/powerpcspe.c (rs6000_setup_reg_addr_masks):
311 Likewise.
312 (rs6000_preferred_simd_mode): Likewise.
313 (output_vec_const_move): Likewise.
314 (rs6000_expand_vector_extract): Likewise.
315 (rs6000_split_vec_extract_var): Likewise.
316 (reg_offset_addressing_ok_p): Likewise.
317 (rs6000_legitimate_offset_address_p): Likewise.
318 (rs6000_legitimize_address): Likewise.
319 (rs6000_emit_set_const): Likewise.
320 (rs6000_const_vec): Likewise.
321 (rs6000_emit_move): Likewise.
322 (spe_build_register_parallel): Likewise.
323 (rs6000_darwin64_record_arg_recurse): Likewise.
324 (swap_selector_for_mode): Likewise.
325 (spe_init_builtins): Likewise.
326 (paired_init_builtins): Likewise.
327 (altivec_init_builtins): Likewise.
328 (do_load_for_compare): Likewise.
329 (rs6000_generate_compare): Likewise.
330 (rs6000_expand_float128_convert): Likewise.
331 (emit_load_locked): Likewise.
332 (emit_store_conditional): Likewise.
333 (rs6000_output_function_epilogue): Likewise.
334 (rs6000_handle_altivec_attribute): Likewise.
335 (rs6000_function_value): Likewise.
336 (emit_fusion_gpr_load): Likewise.
337 (emit_fusion_p9_load): Likewise.
338 (emit_fusion_p9_store): Likewise.
339 * config/powerpcspe/predicates.md (easy_fp_constant): Likewise.
340 (fusion_gpr_mem_load): Likewise.
341 (fusion_addis_mem_combo_load): Likewise.
342 (fusion_addis_mem_combo_store): Likewise.
343 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
344 (fusion_gpr_mem_load): Likewise.
345 (fusion_addis_mem_combo_load): Likewise.
346 (fusion_addis_mem_combo_store): Likewise.
347 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
348 Likewise.
349 * config/rs6000/rs6000-string.c (do_load_for_compare): Likewise.
350 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Likewise.
351 (rs6000_preferred_simd_mode): Likewise.
352 (output_vec_const_move): Likewise.
353 (rs6000_expand_vector_extract): Likewise.
354 (rs6000_split_vec_extract_var): Likewise.
355 (reg_offset_addressing_ok_p): Likewise.
356 (rs6000_legitimate_offset_address_p): Likewise.
357 (rs6000_legitimize_address): Likewise.
358 (rs6000_emit_set_const): Likewise.
359 (rs6000_const_vec): Likewise.
360 (rs6000_emit_move): Likewise.
361 (rs6000_darwin64_record_arg_recurse): Likewise.
362 (swap_selector_for_mode): Likewise.
363 (paired_init_builtins): Likewise.
364 (altivec_init_builtins): Likewise.
365 (rs6000_expand_float128_convert): Likewise.
366 (emit_load_locked): Likewise.
367 (emit_store_conditional): Likewise.
368 (rs6000_output_function_epilogue): Likewise.
369 (rs6000_handle_altivec_attribute): Likewise.
370 (rs6000_function_value): Likewise.
371 (emit_fusion_gpr_load): Likewise.
372 (emit_fusion_p9_load): Likewise.
373 (emit_fusion_p9_store): Likewise.
374 * config/rx/rx.c (rx_gen_move_template): Likewise.
375 (flags_from_mode): Likewise.
376 * config/s390/predicates.md (s390_alc_comparison): Likewise.
377 (s390_slb_comparison): Likewise.
378 * config/s390/s390.c (s390_handle_vectorbool_attribute): Likewise.
379 (s390_vector_mode_supported_p): Likewise.
380 (s390_cc_modes_compatible): Likewise.
381 (s390_match_ccmode_set): Likewise.
382 (s390_canonicalize_comparison): Likewise.
383 (s390_emit_compare_and_swap): Likewise.
384 (s390_branch_condition_mask): Likewise.
385 (s390_rtx_costs): Likewise.
386 (s390_secondary_reload): Likewise.
387 (__SECONDARY_RELOAD_CASE): Likewise.
388 (s390_expand_cs): Likewise.
389 (s390_preferred_simd_mode): Likewise.
390 * config/s390/vx-builtins.md (vec_packsu_u<mode>): Likewise.
391 * config/sh/sh.c (sh_print_operand): Likewise.
392 (dump_table): Likewise.
393 (sh_secondary_reload): Likewise.
394 * config/sh/sh.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
395 * config/sh/sh.md (casesi_worker_1): Likewise.
396 (casesi_worker_2): Likewise.
397 * config/sparc/predicates.md (icc_comparison_operator): Likewise.
398 (fcc_comparison_operator): Likewise.
399 * config/sparc/sparc.c (sparc_expand_move): Likewise.
400 (emit_soft_tfmode_cvt): Likewise.
401 (sparc_preferred_simd_mode): Likewise.
402 (output_cbranch): Likewise.
403 (sparc_print_operand): Likewise.
404 (sparc_expand_vec_perm_bmask): Likewise.
405 (vector_init_bshuffle): Likewise.
406 * config/spu/spu.c (spu_scalar_mode_supported_p): Likewise.
407 (spu_vector_mode_supported_p): Likewise.
408 (spu_expand_insv): Likewise.
409 (spu_emit_branch_or_set): Likewise.
410 (spu_handle_vector_attribute): Likewise.
411 (spu_builtin_splats): Likewise.
412 (spu_builtin_extract): Likewise.
413 (spu_builtin_promote): Likewise.
414 (spu_expand_sign_extend): Likewise.
415 * config/tilegx/tilegx.c (tilegx_scalar_mode_supported_p): Likewise.
416 (tilegx_simd_int): Likewise.
417 * config/tilepro/tilepro.c (tilepro_scalar_mode_supported_p): Likewise.
418 (tilepro_simd_int): Likewise.
419 * config/v850/v850.c (const_double_split): Likewise.
420 (v850_print_operand): Likewise.
421 (ep_memory_offset): Likewise.
422 * config/vax/vax.c (vax_rtx_costs): Likewise.
423 (vax_output_int_move): Likewise.
424 (vax_output_int_add): Likewise.
425 (vax_output_int_subtract): Likewise.
426 * config/visium/predicates.md (visium_branch_operator): Likewise.
427 * config/visium/visium.c (rtx_ok_for_offset_p): Likewise.
428 (visium_print_operand_address): Likewise.
429 * config/visium/visium.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
430 * config/xtensa/xtensa.c (xtensa_mem_offset): Likewise.
431 (xtensa_expand_conditional_branch): Likewise.
432 (xtensa_copy_incoming_a7): Likewise.
433 (xtensa_output_literal): Likewise.
434 * dfp.c (decimal_real_maxval): Likewise.
435 * targhooks.c (default_libgcc_floating_mode_supported_p): Likewise.
436
437 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
438 Alan Hayward <alan.hayward@arm.com>
439 David Sherwood <david.sherwood@arm.com>
440
441 * genmodes.c (mode_size_inline): Add an E_ prefix to mode names.
442 (mode_nunits_inline): Likewise.
443 (mode_inner_inline): Likewise.
444 (mode_unit_size_inline): Likewise.
445 (mode_unit_precision_inline): Likewise.
446 (emit_insn_modes_h): Likewise. Also emit a #define of the
447 unprefixed name.
448 (emit_mode_wider): Add an E_ prefix to mode names.
449 (emit_mode_complex): Likewise.
450 (emit_mode_inner): Likewise.
451 (emit_mode_adjustments): Likewise.
452 (emit_mode_int_n): Likewise.
453 * config/aarch64/aarch64-builtins.c (v8qi_UP, v4hi_UP, v4hf_UP)
454 (v2si_UP, v2sf_UP, v1df_UP, di_UP, df_UP, v16qi_UP, v8hi_UP, v8hf_UP)
455 (v4si_UP, v4sf_UP, v2di_UP, v2df_UP, ti_UP, oi_UP, ci_UP, xi_UP)
456 (si_UP, sf_UP, hi_UP, hf_UP, qi_UP): Likewise.
457 (CRC32_BUILTIN, ENTRY): Likewise.
458 * config/aarch64/aarch64.c (aarch64_push_regs): Likewise.
459 (aarch64_pop_regs): Likewise.
460 (aarch64_process_components): Likewise.
461 * config/alpha/alpha.c (alpha_emit_conditional_move): Likewise.
462 * config/arm/arm-builtins.c (v8qi_UP, v4hi_UP, v4hf_UP, v2si_UP)
463 (v2sf_UP, di_UP, v16qi_UP, v8hi_UP, v8hf_UP, v4si_UP, v4sf_UP)
464 (v2di_UP, ti_UP, ei_UP, oi_UP, hf_UP, si_UP, void_UP): Likewise.
465 * config/arm/arm.c (arm_init_libfuncs): Likewise.
466 * config/i386/i386-builtin-types.awk (ix86_builtin_type_vect_mode):
467 Likewise.
468 * config/i386/i386-builtin.def (pcmpestr): Likewise.
469 (pcmpistr): Likewise.
470 * config/microblaze/microblaze.c (double_memory_operand): Likewise.
471 * config/mmix/mmix.c (mmix_output_condition): Likewise.
472 * config/powerpcspe/powerpcspe.c (rs6000_init_hard_regno_mode_ok):
473 Likewise.
474 * config/rl78/rl78.c (mduc_regs): Likewise.
475 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
476 (htm_expand_builtin): Likewise.
477 * config/sh/sh.h (REGISTER_NATURAL_MODE): Likewise.
478 * config/sparc/sparc.c (emit_save_or_restore_regs): Likewise.
479 * config/xtensa/xtensa.c (print_operand): Likewise.
480 * expmed.h (NUM_MODE_PARTIAL_INT): Likewise.
481 (NUM_MODE_VECTOR_INT): Likewise.
482 * genoutput.c (null_operand): Likewise.
483 (output_operand_data): Likewise.
484 * genrecog.c (print_parameter_value): Likewise.
485 * lra.c (debug_operand_data): Likewise.
486
487 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
488
489 * dwarf2out.c (scompare_loc_descriptor_wide)
490 (scompare_loc_descriptor_narrow): New functions, split out from...
491 (scompare_loc_descriptor): ...here.
492 * expmed.c (emit_store_flag_int): New function, split out from...
493 (emit_store_flag): ...here.
494
495 2017-08-30 Richard Biener <rguenther@suse.de>
496
497 * dwarf2out.c (dwarf2out_finish): Remove setting AT_pubnames.
498 (dwarf2out_early_finish): Move setting of AT_pubnames from
499 early debug output to early finish.
500
501 2017-08-30 Jozef Lawrynowicz <jozef.l@somniumtech.com>
502
503 * gcc/config/msp430/msp430.h: Pass -mcode/data-region to the linker
504 and -mdata-region to the assembler.
505
506 2017-08-30 Richard Biener <rguenther@suse.de>
507
508 * dwarf2out.c (add_dwarf_attr): Check we don't add duplicate
509 attributes.
510 (gen_subprogram_die): Add DW_AT_object_pointer only early.
511 (dwarf2out_early_global_decl): Only generate a DIE for the
512 abstract origin if it doesn't already exist or is a declaration DIE.
513 (resolve_addr): Do not add the linkage name twice when
514 generating a stub DIE for the DW_TAG_GNU_call_site target.
515
516 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
517
518 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
519 Use machine_mode rather than int for arg1_mode.
520
521 2017-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
522
523 PR target/82015
524 * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Insure
525 that the second argument of the built-in functions to unpack
526 128-bit scalar types to 64-bit values is 0 or 1. Change to use a
527 switch statement instead a lot of if statements.
528 * config/rs6000/rs6000.md (unpack<mode>, FMOVE128_VSX iterator):
529 Allow 64-bit values to be in Altivec registers as well as
530 traditional floating point registers.
531 (pack<mode>, FMOVE128_VSX iterator): Likewise.
532
533 2017-08-29 Alexander Monakov <amonakov@ispras.ru>
534
535 * ira-costs.c (record_address_regs): Handle both operands of PLUS for
536 MAX_REGS_PER_ADDRESS == 1.
537
538 2017-08-29 Uros Bizjak <ubizjak@gmail.com>
539
540 * config/i386/i386.opt (flag_fentry): Do not init to -1.
541 * config/i386/i386.c (ix86_option_override_internal): Simplify
542 setting of opts->x_flag_entry.
543
544 2017-08-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
545 Jakub Jelinek <jakub@redhat.com>
546 Richard Biener <rguenther@suse.de>
547
548 PR tree-optimization/81503
549 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Ensure
550 folded constant fits in the target type; reorder tests for clarity.
551
552 2017-08-29 Martin Liska <mliska@suse.cz>
553
554 * passes.def: Include pass_lower_switch.
555 * stmt.c (dump_case_nodes): Remove and move to
556 tree-switch-conversion.
557 (case_values_threshold): Likewise.
558 (expand_switch_as_decision_tree_p): Likewise.
559 (emit_case_decision_tree): Likewise.
560 (expand_case): Likewise.
561 (balance_case_nodes): Likewise.
562 (node_has_low_bound): Likewise.
563 (node_has_high_bound): Likewise.
564 (node_is_bounded): Likewise.
565 (emit_case_nodes): Likewise.
566 (struct simple_case_node): New struct.
567 (add_case_node): Remove.
568 (emit_case_dispatch_table): Use vector instead of case_list.
569 (reset_out_edges_aux): Remove.
570 (compute_cases_per_edge): Likewise.
571 (expand_case): Build list of simple_case_node.
572 (expand_sjlj_dispatch_table): Use it.
573 * tree-switch-conversion.c (struct case_node): Moved from
574 stmt.c and adjusted.
575 (emit_case_nodes): Likewise.
576 (node_has_low_bound): Likewise.
577 (node_has_high_bound): Likewise.
578 (node_is_bounded): Likewise.
579 (case_values_threshold): Likewise.
580 (reset_out_edges_aux): Likewise.
581 (compute_cases_per_edge): Likewise.
582 (add_case_node): Likewise.
583 (dump_case_nodes): Likewise.
584 (balance_case_nodes): Likewise.
585 (expand_switch_as_decision_tree_p): Likewise.
586 (emit_jump): Likewise.
587 (emit_case_decision_tree): Likewise.
588 (try_switch_expansion): Likewise.
589 (do_jump_if_equal): Likewise.
590 (emit_cmp_and_jump_insns): Likewise.
591 (fix_phi_operands_for_edge): New function.
592 (record_phi_operand_mapping): Likewise.
593 (class pass_lower_switch): New pass.
594 (pass_lower_switch::execute): New function.
595 (make_pass_lower_switch): Likewise.
596 (conditional_probability):
597 * timevar.def: Add TV_TREE_SWITCH_LOWERING.
598 * tree-pass.h: Add make_pass_lower_switch.
599
600 2017-08-29 Jozef Lawrynowicz <jozef.l@somniumtech.com>
601
602 PR target/80993
603 * gcc/config/msp430/msp430.c (msp430_attr): Mark interrupt
604 handlers as used.
605
606 2017-08-29 Richard Biener <rguenther@suse.de>
607
608 * dwarf2out.c (add_dwarf_attr): When checking is enabled verify
609 we do not add a DW_AT_inline attribute twice.
610 (gen_subprogram_die): Remove code setting DW_AT_inline on
611 DECL_ABSTRACT_P nodes.
612
613 2017-08-29 Richard Sandiford <richard.sandiford@linaro.org>
614
615 * gimplify.c (gimplify_call_expr): Copy the nothrow flag to
616 calls to internal functions.
617 (gimplify_modify_expr): Likewise.
618 * tree-call-cdce.c (use_internal_fn): Likewise.
619 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
620 (convert_to_divmod): Set the nothrow flag.
621 * tree-if-conv.c (predicate_mem_writes): Likewise.
622 * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
623 (vectorizable_call): Likewise.
624 (vectorizable_store): Likewise.
625 (vectorizable_load): Likewise.
626 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
627 (vect_recog_mask_conversion_pattern): Likewise.
628
629 2017-08-29 Martin Liska <mliska@suse.cz>
630
631 PR other/39851
632 * gcc.c (driver_handle_option): Add new argument.
633 * opts-common.c (handle_option): Pass
634 target_option_override_hook.
635 * opts-global.c (lang_handle_option): Add new option.
636 (set_default_handlers): Add new argument.
637 (decode_options): Likewise.
638 * opts.c (target_handle_option): Likewise.
639 (common_handle_option): Call target_option_override_hook.
640 * opts.h (struct cl_option_handler_func): Add hook for
641 target option override.
642 (struct cl_option_handlers): Likewise.
643 (set_default_handlers): Add new argument.
644 (decode_options): Likewise.
645 (common_handle_option): Likewise.
646 (target_handle_option): Likewise.
647 * toplev.c (toplev::main): Pass targetm.target_option.override
648 hook.
649
650 2017-08-29 Richard Biener <rguenther@suse.de>
651 Dominik Infuehr <dominik.infuehr@theobroma-systems.com>
652
653 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Properly confine
654 life to the active subtree.
655
656 2017-08-28 Jeff Law <law@redhat.com>
657
658 * tree-ssa-dom.c (edge_info::record_simple_equiv): Call
659 derive_equivalences.
660 (derive_equivalences_from_bit_ior, record_temporary_equivalences):
661 Code moved into....
662 (edge_info::derive_equivalences): New private member function
663
664 * tree-ssa-dom.c (class edge_info): Changed from a struct
665 to a class. Add ctor/dtor, methods and data members.
666 (edge_info::edge_info): Renamed from allocate_edge_info.
667 Initialize additional members.
668 (edge_info::~edge_info): New.
669 (free_dom_edge_info): Delete the edge info.
670 (record_edge_info): Use new class & associated member functions.
671 Tighten forms for testing for edge equivalences.
672 (record_temporary_equivalences): Iterate over the simple
673 equivalences rather than assuming there's only one per edge.
674 (cprop_into_successor_phis): Iterate over the simple
675 equivalences rather than assuming there's only one per edge.
676 (optimize_stmt): Use operand_equal_p rather than pointer
677 equality for mini-DSE code.
678
679 2017-08-28 Nathan Sidwell <nathan@acm.org>
680
681 * gcc.c (execute): Fold SIGPIPE handling into switch
682 statement. Adjust internal error message.
683
684 2017-08-28 Richard Biener <rguenther@suse.de>
685
686 PR debug/81993
687 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
688 Do nothing for removed DIEs.
689
690 2017-08-28 Richard Biener <rguenther@suse.de>
691
692 PR tree-optimization/81977
693 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix look through
694 memcpy.
695
696 2017-08-28 Alexander Monakov <amonakov@ispras.ru>
697
698 PR target/80640
699 * doc/md.texi (mem_thread_fence): Remove mention of mode. Rewrite.
700 * optabs.c (expand_mem_thread_fence): Emit a compiler barrier when
701 using targetm.gen_mem_thread_fence.
702
703 2017-08-27 Uros Bizjak <ubizjak@gmail.com>
704
705 PR target/81995
706 * config/i386/i386.md (*<btsc><mode>): Change operand 2
707 predicate to register_operand. Reorder operands.
708 (*btr<mode>): Ditto.
709 (*<btsc><mode>_mask): Change operand 3 predicate to register_operand.
710 (*btr<mode>_mask): Ditto.
711
712 2017-08-25 Steven Munroe <munroesj@gcc.gnu.org>
713
714 * config.gcc (powerpc*-*-*): Add xmmintrin.h and mm_malloc.h.
715 * config/rs6000/xmmintrin.h: New file.
716 * config/rs6000/x86intrin.h [__ALTIVEC__]: Include xmmintrin.h.
717
718 2017-08-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
719
720 PR target/81504
721 * config/rs6000/rs6000-p8swap.c (find_alignment_op): Add reference
722 parameter and_insn and return it.
723 (recombine_lvx_pattern): Insert a copy to ensure availability of
724 the base register of the copied masking operation at the point of
725 the instruction replacement.
726 (recombine_stvx_pattern): Likewise.
727
728 2017-08-25 Michael Meissner <meissner@linux.vnet.ibm.com>
729
730 * config/rs6000/rs6000.opt (-mpower9-dform-scalar): Delete
731 undocumented switches.
732 (-mpower9-dform-vector): Likewise.
733 (-mpower9-dform): Likewise.
734 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Update
735 comments to delete references to -mpower9-dform* switches.
736 * config/rs6000/predicates.md (vsx_quad_dform_memory_operand):
737 Delete reference to -mpower9-dform* switches, test for
738 -mpower9-vector instead.
739 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Likewise.
740 (OTHER_P9_VECTOR_MASKS): Likewise.
741 (POWERPC_MASKS): Likewise.
742 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Change
743 tests against -mpower9-dform* to -mpower9-vector. Delete code
744 that checked for -mpower9-dform* consistancy with other options.
745 Add test for -mpower9-misc to enable other power9 switches.
746 (rs6000_init_hard_regno_mode_ok): Likewise.
747 (rs6000_option_override_internal): Likewise.
748 (rs6000_emit_prologue): Likewise.
749 (rs6000_emit_epilogue): Likewise.
750 (rs6000_opt_masks): Delete -mpower9-dform-{scalar,vector}.
751 (rs6000_disable_incompatiable_switches): Delete -mpower9-dform.
752 (emit_fusion_p9_load): Change tests for -mpower9-dform-scalar
753 -mpower9-vector.
754 (emit_fusion_p9_store): Likewise.
755 * config/rs6000/rs6000.h (TARGET_P9_DFORM_SCALAR): Delete
756 resetting these macros if the assembler does not support ISA 3.0
757 instructions.
758 (TARGET_P9_DFORM_VECTOR): Likewise.
759 * config/rs6000/rs6000.md (peepholes to optimize altivec memory):
760 Change to use -mpower9-vector instead of -mpower9-dform-scalar.
761
762 2017-08-25 Alan Modra <amodra@gmail.com>
763
764 PR rtl-optimization/81747
765 * cse.c (cse_extended_basic_block): Don't attempt to record
766 equivalences for degenerate conditional branches that branch
767 to their fall-through.
768
769 2017-08-24 Martin Sebor <msebor@redhat.com>
770
771 PR middle-end/81908
772 * gimple-fold.c (size_must_be_zero_p): New function.
773 (gimple_fold_builtin_memory_op): Call it.
774
775 2017-08-24 Steven Munroe <munroesj@gcc.gnu.org>
776
777 * config/rs6000/mm_malloc.h: New file.
778
779 2017-08-24 Bin Cheng <bin.cheng@arm.com>
780
781 PR tree-optimization/81913
782 * tree-ssa-loop-niter.c (number_of_iterations_cond): Skip niter
783 analysis when either IVs in condition can wrap.
784
785 2017-08-24 Uros Bizjak <ubizjak@gmail.com>
786
787 * dwarf2out.c (MAX_ARTIFICIAL_LABEL_BYTES): Increase to 40.
788 * dwarf2cfi.c (MAX_ARTIFICIAL_LABEL_BYTES): Remove.
789
790 2017-08-24 Richard Biener <rguenther@suse.de>
791
792 PR target/81921
793 * targhooks.c (default_target_can_inline_p): Properly
794 use target_option_default_node when no DECL_FUNCTION_SPECIFIC_TARGET
795 is present and always compare.
796 * config/i386/i386.c (ix86_valid_target_attribute_tree): Do not
797 infer -mfpmath=sse from TARGET_SSE_P.
798 (ix86_can_inline_p): Properly use target_option_default_node when
799 no DECL_FUNCTION_SPECIFIC_TARGET is present and always compare.
800
801 2017-08-24 Richard Biener <rguenther@suse.de>
802
803 PR debug/81936
804 * dwarf2out.c (output_die): Handle flag_generate_offload like
805 flag_generate_lto.
806 (output_comp_unit): Likewise.
807 (gen_array_type_die): Likewise.
808 (dwarf2out_early_finish): Likewise.
809 (note_variable_value_in_expr): Likewise.
810 (dwarf2out_finish): Likewise. Adjust assert.
811 * cgraphunit.c (symbol_table::compile): Move setting of
812 flag_generate_offload earlier ...
813 (symbol_table::finalize_compilation_unit): ... here, before
814 early debug finalization.
815
816 2017-08-24 Richard Biener <rguenther@suse.de>
817
818 * config/i386/i386.c: Include symbol-summary.h, ipa-prop.h
819 and ipa-fnsummary.h.
820 (ix86_can_inline_p): When ix86_fpmath flags do not match
821 check whether the callee uses FP math at all.
822
823 2017-08-24 Aldy Hernandez <aldyh@redhat.com>
824
825 PR middle-end/81931
826 * tree-ssanames.c (get_nonzero_bits): Use element_precision
827 instead of TYPE_PRECISION.
828
829 2017-08-24 Richard Sandiford <richard.sandiford@linaro.org>
830 Alan Hayward <alan.hayward@arm.com>
831 David Sherwood <david.sherwood@arm.com>
832
833 * combine.c (make_extraction): Use subreg_offset_from_lsb.
834
835 2017-08-23 Daniel Santos <daniel.santos@pobox.com>
836
837 * config/i386/i386.h (ix86_frame::stack_realign_allocate_offset):
838 Remove field.
839 (ix86_frame::stack_realign_allocate): New field.
840 (struct machine_frame_state): Modify comments.
841 (machine_frame_state::sp_realigned_fp_end): New field.
842 * config/i386/i386.c (ix86_compute_frame_layout): Rework stack frame
843 layout calculation.
844 (sp_valid_at): Add assertion to assure no attempt to access invalid
845 offset of a realigned stack.
846 (fp_valid_at): Likewise.
847 (choose_baseaddr): Modify comments.
848 (ix86_emit_outlined_ms2sysv_save): Adjust to changes in
849 ix86_expand_prologue.
850 (ix86_expand_prologue): Modify stack realignment and allocation.
851 (ix86_expand_epilogue): Modify comments.
852 * doc/sourcebuild.texi: Add documentation for target selectors avx2,
853 avx2_runtime, avx512f, and avx512f_runtime.
854
855 2017-08-23 Uros Bizjak <ubizjak@gmail.com>
856
857 * config/i386/i386.opt: Remove unneeded Init(0) initializations.
858 (mstackrealign): Do not init to -1.
859 * config/i386/i386.c (ix86_option_override_internal):
860 Check opts_set, not opts when setting default value of
861 opts->x_ix86_force_align_arg_pointer.
862
863 2017-08-23 Richard Biener <rguenther@suse.de>
864
865 * function.c (fndecl_name): Use verbosity 1 (no arguments) for
866 lang_hooks.decl_printable_name.
867 * print-rtl-function.c (print_rtx_function): Likewise.
868 * tree-pretty-print.c (dump_function_header): Likewise.
869
870 2017-08-23 Richard Biener <rguenther@suse.de>
871
872 PR lto/81940
873 * dwarf2out.c (dwarf2out_abstract_function): Handle LTO with
874 -g0 at compile-time.
875
876 2017-08-23 Tamar Christina <tamar.christina@arm.com>
877
878 PR middle-end/19706
879 * doc/sourcebuild.texi (Other hardware attributes):
880 Document xorsign.
881
882 2017-08-23 Tamar Christina <tamar.christina@arm.com>
883
884 PR middle-end/19706
885 * tree-ssa-math-opts.c (convert_expand_mult_copysign):
886 Fix single-use check.
887
888 2017-08-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
889
890 * gcc.c (execute): Only test for SIGKILL and SIGQUIT if available.
891
892 2017-08-22 Daniel Santos <daniel.santos@pobox.com>
893
894 * doc/install.texi: Modify to add more details on running selected
895 tests.
896
897 2017-08-22 Daniel Santos <daniel.santos@pobox.com>
898
899 * config/i386/i386.c (ix86_option_override_internal): Error when -mx32
900 is combined with -mabi=ms.
901 (ix86_function_type_abi): Limit errors for mixing -mx32 with attribute
902 ms_abi.
903
904 2017-08-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
905
906 PR tree-optimization/81488
907 * gimple-ssa-strength-reduction (struct slsr_cand_d): Add visited
908 and cached_basis fields.
909 (MAX_SPREAD): New constant.
910 (alloc_cand_and_find_basis): Initialize new fields.
911 (clear_visited): New function.
912 (create_phi_basis_1): Rename from create_phi_basis, set visited
913 and cached_basis fields.
914 (create_phi_basis): New wrapper function.
915 (phi_add_costs_1): Rename from phi_add_costs, add spread
916 parameter, set visited field, short-circuit when limits reached.
917 (phi_add_costs): New wrapper function.
918 (record_phi_increments_1): Rename from record_phi_increments, set
919 visited field.
920 (record_phi_increments): New wrapper function.
921 (phi_incr_cost_1): Rename from phi_incr_cost, set visited field.
922 (phi_incr_cost): New wrapper function.
923 (all_phi_incrs_profitable_1): Rename from
924 all_phi_incrs_profitable, set visited field.
925 (all_phi_incrs_profitable): New wrapper function.
926
927 2017-08-22 Richard Sandiford <richard.sandiford@linaro.org>
928 Alan Hayward <alan.hayward@arm.com>
929 David Sherwood <david.sherwood@arm.com>
930
931 * rtl.h (paradoxical_subreg_p): Define inline, and add a version
932 that takes the outer and inner modes.
933 * doc/rtl.texi: Use paradoxical_subreg_p instead of a GET_MODE_SIZE
934 comparison as the canonical test for a paradoxical subreg.
935 * combine.c (simplify_set): Use paradoxical_subreg_p.
936 (make_extraction): Likewise.
937 (force_to_mode): Likewise.
938 (rtx_equal_for_field_assignment_p): Likewise.
939 (gen_lowpart_for_combine): Likewise.
940 (simplify_comparison): Likewise.
941 * cse.c (equiv_constant): Likewise.
942 * expmed.c (store_bit_field_1): Likewise.
943 * final.c (alter_subreg): Likewise.
944 * fwprop.c (propagate_rtx): Likewise.
945 (forward_propagate_subreg): Likewise.
946 * ira-conflicts.c (ira_build_conflicts): Likewise.
947 * lower-subreg.c (simplify_gen_subreg_concatn): Likewise.
948 * lra-constraints.c (curr_insn_transform): Likewise.
949 (split_reg): Likewise.
950 * lra-eliminations.c (move_plus_up): Likewise.
951 (lra_eliminate_regs_1): Likewise.
952 * recog.c (general_operand): Likewise.
953 * ree.c (combine_reaching_defs): Likewise.
954 * reload.c (push_reload): Likewise.
955 (find_reloads): Likewise.
956 * reload1.c (elimination_effects): Likewise.
957 (compute_reload_subreg_offset): Likewise.
958 (choose_reload_regs): Likewise.
959 * rtlanal.c (subreg_lsb_1): Likewise.
960 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
961 (simplify_subreg): Likewise.
962 * var-tracking.c (track_loc_p): Likewise.
963 * emit-rtl.c (byte_lowpart_offset): Likewise.
964 (paradoxical_subreg_p): Delete out-of-line definition.
965
966 2017-08-22 Jeff Law <law@redhat.com>
967
968 PR tree-optimization/81741
969 PR tree-optimization/71947
970 * tree-ssa-dom.c: Include tree-inline.h.
971 (record_temporary_equivalences): Only record SSA_NAME = SSA_NAME
972 equivalences if one is more expensive to compute than the other.
973 * tree-ssa-scopedtables.h (class const_or_copies): Make
974 record_const_or_copy_raw method private.
975 (class avail_exprs_stack): New method simplify_binary_operation.
976 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Call
977 avail_exprs_stack::simplify_binary_operation as needed.
978 (avail_exprs_stack::simplify_binary_operation): New function.
979
980 2017-08-22 Sebastian Huber <sebastian.huber@embedded-brains.de>
981
982 * config.gcc (powerpc-*-rtems*): Add rs6000/linux64.opt.
983 * config/rs6000/rtems.h (ASM_PREFERRED_EH_DATA_FORMAT): New define.
984 (DOT_SYMBOLS): Likewise.
985 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
986 (RELOCATABLE_NEEDS_FIXUP): Likewise.
987 (RS6000_ABI_NAME): Likewise.
988 (TARGET_CMODEL): Likewise.
989 (TOC_SECTION_ASM_OP): Likewise.
990 (SET_CMODEL): New macro.
991 (SUBSUBTARGET_OVERRIDE_OPTIONS): Evaluate cmodel options.
992
993 2017-08-22 Richard Biener <rguenther@suse.de>
994
995 * tree-inline.c (remap_type_1): Change asserts on TYPE_SIZE[_UNIT]
996 to allow for free-lang-data replacements similar to verify_type_variant.
997
998 2017-08-22 Richard Sandiford <richard.sandiford@linaro.org>
999 Alan Hayward <alan.hayward@arm.com>
1000 David Sherwood <david.sherwood@arm.com>
1001
1002 * config/aarch64/aarch64.md (casesi): Use DImode rather than
1003 VOIDmode for the LABEL_REF.
1004
1005 2017-08-22 Richard Biener <rguenther@suse.de>
1006
1007 * tree-cfg.c (gimple_split_edge): Avoid reallocating target PHI nodes.
1008
1009 2017-08-22 Richard Biener <rguenther@suse.de>
1010
1011 * common.opt (feliminate-dwarf2-dups): Ignore.
1012 * doc/invoke.texi (feliminate-dwarf2-dups): Remove documentation.
1013 * dwarf2out.c (push_new_compile_unit, pop_compile_unit,
1014 same_die_p_wrap, compute_section_prefix,
1015 is_symbol_die, assign_symbol_names, break_out_includes): Remove.
1016 (comdat_symbol_id, comdat_symbol_number): Likewise.
1017 (cu_hash_table_entry, cu_hash_table_entry_hasher, cu_hash_type):
1018 Likewise.
1019 (check_duplicate_cu, record_comdat_symbol_number): Likewise.
1020 (output_die): Mark unreachable path unreachable.
1021 (dwarf2out_start_source_file): Do not create DW_TAG_GNU_BINCL.
1022 (dwarf2out_end_source_file): Do not create DW_TAG_GNU_EINCL.
1023 (dwarf2out_init): Remove code handling flag_eliminate_dwarf2_dups.
1024 (dwarf2out_early_finish): Likewise.
1025
1026 2017-08-22 Aldy Hernandez <aldyh@redhat.com>
1027
1028 * wide-int.h (hwi_with_prec::hwi_with_prec): Sign extend.
1029
1030 2017-08-22 Georg-Johann Lay <avr@gjlay.de>
1031
1032 PR target/81910
1033 * config/avr/avr.c (avr_handle_addr_attribute): Early return if
1034 not VAR_P. Filter attribute warnings with OPT_Wattributes.
1035 (avr_attribute_table) <io, io_low, address>: Initialize
1036 .decl_required with true.
1037
1038 2017-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
1039
1040 * config/rs6000/rs6000-cpus.def (-mvsx-scalar-float): Delete
1041 undocumented debugging options.
1042 (-mvsx-scalar-double): Likewise.
1043 (-mallow-df-permute): Likewise.
1044 (-mvectorize-builtins): Likewise.
1045 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
1046 (rs6000_builtin_vectorized_function): Likewise.
1047 (rs6000_builtin_md_vectorized_function): Likewise.
1048 (rs6000_opt_vars): Likewise.
1049
1050 2017-08-21 Uros Bizjak <ubizjak@gmail.com>
1051
1052 PR target/46091
1053 * config/i386/i386.md (*btsq_imm): Rename from *btsq.
1054 (*btrq_imm): Rename from *btrq.
1055 (*btcq_imm): Rename from *btcq.
1056 (btsc): New code attribute.
1057 (*<btsc><mode>): New insn pattern.
1058 (*btr<mode>): Ditto.
1059 (*<btsc><mode>_mask): New insn_and_split pattern.
1060 (*btr<mode>_mask): Ditto.
1061
1062 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
1063 Alan Hayward <alan.hayward@arm.com>
1064 David Sherwood <david.sherwood@arm.com>
1065
1066 * function.c (pad_below): Simplify padding calculation.
1067
1068 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
1069 Alan Hayward <alan.hayward@arm.com>
1070 David Sherwood <david.sherwood@arm.com>
1071
1072 * target.def (function_prologue): Remove frame size argument.
1073 (function_epilogue): Likewise.
1074 * doc/tm.texi: Regenerate.
1075 * final.c (final_start_function): Update call to function_prologue.
1076 (final_end_function): Update call to function_epilogue.
1077 (default_function_pro_epilogue): Remove frame size argument.
1078 * output.h (default_function_pro_epilogue): Likewise.
1079 * config/arm/arm.c (arm_output_function_epilogue): Likewise.
1080 (arm_output_function_prologue): Likewise.
1081 * config/frv/frv.c (frv_function_prologue): Likewise.
1082 (frv_function_epilogue): Likewise.
1083 * config/i386/i386.c (ix86_output_function_epilogue): Likewise.
1084 * config/ia64/ia64.c (ia64_output_function_prologue): Likewise.
1085 (ia64_output_function_epilogue): Likewise.
1086 * config/m32r/m32r.c (m32r_output_function_prologue): Likewise.
1087 (m32r_output_function_epilogue): Likewise.
1088 * config/microblaze/microblaze.c (microblaze_function_prologue)
1089 (microblaze_function_epilogue): Likewise.
1090 * config/mips/mips.c (mips_output_function_prologue): Likewise.
1091 (mips_output_function_epilogue): Likewise.
1092 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Likewise.
1093 (mmix_target_asm_function_epilogue): Likewise.
1094 * config/msp430/msp430.c (msp430_start_function): Likewise.
1095 * config/nds32/nds32.c (nds32_asm_function_prologue): Likewise.
1096 (nds32_asm_function_epilogue): Likewise.
1097 * config/nios2/nios2.c (nios2_asm_function_prologue): Likewise.
1098 * config/pa/pa.c (pa_output_function_prologue): Likewise.
1099 (pa_output_function_epilogue): Likewise.
1100 * config/powerpcspe/powerpcspe.c (rs6000_output_function_prologue)
1101 (rs6000_output_function_epilogue): Likewise.
1102 * config/rl78/rl78.c (rl78_start_function): Likewise.
1103 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Likewise.
1104 (rs6000_output_function_epilogue): Likewise.
1105 * config/rx/rx.c (rx_output_function_prologue): Likewise.
1106 * config/sh/sh.c (sh_output_function_epilogue): Likewise.
1107 * config/sparc/sparc.c (sparc_asm_function_prologue): Likewise.
1108 (sparc_asm_function_epilogue): Likewise.
1109
1110 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
1111
1112 * tree.h (type_has_mode_precision_p): New function.
1113 * convert.c (convert_to_integer_1): Use it.
1114 * expr.c (expand_expr_real_2): Likewise.
1115 (expand_expr_real_1): Likewise.
1116 * fold-const.c (fold_single_bit_test_into_sign_test): Likewise.
1117 * match.pd: Likewise.
1118 * tree-ssa-forwprop.c (simplify_rotate): Likewise.
1119 * tree-ssa-math-opts.c (convert_mult_to_fma): Likewise.
1120 * tree-tailcall.c (process_assignment): Likewise.
1121 * tree-vect-loop.c (vectorizable_reduction): Likewise.
1122 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern)
1123 (vect_recog_mult_pattern, vect_recog_divmod_pattern): Likewise.
1124 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
1125 (vectorizable_assignment): Likewise.
1126 (vectorizable_shift): Likewise.
1127 (vectorizable_operation): Likewise.
1128 * tree-vrp.c (register_edge_assert_for_2): Likewise.
1129
1130 2017-08-21 Wilco Dijkstra <wdijkstr@arm.com>
1131
1132 * match.pd: Add pow (C, x) simplification.
1133
1134 2017-08-21 Richard Biener <rguenther@suse.de>
1135
1136 PR tree-optimization/81900
1137 * tree-ssa-pre.c (compute_antic_aux): Properly compute changed
1138 for blocks with abnormal predecessors.
1139 (compute_antic): Do not set visited flag prematurely.
1140
1141 2017-08-21 Georg-Johann Lay <avr@gjlay.de>
1142
1143 PR target/79883
1144 * config/avr/avr.c (avr_set_current_function): Typo in diagnostic.
1145
1146 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
1147
1148 * stor-layout.h (vector_type_mode): Move to...
1149 * tree.h (vector_type_mode): ...here.
1150 * stor-layout.c (vector_type_mode): Move to...
1151 * tree.c (vector_type_mode): ...here. Include rtl.h and regs.h.
1152
1153 2017-08-21 Richard Biener <rguenther@suse.de>
1154
1155 * debug.h (struct gcc_debug_hooks): Add die_ref_for_decl and
1156 register_external_die hooks.
1157 (debug_false_tree_charstarstar_uhwistar): Declare.
1158 (debug_nothing_tree_charstar_uhwi): Likewise.
1159 * debug.c (do_nothing_debug_hooks): Adjust.
1160 (debug_false_tree_charstarstar_uhwistar): New do nothing.
1161 (debug_nothing_tree_charstar_uhwi): Likewise.
1162 * dbxout.c (dbx_debug_hooks): Adjust.
1163 (xcoff_debug_hooks): Likewise.
1164 * sdbout.c (sdb_debug_hooks): Likewise.
1165 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1166 * dwarf2out.c (macinfo_label_base): New global.
1167 (dwarf2out_register_external_die): New function for the
1168 register_external_die hook.
1169 (dwarf2out_die_ref_for_decl): Likewise for die_ref_for_decl.
1170 (dwarf2_debug_hooks): Use them.
1171 (dwarf2_lineno_debug_hooks): Adjust.
1172 (struct die_struct): Add with_offset flag.
1173 (DEBUG_LTO_DWO_INFO_SECTION, DEBUG_LTO_INFO_SECTION,
1174 DEBUG_LTO_DWO_ABBREV_SECTION, DEBUG_LTO_ABBREV_SECTION,
1175 DEBUG_LTO_DWO_MACINFO_SECTION, DEBUG_LTO_MACINFO_SECTION,
1176 DEBUG_LTO_DWO_MACRO_SECTION, DEBUG_LTO_MACRO_SECTION,
1177 DEBUG_LTO_LINE_SECTION, DEBUG_LTO_DWO_STR_OFFSETS_SECTION,
1178 DEBUG_LTO_STR_DWO_SECTION, DEBUG_STR_LTO_SECTION): New macros
1179 defining section names for the early LTO debug variants.
1180 (reset_indirect_string): New helper.
1181 (add_AT_external_die_ref): Helper for dwarf2out_register_external_die.
1182 (print_dw_val): Add support for offsetted symbol references.
1183 (get_ultimate_context): Split out from is_cxx.
1184 (is_cxx): Use get_ultimate_context.
1185 (is_fortran): Add decl overload.
1186 (compute_comp_unit_symbol): Split out worker from
1187 compute_section_prefix.
1188 (compute_section_prefix): Call compute_comp_unit_symbol and
1189 set comdat_type_p here.
1190 (output_die): Skip DIE symbol output for the LTO added one.
1191 Handle DIE symbol references with offset.
1192 (output_comp_unit): Guard section name mangling properly.
1193 For LTO debug sections emit a symbol at the section beginning
1194 which we use to refer to its DIEs.
1195 (add_abstract_origin_attribute): For DIEs registered via
1196 dwarf2out_register_external_die directly refer to the early
1197 DIE rather than indirectly through the shadow one we created.
1198 Remove obsolete call to dwarf2out_abstract_function for
1199 non-function/block origins.
1200 (gen_array_type_die): When generating early LTO debug do
1201 not emit DW_AT_string_length.
1202 (gen_formal_parameter_die): Do not re-create DIEs for PARM_DECLs
1203 late when in LTO. As suggested place a gcc_unreachable for
1204 the DECL_ABSTRACT_P case.
1205 (gen_subprogram_die): Avoid another specification DIE
1206 for early built declarations/definitions for the late LTO case.
1207 (gen_variable_die): Add type references for late duplicated VLA dies
1208 when in late LTO.
1209 (gen_inlined_subroutine_die): Do not call dwarf2out_abstract_function,
1210 we have the abstract instance already.
1211 (process_scope_var): Adjust decl DIE contexts in LTO which
1212 first puts them in limbo.
1213 (gen_decl_die): Do not generate type DIEs late apart from
1214 types for VLAs or for decls we do not yet have a DIE. Do not
1215 call dwarf2out_abstract_function late.
1216 (dwarf2out_early_global_decl): Make sure to create DIEs
1217 for abstract instances of a decl first.
1218 (dwarf2out_late_global_decl): Adjust comment.
1219 (output_macinfo_op): With multiple macro sections use
1220 macinfo_label_base to distinguish labels.
1221 (output_macinfo): Likewise. Update macinfo_label_base.
1222 Pass in the line info label.
1223 (note_variable_value_in_expr): When generating LTO resolve
1224 all variable values here by generating DIEs as needed.
1225 (init_sections_and_labels): Add early LTO debug flag parameter
1226 and generate different sections and names if set. Add generation
1227 counter for the labels so we can have multiple of them.
1228 (reset_dies): Helper to allow DIEs to be output multiple times.
1229 (dwarf2out_finish): When outputting DIEs to the fat part of an
1230 LTO object first reset DIEs.
1231 (dwarf2out_early_finish): Output early DIEs when generating LTO.
1232 (modified_type_die): Check for decl_ultimate_origin being self
1233 before recursing.
1234 (gen_type_die_with_usage): Likewise.
1235 (gen_typedef_die): Allow decl_ultimate_origin being self.
1236 (set_decl_abstract_flags): Remove.
1237 (set_block_abstract_flags): Likewise.
1238 (dwarf2out_abstract_function): Treat the early generated DIEs
1239 as the abstract copy and only add DW_AT_inline and
1240 DW_AT_artificial here and call set_decl_origin_self.
1241 If the DIE has an abstract origin don't do anything.
1242 * tree.c (free_lang_data): Build a dummy TRANSLATION_UNIT_DECL
1243 if we have none yet (Go fails to build one, PR78628).
1244 (variably_modified_type_p): Prevent endless recursion for Ada
1245 cyclic pointer types.
1246 * lto-streamer-in.c: Include debug.h.
1247 (dref_queue): New global.
1248 (lto_read_tree_1): Stream in DIE references.
1249 (lto_input_tree): Register DIE references.
1250 (input_function): Stream DECL_DEBUG_ARGS.
1251 * lto-streamer-out.c: Include debug.h.
1252 (lto_write_tree_1): Output DIE references.
1253 (DFS::DFS_write_tree_body): Follow DECL_ABSTRACT_ORIGIN.
1254 Force a TRANSLATION_UNIT_DECL DECL_CONTEXT for file-scope decls.
1255 (output_function): Stream DECL_DEBUG_ARGS.
1256 * tree-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
1257 Stream DECL_ABSTRACT_ORIGIN.
1258 * tree-streamer-out.c (write_ts_decl_common_tree_pointers): Likewise.
1259 (write_ts_decl_minimal_tree_pointers): Force a TRANSLATION_UNIT_DECL
1260 DECL_CONTEXT for file-scope decls.
1261 * lto-streamer.h (struct dref_entry): Declare.
1262 (dref_queue): Likewise.
1263 * cfgexpand.c (pass_expand::execute): Do not call the
1264 outlining_inline_function hook here.
1265 * lto-wrapper.c (debug_obj): New global.
1266 (tool_cleanup): Unlink it if required.
1267 (debug_objcopy): New function.
1268 (run_gcc): Handle early debug sections in the IL files by
1269 extracting them to separate files, partially linkin them and
1270 feeding the result back as result to the linker.
1271 * config/darwin.h (DEBUG_LTO_INFO_SECTION, DEBUG_LTO_ABBREV_SECTION,
1272 DEBUG_LTO_MACINFO_SECTION, DEBUG_LTO_LINE_SECTION,
1273 DEBUG_STR_LTO_SECTION, DEBUG_LTO_MACRO_SECTION): Put early debug
1274 sections into a separate segment.
1275 * config/darwin.c (darwin_asm_named_section): Handle __GNU_DWARF_LTO
1276 segments.
1277 (darwin_asm_dwarf_section): Likewise.
1278 (darwin_asm_output_dwarf_offset): Likewise.
1279 * config/i386/i386.c (make_resolver_func): Set DECL_IGNORED_P.
1280
1281 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
1282 Alan Hayward <alan.hayward@arm.com>
1283 David Sherwood <david.sherwood@arm.com>
1284
1285 * read-md.h (md_reader::record_potential_iterator_use): Replace
1286 pointer argument with an rtx and an index.
1287 * read-rtl.c (iterator_group::apply_iterator): Likewise.
1288 (apply_mode_iterator): Likewise.
1289 (apply_code_iterator): Likewise.
1290 (apply_int_iterator): Likewise.
1291 (apply_subst_iterator): Likewise.
1292 (record_iterator_use): Likewise.
1293 (record_attribute_use): Likewise.
1294 (md_reader::record_potential_iterator_use): Likewise. Update calls
1295 to record_iterator_use and apply_iterator.
1296 (iterator_use): Replace ptr with x and index.
1297 (attribute_use): Likewise.
1298 (apply_attribute_uses): Update calls to apply_iterator.
1299 (apply_iterators): Likewise. Update initialization of iterator_use.
1300 (rtx_reader::read_rtx_code): Update calls to record_iterator_use
1301 and record_potential_iterator_use.
1302 (rtx_reader::read_rtx_operand): Likewise.
1303
1304 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
1305 Alan Hayward <alan.hayward@arm.com>
1306 David Sherwood <david.sherwood@arm.com>
1307
1308 * varasm.c (const_rtx_hash_1): Don't hash in the mode of a
1309 CONST_WIDE_INT.
1310
1311 2017-08-21 Richard Biener <rguenther@suse.de>
1312
1313 PR middle-end/81884
1314 * tree-ssa-alias.c (stmt_kills_ref_p): Handle array accesses
1315 at struct end conservatively when comparing common bases.
1316
1317 2017-08-21 Richard Biener <rguenther@suse.de>
1318
1319 * tree-ssa-loop-im.c (struct lim_aux_data): Add ref index member.
1320 (mem_ref_in_stmt): Remove.
1321 (determine_max_movement): Use ref index to get at the reference.
1322 (invariantness_dom_walker::before_dom_children): Deal with
1323 lim data already initialized.
1324 (gather_mem_refs_stmt): Initialize lim data and record ref index.
1325
1326 2017-08-19 Uros Bizjak <ubizjak@gmail.com>
1327
1328 * config/i386/i386.h (OPTION_MASK_ISA_ROUND): Remove.
1329 (TARGET_ISA_ROUND): Ditto.
1330 (TARGET_ROUND): Ditto.
1331 * config/i386/i386.c: Substitute TARGET_ROUND with TARGET_SSE4_1.
1332 * config/i386/i386.md: Ditto.
1333 * config/i386/sse.md: Ditto.
1334 * config/i386/i386-builtin.def: Substitute OPTION_MASK_ISA_ROUND
1335 with OPTION_MASK_ISA_SSE4_1.
1336
1337 2017-08-19 Uros Bizjak <ubizjak@gmail.com>
1338
1339 PR target/81894
1340 * doc/extend.texi (x86 Built-in Functions): Correct the name of
1341 __builtin_ia32_lzcnt_u16.
1342
1343 2017-08-18 Peter Bergner <bergner@vnet.ibm.com>
1344
1345 PR target/80210
1346 * config/rs6000/rs6000.c (rs6000_activate_target_options): New function.
1347 (rs6000_set_current_function): Rewrite function to use it.
1348
1349 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
1350
1351 PR c/53037
1352 * print-tree.c (print_node): Support DECL_WARN_IF_NOT_ALIGN
1353 and TYPE_WARN_IF_NOT_ALIGN.
1354 * stor-layout.c (do_type_align): Merge DECL_WARN_IF_NOT_ALIGN.
1355 (handle_warn_if_not_align): New.
1356 (place_union_field): Call handle_warn_if_not_align.
1357 (place_field): Call handle_warn_if_not_align.
1358 Copy TYPE_WARN_IF_NOT_ALIGN.
1359 (finish_builtin_struct): Copy TYPE_WARN_IF_NOT_ALIGN.
1360 (layout_type): Likewise.
1361 * tree-core.h (tree_type_common): Add warn_if_not_align. Set
1362 spare to 18.
1363 (tree_decl_common): Add warn_if_not_align.
1364 * tree.c (build_range_type_1): Copy TYPE_WARN_IF_NOT_ALIGN.
1365 * tree.h (TYPE_WARN_IF_NOT_ALIGN): New.
1366 (SET_TYPE_WARN_IF_NOT_ALIGN): Likewise.
1367 (DECL_WARN_IF_NOT_ALIGN): Likewise.
1368 (SET_DECL_WARN_IF_NOT_ALIGN): Likewise.
1369 * doc/extend.texi: Document warn_if_not_aligned attribute.
1370 * doc/invoke.texi: Document -Wif-not-aligned and -Wpacked-not-aligned.
1371
1372 2017-08-17 Martin Liska <mliska@suse.cz>
1373
1374 PR bootstrap/81864
1375 * tree-loop-distribution.c (ddrs_table): Change type to pointer type.
1376 (get_data_dependence): Use it as pointer type.
1377 (distribute_loop): Likewise.
1378
1379 2017-08-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1380
1381 * config/rs6000/altivec.md (UNSPEC_VMRGOW_DIRECT): New constant.
1382 (p8_vmrgew_v4sf_direct): Generalize to p8_vmrgew_<mode>_direct.
1383 (p8_vmrgow_<mode>_direct): New define_insn.
1384 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Properly
1385 handle endianness for vmrgew and vmrgow permute patterns.
1386
1387 2017-08-17 Peter Bergner <bergner@vnet.ibm.com>
1388
1389 * config/rs6000/altivec.md (VParity): Remove TARGET_VSX_TIMODE.
1390 * config/rs6000/rs6000-cpus.def: Remove comment.
1391 (ISA_2_7_MASKS_SERVER): Delete OPTION_MASK_VSX_TIMODE;
1392 (POWERPC_MASKS): Likewise.
1393 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Remove unneeded
1394 use of TARGET_VSX_TIMODE.
1395 (rs6000_setup_reg_addr_masks): Change TARGET_VSX_TIMODE to TARGET_VSX.
1396 (rs6000_init_hard_regno_mode_ok): Remove unneeded uses of
1397 TARGET_VSX_TIMODE. Change use of TARGET_VSX_TIMODE to TARGET_VSX.
1398 (rs6000_option_override_internal): Remove dead code.
1399 (rs6000_legitimize_address): Change TARGET_VSX_TIMODE to TARGET_VSX.
1400 (rs6000_legitimize_reload_address): Likewise.
1401 (rs6000_legitimate_address_p): Likewise.
1402 (rs6000_opt_masks): Delete "vsx-timode".
1403 (rs6000_disable_incompatible_switches): Remove mention of -mvsx-timode
1404 from function comment.
1405 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Delete.
1406 * config/rs6000/rs6000.md (FMOVE128_GPR): Remove TARGET_VSX_TIMODE.
1407 (V16QI, V8HI, V4SI, V4SF, V2DI, V2DF, V1TI): Remove useless empty
1408 condition.
1409 * config/rs6000/rs6000.opt (mvsx-timode): Replace with stub.
1410 * config/rs6000/vector.md (VEC_IP): Remove TARGET_VSX_TIMODE.
1411 * config/rs6000/vsx.md (VSX_LE_128): Likewise.
1412 (VSX_TI): Likewise.
1413 (VSX_M): Likewise.
1414 (define_peephole2): Likewise.
1415
1416 2017-08-17 Martin Sebor <msebor@redhat.com>
1417
1418 PR c/81859
1419 * pretty-print.c (pp_format): Use strnlen in %.*s to avoid reading
1420 past the end of an array.
1421 (test_pp_format): Add test cases.
1422
1423 2017-08-17 Richard Sandiford <richard.sandiford@linaro.org>
1424
1425 * internal-fn.def (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): Add
1426 missing ECF_NOTHROW flags.
1427
1428 2017-08-17 Peter Bergner <bergner@vnet.ibm.com>
1429
1430 PR target/72804
1431 * config/rs6000/vsx.md (*vsx_le_permute_<mode>): Add support for
1432 operands residing in integer registers.
1433 (*vsx_le_perm_load_<mode>): Likewise.
1434 (*vsx_le_perm_store_<mode>): Likewise.
1435 (define_peephole2): Add peepholes to optimize the above.
1436
1437 2017-08-17 Marek Polacek <polacek@redhat.com>
1438
1439 PR middle-end/81814
1440 * fold-const.c (operand_equal_for_comparison_p): Remove code that used
1441 to mimic what shorten_compare did. Change the return type to bool.
1442 (fold_cond_expr_with_comparison): Update call to
1443 operand_equal_for_comparison_p.
1444 (fold_ternary_loc): Likewise.
1445
1446 2017-08-17 Jackson Woodruff <jackson.woodruff@arm.com>
1447
1448 * aarch64-simd.md (mov<mode>): No longer force zero immediate into
1449 register.
1450 (*aarch64_simd_mov<mode>): Add new case for stp using zero immediate.
1451
1452 2017-08-17 Richard Biener <rguenther@suse.de>
1453
1454 * tree-ssa-structalias.c (solve_graph): When propagating
1455 to successors update the graphs succ edges and avoid duplicate work.
1456
1457 2017-08-17 Maxim Ostapenko <m.ostapenko@samsung.com>
1458
1459 PR target/81861
1460 * config/i386/i386.c (ix86_option_override_internal): Save target
1461 specific options after ix86_stack_protector_guard_reg was changed.
1462
1463 2017-08-17 Richard Biener <rguenther@suse.de>
1464
1465 PR tree-optimization/81827
1466 * tree-ssa-structalias.c (struct variable_info): Add is_reg_var flag.
1467 (new_var_info): Initialize it conservatively.
1468 (get_call_vi): Mark register vars.
1469 (new_scalar_tmp_constraint_exp): Likewise.
1470 (handle_rhs_call): Likewise.
1471 (handle_const_call): Likewise.
1472 (create_function_info_for): Likewise.
1473 (solve_constraints): Sort varinfos to separate register from
1474 non-register vars to pack points-to solution bitmaps during
1475 iteration.
1476
1477 2017-08-17 Marek Polacek <polacek@redhat.com>
1478
1479 * gimplify.c (gimplify_adjust_omp_clauses): Compare with 0 instead of 1.
1480
1481 2017-08-17 Richard Biener <rguenther@suse.de>
1482
1483 * tree-vrp.c (vrp_int_const_binop): Do not set *overflow_p
1484 to true when overflow is undefined and we saturated the result.
1485
1486 2017-08-17 Alan Modra <amodra@gmail.com>
1487
1488 PR target/80938
1489 * config/rs6000/rs6000.c (rs6000_savres_strategy): Revert 2017-08-09.
1490 Don't use store multiple if only one reg needs saving.
1491 (interesting_frame_related_regno): New function.
1492 (rs6000_frame_related): Don't emit frame info for regs that
1493 don't need saving.
1494 (rs6000_emit_epilogue): Likewise.
1495
1496 2017-08-16 Nathan Sidwell <nathan@acm.org>
1497
1498 * tree-core.h (tree_type_non_common): Rename binfo to lang_1.
1499 * tree.h (TYPE_BINFO): Use type_non_common.maxval.
1500 (TYPE_LANG_SLOT_1): Use type_non_common.lang_1, for any type.
1501 * tree.c (free_lang_data_in_type): Use else-if chain. Always
1502 clear TYPE_LANG_1. Remove obsolete member-function stripping.
1503 (find_decls_types_r): Comment about TYPE_MAX_VALUES_RAW.
1504 (verify_type): Adjust for TYPE_BINFO move.
1505 * lto-streamer-out.c (DFS::DFS_write_tree_body): No need to
1506 process TYPE_BINFO directly.
1507 (hash_tree): Likewise.
1508 * tree-streamer-in.c (lto_input_ts_type_non_common_tree_pointers):
1509 Likewise.
1510 * tree-streamer-out.c (write_ts_type_non_common_tree_pointers):
1511 Likewise.
1512
1513 2017-08-16 David Malcolm <dmalcolm@redhat.com>
1514
1515 * diagnostic-show-locus.c (colorizer::m_caret): Remove unused field.
1516
1517 2017-08-16 Uros Bizjak <ubizjak@gmail.com>
1518
1519 PR target/46091
1520 * config/i386/i386.md (*anddi_1_btr): Change predicates of
1521 operand 0 and operand 1 to nomimmediate_operand. Add "m" constraint.
1522 Add ix86_binary_operator_ok to insn constraint.
1523 (*iordi_1_bts): Ditto.
1524 (*xordi_1_btc): Ditto.
1525 (*btsq): Change predicate of operand 0 to nonimmediate_operand.
1526 Update corresponding peephole2 pattern.
1527 (*btrq): Ditto.
1528 (*btcq): Ditto.
1529
1530 2017-08-16 Bin Cheng <bin.cheng@arm.com>
1531
1532 PR tree-optimization/81832
1533 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Don't
1534 copy loop header which has IFN_LOOP_DIST_ALIAS call.
1535
1536 2017-08-16 Marek Polacek <polacek@redhat.com>
1537
1538 PR middle/81695
1539 * fold-const.c (fold_indirect_ref_1): Restore original behavior
1540 regarding size_zero_node.
1541
1542 2017-08-16 Martin Liska <mliska@suse.cz>
1543
1544 PR target/81753
1545 * config.gcc: Respect previously set extra_objs in case
1546 of darwin target.
1547
1548 2017-08-16 Richard Sandiford <richard.sandiford@linaro.org>
1549
1550 PR tree-optimization/81835
1551 * tree-vect-loop.c (vect_is_simple_reduction): Simply checks for
1552 the phi SSA_NAME. Check that the condition in a COND_EXPR does
1553 not depend on the phi.
1554
1555 2017-08-16 Alan Modra <amodra@gmail.com>
1556
1557 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Delete
1558 dead code.
1559
1560 2017-08-16 Alan Modra <amodra@gmail.com>
1561
1562 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Merge..
1563 (save_reg_p): ..into this. Update all callers.
1564 (first_reg_to_save): Simplify.
1565
1566 2017-08-16 Alan Modra <amodra@gmail.com>
1567
1568 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't restore
1569 fixed regs.
1570
1571 2017-08-15 Joseph Myers <joseph@codesourcery.com>
1572
1573 PR target/78460
1574 PR target/67712
1575 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Only unroll for
1576 constant count if that count is less than 32.
1577
1578 2017-08-15 Nathan Sidwell <nathan@acm.org>
1579
1580 * gcc.c (execute): Emit friendlier message if inferior is killed
1581 by an external cause.
1582
1583 2017-08-15 Richard Biener <rguenther@suse.de>
1584
1585 PR tree-optimization/81790
1586 * tree-ssa-sccvn.c (vn_lookup_simplify_result): Handle both
1587 CONSTRUCTORs from simplifying and VN.
1588
1589 2017-08-14 Martin Sebor <msebor@redhat.com>
1590
1591 * builtin-attrs.def: Add comments.
1592
1593 2017-08-14 Martin Sebor <msebor@redhat.com>
1594
1595 PR c/81117
1596 * doc/extend.texi (attribute nonstring): Document new attribute.
1597
1598 2017-08-14 Martin Sebor <msebor@redhat.com>
1599
1600 PR c/81117
1601 * tree-diagnostic.c (default_tree_printer): Handle %G.
1602 * gimple-pretty-print.h (percent_G_format): Declare new function.
1603 * gimple-pretty-print.c (percent_G_format): Define.
1604 * tree-pretty-print.c (percent_K_format): Add argument.
1605
1606 2017-08-14 Martin Sebor <msebor@redhat.com>
1607
1608 PR translation/79998
1609 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
1610 Remove a stray space.
1611
1612 2017-08-14 Uros Bizjak <ubizjak@gmail.com>
1613
1614 PR target/46091
1615 * config/i386/i386.md (*anddi_1_btr): New insn_and_split pattern.
1616 (*iordi_1_bts): Ditto.
1617 (*xordi_1_btc): Ditto.
1618
1619 2017-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1620
1621 PR target/79845
1622 * config/rs6000/linux64.h (INVALID_64BIT): Use quoted strings.
1623 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1624 Likewise.
1625 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Use
1626 quoted strings, and make more translator-friendly.
1627 (darwin_rs6000_override_options): Likewise.
1628 (rs6000_option_override_internal): Likewise.
1629 (rs6000_return_in_memory): Fix overlong line.
1630 (init_cmulative_args): Use quoted strings, and make more
1631 translator-friendly.
1632 (rs6000_pass_by_reference): Fix overlong line.
1633 (def_builtin): Use quoted strings.
1634 (altivec_expand_predicate_builtin): Use quoted strings, and make
1635 more translator-friendly.
1636 (htm_expand_builtin): Use quoted strings.
1637 (cpu_expand_builtin): Use quoted strings, and make more
1638 translator-friendly.
1639 (altivec_expand_builtin): Likewise.
1640 (paired_expand_predicate_builtin): Likewise.
1641 (rs6000_invalid_builtin): Likewise.
1642 (builtin_function_type): Use quoted strings.
1643 (rs6000_expand_split_stack_prologue): Use quoted strings, and make
1644 more translator-friendly.
1645 (rs6000_trampoline_init): Likewise.
1646 (rs6000_handle_altivec_attribute): Likewise.
1647 (rs6000_inner_target_options): Use quoted strings.
1648 (rs6000_disable_incompatible_switches): Likewise.
1649 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Use quoted
1650 strings, and make more translator-friendly.
1651 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use quoted strings.
1652
1653 2017-08-14 Bin Cheng <bin.cheng@arm.com>
1654
1655 PR tree-optimization/81799
1656 * tree-loop-distribution.c (version_loop_by_alias_check): Force
1657 cond_expr to simple gimple operand.
1658
1659 2017-08-14 Wilco Dijkstra <wdijkstr@arm.com>
1660
1661 PR middle-end/46932
1662 * doc/sourcebuild.texi (autoincdec): Add autoincdec description.
1663
1664 2017-08-14 Georg-Johann Lay <avr@gjlay.de>
1665
1666 PR target/81754
1667 PR target/81268
1668 * config/avr/avr.opt (mgas-isr-prologues): New Var avr_gasisr_prologues.
1669 * config/avr/avr.md (gasisr, *gasisr): Use it instead of
1670 TARGET_GASISR_PROLOGUES.
1671 * config/avr/avr.c (avr_option_override): Same.
1672 (avr_pass_pre_proep::execute): Same.
1673
1674 2017-08-13 H.J. Lu <hongjiu.lu@intel.com>
1675
1676 PR target/81820
1677 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Replace
1678 frame pointer with stack pointer - UNITS_PER_WORD in debug insns.
1679
1680 2017-08-13 Uros Bizjak <ubizjak@gmail.com>
1681
1682 * config/i386/i386.md (*load_tp_<mode>): Redefine as
1683 define_insn_and_split. Split to a memory load from 0 in
1684 DEFAULT_TLS_SEG_REG address space. Merge with *load_tp_x32
1685 using PTR mode iterator.
1686 (*load_tp_x32_zext"): Redefine as define_insn_and_split.
1687 Split to a memory load from 0 in DEFAULT_TLS_SEG_REG address space.
1688 (*add_tp_<mode>): Redefine as define_insn_and_split.
1689 Split to an add with a memory load from 0 in DEFAULT_TLS_SEG_REG
1690 address space. Merge with *add_tp_x32 using PTR mode iterator.
1691 (*add_tp_x32_zext"): Redefine as define_insn_and_split.
1692 Split to an add with a memory load from 0 in
1693 DEFAULT_TLS_SEG_REG address space.
1694
1695 2017-08-12 Andrew Pinski <apinski@cavium.com>
1696
1697 * config/aarch64/aarch64-option-extensions.def (rdma):
1698 Fix feature string to what Linux prints out in /proc/cpuinfo.
1699
1700 2017-08-12 Pierre-Marie de Rodat <derodat@adacore.com>
1701
1702 PR ada/79542
1703 * dwarf2out.c (modified_type_die): For C typedef types that have
1704 an ultimate origin, process the ultimate origin instead of the
1705 input type.
1706 (gen_typedef_die): Assert that input DECLs have no ultimate
1707 origin.
1708 (gen_type_die_with_usage): For typedef variants that have an
1709 ultimate origin, just call gen_decl_die on the original DECL.
1710 (process_scope_var): Avoid creating DIEs for local typedefs and
1711 concrete static variables.
1712
1713 2017-08-12 Alan Modra <amodra@gmail.com>
1714
1715 PR target/81170
1716 PR target/81295
1717 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Upgrade to
1718 match gnu-user.h startfile.
1719 (ENDFILE_LINUX_SPEC): Similarly.
1720
1721 2017-08-11 Thomas Schwinge <thomas@codesourcery.com>
1722
1723 PR lto/81430
1724 * config/nvptx/nvptx.c (nvptx_override_options_after_change):
1725 Remove function.
1726 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Remove definition.
1727
1728 2017-08-11 Tamar Christina <tamar.christina@arm.com>
1729 * config/aarch64/aarch64.md (mov<mode>): Change.
1730 (*movhf_aarch64, *movsf_aarch64, *movdf_aarch64):
1731 aarch64_reg_or_fp_float into aarch64_reg_or_fp_zero.
1732 * config/aarch64/predicates.md (aarch64_reg_or_fp_float): Removed.
1733
1734 2017-08-11 Eric Botcazou <ebotcazou@adacore.com>
1735
1736 * tree-sra.c (build_access_from_expr_1): Use more precise diagnostics
1737 for storage order barriers.
1738
1739 2017-08-11 Martin Liska <mliska@suse.cz>
1740
1741 PR tree-opt/79987
1742 * tree-chkp.c (chkp_get_bounds_for_decl_addr): Do not instrument
1743 variables of void type.
1744
1745 2017-08-11 Martin Liska <mliska@suse.cz>
1746
1747 * asan.c (asan_protect_global): Replace ASM_OUTPUT_DEF with
1748 TARGET_SUPPORTS_ALIASES.
1749 * cgraph.c (cgraph_node::create_same_body_alias): Likewise.
1750 * ipa-visibility.c (can_replace_by_local_alias): Likewise.
1751 (optimize_weakref): Likewise.
1752 * symtab.c (symtab_node::noninterposable_alias): Likewise.
1753 * varpool.c (varpool_node::create_extra_name_alias): Likewise.
1754 * defaults.h: Introduce TARGET_SUPPORTS_ALIASES.
1755
1756 2017-08-11 Martin Liska <mliska@suse.cz>
1757
1758 PR ipa/81213
1759 * config/i386/i386.c (make_resolver_func): Do complete
1760 refactoring of the function.
1761
1762 2017-08-10 Uros Bizjak <ubizjak@gmail.com>
1763
1764 PR target/81708
1765 * config/i386/i386.opt (mstack-protector-guard-symbol=): New option
1766 * config/i386/i386.c (ix86_stack_protect_guard): Use
1767 ix86_stack_protect_guard_symbol_str to generate varible declaration.
1768 * doc/invoke.texi (x86 Options): Document
1769 -mstack-protector-guard-symbol= option.
1770
1771 2017-08-10 Uros Bizjak <ubizjak@gmail.com>
1772
1773 * config/i386/i386-protos.h (ix86_split_stack_guard): New prototype.
1774 * config/i386/i386.c (ix86_split_stack_guard): New function.
1775 (ix86_xpand_split_stack_prologue): Call ix86_split_stack_guard.
1776 (ix86_legitimate_address_p) <case UNSPEC_STACK_CHECK>: Remove.
1777 (i386_asm_output_addr_const_extra) <case UNSPEC_STACK_CHECK>: Ditto.
1778 (optput_pic_addr_const): Remove UNSPEC_STACK_CHECK handling.
1779 * config/i386/i386.md (unspec): Remove UNSPEC_STACK_CHECK.
1780 (split_stack_space_check): Call ix86_split_stack_guard.
1781
1782 2017-08-10 Martin Sebor <msebor@redhat.com>
1783
1784 * print-tree.c (print_node): Print location using the established
1785 format %s:%i%i.
1786 Replace spaces with colons.
1787 (debug_raw, debug): Ditto.
1788
1789 2017-08-10 Martin Sebor <msebor@redhat.com>
1790
1791 PR c++/81586
1792 * pretty-print.c (pp_format): Correct the handling of %s precision.
1793
1794 2017-08-10 H.J. Lu <hongjiu.lu@intel.com>
1795
1796 PR target/81736
1797 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Renamed
1798 to ...
1799 (ix86_finalize_stack_frame_flags): This. Also clear
1800 frame_pointer_needed if -fno-omit-frame-pointer is used without
1801 stack access.
1802 (ix86_expand_prologue): Replace ix86_finalize_stack_realign_flags
1803 with ix86_finalize_stack_frame_flags.
1804 (ix86_expand_epilogue): Likewise.
1805 (ix86_expand_split_stack_prologue): Likewise.
1806 * doc/invoke.texi: Add a note for -fno-omit-frame-pointer.
1807
1808 2017-08-10 Martin Liska <mliska@suse.cz>
1809
1810 PR c++/81355
1811 * c-attribs.c (handle_target_attribute):
1812 Report warning for an empty string argument of target attribute.
1813
1814 2017-08-09 Jakub Jelinek <jakub@redhat.com>
1815
1816 PR c/81687
1817 * omp-low.c (omp_copy_decl): Don't remap FORCED_LABEL or DECL_NONLOCAL
1818 LABEL_DECLs.
1819 * tree-cfg.c (move_stmt_op): Don't adjust DECL_CONTEXT of FORCED_LABEL
1820 or DECL_NONLOCAL labels.
1821 (move_stmt_r) <case GIMPLE_LABEL>: Adjust DECL_CONTEXT of FORCED_LABEL
1822 or DECL_NONLOCAL labels here.
1823
1824 2017-08-09 Will Schmidt <will_schmidt@vnet.ibm.com>
1825
1826 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add blurb
1827 to indicate when early gimple folding has been disabled.
1828 (rs6000_gimple_fold_builtin): Add debug content.
1829 (rs6000_invalid_builtin): Fix whitespace.
1830 (rs6000_expand_builtin): Fix whitespace.
1831 * config/rs6000/rs6000.opt: Add option for -mfold-gimple.
1832
1833 2017-08-09 Segher Boessenkool <segher@kernel.crashing.org>
1834
1835 PR target/80938
1836 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
1837 SAVE_MULTIPLE if not all the registers that saves, should be saved.
1838
1839 2017-08-09 Jim Wilson <jim.wilson@linaro.org>
1840
1841 * config/aarch64/aarch64-cores.def (falkor): Use falkor pipeline.
1842 (qdf24xx): Likewise.
1843 * config/aarch64/aarch64.md: Include falkor.md.
1844 * config/aarch64/falkor.md: New.
1845
1846 2017-08-09 Marek Polacek <polacek@redhat.com>
1847
1848 PR c/81233
1849 * diagnostic-core.h (emit_diagnostic_valist): Add declaration.
1850 * diagnostic.c (emit_diagnostic): Add a comment.
1851 (emit_diagnostic_valist): New function.
1852
1853 2017-08-09 Marek Polacek <polacek@redhat.com>
1854
1855 PR c/81417
1856 * input.c (make_location): New overload.
1857 * input.h (make_location): Declare.
1858
1859 2017-08-08 Alan Modra <amodra@gmail.com>
1860 H.J. Lu <hongjiu.lu@intel.com>
1861
1862 PR driver/81523
1863 * gcc.c (NO_PIE_SPEC): Delete.
1864 (PIE_SPEC): Define as !no-pie/pie. Move static|shared|r
1865 exclusion..
1866 (LINK_PIE_SPEC): ..to here.
1867 (LINK_COMMAND_SPEC): Support -no-pie.
1868 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Correct
1869 chain of crtbegin*.o selection, update for PIE_SPEC changes and
1870 format.
1871 (GNU_USER_TARGET_ENDFILE_SPEC): Similarly.
1872 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Similarly.
1873 (ENDFILE_CRTEND_SPEC): Similarly.
1874
1875 2017-08-08 Uros Bizjak <ubizjak@gmail.com>
1876
1877 PR target/81708
1878 * config/i386/i386.opt (mstack-protector-guard-reg=): New option
1879 (mstack-protector-guard-offset=): Ditto.
1880 * config/i386/i386.c (ix86_option_override): Handle
1881 -mstack-protector-guard-reg= and -mstack-protector-guard-offset=
1882 options.
1883 (ix86_stack_protect_guard): Use ix86_stack_protect_guard_reg and
1884 ix86_stack_protect_guard_offset variables.
1885 (TARGET_STACK_PROTECT_GUARD): Always define.
1886 * doc/invoke.texi (x86 Options): Document -mstack-protector-guard-reg=
1887 and -mstack-protector-guard-offset= options.
1888
1889 2017-08-08 Bin Cheng <bin.cheng@arm.com>
1890
1891 * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): Handle
1892 boundary case for the last candidate.
1893
1894 2017-08-08 Bin Cheng <bin.cheng@arm.com>
1895
1896 * doc/invoke.texi: Document -ftree-loop-distribution for O3.
1897 * opts.c (default_options_table): Add OPT_ftree_loop_distribution.
1898
1899 2017-08-08 Tamar Christina <tamar.christina@arm.com>
1900
1901 PR middle-end/19706
1902 * config/aarch64/aarch64.md (xorsign<mode>3): New optabs.
1903 * config/aarch64/aarch64-builtins.c
1904 (aarch64_builtin_vectorized_function): Added CASE_CFN_XORSIGN.
1905 * config/aarch64/aarch64-simd-builtins.def: Added xorsign BINOP.
1906 * config/aarch64/aarch64-simd.md: Added xorsign<mode>3
1907
1908 2017-08-08 Tamar Christina <tamar.christina@arm.com>
1909 Andrew Pinski <pinskia@gmail.com>
1910
1911 PR middle-end/19706
1912 * internal-fn.def (XORSIGN): New.
1913 * optabs.def (xorsign_optab): New.
1914 * tree-ssa-math-opts.c (is_copysign_call_with_1): New.
1915 (convert_expand_mult_copysign): New.
1916 (pass_optimize_widening_mul::execute): Call
1917 convert_expand_mult_copysign.
1918
1919 2017-08-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1920
1921 PR tree-optimization/81354
1922 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
1923 Insert on edges rather than explicitly creating landing pads.
1924 (analyze_candidates_and_replace): Commit edge inserts.
1925
1926 2017-08-08 Richard Biener <rguenther@suse.de>
1927
1928 PR middle-end/81719
1929 * tree-ssa-loop-niter.c: Include tree-dfa.h.
1930 (expand_simple_operations): Also look through ADDR_EXPRs with
1931 MEM_REF bases treating them as POINTER_PLUS_EXPR.
1932
1933 2017-08-08 Richard Biener <rguenther@suse.de>
1934
1935 PR tree-optimization/81723
1936 * tree-vect-slp.c (struct bst_traits): New hash traits.
1937 (bst_fail): New global.
1938 (vect_build_slp_tree_2): New worker, split out from ...
1939 (vect_build_slp_tree): ... this now wrapping it with using
1940 bst_fail set to cache SLP tree build fails. Properly handle
1941 max_tree_size.
1942 (vect_analyze_slp_instance): Allocate and free bst_fail.
1943
1944 2017-08-08 Martin Liska <mliska@suse.cz>
1945
1946 PR tree-opt/81696
1947 * ipa-icf-gimple.c (func_checker::compare_cst_or_decl): Consider
1948 LABEL_DECLs that can be from a different function.
1949
1950 2017-08-08 Bin Cheng <bin.cheng@arm.com>
1951
1952 PR tree-optimization/81744
1953 * tree-predcom.c (prepare_finalizers_chain): Deep copy expr of
1954 loop's number of iterations.
1955
1956 2017-08-08 Martin Liska <mliska@suse.cz>
1957
1958 * asan.c: Include header files.
1959 * attribs.c (build_decl_attribute_variant): New function moved
1960 from tree.[ch].
1961 (build_type_attribute_qual_variant): Likewise.
1962 (cmp_attrib_identifiers): Likewise.
1963 (simple_cst_list_equal): Likewise.
1964 (omp_declare_simd_clauses_equal): Likewise.
1965 (attribute_value_equal): Likewise.
1966 (comp_type_attributes): Likewise.
1967 (build_type_attribute_variant): Likewise.
1968 (lookup_ident_attribute): Likewise.
1969 (remove_attribute): Likewise.
1970 (merge_attributes): Likewise.
1971 (merge_type_attributes): Likewise.
1972 (merge_decl_attributes): Likewise.
1973 (merge_dllimport_decl_attributes): Likewise.
1974 (handle_dll_attribute): Likewise.
1975 (attribute_list_equal): Likewise.
1976 (attribute_list_contained): Likewise.
1977 * attribs.h (lookup_attribute): New function moved from tree.[ch].
1978 (lookup_attribute_by_prefix): Likewise.
1979 * bb-reorder.c: Include header files.
1980 * builtins.c: Likewise.
1981 * calls.c: Likewise.
1982 * cfgexpand.c: Likewise.
1983 * cgraph.c: Likewise.
1984 * cgraphunit.c: Likewise.
1985 * convert.c: Likewise.
1986 * dwarf2out.c: Likewise.
1987 * final.c: Likewise.
1988 * fold-const.c: Likewise.
1989 * function.c: Likewise.
1990 * gimple-expr.c: Likewise.
1991 * gimple-fold.c: Likewise.
1992 * gimple-pretty-print.c: Likewise.
1993 * gimple.c: Likewise.
1994 * gimplify.c: Likewise.
1995 * hsa-common.c: Likewise.
1996 * hsa-gen.c: Likewise.
1997 * internal-fn.c: Likewise.
1998 * ipa-chkp.c: Likewise.
1999 * ipa-cp.c: Likewise.
2000 * ipa-devirt.c: Likewise.
2001 * ipa-fnsummary.c: Likewise.
2002 * ipa-inline.c: Likewise.
2003 * ipa-visibility.c: Likewise.
2004 * ipa.c: Likewise.
2005 * lto-cgraph.c: Likewise.
2006 * omp-expand.c: Likewise.
2007 * omp-general.c: Likewise.
2008 * omp-low.c: Likewise.
2009 * omp-offload.c: Likewise.
2010 * omp-simd-clone.c: Likewise.
2011 * opts-global.c: Likewise.
2012 * passes.c: Likewise.
2013 * predict.c: Likewise.
2014 * sancov.c: Likewise.
2015 * sanopt.c: Likewise.
2016 * symtab.c: Likewise.
2017 * toplev.c: Likewise.
2018 * trans-mem.c: Likewise.
2019 * tree-chkp.c: Likewise.
2020 * tree-eh.c: Likewise.
2021 * tree-into-ssa.c: Likewise.
2022 * tree-object-size.c: Likewise.
2023 * tree-parloops.c: Likewise.
2024 * tree-profile.c: Likewise.
2025 * tree-ssa-ccp.c: Likewise.
2026 * tree-ssa-live.c: Likewise.
2027 * tree-ssa-loop.c: Likewise.
2028 * tree-ssa-sccvn.c: Likewise.
2029 * tree-ssa-structalias.c: Likewise.
2030 * tree-ssa.c: Likewise.
2031 * tree-streamer-in.c: Likewise.
2032 * tree-vectorizer.c: Likewise.
2033 * tree-vrp.c: Likewise.
2034 * tsan.c: Likewise.
2035 * ubsan.c: Likewise.
2036 * varasm.c: Likewise.
2037 * varpool.c: Likewise.
2038 * tree.c: Remove functions moved to attribs.[ch].
2039 * tree.h: Likewise.
2040 * config/aarch64/aarch64.c: Add attrs.h header file.
2041 * config/alpha/alpha.c: Likewise.
2042 * config/arc/arc.c: Likewise.
2043 * config/arm/arm.c: Likewise.
2044 * config/avr/avr.c: Likewise.
2045 * config/bfin/bfin.c: Likewise.
2046 * config/c6x/c6x.c: Likewise.
2047 * config/cr16/cr16.c: Likewise.
2048 * config/cris/cris.c: Likewise.
2049 * config/darwin.c: Likewise.
2050 * config/epiphany/epiphany.c: Likewise.
2051 * config/fr30/fr30.c: Likewise.
2052 * config/frv/frv.c: Likewise.
2053 * config/ft32/ft32.c: Likewise.
2054 * config/h8300/h8300.c: Likewise.
2055 * config/i386/winnt.c: Likewise.
2056 * config/ia64/ia64.c: Likewise.
2057 * config/iq2000/iq2000.c: Likewise.
2058 * config/lm32/lm32.c: Likewise.
2059 * config/m32c/m32c.c: Likewise.
2060 * config/m32r/m32r.c: Likewise.
2061 * config/m68k/m68k.c: Likewise.
2062 * config/mcore/mcore.c: Likewise.
2063 * config/microblaze/microblaze.c: Likewise.
2064 * config/mips/mips.c: Likewise.
2065 * config/mmix/mmix.c: Likewise.
2066 * config/mn10300/mn10300.c: Likewise.
2067 * config/moxie/moxie.c: Likewise.
2068 * config/msp430/msp430.c: Likewise.
2069 * config/nds32/nds32-isr.c: Likewise.
2070 * config/nds32/nds32.c: Likewise.
2071 * config/nios2/nios2.c: Likewise.
2072 * config/nvptx/nvptx.c: Likewise.
2073 * config/pa/pa.c: Likewise.
2074 * config/pdp11/pdp11.c: Likewise.
2075 * config/powerpcspe/powerpcspe.c: Likewise.
2076 * config/riscv/riscv.c: Likewise.
2077 * config/rl78/rl78.c: Likewise.
2078 * config/rx/rx.c: Likewise.
2079 * config/s390/s390.c: Likewise.
2080 * config/sh/sh.c: Likewise.
2081 * config/sol2.c: Likewise.
2082 * config/sparc/sparc.c: Likewise.
2083 * config/spu/spu.c: Likewise.
2084 * config/stormy16/stormy16.c: Likewise.
2085 * config/tilegx/tilegx.c: Likewise.
2086 * config/tilepro/tilepro.c: Likewise.
2087 * config/v850/v850.c: Likewise.
2088 * config/vax/vax.c: Likewise.
2089 * config/visium/visium.c: Likewise.
2090 * config/xtensa/xtensa.c: Likewise.
2091
2092 2017-08-07 Michael Meissner <meissner@linux.vnet.ibm.com>
2093
2094 PR target/81593
2095 * config/rs6000/vsx.md (vsx_concat_<mode>, VSX_D): Cleanup
2096 constraints since the -mupper-regs-* switches have been
2097 eliminated.
2098 (vsx_concat_<mode>_1): New combiner insns to recognize inserting
2099 into a vector from a double word element that was extracted from
2100 another vector, and eliminate extra XXPERMDI instructions.
2101 (vsx_concat_<mode>_2): Likewise.
2102 (vsx_concat_<mode>_3): Likewise.
2103 (vsx_set_<mode>, VSX_D): Rewrite vector set in terms of vector
2104 concat to allow optimizing inserts from previous extracts.
2105
2106 2017-08-07 Uros Bizjak <ubizjak@gmail.com>
2107
2108 * config/i386/i386.c (ix86_stack_protect_guard): Generate
2109 memory reference to a SSP offset in TLS address space.
2110 (ix86_print_operand) <case '@'>: Remove.
2111 (ix86_print_operand_punct_valid_p): Remove '@' code.
2112 * config/i386/i386.md (unspec): Remove UNSPEC_SP_TLS_SET and
2113 UNSPEC_SP_TLS_TEST.
2114 (stack_tls_protect_set_<mode>): Remove.
2115 (stack_protect_set): Do not call gen_stack_tls_protect_set_<mode>.
2116 (stack_tls_protect_test_<mode>): Remove.
2117 (stack_protect_test): Do not call gen_stack_tls_protect_test_<mode>.
2118
2119 2017-08-07 Olivier Hainque <hainque@adacore.com>
2120
2121 PR target/81755
2122 * config/vxworksae.h (VXWORKS_HAVE_TLS): Define.
2123
2124 2017-08-07 Douglas Rupp <rupp@adacore.com>
2125
2126 * Makefile.in (install-mkheaders): Fix typo, where the multi_dir
2127 variable was referenced as multidir in command.
2128
2129 2017-08-07 Jakub Jelinek <jakub@redhat.com>
2130
2131 PR c/69389
2132 * gimplify.c (goa_stabilize_expr): Handle BIT_INSERT_EXPR and
2133 BIT_FIELD_REF.
2134
2135 2017-08-07 Martin Liska <mliska@suse.cz>
2136
2137 * config/m32c/m32c.c: Add include of stringpool.h and attribs.h.
2138 * config/rl78/rl78.c: Add include of attribs.h.
2139 * config/sh/sh.c: Likewise.
2140 * config/v850/v850.c: Likewise.
2141
2142 2017-08-07 Tom de Vries <tom@codesourcery.com>
2143
2144 PR middle-end/78266
2145 * omp-expand.c (expand_oacc_for): Ensure diff_type is large enough.
2146
2147 2017-08-07 Martin Liska <mliska@suse.cz>
2148
2149 * config/mips/mips.c: Include attribs.h.
2150
2151 2017-08-07 Thomas Koenig <tkoenig@gcc.gnu.org>
2152
2153 PR fortran/68829
2154 * doc/invoke.texi: Document change in behvaior for -Ofast for
2155 Fortran.
2156
2157 2017-08-07 Wilco Dijkstra <wdijkstr@arm.com>
2158
2159 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg):
2160 Use gen_frame_mem.
2161 (aarch64_pop_regs): Likewise.
2162 (aarch64_gen_load_pair): Likewise.
2163 (aarch64_save_callee_saves): Likewise.
2164 (aarch64_restore_callee_saves): Likewise.
2165
2166 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
2167
2168 * config/i386/i386.c: Revert the last change.
2169
2170 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
2171
2172 PR target/81736
2173 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Renamed
2174 to ...
2175 (ix86_finalize_stack_frame_flags): This. Also clear
2176 frame_pointer_needed if -fno-omit-frame-pointer is used without
2177 stack access.
2178 (ix86_expand_prologue): Replace ix86_finalize_stack_realign_flags
2179 with ix86_finalize_stack_frame_flags.
2180 (ix86_expand_epilogue): Likewise.
2181 (ix86_expand_split_stack_prologue): Likewise.
2182
2183 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
2184
2185 PR target/81743
2186 * config/i386/i386.c (get_builtin_code_for_version): Set priority
2187 to P_AES for Westmere.
2188
2189 2017-08-07 Jonathan Yong <10walls@gmail.com>
2190
2191 * config/i386/mingw.opt (fset-stack-executable): Removed.
2192 * config/i386/cygming.opt (fset-stack-executable): Moved
2193 from mingw.opt.
2194 * config/i386/cygwin.h: Define CHECK_EXECUTE_STACK_ENABLED.
2195
2196 2017-08-07 Segher Boessenkool <segher@kernel.crashing.org>
2197
2198 * print-rtl.c (print_exp): Print NOT as "~" instead of as "!".
2199
2200 2017-08-07 Marek Polacek <polacek@redhat.com>
2201
2202 PR middle-end/81737
2203 * fold-const.c (fold_indirect_ref_1): Check type_domain.
2204
2205 2017-08-07 Martin Liska <mliska@suse.cz>
2206
2207 * attribs.h (canonicalize_attr_name): New function.
2208 (cmp_attribs): Move from c-format.c and adjusted.
2209 (is_attribute_p): Moved from tree.h.
2210 * tree-inline.c: Add new includes.
2211 * tree.c (cmp_attrib_identifiers): Use cmp_attribs.
2212 (private_is_attribute_p): Remove.
2213 (private_lookup_attribute): Likewise.
2214 (private_lookup_attribute_by_prefix): Simplify.
2215 (remove_attribute): Use is_attribute_p.
2216 * tree.h: Remove removed declarations.
2217
2218 2017-08-07 Jakub Jelinek <jakub@redhat.com>
2219
2220 PR middle-end/81698
2221 * stmt.c (emit_case_dispatch_table): Add DEFAULT_EDGE argument,
2222 instead of computing it in the function. Formatting fix.
2223 (expand_case): Don't rely on default_edge being the first edge,
2224 clear it if removing it, pass default_edge to
2225 emit_case_dispatch_table.
2226 (expand_sjlj_dispatch_table): Pass NULL as DEFAULT_EDGE, formatting
2227 fix.
2228
2229 2017-08-06 Uros Bizjak <ubizjak@gmail.com>
2230
2231 * config/alpha/alpha.c (alpha_reorg): If trap is the last active
2232 insn in the function, emit NOP after the insn.
2233
2234 2017-08-06 Tom de Vries <tom@codesourcery.com>
2235
2236 * omp-expand.c (expand_oacc_for): Add missing edge probability for tile
2237 and element loops.
2238
2239 2017-08-06 Tom de Vries <tom@codesourcery.com>
2240
2241 * omp-expand.c (expand_oacc_for): Add missing edge probability for chunk
2242 loop.
2243
2244 2017-08-04 Yury Gribov <tetra2005@gmail.com>
2245
2246 PR tree-optimization/57371
2247 * match.pd: New pattern.
2248
2249 2017-08-04 Marek Polacek <polacek@redhat.com>
2250
2251 PR middle-end/81695
2252 * fold-const.c (fold_indirect_ref_1): For ((int *)&a + 4 -> a[1],
2253 perform the computation in offset_int.
2254
2255 2017-08-04 Richard Sandiford <richard.sandiford@linaro.org>
2256
2257 PR tree-optimization/81136
2258 * tree-vectorizer.h: Include tree-hash-traits.h.
2259 (vec_base_alignments): New typedef.
2260 (vec_info): Add a base_alignments field.
2261 (vect_record_base_alignments): Declare.
2262 * tree-data-ref.h (data_reference): Add an is_conditional_in_stmt
2263 field.
2264 (DR_IS_CONDITIONAL_IN_STMT): New macro.
2265 (create_data_ref): Add an is_conditional_in_stmt argument.
2266 * tree-data-ref.c (create_data_ref): Likewise. Use it to initialize
2267 the is_conditional_in_stmt field.
2268 (data_ref_loc): Add an is_conditional_in_stmt field.
2269 (get_references_in_stmt): Set the is_conditional_in_stmt field.
2270 (find_data_references_in_stmt): Update call to create_data_ref.
2271 (graphite_find_data_references_in_stmt): Likewise.
2272 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
2273 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
2274 (vect_record_base_alignment): New function.
2275 (vect_record_base_alignments): Likewise.
2276 (vect_compute_data_ref_alignment): Adjust base_addr and aligned_to
2277 for nested statements even if we fail to compute a misalignment.
2278 Use pooled base alignments for unconditional references.
2279 (vect_find_same_alignment_drs): Compare base addresses instead
2280 of base objects.
2281 (vect_analyze_data_refs_alignment): Call vect_record_base_alignments.
2282 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
2283
2284 2017-08-04 Richard Sandiford <richard.sandiford@linaro.org>
2285
2286 * tree-vectorizer.h (vec_info): Add a constructor and destructor.
2287 Add an explicit name for the enum. Use auto_vec for slp_instances
2288 and grouped_stores.
2289 (_loop_vec_info): Add a constructor and destructor. Use auto_vec
2290 for all vectors.
2291 (_bb_vec_info): Add a constructor and destructor.
2292 (vinfo_for_stmt): Return NULL for uids of -1 as well.
2293 (destroy_loop_vec_info): Delete.
2294 (vect_destroy_datarefs): Likewise.
2295 * tree-vectorizer.c (vect_destroy_datarefs): Delete.
2296 (vec_info::vec_info): New function.
2297 (vec_info::~vec_info): Likewise.
2298 (vectorize_loops): Use delete instead of destroy_loop_vec_info.
2299 * tree-parloops.c (gather_scalar_reductions): Use delete instead of
2300 destroy_loop_vec_info.
2301 * tree-vect-loop.c (new_loop_vec_info): Replace with...
2302 (_loop_vec_info::_loop_vec_info): ...this.
2303 (destroy_loop_vec_info): Replace with...
2304 (_loop_vec_info::~_loop_vec_info): ...this. Unconditionally delete
2305 the stmt_vec_infos. Leave handling of vec_info information to its
2306 destructor. Remove explicit vector releases.
2307 (vect_analyze_loop_form): Use new instead of new_loop_vec_info.
2308 (vect_analyze_loop): Use delete instead of destroy_loop_vec_info.
2309 * tree-vect-slp.c (new_bb_vec_info): Replace with...
2310 (_bb_vec_info::_bb_vec_info): ...this. Don't reserve space in
2311 BB_VINFO_GROUPED_STORES or BB_VINFO_SLP_INSTANCES.
2312 (destroy_bb_vec_info): Replace with...
2313 (_bb_vec_info::~_bb_vec_info): ...this. Leave handling of vec_info
2314 information to its destructor.
2315 (vect_slp_analyze_bb_1): Use new and delete instead of
2316 new_bb_vec_info and destroy_bb_vec_info.
2317 (vect_slp_bb): Replace 2 calls to destroy_bb_vec_info with a
2318 single delete.
2319
2320 2017-08-04 Richard Sandiford <richard.sandiford@linaro.org>
2321
2322 * tree-data-ref.h (subscript): Add access_fn field.
2323 (data_dependence_relation): Add could_be_independent_p.
2324 (SUB_ACCESS_FN, DDR_COULD_BE_INDEPENDENT_P): New macros.
2325 (same_access_functions): Move to tree-data-ref.c.
2326 * tree-data-ref.c (ref_contains_union_access_p): New function.
2327 (access_fn_component_p): Likewise.
2328 (access_fn_components_comparable_p): Likewise.
2329 (dr_analyze_indices): Add a reference to access_fn_component_p.
2330 (dump_data_dependence_relation): Use SUB_ACCESS_FN instead of
2331 DR_ACCESS_FN.
2332 (constant_access_functions): Likewise.
2333 (add_other_self_distances): Likewise.
2334 (same_access_functions): Likewise. (Moved from tree-data-ref.h.)
2335 (initialize_data_dependence_relation): Use XCNEW and remove
2336 explicit zeroing of DDR_REVERSED_P. Look for a subsequence
2337 of access functions that have the same type. Allow the
2338 subsequence to end with different bases in some circumstances.
2339 Record the chosen access functions in SUB_ACCESS_FN.
2340 (build_classic_dist_vector_1): Replace ddr_a and ddr_b with
2341 a_index and b_index. Use SUB_ACCESS_FN instead of DR_ACCESS_FN.
2342 (subscript_dependence_tester_1): Likewise dra and drb.
2343 (build_classic_dist_vector): Update calls accordingly.
2344 (subscript_dependence_tester): Likewise.
2345 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Check
2346 DDR_COULD_BE_INDEPENDENT_P.
2347 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Test
2348 comp_alias_ddrs instead of may_alias_ddrs.
2349 * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
2350 New function.
2351 (vect_analyze_data_ref_dependence): Use it if
2352 DDR_COULD_BE_INDEPENDENT_P, but fall back to using the recorded
2353 distance vectors if that fails.
2354 (dependence_distance_ge_vf): New function.
2355 (vect_prune_runtime_alias_test_list): Use it. Don't clear
2356 LOOP_VINFO_MAY_ALIAS_DDRS.
2357
2358 2017-08-04 Richard Biener <rguenther@suse.de>
2359
2360 PR middle-end/81705
2361 * fold-const.c (fold_binary_loc): Properly restrict
2362 minus_var0 && minus_var1 case when associating undefined overflow
2363 entities.
2364
2365 2017-08-04 Tom de Vries <tom@codesourcery.com>
2366
2367 * omp-simd-clone.c (simd_clone_adjust): Add missing edge probability.
2368
2369 2017-08-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2370
2371 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2372 Don't start diagnostic messages with a capital letter.
2373 * config/rs6000/rs6000.c (rs6000_option_override_internal):
2374 Likewise.
2375 (rs6000_invalid_builtin): Likewise.
2376 (rs6000_trampoline_init): Likewise.
2377
2378 2017-08-03 Jakub Jelinek <jakub@redhat.com>
2379
2380 PR target/81621
2381 * bb-reorder.c (pass_partition_blocks::execute): Return TODO_df_finish
2382 after setting changeable df flags.
2383
2384 2017-08-03 Richard Biener <rguenther@suse.de>
2385
2386 * tree-ssa-reassoc.c (should_break_up_subtract): Also break
2387 up if the use is in USE - X.
2388
2389 2017-08-03 Alexander Monakov <amonakov@ispras.ru>
2390
2391 * toplev.c (dumpfile.h): New include.
2392 (internal_error_reentered): New static function. Use it...
2393 (internal_error_function): ...here to handle reentered internal_error.
2394
2395 2017-08-03 Richard Biener <rguenther@suse.de>
2396
2397 PR middle-end/81148
2398 * fold-const.c (split_tree): Add minus_var and minus_con
2399 arguments, remove unused loc arg. Never generate NEGATE_EXPRs
2400 here but always use minus_*.
2401 (associate_trees): Assert we never associate with MINUS_EXPR
2402 and NULL first operand. Do not recurse for PLUS_EXPR operands
2403 when associating as MINUS_EXPR either.
2404 (fold_binary_loc): Track minus_var and minus_con.
2405
2406 2017-08-03 Tom de Vries <tom@codesourcery.com>
2407
2408 PR lto/81430
2409 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers): If
2410 ACCEL_COMPILER, apply finish_options on
2411 DECL_FUNCTION_SPECIFIC_OPTIMIZATION.
2412
2413 2017-08-03 Tom de Vries <tom@codesourcery.com>
2414
2415 PR target/81662
2416 * config/nvptx/nvptx.c (nvptx_option_override): Emit sorry if
2417 function_entry_patch_area_size > 0.
2418
2419 2017-08-03 Jakub Jelinek <jakub@redhat.com>
2420
2421 PR driver/81650
2422 * calls.c (alloc_max_size): Use HOST_WIDE_INT_UC (10??)
2423 instead of 10??LU, perform unit multiplication in wide_int,
2424 don't change alloc_object_size_limit if the limit is larger
2425 than SSIZE_MAX.
2426
2427 PR tree-optimization/81655
2428 PR tree-optimization/81588
2429 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle also
2430 the case when ranges[i].low and high are 1 for unsigned type with
2431 precision 1.
2432
2433 PR middle-end/81052
2434 * omp-low.c (diagnose_sb_0): Handle flag_openmp_simd like flag_openmp.
2435 (pass_diagnose_omp_blocks::gate): Enable also for flag_openmp_simd.
2436
2437 2017-08-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2438
2439 * tree-vrp.h: Add include guard.
2440
2441 2017-08-02 Uros Bizjak <ubizjak@gmail.com>
2442
2443 PR target/81644
2444 * config/i386/i386.md (unspecv): Add UNSPECV_UD2.
2445 (ud2): New insn pattern.
2446 * config/i386/i386.c (ix86_expand_epilogue):
2447 For naked functions, generate ud2 instead of trap insn.
2448
2449 2017-08-02 Marek Polacek <polacek@redhat.com>
2450
2451 PR other/81667
2452 * alloc-pool.h (base_pool_allocator): Initialize m_elt_size.
2453
2454 2017-08-02 Tom de Vries <tom@codesourcery.com>
2455 Cesar Philippidis <cesar@codesourcery.com>
2456
2457 * config/nvptx/nvptx.c (nvptx_lockless_update, nvptx_lockfull_update):
2458 Add missing edge probabilities.
2459
2460 2017-08-02 Tamar Christina <tamar.christina@arm.com>
2461
2462 * config/aarch64/aarch64.c (aarch64_reinterpret_float_as_int):
2463 Correct endianness.
2464
2465 2017-08-02 Jakub Jelinek <jakub@redhat.com>
2466
2467 PR middle-end/79499
2468 * function.c (thread_prologue_and_epilogue_insns): Determine blocks
2469 for find_many_sub_basic_blocks bitmap by looking up BLOCK_FOR_INSN
2470 of first NONDEBUG_INSN_P in each of the split_prologue_seq and
2471 prologue_seq sequences - if any.
2472
2473 2017-08-02 Richard Biener <rguenther@suse.de>
2474
2475 * tree-vect-stmts.c (vectorizable_store): Perform vector extracts
2476 via vectors if supported, integer extracts via punning if supported
2477 or otherwise vector extracts.
2478
2479 2017-08-02 Richard Biener <rguenther@suse.de>
2480
2481 * tree-ssa-pre.c (bitmap_insert_into_set_1): Remove and inline
2482 into ...
2483 (bitmap_insert_into_set): ... this.
2484
2485 2017-08-02 Richard Biener <rguenther@suse.de>
2486
2487 PR tree-optimization/81633
2488 Revert
2489 2015-08-17 Alan Hayward <alan.hayward@arm.com>
2490
2491 PR tree-optimization/71752
2492 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
2493
2494 2017-08-01 Daniel Santos <daniel.santos@pobox.com>
2495
2496 * config/i386/i386.h (ix86_frame::outlined_save_offset): Remove field.
2497 (machine_function::call_ms2sysv_pad_out): Remove field.
2498 * config/i386/i386.c (xlogue_layout::get_stack_space_used): Modify.
2499 (ix86_compute_frame_layout): Likewise.
2500
2501 2017-08-01 H.J. Lu <hongjiu.lu@intel.com>
2502
2503 PR target/81654
2504 * config/i386/i386.c (ix86_set_func_type): Disallow naked
2505 attribute with interrupt attribute.
2506
2507 2017-08-01 Andrew Pinski <apinski@cavium.com>
2508
2509 * tree-ssa-scopedtables.c (hashable_expr_equal_p): Check
2510 BIT_INSERT_EXPR's operand 1
2511 to see if the types precision matches.
2512
2513 2017-08-01 Martin Liska <mliska@suse.cz>
2514
2515 PR middle-end/70140
2516 * builtins.c (expand_builtin_memcpy_args): Remove.
2517 (expand_builtin_memcpy): Call newly added function
2518 expand_builtin_memory_copy_args.
2519 (expand_builtin_memcpy_with_bounds): Likewise.
2520 (expand_builtin_mempcpy): Remove last argument.
2521 (expand_builtin_mempcpy_with_bounds): Likewise.
2522 (expand_builtin_memory_copy_args): New function created from
2523 expand_builtin_mempcpy_args with small modifications.
2524 (expand_builtin_mempcpy_args): Remove.
2525 (expand_builtin_stpcpy): Remove unused argument.
2526 (expand_builtin): Likewise.
2527 (expand_builtin_with_bounds): Likewise.
2528
2529 2017-08-01 Martin Liska <mliska@suse.cz>
2530
2531 Revert r250771
2532 Make mempcpy more optimal (PR middle-end/70140).
2533
2534 2017-08-01 Jakub Jelinek <jakub@redhat.com>
2535
2536 PR target/81622
2537 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): For
2538 __builtin_vec_cmpne verify both arguments are compatible vectors
2539 before looking at TYPE_MODE on the element type. For __builtin_vec_ld
2540 verify arg1_type is a pointer or array type. For __builtin_vec_st,
2541 move computation of aligned to after checking the argument types.
2542 Formatting fixes.
2543
2544 PR target/80846
2545 * config/rs6000/vsx.md (vextract_fp_from_shorth,
2546 vextract_fp_from_shortl): Add element mode after mode in gen_vec_init*
2547 calls.
2548
2549 2017-08-01 Jerome Lambourg <lambourg@adacore.com>
2550 Doug Rupp <rupp@adacore.com>
2551 Olivier Hainque <hainque@adacore.com>
2552
2553 * config.gcc (arm-wrs-vxworks*): Rework to handle arm-wrs-vxworks7 as
2554 well as arm-wrs-vxworks. Update target_cpu_name from arm6 (arch v3) to
2555 arm8 (arch v4).
2556 * config/arm/vxworks.h (MAYBE_TARGET_BPABI_CPP_BUILTINS): New, helper
2557 for TARGET_OS_CPP_BUILTIN.
2558 (TARGET_OS_CPP_BUILTIN): Invoke MAYBE_TARGET_BPABI_CPP_BUILTINS(),
2559 refine CPU definitions for arm_arch5 and add those for arm_arch6 and
2560 arm_arch7.
2561 (MAYBE_ASM_ABI_SPEC): New, helper for SUBTARGET_EXTRA_ASM_SPEC,
2562 passing required abi options to the assembler for EABI configurations.
2563 (EXTRA_CC1_SPEC): New macro, to help prevent the implicit production
2564 of .text.hot and .text.unlikely sections for kernel modules when
2565 using ARM style exceptions.
2566 (CC1_SPEC): Remove obsolete attempt at mimicking Diab toolchain
2567 options. Add EXTRA_CC1_SPEC.
2568 (VXWORKS_ENDIAN_SPEC): Adjust comment and remove handling of Diab
2569 toolchain options.
2570 (DWARF2_UNWIND_INFO): Redefine to handle the pre/post VxWorks 7
2571 transition.
2572 (ARM_TARGET2_DWARF_FORMAT): Define.
2573 * config/arm/t-vxworks: Adjust multilib control to removal of the
2574 Diab command line options.
2575
2576 2017-08-01 Martin Liska <mliska@suse.cz>
2577
2578 PR gcov-profile/81561
2579 * gcov.c (unblock): Make unblocking safe as we need to preserve
2580 index correspondence of blocks and block_lists.
2581
2582 2017-08-01 Richard Biener <rguenther@suse.de>
2583
2584 PR tree-optimization/81181
2585 * tree-ssa-pre.c (compute_antic_aux): Defer clean() to ...
2586 (compute_antic): ... end of iteration here.
2587
2588 2017-08-01 James Greenhalgh <james.greenhalgh@arm.com>
2589
2590 * common.opt (ftree-vectorize): No longer set flag_tree_vectorize.
2591 (ftree-loop-vectorize): Set as EnabledBy ftree-vectorize.
2592 (ftree-slp-vectorize): Likewise.
2593 * omp-expand (expand_omp_simd): Remove flag_tree_vectorize, as it
2594 can no longer be set independent of flag_tree_loop_vectorize.
2595 * omp-general.c (emp_max_vf): Likewise.
2596 * opts.c (enable_fdo_optimizations): Remove references to
2597 flag_tree_vectorize, these are now implicit.
2598 (common_handle_option): Remove handling for OPT_ftree_vectorize,
2599 and leave it for the options machinery.
2600
2601 2017-08-01 Martin Liska <mliska@suse.cz>
2602
2603 PR middle-end/70140
2604 * builtins.c (expand_builtin_memcpy_args): Remove.
2605 (expand_builtin_memcpy): Call newly added function
2606 expand_builtin_memory_copy_args.
2607 (expand_builtin_memcpy_with_bounds): Likewise.
2608 (expand_builtin_mempcpy): Remove last argument.
2609 (expand_builtin_mempcpy_with_bounds): Likewise.
2610 (expand_builtin_memory_copy_args): New function created from
2611 expand_builtin_mempcpy_args with small modifications.
2612 (expand_builtin_mempcpy_args): Remove.
2613 (expand_builtin_stpcpy): Remove unused argument.
2614 (expand_builtin): Likewise.
2615 (expand_builtin_with_bounds): Likewise.
2616
2617 2017-08-01 Uros Bizjak <ubizjak@gmail.com>
2618
2619 PR target/81641
2620 * config/i386/i386.c (ix86_print_operand_address_as): For -masm=intel
2621 print "ds:" only for immediates in generic address space.
2622
2623 2017-08-01 Uros Bizjak <ubizjak@gmail.com>
2624
2625 PR target/81639
2626 * config/i386/i386.c (ix86_funciton_naked): New prototype.
2627 (ix86_function_ok_for_sibcall): Return false for naked functions.
2628
2629 2017-08-01 Richard Biener <rguenther@suse.de>
2630
2631 * tree-ssa-pre.c (print_pre_expr): Handle NULL expr.
2632 (compute_antic): Seed worklist with exit block predecessors.
2633 * cfganal.c (dfs_find_deadend): For a cycle return the source
2634 of the edge closing it.
2635
2636 2017-08-01 Tamar Christina <tamar.christina@arm.com>
2637
2638 * config/aarch64/aarch64.c
2639 (aarch64_can_const_movi_rtx_p): Move 0 check.
2640
2641 2017-08-01 Bin Cheng <bin.cheng@arm.com>
2642
2643 * tree.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Delete.
2644 * fold-const.c (fold_comparison, fold_binary_loc): Delete use of
2645 above macro.
2646 * match.pd: Ditto in address comparison pattern.
2647
2648 2017-08-01 Bin Cheng <bin.cheng@arm.com>
2649
2650 PR tree-optimization/81627
2651 * tree-predcom.c (prepare_finalizers): Always rewrite into loop
2652 closed ssa form for store-store chain.
2653
2654 2017-08-01 Bin Cheng <bin.cheng@arm.com>
2655
2656 PR tree-optimization/81620
2657 * tree-predcom.c (add_ref_to_chain): Don't set has_max_use_after
2658 for store-store chain.
2659
2660 2017-08-01 Jakub Jelinek <jakub@redhat.com>
2661
2662 PR tree-optimization/81588
2663 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): If
2664 ranges[i].in_p, invert comparison code ccode. For >/>=,
2665 swap rhs1 and rhs2 and comparison code unconditionally,
2666 for </<= don't do that. Don't swap rhs1/rhs2 again if
2667 ranges[i].in_p, instead invert comparison code ccode if
2668 opcode or oe->rank is BIT_IOR_EXPR.
2669
2670 PR target/80846
2671 * optabs.def (vec_extract_optab, vec_init_optab): Change from
2672 a direct optab to conversion optab.
2673 * optabs.c (expand_vector_broadcast): Use convert_optab_handler
2674 with GET_MODE_INNER as last argument instead of optab_handler.
2675 * expmed.c (extract_bit_field_1): Likewise. Use vector from
2676 vector extraction if possible and optab is available.
2677 * expr.c (store_constructor): Use convert_optab_handler instead
2678 of optab_handler. Use vector initialization from smaller
2679 vectors if possible and optab is available.
2680 * tree-vect-stmts.c (vectorizable_load): Likewise.
2681 * doc/md.texi (vec_extract, vec_init): Document that the optabs
2682 now have two modes.
2683 * config/i386/i386.c (ix86_expand_vector_init): Handle expansion
2684 of vec_init from half-sized vectors with the same element mode.
2685 * config/i386/sse.md (ssehalfvecmode): Add V4TI case.
2686 (ssehalfvecmodelower, ssescalarmodelower): New mode attributes.
2687 (reduc_plus_scal_v8df, reduc_plus_scal_v4df, reduc_plus_scal_v2df,
2688 reduc_plus_scal_v16sf, reduc_plus_scal_v8sf, reduc_plus_scal_v4sf,
2689 reduc_<code>_scal_<mode>, reduc_umin_scal_v8hi): Add element mode
2690 after mode in gen_vec_extract* calls.
2691 (vec_extract<mode>): Renamed to ...
2692 (vec_extract<mode><ssescalarmodelower>): ... this.
2693 (vec_extract<mode><ssehalfvecmodelower>): New expander.
2694 (rotl<mode>3, rotr<mode>3, <shift_insn><mode>3, ashrv2di3): Add
2695 element mode after mode in gen_vec_init* calls.
2696 (VEC_INIT_HALF_MODE): New mode iterator.
2697 (vec_init<mode>): Renamed to ...
2698 (vec_init<mode><ssescalarmodelower>): ... this.
2699 (vec_init<mode><ssehalfvecmodelower>): New expander.
2700 * config/i386/mmx.md (vec_extractv2sf): Renamed to ...
2701 (vec_extractv2sfsf): ... this.
2702 (vec_initv2sf): Renamed to ...
2703 (vec_initv2sfsf): ... this.
2704 (vec_extractv2si): Renamed to ...
2705 (vec_extractv2sisi): ... this.
2706 (vec_initv2si): Renamed to ...
2707 (vec_initv2sisi): ... this.
2708 (vec_extractv4hi): Renamed to ...
2709 (vec_extractv4hihi): ... this.
2710 (vec_initv4hi): Renamed to ...
2711 (vec_initv4hihi): ... this.
2712 (vec_extractv8qi): Renamed to ...
2713 (vec_extractv8qiqi): ... this.
2714 (vec_initv8qi): Renamed to ...
2715 (vec_initv8qiqi): ... this.
2716 * config/rs6000/vector.md (VEC_base_l): New mode attribute.
2717 (vec_init<mode>): Renamed to ...
2718 (vec_init<mode><VEC_base_l>): ... this.
2719 (vec_extract<mode>): Renamed to ...
2720 (vec_extract<mode><VEC_base_l>): ... this.
2721 * config/rs6000/paired.md (vec_initv2sf): Renamed to ...
2722 (vec_initv2sfsf): ... this.
2723 * config/rs6000/altivec.md (splitter, altivec_copysign_v4sf3,
2724 vec_unpacku_hi_v16qi, vec_unpacku_hi_v8hi, vec_unpacku_lo_v16qi,
2725 vec_unpacku_lo_v8hi, mulv16qi3, altivec_vreve<mode>2): Add
2726 element mode after mode in gen_vec_init* calls.
2727 * config/aarch64/aarch64-simd.md (vec_init<mode>): Renamed to ...
2728 (vec_init<mode><Vel>): ... this.
2729 (vec_extract<mode>): Renamed to ...
2730 (vec_extract<mode><Vel>): ... this.
2731 * config/aarch64/iterators.md (Vel): New mode attribute.
2732 * config/s390/s390.c (s390_expand_vec_strlen, s390_expand_vec_movstr):
2733 Add element mode after mode in gen_vec_extract* calls.
2734 * config/s390/vector.md (non_vec_l): New mode attribute.
2735 (vec_extract<mode>): Renamed to ...
2736 (vec_extract<mode><non_vec_l>): ... this.
2737 (vec_init<mode>): Renamed to ...
2738 (vec_init<mode><non_vec_l>): ... this.
2739 * config/s390/s390-builtins.def (s390_vlgvb, s390_vlgvh, s390_vlgvf,
2740 s390_vlgvf_flt, s390_vlgvg, s390_vlgvg_dbl): Add element mode after
2741 vec_extract mode.
2742 * config/arm/iterators.md (V_elem_l): New mode attribute.
2743 * config/arm/neon.md (vec_extract<mode>): Renamed to ...
2744 (vec_extract<mode><V_elem_l>): ... this.
2745 (vec_extractv2di): Renamed to ...
2746 (vec_extractv2didi): ... this.
2747 (vec_init<mode>): Renamed to ...
2748 (vec_init<mode><V_elem_l>): ... this.
2749 (reduc_plus_scal_<mode>, reduc_plus_scal_v2di, reduc_smin_scal_<mode>,
2750 reduc_smax_scal_<mode>, reduc_umin_scal_<mode>,
2751 reduc_umax_scal_<mode>, neon_vget_lane<mode>, neon_vget_laneu<mode>):
2752 Add element mode after gen_vec_extract* calls.
2753 * config/mips/mips-msa.md (vec_init<mode>): Renamed to ...
2754 (vec_init<mode><unitmode>): ... this.
2755 (vec_extract<mode>): Renamed to ...
2756 (vec_extract<mode><unitmode>): ... this.
2757 * config/mips/loongson.md (vec_init<mode>): Renamed to ...
2758 (vec_init<mode><unitmode>): ... this.
2759 * config/mips/mips-ps-3d.md (vec_initv2sf): Renamed to ...
2760 (vec_initv2sfsf): ... this.
2761 (vec_extractv2sf): Renamed to ...
2762 (vec_extractv2sfsf): ... this.
2763 (reduc_plus_scal_v2sf, reduc_smin_scal_v2sf, reduc_smax_scal_v2sf):
2764 Add element mode after gen_vec_extract* calls.
2765 * config/mips/mips.md (unitmode): New mode iterator.
2766 * config/spu/spu.c (spu_expand_prologue, spu_allocate_stack,
2767 spu_builtin_extract): Add element mode after gen_vec_extract* calls.
2768 * config/spu/spu.md (inner_l): New mode attribute.
2769 (vec_init<mode>): Renamed to ...
2770 (vec_init<mode><inner_l>): ... this.
2771 (vec_extract<mode>): Renamed to ...
2772 (vec_extract<mode><inner_l>): ... this.
2773 * config/sparc/sparc.md (veltmode): New mode iterator.
2774 (vec_init<VMALL:mode>): Renamed to ...
2775 (vec_init<VMALL:mode><VMALL:veltmode>): ... this.
2776 * config/ia64/vect.md (vec_initv2si): Renamed to ...
2777 (vec_initv2sisi): ... this.
2778 (vec_initv2sf): Renamed to ...
2779 (vec_initv2sfsf): ... this.
2780 (vec_extractv2sf): Renamed to ...
2781 (vec_extractv2sfsf): ... this.
2782 * config/powerpcspe/vector.md (VEC_base_l): New mode attribute.
2783 (vec_init<mode>): Renamed to ...
2784 (vec_init<mode><VEC_base_l>): ... this.
2785 (vec_extract<mode>): Renamed to ...
2786 (vec_extract<mode><VEC_base_l>): ... this.
2787 * config/powerpcspe/paired.md (vec_initv2sf): Renamed to ...
2788 (vec_initv2sfsf): ... this.
2789 * config/powerpcspe/altivec.md (splitter, altivec_copysign_v4sf3,
2790 vec_unpacku_hi_v16qi, vec_unpacku_hi_v8hi, vec_unpacku_lo_v16qi,
2791 vec_unpacku_lo_v8hi, mulv16qi3): Add element mode after mode in
2792 gen_vec_init* calls.
2793
2794 2017-08-01 Richard Biener <rguenther@suse.de>
2795
2796 PR tree-optimization/81297
2797 * tree-vrp.c (get_single_symbol): Remove assert, instead drop
2798 TREE_OVERFLOW from INTEGER_CSTs.
2799
2800 2017-07-31 Segher Boessenkool <segher@kernel.crashing.org>
2801
2802 * config/rs6000/rs6000.c (enum rs6000_reg_type): Delete trailing comma.
2803
2804 2017-07-31 Carl Love <cel@us.ibm.com>
2805
2806 * config/rs6000/rs6000-c: Add support for built-in functions
2807 vector signed char vec_xl_be (signed long long, signed char *);
2808 vector unsigned char vec_xl_be (signed long long, unsigned char *);
2809 vector signed int vec_xl_be (signed long long, signed int *);
2810 vector unsigned int vec_xl_be (signed long long, unsigned int *);
2811 vector signed long long vec_xl_be (signed long long, signed long long *);
2812 vector unsigned long long vec_xl_be (signed long long, unsigned long long *);
2813 vector signed short vec_xl_be (signed long long, signed short *);
2814 vector unsigned short vec_xl_be (signed long long, unsigned short *);
2815 vector double vec_xl_be (signed long long, double *);
2816 vector float vec_xl_be (signed long long, float *);
2817 * config/rs6000/altivec.h (vec_xl_be): Add #define.
2818 * config/rs6000/rs6000-builtin.def (XL_BE_V16QI, XL_BE_V8HI, XL_BE_V4SI)
2819 XL_BE_V2DI, XL_BE_V4SF, XL_BE_V2DF, XL_BE): Add definitions
2820 for the builtins.
2821 * config/rs6000/rs6000.c (altivec_expand_xl_be_builtin): Add function.
2822 (altivec_expand_builtin): Add switch statement to call
2823 altivec_expand_xl_be for each builtin.
2824 (altivec_init_builtins): Add def_builtin for _builtin_vsx_le_be_v8hi,
2825 __builtin_vsx_le_be_v4si, __builtin_vsx_le_be_v2di,
2826 __builtin_vsx_le_be_v4sf, __builtin_vsx_le_be_v2df,
2827 __builtin_vsx_le_be_v16qi.
2828 * doc/extend.texi: Update the built-in documentation file for the
2829 new built-in functions.
2830
2831 2017-07-31 Uros Bizjak <ubizjak@gmail.com>
2832
2833 PR target/25967
2834 * config/i386/i386.c (ix86_allocate_stack_slots_for_args):
2835 New function.
2836 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
2837
2838 2017-07-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2839
2840 * config.gcc: Add z14.
2841 * config/s390/driver-native.c (s390_host_detect_local_cpu): Add
2842 CPU model numbers for z13s and z14.
2843 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Replace
2844 arch12 with z14.
2845 * config/s390/s390-opts.h (enum processor_type): Rename
2846 PROCESSOR_ARCH12 to PROCESSOR_3906_Z14.
2847 * config/s390/s390.c (processor_table): Add field for CPU name to
2848 be passed to Binutils.
2849 (s390_asm_output_machine_for_arch): Use the new field in
2850 processor_table for Binutils.
2851 (s390_expand_builtin): Replace arch12 with z14.
2852 (s390_issue_rate): Rename PROCESSOR_ARCH12 to PROCESSOR_3906_Z14.
2853 (s390_get_sched_attrmask): Likewise.
2854 (s390_get_unit_mask): Likewise.
2855 * config/s390/s390.opt: Add z14 to processor_type enum.
2856
2857 2017-07-31 Martin Jambor <mjambor@suse.cz>
2858
2859 PR hsa/81477
2860 * ipa-fnsummary.c (ipa_fn_summary_generate): Set versionable
2861 regardless of optimization level.
2862
2863 2017-07-31 Jan Hubicka <hubicka@ucw.cz>
2864 Martin Liska <mliska@suse.cz>
2865
2866 * predict.def: Remove old comment and adjust probability.
2867 * gimplify.c (should_warn_for_implicit_fallthrough): Ignore
2868 PREDICT statements.
2869
2870 2017-07-31 Uros Bizjak <ubizjak@gmail.com>
2871
2872 PR target/25967
2873 * config/i386/i386.c (ix86_function_naked): New function.
2874 (ix86_can_use_return_insn_p): Return false for naked functions.
2875 (ix86_expand_prologue): Skip prologue for naked functions.
2876 (ix86_expand_epilogue): Skip epilogue for naked functions
2877 and emit trap instruction.
2878 (ix86_warn_func_return): New function.
2879 (ix86_attribute_table): Add "naked" attribute specification.
2880 (TARGET_WARN_FUNC_RETURN): Define.
2881 * doc/extend.texi (x86 Function Attributes) <naked>: Document it.
2882
2883 2017-07-31 Martin Liska <mliska@suse.cz>
2884
2885 * gimple-pretty-print.c (dump_gimple_label): Never dump BB info.
2886 (dump_gimple_bb_header): Always dump BB info.
2887 (pp_cfg_jump): Do not append info about BB when dumping a jump.
2888
2889 2017-07-31 Martin Liska <mliska@suse.cz>
2890
2891 PR sanitize/81530
2892 * convert.c (convert_to_integer_1): Guard condition with flag_sanitize_p
2893 also with current_function_decl non-null equality.
2894
2895 2017-07-31 Jakub Jelinek <jakub@redhat.com>
2896
2897 PR sanitizer/81604
2898 * ubsan.c (ubsan_type_descriptor): For UBSAN_PRINT_ARRAY don't
2899 change type to the element type, instead add eltype variable and
2900 use it where we are interested in the element type.
2901
2902 PR tree-optimization/81603
2903 * ipa-polymorphic-call.c
2904 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Perform
2905 offset arithmetic in offset_int, bail out if the resulting bit offset
2906 doesn't fit into shwi.
2907
2908 2017-07-31 Martin Liska <mliska@suse.cz>
2909
2910 * gimplify.c (mostly_copy_tree_r): Remove Java specific hunk.
2911 (gimplify_save_expr): Fix comment.
2912
2913 2017-07-30 H.J. Lu <hongjiu.lu@intel.com>
2914
2915 PR target/79793
2916 * config/i386/i386.c (ix86_function_arg): Update arguments for
2917 exception handler.
2918 (ix86_compute_frame_layout): Set the initial stack offset to
2919 INCOMING_FRAME_SP_OFFSET. Update red-zone offset with
2920 INCOMING_FRAME_SP_OFFSET.
2921 (ix86_expand_epilogue): Don't pop the 'ERROR_CODE' off the
2922 stack before exception handler returns.
2923 * config/i386/i386.h (INCOMING_FRAME_SP_OFFSET): Add the
2924 the 'ERROR_CODE' for exception handler.
2925
2926 2017-07-30 Uros Bizjak <ubizjak@gmail.com>
2927
2928 * config/i386/i386.h (ASM_PRINTF_EXTENSIONS): New macro.
2929 (ASM_OUTPUT_REG_PUSH): Rewrite with new operand modifiers.
2930 (ASM_OUTPUT_REG_POP): Ditto.
2931 * config/i386/i386.c (ix86_asm_output_function_label): Use fputs
2932 instead of asm_fprintf to output pure string.
2933
2934 2017-07-29 Jakub Jelinek <jakub@redhat.com>
2935
2936 * debug.h (struct gcc_debug_hooks): Add IMPLICIT argument
2937 to imported_module_or_decl hook.
2938 (debug_nothing_tree_tree_tree_bool): Remove.
2939 (debug_nothing_tree_tree_tree_bool_bool): New declaration.
2940 * debug.c (do_nothing_debug_hooks): Use
2941 debug_nothing_tree_tree_tree_bool_bool instead of
2942 debug_nothing_tree_tree_tree_bool.
2943 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2944 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
2945 * sdbout.c (sdb_debug_hooks): Likewise.
2946 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
2947 (gen_namespace_die): Add DW_AT_export_symbols attribute if
2948 langhook wants it.
2949 (dwarf2out_imported_module_or_decl): Add IMPLICIT argument,
2950 if true, -gdwarf-5 and decl will have DW_AT_export_symbols
2951 attribute, don't add anything.
2952
2953 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2954
2955 * fold-const.c (fold_build1_stat_loc): Remove _stat from name.
2956 (fold_build2_stat_loc): Likewise.
2957 (fold_build3_stat_loc): Likewise.
2958 * fold-const.h (fold_build1, fold_build2, fold_build3): Adjust.
2959 (fold_build1_loc): Remove macro.
2960 (fold_build2_loc): Likewise.
2961 (fold_build3_loc): Likewise.
2962
2963 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2964
2965 * gimple.c (gimple_build_debug_bind_stat): Remove _stat from name.
2966 (gimple_build_debug_bind_source_stat): Likewise.
2967 * gimple.h (gimple_build_debug_bind): Remove macro.
2968 (gimple_build_debug_bind_source): Likewise.
2969
2970 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2971
2972 * bitmap.c (bitmap_alloc): Adjust.
2973 (bitmap_gc_alloc): Likewise.
2974 * bitmap.h (bitmap_initialize_stat): Remove _stat from name.
2975
2976 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2977
2978 * bitmap.c (bitmap_obstack_alloc_stat): Rename to bitmap_alloc.
2979 (bitmap_gc_alloc_stat): Rename to bitmap_gc_alloc.
2980 * bitmap.h (bitmap_obstack_alloc_stat): Adjust prototype.
2981 (bitmap_gc_alloc_stat): Likewise.
2982 (BITMAP_ALLOC, BITMAP_GGC_ALLOC): Adjust.
2983
2984 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2985
2986 * rtl.c (shallow_copy_rtx_stat): Remove _stat from name.
2987 * rtl.h (shallow_copy_rtx): Remove macro.
2988
2989 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2990
2991 * emit-rtl.c (gen_raw_REG): Adjust.
2992 * gengenrtl.c (gendef): Likewise.
2993 * rtl.c (rtx_alloc_stat): Remove _stat from name.
2994 * rtl.h (rtx_alloc): Remove macro.
2995
2996 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2997
2998 * tree.c (build_tree_list_vec_stat): Remove _stat from name.
2999 (build_tree_list_stat): Likewise.
3000 * tree.h (build_tree_list): Remove macro.
3001 (build_tree_list_vec): Likewise.
3002
3003 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3004
3005 * tree.c (make_vector_stat): Remove _stat from name.
3006 (build_vector_stat): Likewise.
3007 * tree.h (make_vector_stat): Remove macro.
3008 (build_vector_stat): Likewise.
3009
3010 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3011
3012 * tree.h (build_var_debug_value): Remove prototype.
3013
3014 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3015
3016 * tree.c (tree_cons_stat): Remove _stat from name.
3017 * tree.h (tree_cons): Remove macro.
3018
3019 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3020
3021 * tree.c (build_vl_exp_stat): Remove _stat from name.
3022 * tree.h (build_vl_exp): Remove macro.
3023
3024 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3025
3026 * tree.c (build_decl_stat): Remove _stat from name.
3027 * tree.h (build_decl): Remove macro.
3028
3029 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3030
3031 * gimple.c (gimple_build_with_ops_stat): Adjust.
3032 (gimple_alloc_stat): Remove _stat from name.
3033 * gimple.h (gimple_alloc): Remove macro.
3034
3035 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3036
3037 * tree.c (make_tree_vec_stat): Remove _stat from name.
3038 (grow_tree_vec_stat): Likewise.
3039 * tree.h (make_tree_vec_stat): Adjust prototype.
3040 (grow_tree_vec_stat): Likewise.
3041 (make_tree_vec): Remove macro.
3042 (grow_tree_vec): Likewise.
3043
3044 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3045
3046 * fold-const.c (fold_build1_stat_loc): Adjust.
3047 (fold_build2_stat_loc): Likewise.
3048 (fold_build3_stat_loc): Likewise.
3049 * tree.c (build0_stat): Remove _stat from name.
3050 (build1_stat): Likewise.
3051 (build2_stat): Likewise.
3052 (build3_stat): Likewise.
3053 (build4_stat): Likewise.
3054 (build5_stat): Likewise.
3055 * tree.h (build1_loc): Remove macro, and rename _stat function
3056 to this.
3057 (build2_loc): Likewise.
3058 (build3_loc): Likewise.
3059 (build4_loc): Likewise.
3060 (build5_loc): Likewise.
3061
3062 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3063
3064 * tree.c (make_int_cst_stat): Remove _stat from name.
3065 * tree.h (make_int_cst_stat): Adjust prototype.
3066 (make_int_cst): Remove macro.
3067
3068 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3069
3070 * tree.c (make_tre_binfo_stat): Remove _stat from name.
3071 * tree.h (make_tree_binfo_stat): Adjust prototype.
3072 (make_tree_binfo): Remove.
3073
3074 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3075
3076 * tree.c (copy_node_stat): Rename to copy_node.
3077 (build_distinct_type_copy): Adjust.
3078 * tree.h (copy_node_stat): Adjust prototype.
3079 (copy_node): Remove macro.
3080
3081 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3082
3083 * tree.c (make_node_stat): rename to make_node.
3084 (build_tree_list_stat): Adjust.
3085 (build0_stat): Likewise.
3086 (build2_stat): Likewise.
3087 (build3_stat): Likewise.
3088 (build4_stat): Likewise.
3089 (build5_stat): Likewise.
3090 (build_decl_stat): Likewise.
3091 * tree.h (make_node_stat): Adjust prototype.
3092 (make_node): remove macro.
3093
3094 2017-07-28 Peter Bergner <bergner@vnet.ibm.com>
3095
3096 * config/rs6000/ppc-auxv.h (PPC_FEATURE2_DARN): New define.
3097 (PPC_FEATURE2_SCV): Likewise.
3098 * config/rs6000/rs6000.c (cpu_supports_info): Use them.
3099
3100 2017-07-28 Tamar Christina <tamar.christina@arm.com>
3101
3102 * config/aarch64/aarch64.c
3103 (aarch64_internal_mov_immediate): Add new special pattern.
3104 * config/aarch64/aarch64.md (*movdi_aarch64):
3105 Add reg/32bit const mov case.
3106
3107 2017-07-28 Tamar Christina <tamar.christina@arm.com>
3108 Richard Sandiford <richard.sandiford@linaro.org>
3109
3110 * config/aarch64/aarch64.md (mov<mode>): Generalize.
3111 (*movhf_aarch64, *movsf_aarch64, *movdf_aarch64):
3112 Add integer and movi cases.
3113 (movi-split-hf-df-sf split, fp16): New.
3114 (enabled): Added TARGET_FP_F16INST.
3115 * config/aarch64/iterators.md (GPF_HF): New.
3116 * config/aarch64/predicates.md (aarch64_reg_or_fp_float): New.
3117
3118 2017-07-28 Tamar Christina <tamar.christina@arm.com>
3119
3120 * config/aarch64/aarch64.c
3121 (aarch64_simd_container_mode): Add prototype.
3122 (aarch64_expand_mov_immediate): Add HI support.
3123 (aarch64_reinterpret_float_as_int, aarch64_float_const_rtx_p: New.
3124 (aarch64_can_const_movi_rtx_p): New.
3125 (aarch64_preferred_reload_class):
3126 Remove restrictions of using FP registers for certain SIMD operations.
3127 (aarch64_rtx_costs): Added new cost for CONST_DOUBLE moves.
3128 (aarch64_valid_floating_const): Add integer move validation.
3129 (aarch64_simd_imm_scalar_p): Remove.
3130 (aarch64_output_scalar_simd_mov_immediate): Generalize function.
3131 (aarch64_legitimate_constant_p): Expand list of supported cases.
3132 * config/aarch64/aarch64-protos.h
3133 (aarch64_float_const_rtx_p, aarch64_can_const_movi_rtx_p): New.
3134 (aarch64_reinterpret_float_as_int): New.
3135 (aarch64_simd_imm_scalar_p): Remove.
3136 * config/aarch64/constraints.md (Uvi): New.
3137 (Dd): Split into Ds and new Dd.
3138 * config/aarch64/aarch64.md (*movsi_aarch64):
3139 Add SIMD mov case.
3140 (*movdi_aarch64): Add SIMD mov case.
3141
3142 2017-07-28 Bin Cheng <bin.cheng@arm.com>
3143
3144 * tree-predcom.c: (struct chain): Handle store-store chain in which
3145 stores for elimination only store loop invariant values.
3146 (execute_pred_commoning_chain): Ditto.
3147 (prepare_initializers_chain_store_elim): Ditto.
3148 (prepare_finalizers): Ditto.
3149 (is_inv_store_elimination_chain): New function.
3150 (initialize_root_vars_store_elim_1): New function.
3151
3152 2017-07-28 Bin Cheng <bin.cheng@arm.com>
3153
3154 * tree-predcom.c: Revise general description of the pass.
3155 (enum chain_type): New enum type for store elimination.
3156 (struct chain): New field supporting store elimination.
3157 (struct component): Ditto.
3158 (dump_chain): Dump store-stores chain.
3159 (release_chain): Release resources.
3160 (split_data_refs_to_components): Compute and create component
3161 contains only stores for elimination.
3162 (get_chain_last_ref_at): New function.
3163 (make_invariant_chain): Initialization.
3164 (make_rooted_chain): Specify chain type in parameter and record it.
3165 (add_looparound_copies): Skip for store-stores chain.
3166 (determine_roots_comp): Compute type of chain and pass it to
3167 make_rooted_chain.
3168 (initialize_root_vars_store_elim_2): New function.
3169 (finalize_eliminated_stores): New function.
3170 (remove_stmt): Handle store for elimination.
3171 (execute_pred_commoning_chain): Execute predictive commoning on
3172 store-store chains.
3173 (determine_unroll_factor): Skip unroll for store-stores chain.
3174 (prepare_initializers_chain_store_elim): New function.
3175 (prepare_initializers_chain): Hanlde store-store chain.
3176 (prepare_finalizers_chain, prepare_finalizers): New function.
3177 (tree_predictive_commoning_loop): Return integer value indicating
3178 if loop is unrolled or lcssa form is corrupted.
3179 (tree_predictive_commoning): Rewrite for lcssa form if necessary.
3180
3181 2017-07-28 Bin Cheng <bin.cheng@arm.com>
3182
3183 * tree-predcom.c (initialize_root): Delete.
3184 (execute_pred_commoning_chain): Initialize root vars and replace
3185 reference of non-combined chain directly, rather than call above
3186 function.
3187
3188 2017-07-28 Bin Cheng <bin.cheng@arm.com>
3189
3190 * tree-predcom.c (ref_at_iteration): Add parameter NITERS. Compute
3191 memory reference to DR at (NITERS + ITERS)-th iteration of loop.
3192
3193 2017-07-28 Bin Cheng <bin.cheng@arm.com>
3194
3195 * tree-predcom.c (struct chain): New field init_seq.
3196 (release_chain): Release init_seq.
3197 (prepare_initializers_chain): Record intialization stmts in above
3198 field.
3199 (insert_init_seqs): New function.
3200 (tree_predictive_commoning_loop): Call insert_init_seqs.
3201
3202 2017-07-28 Bin Cheng <bin.cheng@arm.com>
3203
3204 * tree-predcom.c (determine_roots_comp): Skip trivial components.
3205
3206 2017-07-28 Richard Biener <rguenther@suse.de>
3207
3208 * match.pd: Remove superfluous :c.
3209 * genmatch.c (simplify::id): Add member.
3210 (lower_commutative, lower_opt_convert, lower_cond, lower_for):
3211 Copy id.
3212 (current_id): New global.
3213 (dt_node::parent): Move from ...
3214 (dt_operand::parent): ... here. Add for_id member.
3215 (is_a_helper <dt_operand *>::test): DT_TRUE is also a dt_operand.
3216 (decision_tree::find_node): Relax order requirement when
3217 merging DT_TRUE nodes to ones inbetween the current simplify
3218 and the one we try to merge with. Add diagnostic whenever
3219 we need to enforce pattern order by not merging.
3220 (decision_tree::insert): Set current_id.
3221 (decision_tree::print_node): Dump parent node and for_id.
3222 (parser::last_id): Add member.
3223 (parser::push_simplify): Assign unique id.
3224 (parser::parser): Initialize last_id.
3225
3226 2017-07-28 Martin Liska <mliska@suse.cz>
3227
3228 PR sanitizer/81340
3229 * sanopt.c (sanitize_rewrite_addressable_params): Set VALUE_EXPR after
3230 gimple_build_debug_bind.
3231
3232 2017-07-28 Richard Biener <rguenther@suse.de>
3233
3234 PR tree-optimization/81502
3235 * match.pd: Add pattern combining BIT_INSERT_EXPR with
3236 BIT_FIELD_REF.
3237 * tree-cfg.c (verify_expr): Verify types of BIT_FIELD_REF
3238 size/pos operands.
3239 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR pos.
3240 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Use bitsizetype
3241 for BIT_FIELD_REF args.
3242 * fold-const.c (make_bit_field_ref): Likewise.
3243 * tree-vect-stmts.c (vectorizable_simd_clone_call): Likewise.
3244
3245 2017-07-28 Jakub Jelinek <jakub@redhat.com>
3246
3247 PR sanitizer/80998
3248 * sanopt.c (pass_sanopt::execute): Handle IFN_UBSAN_PTR.
3249 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.
3250 * flag-types.h (enum sanitize_code): Add SANITIZER_POINTER_OVERFLOW.
3251 Or it into SANITIZER_UNDEFINED.
3252 * ubsan.c: Include gimple-fold.h and varasm.h.
3253 (ubsan_expand_ptr_ifn): New function.
3254 (instrument_pointer_overflow): New function.
3255 (maybe_instrument_pointer_overflow): New function.
3256 (instrument_object_size): Formatting fix.
3257 (pass_ubsan::execute): Call instrument_pointer_overflow
3258 and maybe_instrument_pointer_overflow.
3259 * internal-fn.c (expand_UBSAN_PTR): New function.
3260 * ubsan.h (ubsan_expand_ptr_ifn): Declare.
3261 * sanitizer.def (__ubsan_handle_pointer_overflow,
3262 __ubsan_handle_pointer_overflow_abort): New builtins.
3263 * tree-ssa-tail-merge.c (merge_stmts_p): Handle IFN_UBSAN_PTR.
3264 * internal-fn.def (UBSAN_PTR): New internal function.
3265 * opts.c (sanitizer_opts): Add pointer-overflow.
3266 * lto-streamer-in.c (input_function): Handle IFN_UBSAN_PTR.
3267 * fold-const.c (build_range_check): Compute pointer range check in
3268 integral type if pointer arithmetics would be needed. Formatting
3269 fixes.
3270
3271 2017-07-28 Martin Liska <mliska@suse.cz>
3272
3273 PR sanitizer/81460
3274 * sanopt.c (sanitize_rewrite_addressable_params): Do not rewrite
3275 parameters that are of a variable-length.
3276
3277 2017-07-28 Sebastian Huber <sebastian.huber@embedded-brains.de>
3278
3279 * config.gcc (powerpc-*-rtems*): Remove rs6000/eabi.h. Add
3280 rs6000/biarch64.h.
3281 * config/rs6000/rtems.h (ASM_DECLARE_FUNCTION_SIZE): New macro.
3282 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3283 (CRT_CALL_STATIC_FUNCTION): Likewise.
3284 (ASM_DEFAULT_SPEC): New define.
3285 (ASM_SPEC32): Likewise.
3286 (ASM_SPEC64): Likewise.
3287 (ASM_SPEC_COMMON): Likewise.
3288 (ASM_SPEC): Likewise.
3289 (INVALID_64BIT): Likewise.
3290 (LINK_OS_DEFAULT_SPEC): Likewise.
3291 (LINK_OS_SPEC32): Likewise.
3292 (LINK_OS_SPEC64): Likewise.
3293 (POWERPC_LINUX): Likewise.
3294 (PTRDIFF_TYPE): Likewise.
3295 (RESTORE_FP_PREFIX): Likewise.
3296 (RESTORE_FP_SUFFIX): Likewise.
3297 (SAVE_FP_PREFIX): Likewise.
3298 (SAVE_FP_SUFFIX): Likewise.
3299 (SIZE_TYPE): Likewise.
3300 (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
3301 (TARGET_64BIT): Likewise.
3302 (TARGET_64BIT): Likewise.
3303 (TARGET_AIX): Likewise.
3304 (WCHAR_TYPE_SIZE): Likewise.
3305 (WCHAR_TYPE): Undefine.
3306 (TARGET_OS_CPP_BUILTINS): Add 64-bit PowerPC defines.
3307 (CPP_OS_DEFAULT_SPEC): Use previous CPP_OS_RTEMS_SPEC.
3308 (CPP_OS_RTEMS_SPEC): Delete.
3309 (SUBSUBTARGET_EXTRA_SPECS): Remove cpp_os_rtems. Add
3310 asm_spec_common, asm_spec32, asm_spec64, link_os_spec32, and
3311 link_os_spec64.
3312 * config/rs6000/t-rtems: Add mcpu=e6500/m64 multilibs.
3313
3314 2017-07-28 Jakub Jelinek <jakub@redhat.com>
3315
3316 PR tree-optimization/81578
3317 * tree-parloops.c (build_new_reduction): Bail out if
3318 reduction_code isn't one of the standard OpenMP reductions.
3319 Move the details printing after that decision.
3320
3321 2017-07-27 Peter Bergner <bergner@vnet.ibm.com>
3322
3323 * config/rs6000/predicates.md (volatile_mem_operand): Remove code
3324 related to reload_in_progress.
3325 (splat_input_operand): Likewise.
3326 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
3327 Delete prototype.
3328 * config/rs6000/rs6000.c (machine_function): Remove sdmode_stack_slot
3329 field.
3330 (TARGET_EXPAND_TO_RTL_HOOK): Delete.
3331 (TARGET_INSTANTIATE_DECLS): Likewise.
3332 (legitimate_indexed_address_p): Delete reload_in_progress code.
3333 (rs6000_debug_legitimate_address_p): Likewise.
3334 (rs6000_eliminate_indexed_memrefs): Likewise.
3335 (rs6000_emit_le_vsx_store): Likewise.
3336 (rs6000_emit_move_si_sf_subreg): Likewise.
3337 (rs6000_emit_move): Likewise.
3338 (register_to_reg_type): Likewise.
3339 (rs6000_pre_atomic_barrier): Likewise.
3340 (rs6000_machopic_legitimize_pic_address): Likewise.
3341 (rs6000_allocate_stack_temp): Likewise.
3342 (rs6000_address_for_fpconvert): Likewise.
3343 (rs6000_address_for_altivec): Likewise.
3344 (rs6000_secondary_memory_needed_rtx): Delete function.
3345 (rs6000_check_sdmode): Likewise.
3346 (rs6000_alloc_sdmode_stack_slot): Likewise.
3347 (rs6000_instantiate_decls): Likewise.
3348 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
3349 * config/rs6000/rs6000.md (splitter for *movsi_got_internal):
3350 Delete reload_in_progress.
3351 (*vec_reload_and_plus_<mptrsize>): Likewise.
3352 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
3353 (vsx_div_v2di): Likewise.
3354 (vsx_udiv_v2di): Likewise.
3355
3356 2017-07-27 Peter Bergner <bergner@vnet.ibm.com>
3357
3358 * config/rs6000/rs6000.opt (mlra): Replace with stub.
3359 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Delete OPTION_MASK_LRA.
3360 * config/rs6000/rs6000.c (TARGET_LRA_P): Delete.
3361 (rs6000_debug_reg_global): Delete print of LRA status.
3362 (rs6000_option_override_internal): Delete dead LRA related code.
3363 (rs6000_lra_p): Delete function.
3364 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mlra.
3365
3366 2017-07-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
3367
3368 * config.gcc (riscv*-*-elf*): Add (riscv*-*-rtems*).
3369 * config/riscv/rtems.h: New file.
3370
3371 2017-07-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3372 Sudakshina Das <sudi.das@arm.com>
3373
3374 * config/aarch64/aarch64.md
3375 (define_split for and<mode>3nr_compare): Move
3376 non aarch64_logical_operand to a register.
3377 (define_split for and_<SHIFT:optab><mode>3nr_compare0): Move non
3378 register immediate operand to a register.
3379 * config/aarch64/predicates.md (aarch64_mov_imm_operand): New.
3380
3381 2017-07-27 Peter Bergner <bergner@vnet.ibm.com>
3382
3383 PR middle-end/81564
3384 * tree-cfg.c (group_case_labels_stmt): Handle already deleted blocks.
3385
3386 2017-07-27 Richard Biener <rguenther@suse.de>
3387
3388 PR tree-optimization/81573
3389 PR tree-optimization/81494
3390 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
3391 multi defuse cycle case.
3392
3393 2017-07-27 Richard Biener <rguenther@suse.de>
3394
3395 PR tree-optimization/81571
3396 * tree-vect-slp.c (vect_build_slp_tree): Properly verify reduction
3397 PHIs.
3398
3399 2017-07-27 Eric Botcazou <ebotcazou@adacore.com>
3400
3401 * config/sparc/sparc.c (sparc_option_override): Set MASK_FSMULD flag
3402 earlier and only if MASK_FPU is set. Adjust formatting.
3403
3404 2017-07-27 Martin Liska <mliska@suse.cz>
3405
3406 * opt-functions.awk: Add validation of value of Init.
3407 * optc-gen.awk: Pass new argument.
3408
3409 2017-07-27 Martin Liska <mliska@suse.cz>
3410
3411 * auto-profile.c (autofdo_source_profile::update_inlined_ind_target):
3412 Fix wrong condition.
3413
3414 2017-07-27 Martin Liska <mliska@suse.cz>
3415
3416 * auto-profile.c (afdo_annotate_cfg): Assign zero counts to
3417 BBs and edges seen by autoFDO.
3418
3419 2017-07-27 Richard Biener <rguenther@suse.de>
3420
3421 PR tree-optimization/81502
3422 * tree-ssa.c (non_rewritable_lvalue_p): Handle BIT_INSERT_EXPR
3423 with incompatible but same sized type.
3424 (execute_update_addresses_taken): Likewise.
3425
3426 2017-07-27 James Greenhalgh <james.greenhalgh@arm.com>
3427
3428 * tree-ssa-loop-ch.c (pass_ch::process_loop_p): Guard on
3429 flag_tree_loop_vectorize rather than flag_tree_vectorize.
3430
3431 2017-07-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3432
3433 PR target/81534
3434 * config/s390/s390.md ("*atomic_compare_and_swap<mode>_1")
3435 ("*atomic_compare_and_swapdi_2", "*atomic_compare_and_swapsi_3"):
3436 Change s_operand to memory_operand.
3437
3438 2017-07-27 Richard Sandiford <richard.sandiford@linaro.org>
3439
3440 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_permute): Declare.
3441 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Replace with...
3442 (rs6000_emit_le_vsx_permute): ...this. Take the destination as input.
3443 Emit instructions rather than returning an expression. Handle TFmode
3444 and KFmode by casting to TImode.
3445 (rs6000_emit_le_vsx_load): Update to use rs6000_emit_le_vsx_permute.
3446 (rs6000_emit_le_vsx_store): Likewise.
3447 * config/rs6000/vsx.md (VSX_TI): New iterator.
3448 (*vsx_le_permute_<mode>): Use it instead of VSX_LE_128.
3449 (*vsx_le_undo_permute_<mode>): Likewise.
3450 (*vsx_le_perm_load_<mode>): Use rs6000_emit_le_vsx_permute to
3451 emit the split sequence.
3452 (*vsx_le_perm_store_<mode>): Likewise.
3453
3454 2017-07-27 Jakub Jelinek <jakub@redhat.com>
3455
3456 PR tree-optimization/81555
3457 PR tree-optimization/81556
3458 * tree-ssa-reassoc.c (rewrite_expr_tree): Add NEXT_CHANGED argument,
3459 if true, force CHANGED for the recursive invocation.
3460 (reassociate_bb): Remember original length of ops array, pass
3461 len != orig_len as NEXT_CHANGED in rewrite_expr_tree call.
3462
3463 * attribs.c (decl_attributes): Imply noinline, noclone and no_icf
3464 attributes for noipa attribute. For naked attribute use
3465 lookup_attribute first before lookup_attribute_spec.
3466 * final.c (rest_of_handle_final): Disable IPA RA for functions with
3467 noipa attribute.
3468 * ipa-visibility.c (non_local_p): Fix comment typos. Return true
3469 for functions with noipa attribute.
3470 (cgraph_externally_visible_p): Return true for functions with noipa
3471 attribute.
3472 * cgraph.c (cgraph_node::get_availability): Return AVAIL_INTERPOSABLE
3473 for functions with noipa attribute.
3474 * doc/extend.texi: Document noipa function attribute.
3475 * tree-ssa-structalias.c (refered_from_nonlocal_fn): Set *nonlocal_p
3476 also for functions with noipa attribute.
3477 (ipa_pta_execute): Set nonlocal_p also for nodes with noipa attribute.
3478
3479 2017-07-26 Andrew Pinski <apinski@cavium.com>
3480
3481 * config/aarch64/aarch64.c (thunderx_vector_cost): Decrease cost of
3482 vec_unalign_load_cost and vec_unalign_store_cost.
3483
3484 2017-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3485
3486 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Delete
3487 -mvsx-small-integer option.
3488 (ISA_3_0_MASKS_IEEE): Likewise.
3489 (OTHER_VSX_VECTOR_MASKS): Likewise.
3490 (POWERPC_MASKS): Likewise.
3491 * config/rs6000/rs6000.opt (-mvsx-small-integer): Likewise.
3492 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Simplify
3493 code, only testing for DImode being allowed in non-VSX floating
3494 point registers.
3495 (rs6000_init_hard_regno_mode_ok): Change TARGET_VSX_SMALL_INTEGER
3496 to TARGET_P8_VECTOR test. Remove redundant VSX test inside of
3497 another VSX test.
3498 (rs6000_option_override_internal): Delete -mvsx-small-integer.
3499 (rs6000_expand_vector_set): Change TARGET_VSX_SMALL_INTEGER to
3500 TARGET_P8_VECTOR test.
3501 (rs6000_secondary_reload_simple_move): Likewise.
3502 (rs6000_preferred_reload_class): Delete TARGET_VSX_SMALL_INTEGER,
3503 since TARGET_P9_VECTOR was already tested.
3504 (rs6000_opt_masks): Remove -mvsx-small-integer.
3505 * config/rs6000/vsx.md (vsx_extract_<mode>): Delete
3506 TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
3507 used.
3508 (vsx_extract_<mode>_p9): Delete TARGET_VSX_SMALL_INTEGER, since a
3509 test for TARGET_VEXTRACTUB was used, and that uses
3510 TARGET_P9_VECTOR.
3511 (p9 extract splitter): Likewise.
3512 (vsx_extract_<mode>_di_p9): Likewise.
3513 (vsx_extract_<mode>_store_p9): Likewise.
3514 (vsx_extract_si): Delete TARGET_VSX_SMALL_INTEGER, since a test
3515 for TARGET_P9_VECTOR was used. Delete code that is now dead with
3516 the elimination of TARGET_VSX_SMALL_INTEGER.
3517 (vsx_extract_<mode>_p8): Likewise.
3518 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>): Likewise.
3519 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Likewise.
3520 (vsx_set_<mode>_p9): Likewise.
3521 (vsx_set_v4sf_p9): Likewise.
3522 (vsx_set_v4sf_p9_zero): Likewise.
3523 (vsx_insert_extract_v4sf_p9): Likewise.
3524 (vsx_insert_extract_v4sf_p9_2): Likewise.
3525 * config/rs6000/rs6000.md (sign extend splitter): Change
3526 TARGET_VSX_SMALL_INTEGER to TARGET_P8_VECTOR test.
3527 (floatsi<mode>2_lfiwax_mem): Likewise.
3528 (floatunssi<mode>2_lfiwzx_mem): Likewise.
3529 (float<QHI:mode><FP_ISA3:mode>2): Delete TARGET_VSX_SMALL_INTEGER,
3530 since a test for TARGET_P9_VECTOR was used.
3531 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
3532 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
3533 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
3534 (fix_trunc<mode>si2): Change TARGET_VSX_SMALL_INTEGER to
3535 TARGET_P8_VECTOR test.
3536 (fix_trunc<mode>si2_stfiwx): Likewise.
3537 (fix_trunc<mode>si2_internal): Likewise.
3538 (fix_trunc<SFDF:mode><QHI:mode>2): Delete
3539 TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
3540 used.
3541 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
3542 (fixuns_trunc<mode>si2): Change TARGET_VSX_SMALL_INTEGER to
3543 TARGET_P8_VECTOR test.
3544 (fixuns_trunc<mode>si2_stfiwx): Likewise.
3545 (fixuns_trunc<SFDF:mode><QHI:mode>2): Delete
3546 TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
3547 used.
3548 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
3549 (fctiw<u>z_<mode>_smallint): Delete TARGET_VSX_SMALL_INTEGER,
3550 since a test for TARGET_P9_VECTOR was used.
3551 (splitter for loading small constants): Likewise.
3552
3553 2017-07-26 Andrew Pinski <apinski@cavium.com>
3554
3555 * config/aarch64/aarch64.c (thunderx_vector_cost): Fix
3556 vec_fp_stmt_cost.
3557
3558 2017-07-26 H.J. Lu <hongjiu.lu@intel.com>
3559
3560 PR target/81563
3561 * config/i386/i386.c (sp_valid_at): Properly check CFA offset.
3562 (fp_valid_at): Likewise.
3563
3564 2017-07-26 James Greenhalgh <james.greenhalgh@arm.com>
3565
3566 * config/aarch64/aarch64.c (cortexa57_addrcost_table): Remove.
3567 (qdf24xx_addrcost_table): Likewise.
3568 (cortexa57_tunings): Update to use generic_branch_cost.
3569 (cortexa72_tunings): Likewise.
3570 (cortexa73_tunings): Likewise.
3571 (qdf24xx_tunings): Likewise.
3572
3573 2017-07-26 James Greenhalgh <james.greenhalgh@arm.com>
3574
3575 * config/aarch64/aarch64.c (cortexa57_branch_cost): Remove.
3576 (thunderx2t99_branch_cost): Likewise.
3577 (cortexa35_tunings): Update to use generic_branch_cost.
3578 (cortexa53_tunings): Likewise.
3579 (cortexa57_tunings): Likewise.
3580 (cortexa72_tunings): Likewise.
3581 (cortexa73_tunings): Likewise.
3582 (thunderx2t99_tunings): Likewise.
3583
3584 2017-07-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
3585
3586 * config/sparc/sparc.c (dump_target_flag_bits): Dump MASK_FSMULD.
3587 (sparc_option_override): Honour MASK_FSMULD.
3588 * config/sparc/sparc.h (MASK_FEATURES): Add MASK_FSMULD.
3589 * config/sparc/sparc.md (muldf3_extend): Use TARGET_FSMULD.
3590 * config/sparc/sparc.opt (mfsmuld): New option.
3591 * doc/invoke.texi (mfsmuld): Document option.
3592
3593 2017-07-26 Marek Polacek <polacek@redhat.com>
3594
3595 PR middle-end/70992
3596 * tree.c (build2_stat): Don't set TREE_CONSTANT on divisions by zero.
3597
3598 2017-07-26 Richard Biener <rguenther@suse.de>
3599
3600 * gimple-match-head.c (do_valueize): Return OP if valueize
3601 returns NULL_TREE.
3602 (get_def): New helper to get at the def stmt of a SSA name
3603 if valueize allows.
3604 * genmatch.c (dt_node::gen_kids_1): Use get_def instead of
3605 do_valueize to get at the def stmt.
3606 (dt_operand::gen_gimple_expr): Simplify do_valueize calls.
3607
3608 2017-07-26 Wilco Dijkstra <wdijkstr@arm.com>
3609
3610 PR middle-end/46932
3611 * auto-inc-dec.c (parse_add_or_inc): Block autoinc on sfp.
3612
3613 2017-07-26 Martin Liska <mliska@suse.cz>
3614
3615 PR sanitize/81186
3616 * function.c (expand_function_start): Make expansion of
3617 nonlocal_goto_save_area after parm_birth_insn.
3618
3619 2017-07-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
3620
3621 * config/sparc/sparc.c (sparc_option_override): Remove MASK_FPU
3622 from all CPU target flags enable members.
3623
3624 2017-07-26 Richard Biener <rguenther@suse.de>
3625
3626 * genmatch.c (dt_simplify::gen): Make iterator vars const.
3627 (decision_tree::gen): Make 'type' const.
3628 (write_predicate): Likewise.
3629
3630 2017-07-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3631
3632 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok):
3633 Eliminate TARGET_UPPER_REGS_{DF,DI,SF} usage.
3634 (rs6000_option_override_internal): Likewise.
3635 (rs6000_expand_vector_set): Likewise.
3636 * config/rs6000/rs6000.h (TARGET_UPPER_REGS_DF): Delete.
3637 (TARGET_UPPER_REGS_SF): Likewise.
3638 (TARGET_UPPER_REGS_DI): Likewise.
3639 (TARGET_VEXTRACTUB): Eliminate TARGET_UPPER_REGS_{DF,DI,SF}.
3640 (TARGET_DIRECT_MOVE_64BIT): Likewise.
3641 * config/rs6000/rs6000.md (ALTIVEC_DFORM): Likewise.
3642 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
3643 (Splitters for DI constants in Altivec registers): Likewise.
3644 * config/rs6000/vsx.md (vsx_set_<mode>_p9): Likewise.
3645 (vsx_set_v4sf_p9): Likewise.
3646 (vsx_set_v4sf_p9_zero): Likewise.
3647 (vsx_insert_extract_v4sf_p9): Likewise.
3648 (vsx_insert_extract_v4sf_p9_2): Likewise.
3649
3650 2017-07-25 Carl Love <cel@us.ibm.com>
3651
3652 * doc/extend.texi: Update the built-in documentation file for the
3653 existing built-in functions
3654 vector signed char vec_cnttz (vector signed char);
3655 vector unsigned char vec_cnttz (vector unsigned char);
3656 vector signed short vec_cnttz (vector signed short);
3657 vector unsigned short vec_cnttz (vector unsigned short);
3658 vector signed int vec_cnttz (vector signed int);
3659 vector unsigned int vec_cnttz (vector unsigned int);
3660 vector signed long long vec_cnttz (vector signed long long);
3661 vector unsigned long long vec_cnttz (vector unsigned long long);
3662
3663 2017-07-25 Andrew Pinski <apinski@cavium.com>
3664
3665 * tree-ssa-uninit.c (warn_uninitialized_vars): Don't warn about memory
3666 accesses where the use is for the first operand of a BIT_INSERT.
3667
3668 2017-07-25 Jim Wilson <jim.wilson@linaro.org>
3669
3670 PR bootstrap/81521
3671 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition): Look
3672 for FUNCTION_DECLs in TYPE_FIELDS rather than TYPE_METHODS.
3673
3674 2017-07-25 Jim Wilson <jim.wilson@linaro.org>
3675
3676 * config/i386/gstabs.h: Delete.
3677 * config/i386/openbsd.h, config/i386/t-openbsd: Likewise.
3678
3679 2017-07-25 Uros Bizjak <ubizjak@gmail.com>
3680
3681 * config/i386/i386.c (ix86_decompose_address): Do not check for
3682 register RTX when looking at index_reg or base_reg.
3683 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use stack_pointer_rtx.
3684
3685 2017-07-25 Eric Botcazou <ebotcazou@adacore.com>
3686
3687 * gimple.c (gimple_assign_set_rhs_with_ops): Do not ask gsi_replace
3688 to update EH info here.
3689
3690 2017-07-25 Alexander Monakov <amonakov@ispras.ru>
3691
3692 * match.pd ((X * CST1) * CST2): Simplify to X * (CST1 * CST2).
3693
3694 2017-07-25 Alexander Monakov <amonakov@ispras.ru>
3695
3696 * match.pd ((X * CST) * Y): Reassociate to (X * Y) * CST.
3697
3698 2017-07-25 Torsten Duwe <duwe@suse.de>
3699
3700 * common.opt: Introduce -fpatchable-function-entry
3701 command line option, and its variables function_entry_patch_area_size
3702 and function_entry_patch_area_start.
3703 * opts.c (common_handle_option): Add -fpatchable_function_entry_ case,
3704 including a two-value parser.
3705 * target.def (print_patchable_function_entry): New target hook.
3706 * targhooks.h (default_print_patchable_function_entry): New function.
3707 * targhooks.c (default_print_patchable_function_entry): Likewise.
3708 * toplev.c (process_options): Switch off IPA-RA if
3709 patchable function entries are being generated.
3710 * varasm.c (assemble_start_function): Look at the
3711 patchable-function-entry command line switch and current
3712 function attributes and maybe generate NOP instructions by
3713 calling the print_patchable_function_entry hook.
3714 * doc/extend.texi: Document patchable_function_entry attribute.
3715 * doc/invoke.texi: Document -fpatchable_function_entry
3716 command line option.
3717 * doc/tm.texi.in (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
3718 New target hook.
3719 * doc/tm.texi: Re-generate.
3720
3721 2017-07-25 Jakub Jelinek <jakub@redhat.com>
3722
3723 PR target/81532
3724 * config/i386/constraints.md (Yd, Ye): Use ALL_SSE_REGS for
3725 TARGET_AVX512DQ rather than TARGET_AVX512BW.
3726
3727 2017-07-25 Tamar Christina <tamar.christina@arm.com>
3728
3729 * config/arm/parsecpu.awk (all_cores): Remove duplicates.
3730
3731 2017-07-25 Richard Biener <rguenther@suse.de>
3732
3733 PR tree-optimization/81455
3734 * tree-ssa-loop-unswitch.c (find_loop_guard): Make sure to
3735 not walk in cycles when looking for guards.
3736
3737 2017-07-25 Richard Biener <rguenther@suse.de>
3738
3739 PR tree-optimization/81529
3740 * tree-vect-stmts.c (process_use): Disregard live induction PHIs
3741 when optimizing backedge uses.
3742
3743 2017-07-25 David Edelsohn <dje.gcc@gmail.com>
3744
3745 * dwarf2asm.c (dw2_asm_output_nstring): Encode double quote
3746 character for AIX.
3747 * dwarf2out.c (output_macinfo): Copy debug_line_section_label
3748 to dl_section_ref. On AIX, append an expression to subtract
3749 the size of the section length to dl_section_ref.
3750
3751 2017-07-25 Segher Boessenkool <segher@kernel.crashing.org>
3752
3753 * configure.ac: If any of the config.* scripts fail, exit 1.
3754 * configure: Regenerate.
3755
3756 2017-07-25 Richard Biener <rguenther@suse.de>
3757
3758 PR middle-end/81546
3759 * tree-ssa-operands.c (verify_imm_links): Remove cap on number
3760 of immediate uses, be more verbose on errors.
3761
3762 2017-07-25 Richard Biener <rguenther@suse.de>
3763
3764 PR tree-optimization/81510
3765 * tree-vect-loop.c (vect_is_simple_reduction): When the
3766 reduction stmt is not inside the loop bail out.
3767
3768 2017-07-25 Richard Biener <rguenther@suse.de>
3769
3770 PR tree-optimization/81303
3771 * tree-vect-loop-manip.c (vect_loop_versioning): Build
3772 profitability check against LOOP_VINFO_NITERSM1.
3773
3774 2017-07-25 Alexander Monakov <amonakov@ispras.ru>
3775
3776 * domwalk.c (cmp_bb_postorder): Simplify.
3777 (sort_bbs_postorder): New function. Use it...
3778 (dom_walker::walk): ...here to optimize common cases.
3779
3780 2017-07-25 Martin Liska <mliska@suse.cz>
3781
3782 PR ipa/81520
3783 * ipa-visibility.c (function_and_variable_visibility): Make the
3784 redirection just on target that supports aliasing.
3785 Fix GNU coding style.
3786
3787 2017-07-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
3788
3789 PR libgcc/61152
3790 * config/aarch64/rtems.h: Add GCC Runtime Library Exception.
3791 Format changes.
3792 * config/arm/rtems.h: Likewise.
3793 * config/bfin/rtems.h: Likewise.
3794 * config/i386/rtemself.h: Likewise.
3795 * config/lm32/rtems.h: Likewise.
3796 * config/m32c/rtems.h: Likewise.
3797 * config/m68k/rtemself.h: Likewise.
3798 * config/microblaze/rtems.h: Likewise.
3799 * config/mips/rtems.h: Likewise.
3800 * config/moxie/rtems.h: Likewise.
3801 * config/nios2/rtems.h: Likewise.
3802 * config/powerpcspe/rtems.h: Likewise.
3803 * config/rs6000/rtems.h: Likewise.
3804 * config/rtems.h: Likewise.
3805 * config/sh/rtems.h: Likewise.
3806 * config/sh/rtemself.h: Likewise.
3807 * config/sparc/rtemself.h: Likewise.
3808
3809 2017-07-25 Georg-Johann Lay <avr@gjlay.de>
3810
3811 PR 81487
3812 * hsa-brig.c (brig_init): Use xasprintf instead of asprintf.
3813 * gimple-pretty-print.c (dump_profile, dump_probability): Same.
3814 * tree-ssa-structalias.c (alias_get_name): Same.
3815
3816 2017-07-25 Bin Cheng <bin.cheng@arm.com>
3817
3818 PR target/81414
3819 * config/aarch64/cortex-a57-fma-steering.c (analyze): Skip fmul/fmac
3820 instructions if no du chain is found.
3821
3822 2017-07-25 Georg-Johann Lay <avr@gjlay.de>
3823
3824 * config/avr/avr-log.c (avr_log_vadump) ['T']: Print NULL-TREE.
3825
3826 2017-07-25 Richard Biener <rguenther@suse.de>
3827
3828 PR middle-end/81505
3829 * fold-const.c (fold_negate_const): TREE_OVERFLOW should be
3830 sticky.
3831
3832 2017-07-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3833
3834 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Delete
3835 upper-regs options.
3836 (ISA_2_7_MASKS_SERVER): Likewise.
3837 (ISA_3_0_MASKS_IEEE): Likewise.
3838 (OTHER_P8_VECTOR_MASKS): Likewise.
3839 (OTHER_VSX_VECTOR_MASKS): Likewise.
3840 (POWERPC_MASKS): Likewise.
3841 (power7 cpu): Use ISA_2_6_MASKS_SERVER instead of using a
3842 duplicate list of options.
3843 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Remove
3844 explicit -mupper-regs options.
3845 * config/rs6000/rs6000.opt (-mvsx-scalar-memory): Delete
3846 -mupper-regs* options. Delete -mvsx-scalar-memory, which was an
3847 alias for -mupper-regs-df.
3848 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Likewise.
3849 (rs6000_init_hard_regno_mode_ok): Likewise.
3850 (rs6000_option_override_internal): Likewise.
3851 (rs6000_opt_masks): Likewise.
3852 * config/rs6000/rs6000.h (TARGET_UPPER_REGS_DF): Define upper regs
3853 options in terms of whether -mvsx or -mpower8-vector was used.
3854 (TARGET_UPPER_REGS_DI): Likewise.
3855 (TARGET_UPPER_REGS_SF): Likewise.
3856 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete the
3857 -mupper-regs-* options.
3858
3859 2017-07-24 Segher Boessenkool <segher@kernel.crashing.org>
3860
3861 * passes.c (emergency_dump_function): Print some empty lines and a
3862 header before the RTL dump.
3863
3864 2017-07-24 Segher Boessenkool <segher@kernel.crashing.org>
3865
3866 * cfgrtl.c (rtl_dump_bb): Don't call NEXT_INSN on NULL.
3867
3868 2017-07-24 Wilco Dijkstra <wdijkstr@arm.com>
3869
3870 PR target/79041
3871 * config/aarch64/aarch64.c (aarch64_classify_symbol):
3872 Avoid SYMBOL_SMALL_ABSOLUTE for literals with pc-relative literals.
3873
3874 2017-07-24 Carl Love <cel@us.ibm.com>
3875
3876 * config/rs6000/rs6000-c.c: Add support for built-in functions
3877 vector float vec_extract_fp32_from_shorth (vector unsigned short);
3878 vector float vec_extract_fp32_from_shortl (vector unsigned short);
3879 * config/rs6000/altivec.h (vec_extract_fp_from_shorth,
3880 vec_extract_fp_from_shortl): Add defines for the two builtins.
3881 * config/rs6000/rs6000-builtin.def (VEXTRACT_FP_FROM_SHORTH,
3882 VEXTRACT_FP_FROM_SHORTL): Add BU_P9V_OVERLOAD_1 and BU_P9V_VSX_1
3883 new builtins.
3884 * config/rs6000/vsx.md vsx_xvcvhpsp): Add define_insn.
3885 (vextract_fp_from_shorth, vextract_fp_from_shortl): Add define_expands.
3886 * doc/extend.texi: Update the built-in documentation file for the
3887 new built-in function.
3888
3889 2017-07-24 Jakub Jelinek <jakub@redhat.com>
3890
3891 PR bootstrap/81521
3892 * tree.def: Remove TYPE_METHODS documentation, adjust TYPE_FIELDS
3893 documentation.
3894 * doc/generic.texi: Likewise.
3895 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition): Look
3896 for FUNCTION_DECLs in TYPE_FIELDS rather than TYPE_METHODS.
3897
3898 2017-07-24 Jackson Woodruff <jackson.woodruff@arm.com>
3899
3900 * config/aarch64/aarch64-simd.md (aarch64_mla_elt_merge<mode>): New.
3901 (aarch64_mls_elt_merge<mode>): Likewise.
3902
3903 2017-07-23 Krister Walfridsson <krister.walfridsson@gmail.com>
3904
3905 * config.gcc (*-*-netbsd*): Remove check for NetBSD versions not
3906 having __cxa_atexit.
3907
3908 2017-07-23 Michael Collison <michael.collison@arm.com>
3909
3910 * config/arm/arm.c (arm_option_override): Deprecate
3911 use of -mstructure-size-boundary.
3912 * config/arm/arm.opt: Deprecate -mstructure-size-boundary.
3913 * doc/invoke.texi: Deprecate -mstructure-size-boundary.
3914
3915 2017-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3916
3917 PR target/80695
3918 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
3919 Reduce cost estimate for direct moves.
3920
3921 2017-07-23 Uros Bizjak <ubizjak@gmail.com>
3922
3923 PR target/80569
3924 * config/i386/i386.c (ix86_option_override_internal): Disable
3925 BMI, BMI2 and TBM instructions for -m16.
3926
3927 2017-07-21 Carl Love <cel@us.ibm.com>
3928
3929 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3930 ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
3931 ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
3932 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
3933 builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
3934 * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
3935 VMULOSW): New enum "unspec" values.
3936 (altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
3937 altivec_vmulosw): New patterns.
3938 * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
3939 VMULOSW): Add definitions.
3940
3941 2017-07-21 Jim Wilson <jim.wilson@linaro.org>
3942
3943 * config/aarch64/aarch64-cores.def (falkor): Add AARCH64_FL_RDMA.
3944 (qdf24xx): Likewise.
3945 * config/aarch64/aarch64-options-extensions.def (rdma); New.
3946 * config/aarch64/aarch64.h (AARCH64_FL_RDMA): New.
3947 (AARCH64_FL_V8_1): Renumber.
3948 (AARCH64_FL_FOR_ARCH8_1): Add AARCH64_FL_RDMA.
3949 (AARCH64_ISA_RDMA): Use AARCH64_FL_RDMA.
3950 * config/aarch64/arm_neon.h: Use +rdma instead of arch=armv8.1-a.
3951 * doc/invoke.texi (AArch64 Options): Mention +rmda in -march docs. Add
3952 rdma to feature modifiers list.
3953
3954 2017-07-21 Yury Gribov <tetra2005@gmail.com>
3955
3956 PR middle-end/56727
3957 * ipa-visibility (function_and_variable_visibility): Convert
3958 recursive PLT call to direct call if appropriate.
3959
3960 2017-07-21 Andrew Pinski <apinski@cavium.com>
3961
3962 * tree-ssa-sccvn.c (vn_nary_op_eq): Check BIT_INSERT_EXPR's
3963 operand 1 to see if the types precision matches.
3964 * fold-const.c (operand_equal_p): Likewise.
3965
3966 2017-07-21 Richard Biener <rguenther@suse.de>
3967
3968 PR tree-optimization/81303
3969 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs): Pass
3970 in datarefs vector. Allow NULL dr0 for no peeling cost estimate.
3971 (vect_peeling_hash_get_lowest_cost): Adjust.
3972 (vect_enhance_data_refs_alignment): Likewise. Use
3973 vect_get_peeling_costs_all_drs to compute the penalty for no
3974 peeling to match up costs.
3975
3976 2017-07-21 Richard Biener <rguenther@suse.de>
3977
3978 PR tree-optimization/81500
3979 * tree-vect-loop.c (vect_is_simple_reduction): Properly fail if
3980 we didn't identify a reduction path.
3981
3982 2017-07-21 Tom de Vries <tom@codesourcery.com>
3983 Cesar Philippidis <cesar@codesourcery.com>
3984
3985 PR gcov-profile/81442
3986 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Add missing edge
3987 probabilities.
3988
3989 2017-07-21 Tom de Vries <tom@codesourcery.com>
3990
3991 PR lto/81430
3992 * config/nvptx/nvptx.c (nvptx_override_options_after_change): New
3993 function.
3994 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define to
3995 nvptx_override_options_after_change.
3996
3997 2017-07-21 Ulrich Drepper <drepper@redhat.com>
3998
3999 * dwarf2out.c (output_file_names): Avoid double testing for
4000 dwarf_version >= 5.
4001
4002 2017-07-21 Georg-Johann Lay <avr@gjlay.de>
4003
4004 * doc/invoke.texi (AVR Built-in Functions): Re-layout section.
4005
4006 2016-07-21 Jan Hubicka <hubicka@ucw.cz>
4007
4008 * cfgcleanup.c (flow_find_cross_jump): Do not crossjump across
4009 hot/cold regions.
4010 (try_crossjump_to_edge): Do not punt on partitioned functions.
4011
4012 2016-07-21 Jan Hubicka <hubicka@ucw.cz>
4013
4014 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
4015 Put all BBs reachable only via paths crossing cold region to cold
4016 region.
4017 * cfgrtl.c (find_bbs_reachable_by_hot_paths): New function.
4018
4019 2016-07-21 Richard Biener <rguenther@suse.de>
4020
4021 PR tree-optimization/81303
4022 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Take
4023 into account prologue and epilogue iterations when raising
4024 min_profitable_iters to sth at least covering one vector iteration.
4025
4026 2017-07-21 Tamar Christina <tamar.christina@arm.com>
4027
4028 * config/arm/arm.c (arm_test_cpu_arch_dat):
4029 Check for overlap.
4030
4031 2017-07-20 Nathan Sidwell <nathan@acm.org>
4032
4033 Remove TYPE_METHODS.
4034 * tree.h (TYPE_METHODS): Delete.
4035 * dwarf2out.c (gen_member_die): Member fns are on TYPE_FIELDS.
4036 * dbxout.c (dbxout_type_fields): Ignore FUNCTION_DECLs.
4037 (dbxout_type_methods): Scan TYPE_FIELDS.
4038 (dbxout_type): Don't check TYPE_METHODS here.
4039 * function.c (use_register_for_decl): Always ignore register for
4040 class types when not optimizing.
4041 * ipa-devirt.c (odr_types_equivalent_p): Delete TYPE_METHODS scan.
4042 * tree.c (free_lang_data_in_type): Stitch out member functions and
4043 templates from TYPE_FIELDS.
4044 (build_distinct_type_copy, verify_type_variant,
4045 verify_type): Member fns are on TYPE_FIELDS.
4046 * tree-dump.c (dequeue_and_dump): No TYPE_METHODS.
4047 * tree-pretty-print.c (dump_generic_node): Likewise.
4048
4049 2017-07-20 Jakub Jelinek <jakub@redhat.com>
4050
4051 PR target/80846
4052 * config/i386/i386.c (ix86_expand_vector_init_general): Handle
4053 V2TImode and V4TImode.
4054 (ix86_expand_vector_extract): Likewise.
4055 * config/i386/sse.md (VMOVE): Enable V4TImode even for just
4056 TARGET_AVX512F, instead of only for TARGET_AVX512BW.
4057 (ssescalarmode): Handle V4TImode and V2TImode.
4058 (VEC_EXTRACT_MODE): Add V4TImode and V2TImode.
4059 (*vec_extractv2ti, *vec_extractv4ti): New insns.
4060 (VEXTRACTI128_MODE): New mode iterator.
4061 (splitter for *vec_extractv?ti first element): New.
4062 (VEC_INIT_MODE): New mode iterator.
4063 (vec_init<mode>): Consolidate 3 expanders into one using
4064 VEC_INIT_MODE mode iterator.
4065
4066 2017-07-20 Alexander Monakov <amonakov@ispras.ru>
4067
4068 * lra-assigns.c (pseudo_compare_func): Fix comparison step based on
4069 non_spilled_static_chain_regno_p.
4070
4071 2017-07-20 Alexander Monakov <amonakov@ispras.ru>
4072
4073 * gimple-ssa-store-merging.c (sort_by_bitpos): Return 0 on equal bitpos.
4074
4075 2017-07-20 Jan Hubicka <hubicka@ucw.cz>
4076
4077 * bb-reorder.c (connect_traces): Allow copying of blocks within
4078 single partition.
4079
4080 2017-07-20 Richard Biener <rguenther@suse.de>
4081
4082 * gimple.h (gimple_phi_result): Add gphi * overload.
4083 (gimple_phi_result_ptr): Likewise.
4084 (gimple_phi_arg): Likewise. Adjust index assert to only
4085 allow actual argument accesses rather than all slots available
4086 by capacity.
4087 (gimple_phi_arg_def): Add gphi * overload.
4088 * tree-phinodes.c (make_phi_node): Initialize only actual
4089 arguments.
4090 (resize_phi_node): Clear memory not covered by old node,
4091 do not initialize excess argument slots.
4092 (reserve_phi_args_for_new_edge): Initialize new argument slot
4093 completely.
4094
4095 2017-07-20 Bin Cheng <bin.cheng@arm.com>
4096
4097 PR tree-optimization/81388
4098 Revert r238585:
4099 2016-07-21 Bin Cheng <bin.cheng@arm.com>
4100
4101 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
4102 by removing computation of may_be_zero.
4103
4104 2017-07-18 Jan Hubicka <hubicka@ucw.cz>
4105 Tom de Vries <tom@codesourcery.com>
4106
4107 PR middle-end/81030
4108 * cfgbuild.c (find_many_sub_basic_blocks): Update REG_BR_PROB note
4109 when gimple level profile disagrees with what RTL expander did.
4110
4111 2017-07-20 Richard Biener <rguenther@suse.de>
4112
4113 PR tree-optimization/61171
4114 * tree-vectorizer.h (slp_instance): Add reduc_phis member.
4115 (vect_analyze_stmt): Add slp instance parameter.
4116 (vectorizable_reduction): Likewise.
4117 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust.
4118 (vect_is_simple_reduction): Deal with chains not detected
4119 as SLP reduction chain, specifically not properly associated
4120 chains containing a mix of plus/minus.
4121 (get_reduction_op): Remove.
4122 (get_initial_defs_for_reduction): Simplify, pass in whether
4123 this is a reduction chain, pass in the SLP node for the PHIs.
4124 (vect_create_epilog_for_reduction): Get the SLP instance as
4125 arg and adjust.
4126 (vectorizable_reduction): Get the SLP instance as arg.
4127 During analysis remember the SLP node with the PHIs in the
4128 instance. Simplify getting at the vectorized reduction PHIs.
4129 * tree-vect-slp.c (vect_slp_analyze_node_operations): Pass
4130 through SLP instance.
4131 (vect_slp_analyze_operations): Likewise.
4132 * tree-vect-stms.c (vect_analyze_stmt): Likewise.
4133 (vect_transform_stmt): Likewise.
4134
4135 2017-07-20 Tom de Vries <tom@codesourcery.com>
4136
4137 PR tree-optimization/81489
4138 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Move
4139 read of phi arg location to before loop that modifies phi.
4140
4141 2017-07-20 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
4142
4143 * match.pd (((m1 >/</>=/<= m2) * d -> (m1 >/</>=/<= m2) ? d : 0):
4144 New pattern.
4145
4146 2017-07-19 Jan Hubicka <hubicka@ucw.cz>
4147
4148 PR middle-end/81331
4149 * except.c (execute): Fix ordering issue.
4150
4151 2018-07-19 Segher Boessenkool <segher@kernel.crashing.org>
4152
4153 PR rtl-optimization/81423
4154 * combine.c (make_compound_operation_int): Don't try to optimize
4155 the AND of a SUBREG of an LSHIFTRT if that SUBREG is paradoxical.
4156
4157 2017-07-19 Segher Boessenkool <segher@kernel.crashing.org>
4158
4159 PR rtl-optimization/81423
4160 * simplify-rtx.c (simplify_truncation): Handle truncating an IOR
4161 with a constant that is -1 in the truncated to mode.
4162
4163 2017-07-19 Jan Hubicka <hubicka@ucw.cz>
4164
4165 * predict.c (propagate_unlikely_bbs_forward): Break out from ...
4166 (determine_unlikely_bbs): ... here.
4167 * predict.h (propagate_unlikely_bbs_forward): Declare.
4168 * cfgexpand.c (pass_expand::execute): Use it.
4169 * bb-reorder.c (sanitize_hot_paths): Do not consider known to be
4170 unlikely edges.
4171 (find_rarely_executed_basic_blocks_and_crossing_edges): Use
4172 propagate_unlikely_bbs_forward.
4173
4174 2017-07-19 Jan Hubicka <hubicka@ucw.cz>
4175
4176 PR middle-end/81331
4177 * except.c (maybe_add_nop_after_section_switch): New function.
4178 (execute): Use it.
4179
4180 2017-07-19 Tom de Vries <tom@codesourcery.com>
4181
4182 * gimple.h (gimple_phi_set_arg): Make assert more strict.
4183
4184 2017-07-19 Tom de Vries <tom@codesourcery.com>
4185
4186 * gimple.h (gimple_phi_arg): Make assert more strict.
4187
4188 2017-07-19 Steven Munroe <munroesj@gcc.gnu.org>
4189
4190 * config.gcc (powerpc*-*-*): Add mmintrin.h.
4191 * config/rs6000/mmintrin.h: New file.
4192 * config/rs6000/x86intrin.h [__ALTIVEC__]: Include mmintrin.h.
4193
4194 2017-07-19 Jakub Jelinek <jakub@redhat.com>
4195
4196 PR tree-optimization/81346
4197 * match.pd: Optimize (X - 1U) <= INT_MAX-1U into (int) X > 0.
4198
4199 2017-07-19 Tom de Vries <tom@codesourcery.com>
4200
4201 * config/nvptx/nvptx.md (VECIM): Add V2DI.
4202
4203 2017-07-19 Tom de Vries <tom@codesourcery.com>
4204
4205 * config/nvptx/nvptx-modes.def: Add V2DImode.
4206 * config/nvptx/nvptx-protos.h (nvptx_data_alignment): Declare.
4207 * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Handle V2DImode.
4208 (nvptx_output_mov_insn): Handle lack of mov.b128.
4209 (nvptx_print_operand): Handle 'H' and 'L' codes.
4210 (nvptx_vector_mode_supported): Allow V2DImode.
4211 (nvptx_preferred_simd_mode): New function.
4212 (nvptx_data_alignment): New function.
4213 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Redefine to
4214 nvptx_preferred_simd_mode.
4215 * config/nvptx/nvptx.h (STACK_BOUNDARY, BIGGEST_ALIGNMENT): Change from
4216 64 to 128 bits.
4217 (DATA_ALIGNMENT): Define. Set to nvptx_data_alignment.
4218
4219 2017-07-19 Tom de Vries <tom@codesourcery.com>
4220
4221 * config/nvptx/nvptx-modes.def: New file. Add V2SImode.
4222 * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Handle V2SImode.
4223 (nvptx_vector_mode_supported): New function. Allow V2SImode.
4224 (TARGET_VECTOR_MODE_SUPPORTED_P): Redefine to nvptx_vector_mode_supported.
4225 * config/nvptx/nvptx.md (VECIM): New mode iterator. Add V2SI.
4226 (mov<VECIM>_insn): New define_insn.
4227 (define_expand "mov<VECIM>): New define_expand.
4228
4229 2017-07-19 Tom de Vries <tom@codesourcery.com>
4230
4231 * config/nvptx/nvptx.c (nvptx_print_operand): Handle v2 vector mode.
4232
4233 2017-07-19 Jakub Jelinek <jakub@redhat.com>
4234
4235 PR tree-optimization/81346
4236 * fold-const.h (fold_div_compare, range_check_type): Declare.
4237 * fold-const.c (range_check_type): New function.
4238 (build_range_check): Use range_check_type.
4239 (fold_div_compare): No longer static, rewritten into
4240 a match.pd helper function.
4241 (fold_comparison): Don't call fold_div_compare here.
4242 * match.pd (X / C1 op C2): New optimization using fold_div_compare
4243 as helper function.
4244
4245 2017-07-19 Nathan Sidwell <nathan@acm.org>
4246
4247 * tree.h (TYPE_MINVAL, TYPE_MAXVAL): Rename to ...
4248 (TYPE_MIN_VALUE_RAW, TYPE_MAX_VALUE_RAW): ... these.
4249 * tree.c (find_decls_types_r, verify_type): Use
4250 TYPE_{MIN,MAX}_VALUE_RAW.
4251 * lto-streamer-out.c (DFS::DFS_write_tree_body): Likewise.
4252 (hash_tree): Likewise.
4253 * tree-streamer-in.c (lto_input_ts_type_non_common_tree_pointers):
4254 Likewise.
4255 * tree-streamer-out.c (write_ts_type_non_common_tree_pointers):
4256 Likewise.
4257
4258 2017-07-18 Tom de Vries <tom@codesourcery.com>
4259
4260 PR middle-end/81464
4261 * omp-expand.c (expand_omp_for_static_chunk): Handle
4262 equal-argument loop exit phi.
4263
4264 2017-07-18 Uros Bizjak <ubizjak@gmail.com>
4265
4266 PR target/81471
4267 * config/i386/i386.md (rorx_immediate_operand): New mode attribute.
4268 (*bmi2_rorx<mode>3_1): Use rorx_immediate_operand as
4269 operand 2 predicate.
4270 (*bmi2_rorxsi3_1_zext): Use const_0_to_31_operand as
4271 operand 2 predicate.
4272 (ror,rol -> rorx splitters): Use const_int_operand as
4273 operand 2 predicate.
4274
4275 2017-06-18 Richard Biener <rguenther@suse.de>
4276
4277 PR tree-optimization/81410
4278 * tree-vect-stmts.c (vectorizable_load): Properly adjust for
4279 the gap in the ! slp_perm SLP case after each group.
4280
4281 2017-07-18 Jan Hubicka <hubicka@ucw.cz>
4282
4283 PR middle-end/81463
4284 * cfgloopmanip.c (scale_loop_profile): Watch out for zero frequency
4285 again.
4286
4287 2017-07-18 Jan Hubicka <hubicka@ucw.cz>
4288
4289 PR middle-end/81462
4290 * predict.c (set_even_probabilities): Cleanup; do not affect
4291 probabilities that are already known.
4292 (combine_predictions_for_bb): Call even when count is set.
4293
4294 2017-07-18 Nathan Sidwell <nathan@acm.org>
4295
4296 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
4297 TYPE_MAX_VALUE.
4298
4299 2017-07-18 Bin Cheng <bin.cheng@arm.com>
4300
4301 PR target/81408
4302 * tree-ssa-loop-niter.c (number_of_iterations_exit): Dump missed
4303 optimization for loop niter analysis.
4304
4305 2017-07-18 Georg-Johann Lay <avr@gjlay.de>
4306
4307 PR target/81473
4308 * config/avr/avr.c (avr_optimize_casesi): Don't use
4309 INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX.
4310
4311 2017-07-18 Robin Dapp <rdapp@linux.vnet.ibm.com>
4312
4313 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Remove
4314 body_cost_vec from _vect_peel_extended_info.
4315 (vect_peeling_hash_get_lowest_cost): Do not set body_cost_vec.
4316 (vect_peeling_hash_choose_best_peeling): Remove body_cost_vec and
4317 npeel.
4318
4319 2017-07-18 Bin Cheng <bin.cheng@arm.com>
4320
4321 * config/arm/arm.c (emit_unlikely_jump): Remove unused var.
4322
4323 2017-07-18 Richard Biener <rguenther@suse.de>
4324
4325 PR tree-optimization/80620
4326 PR tree-optimization/81403
4327 * tree-ssa-pre.c (phi_translate_1): Clear range and points-to
4328 info when re-using a VN table entry.
4329
4330 2017-07-18 Richard Biener <rguenther@suse.de>
4331
4332 PR tree-optimization/81418
4333 * tree-vect-loop.c (vectorizable_reduction): Properly compute
4334 vectype_in. Verify that with lane-reducing reduction operations
4335 we have a single def-use cycle.
4336
4337 2017-07-17 Carl Love <cel@us.ibm.com>
4338
4339 Revert commit r249424 2017-06-20 Carl Love <cel@us.ibm.com>
4340
4341 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4342 ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
4343 ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
4344 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
4345 builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
4346 * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
4347 VMULOSW): New enum "unspec" values.
4348 (vec_widen_umult_even_v4si, vec_widen_smult_even_v4si,
4349 vec_widen_umult_odd_v4si, vec_widen_smult_odd_v4si,
4350 altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
4351 altivec_vmulosw): New patterns.
4352 * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
4353 VMULOSW): Add definitions.
4354 2017-07-17 Uros Bizjak <ubizjak@gmail.com>
4355
4356 * config/alpha/alpha.c: Include predict.h.
4357
4358 2017-07-17 Yury Gribov <tetra2005@gmail.com>
4359
4360 * tree-vrp.c (compare_assert_loc): Fix comparison function
4361 to return predictable results.
4362
4363 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
4364
4365 * config/arc/arc.md (adddi3): Remove support for mexpand-adddi
4366 option.
4367 (subdi3): Likewise.
4368 * config/arc/arc.opt (mexpand-adddi): Deprecate it.
4369 * doc/invoke.texi (mexpand-adddi): Update text.
4370
4371 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
4372
4373 * config/arc/arc.md (clzsi2): Expand to an arc_clzsi2 instruction
4374 that also clobbers the CC register. The old expand code is moved
4375 to ...
4376 (*arc_clzsi2): ... here.
4377 (ctzsi2): Expand to an arc_ctzsi2 instruction that also clobbers
4378 the CC register. The old expand code is moved to ...
4379 (arc_ctzsi2): ... here.
4380
4381 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
4382
4383 * config/arc/arc.opt (mindexed-loads): Use initial value
4384 TARGET_INDEXED_LOADS_DEFAULT.
4385 (mauto-modify-reg): Use initial value
4386 TARGET_AUTO_MODIFY_REG_DEFAULT.
4387 * config/arc/elf.h (TARGET_INDEXED_LOADS_DEFAULT): Define.
4388 (TARGET_AUTO_MODIFY_REG_DEFAULT): Likewise.
4389 * config/arc/linux.h (TARGET_INDEXED_LOADS_DEFAULT): Define.
4390 (TARGET_AUTO_MODIFY_REG_DEFAULT): Likewise.
4391
4392 2017-07-17 Martin Liska <mliska@suse.cz>
4393
4394 PR sanitizer/81302
4395 * opts.c (finish_options): Do not allow -fgnu-tm
4396 w/ -fsanitize={kernel-,}address. Say sorry.
4397
4398 2017-07-17 Bin Cheng <bin.cheng@arm.com>
4399
4400 PR target/81369
4401 * tree-loop-distribution.c (classify_partition): Only assert on
4402 numer of iterations.
4403 (merge_dep_scc_partitions): Delete prameter. Update function call.
4404 (distribute_loop): Remove code handling loop with unknown niters.
4405 (pass_loop_distribution::execute): Skip loop with unknown niters.
4406
4407 2017-07-17 Bin Cheng <bin.cheng@arm.com>
4408
4409 PR target/81369
4410 * tree-loop-distribution.c (merge_dep_scc_partitions): Sink call to
4411 function sort_partitions_by_post_order.
4412
4413 2017-07-17 Bin Cheng <bin.cheng@arm.com>
4414
4415 PR tree-optimization/81374
4416 * tree-loop-distribution.c (pass_loop_distribution::execute): Record
4417 the max index of basic blocks, rather than number of basic blocks.
4418
4419 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
4420
4421 * config/arc/arc-protos.h (arc_legitimate_pc_offset_p): Remove
4422 proto.
4423 (arc_legitimate_pic_operand_p): Likewise.
4424 * config/arc/arc.c (arc_legitimate_pic_operand_p): Remove
4425 function.
4426 (arc_needs_pcl_p): Likewise.
4427 (arc_legitimate_pc_offset_p): Likewise.
4428 (arc_legitimate_pic_addr_p): Remove LABEL_REF case, as this
4429 function is also used in constrains.md.
4430 (arc_legitimate_constant_p): Use arc_legitimate_pic_addr_p to
4431 validate pic constants. Handle CONST_INT, CONST_DOUBLE, MINUS and
4432 PLUS. Only return true/false in known cases, otherwise assert.
4433 (arc_legitimate_address_p): Remove arc_legitimate_pic_addr_p as it
4434 is already called in arc_legitimate_constant_p.
4435 * config/arc/arc.h (CONSTANT_ADDRESS_P): Consider also LABEL for
4436 pic addresses.
4437 (LEGITIMATE_PIC_OPERAND_P): Use
4438 arc_raw_symbolic_reference_mentioned_p function.
4439 * config/arc/constraints.md (Cpc): Use arc_legitimate_pic_addr_p
4440 function.
4441 (Cal): Likewise.
4442 (C32): Likewise.
4443
4444 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
4445 Andrew Burgess <andrew.burgess@embecosm.com>
4446
4447 * config/arc/arc-protos.h (arc_compute_function_type): Change prototype.
4448 (arc_return_address_register): New function.
4449 * config/arc/arc.c (arc_handle_fndecl_attribute): New function.
4450 (arc_handle_fndecl_attribute): Add naked attribute.
4451 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
4452 (TARGET_WARN_FUNC_RETURN): Likewise.
4453 (arc_allocate_stack_slots_for_args): New function.
4454 (arc_warn_func_return): Likewise.
4455 (machine_function): Change type fn_type.
4456 (arc_compute_function_type): Consider new naked function type,
4457 change function return type.
4458 (arc_must_save_register): Adapt to handle new
4459 arc_compute_function_type's return type.
4460 (arc_expand_prologue): Likewise.
4461 (arc_expand_epilogue): Likewise.
4462 (arc_return_address_regs): Delete.
4463 (arc_return_address_register): New function.
4464 (arc_epilogue_uses): Use above function.
4465 * config/arc/arc.h (arc_return_address_regs): Delete prototype.
4466 (arc_function_type): Change encoding, add naked type.
4467 (ARC_INTERRUPT_P): Change to handle the new encoding.
4468 (ARC_FAST_INTERRUPT_P): Likewise.
4469 (ARC_NORMAL_P): Define.
4470 (ARC_NAKED_P): Likewise.
4471 (arc_compute_function_type): Delete prototype.
4472 * config/arc/arc.md (in_ret_delay_slot): Use
4473 arc_return_address_register function.
4474 (simple_return): Likewise.
4475 (p_return_i): Likewise.
4476
4477 2017-07-17 Jakub Jelinek <jakub@redhat.com>
4478
4479 PR tree-optimization/81428
4480 * match.pd (X / X -> one): Don't optimize _Fract divisions, as 1
4481 can't be built for those types.
4482
4483 2017-07-17 Georg-Johann Lay <avr@gjlay.de>
4484
4485 Remove stuff dead since r239246.
4486
4487 * config/avr/avr-arch.h (avr_inform_devices): Remove dead proto.
4488 * config/avr/avr-devices.c (mcu_name, comparator, avr_mcus_str)
4489 (avr_inform_devices): Remove dead stuff.
4490
4491 2017-07-17 Tamar Christina <tamar.christina@arm.com>
4492
4493 * config/arm/arm_neon.h: Fix softp typo.
4494
4495 2017-07-17 Jakub Jelinek <jakub@redhat.com>
4496
4497 PR tree-optimization/81365
4498 * tree-ssa-phiprop.c (propagate_with_phi): When considering hoisting
4499 aggregate moves onto bb predecessor edges, make sure there are no
4500 loads that could alias the lhs in between the start of bb and the
4501 loads from *phi.
4502
4503 2017-07-17 Georg-Johann Lay <avr@gjlay.de>
4504
4505 PR 80929
4506 * config/avr/avr.c (avr_mul_highpart_cost): New static function.
4507 (avr_rtx_costs_1) [TRUNCATE]: Use it to compute mul_highpart cost.
4508 [LSHIFTRT, outer_code = TRUNCATE]: Same.
4509
4510 2017-07-17 Jakub Jelinek <jakub@redhat.com>
4511
4512 PR tree-optimization/81396
4513 * tree-ssa-math-opts.c (struct symbolic_number): Add n_ops field.
4514 (init_symbolic_number): Initialize it to 1.
4515 (perform_symbolic_merge): Add n_ops from both operands into the new
4516 n_ops.
4517 (find_bswap_or_nop): Don't consider n->n == cmpnop computations
4518 without base_addr as useless if they need more than one operation.
4519 (bswap_replace): Handle !bswap case for NULL base_addr.
4520
4521 2017-07-17 Tom de Vries <tom@codesourcery.com>
4522
4523 PR target/81069
4524 * config/nvptx/nvptx.c (nvptx_single): Insert diverging branch as late
4525 as possible.
4526
4527 2017-07-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
4528
4529 * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
4530 conditional builtin define __FIX_LEON3FT_B2BST.
4531
4532 2017-07-17 Daniel Cederman <cederman@gaisler.com>
4533
4534 * config/sparc/t-rtems: Add mfix-gr712rc multilibs. Replace
4535 MULTILIB_EXCEPTIONS with MULTILIB_REQUIRED. Match -mfix-gr712rc
4536 with -mfix-ut700.
4537
4538 2017-07-16 Eric Botcazou <ebotcazou@adacore.com>
4539
4540 PR rtl-optimization/81424
4541 * optabs.c (prepare_cmp_insn): Use copy_to_reg instead of force_reg
4542 to remove potential trapping from operands if -fnon-call-exceptions.
4543
4544 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
4545
4546 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Use
4547 profile_proability for scalling.
4548 * scale_profile_for_vect_loop.c (scale_profile_for_vect_loop): Likewise.
4549
4550 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
4551
4552 * cgraph.c (cgraph_edge::redirect_call_stmt_to_caller): Cleanup.
4553
4554 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
4555
4556 * cfgloopmanip.c (scale_loop_profile): Avoid use of REG_BR_PROB_BASE
4557 fixpoint arithmetics.
4558
4559 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
4560
4561 * tree-ssa-loop-unswitch.c (hoist_guard): Avoid use of REG_BR_PROB_BASE
4562 fixpoint arithmetics.
4563
4564 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
4565
4566 * asan.c (create_cond_insert_point): Avoid use of REG_BR_PROB_BASE
4567 fixpoint arithmetics.
4568
4569 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
4570
4571 * profile-count.h (profile_probability::from_reg_br_prob_note,
4572 profile_probability::to_reg_br_prob_note): New functions.
4573 * doc/rtl.texi (REG_BR_PROB_NOTE): Update documentation.
4574 * reg-notes.h (REG_BR_PROB, REG_BR_PRED): Update docs.
4575 * predict.c (probability_reliable_p): Update.
4576 (edge_probability_reliable_p): Update.
4577 (br_prob_note_reliable_p): Update.
4578 (invert_br_probabilities): Update.
4579 (add_reg_br_prob_note): New function.
4580 (combine_predictions_for_insn): Update.
4581 * asan.c (asan_clear_shadow): Update.
4582 * cfgbuild.c (compute_outgoing_frequencies): Update.
4583 * cfgrtl.c (force_nonfallthru_and_redirect): Update.
4584 (update_br_prob_note): Update.
4585 (rtl_verify_edges): Update.
4586 (purge_dead_edges): Update.
4587 (fixup_reorder_chain): Update.
4588 * emit-rtl.c (try_split): Update.
4589 * ifcvt.c (cond_exec_process_insns): Update.
4590 (cond_exec_process_if_block): Update.
4591 (dead_or_predicable): Update.
4592 * internal-fn.c (expand_addsub_overflow): Update.
4593 (expand_neg_overflow): Update.
4594 (expand_mul_overflow): Update.
4595 * loop-doloop.c (doloop_modify): Update.
4596 * loop-unroll.c (compare_and_jump_seq): Update.
4597 * optabs.c (emit_cmp_and_jump_insn_1): Update.
4598 * predict.h: Update.
4599 * reorg.c (mostly_true_jump): Update.
4600 * rtl.h: Update.
4601 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Update.
4602 * config/alpha/alpha.c (emit_unlikely_jump): Update.
4603 * config/arc/arc.c: (emit_unlikely_jump): Update.
4604 * config/arm/arm.c: (emit_unlikely_jump): Update.
4605 * config/bfin/bfin.c (cbranch_predicted_taken_p): Update.
4606 * config/frv/frv.c (frv_print_operand_jump_hint): Update.
4607 * config/i386/i386.c (ix86_expand_split_stack_prologue): Update.
4608 (ix86_print_operand): Update.
4609 (ix86_split_fp_branch): Update.
4610 (predict_jump): Update.
4611 * config/ia64/ia64.c (ia64_print_operand): Update.
4612 * config/mmix/mmix.c (mmix_print_operand): Update.
4613 * config/powerpcspe/powerpcspe.c (output_cbranch): Update.
4614 (rs6000_expand_split_stack_prologue): Update.
4615 * config/rs6000/rs6000.c: Update.
4616 * config/s390/s390.c (s390_expand_vec_strlen): Update.
4617 (s390_expand_vec_movstr): Update.
4618 (s390_expand_cs_tdsi): Update.
4619 (s390_expand_split_stack_prologue): Update.
4620 * config/sh/sh.c (sh_print_operand): Update.
4621 (expand_cbranchsi4): Update.
4622 (expand_cbranchdi4): Update.
4623 * config/sparc/sparc.c (output_v9branch): Update.
4624 * config/spu/spu.c (get_branch_target): Update.
4625 (ea_load_store_inline): Update.
4626 * config/tilegx/tilegx.c (cbranch_predicted_p): Update.
4627 * config/tilepro/tilepro.c: Update.
4628
4629 2017-07-16 Eric Botcazou <ebotcazou@adacore.com>
4630
4631 * gimplify.c (mostly_copy_tree_r): Revert latest change.
4632 (gimplify_save_expr): Likewise.
4633
4634 2017-07-07 Jan Hubicka <hubicka@ucw.cz>
4635
4636 * ipa-visibility.c (function_and_variable_visibility): Fix pasto.
4637
4638 2017-07-07 Jan Hubicka <hubicka@ucw.cz>
4639
4640 * ipa-fnsummary.c (pass_data_ipa_fn_summary): Use
4641 TV_IPA_FNSUMMARY.
4642 * timevar.def (TV_IPA_FNSUMMARY): Define.
4643
4644 2017-07-16 Daniel Cederman <cederman@gaisler.com>
4645
4646 * config/sparc/sparc.md (divdf3_fix): Add NOP to prevent back
4647 to back store errata sensitive sequence from being generated.
4648 (sqrtdf2_fix): Likewise.
4649
4650 2017-07-07 Jan Hubicka <hubicka@ucw.cz>
4651
4652 * tree-ssa-threadupdate.c (compute_path_counts,
4653 update_joiner_offpath_counts): Use profile_probability.
4654
4655 2017-07-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
4656
4657 Revert:
4658 2017-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
4659
4660 * config/arm/arm-c.c (arm_cpu_builtins): Define
4661 __ARM_FEATURE_NUMERIC_MAXMIN solely based on TARGET_VFP5.
4662
4663 2017-07-14 Kelvin Nilsen <kelvin@gcc.gnu.org>
4664
4665 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4666 array entries to represent __ieee128 versions of the
4667 scalar_test_data_class, scalar_test_neg, scalar_extract_exp,
4668 scalar_extract_sig, and scalar_insert_exp built-in functions.
4669 (altivec_resolve_overloaded_builtin): Add special case handling
4670 for the __builtin_scalar_insert_exp function, as represented by
4671 the P9V_BUILTIN_VEC_VSIEDP constant.
4672 * config/rs6000/rs6000-builtin.def (VSEEQP): Add scalar extract
4673 exponent support for __ieee128 argument.
4674 (VSESQP): Add scalar extract signature support for __ieee128
4675 argument.
4676 (VSTDCNQP): Add scalar test negative support for __ieee128
4677 argument.
4678 (VSIEQP): Add scalar insert exponent support for __int128 argument
4679 with __ieee128 result.
4680 (VSIEQPF): Add scalar insert exponent support for __ieee128
4681 argument with __ieee128 result.
4682 (VSTDCQP): Add scalar test data class support for __ieee128
4683 argument.
4684 (VSTDCNQP): Add overload support for scalar test negative with
4685 __ieee128 argument.
4686 (VSTDCQP): Add overload support for scalar test data class
4687 __ieee128 argument.
4688 * config/rs6000/vsx.md (UNSPEC_VSX_SXSIG) Replace
4689 UNSPEC_VSX_SXSIGDP.
4690 (UNSPEC_VSX_SIEXPQP): New constant.
4691 (xsxexpqp): New insn for VSX scalar extract exponent quad
4692 precision.
4693 (xsxsigqp): New insn for VSX scalar extract significand quad
4694 precision.
4695 (xsiexpqpf): New insn for VSX scalar insert exponent quad
4696 precision with floating point argument.
4697 (xststdcqp): New expand for VSX scalar test data class quad
4698 precision.
4699 (xststdcnegqp): New expand for VSX scalar test negative quad
4700 precision.
4701 (xststdcqp): New insn to match expansions for VSX scalar test data
4702 class quad precision and VSX scalar test negative quad precision.
4703 * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
4704 special case operand checking to enforce that second operand of
4705 VSX scalar test data class with quad precision argument is a 7-bit
4706 unsigned literal.
4707 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
4708 prototypes and descriptions of __ieee128 versions of
4709 scalar_extract_exp, scalar_extract_sig, scalar_insert_exp,
4710 scalar_test_data_class, and scalar_test_neg built-in functions.
4711
4712 2016-07-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4713
4714 PR tree-optimization/81162
4715 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Don't
4716 replace a negate with an add.
4717
4718 2017-07-14 James Greenhalgh <james.greenhalgh@arm.com>
4719
4720 * doc/invoke.texi (arm/-mcpu): Document +crypto.
4721
4722 2017-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
4723
4724 * config/arm/arm-c.c (arm_cpu_builtins): Define
4725 __ARM_FEATURE_NUMERIC_MAXMIN solely based on TARGET_VFP5.
4726
4727 2017-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
4728
4729 * config/arm/arm-cpus.in (cortex-r52): Add new entry.
4730 (armv8-r): Set ARM Cortex-R52 as default CPU.
4731 * config/arm/arm-tables.opt: Regenerate.
4732 * config/arm/arm-tune.md: Regenerate.
4733 * config/arm/driver-arm.c (arm_cpu_table): Add entry for ARM
4734 Cortex-R52.
4735 * doc/invoke.texi: Mention -mtune=cortex-r52 and availability of fp.dp
4736 extension for -mcpu=cortex-r52.
4737
4738 2017-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
4739
4740 * config/arm/arm-isa.h (isa_bit_FP_ARMv8): Delete enumerator.
4741 (ISA_FP_ARMv8): Define as ISA_FPv5 and ISA_FP_D32.
4742 * config/arm/arm-cpus.in (armv8-r): Define fp.sp as enabling FPv5.
4743 (fp-armv8): Define it as FP_ARMv8 only.
4744 config/arm/arm.h (TARGET_FPU_ARMV8): Delete.
4745 (TARGET_VFP_FP16INST): Define using TARGET_VFP5 rather than
4746 TARGET_FPU_ARMV8.
4747 config/arm/arm.c (arm_rtx_costs_internal): Replace checks against
4748 TARGET_FPU_ARMV8 by checks against TARGET_VFP5.
4749 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Define
4750 first ARM_CHECK_BUILTIN_MODE definition using TARGET_VFP5 rather
4751 than TARGET_FPU_ARMV8.
4752 * config/arm/arm-c.c (arm_cpu_builtins): Likewise for
4753 __ARM_FEATURE_NUMERIC_MAXMIN macro definition.
4754 * config/arm/arm.md (cmov<mode>): Condition on TARGET_VFP5 rather than
4755 TARGET_FPU_ARMV8.
4756 * config/arm/neon.md (neon_vrint): Likewise.
4757 (neon_vcvt): Likewise.
4758 (neon_<fmaxmin_op><mode>): Likewise.
4759 (<fmaxmin><mode>3): Likewise.
4760 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Likewise.
4761 * config/arm/predicates.md (arm_cond_move_operator): Check against
4762 TARGET_VFP5 rather than TARGET_FPU_ARMV8 and fix spacing.
4763
4764 2017-07-14 Jackson Woodruff <jackson.woodruff@arm.com>
4765
4766 * config/aarch64/aarch64.c (aarch64_print_operand): Move comments
4767 to top of function.
4768
4769 2017-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4770
4771 * gimple-ssa-store-merging.c (clear_bit_region): Replace reference to
4772 loop in comment with memset.
4773
4774 2017-07-14 Martin Liska <mliska@suse.cz>
4775
4776 * cfgexpand.c (expand_gimple_basic_block): Remove dead comment.
4777 * dwarf2out.c (is_java): Remove the function.
4778 (output_pubname): Remove usage of the function.
4779 (lower_bound_default): Remove usage of DW_LANG_Java.
4780 (gen_compile_unit_die): Likewise.
4781 * gcc.c: Remove compiler defaults for .java and .zip files.
4782 * gimple-expr.c (remove_suffix): Change as there's no longer
4783 extension than 4-letter one.
4784 * gimplify.c (mostly_copy_tree_r): Remove Java-special part.
4785 (gimplify_save_expr): Likewise.
4786 * ipa-utils.h (polymorphic_type_binfo_p): Remove the comment
4787 as it's possible even for other languages than Java.
4788 * langhooks.h (struct lang_hooks): Remove Java from a comment.
4789 * lto-opts.c (lto_write_options): Remove reference to Java.
4790 * opts.c (strip_off_ending): Update file extension handling.
4791 * tree-cfg.c (verify_gimple_call): Remove comment with Java.
4792 * tree-eh.c (lower_resx): Likewise.
4793 * tree.c (free_lang_data_in_type): Remove dead code.
4794 (find_decls_types_r): Likewise.
4795 (build_common_builtin_nodes): Remove Java from a comment.
4796 (verify_type): Remove dead code.
4797 * varasm.c (assemble_external): Remove Java from a comment.
4798
4799 2017-07-14 Martin Liska <mliska@suse.cz>
4800
4801 * opts.c (finish_options): Add quotes.
4802 (common_handle_option): Likewise.
4803
4804 2017-07-14 Martin Liska <mliska@suse.cz>
4805
4806 * dbxout.c (get_lang_number): Do not handle GNU Pascal.
4807 * dbxout.h (extern void dbxout_stab_value_internal_label_diff):
4808 Remove N_SO_PASCAL.
4809 * dwarf2out.c (lower_bound_default): Do not handle
4810 DW_LANG_Pascal83.
4811 (gen_compile_unit_die): Likewise.
4812 * gcc.c: Remove default extension binding for GNU Pascal.
4813 * stmt.c: Remove Pascal language from a comment.
4814 * xcoffout.c: Likewise.
4815
4816 2017-07-13 David Malcolm <dmalcolm@redhat.com>
4817
4818 PR c/81405
4819 * diagnostic-show-locus.c (fixit_cmp): New function.
4820 (layout::layout): Sort m_fixit_hints.
4821 (column_range::column_range): Assert that the values are valid.
4822 (struct char_span): New struct.
4823 (correction::overwrite): New method.
4824 (struct source_line): New struct.
4825 (line_corrections::add_hint): Add assertions. Reimplement memcpy
4826 calls in terms of classes source_line and char_span, and
4827 correction::overwrite.
4828 (selftest::test_overlapped_fixit_printing_2): New function.
4829 (selftest::diagnostic_show_locus_c_tests): Call it.
4830
4831 2017-07-13 Will Schmidt <will_schmidt@vnet.ibm.com>
4832
4833 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Return
4834 early if there is no lhs.
4835
4836 2017-07-13 Martin Liska <mliska@suse.cz>
4837
4838 * dwarf2out.c (gen_pointer_type_die): Remove dead code.
4839 (gen_reference_type_die): Likewise.
4840 * stor-layout.c: Remove Pascal-related comment.
4841
4842 2017-07-13 Martin Liska <mliska@suse.cz>
4843
4844 * opts.c (finish_options): Add quotes to error messages.
4845 (parse_sanitizer_options): Likewise.
4846
4847 2017-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
4848
4849 * doc/invoke.texi (armv8-r): Document +fp.sp ARMv8-R extension.
4850
4851 2017-07-13 Richard Earnshaw <rearnsha@arm.com>
4852
4853 * config/arm/vxworks.h (TARGET_ENDIAN_DEFAULT): Define.
4854
4855 2017-07-13 Maxim Ostapenko <m.ostapenko@samsung.com>
4856
4857 * asan.c (asan_emit_allocas_unpoison): Use ptr_mode for arguments
4858 during expansion.
4859 * builtins.c (expand_asan_emit_allocas_unpoison): Likewise.
4860
4861 2017-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
4862
4863 PR target/81193
4864 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): If GLIBC
4865 provides the hardware capability bits, define the macro
4866 __BUILTIN_CPU_SUPPORTS__.
4867 * config/rs6000/rs6000.c (cpu_expand_builtin): Generate a warning
4868 if GLIBC does not provide the hardware capability bits. Add a
4869 gcc_unreachable call if the built-in cpu function is neither
4870 __builtin_cpu_is nor __builtin_cpu_supports.
4871 (rs6000_get_function_versions_dispatcher): Change the warning
4872 that an old GLIBC is used which does not export the capability
4873 bits to be an error.
4874 * doc/extend.texi (target_clones attribute): Document the
4875 restriction that GLIBC 2.23 or newer is needed on the PowerPC.
4876 (PowerPC built-in functions): Document that GLIBC 2.23 or newer is
4877 needed by __builtin_cpu_is and __builtin_cpu_supports. Document
4878 the macros defined by GCC if the newer GLIBC is available.
4879
4880 2017-07-12 Jeff Law <law@redhat.com>
4881
4882 * config/riscv/riscv.c: Remove unnecessary includes. Reorder
4883 remaining includes slightly.
4884 * config/riscv/riscv-builtins.c: Include profile-count.h.
4885
4886 2017-07-12 Georg-Johann Lay <avr@gjlay.de>
4887
4888 PR target/79883
4889 * config/avr/avr.c (avr_set_current_function): In diagnostic
4890 messages: Quote keywords and (parts of) identifiers.
4891 [WITH_AVRLIBC]: Warn for functions named "ISR", "SIGNAL" or
4892 "INTERUPT".
4893
4894 2017-07-12 Carl Love <cel@us.ibm.com>
4895
4896 * config/rs6000/rs6000-c.c: Add support for built-in functions
4897 vector bool char vec_revb (vector bool char);
4898 vector bool short vec_revb (vector short char);
4899 vector bool int vec_revb (vector bool int);
4900 vector bool long long vec_revb (vector bool long long);
4901 * doc/extend.texi: Update the built-in documentation file for the
4902 new built-in functions.
4903
4904 2017-07-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4905
4906 * config/s390/s390.md: Remove movcc splitter.
4907
4908 2017-07-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4909
4910 * config/s390/s390.c (s390_rtx_costs): Return proper costs for
4911 load/store on condition.
4912
4913 2017-07-12 Georg-Johann Lay <avr@gjlay.de>
4914
4915 PR target/81407
4916 * config/avr/avr.c (avr_encode_section_info)
4917 [progmem && !TREE_READONLY]: Error if progmem object needs
4918 constructing.
4919
4920 2017-07-11 Michael Collison <michael.collison@arm.com>
4921
4922 * config/aarch64/aarch64-simd.md (aarch64_sub<mode>_compare0):
4923 New pattern.
4924
4925 2017-07-11 Carl Love <cel@us.ibm.com>
4926
4927 * config/rs6000/rs6000-c.c: Add support for builtins
4928 vector unsigned int vec_parity_lsbb (vector signed int);
4929 vector unsigned int vec_parity_lsbb (vector unsigned int);
4930 vector unsigned __int128 vec_parity_lsbb (vector signed __int128);
4931 vector unsigned __int128 vec_parity_lsbb (vector unsigned __int128);
4932 vector unsigned long long vec_parity_lsbb (vector signed long long);
4933 vector unsigned long long vec_parity_lsbb (vector unsigned long long);
4934 * config/rs6000/rs6000-builtin.def (VPARITY_LSBB): Add BU_P9V_OVERLOAD1.
4935 * config/rs6000/altivec.h (vec_parity_lsbb): Add define.
4936 * doc/extend.texi: Update the built-in documentation file for the
4937 new built-in functions.
4938
4939 2017-07-11 David Malcolm <dmalcolm@redhat.com>
4940
4941 * diagnostic-show-locus.c: Include "gcc-rich-location.h".
4942 (layout::m_primary_loc): New field.
4943 (layout::layout): Initialize new field. Move location filtering
4944 logic from here to...
4945 (layout::maybe_add_location_range): ...this new method. Add
4946 support for filtering to just the lines already specified by other
4947 locations.
4948 (layout::will_show_line_p): New method.
4949 (gcc_rich_location::add_location_if_nearby): New method.
4950 (selftest::test_add_location_if_nearby): New test function.
4951 (selftest::diagnostic_show_locus_c_tests): Call it.
4952 * gcc-rich-location.h (gcc_rich_location::add_location_if_nearby):
4953 New method.
4954
4955 2017-07-11 Tom de Vries <tom@codesourcery.com>
4956
4957 * config/nvptx/nvptx.c (WORKAROUND_PTXJIT_BUG): New macro.
4958 (bb_first_real_insn): New function.
4959 (nvptx_single): Add extra initialization of broadcasted condition
4960 variables.
4961
4962 2017-07-11 Nathan Sidwell <nathan@acm.org>
4963
4964 * dwarf2out.c (gen_member_die): Remove useless check for anon ctors.
4965
4966 2017-07-11 Georg-Johann Lay <avr@gjlay.de>
4967
4968 * doc/extend.texi (AVR Function Attributes): Remove weblink to
4969 Binutils doc as TEXI will mess them up.
4970 * doc/invoke.texi (AVR Options): Same here.
4971
4972 2017-07-11 Daniel Cederman <cederman@gaisler.com>
4973
4974 * config/sparc/sparc.opt (mfix-ut700): New option.
4975 (mfix-gr712rc): Likewise.
4976 (sparc_fix_b2bst): New variable.
4977 * doc/invoke.texi (SPARC options): Document them.
4978 (ARM options): Fix warnings.
4979 * config/sparc/sparc.c (sparc_do_work_around_errata): Insert NOP
4980 instructions to prevent sequences that can trigger the store-store
4981 errata for certain LEON3FT processors.
4982 (pass_work_around_errata::gate): Also test sparc_fix_b2bst.
4983 (sparc_option_override): Set sparc_fix_b2bst appropriately.
4984 * config/sparc/sparc.md (fix_b2bst): New attribute.
4985 (in_branch_delay): Prevent stores in delay slot if fix_b2bst.
4986
4987 2017-07-10 Uros Bizjak <ubizjak@gmail.com>
4988
4989 PR target/81375
4990 * config/i386/i386.md (divsf3): Add TARGET_SSE to TARGET_SSE_MATH.
4991 (rcpps): Ditto.
4992 (*rsqrtsf2_sse): Ditto.
4993 (rsqrtsf2): Ditto.
4994 (div<mode>3): Macroize insn from divdf3 and divsf3
4995 using MODEF mode iterator.
4996
4997 2017-07-10 Martin Sebor <msebor@redhat.com>
4998
4999 PR tree-optimization/80397
5000 * gimple-ssa-sprintf.c (format_integer): Use INTEGRAL_TYPE_P()
5001 instead of testing for equality to INTEGER_TYPE.
5002
5003 2017-07-10 Vineet Gupta <vgupta@synopsys.com>
5004
5005 * config.gcc: Remove uclibc from arc target spec.
5006
5007 2017-07-10 Claudiu Zissulescu <claziss@synopsys.com>
5008
5009 * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Define.
5010
5011 2017-07-07 Jan Hubicka <hubicka@ucw.cz>
5012
5013 PR lto/80838
5014 * lto-wrapper.c (remove_option): New function.
5015 (merge_and_complain): Merge PIC/PIE options more realistically.
5016
5017 2017-07-10 Georg-Johann Lay <avr@gjlay.de>
5018
5019 Better ISR prologues by supporting GASes __gcc_isr pseudo insn.
5020
5021 PR target/20296
5022 PR target/81268
5023 * configure.ac [target=avr]: Add GAS check for -mgcc-isr.
5024 (HAVE_AS_AVR_MGCCISR_OPTION): If so, AC_DEFINE it.
5025 * config.in: Regenerate.
5026 * configure: Regenerate.
5027 * doc/extend.texi (AVR Function Attributes) <no_gccisr>: Document it.
5028 * doc/invoke.texi (AVR Options) <-mgas-isr-prologues>: Document it.
5029 * config/avr/avr.opt (-mgas-isr-prologues): New option and...
5030 (TARGET_GASISR_PROLOGUES): ...target mask.
5031 * common/config/avr/avr-common.c
5032 (avr_option_optimization_table) [OPT_LEVELS_1_PLUS_NOT_DEBUG]:
5033 Set -mgas-isr-prologues.
5034 * config/avr/avr-passes.def (avr_pass_pre_proep): Add
5035 INSERT_PASS_BEFORE for it.
5036 * config/avr/avr-protos.h (make_avr_pass_pre_proep): New proto.
5037 * config/avr/avr.c (avr_option_override)
5038 [!HAVE_AS_AVR_MGCCISR_OPTION]: Unset TARGET_GASISR_PROLOGUES.
5039 (avr_no_gccisr_function_p, avr_hregs_split_reg): New static functions.
5040 (avr_attribute_table) <no_gccisr>: Add new function attribute.
5041 (avr_set_current_function) <is_no_gccisr>: Init machine field.
5042 (avr_pass_data_pre_proep, avr_pass_pre_proep): New pass data
5043 and rtl_opt_pass.
5044 (make_avr_pass_pre_proep): New function.
5045 (emit_push_sfr) <treg>: Add argument to function and use it
5046 instead of TMP_REG.
5047 (avr_expand_prologue) [machine->gasisr.maybe]: Emit gasisr insn
5048 and set machine->gasisr.yes.
5049 (avr_expand_epilogue) [machine->gasisr.yes]: Similar.
5050 (avr_asm_function_end_prologue) [machine->gasisr.yes]: Add
5051 __gcc_isr.n_pushed to .L__stack_usage.
5052 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define to...
5053 (avr_asm_final_postscan_insn): ...this new static function.
5054 * config/avr/avr.h (machine_function)
5055 <is_no_gccisr, use_L__stack_usage>: New fields.
5056 <gasisr, gasisr.yes, gasisr.maybe, gasisr.regno>: New fields.
5057 * config/avr/avr.md (UNSPECV_GASISR): Add unspecv enum.
5058 (GASISR_Prologue, GASISR_Epilogue, GASISR_Done): New define_constants.
5059 (gasisr, *gasisr): New expander and insn.
5060 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
5061 [HAVE_AS_AVR_MGCCISR_OPTION]: Print asm_gccisr spec.
5062 * config/avr/specs.h (ASM_SPEC) <asm_gccisr>: Add sub spec.
5063
5064 2017-07-10 Richard Earnshaw <rearnsha@arm.com>
5065
5066 * config/arm/parsecpu.awk (gen_comm_data): Do not escape single quotes
5067 in quoted strings.
5068
5069 2017-07-10 Georg-Johann Lay <avr@gjlay.de>
5070
5071 Move jump-tables out of .text again.
5072
5073 PR target/81075
5074 * config/avr/avr.c (ASM_OUTPUT_ADDR_VEC_ELT): Remove function.
5075 (ASM_OUTPUT_ADDR_VEC): New function.
5076 (avr_adjust_insn_length) [JUMP_TABLE_DATA_P]: Return 0.
5077 (avr_final_prescan_insn) [avr_log.insn_addresses]: Dump
5078 INSN_ADDRESSes as asm comment.
5079 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION): Adjust comment.
5080 (ASM_OUTPUT_ADDR_VEC_ELT): Remove define.
5081 (ASM_OUTPUT_ADDR_VEC): Define to avr_output_addr_vec.
5082 * config/avr/avr.md (*tablejump): Adjust comment.
5083 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
5084 * config/avr/avr-log.c (avr_log_set_avr_log) <insn_addresses>:
5085 New detail.
5086 * config/avr/avr-protos.h (avr_output_addr_vec_elt): Remove proto.
5087 (avr_output_addr_vec): New proto.
5088 (avr_log_t) <insn_addresses>: New field.
5089
5090 2017-07-09 H.J. Lu <hongjiu.lu@intel.com>
5091
5092 PR target/81313
5093 * config/i386/i386.c (ix86_function_arg_advance): Set
5094 outgoing_args_on_stack to true if there are outgoing arguments
5095 on stack.
5096 (ix86_function_arg): Likewise.
5097 (ix86_get_drap_rtx): Use DRAP only if there are outgoing
5098 arguments on stack and ACCUMULATE_OUTGOING_ARGS is false.
5099 * config/i386/i386.h (machine_function): Add
5100 outgoing_args_on_stack.
5101
5102 2017-07-09 Krister Walfridsson <krister.walfridsson@gmail.com>
5103
5104 * config.gcc (*-*-netbsd*): Remove check for NetBSD versions not
5105 supporting pthreds.
5106 * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always enable pthreads.
5107
5108 2017-07-08 Richard Sandiford <richard.sandiford@linaro.org>
5109
5110 * Makefile.in (HOOKS_H, RTL_BASE_H, FUNCTION_H, EXPR_H, REGS_H)
5111 (REAL_H): Remove $(MACHMODE_H).
5112 (FIXED_VALUE_H, TREE_CORE_H, CFGLOOP_H): Remove $(MACHMODE_H) and
5113 double-int.h.
5114 (CORETYPES_H): Add signop.h, wide-int.h, wide-int-print.h,
5115 $(MACHMODE_H) and double-int.h.
5116 (build/min-insn-modes.o): Depend on $(CORETYPES_H) rather than
5117 $(MACHMODE_H).
5118 (gengtype-state.o, gengtype.o, build/gengtype.o): Don't depend on
5119 double-int.h.
5120
5121 2017-07-07 Andrew Pinski <apinski@cavium.com>
5122
5123 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Check
5124 prev_set and curr_set for AARCH64_FUSE_ALU_BRANCH.
5125
5126 2017-07-07 Michael Meissner <meissner@linux.vnet.ibm.com>
5127
5128 * config/rs6000/rs6000.c (rs6000_get_function_versions_dispatcher):
5129 Add warning if GCC was not configured to link against a GLIBC that
5130 exports the hardware capability bits.
5131 (make_resolver_func): Make resolver function private and not a
5132 COMDAT function. Create the name with clone_function_name instead
5133 of make_unique_name.
5134
5135 PR target/81348
5136 * config/rs6000/rs6000.md (HI sign_extend splitter): Use the
5137 correct operand in doing the split.
5138
5139 2017-07-07 Carl Love <cel@us.ibm.com>
5140
5141 * config/rs6000/rs6000-c: Add support for built-in function
5142 vector unsigned short vec_pack_to_short_fp32 (vector float,
5143 vector float).
5144 * config/rs6000/rs6000-builtin.def (CONVERT_4F32_8I16): Add
5145 BU_P9V_AV_2 and BU_P9V_OVERLOAD_2 definitions.
5146 * config/rs6000/altivec.h (vec_pack_to_short_fp32): Add define.
5147 * config/rs6000/altivec.md(UNSPEC_CONVERT_4F32_8I16): Add UNSPEC.
5148 (convert_4f32_8i16): Add define_expand.
5149 * doc/extend.texi: Update the built-in documentation file for the
5150 new built-in function.
5151
5152 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
5153
5154 * config/sparc/m8.md: New file.
5155 * config/sparc/sparc.md: Include m8.md.
5156
5157 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
5158
5159 * config/sparc/sparc.opt: New option -mvis4b.
5160 * config/sparc/sparc.c (dump_target_flag_bits): Handle MASK_VIS4B.
5161 (sparc_option_override): Handle VIS4B.
5162 (enum sparc_builtins): Define
5163 SPARC_BUILTIN_DICTUNPACK{8,16,32},
5164 SPARC_BUILTIN_FPCMP{LE,GT,EQ,NE}{8,16,32}SHL,
5165 SPARC_BUILTIN_FPCMPU{LE,GT}{8,16,32}SHL,
5166 SPARC_BUILTIN_FPCMPDE{8,16,32}SHL and
5167 SPARC_BUILTIN_FPCMPUR{8,16,32}SHL.
5168 (check_constant_argument): New function.
5169 (sparc_vis_init_builtins): Define builtins
5170 __builtin_vis_dictunpack{8,16,32},
5171 __builtin_vis_fpcmp{le,gt,eq,ne}{8,16,32}shl,
5172 __builtin_vis_fpcmpu{le,gt}{8,16,32}shl,
5173 __builtin_vis_fpcmpde{8,16,32}shl and
5174 __builtin_vis_fpcmpur{8,16,32}shl.
5175 (sparc_expand_builtin): Check that the constant operands to
5176 __builtin_vis_fpcmp*shl and _builtin_vis_dictunpack* are indeed
5177 constant and in range.
5178 * config/sparc/sparc-c.c (sparc_target_macros): Handle
5179 TARGET_VIS4B.
5180 * config/sparc/sparc.h (SPARC_IMM2_P): Define.
5181 (SPARC_IMM5_P): Likewise.
5182 * config/sparc/sparc.md (cpu_feature): Add new feagure "vis4b".
5183 (enabled): Handle vis4b.
5184 (UNSPEC_DICTUNPACK): New unspec.
5185 (UNSPEC_FPCMPSHL): Likewise.
5186 (UNSPEC_FPUCMPSHL): Likewise.
5187 (UNSPEC_FPCMPDESHL): Likewise.
5188 (UNSPEC_FPCMPURSHL): Likewise.
5189 (cpu_feature): New CPU feature `vis4b'.
5190 (dictunpack{8,16,32}): New insns.
5191 (FPCSMODE): New mode iterator.
5192 (fpcscond): New code iterator.
5193 (fpcsucond): Likewise.
5194 (fpcmp{le,gt,eq,ne}{8,16,32}{si,di}shl): New insns.
5195 (fpcmpu{le,gt}{8,16,32}{si,di}shl): Likewise.
5196 (fpcmpde{8,16,32}{si,di}shl): Likewise.
5197 (fpcmpur{8,16,32}{si,di}shl): Likewise.
5198 * config/sparc/constraints.md: Define constraints `q' for unsigned
5199 2-bit integer constants and `t' for unsigned 5-bit integer
5200 constants.
5201 * config/sparc/predicates.md (imm5_operand_dictunpack8): New
5202 predicate.
5203 (imm5_operand_dictunpack16): Likewise.
5204 (imm5_operand_dictunpack32): Likewise.
5205 (imm2_operand): Likewise.
5206 * doc/invoke.texi (SPARC Options): Document -mvis4b.
5207 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
5208 ditunpack* and fpcmp*shl builtins.
5209
5210 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
5211
5212 * config.gcc: Handle m8 in --with-{cpu,tune} options.
5213 * config.in: Add HAVE_AS_SPARC6 define.
5214 * config/sparc/driver-sparc.c (cpu_names): Add entry for the SPARC
5215 M8.
5216 * config/sparc/sol2.h (CPP_CPU64_DEFAULT_SPEC): Define for
5217 TARGET_CPU_m8.
5218 (ASM_CPU32_DEFAUILT_SPEC): Likewise.
5219 (CPP_CPU_SPEC): Handle m8.
5220 (ASM_CPU_SPEC): Likewise.
5221 * config/sparc/sparc-opts.h (enum processor_type): Add
5222 PROCESSOR_M8.
5223 * config/sparc/sparc.c (m8_costs): New struct.
5224 (sparc_option_override): Handle TARGET_CPU_m8.
5225 (sparc32_initialize_trampoline): Likewise.
5226 (sparc64_initialize_trampoline): Likewise.
5227 (sparc_issue_rate): Likewise.
5228 (sparc_register_move_cost): Likewise.
5229 * config/sparc/sparc.h (TARGET_CPU_m8): Define.
5230 (CPP_CPU64_DEFAULT_SPEC): Define for M8.
5231 (ASM_CPU64_DEFAULT_SPEC): Likewise.
5232 (CPP_CPU_SPEC): Handle M8.
5233 (ASM_CPU_SPEC): Likewise.
5234 (AS_M8_FLAG): Define.
5235 * config/sparc/sparc.md: Add m8 to the cpu attribute.
5236 * config/sparc/sparc.opt: New option -mcpu=m8 for sparc targets.
5237 * configure.ac (HAVE_AS_SPARC6): Check for assembler support for
5238 M8 instructions.
5239 * configure: Regenerate.
5240 * doc/invoke.texi (SPARC Options): Document -mcpu=m8 and
5241 -mtune=m8.
5242
5243 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
5244
5245 * config/sparc/niagara7.md: Rework the DFA scheduler to use insn
5246 subtypes.
5247 * config/sparc/sparc.md: Remove the `v3pipe' insn attribute.
5248 ("*movdi_insn_sp32"): Do not set v3pipe.
5249 ("*movsi_insn"): Likewise.
5250 ("*movdi_insn_sp64"): Likewise.
5251 ("*movsf_insn"): Likewise.
5252 ("*movdf_insn_sp32"): Likewise.
5253 ("*movdf_insn_sp64"): Likewise.
5254 ("*zero_extendsidi2_insn_sp64"): Likewise.
5255 ("*sign_extendsidi2_insn"): Likewise.
5256 ("*mov<VM32:mode>_insn"): Likewise.
5257 ("*mov<VM64:mode>_insn_sp64"): Likewise.
5258 ("*mov<VM64:mode>_insn_sp32"): Likewise.
5259 ("<plusminus_insn><VADDSUB:mode>3"): Likewise.
5260 ("<vlop:code><VL:mode>3"): Likewise.
5261 ("*not_<vlop:code><VL:mode>3"): Likewise.
5262 ("*nand<VL:mode>_vis"): Likewise.
5263 ("*<vlnotop:code>_not1<VL:mode>_vis"): Likewise.
5264 ("*<vlnotop:code>_not2<VL:mode>_vis"): Likewise.
5265 ("one_cmpl<VL:mode>2"): Likewise.
5266 ("faligndata<VM64:mode>_vis"): Likewise.
5267 ("alignaddrsi_vis"): Likewise.
5268 ("alignaddrdi_vis"): Likweise.
5269 ("alignaddrlsi_vis"): Likewise.
5270 ("alignaddrldi_vis"): Likewise.
5271 ("fcmp<gcond:code><GCM:gcm_name><P:mode>_vis"): Likewise.
5272 ("bmaskdi_vis"): Likewise.
5273 ("bmasksi_vis"): Likewise.
5274 ("bshuffle<VM64:mode>_vis"): Likewise.
5275 ("cmask8<P:mode>_vis"): Likewise.
5276 ("cmask16<P:mode>_vis"): Likewise.
5277 ("cmask32<P:mode>_vis"): Likewise.
5278 ("pdistn<P:mode>_vis"): Likewise.
5279 ("<vis3_addsub_ss_patname><VASS:mode>3"): Likewise.
5280
5281 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
5282
5283 * config/sparc/sparc.md ("subtype"): New insn attribute.
5284 ("*wrgsr_sp64"): Set insn subtype.
5285 ("*rdgsr_sp64"): Likewise.
5286 ("alignaddrsi_vis"): Likewise.
5287 ("alignaddrdi_vis"): Likewise.
5288 ("alignaddrlsi_vis"): Likewise.
5289 ("alignaddrldi_vis"): Likewise.
5290 ("<plusminus_insn><VADDSUB:mode>3"): Likewise.
5291 ("fexpand_vis"): Likewise.
5292 ("fpmerge_vis"): Likewise.
5293 ("faligndata<VM64:mode>_vis"): Likewise.
5294 ("bshuffle<VM64:mode>_vis"): Likewise.
5295 ("cmask8<P:mode>_vis"): Likewise.
5296 ("cmask16<P:mode>_vis"): Likewise.
5297 ("cmask32<P:mode>_vis"): Likewise.
5298 ("fchksm16_vis"): Likewise.
5299 ("v<vis3_shift_patname><GCM:mode>3"): Likewise.
5300 ("fmean16_vis"): Likewise.
5301 ("fp<plusminus_insn>64_vis"): Likewise.
5302 ("<plusminus_insn>v8qi3"): Likewise.
5303 ("<vis3_addsub_ss_patname><VASS:mode>3"): Likewise.
5304 ("<vis4_minmax_patname><VMMAX:mode>3"): Likewise.
5305 ("<vis4_uminmax_patname><VMMAX:mode>3"): Likewise.
5306 ("<vis3_addsub_ss_patname>v8qi3"): Likewise.
5307 ("<vis4_addsub_us_patname><VAUS:mode>3"): Likewise.
5308 ("*movqi_insn"): Likewise.
5309 ("*movhi_insn"): Likewise.
5310 ("*movsi_insn"): Likewise.
5311 ("movsi_pic_gotdata_op"): Likewise.
5312 ("*movdi_insn_sp32"): Likewise.
5313 ("*movdi_insn_sp64"): Likewise.
5314 ("movdi_pic_gotdata_op"): Likewise.
5315 ("*movsf_insn"): Likewise.
5316 ("*movdf_insn_sp32"): Likewise.
5317 ("*movdf_insn_sp64"): Likewise.
5318 ("*zero_extendhisi2_insn"): Likewise.
5319 ("*zero_extendqihi2_insn"): Likewise.
5320 ("*zero_extendqisi2_insn"): Likewise.
5321 ("*zero_extendqidi2_insn"): Likewise.
5322 ("*zero_extendhidi2_insn"): Likewise.
5323 ("*zero_extendsidi2_insn_sp64"): Likewise.
5324 ("ldfsr"): Likewise.
5325 ("prefetch_64"): Likewise.
5326 ("prefetch_32"): Likewise.
5327 ("tie_ld32"): Likewise.
5328 ("tie_ld64"): Likewise.
5329 ("*tldo_ldub_sp32"): Likewise.
5330 ("*tldo_ldub1_sp32"): Likewise.
5331 ("*tldo_ldub2_sp32"): Likewise.
5332 ("*tldo_ldub_sp64"): Likewise.
5333 ("*tldo_ldub1_sp64"): Likewise.
5334 ("*tldo_ldub2_sp64"): Likewise.
5335 ("*tldo_ldub3_sp64"): Likewise.
5336 ("*tldo_lduh_sp32"): Likewise.
5337 ("*tldo_lduh1_sp32"): Likewise.
5338 ("*tldo_lduh_sp64"): Likewise.
5339 ("*tldo_lduh1_sp64"): Likewise.
5340 ("*tldo_lduh2_sp64"): Likewise.
5341 ("*tldo_lduw_sp32"): Likewise.
5342 ("*tldo_lduw_sp64"): Likewise.
5343 ("*tldo_lduw1_sp64"): Likewise.
5344 ("*tldo_ldx_sp64"): Likewise.
5345 ("*mov<VM32:mode>_insn"): Likewise.
5346 ("*mov<VM64:mode>_insn_sp64"): Likewise.
5347 ("*mov<VM64:mode>_insn_sp32"): Likewise.
5348
5349 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
5350
5351 * config/sparc/sparc.md ("type"): New insn type viscmp.
5352 ("fcmp<gcond:code><GCM:gcm_name><P:mode>_vis"): Set insn type to
5353 viscmp.
5354 ("fpcmp<gcond:code>8<P:mode>_vis"): Likewise.
5355 ("fucmp<gcond:code>8<P:mode>_vis"): Likewise.
5356 ("fpcmpu<gcond:code><GCM:gcm_name><P:mode>_vis"): Likewise.
5357 * config/sparc/niagara7.md ("n7_vis_logical_v3pipe"): Handle
5358 viscmp.
5359 ("n7_vis_logical_11cycle"): Likewise.
5360 * config/sparc/niagara4.md ("n4_vis_logical"): Likewise.
5361 * config/sparc/niagara2.md ("niag3_vis": Likewise.
5362 * config/sparc/niagara.md ("niag_vis"): Likewise.
5363 * config/sparc/ultra3.md ("us3_fga"): Likewise.
5364 * config/sparc/ultra1_2.md ("us1_fga_double"): Likewise.
5365
5366 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
5367
5368 * config/sparc/sparc.md: New instruction type `bmask'.
5369 (bmaskdi_vis): Use the `bmask' type.
5370 (bmasksi_vis): Likewise.
5371 * config/sparc/ultra3.md (us3_array): Likewise.
5372 * config/sparc/niagara7.md (n7_array): Likewise.
5373 * config/sparc/niagara4.md (n4_array): Likewise.
5374 * config/sparc/niagara2.md (niag2_vis): Likewise.
5375 (niag3_vis): Likewise.
5376 * config/sparc/niagara.md (niag_vis): Likewise.
5377
5378 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
5379
5380 * ipa-comdats.c: Remove optimize check from gate.
5381 * ipa-fnsummary.c (ipa_fn_summary_generate): do not generate summary
5382 for functions not optimized.
5383 (ipa_fn_summary_read): Skip optimize check.
5384 (ipa_fn_summary_write): Likewise.
5385 * ipa-inline-analysis.c (do_estimate_growth_1): Check that caller
5386 is optimized.
5387 * ipa-inline.c (can_inline_edge_p): Not optimized functions are
5388 uninlinable.
5389 (can_inline_edge_p): Check flag_pcc_struct_return for match.
5390 (check_callers): Give up on caller which is not optimized.
5391 (inline_small_functions): Likewise.
5392 (ipa_inline): Do not give up when not optimizing.
5393 * ipa-visbility.c (function_and_variable_visibility): Do not optimize
5394 away unoptimizes cdtors.
5395 (whole_program_function_and_variable_visibility): Do
5396 ipa_discover_readonly_nonaddressable_vars in LTO mode.
5397 * ipa.c (process_references): Do not check optimize.
5398 (symbol_table::remove_unreachable_nodes): Update optimize check.
5399 (set_writeonly_bit): Update optimize check.
5400 (pass_ipa_cdtor_merge::gate): Do not check optimize.
5401 (pass_ipa_single_use::gate): Remove.
5402
5403 2017-07-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
5404
5405 * config/rs6000/rs6000.c (union_defs, union_uses, insn_is_load_p,
5406 insn_is_store_p, insn_is_swap_p, const_load_sequence_p, v2df_reduction_p,
5407 rtx_is_swappable_p, insn_is_swappable_p, chain_contains_only_swaps,
5408 mark_swaps_for_removal, swap_const_vector_halves, adjust_subreg_index,
5409 permute_load, permute_store, adjust_extract, adjust_splat,
5410 adjust_xxpermdi, adjust_concat, adjust_vperm, handle_special_swappables,
5411 replace_swap_with_copy, dump_swap_insn_table,
5412 alignment_with_canonical_addr, alignment_mask, find_alignment_op,
5413 recombine_lvx_pattern, recombine_stvx_pattern,
5414 recombine_lvx_stvx_patterns, rs6000_analyze_swaps,
5415 make_pass_analyze_swaps): Move all code related to p8 swap optimizations
5416 to file rs6000-p8swap.c.
5417 * config/rs6000/rs6000-p8swap.c: New file.
5418 * config/rs6000/t-rs6000: Add rule to build rs6000-p8swap.o.
5419 * config.gcc: Add rs6000-p8swap.o to extra_objs for powerpc*-*-*
5420 and rs6000*-*-* targets.
5421
5422 2017-07-06 David Malcolm <dmalcolm@redhat.com>
5423
5424 * Makefile.in (selftest): Remove dependency on s-selftest-c++.
5425
5426 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
5427
5428 * lto-wrapper.c (merge_and_complain): Do not merge
5429 fexceptions, fnon_call_exceptions, ftrapv, ffp_contract_, fmath_errno,
5430 fsigned_zeros, ftrapping_math, fwrapv.
5431 (append_compiler_options): Do not track these options.
5432 (append_linker_options): Likewie
5433
5434 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
5435
5436 * cgraphunit.c (cgraph_node::finalize_function): When
5437 !flag_toplevel_reorde set no_reorder flag.
5438 (varpool_node::finalize_decl): Likewise.
5439 (symbol_table::compile): Drop no toplevel reorder path.
5440
5441 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
5442
5443 * bb-reorder.c (better_edge_p): Do not build traces across abnormal/eh
5444 edges; zero probability is not better than uninitialized.
5445
5446 2017-07-06 Maxim Ostapenko <m.ostapenko@samsung.com>
5447
5448 * asan.h (asan_sanitize_allocas_p): Declare.
5449 * asan.c (asan_sanitize_allocas_p): New function.
5450 (handle_builtin_stack_restore): Bail out if !asan_sanitize_allocas_p.
5451 (handle_builtin_alloca): Likewise.
5452 * cfgexpand.c (expand_used_vars): Do not add allocas unpoisoning stuff
5453 if !asan_sanitize_allocas_p.
5454 * params.def (asan-instrument-allocas): Add new option.
5455 * params.h (ASAN_PROTECT_ALLOCAS): Define.
5456 * opts.c (common_handle_option): Disable allocas sanitization for
5457 KASan by default.
5458
5459 2017-07-06 Maxim Ostapenko <m.ostapenko@samsung.com>
5460
5461 * asan.c: Include gimple-fold.h.
5462 (get_last_alloca_addr): New function.
5463 (handle_builtin_stackrestore): Likewise.
5464 (handle_builtin_alloca): Likewise.
5465 (asan_emit_allocas_unpoison): Likewise.
5466 (get_mem_refs_of_builtin_call): Add new parameter, remove const
5467 quallifier from first paramerer. Handle BUILT_IN_ALLOCA,
5468 BUILT_IN_ALLOCA_WITH_ALIGN and BUILT_IN_STACK_RESTORE builtins.
5469 (instrument_builtin_call): Pass gimple iterator to
5470 get_mem_refs_of_builtin_call.
5471 (last_alloca_addr): New global.
5472 * asan.h (asan_emit_allocas_unpoison): Declare.
5473 * builtins.c (expand_asan_emit_allocas_unpoison): New function.
5474 (expand_builtin): Handle BUILT_IN_ASAN_ALLOCAS_UNPOISON.
5475 * cfgexpand.c (expand_used_vars): Call asan_emit_allocas_unpoison
5476 if function calls alloca.
5477 * gimple-fold.c (replace_call_with_value): Remove static keyword.
5478 * gimple-fold.h (replace_call_with_value): Declare.
5479 * internal-fn.c: Include asan.h.
5480 * sanitizer.def (BUILT_IN_ASAN_ALLOCA_POISON,
5481 BUILT_IN_ASAN_ALLOCAS_UNPOISON): New builtins.
5482
5483 2017-07-06 David Malcolm <dmalcolm@redhat.com>
5484
5485 * Makefile.in (SELFTEST_FLAGS): Drop "-x c", moving it to...
5486 (C_SELFTEST_FLAGS): New.
5487 (CPP_SELFTEST_FLAGS): New.
5488 (SELFTEST_DEPS): New, from deps of s-selftest.
5489 (C_SELFTEST_DEPS): New, from deps of s-selftest.
5490 (CPP_SELFTEST_DEPS): New.
5491 (selftest): Add dependency on s-selftest-c++.
5492 (s-selftest): Rename to...
5493 (s-selftest-c): ...this, moving deps to SELFTEST_DEPS
5494 and C_SELFTEST_DEPS, and using C_SELFTEST_FLAGS rather
5495 than SELFTEST_FLAGS.
5496 (selftest-gdb): Rename to...
5497 (selftest-c-gdb): ...this, using C_SELFTEST_DEPS and
5498 C_SELFTEST_FLAGS.
5499 (selftest-gdb): Reintroduce as an alias for selftest-c-gdb.
5500 (selftest-valgrind): Rename to...
5501 (selftest-c-valgrind): ...this, using C_SELFTEST_DEPS and
5502 C_SELFTEST_FLAGS.
5503 (selftest-valgrind): Reintroduce as an alias for
5504 selftest-c-valgrind.
5505 (s-selftest-c++): New.
5506 (selftest-c++-gdb): New.
5507 (selftest-c++-valgrind): New.
5508
5509 2017-07-06 Olivier Hainque <hainque@adacore.com>
5510
5511 * gcc.c (process_command): When deciding if undefined variables
5512 should be ignored when processing specs, accept "gcc -v" as well.
5513
5514 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
5515
5516 * auto-profile.c (afdo_set_bb_count, afdo_propagate_edge,
5517 afdo_annotate_cfg): Set counts/probabilities as determined by afdo.
5518
5519 2017-07-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
5520
5521 * config/arm/arm-cpus.in (armv8-r): Add new entry.
5522 * config/arm/arm-isa.h (ISA_ARMv8r): Define macro.
5523 * config/arm/arm-tables.opt: Regenerate.
5524 * config/arm/arm.h (enum base_architecture): Add BASE_ARCH_8R
5525 enumerator.
5526 * doc/invoke.texi: Mention -march=armv8-r and its extensions.
5527
5528 2017-07-06 Carl Love <cel@us.ibm.com>
5529
5530 * ChangeLog: Clean up from mid air collision
5531
5532 2017-07-06 Carl Love <cel@us.ibm.com>
5533
5534 * config/rs6000/rs6000-c.c: Add support for built-in functions
5535 vector signed int vec_subc (vector signed int, vector signed int);
5536 vector signed __int128 vec_subc (vector signed __int128,
5537 vector signed __int128);
5538 vector unsigned __int128 vec_subc (vector unsigned __int128,
5539 vector unsigned __int128);
5540 vector signed int vec_sube (vector signed int, vector signed int,
5541 vector signed int);
5542 vector unsigned int vec_sube (vector unsigned int,
5543 vector unsigned int,
5544 vector unsigned int);
5545 vector signed __int128 vec_sube (vector signed __int128,
5546 vector signed __int128,
5547 vector signed__int128);
5548 vector unsigned __int128 vec_sube (vector unsigned __int128,
5549 vector unsigned __int128,
5550 vector unsigned __int128);
5551 vector signed int vec_subec (vector signed int, vector signed int,
5552 vector signed int);
5553 vector unsigned int vec_subec (vector unsigned int,
5554 vector unsigned int,
5555 vector unsigned int);
5556 vector signed __int128 vec_subec (vector signed __int128,
5557 vector signed __int128,
5558 vector signed__int128);
5559 vector unsigned __int128 vec_subec (vector unsigned __int128,
5560 vector unsigned __int128,
5561 vector unsigned __int128);
5562 * config/rs6000/rs6000.c (ALTIVEC_BUILTIN_VEC_SUBE,
5563 ALTIVEC_BUILTIN_VEC_SUBEC): Add ef_builtins.
5564 * config/rs6000/rs6000-builtin.def (SUBE, SUBEC): Add
5565 BU_ALTIVEC_OVERLOAD_X definitions.
5566 * config/rs6000/altivec.h (vec_sube, vec_subec): Add builtin defines.
5567 * doc/extend.texi: Update the built-in documentation file for the new
5568 built-in functions.
5569
5570 2017-07-06 David Malcolm <dmalcolm@redhat.com>
5571
5572 PR c++/79300
5573 * diagnostic-show-locus.c (layout::layout): Use start and finish
5574 spelling location for the start and finish of each range.
5575 * genmatch.c (linemap_client_expand_location_to_spelling_point):
5576 Add unused aspect param.
5577 * input.c (expand_location_1): Add "aspect" param, and use it
5578 to access the correct part of the location.
5579 (expand_location): Pass LOCATION_ASPECT_CARET to new param of
5580 expand_location_1.
5581 (expand_location_to_spelling_point): Likewise.
5582 (linemap_client_expand_location_to_spelling_point): Add "aspect"
5583 param, and pass it to expand_location_1.
5584
5585 2017-07-06 Sebastian Peryt <sebastian.peryt@intel.com>
5586
5587 * config/i386/avx512fintrin.h (_mm_mask_getexp_round_ss,
5588 _mm_maskz_getexp_round_ss, _mm_mask_getexp_round_sd,
5589 _mm_maskz_getexp_round_sd, _mm_mask_getmant_round_sd,
5590 _mm_maskz_getmant_round_sd, _mm_mask_getmant_round_ss,
5591 _mm_maskz_getmant_round_ss, _mm_mask_getexp_ss, _mm_maskz_getexp_ss,
5592 _mm_mask_getexp_sd, _mm_maskz_getexp_sd, _mm_mask_getmant_sd,
5593 _mm_maskz_getmant_sd, _mm_mask_getmant_ss,
5594 _mm_maskz_getmant_ss): New intrinsics.
5595 (__builtin_ia32_getexpss128_mask): Changed to ...
5596 __builtin_ia32_getexpss128_round ... this.
5597 (__builtin_ia32_getexpsd128_mask): Changed to ...
5598 __builtin_ia32_getexpsd128_round ... this.
5599 * config/i386/i386-builtin-types.def
5600 ((V2DF, V2DF, V2DF, INT, V2DF, UQI, INT),
5601 (V4SF, V4SF, V4SF, INT, V4SF, UQI, INT)): New function type aliases.
5602 * config/i386/i386-builtin.def (__builtin_ia32_getexpsd_mask_round,
5603 __builtin_ia32_getexpss_mask_round, __builtin_ia32_getmantsd_mask_round,
5604 __builtin_ia32_getmantss_mask_round): New builtins.
5605 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_UQI_INT,
5606 V4SF_FTYPE_V4SF_V4SF_INT_V4SF_UQI_INT): Handle new types.
5607 (CODE_FOR_avx512f_vgetmantv2df_mask_round,
5608 CODE_FOR_avx512f_vgetmantv4sf_mask_round): New cases.
5609 * config/i386/sse.md
5610 (avx512f_sgetexp<mode><round_saeonly_name>): Changed to ...
5611 avx512f_sgetexp<mode><mask_scalar_name>
5612 <round_saeonly_scalar_name> ... this.
5613 (vgetexp<ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|
5614 %0, %1, %2<round_saeonly_op3>}): Changed to ...
5615 vgetexp<ssescalarmodesuffix>
5616 \t{<round_saeonly_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
5617 %0<mask_scalar_operand3>, %1, %2<round_saeonly_scalar_mask_op3>} ... this.
5618 (avx512f_vgetmant<mode><round_saeonly_name>): Changed to ...
5619 avx512f_vgetmant<mode><mask_scalar_name>
5620 <round_saeonly_scalar_name> ... this.
5621 (vgetmant<ssescalarmodesuffix>\t{%3, <round_saeonly_op4>%2, %1, %0|
5622 %0, %1, %2<round_saeonly_op4>, %3}): Changed to ...
5623 vgetmant<ssescalarmodesuffix>
5624 \t{%3, <round_saeonly_scalar_mask_op4>%2, %1, %0<mask_scalar_operand4>|
5625 %0<mask_scalar_operand4>, %1, %2
5626 <round_saeonly_scalar_mask_op4>, %3} ... this.
5627 * config/i386/subst.md (mask_scalar_operand4,
5628 round_saeonly_scalar_mask_operand4, round_saeonly_scalar_mask_op4,
5629 round_saeonly_scalar_nimm_predicate): New subst attributes.
5630
5631 2017-07-06 Julia Koval <julia.koval@intel.com>
5632
5633 * config/i386/i386.c (ix86_erase_embedded_rounding):
5634 Remove code for old rounding pattern.
5635
5636 2017-07-06 Richard Earnshaw <rearnsha@arm.com>
5637
5638 * config/arm/t-arm (GTM_H): Add arm-cpu.h.
5639
5640 2017-07-06 Christophe Lyon <christophe.lyon@linaro.org>
5641
5642 * doc/sourcebuild.texi (Test Directives, Variants of
5643 dg-require-support): Add documentation for dg-require-stack-check.
5644
5645 2017-07-05 Sebastian Peryt <sebastian.peryt@intel.com>
5646
5647 * config/i386/subst.md (mask_scalar, round_scalar,
5648 round_saeonly_scalar): New meta-templates.
5649 (mask_scalar_name, mask_scalar_operand3, round_scalar_name,
5650 round_scalar_mask_operand3, round_scalar_mask_op3,
5651 round_scalar_constraint, round_scalar_prefix, round_saeonly_scalar_name,
5652 round_saeonly_scalar_mask_operand3, round_saeonly_scalar_mask_op3,
5653 round_saeonly_scalar_constraint,
5654 round_saeonly_scalar_prefix): New subst attribute.
5655 * config/i386/sse.md
5656 (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): Renamed to ...
5657 <sse>_vm<plusminus_insn><mode>3<mask_scalar_name>
5658 <round_scalar_name> ... this.
5659 (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): Renamed to ...
5660 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name>
5661 <round_scalar_name> ... this.
5662 (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): Renamed to ...
5663 <sse>_vm<code><mode>3<mask_scalar_name>
5664 <round_saeonly_scalar_name> ... this.
5665 (v<plusminus_mnemonic><ssescalarmodesuffix>
5666 \t{<round_mask_op3>%2, %1, %0<mask_operand3>|
5667 %0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}): Changed to ...
5668 v<plusminus_mnemonic><ssescalarmodesuffix>
5669 \t{<round_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
5670 %0<mask_scalar_operand3>, %1, %<iptr>2<round_scalar_mask_op3>} ... this.
5671 (v<multdiv_mnemonic><ssescalarmodesuffix>
5672 \t{<round_mask_op3>%2, %1, %0<mask_operand3>|
5673 %0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}): Changed to ...
5674 v<multdiv_mnemonic><ssescalarmodesuffix>
5675 \t{<round_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
5676 %0<mask_scalar_operand3>, %1, %<iptr>2<round_scalar_mask_op3>} ... this.
5677 (v<maxmin_float><ssescalarmodesuffix>
5678 \t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|
5679 %0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}): Changed to ...
5680 v<maxmin_float><ssescalarmodesuffix>
5681 \t{<round_saeonly_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
5682 %0<mask_scalar_operand3>, %1, %<iptr>2
5683 <round_saeonly_scalar_mask_op3>} ... this.
5684
5685 2017-07-05 Richard Earnshaw <rearnsha@arm.com>
5686
5687 * config/arm/arm.c (arm_fixed_condition_code_regs): New function.
5688 (TARGET_FIXED_CONDITION_CODE_REGS): Redefine.
5689
5690 2017-07-05 Richard Sandiford <richard.sandiford@linaro.org>
5691 Alan Hayward <alan.hayward@arm.com>
5692 David Sherwood <david.sherwood@arm.com>
5693
5694 * combine.c (simplify_if_then_else): Remove "enum" before
5695 "machine_mode".
5696 * compare-elim.c (can_eliminate_compare): Likewise.
5697 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_std_type):
5698 Likewise.
5699 (aarch64_lookup_simd_builtin_type): Likewise.
5700 (aarch64_simd_builtin_type): Likewise.
5701 (aarch64_init_simd_builtin_types): Likewise.
5702 (aarch64_simd_expand_args): Likewise.
5703 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist):
5704 Likewise.
5705 (aarch64_reverse_mask): Likewise.
5706 (aarch64_simd_emit_reg_reg_move): Likewise.
5707 (aarch64_gen_adjusted_ldpstp): Likewise.
5708 (aarch64_ccmp_mode_to_code): Likewise.
5709 (aarch64_operands_ok_for_ldpstp): Likewise.
5710 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
5711 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class):
5712 Likewise.
5713 (aarch64_min_divisions_for_recip_mul): Likewise.
5714 (aarch64_reassociation_width): Likewise.
5715 (aarch64_get_condition_code_1): Likewise.
5716 (aarch64_simd_emit_reg_reg_move): Likewise.
5717 (aarch64_simd_attr_length_rglist): Likewise.
5718 (aarch64_reverse_mask): Likewise.
5719 (aarch64_operands_ok_for_ldpstp): Likewise.
5720 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
5721 (aarch64_gen_adjusted_ldpstp): Likewise.
5722 * config/aarch64/cortex-a57-fma-steering.c (fma_node::rename):
5723 Likewise.
5724 * config/arc/arc.c (legitimate_offset_address_p): Likewise.
5725 * config/arm/arm-builtins.c (arm_simd_builtin_std_type): Likewise.
5726 (arm_lookup_simd_builtin_type): Likewise.
5727 (arm_simd_builtin_type): Likewise.
5728 (arm_init_simd_builtin_types): Likewise.
5729 (arm_expand_builtin_args): Likewise.
5730 * config/arm/arm-protos.h (arm_expand_builtin): Likewise.
5731 * config/ft32/ft32.c (ft32_libcall_value): Likewise.
5732 (ft32_setup_incoming_varargs): Likewise.
5733 (ft32_function_arg): Likewise.
5734 (ft32_function_arg_advance): Likewise.
5735 (ft32_pass_by_reference): Likewise.
5736 (ft32_arg_partial_bytes): Likewise.
5737 (ft32_valid_pointer_mode): Likewise.
5738 (ft32_addr_space_pointer_mode): Likewise.
5739 (ft32_addr_space_legitimate_address_p): Likewise.
5740 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple):
5741 Likewise.
5742 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
5743 (ix86_emit_outlined_ms2sysv_restore): Likewise.
5744 (iamcu_alignment): Likewise.
5745 (canonicalize_vector_int_perm): Likewise.
5746 (ix86_noce_conversion_profitable_p): Likewise.
5747 (ix86_mpx_bound_mode): Likewise.
5748 (ix86_operands_ok_for_move_multiple): Likewise.
5749 * config/microblaze/microblaze-protos.h
5750 (microblaze_expand_conditional_branch_reg): Likewise.
5751 * config/microblaze/microblaze.c
5752 (microblaze_expand_conditional_branch_reg): Likewise.
5753 * config/powerpcspe/powerpcspe.c (rs6000_init_hard_regno_mode_ok):
5754 Likewise.
5755 (rs6000_reassociation_width): Likewise.
5756 (rs6000_invalid_binary_op): Likewise.
5757 (fusion_p9_p): Likewise.
5758 (emit_fusion_p9_load): Likewise.
5759 (emit_fusion_p9_store): Likewise.
5760 * config/riscv/riscv-protos.h (riscv_regno_mode_ok_for_base_p):
5761 Likewise.
5762 (riscv_hard_regno_mode_ok_p): Likewise.
5763 (riscv_address_insns): Likewise.
5764 (riscv_split_symbol): Likewise.
5765 (riscv_legitimize_move): Likewise.
5766 (riscv_function_value): Likewise.
5767 (riscv_hard_regno_nregs): Likewise.
5768 (riscv_expand_builtin): Likewise.
5769 * config/riscv/riscv.c (riscv_build_integer_1): Likewise.
5770 (riscv_build_integer): Likewise.
5771 (riscv_split_integer): Likewise.
5772 (riscv_legitimate_constant_p): Likewise.
5773 (riscv_cannot_force_const_mem): Likewise.
5774 (riscv_regno_mode_ok_for_base_p): Likewise.
5775 (riscv_valid_base_register_p): Likewise.
5776 (riscv_valid_offset_p): Likewise.
5777 (riscv_valid_lo_sum_p): Likewise.
5778 (riscv_classify_address): Likewise.
5779 (riscv_legitimate_address_p): Likewise.
5780 (riscv_address_insns): Likewise.
5781 (riscv_load_store_insns): Likewise.
5782 (riscv_force_binary): Likewise.
5783 (riscv_split_symbol): Likewise.
5784 (riscv_force_address): Likewise.
5785 (riscv_legitimize_address): Likewise.
5786 (riscv_move_integer): Likewise.
5787 (riscv_legitimize_const_move): Likewise.
5788 (riscv_legitimize_move): Likewise.
5789 (riscv_address_cost): Likewise.
5790 (riscv_subword): Likewise.
5791 (riscv_output_move): Likewise.
5792 (riscv_canonicalize_int_order_test): Likewise.
5793 (riscv_emit_int_order_test): Likewise.
5794 (riscv_function_arg_boundary): Likewise.
5795 (riscv_pass_mode_in_fpr_p): Likewise.
5796 (riscv_pass_fpr_single): Likewise.
5797 (riscv_pass_fpr_pair): Likewise.
5798 (riscv_get_arg_info): Likewise.
5799 (riscv_function_arg): Likewise.
5800 (riscv_function_arg_advance): Likewise.
5801 (riscv_arg_partial_bytes): Likewise.
5802 (riscv_function_value): Likewise.
5803 (riscv_pass_by_reference): Likewise.
5804 (riscv_setup_incoming_varargs): Likewise.
5805 (riscv_print_operand): Likewise.
5806 (riscv_elf_select_rtx_section): Likewise.
5807 (riscv_save_restore_reg): Likewise.
5808 (riscv_for_each_saved_reg): Likewise.
5809 (riscv_register_move_cost): Likewise.
5810 (riscv_hard_regno_mode_ok_p): Likewise.
5811 (riscv_hard_regno_nregs): Likewise.
5812 (riscv_class_max_nregs): Likewise.
5813 (riscv_memory_move_cost): Likewise.
5814 * config/rl78/rl78-protos.h (rl78_split_movsi): Likewise.
5815 * config/rl78/rl78.c (rl78_split_movsi): Likewise.
5816 (rl78_addr_space_address_mode): Likewise.
5817 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5818 Likewise.
5819 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
5820 (rs6000_reassociation_width): Likewise.
5821 (rs6000_invalid_binary_op): Likewise.
5822 (fusion_p9_p): Likewise.
5823 (emit_fusion_p9_load): Likewise.
5824 (emit_fusion_p9_store): Likewise.
5825 * config/visium/visium-protos.h (prepare_move_operands): Likewise.
5826 (ok_for_simple_move_operands): Likewise.
5827 (ok_for_simple_move_strict_operands): Likewise.
5828 (ok_for_simple_arith_logic_operands): Likewise.
5829 (visium_legitimize_reload_address): Likewise.
5830 (visium_select_cc_mode): Likewise.
5831 (output_cbranch): Likewise.
5832 (visium_split_double_move): Likewise.
5833 (visium_expand_copysign): Likewise.
5834 (visium_expand_int_cstore): Likewise.
5835 (visium_expand_fp_cstore): Likewise.
5836 * config/visium/visium.c (visium_pass_by_reference): Likewise.
5837 (visium_function_arg): Likewise.
5838 (visium_function_arg_advance): Likewise.
5839 (visium_libcall_value): Likewise.
5840 (visium_setup_incoming_varargs): Likewise.
5841 (visium_legitimate_constant_p): Likewise.
5842 (visium_legitimate_address_p): Likewise.
5843 (visium_legitimize_address): Likewise.
5844 (visium_secondary_reload): Likewise.
5845 (visium_register_move_cost): Likewise.
5846 (visium_memory_move_cost): Likewise.
5847 (prepare_move_operands): Likewise.
5848 (ok_for_simple_move_operands): Likewise.
5849 (ok_for_simple_move_strict_operands): Likewise.
5850 (ok_for_simple_arith_logic_operands): Likewise.
5851 (visium_function_value_1): Likewise.
5852 (rtx_ok_for_offset_p): Likewise.
5853 (visium_legitimize_reload_address): Likewise.
5854 (visium_split_double_move): Likewise.
5855 (visium_expand_copysign): Likewise.
5856 (visium_expand_int_cstore): Likewise.
5857 (visium_expand_fp_cstore): Likewise.
5858 (visium_split_cstore): Likewise.
5859 (visium_select_cc_mode): Likewise.
5860 (visium_split_cbranch): Likewise.
5861 (output_cbranch): Likewise.
5862 (visium_print_operand_address): Likewise.
5863 * expmed.c (flip_storage_order): Likewise.
5864 * expmed.h (emit_cstore): Likewise.
5865 (flip_storage_order): Likewise.
5866 * genrecog.c (validate_pattern): Likewise.
5867 * hsa-gen.c (gen_hsa_addr): Likewise.
5868 * internal-fn.c (expand_arith_overflow): Likewise.
5869 * ira-color.c (allocno_copy_cost_saving): Likewise.
5870 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5871 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5872 (process_invariant_for_inheritance): Likewise.
5873 * lra-eliminations.c (move_plus_up): Likewise.
5874 * omp-low.c (lower_oacc_reductions): Likewise.
5875 * simplify-rtx.c (simplify_subreg): Likewise.
5876 * target.def (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
5877 (TARGET_CHKP_BOUND_MODE): Likewise..
5878 * targhooks.c (default_chkp_bound_mode): Likewise.
5879 (default_setup_incoming_vararg_bounds): Likewise.
5880 * targhooks.h (default_chkp_bound_mode): Likewise.
5881 (default_setup_incoming_vararg_bounds): Likewise.
5882 * tree-ssa-math-opts.c (divmod_candidate_p): Likewise.
5883 * tree-vect-loop.c (calc_vec_perm_mask_for_shift): Likewise.
5884 (have_whole_vector_shift): Likewise.
5885 * tree-vect-stmts.c (vectorizable_load): Likewise.
5886 * doc/tm.texi: Regenerate.
5887
5888 2017-07-05 Georg-Johann Lay <avr@gjlay.de>
5889
5890 Graceful degrade if Binutils PR21472 is not available.
5891
5892 PR target/81072
5893 * configure.ac [target=avr]: WARN instead of ERROR if avrxmega3
5894 .rodata in flash test fails.
5895 (HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH): Define it if test passes.
5896 * confgure: Regenerate.
5897 * config.in: Regenerate.
5898 * config/avr/avr.c (avr_asm_named_section)
5899 [HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH]: Only trigger
5900 __do_copy_data for stuff in .rodata if flash_pm_offset = 0.
5901 (avr_asm_init_sections): Same.
5902
5903 2017-07-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5904
5905 * config/arm/neon.md (fma<VCVTF:mode>4): Remove %?.
5906 (fma<VH:mode>4_intrinsic): Likewise.
5907 (*fmsub<VCVTF:mode>4): Likewise.
5908 (*fmsub<VH:mode>4_intrinsic): Likewise.
5909
5910 2017-07-05 Georg-Johann Lay <avr@gjlay.de>
5911
5912 PR target/81305
5913 * config/avr/avr.c (avr_out_movhi_mr_r_xmega) [CONSTANT_ADDRESS_P]:
5914 Don't depend on "optimize > 0".
5915 (out_movhi_r_mr, out_movqi_mr_r): Same.
5916 (out_movhi_mr_r, out_movqi_r_mr): Same.
5917 (avr_address_cost) [CONSTANT_ADDRESS_P]: Don't depend cost for
5918 io_address_operand on "optimize > 0".
5919
5920 2017-07-05 Bin Cheng <bin.cheng@arm.com>
5921
5922 * tree-loop-distribution.c: Add general explanantion on the pass.
5923 (generate_loops_for_partition): Mark distributed loop.
5924 (pg_add_dependence_edges): New parameter. Handle alias data
5925 dependence specially and record it in the parameter if asked.
5926 (struct pg_vdata, pg_edata, pg_edge_callback_data): New structs.
5927 (init_partition_graph_vertices, add_partition_graph_edge): New.
5928 (pg_skip_alias_edge, free_partition_graph_edata_cb): New.
5929 (free_partition_graph_vdata, build_partition_graph): New.
5930 (sort_partitions_by_post_order, merge_dep_scc_partitions): New.
5931 (pg_collect_alias_ddrs, break_alias_scc_partitions): New.
5932 (data_ref_segment_size, latch_dominated_by_data_ref): New.
5933 (compute_alias_check_pairs, version_loop_by_alias_check): New.
5934 (version_for_distribution_p, finalize_partitions): New.
5935 (distribute_loop): Handle alias data dependence specially. Factor
5936 out loop fusion code as functions and call these functions.
5937
5938 2017-07-05 Bin Cheng <bin.cheng@arm.com>
5939
5940 * tree-loop-distribution.c (classify_partition): New parameter and
5941 better handle reduction statement.
5942 (rdg_build_partitions): Revise comment.
5943 (distribute_loop): Compute statements in all partitions and pass it
5944 to classify_partition.
5945
5946 2017-07-05 Bin Cheng <bin.cheng@arm.com>
5947
5948 * tree-loop-distribution.c (enum partition_type): New.
5949 (struct partition): New field type.
5950 (partition_merge_into): Add parameter. Update partition type.
5951 (data_dep_in_cycle_p, update_type_for_merge): New functions.
5952 (build_rdg_partition_for_vertex): Compute partition type.
5953 (rdg_build_partitions): Dump partition type.
5954 (distribute_loop): Update calls to partition_merge_into.
5955
5956 2017-07-05 Bin Cheng <bin.cheng@arm.com>
5957
5958 * tree-loop-distribution.c (struct ddr_hasher): New.
5959 (ddr_hasher::hash, ::equal, get_data_dependence): New function.
5960 (ddrs_table): New.
5961 (classify_partition): Call get_data_dependence.
5962 (pg_add_dependence_edges): Ditto.
5963 (distribute_loop): Release data dependence hash table.
5964
5965 2017-07-05 Bin Cheng <bin.cheng@arm.com>
5966
5967 * tree-loop-distribution.c (ref_base_address): Delete.
5968 (similar_memory_accesses): Rename ...
5969 (share_memory_accesses): ... to this. Check if partitions access
5970 the same memory reference.
5971 (distribute_loop): Call share_memory_accesses.
5972
5973 2017-07-05 Bin Cheng <bin.cheng@arm.com>
5974
5975 * tree-loop-distribution.c (struct partition): New field recording
5976 its data reference.
5977 (partition_alloc, partition_free): Init and release data refs.
5978 (partition_merge_into): Merge data refs.
5979 (build_rdg_partition_for_vertex): Collect data refs for partition.
5980 (pg_add_dependence_edges): Change parameters from vector to bitmap.
5981 Update uses.
5982 (distribute_loop): Remve data refs from vertice data of partition
5983 graph.
5984
5985 2017-07-05 Bin Cheng <bin.cheng@arm.com>
5986
5987 * tree-loop-distribution.c (params.h): Include header file.
5988 (MAX_DATAREFS_NUM, DR_INDEX): New macro.
5989 (datarefs_vec): New global var.
5990 (create_rdg_vertices): Use datarefs_vec directly.
5991 (free_rdg): Don't free data references.
5992 (build_rdg): Update use. Don't free data references.
5993 (distribute_loop): Compute global variable for data references.
5994 Bail out if there are too many data references.
5995
5996 2017-07-05 Bin Cheng <bin.cheng@arm.com>
5997
5998 * tree-loop-distribution.c (loop_nest): New global var.
5999 (build_rdg): Use loop directly, rather than loop nest.
6000 (pg_add_dependence_edges): Remove loop nest parameter. Use global
6001 variable directly.
6002 (distribute_loop): Compute global variable loop nest. Update use.
6003
6004 2017-07-05 Bin Cheng <bin.cheng@arm.com>
6005
6006 * tree-loop-distribution.c (enum fuse_type, fuse_message): New.
6007 (partition_merge_into): New parameter. Dump reason for fusion.
6008 (distribute_loop): Update use of partition_merge_into.
6009
6010 2017-07-05 Bin Cheng <bin.cheng@arm.com>
6011
6012 * tree-loop-distribution.c (bb_top_order_index): New.
6013 (bb_top_order_index_size, bb_top_order_cmp): New.
6014 (stmts_from_loop): Use topological order.
6015 (pass_loop_distribution::execute): Compute and release topological
6016 order for basic blocks.
6017
6018 2017-07-05 Bin Cheng <bin.cheng@arm.com>
6019
6020 * tree-loop-distribution.c (pass_loop_distribution::execute): Skip
6021 if no loops.
6022
6023 2017-07-05 Bin Cheng <bin.cheng@arm.com>
6024
6025 * cfgloop.h (struct loop): Add comment. New field orig_loop_num.
6026 * cfgloopmanip.c (lv_adjust_loop_entry_edge): Comment change.
6027 * internal-fn.c (expand_LOOP_DIST_ALIAS): New function.
6028 * internal-fn.def (LOOP_DIST_ALIAS): New.
6029 * tree-vectorizer.c (fold_loop_vectorized_call): Rename to ...
6030 (fold_loop_internal_call): ... this.
6031 (vect_loop_dist_alias_call): New function.
6032 (set_uid_loop_bbs): Call fold_loop_internal_call.
6033 (vectorize_loops): Fold IFN_LOOP_VECTORIZED and IFN_LOOP_DIST_ALIAS
6034 internal calls.
6035
6036 2017-07-04 Uros Bizjak <ubizjak@gmail.com>
6037
6038 PR target/81300
6039 * config/i386/i386.md (setcc + movzbl/and to xor + setcc peepholes):
6040 Require dead FLAGS_REG at the beginning of a peephole.
6041
6042 2017-07-04 Uros Bizjak <ubizjak@gmail.com>
6043
6044 PR target/81294
6045 * config/i386/adxintrin.h (_subborrow_u32): Swap _X and _Y
6046 arguments in the call to __builtin_ia32_sbb_u32.
6047 (_subborrow_u64): Swap _X and _Y arguments in the call to
6048 __builtin_ia32_sbb_u64.
6049
6050 2017-07-04 Jakub Jelinek <jakub@redhat.com>
6051
6052 PR debug/81278
6053 * tree-vrp.c (compare_assert_loc): Turn into a function template
6054 with stable template parameter. Only test if a->e is NULL,
6055 !a->e == !b->e has been verified already. Use e == NULL or
6056 e != NULL instead of e or ! e tests. If stable is true, don't use
6057 iterative_hash_expr, on the other side allow a or b or both NULL
6058 and sort the NULLs last.
6059 (process_assert_insertions): Sort using compare_assert_loc<false>
6060 instead of compare_assert_loc, later sort using
6061 compare_assert_loc<true> before calling process_assert_insertions_for
6062 in a loop. Use break instead of continue once seen NULL pointer.
6063
6064 2017-07-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6065
6066 * config/arm/driver-arm.c (arm_cpu_table): Add entry for ARM
6067 Cortex-R7 and Cortex-R8 processors.
6068
6069 2017-07-04 Jan Hubicka <hubicka@ucw.cz>
6070
6071 * ipa-utils.c (ipa_merge_profiles): Fix merging when dst is
6072 uninitialized while src is not.
6073
6074 2017-07-04 Richard Earnshaw <rearnsha@arm.com>
6075
6076 * common/config/arm/arm-common.c: Adjust include path for
6077 arm-cpu-cdata.h
6078 * config/arm/t-arm (TM_H): Adjust path for arm-cpu.h.
6079 (arm-cpu.h): Create in build directory. Adjust dependency rules.
6080 (arm-cpu-data.h): Likewise.
6081 (arm-cpu-cdata.h): Likewise.
6082 * config/arm/arm-cpu.h: Delete.
6083 * config/arm/arm-cpu-cdata.h: Delete.
6084 * config/arm/arm-cpu-data.h: Delete.
6085
6086 2017-07-04 James Greenhalgh <james.greenhalgh@arm.com>
6087
6088 * config/arm/arm-cpus.in (cortex-a55): New.
6089 (cortex-a75): Likewise.
6090 (cortex-a75.cortex-a55): Likewise.
6091 * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a55 and
6092 cortex-a75.
6093 * doc/invoke.texi (-mcpu): Document cortex-a55 and cortex-a75.
6094 * config/arm/arm-cpu-cdata.h: Regenerate.
6095 * config/arm/arm-cpu-data.h: Regenerate.
6096 * config/arm/arm-cpu.h: Regenerate.
6097 * config/arm/arm-tables.opt: Regenerate.
6098 * config/arm/arm-tune.md: Regenerate.
6099
6100 2017-07-04 Jan Hubicka <hubicka@ucw.cz>
6101
6102 * haifa-sched.c (sched_create_recovery_edges): Update profile.
6103
6104 2017-07-04 Jan Hubicka <hubicka@ucw.cz>
6105
6106 * bb-reorder.c (better_edge_p): Fix handling of uninitialized
6107 probability.
6108
6109 2017-07-04 Richard Sandiford <richard.sandiford@linaro.org>
6110
6111 PR tree-optimization/81292
6112 * tree-ssa-strlen.c (handle_builtin_strlen): When setting
6113 full_string_p, also call adjust_related_strinfos if the adjustment
6114 is simple, otherwise invalidate related strinfos.
6115
6116 2017-07-04 Martin Liska <mliska@suse.cz>
6117
6118 PR sanitizer/81040
6119 * sanopt.c (sanitize_rewrite_addressable_params): Mark the
6120 newly created variable as DECL_IGNORED_P.
6121
6122 2017-07-04 Martin Liska <mliska@suse.cz>
6123
6124 PR ipa/81293
6125 * ipa-inline.c (inline_small_functions):
6126 Use xstrdup_for_dump.
6127
6128 2017-07-04 Tom de Vries <tom@codesourcery.com>
6129
6130 * graph.c (draw_cfg_edges): Save and restore EDGE_DFS_BACK.
6131
6132 2017-07-03 Dominique d'Humieres <dominiq@lps.ens.fr>
6133
6134 PR target/81033
6135 * config/darwin.c (darwin_function_switched_text_sections):
6136 Fix spaces.
6137
6138 2017-07-03 Jan Hubicka <hubicka@ucw.cz>
6139
6140 * tree-vect-loop-manip.c (vect_do_peeling): Fix scaling up.
6141
6142 2017-07-03 Richard Earnshaw <rearnsha@arm.com>
6143
6144 * doc/invoke.texi (ARM Options): Add -mbe8 and -mbe32 to option summary.
6145
6146 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
6147
6148 * tree-vect-loop.c (vect_analyze_loop_2): Treat min_scalar_loop_bound,
6149 min_profitable_iters, and th as inclusive lower bounds.
6150 Fix LOOP_VINFO_PEELING_FOR_GAPS condition.
6151 (vect_estimate_min_profitable_iters): Return inclusive lower bounds
6152 for min_profitable_iters and min_profitable_estimate.
6153 (vect_transform_loop): Treat th as an inclusive lower bound.
6154 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
6155
6156 2017-07-03 Dominique d'Humieres <dominiq@lps.ens.fr>
6157
6158 PR target/81033
6159 * config/darwin.c (darwin_function_switched_text_sections):
6160 Replace DECL_NAME with DECL_ASSEMBLER_NAME, split assemble_name_raw
6161 in two pieces, and suppress the use of buf.
6162
6163 2017-07-03 Nathan Sidwell <nathan@acm.org>
6164
6165 * hash-table.h (hash_table_mod1): Fix indentation.
6166
6167 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
6168
6169 PR middle-end/81290
6170 * predict.c (force_edge_cold): Be more careful about propagation
6171 backward.
6172 * profile-count.h (profile_probability::guessed,
6173 profile_probability::fdo, profile_count::guessed, profile_count::fdo):
6174 New.
6175 * tree-ssa-threadupdate.c (recompute_probabilities): Result is guessed.
6176
6177 2017-07-03 James Greenhalgh <james.greenhalgh@arm.com>
6178
6179 * doc/invoke.texi (rcpc architecture extension): Document it.
6180
6181 2017-07-03 Richard Biener <rguenther@suse.de>
6182
6183 PR tree-optimization/60510
6184 * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass in
6185 the scalar reduction PHI and use it.
6186 (vectorizable_reduction): Properly guard the single_defuse_cycle
6187 path for non-SLP reduction chains where we cannot use it.
6188 Rework reduc_def/index and vector type deduction. Rework
6189 vector operand gathering during reduction op code-gen.
6190 * tree-vect-slp.c (vect_analyze_slp): For failed SLP reduction
6191 chains dissolve the chain and leave it to non-SLP reduction
6192 handling.
6193
6194 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
6195
6196 * tree-data-ref.h (dr_alignment): Declare.
6197 * tree-data-ref.c (dr_alignment): New function.
6198 * tree-vectorizer.h (dataref_aux): Remove base_element_aligned.
6199 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Don't
6200 set it.
6201 * tree-vect-stmts.c (vectorizable_store): Use dr_alignment.
6202
6203 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
6204
6205 * tree-data-ref.h (innermost_loop_behavior): Add base_alignment
6206 and base_misalignment fields.
6207 (DR_BASE_ALIGNMENT, DR_BASE_MISALIGNMENT): New macros.
6208 * tree-data-ref.c: Include builtins.h.
6209 (dr_analyze_innermost): Set up the new innmost_loop_behavior fields.
6210 * tree-vectorizer.h (STMT_VINFO_DR_BASE_ALIGNMENT): New macro.
6211 (STMT_VINFO_DR_BASE_MISALIGNMENT): Likewise.
6212 * tree-vect-data-refs.c: Include tree-cfg.h.
6213 (vect_compute_data_ref_alignment): Use the new innermost_loop_behavior
6214 fields instead of calculating an alignment here.
6215 (vect_analyze_data_refs): Use dr_analyze_innermost. Dump the new
6216 innermost_loop_behavior fields.
6217
6218 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
6219
6220 * tree-data-ref.h (innermost_loop_behavior): Add a step_alignment
6221 field.
6222 (DR_STEP_ALIGNMENT): New macro.
6223 * tree-vectorizer.h (STMT_VINFO_DR_STEP_ALIGNMENT): Likewise.
6224 * tree-data-ref.c (dr_analyze_innermost): Initalize step_alignment.
6225 (create_data_ref): Print it.
6226 * tree-vect-stmts.c (vectorizable_load): Use the step alignment
6227 to tell whether the step preserves vector (mis)alignment.
6228 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
6229 Move the check for an integer step and generalise to all INTEGER_CST.
6230 (vect_analyze_data_refs): Set DR_STEP_ALIGNMENT when setting DR_STEP.
6231 Print the outer step alignment.
6232
6233 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
6234
6235 * tree-data-ref.h (innermost_loop_behavior): Replace aligned_to
6236 with offset_alignment.
6237 (DR_ALIGNED_TO): Delete.
6238 (DR_OFFSET_ALIGNMENT): New macro.
6239 * tree-vectorizer.h (STMT_VINFO_DR_ALIGNED_TO): Delete.
6240 (STMT_VINFO_DR_OFFSET_ALIGNMENT): New macro.
6241 * tree-data-ref.c (dr_analyze_innermost): Update after above changes.
6242 (create_data_ref): Likewise.
6243 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
6244 (vect_analyze_data_refs): Likewise.
6245 * tree-if-conv.c (if_convertible_loop_p_1): Use memset before
6246 creating dummy innermost behavior.
6247
6248 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
6249
6250 * tree-data-ref.h (dr_analyze_innermost): Replace the dr argument
6251 with a "innermost_loop_behavior *" and refeence tree.
6252 * tree-data-ref.c (dr_analyze_innermost): Likewise.
6253 (create_data_ref): Update call accordingly.
6254 * tree-predcom.c (find_looparound_phi): Likewise.
6255
6256 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
6257
6258 * tree-vectorizer.h (_stmt_vec_info): Replace individual dr_*
6259 fields with dr_wrt_vec_loop.
6260 (STMT_VINFO_DR_BASE_ADDRESS, STMT_VINFO_DR_INIT, STMT_VINFO_DR_OFFSET)
6261 (STMT_VINFO_DR_STEP, STMT_VINFO_DR_ALIGNED_TO): Update accordingly.
6262 (STMT_VINFO_DR_WRT_VEC_LOOP): New macro.
6263 (vect_dr_behavior): New function.
6264 (vect_create_addr_base_for_vector_ref): Remove loop parameter.
6265 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
6266 vect_dr_behavior. Use a step_preserves_misalignment_p boolean to
6267 track whether the step preserves the misalignment.
6268 (vect_create_addr_base_for_vector_ref): Remove loop parameter.
6269 Use vect_dr_behavior.
6270 (vect_setup_realignment): Update call accordingly.
6271 (vect_create_data_ref_ptr): Likewise. Use vect_dr_behavior.
6272 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Update
6273 call to vect_create_addr_base_for_vector_ref.
6274 (vect_create_cond_for_align_checks): Likewise.
6275 * tree-vect-patterns.c (vect_recog_bool_pattern): Copy
6276 STMT_VINFO_DR_WRT_VEC_LOOP as a block.
6277 (vect_recog_mask_conversion_pattern): Likewise.
6278 * tree-vect-stmts.c (compare_step_with_zero): Use vect_dr_behavior.
6279 (new_stmt_vec_info): Remove redundant zeroing.
6280
6281 2017-07-03 Richard Earnshaw <rearnsha@arm.com>
6282
6283 * common/config/arm/arm-common.c (arm_be8_option): New function.
6284 * config/arm/arm-isa.h (isa_feature): Add new feature bit isa_bit_be8.
6285 (ISA_ARMv6): Add isa_bit_be8.
6286 * config/arm/arm.h (arm_be8_option): Add prototype.
6287 (BE8_SPEC_FUNCTION): New define.
6288 (EXTRA_SPEC_FUNCTIONS): Add BE8_SPEC_FUNCTION.
6289 * config/arm/arm.opt (mbig-endian): Mark as Negative of mlittle-endian.
6290 (mlittle-endian): Similarly.
6291 (mbe8, mbe32): New options.
6292 * config/arm/bpabi.h (BE8_LINK_SPEC): Call arm_be8_option.
6293 * doc/invoke.texi (ARM Options): Document -mbe8 and -mbe32.
6294
6295 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
6296
6297 * tree-cfg.c (gimple_find_sub_bbs): Fix profile updating.
6298
6299 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
6300
6301 * tree-cfgcleanup.c (want_merge_blocks_p): New function.
6302 (cleanup_tree_cfg_bb): Use it.
6303 * profile-count.h (profile_count::of_for_merging, profile_count::merge):
6304 New functions.
6305 * tree-cfg.c (gimple_merge_blocks): Use profile_count::merge.
6306
6307 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
6308
6309 PR bootstrap/81285
6310 * loop-doloop.c (add_test): Update profile.
6311
6312 2017-07-03 Martin Liska <mliska@suse.cz>
6313
6314 PR sanitize/81040
6315 * sanopt.c (rewrite_usage_of_param): New function.
6316 (sanitize_rewrite_addressable_params): Likewise.
6317 (pass_sanopt::execute): Call rewrite_usage_of_param.
6318
6319 2017-07-03 Richard Biener <rguenther@suse.de>
6320
6321 * tree-vect-loop.c (vect_create_epilog_for_reduction): Revert
6322 back to using VIEW_CONVERT_EXPR.
6323
6324 2017-07-03 Martin Liska <mliska@suse.cz>
6325
6326 PR other/78366
6327 * doc/extend.texi: Document when a resolver function is
6328 generated for target_clones.
6329
6330 2017-07-03 Martin Liska <mliska@suse.cz>
6331
6332 * asan.c (asan_emit_stack_protection): Unpoison just red zones
6333 and shadow memory of auto variables which are subject of
6334 use-after-scope sanitization.
6335 (asan_expand_mark_ifn): Add do set only when is_poison.
6336
6337 2016-07-03 Richard Biener <rguenther@suse.de>
6338
6339 * tree-vect-loop.c (vect_analyze_loop_operations): Also analyze
6340 reduction PHIs.
6341 (vect_force_simple_reduction): Record reduction def -> phi mapping.
6342 (vectorizable_reduction): Perform reduction PHI creation when
6343 visiting a reduction PHI and adjust and simplify code generation
6344 phase of the reduction op. Cache dts, use fold_binary, not fold_build2.
6345 (vect_transform_loop): Visit reduction PHIs.
6346 * tree-vect-slp.c (vect_get_and_check_slp_defs): Record reduction
6347 defs into the SLP tree.
6348 (vect_build_slp_tree): Reduction defs terminate the recursion.
6349 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): Allow lookup
6350 of reduction defs.
6351 (vect_get_vec_defs_for_stmt_copy): Export.
6352 (vect_get_vec_defs): Likewise.
6353 * tree-vectorizer.h (struct _stmt_vec_info): Amend reduc_def
6354 purpose.
6355 (vect_get_vec_defs_for_stmt_copy): Declare.
6356 (vect_get_vec_defs): Likewise.
6357
6358 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
6359
6360 * tree-data-ref.c (dr_analyze_innermost): Replace the "nest"
6361 parameter with a "loop" parameter and use it instead of the
6362 loop containing DR_STMT. Don't check simple_iv when doing
6363 BB analysis. Describe the two analysis modes in the comment.
6364
6365 2017-07-03 Tom de Vries <tom@codesourcery.com>
6366
6367 PR tree-optimization/69468
6368 * tree-ssa-tail-merge.c (ignore_edge_flags): New constant.
6369 (find_same_succ_bb): Handle ignore_edge_flags.
6370
6371 2017-07-03 Tom de Vries <tom@codesourcery.com>
6372
6373 PR tree-optimization/81192
6374 * tree-ssa-tail-merge.c (same_succ_hash): Use bb->loop_father->num in
6375 hash.
6376 (same_succ::equal): Don't find bbs to be equal if bb->loop_father
6377 differs.
6378 (find_same_succ_bb): Remove obsolete test on bb->loop_father->latch.
6379
6380 2017-07-03 Tom de Vries <tom@codesourcery.com>
6381
6382 PR tree-optimization/81192
6383 * tree-ssa-tail-merge.c (same_succ_flush_bb): Handle
6384 BB_SAME_SUCC (bb) == NULL.
6385
6386 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
6387
6388 * cfgrtl.c (rtl_verify_edges): Enable checking of profile_probability
6389 consistency.
6390
6391 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
6392
6393 * dumpfile.c: Include profile-count.h
6394 * tree-cfg.c (gimple_duplicate_sese_tail): Drop UNUSED attributes;
6395 update profile.
6396 (insert_cond_bb): Update profile.
6397 * tree-cfg.h (insert_cond_bb): Update prototype.
6398 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Update.
6399 * tree-dump.c: Do not include tree-cfg.
6400
6401 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
6402
6403 * bb-reorder.c (fix_up_crossing_landing_pad): Update profile.
6404
6405 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
6406
6407 * expect.c (dw2_build_landing_pads): Update profile of the landing pad
6408 bb.
6409
6410 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
6411
6412 * tree-complex.c (expand_complex_div_wide): update profile.
6413
6414 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
6415 Alan Hayward <alan.hayward@arm.com>
6416 David Sherwood <david.sherwood@arm.com>
6417
6418 * Makefile.in (MACHMODE_H): Remove insn-modes.h
6419 (CORETYPES_H): New define.
6420 (MOSTLYCLEANFILES): Add insn-modes-inline.h.
6421 (insn-modes-inline.h, s-modes-inline-h): New rules.
6422 (generated_files): Add insn-modes-inline.h.
6423 (RTL_BASE_H, TREE_CORE_H): Use CORETYPES_H instead of coretypes.h.
6424 (build/gensupport.o, build/ggc-none.o, build/print-rtl.o): Likewise.
6425 (build/read-md.o, build/read-rtl.o, build/rtl.o): Likewise.
6426 (build/vec.o, build/hash-table.o, build/inchash.o): Likewise.
6427 (build/gencondmd.o, build/genattr.o, build/genattr-common.o): Likewise.
6428 (build/genattrtab.o, build/genautomata.o, build/gencheck.o): Likewise.
6429 (build/gencodes.o, build/genconditions.o): Likewise.
6430 (build/genconfig.o, build/genconstants.o, build/genemit.o): Likewise.
6431 (build/genenums.o, build/genextract.o, build/genflags.o): Likewise.
6432 (build/gentarget-def.o, build/genmddeps.o, build/genopinit.o)
6433 (build/genoutput.o, build/genpeep.o, build/genpreds.o): Likewise.
6434 (build/genrecog.o, build/genmddump.o, build/genmatch.o): Likewise.
6435 (build/gencfn-macros.o, build/gcov-iov.o): Likewise.
6436 * coretypes.h: Include everything up to real.h for generators.
6437 Include insn-modes.h first. Include wide-int-print.h after
6438 wide-int.h. Include insn-modes-inline.h and then machmode.h.
6439 * machmode.h: Don't include insn-modes.h here.
6440 * function-tests.c: Remove includes of signop.h, machmode.h,
6441 double-int.h and wide-int.h.
6442 * rtl.h: Likewise.
6443 * gcc-rich-location.c: Remove includes of machmode.h, double-int.h
6444 and wide-int.h.
6445 * optc-save-gen.awk: Likewise.
6446 * gencheck.c (BITS_PER_UNIT): Delete dummy definition.
6447 * godump.c: Remove include of wide-int-print.h.
6448 * pretty-print.h: Likewise.
6449 * wide-int-print.cc: Likewise.
6450 * wide-int.cc: Likewise.
6451 * hash-map-tests.c: Remove include of signop.h.
6452 * hash-set-tests.c: Likewise.
6453 * rtl-tests.c: Likewise.
6454 * mkconfig.sh: Remove include of machmode.h.
6455 * genmodes.c (emit_insn_modes_h): Split emission of inline functions
6456 into...
6457 (emit_insn_modes_inline_h): ...this new function. Emit the code
6458 into an insn-modes-inline.h header file, adding appropriate
6459 include guards and end comments.
6460 (emit_insn_modes_c_header): Remove include of machmode.h.
6461 (emit_min_insn_modes_c_header): Include coretypes.h rather than
6462 machmode.h.
6463 (main): Handle -i flag and call emit_insn_modes_inline_h when
6464 it is passed.
6465
6466 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
6467
6468 * tree-ssa-strlen.c (strinfo): Rename the length field to
6469 nonzero_chars. Add a full_string_p field.
6470 (compare_nonzero_chars, zero_length_string_p): New functions.
6471 (get_addr_stridx): Add an offset_out parameter.
6472 Use compare_nonzero_chars.
6473 (get_stridx): Update accordingly. Use compare_nonzero_chars.
6474 (new_strinfo): Update after above changes to strinfo.
6475 (set_endptr_and_length): Set full_string_p.
6476 (get_string_length): Update after above changes to strinfo.
6477 (unshare_strinfo): Update call to new_strinfo.
6478 (maybe_invalidate): Likewise.
6479 (get_stridx_plus_constant): Change off to unsigned HOST_WIDE_INT.
6480 Use compare_nonzero_chars and zero_string_p. Treat nonzero_chars
6481 as a uhwi instead of an shwi. Update after above changes to
6482 strinfo and new_strinfo.
6483 (zero_length_string): Assert that chainsi contains full strings.
6484 Use zero_length_string_p. Update call to new_strinfo.
6485 (adjust_related_strinfos): Update after above changes to strinfo.
6486 Copy full_string_p from origsi.
6487 (adjust_last_stmt): Use zero_length_string_p.
6488 (handle_builtin_strlen): Update after above changes to strinfo and
6489 new_strinfo. Install the lhs as the string length if the previous
6490 entry didn't describe a full string.
6491 (handle_builtin_strchr): Update after above changes to strinfo
6492 and new_strinfo.
6493 (handle_builtin_strcpy): Likewise.
6494 (handle_builtin_strcat): Likewise.
6495 (handle_builtin_malloc): Likewise.
6496 (handle_pointer_plus): Likewise.
6497 (handle_builtin_memcpy): Likewise. Track nonzero characters
6498 that aren't necessarily followed by a nul terminator.
6499 (handle_char_store): Likewise.
6500
6501 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
6502
6503 PR tree-optimization/80769
6504 * tree-ssa-strlen.c (strinfo): Document that "stmt" is also used
6505 for malloc and calloc. Document the new invariant that all related
6506 strinfos have delayed lengths or none do.
6507 (verify_related_strinfos): Move earlier in file.
6508 (set_endptr_and_length): New function, split out from...
6509 (get_string_length): ...here. Also set the lengths of related
6510 strinfos.
6511 (zero_length_string): Assert that chainsi has known (rather than
6512 delayed) lengths.
6513 (adjust_related_strinfos): Likewise.
6514
6515 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
6516
6517 PR tree-optimization/81136
6518 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Only
6519 assert that two references with the same misalignment have the same
6520 compile-time misalignment if those compile-time misalignments
6521 are known.
6522
6523 2017-07-01 Andi Kleen <ak@linux.intel.com>
6524
6525 * print-tree.c (print_node): Print all attributes.
6526
6527 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
6528
6529 * cfg.c (scale_bbs_frequencies): New function.
6530 * cfg.h (scale_bbs_frequencies): Declare it.
6531 * cfgloopanal.c (single_likely_exit): Cleanup.
6532 * cfgloopmanip.c (scale_loop_frequencies): Take profile_probability
6533 as parameter.
6534 (scale_loop_profile): Likewise.
6535 (loop_version): Likewise.
6536 (create_empty_loop_on_edge): Update.
6537 * cfgloopmanip.h (scale_loop_frequencies, scale_loop_profile,
6538 scale_loop_frequencies, scale_loop_profile, loopify,
6539 loop_version): Update prototypes.
6540 * modulo-sched.c (sms_schedule): Update.
6541 * predict.c (unlikely_executed_edge_p): Also check probability.
6542 (probably_never_executed_edge_p): Fix typo.
6543 * tree-if-conv.c (version_loop_for_if_conversion): Update.
6544 * tree-parloops.c (gen_parallel_loop): Update.
6545 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update.
6546 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
6547 * tree-ssa-loop-split.c (split_loop): Update.
6548 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
6549 * tree-vect-loop-manip.c (vect_do_peeling): Update.
6550 (vect_loop_versioning): Update.
6551 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
6552
6553 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
6554
6555 * trans-mem.c (split_bb_make_tm_edge): Update profile.
6556
6557 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
6558
6559 * tree-if-conv.c (combine_blocks): Use make_single_succ_edge
6560 to keep profile consistent.
6561
6562 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
6563
6564 * cfgrtl.c (rtl_flow_call_edges_add): Update profile.
6565 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
6566 * profile-count.h (max_safe_multiplier): Make unsigned.
6567 (profile_count::guessed_zero): New.
6568
6569 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
6570
6571 * bb-reorder.c (fix_up_crossing_landing_pad,
6572 fix_crossing_conditional_branches): Use make_single_succ_edge
6573 to keep profile consistent.
6574
6575 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
6576
6577 * tree-vect-loop.c (optimize_mask_stores): Use make_single_succ_edge
6578 to update profile.
6579
6580 2017-07-01 Jakub Jelinek <jakub@redhat.com>
6581
6582 PR sanitizer/81262
6583 * bb-reorder.c (fix_up_fall_thru_edges): Move variable declarations to
6584 the right scopes, make sure cond_jump isn't preserved between multiple
6585 iterations. Search for fallthru edge whenever there are 3+ edges and
6586 use find_fallthru_edge for it.
6587
6588 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
6589
6590 Patch by Alexander Monakov <amonakov@ispras.ru>
6591 * sel-sched-ir.c (compute_succs_info): Handle uninitialized
6592 probabilities consistently.
6593
6594 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
6595
6596 * pa.c (pa_expand_compare_and_swap_loop): Update call of
6597 emit_cmp_and_jump_insns.
6598
6599 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
6600
6601 PR ipa/81261
6602 * tree-inline.c (expand_call_inline): Combine profile statuses.
6603
6604 2017-06-30 Andrew Pinski <apinski@cavium.com>
6605
6606 * tree-if-conv.c (predicate_scalar_phi): Update new_stmt if
6607 fold_stmt returned true.
6608
6609 2017-06-30 Nathan Sidwell <nathan@acm.org>
6610
6611 * ggc.h (empty_string): Delete.
6612 * cfgexpand.c (expand_asm_stmt): Use plain "".
6613 * optabs.c (expand_asm_memory_barrier): Likewise.
6614 * stringpool.c (empty_string): Delete.
6615 (digit_vector, digit_string): Delete.
6616 (ggc_alloc_string): Use plain "", don't optimize single digit
6617 strings. Use ggc_alloc_atomic.
6618
6619 2017-06-30 Richard Earnshaw <rearnsha@arm.com>
6620
6621 * rtlanal.c (insn_rtx_cost): If a parallel contains exactly one
6622 comparison set and one other set, use the cost of the non-comparison
6623 set.
6624
6625 2017-06-30 Nathan Sidwell <nathan@acm.org>
6626
6627 * ggc.h: Replace all 'static inline' with plain 'inline'. Fix
6628 some formatting.
6629
6630 2017-06-30 Peter Bergner <bergner@vnet.ibm.com>
6631
6632 * tree-cfg.c (group_case_labels_stmt): Merge scanning and compressing
6633 loops. Remove now unneeded calls to gimple_switch_set_label() that
6634 just set removed labels to NULL_TREE.
6635
6636 2017-06-30 Aldy Hernandez <aldyh@redhat.com>
6637
6638 * tree-ssanames.c (set_range_info_raw): Abstract from ...
6639 (set_range_info): ...here. Only call set_range_info_raw if domain
6640 is useful.
6641 (set_nonzero_bits): Call set_range_info_raw.
6642 * tree-ssanames.h (set_range_info_raw): New.
6643
6644 2017-06-30 Jakub Jelinek <jakub@redhat.com>
6645
6646 PR target/81225
6647 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): For V8FI,
6648 V16FI and VI8F_256 iterators, use <store_mask_predicate> instead
6649 of nonimmediate_operand and <store_mask_constraint> instead of m
6650 for the input operand. For V8FI iterator, always split if input
6651 is a MEM. For V16FI and V8SF_256 iterators, don't test if both
6652 operands are MEM if <mask_applied>. For VI4F_256 iterator, use
6653 <store_mask_predicate> instead of register_operand and
6654 <store_mask_constraint> instead of v for the input operand. Make
6655 sure both operands aren't MEMs for if not <mask_applied>.
6656
6657 2017-06-30 Sylvestre Ledru <sylvestre@debian.org>
6658
6659 * lto-wrapper.c (copy_file) Close both file descriptors before
6660 exiting normally.
6661
6662 2017-06-30 Martin Liska <mliska@suse.cz>
6663
6664 PR ipa/81214
6665 * multiple_target.c (create_dispatcher_calls): Make ifunc
6666 also for function that don't have calls or are not referenced.
6667
6668 2017-06-30 Richard Biener <rguenther@suse.de>
6669
6670 * tree-vect-slp.c (vect_slp_analyze_node_operations): Only
6671 analyze the first scalar stmt. Move vector type computation
6672 for the BB case here from ...
6673 * tree-vect-stmts.c (vect_analyze_stmt): ... here. Guard
6674 live operation processing in the SLP case properly.
6675
6676 2017-06-30 Richard Biener <rguenther@suse.de>
6677
6678 * graph.c (draw_cfg_node_succ_edges): Fix broken dot syntax.
6679
6680 2017-06-30 Martin Liska <mliska@suse.cz>
6681
6682 PR sanitizer/81021
6683 * tree-eh.c (lower_resx): Call BUILT_IN_ASAN_HANDLE_NO_RETURN
6684 before BUILT_IN_UNWIND_RESUME when ASAN is used.
6685
6686 2017-06-30 Yvan Roux <yvan.roux@linaro.org>
6687
6688 * doc/invoke.texi (AArch64): Add missing options and remove redundant
6689 ones.
6690
6691 2017-06-30 Richard Biener <rguenther@suse.de>
6692
6693 PR tree-optimization/81249
6694 * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
6695 condition reduction result to original scalar type.
6696
6697 2017-06-30 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6698
6699 * profile-count.h (enum profile_quality): Fix typos and whitespace
6700 issues.
6701
6702 2017-06-30 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6703
6704 * config/s390/s390.c (s390_expand_setmem): Adjust to the new data
6705 type for branch probabilities.
6706
6707 2017-06-29 Julian Brown <julian@codesourcery.com>
6708 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
6709
6710 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_BRANCH entry.
6711 * config/aarch64/aarch64.c (AARCH64_FUSE_ALU_BRANCH): New fusion type.
6712 (thunderx2t99_tunings): Set AARCH64_FUSE_ALU_BRANCH flag.
6713 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_ALU_BRANCH.
6714
6715 2017-06-29 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
6716
6717 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Push the
6718 check for CC usage into AARCH64_FUSE_CMP_BRANCH.
6719 * config/i386/i386.c (ix86_macro_fusion_pair_p): Push the check for
6720 CC usage from generic code to here.
6721 * sched-deps.c (sched_macro_fuse_insns): Move the condition for
6722 CC usage into the target macros.
6723
6724 2017-06-29 Maya Rashish <coypu@sdf.org>
6725
6726 * config/netbsd.h (NETBSD_LIB_SPEC): Add -lc when creating shared
6727 objects.
6728
6729 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
6730
6731 * arm/arm-builtins.c: Include profile-count.h
6732 * except.c (sjlj_emit_function_enter): Use
6733 profile_probability::unlikely.
6734
6735 2017-06-29 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
6736
6737 * config/rs6000/rs6000.c (toc_relative_expr_p): Make tocrel_base
6738 and tocrel_offset be pointer args rather than implicitly using
6739 static versions.
6740 (legitimate_constant_pool_address_p, rs6000_emit_move,
6741 const_load_sequence_p, adjust_vperm): Add local tocrel_base and
6742 tocrel_offset and use in toc_relative_expr_p call.
6743 (print_operand, print_operand_address): Use static tocrel_base_oac
6744 and tocrel_offset_oac.
6745 (rs6000_output_addr_const_extra): Use static tocrel_base_oac and
6746 tocrel_offset_oac.
6747
6748 2017-06-29 Maya Rashish <coypu@sdf.org>
6749
6750 * config/vax/builtins.md (ffssi2_internal): Correct constraint.
6751
6752 2017-06-29 Eric Botcazou <ebotcazou@adacore.com>
6753
6754 * expr.c (expand_expr) <normal_inner_ref>: When testing for unaligned
6755 objects, take into account only the alignment of 'op0' and 'mode1' if
6756 'op0' is a MEM.
6757
6758 2017-06-29 Steve Ellcey <sellcey@cavium.com>
6759
6760 * ccmp.c (ccmp_tree_comparison_p): New function.
6761 (ccmp_candidate_p): Update to use above function.
6762 (get_compare_parts): New function.
6763 (expand_ccmp_next): Update to use new functions.
6764 (expand_ccmp_expr_1): Take tree arg instead of gimple, update to use
6765 new functions.
6766 (expand_ccmp_expr): Pass tree instead of gimple to expand_ccmp_expr_1,
6767 take mode as argument.
6768 * ccmp.h (expand_ccmp_expr): Add mode as argument.
6769 * expr.c (expand_expr_real_1): Pass mode as argument.
6770
6771 2017-06-29 Segher Boessenkool <segher@kernel.crashing.org>
6772
6773 * combine.c (combine_instructions): Print insns to dump_file, together
6774 with their costs.
6775
6776 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
6777
6778 * asan.c (asan_emit_stack_protection): Update.
6779 (create_cond_insert_point): Update.
6780 * auto-profile.c (afdo_propagate_circuit): Update.
6781 * basic-block.h (struct edge_def): Turn probability to
6782 profile_probability.
6783 (EDGE_FREQUENCY): Update.
6784 * bb-reorder.c (find_traces_1_round): Update.
6785 (better_edge_p): Update.
6786 (sanitize_hot_paths): Update.
6787 * cfg.c (unchecked_make_edge): Initialize probability to uninitialized.
6788 (make_single_succ_edge): Update.
6789 (check_bb_profile): Update.
6790 (dump_edge_info): Update.
6791 (update_bb_profile_for_threading): Update.
6792 * cfganal.c (connect_infinite_loops_to_exit): Initialize new edge
6793 probabilitycount to 0.
6794 * cfgbuild.c (compute_outgoing_frequencies): Update.
6795 * cfgcleanup.c (try_forward_edges): Update.
6796 (outgoing_edges_match): Update.
6797 (try_crossjump_to_edge): Update.
6798 * cfgexpand.c (expand_gimple_cond): Update make_single_succ_edge.
6799 (expand_gimple_tailcall): Update.
6800 (construct_init_block): Use make_single_succ_edge.
6801 (construct_exit_block): Use make_single_succ_edge.
6802 * cfghooks.c (verify_flow_info): Update.
6803 (redirect_edge_succ_nodup): Update.
6804 (split_edge): Update.
6805 (account_profile_record): Update.
6806 * cfgloopanal.c (single_likely_exit): Update.
6807 * cfgloopmanip.c (scale_loop_profile): Update.
6808 (set_zero_probability): Remove.
6809 (duplicate_loop_to_header_edge): Update.
6810 * cfgloopmanip.h (loop_version): Update prototype.
6811 * cfgrtl.c (try_redirect_by_replacing_jump): Update.
6812 (force_nonfallthru_and_redirect): Update.
6813 (update_br_prob_note): Update.
6814 (rtl_verify_edges): Update.
6815 (purge_dead_edges): Update.
6816 (rtl_lv_add_condition_to_bb): Update.
6817 * cgraph.c: (cgraph_edge::redirect_call_stmt_to_calle): Update.
6818 * cgraphunit.c (init_lowered_empty_function): Update.
6819 (cgraph_node::expand_thunk): Update.
6820 * cilk-common.c: Include profile-count.h
6821 * dojump.c (inv): Remove.
6822 (jumpifnot): Update.
6823 (jumpifnot_1): Update.
6824 (do_jump_1): Update.
6825 (do_jump): Update.
6826 (do_jump_by_parts_greater_rtx): Update.
6827 (do_compare_rtx_and_jump): Update.
6828 * dojump.h (jumpifnot, jumpifnot_1, jumpif_1, jumpif, do_jump,
6829 do_jump_1. do_compare_rtx_and_jump): Update prototype.
6830 * dwarf2cfi.c: Include profile-count.h
6831 * except.c (dw2_build_landing_pads): Use make_single_succ_edge.
6832 (sjlj_emit_dispatch_table): Likewise.
6833 * explow.c: Include profile-count.h
6834 * expmed.c (emit_store_flag_force): Update.
6835 (do_cmp_and_jump): Update.
6836 * expr.c (compare_by_pieces_d::generate): Update.
6837 (compare_by_pieces_d::finish_mode): Update.
6838 (emit_block_move_via_loop): Update.
6839 (store_expr_with_bounds): Update.
6840 (store_constructor): Update.
6841 (expand_expr_real_2): Update.
6842 (expand_expr_real_1): Update.
6843 * expr.h (try_casesi, try_tablejump): Update prototypes.
6844 * gimple-pretty-print.c (dump_probability): Update.
6845 (dump_profile): New.
6846 (dump_gimple_label): Update.
6847 (dump_gimple_bb_header): Update.
6848 * graph.c (draw_cfg_node_succ_edges): Update.
6849 * hsa-gen.c (convert_switch_statements): Update.
6850 * ifcvt.c (cheap_bb_rtx_cost_p): Update.
6851 (find_if_case_1): Update.
6852 (find_if_case_2): Update.
6853 * internal-fn.c (expand_arith_overflow_result_store): Update.
6854 (expand_addsub_overflow): Update.
6855 (expand_neg_overflow): Update.
6856 (expand_mul_overflow): Update.
6857 (expand_vector_ubsan_overflow): Update.
6858 * ipa-cp.c (good_cloning_opportunity_p): Update.
6859 * ipa-split.c (split_function): Use make_single_succ_edge.
6860 * ipa-utils.c (ipa_merge_profiles): Update.
6861 * loop-doloop.c (add_test): Update.
6862 (doloop_modify): Update.
6863 * loop-unroll.c (compare_and_jump_seq): Update.
6864 (unroll_loop_runtime_iterations): Update.
6865 * lra-constraints.c (lra_inheritance): Update.
6866 * lto-streamer-in.c (input_cfg): Update.
6867 * lto-streamer-out.c (output_cfg): Update.
6868 * mcf.c (adjust_cfg_counts): Update.
6869 * modulo-sched.c (sms_schedule): Update.
6870 * omp-expand.c (expand_omp_for_init_counts): Update.
6871 (extract_omp_for_update_vars): Update.
6872 (expand_omp_ordered_sink): Update.
6873 (expand_omp_for_ordered_loops): Update.
6874 (expand_omp_for_generic): Update.
6875 (expand_omp_for_static_nochunk): Update.
6876 (expand_omp_for_static_chunk): Update.
6877 (expand_cilk_for): Update.
6878 (expand_omp_simd): Update.
6879 (expand_omp_taskloop_for_outer): Update.
6880 (expand_omp_taskloop_for_inner): Update.
6881 * omp-simd-clone.c (simd_clone_adjust): Update.
6882 * optabs.c (expand_doubleword_shift): Update.
6883 (expand_abs): Update.
6884 (emit_cmp_and_jump_insn_1): Update.
6885 (expand_compare_and_swap_loop): Update.
6886 * optabs.h (emit_cmp_and_jump_insns): Update prototype.
6887 * predict.c (predictable_edge_p): Update.
6888 (edge_probability_reliable_p): Update.
6889 (set_even_probabilities): Update.
6890 (combine_predictions_for_insn): Update.
6891 (combine_predictions_for_bb): Update.
6892 (propagate_freq): Update.
6893 (estimate_bb_frequencies): Update.
6894 (force_edge_cold): Update.
6895 * profile-count.c (profile_count::dump): Add missing space into dump.
6896 (profile_count::debug): Add newline.
6897 (profile_count::differs_from_p): Explicitly convert to unsigned.
6898 (profile_count::stream_in): Update.
6899 (profile_probability::dump): New member function.
6900 (profile_probability::debug): New member function.
6901 (profile_probability::differs_from_p): New member function.
6902 (profile_probability::differs_lot_from_p): New member function.
6903 (profile_probability::stream_in): New member function.
6904 (profile_probability::stream_out): New member function.
6905 * profile-count.h (profile_count_quality): Rename to ...
6906 (profile_quality): ... this one.
6907 (profile_probability): New.
6908 (profile_count): Update.
6909 * profile.c (compute_branch_probabilities): Update.
6910 * recog.c (peep2_attempt): Update.
6911 * sched-ebb.c (schedule_ebbs): Update.
6912 * sched-rgn.c (find_single_block_region): Update.
6913 (compute_dom_prob_ps): Update.
6914 (schedule_region): Update.
6915 * sel-sched-ir.c (compute_succs_info): Update.
6916 * stmt.c (struct case_node): Update.
6917 (do_jump_if_equal): Update.
6918 (get_outgoing_edge_probs): Update.
6919 (conditional_probability): Update.
6920 (emit_case_dispatch_table): Update.
6921 (expand_case): Update.
6922 (expand_sjlj_dispatch_table): Update.
6923 (emit_case_nodes): Update.
6924 * targhooks.c: Update.
6925 * tracer.c (better_p): Update.
6926 (find_best_successor): Update.
6927 * trans-mem.c (expand_transaction): Update.
6928 * tree-call-cdce.c: Update.
6929 * tree-cfg.c (gimple_split_edge): Upate.
6930 (move_sese_region_to_fn): Upate.
6931 * tree-cfgcleanup.c (cleanup_control_expr_graph): Upate.
6932 * tree-eh.c (lower_resx): Upate.
6933 (cleanup_empty_eh_move_lp): Upate.
6934 * tree-if-conv.c (version_loop_for_if_conversion): Update.
6935 * tree-inline.c (copy_edges_for_bb): Update.
6936 (copy_cfg_body): Update.
6937 * tree-parloops.c (gen_parallel_loop): Update.
6938 * tree-profile.c (gimple_gen_ic_func_profiler): Update.
6939 (gimple_gen_time_profiler): Update.
6940 * tree-ssa-dce.c (remove_dead_stmt): Update.
6941 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
6942 * tree-ssa-loop-im.c (execute_sm_if_changed): Update.
6943 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update.
6944 (unloop_loops): Update.
6945 (try_peel_loop): Update.
6946 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
6947 * tree-ssa-loop-split.c (connect_loops): Update.
6948 (split_loop): Update.
6949 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
6950 (hoist_guard): Update.
6951 * tree-ssa-phionlycprop.c (propagate_rhs_into_lhs): Update.
6952 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update.
6953 (value_replacement): Update.
6954 * tree-ssa-reassoc.c (branch_fixup): Update.
6955 * tree-ssa-tail-merge.c (replace_block_by): Update.
6956 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Update.
6957 (create_edge_and_update_destination_phis): Update.
6958 (compute_path_counts): Update.
6959 (recompute_probabilities): Update.
6960 (update_joiner_offpath_counts): Update.
6961 (freqs_to_counts_path): Update.
6962 (duplicate_thread_path): Update.
6963 * tree-switch-conversion.c (hoist_edge_and_branch_if_true): Update.
6964 (struct switch_conv_info): Update.
6965 (gen_inbound_check): Update.
6966 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
6967 (vect_do_peeling): Update.
6968 (vect_loop_versioning): Update.
6969 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
6970 (optimize_mask_stores): Update.
6971 * ubsan.c (ubsan_expand_null_ifn): Update.
6972 * value-prof.c (gimple_divmod_fixed_value): Update.
6973 (gimple_divmod_fixed_value_transform): Update.
6974 (gimple_mod_pow2): Update.
6975 (gimple_mod_pow2_value_transform): Update.
6976 (gimple_mod_subtract): Update.
6977 (gimple_mod_subtract_transform): Update.
6978 (gimple_ic): Update.
6979 (gimple_stringop_fixed_value): Update.
6980 (gimple_stringops_transform): Update.
6981 * value-prof.h: Update.
6982
6983 2017-06-29 Carl Love <cel@us.ibm.com>
6984
6985 * config/rs6000/rs6000-c.c: Add support for built-in functions
6986 vector signed int vec_signed (vector float);
6987 vector signed long long vec_signed (vector double);
6988 vector signed int vec_signed2 (vector double, vector double);
6989 vector signed int vec_signede (vector double);
6990 vector signed int vec_signedo (vector double);
6991 * config/rs6000/rs6000.c (rs6000_generate_vsigned2_code): Add
6992 instruction generator.
6993 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
6994 UNSPEC_VSX_VSIGNED2): Add UNSPECS.
6995 (vsx_xvcvspsxws, vsx_xvcvdpuxds_scale, vsx_xvcvspuxws, vsigned2_v2df):
6996 Add define_insn.
6997 (vsignedo_v2df, vsignede_v2df, vunsigned2_v2df, vunsignedo_v2df,
6998 vunsignede_v2df): Add define_expands.
6999 * config/rs6000/rs6000-builtin.def (VEC_SIGNED, VEC_UNSIGNED,
7000 VEC_SIGNED2, VEC_UNSIGNED2, VEC_SIGNEDE, VEC_UNSIGNEDE, VEC_SIGNEDO,
7001 VEC_UNSIGNEDO): Add definitions.
7002 * config/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
7003 UNSPEC_VSX_VSIGNED2): Add UNSPECs.
7004 (vsx_xvcvspsxws, vsx_xvcvspuxws): Add define_insn.
7005 (vsigned2_v2df, vsigendo_v2df, vsignede_v2df,
7006 vunsigned2_v2df, vunsignedo_v2df, vunsignede_v2df): Add define_expands.
7007 * config/rs6000/altivec.h (vec_signed, vec_signed2,
7008 vec_signede and vec_signedo, vec_unsigned, vec_unsigned2,
7009 vec_unsignede, vec_unsignedo): Add builtin defines.
7010 * config/rs6000-protos.h (rs6000_generate_vsigned2_code): Add extern
7011 declaration.
7012 * doc/extend.texi: Update the built-in documentation file for the
7013 new built-in functions.
7014
7015 2017-06-29 Richard Biener <rguenther@suse.de>
7016
7017 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Do not add
7018 reduction chains to LOOP_VINFO_REDUCTIONS.
7019 * tree-vect-slp.c (vect_analyze_slp): Continue looking for
7020 SLP reductions after processing reduction chains.
7021
7022 2017-06-29 Nathan Sidwell <nathan@acm.org>
7023
7024 * builtins.c (fold_builtin_FUNCTION): Use
7025 lang_hooks.decl_printable_name.
7026
7027 2017-06-29 Peter Bergner <bergner@vnet.ibm.com>
7028
7029 PR middle-end/81194
7030 * cfgexpand.c (expand_gimple_stmt_1): Handle switch statements
7031 with only one label.
7032 * stmt.c (expand_case): Assert NCASES is greater than one.
7033
7034 2017-06-29 Richard Biener <rguenther@suse.de>
7035
7036 * tree-cfg.c (group_case_labels_stmt): Return whether we changed
7037 anything.
7038 (group_case_labels): Likewise.
7039 (find_taken_edge): Push sanity checking on val to workers...
7040 (find_taken_edge_cond_expr): ... here
7041 (find_taken_edge_switch_expr): ... and here, handle cases
7042 with just a default label.
7043 * tree-cfg.h (group_case_labels_stmt): Adjust prototype.
7044 (group_case_labels): Likewise.
7045 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing): When
7046 group_case_labels does anything cleanup the CFG again.
7047
7048 2017-06-29 Bin Cheng <bin.cheng@arm.com>
7049
7050 PR tree-optimization/81196
7051 * tree-ssa-loop-niter.c (number_of_iterations_cond): Handle loop
7052 exit condition comparing two IVs.
7053
7054 2017-06-29 Richard Earnshaw <rearnsha@arm.com>
7055
7056 * config/arm/parsecpu.awk (gen_comm_data): Add initializer for
7057 profile to the dummy entry at the end of the list of architectures.
7058 * config/arm/arm-cpu-cdata.h: Regenerated.
7059
7060 2017-06-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7061 Michael Collison <michael.collison@arm.com>
7062
7063 PR target/70119
7064 * config/aarch64/aarch64.md (*aarch64_<optab>_reg_<mode>3_mask1):
7065 New pattern.
7066 (*aarch64_reg_<mode>3_neg_mask2): New pattern.
7067 (*aarch64_reg_<mode>3_minus_mask): New pattern.
7068 (*aarch64_<optab>_reg_di3_mask2): New pattern.
7069 * config/aarch64/aarch64.c (aarch64_rtx_costs): Account for cost
7070 of shift when the shift amount is masked with constant equal to
7071 the size of the mode.
7072 * config/aarch64/predicates.md (subreg_lowpart_operator): New
7073 predicate.
7074
7075 2017-06-29 Martin Liska <mliska@suse.cz>
7076
7077 * config/i386/i386.opt: Change range from [1,5] to [0,5].
7078
7079 2017-06-29 Yury Gribov <tetra2005@gmail.com>
7080
7081 PR bootstrap/80565
7082 * ipa-cp.c (allocate_and_init_ipcp_value): Add initialization
7083 code.
7084 * ipa-inline.h
7085 (edge_growth_cache_entry::edge_growth_cache_entry): New
7086 function.
7087 (reset_edge_growth_cache): Update to use constructor.
7088
7089 2017-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7090
7091 * config/aarch64/aarch64.h (AARCH64_EXPAND_ALIGNMENT): New.
7092 (DATA_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
7093 (LOCAL_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
7094
7095 2017-06-28 Sebastian Peryt <sebastian.peryt@intel.com>
7096
7097 * config/i386/avx512vlintrin.h (_mm256_permutexvar_epi64)
7098 (_mm256_permutexvar_epi32, _mm256_permutex_epi64): New intrinsics.
7099
7100 2017-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
7101
7102 * config.gcc (*-linux-musl*): Add t-musl tmake_file.
7103 (*-linux-uclibc*): Add t-uclibc tmake_file.
7104 * config/t-musl: New.
7105 * config/t-uclibc: New.
7106
7107 2017-06-28 Richard Earnshaw <rearnsha@arm.com>
7108
7109 * config/arm/parsecpu.awk (profile): Parse new keyword in an arch
7110 context.
7111 (gen_comm_data): Emit architectural setting of arch_prof.
7112 * config/arm/arm-cpus.in (armv6-m, armv6s-m, armv7-a, armv7ve): Set the
7113 profile.
7114 (armv7-r, armv7-m, armv7e-m, armv8-a, armv8.1-a, armv8.2-a): Likewise.
7115 (armv8-m.base, armv8-m.main): Likewise.
7116 * arm-protos.h (arm_build_target): Add profile field.
7117 (arch_option): Likewise.
7118 * config/arm/arm.c (arm_configure_build_target): Copy the profile to
7119 the active target.
7120 * config/arm/arm.h (TARGET_ARM_ARCH_PROFILE): Use
7121 arm_active_target.profile.
7122
7123 2017-06-28 Richard Biener <rguenther@suse.de>
7124
7125 PR middle-end/81227
7126 * fold-const.c (negate_expr_p): Use TYPE_UNSIGNED, not
7127 TYPE_OVERFLOW_WRAPS.
7128 * match.pd (negate_expr_p): Likewise.
7129 * tree-ssa-reassoc.c (optimize_range_tests_diff): Use
7130 fold_build2, not fold_binary.
7131
7132 2017-06-28 Wilco Dijkstra <wdijkstr@arm.com>
7133
7134 * config/aarch64/aarch64 (aarch64_expand_mov_immediate):
7135 Convert memory address to Pmode.
7136 (aarch64_print_operand): Assert MEM operands are always Pmode.
7137
7138 2017-06-28 Wilco Dijkstra <wdijkstr@arm.com>
7139
7140 PR target/79665
7141 * config/arm/aarch-common.c (arm_no_early_alu_shift_dep):
7142 Remove redundant if.
7143 (aarch_forward_to_shift_is_not_shifted_reg): Remove.
7144 * config/arm/aarch-common-protos.h
7145 (aarch_forward_to_shift_is_not_shifted_re): Remove.
7146 * config/arm/cortex-a53.md: Use arm_no_early_alu_shift_dep in bypass.
7147
7148 2017-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
7149
7150 PR ipa/81238
7151 * multiple_target.c (create_dispatcher_calls): Set the default
7152 clone to be static, not public.
7153
7154 2017-06-28 Richard Biener <rguenther@suse.de>
7155
7156 * tree-vect-loop.c (vectorizable_reduction): Move special
7157 cond reduction IV var creation ...
7158 (vect_create_epilog_for_reduction): ... here. Remove induction_index
7159 parameter. Use STMT_VINFO_VECTYPE.
7160 * tree-vect-slp.c (vect_get_constant_vectors): Properly reset
7161 constant_p.
7162
7163 2017-06-28 Martin Liska <mliska@suse.cz>
7164
7165 PR ipa/81128
7166 * ipa-visibility.c (non_local_p): Handle visibility.
7167
7168 2017-06-28 Martin Liska <mliska@suse.cz>
7169
7170 PR driver/79659
7171 * common.opt: Add IntegerRange to various options.
7172 * opt-functions.awk (integer_range_info): New function.
7173 * optc-gen.awk: Add integer_range_info to cl_options struct.
7174 * opts-common.c (decode_cmdline_option): Handle
7175 CL_ERR_INT_RANGE_ARG.
7176 (cmdline_handle_error): Likewise.
7177 * opts.c (print_filtered_help): Show valid interval in
7178 when --help is provided.
7179 * opts.h (struct cl_option): Add range_min and range_max fields.
7180 * config/i386/i386.opt: Add IntegerRange for -mbranch-cost.
7181
7182 2017-06-28 Marc Glisse <marc.glisse@inria.fr>
7183
7184 * match.pd ((X & ~Y) | (~X & Y)): Generalize to + and ^.
7185 (x * C EQ/NE y * C): New transformation.
7186
7187 2017-06-28 Christophe Lyon <christophe.lyon@linaro.org>
7188
7189 * genmultilib (combination_space): Accept '+' in option names.
7190
7191 2017-06-28 Martin Liska <mliska@suse.cz>
7192
7193 PR sanitizer/81224
7194 * asan.c (instrument_derefs): Bail out inner references
7195 that are hard register variables.
7196
7197 2017-06-28 Jakub Jelinek <jakub@redhat.com>
7198
7199 PR target/81175
7200 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use def_builtin
7201 rather than def_builtin_pure for __builtin_ia32_gatherpf*.
7202
7203 2017-06-28 Richard Biener <rguenther@suse.de>
7204
7205 * tree-vectorizer.h (vect_get_vec_defs): Remove.
7206 (vect_get_slp_defs): Adjust.
7207 * tree-vect-loop.c (get_initial_defs_for_reduction): Split
7208 out from ...
7209 * tree-vect-slp.c (vect_get_constant_vectors): ... here and
7210 simplify.
7211 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7212 get_initial_defs_for_reduction instead of vect_get_vec_defs.
7213 (vectorizable_reduction): Adjust.
7214 * tree-vect-slp.c (vect_get_constant_vectors): Remove reduction
7215 handling.
7216 (vect_get_slp_defs): Likewise.
7217 * tree-vect-stmts.c (vect_get_vec_defs): Make static and adjust.
7218 (vectorizable_bswap): Adjust.
7219 (vectorizable_call): Likewise.
7220 (vectorizable_conversion): Likewise.
7221 (vectorizable_assignment): Likewise.
7222 (vectorizable_shift): Likewise.
7223 (vectorizable_operation): Likewise.
7224 (vectorizable_store): Likewise.
7225 (vectorizable_condition): Likewise.
7226 (vectorizable_comparison): Likewise.
7227
7228 2017-06-28 Michael Collison <michael.collison@arm.com>
7229
7230 PR target/68535
7231 * config/arm/arm.c (gen_ldm_seq): Remove last unnecessary
7232 set of base_reg
7233 (arm_gen_movmemqi): Removed unused variable 'i'.
7234 Convert 'for' loop into 'while' loop.
7235 (arm_expand_prologue): Remove last unnecessary set of insn.
7236 (thumb_pop): Remove unused variable 'pushed_words'.
7237 (thumb_exit): Remove last unnecessary set of regs_to_pop.
7238
7239 2017-06-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7240
7241 * config/s390/predicates.md: Use s390_rel_address_ok_p.
7242 * config/s390/s390-protos.h: Add prototype of
7243 s390_rel_address_ok_p.
7244 * config/s390/s390.c (s390_got_symbol): New function.
7245 (s390_rel_address_ok_p): New function.
7246 (legitimize_pic_address): Use s390_rel_address_ok_p.
7247 (s390_load_got): Use s390_got_symbol.
7248 (s390_option_override): Issue error if
7249 -mno-pic-data-is-text-relative is used without -fpic/-fPIC.
7250 * config/s390/s390.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
7251 New macro.
7252 * config/s390/s390.opt: New option mpic-data-is-text-relative.
7253
7254 2017-06-27 Andrew Pinski <apinski@cavium.com>
7255
7256 * match.pd (X >/>=/</<= 0 ? 1.0 : -1.0): New patterns.
7257 (X * copysign (1.0, X)): New pattern.
7258 (X * copysign (1.0, -X)): New pattern.
7259 (copysign (-1.0, CST)): New pattern.
7260
7261 2017-06-27 Joseph Myers <joseph@codesourcery.com>
7262
7263 * genmultilib (combination_space): Remove variable.
7264 Validate reuse rules against regular expression for any sequence
7265 of multilib options in any order.
7266
7267 2017-06-27 Michael Collison <michael.collison@arm.com>
7268
7269 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Directly
7270 call aarch64_split_simd_combine.
7271 * (aarch64_combine_internal<mode>): Delete pattern.
7272 * config/aarch64/aarch64.c (aarch64_split_simd_combine):
7273 Allow register and subreg operands.
7274
7275 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
7276
7277 * config/i386/vxworks.h (ASM_SPEC): Remove definition. No target
7278 specific need, just fallback on defaults.
7279 (ASM_OUTPUT_ALIGNED_BSS): Add #undef before #define.
7280
7281 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
7282 Olivier Hainque <hainque@adacore.com>
7283
7284 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Pick distinct
7285 map for 64bits.
7286 (TARGET_OS_CPP_BUILTINS): builtin_define CPU to X86_64 for 64bit
7287 targets. Pick a default if no particular attempt applied.
7288 (STACK_CHECK_PROTECT): Double for 64bit targets, which have
7289 larger contexts.
7290
7291 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
7292
7293 * config.gcc (i*86-wrs-vxworks7): Handle new acceptable triplet.
7294 (x86_64-wrs-vxworks7): Likewise.
7295
7296 2017-06-27 Marek Polacek <polacek@redhat.com>
7297
7298 PR sanitizer/81223
7299 * ubsan.c (instrument_null): Check get_base_address's result for null.
7300
7301 2017-06-27 Marc Glisse <marc.glisse@inria.fr>
7302
7303 * match.pd ((A+-B)+(C-A), (A+B)-(A-C)): New transformations.
7304
7305 2017-06-27 Marc Glisse <marc.glisse@inria.fr>
7306
7307 * builtin-types.def (BT_FENV_T_PTR, BT_CONST_FENV_T_PTR,
7308 BT_FEXCEPT_T_PTR, BT_CONST_FEXCEPT_T_PTR): New primitive types.
7309 (BT_FN_INT_FENV_T_PTR, BT_FN_INT_CONST_FENV_T_PTR,
7310 BT_FN_INT_FEXCEPT_T_PTR_INT, BT_FN_INT_CONST_FEXCEPT_T_PTR_INT):
7311 New function types.
7312 * builtins.def (BUILT_IN_FECLEAREXCEPT, BUILT_IN_FEGETENV,
7313 BUILT_IN_FEGETEXCEPTFLAG, BUILT_IN_FEGETROUND,
7314 BUILT_IN_FEHOLDEXCEPT, BUILT_IN_FERAISEEXCEPT,
7315 BUILT_IN_FESETENV, BUILT_IN_FESETEXCEPTFLAG,
7316 BUILT_IN_FESETROUND, BUILT_IN_FETESTEXCEPT,
7317 BUILT_IN_FEUPDATEENV): New builtins.
7318 * tree-core.h (TI_FENV_T_PTR_TYPE, TI_CONST_FENV_T_PTR_TYPE,
7319 TI_FEXCEPT_T_PTR_TYPE, TI_CONST_FEXCEPT_T_PTR_TYPE): New entries.
7320 * tree.h (fenv_t_ptr_type_node, const_fenv_t_ptr_type_node,
7321 fexcept_t_ptr_type_node, const_fexcept_t_ptr_type_node): New
7322 macros.
7323 (builtin_structptr_types): Adjust size.
7324 * tree.c (builtin_structptr_types): Add four entries.
7325
7326 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
7327 Olivier Hainque <hainque@adacore.com>
7328
7329 * config/vxworks.h (VXWORKS_LIB_SPEC): Incorporate ...
7330 (TLS_SYM): New local macro, forcing reference to __tls__ on
7331 link command lines for VxWorks 7 RTPs, triggering initialization
7332 of tlsLib.
7333 (VXWORKS_HAVE_TLS): New macro. State whether the target VxWorks
7334 OS features TLS support, true for RTPs on VxWorks 7.
7335 * config/vxworks.c (vxworks_override_options): Setup emutls
7336 accordingly.
7337
7338 2017-06-27 Jakub Jelinek <jakub@redhat.com>
7339
7340 * predict.c (test_prediction_value_range): Use -1U instead of -1
7341 to avoid narrowing conversion warning.
7342 * dumpfile.c (dump_options): Wrap all value into dump_flags_t cast
7343 to avoid narrowing conversion warning.
7344 * opt-functions.awk (var_ref): Return (unsigned short) -1 instead of
7345 -1.
7346 * optc-gen.awk (END): Expect (unsigned short) -1 instead of -1.
7347
7348 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
7349
7350 * config/vxworks.h (VXWORKS_LIBS_RTP): Alternative definition for
7351 64bit configurations.
7352 (PTR_DIFF_TYPE): Alternative definition for TARGET_LP64.
7353 (SIZE_TYPE): Likewise.
7354 * config/vxworks.c (vxworks_emutls_var_fields): Use
7355 long_unsigned_type_node instead of unsigned_type_node as the offset
7356 field type, which is "pointer" mode in emutls.c.
7357
7358 2017-06-27 Jakub Jelinek <jakub@redhat.com>
7359
7360 PR sanitizer/81209
7361 * ubsan.c (ubsan_encode_value): Initialize DECL_CONTEXT on var.
7362
7363 PR middle-end/81207
7364 * gimple-fold.c (replace_call_with_call_and_fold): Handle
7365 gimple_vuse copying separately from gimple_vdef copying.
7366
7367 2017-06-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7368
7369 * value-prof.c (free_hist): Remove call to memset and the enclosing if
7370 condition.
7371
7372 2017-06-26 Jerome Lambourg <lambourg@adacore.com>
7373 Olivier Hainque <hainque@adacore.com>
7374
7375 * config.gcc (*-*-vxworks*): Add TARGET_VXWORKS7=1 to tm_defines
7376 for all vxworks7 targets.
7377 * config/vxworks.h (TARGET_VXWORKS7): If not defined, define to 0.
7378 (VXWORKS_ADDITIONAL_CPP_SPEC): Alternative definition for VXWORKS7.
7379 (VXWORKS_LIBS_RTP, VXWORKS_LIBS_RTP_DIR): New macros, allowing
7380 variations for VX6/VX7 and 32/64bits later on in ...
7381 (VXWORKS_LIB_SPEC): Leverage new macros.
7382 (VXWORKS_OS_CPP_BUILTINS): Define _VSB_CONFIG_FILE for VXWORKS7,
7383 as well as _ALLOW_KEYWORD_MACROS when "inline" is not a keyword.
7384
7385 2017-06-26 Jerome Lambourg <lambourg@adacore.com>
7386
7387 * config/vxworks.h (VXWORKS_OS_CPP_BUILTINS): builtin_define
7388 _VX_TOOL_FAMILY and _VX_TOOL to gnu.
7389
7390 2017-06-26 Carl Love <cel@us.ibm.com>
7391
7392 * config/rs6000/rs6000-c.c: Add support for built-in functions
7393 vector bool char vec_reve (vector bool char);
7394 vector signed char vec_reve (vector signed char);
7395 vector unsigned char vec_reve (vector unsigned char);
7396 vector bool int vec_reve (vector bool int);
7397 vector signed int vec_reve (vector signed int);
7398 vector unsigned int vec_reve (vector unsigned int);
7399 vector bool long long vec_reve (vector bool long long);
7400 vector signed long long vec_reve (vector signed long long);
7401 vector unsigned long long vec_reve (vector unsigned long long);
7402 vector bool short vec_reve (vector bool short);
7403 vector signed short vec_reve (vector signed short);
7404 vector double vec_reve (vector double);
7405 vector float vec_reve (vector float);
7406 * config/rs6000/rs6000-builtin.def (VREVE_V2DI, VREVE_V4SI,
7407 VREVE_V8HI, VREVE_V16QI, VREVE_V2DF, VREVE_V4SF, VREVE): New builtin.
7408 * config/rs6000/altivec.md (UNSPEC_VREVEV): New UNSPEC.
7409 (altivec_vreve): New pattern.
7410 * config/rs6000/altivec.h (vec_reve): New define.
7411 * doc/extend.texi (vec_rev): Update the built-in documentation file
7412 for the new built-in functions.
7413
7414 2016-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7415
7416 PR tree-optimization/71815
7417 * gimple-ssa-strength-reduction.c (uses_consumed_by_stmt): New
7418 function.
7419 (find_basis_for_candidate): Call uses_consumed_by_stmt rather than
7420 has_single_use.
7421 (slsr_process_phi): Likewise.
7422 (replace_uncond_cands_and_profitable_phis): Don't replace a
7423 multiply candidate with a stride of 1 (copy or cast).
7424 (phi_incr_cost): Call uses_consumed_by_stmt rather than
7425 has_single_use.
7426 (lowest_cost_path): Likewise.
7427 (total_savings): Likewise.
7428
7429 2017-06-26 Richard Biener <rguenther@suse.de>
7430
7431 PR target/81175
7432 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
7433 Use def_builtin_pure for all gather builtins.
7434
7435 2017-06-26 Richard Biener <rguenther@suse.de>
7436
7437 PR tree-optimization/81203
7438 * tree-tailcall.c (find_tail_calls): Do not move stmts into
7439 non-dominating BBs.
7440
7441 2017-06-26 Marek Polacek <polacek@redhat.com>
7442
7443 PR c/80116
7444 * doc/invoke.texi: Document -Wmultistatement-macros.
7445
7446 2017-06-26 Christophe Lyon <christophe.lyon@linaro.org>
7447
7448 * doc/sourcebuild.texi (ARM-specific attributes): Document new
7449 arm_neon_ok_no_float_abi effective target.
7450
7451 2017-06-26 Richard Biener <rguenther@suse.de>
7452
7453 PR tree-optimization/80928
7454 * cfghooks.c (duplicate_block): Do not copy BB_DUPLICATED flag.
7455 (copy_bbs): Set BB_DUPLICATED flag early.
7456 (execute_on_growing_pred): Do not execute for BB_DUPLICATED
7457 marked blocks.
7458 (execute_on_shrinking_pred): Likewise.
7459 * tree-ssa.c (ssa_redirect_edge): Do not look for PHI args in
7460 BB_DUPLICATED blocks.
7461 * tree-ssa-phionlycoprop.c (eliminate_degenerate_phis_1): Properly
7462 iterate over all PHIs considering removal of *gsi.
7463
7464 2017-06-23 Jim Wilson <jim.wilson@linaro.org>
7465
7466 * doc/invoke.texi (AArch64 Options, -mtune): Re-add falkor and
7467 qdf24xx.
7468
7469 2017-06-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
7470
7471 * config/rs6000/rs6000-string.c: (expand_block_clear,
7472 do_load_for_compare, select_block_compare_mode,
7473 compute_current_alignment, expand_block_compare,
7474 expand_strncmp_align_check, expand_strn_compare,
7475 expand_block_move, rs6000_output_load_multiple)
7476 Move functions related to string/block move/compare
7477 to a separate file.
7478 * config/rs6000/rs6000.c: Move above functions to rs6000-string.c.
7479 * config/rs6000/rs6000-protos.h (rs6000_emit_dot_insn): Add prototype
7480 for this function which is now used in two files.
7481 * config/rs6000/t-rs6000: Add rule to compile rs6000-string.o.
7482 * config.gcc: Add rs6000-string.o to extra_objs for
7483 targets powerpc*-*-* and rs6000*-*-*.
7484
7485 2017-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
7486
7487 PR target/80510
7488 * config/rs6000/rs6000.md (ALTIVEC_DFORM): Do not allow DImode in
7489 32-bit, since indexed is not valid for DImode.
7490 (mov<mode>_hardfloat32): Reorder ISA 2.07 load/stores before ISA
7491 3.0 d-form load/stores to be the same as mov<mode>_hardfloat64.
7492 (define_peephole2 for Altivec d-form load): Add 32-bit support.
7493 (define_peephole2 for Altivec d-form store): Likewise.
7494
7495 PR ipa/81185
7496 * multiple_target.c (create_dispatcher_calls): Only create the
7497 dispatcher call if the function is the default clone of a
7498 versioned function.
7499
7500 2017-06-23 Segher Boessenkool <segher@kernel.crashing.org>
7501
7502 PR middle-end/80902
7503 * builtins.c (expand_builtin_atomic_fetch_op): If emitting code after
7504 a call, force the call to not be a tail call.
7505
7506 2017-06-23 Jeff Law <law@redhat.com>
7507
7508 * doc/contrib.texi: Add entry for Steven Pemberton's work on
7509 enquire.
7510
7511 2017-06-23 Will Schmidt <will_schmidt@vnet.ibm.com>
7512
7513 * config/rs6000/rs6000.c: Add include of ssa-propagate.h for
7514 update_call_from_tree(). (rs6000_gimple_fold_builtin): Add
7515 handling for early expansion of vector shifts (sl,sr,sra,rl).
7516 (builtin_function_type): Add vector shift right instructions
7517 to the unsigned argument list.
7518
7519 2017-06-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
7520
7521 rtl-optimizatoin/79286
7522 * ira.c (update_equiv_regs): Revert to using may_trap_or_fault_p again.
7523 * rtlanal.c (rtx_addr_can_trap_p_1): SYMBOL_REF_FUNCTION_P can never
7524 trap. PIC register plus a const unspec without offset can never trap.
7525
7526 2017-06-23 Marc Glisse <marc.glisse@inria.fr>
7527
7528 * tree.h (builtin_structptr_type): New type.
7529 (builtin_structptr_types): Declare new array.
7530 * tree.c (builtin_structptr_types): New array.
7531 (free_lang_data, build_common_tree_nodes): Use it.
7532
7533 2017-06-23 Jonathan Wakely <jwakely@redhat.com>
7534
7535 PR c++/81187
7536 * doc/invoke.texi (-Wnoexcept-type): Fix name of option, from
7537 -Wnoexcept.
7538
7539 2017-06-22 Matt Turner <mattst88@gmail.com>
7540
7541 * config/i386/driver-i386.c (host_detect_local_cpu): Add Kaby
7542 Lake models to skylake case. Assume skylake for unknown
7543 models with clflushopt.
7544
7545 2017-06-22 Jeff Law <law@redhat.com>
7546
7547 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Handle
7548 frame sizes that do not satisfy aarch64_uimm12_shift.
7549
7550 2017-06-22 Jan Hubicka <hubicka@ucw.cz>
7551
7552 * profile-count.h (apply_probability,
7553 apply_scale, probability_in): Fix checks for zero.
7554
7555 2017-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7556
7557 * incpath.c (add_sysroot_to_chain): Allow for $SYSROOT prefix.
7558 * doc/cppdiropts.texi (-I @var{dir}): Document it.
7559
7560 2016-06-22 Richard Biener <rguenther@suse.de>
7561
7562 * tree-vect-loop.c (vect_model_reduction_cost): Handle
7563 COND_REDUCTION and INTEGER_INDUC_COND_REDUCTION without
7564 REDUC_MAX_EXPR support.
7565 (vectorizable_reduction): Likewise.
7566 (vect_create_epilog_for_reduction): Likewise.
7567
7568 2017-06-22 James Greenhalgh <james.greenhalgh@arm.com>
7569
7570 * match.pd (A / (1 << B) -> A >> B): New.
7571 * generic-match-head.c: Include optabs-tree.h.
7572 * gimple-match-head.c: Likewise.
7573 * optabs-tree.h (target_supports_op_p): New.
7574 * optabs-tree.c (target_supports_op_p): New.
7575
7576 2017-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7577
7578 * configure.ac (gcc_cv_ld_static_dynamic): Also check stderr for
7579 $gcc_cv_ld --help output.
7580 (gcc_cv_ld_demangle): Likewise.
7581 (gcc_cv_ld_eh_frame_hdr): Likewise.
7582 (gcc_cv_ld_pie): Likewise.
7583 (gcc_cv_ld_as_needed): Likewise. Prefer native forms unless $gnu_ld.
7584 (gcc_cv_ld_buildid): Likewise.
7585 (gcc_cv_ld_sysroot): Likewise.
7586 (ld_bndplt_support): Likewise.
7587 (ld_pushpopstate_support): Likewise.
7588 * configure: Regenerate.
7589 * config/sol2.h [!USE_GLD] (SYSROOT_SPEC): Define.
7590
7591 2017-06-21 Jakub Jelinek <jakub@redhat.com>
7592
7593 PR target/81151
7594 * config/i386/sse.md (round<mode>2): Renumber match_dup and
7595 operands indexes to avoid gap between operands and match_dups.
7596
7597 2017-06-21 Andrew Pinski <apinski@cavium.com>
7598
7599 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
7600 Increment Arith_shift and Arith_shift_reg by 1.
7601 * config/aarch64/aarch64-tuning-flags.def (cheap_shift_extend):
7602 New tuning flag.
7603 * config/aarch64/aarch64.c (thunderx_tunings): Enable
7604 AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
7605 (aarch64_strip_extend): Add new argument and test for it.
7606 (aarch64_cheap_mult_shift_p): New function.
7607 (aarch64_rtx_mult_cost): Call aarch64_cheap_mult_shift_p and don't
7608 add a cost if it is true.
7609 Update calls to aarch64_strip_extend.
7610 (aarch64_rtx_costs): Update calls to aarch64_strip_extend.
7611
7612 2017-06-21 Andrew Pinski <apinski@cavium.com>
7613
7614 * config/aarch64/aarch64-cores.def (thunderxt88p1): Use thunderxt88
7615 tunings.
7616 (thunderxt88): Likewise.
7617 * config/aarch64/aarch64.c (thunderxt88_prefetch_tune): New variable.
7618 (thunderx_prefetch_tune): New variable.
7619 (thunderx2t99_prefetch_tune): Update for the correct values.
7620 (thunderxt88_tunings): New variable.
7621 (thunderx_tunings): Use thunderx_prefetch_tune instead of
7622 generic_prefetch_tune.
7623 (thunderx2t99_tunings): Use AUTOPREFETCHER_WEAK.
7624
7625 2017-06-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7626
7627 * config/aarch64/atomics.md (aarch64_compare_and_swap<mode>_lse,
7628 SHORT): Relax operand 3 to aarch64_reg_or_zero and constraint to Z.
7629 (aarch64_compare_and_swap<mode>_lse, GPI): Likewise.
7630 (aarch64_atomic_cas<mode>, SHORT): Likewise for operand 2.
7631 (aarch64_atomic_cas<mode>, GPI): Likewise.
7632
7633 2017-06-21 Martin Liska <mliska@suse.cz>
7634
7635 * gimplify.c (gimplify_label_expr): Insert GIMPLE_PREDICT
7636 statements on cold and hot labels.
7637 * predict.c (tree_estimate_probability_bb): Remove the
7638 prediction from this place.
7639
7640 2017-06-21 Martin Liska <mliska@suse.cz>
7641
7642 PR tree-optimization/79489
7643 * gimplify.c (maybe_add_early_return_predict_stmt): New
7644 function.
7645 (gimplify_return_expr): Call the function.
7646 * predict.c (tree_estimate_probability_bb): Remove handling
7647 of early return.
7648 * predict.def: Update comment about early return predictor.
7649 * gimple-predict.h (is_gimple_predict): New function.
7650 * predict.def: Change default value of early return to 66.
7651 * tree-tailcall.c (find_tail_calls): Skip GIMPLE_PREDICT
7652 statements.
7653 * passes.def: Put pass_strip_predict_hints to the beginning of
7654 IPA passes.
7655
7656 2017-06-21 Pierre-Marie de Rodat <derodat@adacore.com>
7657
7658 * dwarf2out.c (gen_decl_die): Remove the guard to skip file-scope
7659 FUNCTION_DECL declarations.
7660 (dwarf2out_early_global_decl): Remove the guard to skip FUNCTION_DECL
7661 declarations.
7662 (dwaf2out_decl): Likewise.
7663 * godump.c (go_early_global_decl): Skip call to the real debug hook
7664 for FUNCTION_DECL declarations.
7665 * passes.c (rest_of_decl_compilation): Skip call to the
7666 early_global_decl debug hook for FUNCTION_DECL declarations, unless
7667 -fdump-go-spec is passed.
7668
7669 2017-06-21 Marc Glisse <marc.glisse@inria.fr>
7670
7671 * config/i386/i386.c (struct builtin_isa): New field pure_p.
7672 Reorder for compactness.
7673 (def_builtin, def_builtin2, ix86_add_new_builtins): Handle pure_p.
7674 (def_builtin_pure, def_builtin_pure2): New functions.
7675 (ix86_init_mmx_sse_builtins) [__builtin_ia32_stmxcsr]: Mark as pure.
7676
7677 2017-06-21 Marc Glisse <marc.glisse@inria.fr>
7678
7679 * match.pd (nop_convert): New predicate.
7680 ((A +- CST1) +- CST2): Allow some NOP conversions.
7681
7682 2017-06-21 Jakub Jelinek <jakub@redhat.com>
7683
7684 PR c++/81130
7685 * gimplify.c (omp_add_variable): Don't force GOVD_SEEN for types
7686 with ctors/dtors if GOVD_SHARED is set.
7687
7688 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
7689
7690 * config/aarch64/aarch64.md (movti_aarch64):
7691 Emit mov rather than orr.
7692 (movtf_aarch64): Likewise.
7693 * config/aarch64/aarch64-simd.md (aarch64_simd_mov):
7694 Emit mov rather than orr.
7695
7696 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
7697
7698 * config/aarch64/aarch64-simd.md (aarch64_simd_dup):
7699 Swap alternatives, make integer dup more expensive.
7700
7701 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
7702
7703 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p):
7704 Return true for non-tls symbols.
7705
7706 2017-06-21 James Greenhalgh <james.greenhalgh@arm.com>
7707
7708 * config/aarch64/aarch64-cores.def (cortex-a55): New.
7709 (cortex-a75): Likewise.
7710 (cortex-a75.cortex-a55): Likewise.
7711 * config/aarch64/aarch64-tune.md: Regenerate.
7712 * doc/invoke.texi (-mtune): Document new values for -mtune.
7713
7714 2017-06-21 Tom de Vries <tom@codesourcery.com>
7715
7716 * doc/sourcebuild.texi (Add Options, Features for dg-add-options): Add
7717 stack_size feature.
7718 (Effective-Target Keywords, Other attributes): Suggest using
7719 dg-add-options stack_size feature to get stack limit in stack_size
7720 effective target documentation.
7721
7722 2017-06-21 Julian Brown <julian@codesourcery.com>
7723 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
7724
7725 * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi)
7726 (aarch64_crypto_pmullv2di): Change type attribute to crypto_pmull.
7727 * config/aarch64/thunderx2t99.md (thunderx2t99_pmull): New
7728 reservation.
7729 * config/arm/cortex-a53.md (cortex_a53_advsimd_type): Add crypto_pmull to
7730 attribute type list for neon_multiply.
7731 * config/arm/cortex-a57.md (cortex_a57_neon_type): Add crypto_pmull to
7732 attribute type list for neon_multiply.
7733 * config/arm/crypto.md (crypto_vmullp64): Change type to crypto_pmull.
7734 * config/arm/exynos-m1.md (exynos_m1_neon_type): Add crypto_pmull to
7735 attribute type list for neon_multiply.
7736 * config/arm/types.md (crypto_pmull): Add.
7737 * config/arm/xgene1.md (xgene1_neon_pmull): Add crypto_pmull to
7738 attribute type list.
7739
7740 2017-06-20 Andreas Tobler <andreast@gcc.gnu.org>
7741
7742 * config.gcc (armv6*-*-freebsd*): Change the target_cpu_cname to
7743 arm1176jzf-s.
7744
7745 2017-06-20 Jakub Jelinek <jakub@redhat.com>
7746
7747 * ira-costs.c (find_costs_and_classes): Initialize cost_classes later
7748 to make sure not to dereference a NULL cost_classes_ptr pointer.
7749
7750 2017-06-20 Carl Love <cel@us.ibm.com>
7751
7752 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7753 ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
7754 ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
7755 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
7756 builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
7757 * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
7758 VMULOSW): New enum "unspec" values.
7759 (vec_widen_umult_even_v4si, vec_widen_smult_even_v4si,
7760 vec_widen_umult_odd_v4si, vec_widen_smult_odd_v4si,
7761 altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
7762 altivec_vmulosw): New patterns.
7763 * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
7764 VMULOSW): Add definitions.
7765
7766 2017-06-20 Julia Koval <julia.koval@intel.com>
7767
7768 * config/i386/i386.c: Fix rounding expand for new pattern.
7769 * config/i386/subst.md: Fix pattern (parallel -> unspec).
7770
7771 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
7772
7773 * config/aarch64/aarch64-option-extensions.def (rcpc): New.
7774 * config/aarch64/aarch64.h (AARCH64_FL_RCPC): New.
7775
7776 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
7777
7778 * config/aarch64/aarch64-option-extensions.def (fp16): Fix expected
7779 feature string.
7780
7781 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
7782
7783 * config/aarch64/aarch64-cores.def: Rearrange to sort by
7784 architecture, then by implementer ID.
7785 * config/aarch64/aarch64-tune.md: Regenerate.
7786
7787 2017-06-20 Richard Biener <rguenther@suse.de>
7788
7789 PR middle-end/81097
7790 * fold-const.c (split_tree): Fold to type before negating.
7791
7792 2017-06-20 David Malcolm <dmalcolm@redhat.com>
7793
7794 * diagnostic-show-locus.c
7795 (selftest::test_fixit_deletion_affecting_newline): New function.
7796 (selftest::diagnostic_show_locus_c_tests): Call it.
7797
7798 2017-06-20 Andreas Schwab <schwab@suse.de>
7799
7800 PR target/80970
7801 * config/m68k/m68k.md (bsetdreg, bchgdreg, bclrdreg): Use "=d"
7802 instead of "+d".
7803
7804 2017-06-20 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
7805
7806 * config/arm/arm-c.c (arm_cpu_builtins): New block to define
7807 __ARM_FEATURE_COPROC according to support.
7808
7809 2017-06-20 Jakub Jelinek <jakub@redhat.com>
7810
7811 * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
7812 Rewritten to avoid overflow for > 32-bit pointers.
7813
7814 PR sanitizer/81125
7815 * ubsan.h (ubsan_encode_value): Workaround buggy clang++ parser
7816 by removing enum keyword.
7817 (ubsan_type_descriptor): Likewise. Formatting fix.
7818
7819 PR target/81121
7820 * config/i386/i386.md (TARGET_USE_VECTOR_CONVERTS float si->{sf,df}
7821 splitter): Require TARGET_SSE2 in the condition.
7822
7823 2017-06-20 Michael Meissner <meissner@linux.vnet.ibm.com>
7824
7825 PR target/79799
7826 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Add support
7827 for doing vector set of SFmode on ISA 3.0.
7828 * config/rs6000/vsx.md (vsx_set_v4sf_p9): Likewise.
7829 (vsx_set_v4sf_p9_zero): Special case setting 0.0f to a V4SF
7830 element.
7831 (vsx_insert_extract_v4sf_p9): Add an optimization for inserting a
7832 SFmode value into a V4SF variable that was extracted from another
7833 V4SF variable without converting the element to double precision
7834 and back to single precision vector format.
7835 (vsx_insert_extract_v4sf_p9_2): Likewise.
7836
7837 2017-06-19 Jakub Jelinek <jakub@redhat.com>
7838
7839 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Multiply
7840 in UWHI to avoid undefined overflow.
7841
7842 PR sanitizer/81125
7843 * ubsan.h (enum ubsan_encode_value_phase): New.
7844 (ubsan_encode_value): Change second argument to
7845 enum ubsan_encode_value_phase with default value of
7846 UBSAN_ENCODE_VALUE_GENERIC.
7847 * ubsan.c (ubsan_encode_value): Change second argument to
7848 enum ubsan_encode_value_phase PHASE from bool IN_EXPAND_P,
7849 adjust uses, for UBSAN_ENCODE_VALUE_GENERIC use just
7850 create_tmp_var_raw instead of create_tmp_var and use a
7851 TARGET_EXPR.
7852 (ubsan_expand_bounds_ifn, ubsan_build_overflow_builtin,
7853 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
7854 ubsan_encode_value callers.
7855
7856 PR sanitizer/81111
7857 * ubsan.c (ubsan_encode_value): If current_function_decl is NULL,
7858 use create_tmp_var_raw instead of create_tmp_var, mark it addressable
7859 just by setting TREE_ADDRESSABLE on the result and use a TARGET_EXPR.
7860
7861 2017-06-19 Richard Biener <rguenther@suse.de>
7862
7863 PR middle-end/81118
7864 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop): Clear niter
7865 estimates if we changed anything.
7866
7867 2017-06-19 Richard Biener <rguenther@suse.de>
7868
7869 PR tree-optimization/80887
7870 * tree-ssa-sccvn.c (mprts_hook_cnt): New global.
7871 (vn_lookup_simplify_result): Allow only mprts_hook_cnt succesful
7872 simplified lookups, then reset mprts_hook.
7873 (vn_nary_build_or_lookup_1): Set mprts_hook_cnt to 9 before
7874 simplifying.
7875 (try_to_simplify): Likewise.
7876
7877 2017-06-19 Martin Liska <mliska@suse.cz>
7878
7879 PR sanitizer/80879
7880 * gimplify.c (gimplify_switch_expr):
7881 Initialize live_switch_vars for SWITCH_BODY == STATEMENT_LIST.
7882
7883 2017-06-19 Martin Liska <mliska@suse.cz>
7884
7885 * doc/install.texi: Document that PGO runs in 4 stages.
7886
7887 2017-06-19 Martin Liska <mliska@suse.cz>
7888
7889 PR ipa/80732
7890 * attribs.c (make_dispatcher_decl): Do not append '.ifunc'
7891 to dispatcher function name.
7892 * multiple_target.c (replace_function_decl): New function.
7893 (create_dispatcher_calls): Redirect both edges and references.
7894
7895 2017-06-19 Jan Hubicka <hubicka@ucw.cz>
7896
7897 * profile-count.c (profile_count::dump): Dump quality.
7898 (profile_count::differs_from_p): Update for unsigned val.
7899 * profile-count.h (profile_count_quality): New enum.
7900 (profile_count): Turn m_val to 62bit unsigned, add quality tracking.
7901
7902 2017-06-19 Richard Biener <rguenther@suse.de>
7903
7904 * tree-ssa-loop-niter.h (estimate_numbers_of_iterations): Take
7905 struct function as arg.
7906 (estimate_numbers_of_iterations): Export overload with loop arg.
7907 (free_numbers_of_iterations_estimates_loop): Use an overload of
7908 free_numbers_of_iterations_estimates instead.
7909 * tree-cfg.c (remove_bb): Adjust.
7910 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Likewise.
7911 * tree-parloops.c (gen_parallel_loop): Likewise.
7912 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
7913 Likewise.
7914 (tree_unroll_loops_completely): Likewise.
7915 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
7916 Use an overload instead and export.
7917 (estimated_loop_iterations): Adjust.
7918 (max_loop_iterations): Likewise.
7919 (likely_max_loop_iterations): Likewise.
7920 (estimate_numbers_of_iterations): Take struct function as arg
7921 and adjust.
7922 (loop_exits_before_overflow): Adjust.
7923 (free_numbers_of_iterations_estimates_loop): Use an overload.
7924 * tree-vect-loop.c (vect_analyze_loop_form): Adjust.
7925 * tree-vectorizer.c (vect_free_loop_info_assumptions): Likewise.
7926
7927 2017-06-19 Richard Biener <rguenther@suse.de>
7928
7929 PR ipa/81112
7930 * ipa-prop.c (find_constructor_constant_at_offset): Handle
7931 RANGE_EXPR conservatively.
7932
7933 2017-06-16 Carl Love <cel@us.ibm.com>
7934
7935 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7936 definitions for vec_float, vec_float2, vec_floato,
7937 vec_floate built-ins.
7938 * config/rs6000/vsx.md (define_c_enum "unspec"): Add RTL code
7939 for instructions vsx_xvcvsxws vsx_xvcvuxwsp, float2, floato and
7940 floate.
7941 * config/rs6000/rs6000-builtin.def (FLOAT2_V2DI, FLOATE_V2DF,
7942 FLOATE_2DI, FLOATO_V2DF, FLOATEE_V2DI, XVCVSXWSP_V4SF,
7943 UNS_FLOATO_V2DI, UNS_FLOATE_V2DI): Add definitions.
7944 * config/altivec.md (define_insn "p8_vmrgew_<mode>",
7945 define_mode_attr VF_sxddp): Add V4SF type to p8_vmrgew.
7946 * config/rs6000/altivec.h (vec_float, vec_float2, vec_floate,
7947 vec_floato): Add builtin defines.
7948 * doc/extend.texi (vec_float, vec_float2, vec_floate, vec_floato):
7949 Update the built-in documentation file for the new built-in
7950 functions.
7951
7952 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
7953
7954 * config/arm/arm.opt (marm): Mark as the negative of of -mthumb.
7955 (mthumb): Mark as the negative of -marm.
7956
7957 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
7958
7959 * doc/invoke.texi (ARM Options, -mcpu): Document supported
7960 extension options.
7961 (ARM Options, -mtune): Document that this accepts the same
7962 extension options as -mcpu.
7963 (ARM Options, -mfpu): Document addition of -mfpu=auto.
7964
7965 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
7966
7967 * doc/invoke.texi (ARM Options, -march=): Document new syntax and
7968 permitted extensions.
7969
7970 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
7971
7972 * config/arm/arm-cpus.in (armv7): Add extension +nofp.
7973 (armv7-r): Add aliases vfpv3xd and vfpv3-d16.
7974 (armv8-m.main): Add option +nodsp.
7975 * config/arm/arm-cpu-cdata.h: Regenerated.
7976
7977 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
7978
7979 * config/arm/t-fuchsia: New file.
7980 * config.gcc (arm*-*-fuchsia*): Use it.
7981
7982 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
7983
7984 * config/arm/t-symbian: Rewrite for new option infrastructure.
7985
7986 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
7987
7988 * config/arm/t-phoenix (MULTILIB_REUSE): Clear variable.
7989 (MULTILIB_REQUIRED): Likewise.
7990
7991 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
7992
7993 * config/arm/t-linux-eabi (MULTILIB_EXCEPTIONS): Set to empty.
7994 (MULTILIB_RESUE): Likewise.
7995 (MULTILIB_MATCHES): Likewise.
7996 (MULTLIB_REQUIRED): Likewise.
7997
7998 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
7999
8000 * config/arm/t-rtems: Rewrite for new option framework.
8001
8002 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
8003
8004 * config/arm/t-aprofile (v7_a_nosimd_variants, v7_a_simd_variants)
8005 (v7ve_nosimd_variatns, v7ve_vfpv3_simd_variants)
8006 (v7ve_vfpv4_simd_variants, v8_a_nosimd_variants, v8_a_simd_variants)
8007 (v8_1_a_simd_variants, v8_2_a_simd_variants): Move to ...
8008 * config/arm/t-multilib: ... here.
8009 (MULTILIB_OPTIONS): Add armv7 and armv7+fp architectures.
8010 (MULTILIB_MATCHES): Use armv7 libraries for armv7-r. Also use for
8011 armv7-a and armv8*-a when A-profile libraries have not been built.
8012 * config/arm/t-rmprofile: Rewrite.
8013
8014 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
8015
8016 * genmultilib (multilib_reuse): Allow an explicit period to be escaped
8017 with a backslash. Remove the backslash after substituting unescaped
8018 periods.
8019 * doc/fragments.texi (MULTILIB_REUSE): Document it.
8020
8021 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
8022
8023 * config.gcc: (arm*-*-*): When building a-profile libraries, force
8024 the driver to pass through the default setting of -mfloat-abi.
8025 * common/config/arm/arm-common.c (arm_target_thumb_only): Return -marm
8026 rather than NULL.
8027 * config/arm/t-multilib (MULTILIB_REUSE): Initialize to empty.
8028 (all_feat_combs): New rule.
8029 (MULTILIB_OPTIONS): Use explicit ARM and Thumb directories. Rework
8030 default libraries.
8031 * config/arm/t-aprofile: Rewrite.
8032
8033 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
8034
8035 * config/arm/arm.h (FPUTYPE_AUTO): Define.
8036 * config/arm/arm.c (arm_option_override): Use FPUTYPE_AUTO if the
8037 fpu is not specified by the user/command-line.
8038 * config/arm/bpabi.h (FPUTYPE_DEFAULT): Delete.
8039 * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Delete.
8040 * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Delete.
8041 * config/arm/vxworks.h (FPUTYPE_DEFAULT): Delete.
8042 * common/config/arm/arm-common.c (arm_canon_arch_option): Use
8043 FPUTYPE_AUTO insted of FPUTYPE_DEFAULT.
8044
8045 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
8046
8047 * config/arm/elf.h (MULTILIB_DEFAULTS): Delete.
8048 * config/arm/t-arm-elf: Rewritten.
8049
8050 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
8051
8052 * config/arm/arm.h (TARGET_HARD_FLOAT): Also check that we
8053 have some floating-point instructions.
8054 (TARGET_SOFT_FLOAT): Define as inverse of TARGET_HARD_FLOAT.
8055 (TARGET_MAYBE_HARD_FLOAT): New macro.
8056 * config/arm/arm-builtins.c (arm_init_builtins): Use
8057 TARGET_MAYBE_HARD_FLOAT.
8058 * config/arm/arm.c (arm_option_override): Use TARGET_HARD_FLOAT_ABI.
8059
8060 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
8061
8062 * common/config/arm/arm-common.c: Define INCLUDE_LIST.
8063 (configargs.h): Include it.
8064 (arm_print_hint_for_fpu_option): New function.
8065 (arm_parse_fpu_option): New function.
8066 (candidate_extension): New class.
8067 (arm_canon_for_multilib): New function.
8068 * config/arm/arm.h (CANON_ARCH_SPEC_FUNCTION): New macro.
8069 (EXTRA_SPEC_FUNCTIONS): Add CANON_ARCH_SPEC_FUNCTION.
8070 (ARCH_CANONICAL_SPECS): New macro.
8071 (DRIVER_SELF_SPECS): Add ARCH_CANONICAL_SPECS.
8072
8073 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
8074
8075 * config.gcc (arm*-*-*): Ensure both target_cpu_cname and with_cpu
8076 are set after handling multilib fragments. Set target_cpu_default2
8077 from with_cpu.
8078
8079 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
8080
8081 * config.gcc (arm*-*-fucshia*): Set target_cpu_cname to the real
8082 cpu name.
8083 (arm*-*-*): Set target_cpu_default2 to a quoted string.
8084 * config/arm/parsecpu.awk (check_cpu): Validate any extension
8085 options.
8086 (check_arch): Likewise.
8087 * config/arm/arm.c (arm_configure_build_target): Handle
8088 TARGET_CPU_DEFAULT being a string constant. Scan any feature
8089 options in the default.
8090
8091 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
8092
8093 * config/arm/arm-protos.h (cpu_arch_extension): Add field to record
8094 when an option is an alias of another.
8095 * config/arm/parsecpu.awk (optalias): New parser token.
8096 (gen_comm_data): Mark non-alias options as such. Emit entries
8097 for extension aliases.
8098 * config/arm/arm-cpus.in (armv5e): Make vfpv2 an alias.
8099 (armv5te, armv5tej, armv6, armv6j, armv6k, armv6z): Likewise.
8100 (armv6kz, armv6zk, armv6t2): Likewise.
8101 (armv7): Make vfpv3-d16 an alias.
8102 (armv7-a): Make vfpv3-d16, neon and neon-vfpv3 aliases. Sort in
8103 canonical order.
8104 (armv7ve): Make vfpv4-d16, neon-vfpv3 and neon-vfpv4 aliases.
8105 Sort in canonical order.
8106 (armv8-a): Sort in canonical order.
8107 (armv8.1-a, armv8.2-a): Likewise.
8108 (generic-armv7-a): Make neon and neon-vfpv3 aliases. Sort in
8109 canonical order.
8110 (cortex-a9): Sort in canonical order.
8111 * config/arm/arm.c (selftests.h): Include it.
8112 (arm_test_cpu_arch_data): New function.
8113 (arm_run_self_tests): New function.
8114 (TARGET_RUN_TARGET_SELFTESTS): Redefine.
8115 (targetm): Move declaration to the end of the file.
8116 * arm-cpu-cdata.h: Regenerated.
8117
8118 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
8119
8120 * config/arm/arm.h (TARGET_MODE_SPECS): Add additional parameter to
8121 call to target_mode_check describing the type of option passed.
8122 * common/config/arm/arm-common.c (arm_arch_core_flag): Delete.
8123 (arm_target_thumb_only): Use arm_parse_arch_option_name or
8124 arm_parse_cpu_option_name to match parameters against list of
8125 available targets.
8126 * config/arm/parsecpu.awk (gen_comm_data): Don't generate
8127 arm_arch_core_flags data structure.
8128 * config/arm/arm-cpu_cdata.h: Regenerated.
8129
8130 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
8131
8132 * common/config/arm/arm-common.c (arm_initialize_isa): Moved here from
8133 config/arm/arm.c.
8134 (arm_print_hint_for_cpu_option): Likewise.
8135 (arm_print_hint_for_arch_option): Likewise.
8136 (arm_parse_cpu_option_name): Likewise.
8137 (arm_parse_arch_option_name): Likewise.
8138 * config/arm/arm.c (arm_identify_fpu_from_isa): Use the computed number
8139 of entries in the all_fpus list.
8140 * config/arm/arm-protos.h (all_architectures, all_cores): Declare.
8141 (arm_parse_cpu_option_name): Declare.
8142 (arm_parse_arch_option_name): Declare.
8143 (arm_parse_option_features): Declare.
8144 (arm_intialize_isa): Declare.
8145 * config/arm/parsecpu.awk (gen_data): Move CPU and architecture
8146 data tables to ...
8147 (gen_comm_data): ... here. Make definitions non-static.
8148 * config/arm/arm-cpu-data.h: Regenerated.
8149 * config/arm/arm-cpu-cdata.h: Regenerated.
8150
8151 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
8152
8153 * config/arm/arm-protos.h (arm_build_target): Remove arch_core.
8154 (cpu_arch_extension): New structure.
8155 (cpu_arch_option, arch_option, cpu_option): New structures.
8156 * config/arm/parsecpu.awk (gen_headers): Build an enumeration of
8157 architecture types.
8158 (gen_data): Generate new format data tables.
8159 * config/arm/arm.c (cpu_tune): New structure.
8160 (cpu_option, processors): Delete.
8161 (arm_print_hint_for_core_or_arch): Delete. Replace with ...
8162 (arm_print_hint_for_cpu_option): ... this and ...
8163 (arm_print_hint_for_arch_option): ... this.
8164 (arm_parse_arch_cpu_name): Delete. Replace with ...
8165 (arm_parse_cpu_option_name): ... this and ...
8166 (arm_parse_arch_option_name): ... this.
8167 (arm_unrecognized_feature): Change type of target parameter to
8168 cpu_arch_option.
8169 (arm_parse_arch_cpu_features): Delete. Replace with ...
8170 (arm_parse_option_features): ... this.
8171 (arm_configure_build_target): Rework to use new configuration data
8172 tables.
8173 (arm_print_tune_info): Rework for new configuration data tables.
8174 * config/arm/arm-cpu-data.h: Regenerated.
8175 * config/arm/arm-cpu.h: Regenerated.
8176
8177 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
8178
8179 * Makefile.in (OBJS): Move sbitmap.o from here ...
8180 (OBJS-libcommon): ... to here.
8181
8182 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
8183
8184 * config/arm/arm-isa.h (ISA_ALL_FPU_INTERNAL): Renamed from ISA_ALL_FPU.
8185 (ISA_ALL_CRYPTO): New macro.
8186 (ISA_ALL_SIMD): New macro
8187 (ISA_ALL_FP): New macro.
8188 * config/arm/arm.c (fpu_bitlist): Update initializer.
8189 * config/arm/arm-cpus.in: Use new ISA_ALL macros to disable crypto,
8190 simd or fp.
8191 (arm9e): Add fpu. Add option for nofp
8192 (arm946e-s, arm966e-s, arm968e-s, arm10e, arm1020e, arm1022e): Likewise.
8193 (arm926ej-s, arm1026ej-s): Likewise.
8194 (generic-armv7-a): Add fpu. Add options for simd, vfpv3, vfpv3-d16,
8195 vfpv3-fp16, vfpv3-d16-fp16, vfpv4, vfpv4-d16, neon, neon-vfp3,
8196 neon-fp16, neon-vfpv4, nofp and nosimd.
8197 (cortex-a5, cortex-a7): Add fpu. Add options for nosimd and nofp.
8198 (cortex-a8): Add fpu. Add option for nofp.
8199 (cortex-a9): Add fpu. Add options for nosimd and nofp.
8200 (cortex-a12, cortex-a15, cortex-a17): Add fpu. Add option for nofp.
8201 (cortex-r4f): Add fpu.
8202 (cortex-r5): Add fpu. Add options for nofp.dp and nofp.
8203 (cortex-r7): Use idiv option from architecture. Add fpu. Add option
8204 for nofp.
8205 (cortex-r8): Likewise.
8206 (cortex-m4): Add fpu. Add option for nofp.
8207 (cortex-a15.cortex-a7): Add fpu. Add option for nofp.
8208 (cortex-a17.cortex-a7): Likewise.
8209 (cortex-a32): Add fpu. Add options for crypto and nofp.
8210 (cortex-a35, cortex-a53): Likewise.
8211 (cortex-a57): Add fpu. Add option for crypto.
8212 (cortex-a72, cortex-a73): Likewise.
8213 (exynos-m1): Likewise.
8214 (cortex-a57.cortex-a53, cortex-a72.cortex-a53): Likewise.
8215 (cortex-a73.cortex-a35, cortex-a73.cortex-a53): Likewise.
8216 (cortex-m33): Add fpu. Add option for nofp.
8217 * config/arm/arm-cpu-cdata.h: Regenerated
8218 * config/arm/arm-cpu-data.h: Regenerated.
8219
8220 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
8221
8222 * arm-cpus.in (armv5e): Add options fp, vfpv2 and nofp.
8223 (armv5te, armv5tej): Likewise.
8224 (armv6, armv6j, armv6k, armv6z, armv6kz, armv6zk, armv6t2): Likewise.
8225 (armv7): Add options fp and vfpv3-d16.
8226 (armv7-a): Add options fp, simd, vfpv3, vfpv3-d16, vfpv3-d16-fp16,
8227 vfpv3-fp16, vfpv4, vfpv4-d16, neon, neon-vfpv3, neon-fp16, neon-vfpv4,
8228 nofp and nosimd.
8229 (armv7ve): Likewise.
8230 (armv7-r): Add options fp, fp.sp, idiv, nofp and noidiv.
8231 (armv7e-m): Add options fp, fpv5, fp.dp and nofp.
8232 (armv8-a): Add nocrypto option.
8233 (armv8.1-a, armv8.2-a): Likewise.
8234 (armv8-m.main): add options fp, fp.dp and nofp.
8235
8236 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
8237
8238 * config/arm/arm-cpus.in (armv8-a): Add options crc, simd crypto and
8239 nofp.
8240 (armv8-a+crc): Delete.
8241 (armv8.1-a): Add options simd, crypto and nofp.
8242 (armv8.2-a): Add options fp16, simd, crypto and nofp.
8243 (armv8.2-a+fp16): Delete.
8244 (armv8-m.main): Add option dsp.
8245 (armv8-m.main+dsp): Delete.
8246 (cortex-a8): Add fpu. Add nofp option.
8247 (cortex-a9): Add fpu. Add nofp and nosimd options.
8248 * config/arm/parsecpu.awk (gen_data): Generate option tables and
8249 link to main cpu and architecture data structures.
8250 (gen_comm_data): Only put isa attributes from the main architecture
8251 in common tables.
8252 (option): New statement for architecture and CPU entries.
8253 * arm.c (struct cpu_option): New structure.
8254 (struct processors): Add entry for options.
8255 (arm_unrecognized_feature): New function.
8256 (arm_parse_arch_cpu_name): Ignore any characters after the first
8257 '+' character.
8258 (arm_parse_arch_cpu_feature): New function.
8259 (arm_configure_build_target): Separate out any CPU and architecture
8260 features and parse separately. Don't error out if -mfpu=auto is
8261 used with only an architecture string.
8262 (arm_print_asm_arch_directives): New function.
8263 (arm_file_start): Call it.
8264 * config/arm/arm-cpu-cdata.h: Regenerated.
8265 * config/arm/arm-cpu-data.h: Likewise.
8266 * config/arm/arm-tables.opt: Likewise.
8267
8268 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
8269
8270 * config/arm/elf.h (ASM_SPEC): Only pass -mfpu through to the
8271 assembler when it is not -mfpu=auto.
8272
8273 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
8274
8275 * config/arm/arm.h (BIG_LITTLE_SPEC): Delete macro.
8276 (ASM_REWRITE_SPEC_FUNCTIONS): New macro.
8277 (BIG_LITTLE_CPU_SPEC_FUNCTIONS): Delete macro.
8278 (ASM_CPU_SPEC): Rewrite.
8279 (MCPU_MTUNE_NATIVE_FUNCTIONS): New macro.
8280 (EXTRA_SPEC_FUNCTIONS): Move outside of ifdef. Use
8281 MCPU_MTUNE_NATIVE_FUNCTIONS and ASM_REWRITE_SPEC_FUNCTIONS. Remove
8282 reference to BIG_LITTLE_CPU_SPEC_FUNCTIONS.
8283 * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): Ensure
8284 copied string is NUL-terminated. Also strip any characters prefixed
8285 by '+'.
8286 (arm_rewrite_selected_arch): New function.
8287 (arm_rewrite_march): New function.
8288
8289 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
8290
8291 * config/arm/arm.opt (x_arm_arch_string): New TargetSave option.
8292 (x_arm_cpu_string, x_arm_tune_string): Likewise.
8293 (march, mcpu, mtune): Convert to string-based options.
8294 * config/arm/arm.c (arm_print_hint_for_core_or_arch): New function.
8295 (arm_parse_arch_cpu_name): New function.
8296 (arm_configure_build_target): Use arm_parse_arch_cpu_name to
8297 identify selected architecture or CPU.
8298 (arm_option_save): New function.
8299 (TARGET_OPTION_SAVE): Redefine.
8300 (arm_option_restore): Restore string options.
8301 (arm_option_print): Print string options.
8302
8303 2017-06-16 Martin Sebor <msebor@redhat.com>
8304
8305 PR tree-optimization/80933
8306 PR tree-optimization/80934
8307 * builtins.c (fold_builtin_3): Do not handle bcmp here.
8308 * gimple-fold.c (gimple_fold_builtin_bcmp): New function.
8309 (gimple_fold_builtin_bcopy, gimple_fold_builtin_bzero): Likewise.
8310 (gimple_fold_builtin): Call them.
8311
8312 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
8313
8314 * gimple-ssa-isolate-paths.c (isolate_path): Set edge leading to path
8315 as unlikely; update profile.
8316
8317 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
8318
8319 * predict.c (force_edge_cold): Handle declaring edges impossible
8320 more aggresively.
8321
8322 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
8323
8324 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update
8325 profile.
8326 (try_unroll_loop_completely): Fix reporting.
8327
8328 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
8329
8330 * tree-ssa-tail-merge.c (replace_block_by): Fix profile updating.
8331
8332 2017-06-16 James Greenhalgh <james.greenhalgh@arm.com>
8333
8334 PR target/71778
8335 * config/arm/arm-builtins.c (arm_expand_builtin_args): Return TARGET
8336 if given a non-constant argument for an intrinsic which requires a
8337 constant.
8338
8339 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
8340
8341 * profile.c (compare_freqs): New function.
8342 (branch_prob): Sort edge list.
8343 (find_spanning_tree): Assume that the list is priority sorted.
8344
8345 2017-06-16 Richard Biener <rguenther@suse.de>
8346
8347 PR tree-optimization/81090
8348 * passes.def (pass_record_bounds): Remove.
8349 * tree-pass.h (make_pass_record_bounds): Likewise.
8350 * tree-ssa-loop.c (pass_data_record_bounds, pass_record_bounds,
8351 make_pass_record_bounds): Likewise.
8352 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Do
8353 not free niter estimates at the beginning but at the end.
8354 * tree-scalar-evolution.c (scev_finalize): Free niter estimates.
8355
8356 2017-06-16 Richard Biener <rguenther@suse.de>
8357
8358 * tree-switch-conversion.c (emit_case_bit_tests): Adjust
8359 initializer to workaround ICE in host GCC 4.8.
8360
8361 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
8362
8363 * ipa-inline-transform.c (update_noncloned_frequencies): Update also
8364 counts.
8365 (clone_inlined_nodes): Update.
8366
8367 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
8368
8369 * config/aarch64/aarch64.c (qdf24xx_prefetch_tune): Update
8370 prefetch settings, and enable prefetching by default at -O3.
8371
8372 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
8373
8374 * config/aarch64/aarch64.c (aarch64_override_options_internal):
8375 Set flag_prefetch_loop_arrays according to tuning data.
8376
8377 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
8378
8379 * config/aarch64/aarch64-protos.h (struct cpu_prefetch_tune):
8380 New tune structure.
8381 (struct tune_params): Use cpu_prefetch_tune instead of cache_line_size.
8382 [Unrelated to main purpose of the patch] Place the pointer field last
8383 to enable type checking errors when tune structure are wrongly merged.
8384 * config/aarch64/aarch64.c (generic_prefetch_tune,)
8385 (exynosm1_prefetch_tune, qdf24xx_prefetch_tune,)
8386 (thunderx2t99_prefetch_tune): New tune constants.
8387 (tune_params *_tunings): Update all tunings (no functional change).
8388 (aarch64_override_options_internal): Set PARAM_SIMULTANEOUS_PREFETCHES,
8389 PARAM_L1_CACHE_SIZE, PARAM_L1_CACHE_LINE_SIZE, and PARAM_L2_CACHE_SIZE
8390 from tunings structures.
8391
8392 2017-06-16 Jakub Jelinek <jakub@redhat.com>
8393
8394 PR sanitizer/81094
8395 * ubsan.c (instrument_null): Add T argument, use it instead
8396 of computing it based on IS_LHS.
8397 (instrument_object_size): Likewise.
8398 (pass_ubsan::execute): Adjust instrument_null and
8399 instrument_object_size callers to pass gimple_get_lhs or
8400 gimple_assign_rhs1 result to it. Use instrument_null instead of
8401 calling get_base_address and instrument_mem_ref. Handle
8402 aggregate call arguments for object-size sanitization.
8403
8404 2017-06-16 Yury Gribov <tetra2005@gmail.com>
8405
8406 PR tree-optimization/81089
8407 * tree-vrp.c (is_masked_range_test): Validate operands of
8408 subexpression.
8409
8410 2017-06-15 Martin Sebor <msebor@redhat.com>
8411
8412 PR c++/80560
8413 * dumpfile.c (dump_register): Avoid calling memset to initialize
8414 a class with a default ctor.
8415 * gcc.c (struct compiler): Remove const qualification.
8416 * genattrtab.c (gen_insn_reserv): Replace memset with initialization.
8417 * hash-table.h: Ditto.
8418 * ipa-cp.c (allocate_and_init_ipcp_value): Replace memset with
8419 assignment.
8420 * ipa-prop.c (ipa_free_edge_args_substructures): Ditto.
8421 * omp-low.c (lower_omp_ordered_clauses): Replace memset with
8422 default ctor.
8423 * params.h (struct param_info): Make struct members non-const.
8424 * tree-switch-conversion.c (emit_case_bit_tests): Replace memset
8425 with default initialization.
8426 * vec.h (vec_copy_construct, vec_default_construct): New helper
8427 functions.
8428 (vec<T>::copy, vec<T>::splice, vec<T>::reserve): Replace memcpy
8429 with vec_copy_construct.
8430 (vect<T>::quick_grow_cleared): Replace memset with default ctor.
8431 (vect<T>::vec_safe_grow_cleared, vec_safe_grow_cleared): Same.
8432 * doc/invoke.texi (-Wclass-memaccess): Document.
8433
8434 2017-06-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8435
8436 * emit-rtl.h (is_leaf): Update comment about local
8437 register allocator.
8438
8439 2017-06-15 Jozef Lawrynowicz <jozef.l@somniumtech.com>
8440
8441 PR target/78818
8442 * config/msp430/msp430.c (msp430_data_attr): Check that it's possible
8443 for a variable to have a section before checking if the section has a
8444 name.
8445 Set section to.persistent if persistent attribute is set.
8446 Warn if .persistent attribute is used on an automatic variable.
8447
8448 2017-06-15 Eric Botcazou <ebotcazou@adacore.com>
8449
8450 PR rtl-optimization/80474
8451 * reorg.c (update_block): Do not ignore instructions in a delay slot.
8452
8453 2017-06-15 Segher Boessenkool <segher@kernel.crashing.org>
8454
8455 * config/rs6000/rs6000.md (add<mode>3): Use reg_or_subregno instead
8456 of REGNO.
8457
8458 2017-06-14 Maciej W. Rozycki <macro@imgtec.com>
8459
8460 * config/mips/mips.md (MIPS16_T_REGNUM): Remove constant.
8461 (casesi): Emit bounds checking as RTL.
8462 (casesi_internal_mips16_<mode>): Remove bounds checking.
8463
8464 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
8465
8466 * config/xtensa/xtensa.c (xtensa_option_override): Append
8467 MASK_CONST16 to target_flags in the absence of TARGET_L32R.
8468 (hwloop_optimize, hwloop_fail, hwloop_pattern_reg,
8469 xtensa_doloop_hooks): Define unconditionally.
8470 (xtensa_reorg_loops): Only call reorg_loops in the presence of
8471 TARGET_LOOPS.
8472 * config/xtensa/xtensa.h (TARGET_L32R): New definition.
8473 (TARGET_DEFAULT): Remove XCHAL_HAVE_L32R condition and account
8474 for it in xtensa_option_override.
8475 (HARD_FRAME_POINTER_IS_FRAME_POINTER,
8476 HARD_FRAME_POINTER_IS_ARG_POINTER): New definitions.
8477
8478 2017-06-14 Boris Kolpackov <boris@codesynthesis.com>
8479
8480 * doc/cppopts.texi: Document '-' special value to -MF.
8481
8482 2017-06-14 Wilco Dijkstra <wdijkstr@arm.com>
8483
8484 * config/arm/cortex-a53.md (cortex_a53_fpalu) Adjust latency.
8485 (cortex_a53_fconst): Likewise.
8486 (cortex_a53_fpmul): Likewise.
8487 (cortex_a53_f_load_64): Likewise.
8488 (cortex_a53_f_load_many): Likewise.
8489 (cortex_a53_advsimd_alu): Likewise.
8490 (cortex_a53_advsimd_alu_q): Likewise.
8491 (cortex_a53_advsimd_mul): Likewise.
8492 (cortex_a53_advsimd_mul_q): Likewise.
8493 (fpmac bypass): Add new bypass for fpmac-fpmac case.
8494 Add missing fmul, r2f_cvt and fconst cases.
8495
8496 2017-06-14 Richard Biener <rguenther@suse.de>
8497
8498 PR middle-end/81088
8499 * fold-const.c (split_tree): Drop TREE_OVERFLOW flag from
8500 literal constants.
8501 (fold_binary_loc): When associating do not treat pre-existing
8502 TREE_OVERFLOW on literal constants as a reason to allow
8503 TREE_OVERFLOW on associated literal constants.
8504
8505 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
8506
8507 * config/sparc/sparc.h (MASK_ISA): Add MASK_LEON and MASK_LEON3.
8508 (MASK_FEATURES): New macro.
8509 * config/sparc/sparc.c (sparc_option_override): Remove the special
8510 handling of -mfpu and generalize it to all MASK_FEATURES switches.
8511
8512 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
8513
8514 * simplify-rtx.c (simplify_binary_operation_1) <UDIV>: Do not simplify
8515 a division of 0 if non-call exceptions are enabled.
8516
8517 2017-06-14 Andrew Pinski <apinski@cavium.com>
8518 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
8519
8520 PR target/71663
8521 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
8522 Improve vector initialization code gen for only variable case.
8523
8524 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
8525
8526 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
8527
8528 2017-06-14 Richard Biener <rguenther@suse.de>
8529
8530 PR tree-optimization/81083
8531 * tree-ssa-sccvn.c (vn_reference_lookup_3): Do not use abnormals
8532 as values.
8533
8534 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
8535
8536 * config/rs6000/rs6000.c: Update all comments that mentioned SPE.
8537 (rs6000_expand_builtin): Remove RS6000_BTC_EVSEL.
8538 * config/rs6000/rs6000.h (RS6000_BTC_EVSEL): Delete.
8539 * config/rs6000/vxworks.h (VXCPU_FOR_8548): Delete. Adjust former use.
8540 * config/rs6000/vxworksae.h (VXCPU_FOR_8548): Delete.
8541 * config/rs6000/vxworksmils.h (VXCPU_FOR_8548): Delete.
8542
8543 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
8544
8545 * config/rs6000/rs6000-opts.h (enum rs6000_vector): Delete VECTOR_SPE.
8546 * config/rs6000/rs6000.c (rs6000_debug_vector_unit): Delete VECTOR_SPE.
8547
8548 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
8549
8550 * config/rs6000/rs6000.h (FIXED_SCRATCH): Delete.
8551
8552 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
8553
8554 * config/rs6000/t-rtems: Don't handle SPE.
8555
8556 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
8557
8558 * config/rs6000/t-linux: Don't handle SPE.
8559
8560 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
8561
8562 * config/rs6000/eabispe.h: Delete file.
8563
8564 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
8565
8566 * config/rs6000/t-spe: Delete file.
8567
8568 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
8569
8570 * config/rs6000/rs6000.c (SPE_CONST_OFFSET_OK): Delete.
8571 (rs6000_legitimate_offset_address_p): Return false for anything in
8572 V2SImode or V2SFmode.
8573
8574 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
8575
8576 * config/rs6000/rs6000-modes.def: Remove all 8-byte vector modes
8577 except V2SF and V2SI. Rearrange the vector modes, and add comments.
8578 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Remove V8QImode
8579 and V4HImode.
8580 (reg_offset_addressing_ok_p): Remove V4HImode and V1DImode.
8581 (rs6000_legitimate_offset_address_p): Ditto.
8582 (rs6000_emit_move): Ditto.
8583 (rs6000_init_builtins): Remove V4HI_type_node.
8584
8585 2017-06-13 Martin Liska <mliska@suse.cz>
8586
8587 PR sanitize/78204
8588 * asan.c (asan_sanitize_stack_p): Use sanitize_flags_p.
8589 (gate_asan): Likewise.
8590 * asan.h (asan_no_sanitize_address_p): Remove the function.
8591 (sanitize_flags_p): New function.
8592 * builtins.def: Fix coding style.
8593 * common.opt: Use renamed enum value.
8594 * convert.c (convert_to_integer_1): Use sanitize_flags_p.
8595 * doc/extend.texi: Document no_sanitize attribute.
8596 * flag-types.h (enum sanitize_code): Rename SANITIZE_NONDEFAULT
8597 to SANITIZE_UNDEFINED_NONDEFAULT.
8598 * gcc.c (sanitize_spec_function): Use the renamed enum value.
8599 * gimple-fold.c (optimize_atomic_compare_exchange_p):
8600 Use sanitize_flags_p.
8601 * gimplify.c (gimplify_function_tree): Likewise.
8602 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Likewise.
8603 * opts.c (parse_no_sanitize_attribute): New function.
8604 (common_handle_option): Use renamed enum value.
8605 * opts.h (parse_no_sanitize_attribute): Declare.
8606 * tree.c (sanitize_flags_p): New function.
8607 * tree.h: Declared here.
8608 * tsan.c: Use sanitize_flags_p.
8609 * ubsan.c (ubsan_expand_null_ifn): Likewise.
8610 (instrument_mem_ref): Likewise.
8611 (instrument_bool_enum_load): Likewise.
8612 (do_ubsan_in_current_function): Remove the function.
8613 (pass_ubsan::execute): Use sanitize_flags_p.
8614 * ubsan.h: Remove do_ubsan_in_current_function
8615 * tree-cfg.c (print_no_sanitize_attr_value): New function.
8616 (dump_function_to_file): Use it here.
8617
8618 2017-06-13 Martin Jambor <mjambor@suse.cz>
8619
8620 PR tree-optimization/80803
8621 PR tree-optimization/81063
8622 * tree-sra.c (subtree_mark_written_and_enqueue): Move up in the file.
8623 (propagate_subaccesses_across_link): Enqueue subtree whenever
8624 necessary instead of relying on the caller.
8625
8626 2017-06-13 Martin Jambor <mjambor@suse.cz>
8627
8628 * tree-sra.c (add_access_to_work_queue): Only enqueue accesses
8629 that have a first_link.
8630 (sort_and_splice_var_accesses): Do not check first_link before
8631 enquing.
8632 (subtree_mark_written_and_enqueue): Likewise.
8633 (propagate_all_subaccesses): Likewise and do not stop at first
8634 parent with a first_link.
8635
8636 2017-06-13 Martin Jambor <mjambor@suse.cz>
8637
8638 * tree-sra.c (dump_access_tree_1): Fix accidental dumping to stderr
8639 instead of f.
8640
8641 2017-06-13 Yury Gribov <tetra2005@gmail.com>
8642
8643 * match.pd: New pattern.
8644
8645 2017-06-13 Yury Gribov <tetra2005@gmail.com>
8646
8647 * tree-vrp.c (is_masked_range_test): New function.
8648 (register_edge_assert_for): Determine ranges for
8649 some bit tests.
8650
8651 2017-06-13 Yury Gribov <tetra2005@gmail.com>
8652
8653 PR tree-optimization/67328
8654 * fold-const.c (maskable_range_p): New function.
8655 (build_range_check): Generate bittests if possible.
8656
8657 2017-06-13 Martin Liska <mliska@suse.cz>
8658
8659 * gimple-pretty-print.c (dump_probability): Add new argument.
8660 (dump_edge_probability): Dump both probability and count.
8661 (dump_gimple_label): Likewise.
8662 (dump_gimple_bb_header): Likewise.
8663
8664 2017-06-13 Georg-Johann Lay <avr@gjlay.de>
8665
8666 PR target/81072
8667 * config/avr/avr-devices.c: Fix indentation.
8668 * config/avr/gen-avr-mmcu-specs.c: Dito.
8669
8670 2017-06-13 Richard Biener <rguenther@suse.de>
8671
8672 * tree-vect-loop.c (vect_model_reduction_cost): Do not fail,
8673 instead get vector type from stmt_info.
8674 (vectorizable_reduction): Adjust. Remove dead code.
8675
8676 2017-06-13 Richard Biener <rguenther@suse.de>
8677
8678 PR middle-end/81065
8679 * fold-const.c (extract_muldiv_1): Remove bogus distribution
8680 case of C * (x * C2 + C3).
8681 (fold_addr_of_array_ref_difference): Properly fold index difference.
8682
8683 2017-06-12 David S. Miller <davem@davemloft.net>
8684
8685 PR target/80968
8686 * config/sparc/sparc.md (return expander): Emit frame blockage if
8687 function uses alloca.
8688
8689 2017-06-12 Richard Sandiford <richard.sandiford@linaro.org>
8690
8691 * combine.c (make_field_assignment): Check len rather than the mode
8692 precision when calling force_to_mode.
8693
8694 2017-06-12 Georg-Johann Lay <avr@gjlay.de>
8695
8696 Support multilibs and devices that see flash in RAM address range.
8697
8698 PR target/81072
8699 * config/avr/avr-arch.h (avr_arch_id) <ARCH_AVRXMEGA3>: New enum.
8700 (avr_mcu_t) <flash_pm_offset>: New field.
8701 (avr_device_specific_features) <AVR_ISA_RCALL>: New enum.
8702 * config/avr/avr.h (AVR_SHORT_CALLS): New define.
8703 (AVR_HAVE_JMP_CALL): Don't set if AVR_SHORT_CALLS.
8704 (AVR_TINY_PM_OFFSET): Remove macro.
8705 * config/avr/avr.opt (-mshort-calls): New option.
8706 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
8707 [*self_spec]: Add / remove -mshort-calls depending on AVR_ISA_RCALL.
8708 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
8709 <__AVR_SHORT_CALLS__>: Built-in define if AVR_SHORT_CALLS.
8710 <__AVR_HAVE_JMP_CALL__>: Use AVR_HAVE_JMP_CALL as condition
8711 instead of avr_arch->have_jmp_call.
8712 <__AVR_PM_BASE_ADDRESS__>: Built-in define if avr_arch->flash_pm_offset.
8713 [AVR_TINY] <__AVR_TINY_PM_BASE_ADDRESS__>: Use
8714 avr_arch->flash_pm_offset to define.
8715 * config/avr/avr-devices.c (avr_arch_types): Add initializers for
8716 new field flash_pm_offset. Add entry for avrxmega3.
8717 (avr_texinfo): Add entry for avrxmega3.
8718 * config/avr/avr-mcus.def: Add entries for: avrxmega3,
8719 attiny212, attiny214,
8720 attiny412, attiny414, attiny416, attiny417,
8721 attiny814, attiny816, attiny817,
8722 attiny1614, attiny1616, attiny1617,
8723 attiny3214, attiny3216, attiny3217.
8724 * config/avr/avr.c (avr_assemble_integer)[AVR_TINY]: Use
8725 avr_arch->flash_pm_offset instead of AVR_TINY_PM_OFFSET.
8726 (avr_print_operand_address) [AVR_TINY]: Same.
8727 (avr_asm_init_sections) <readonly_data_section>: Only patch
8728 callback if avr_arch->flash_pm_offset = 0.
8729 (avr_asm_named_section) <avr_need_copy_data_p>: Skip setting it
8730 for rodata if avr_arch->flash_pm_offset != 0.
8731 (avr_encode_section_info) [AVR_TINY]: Adjust comment.
8732 * config/avr/genmultilib.awk (dir_rcall, opt_rcall): New vars.
8733 (opts) [AVR_ISA_RCALL]: Append opt_rcall.
8734 (m_options): Append opt_rcall.
8735 (m_dirnames): Append dir_rcall.
8736 * config/avr/t-multilib: Regenerate.
8737
8738 * configure.ac [target=avr]: Check whether avrxmega3 default
8739 linker description file works as needed.
8740 * configure: Regenerate.
8741 * doc/avr-mmcu.texi: Regenerate.
8742 * doc/invoke.texi (AVR Options) <-mshort-calls>: Document it.
8743 <__AVR_ARCH__>: Document avrxmega3 and 103.
8744 <__AVR_HAVE_JMP_CALL__>: Adjust documentation.
8745 <__AVR_SHORT_CALLS__>: Document it.
8746 <__AVR_PM_BASE_ADDRESS__>: Document it.
8747 * doc/extend.texi (AVR Options) <-mshort-calls>: Document it.
8748 (AVR Variable Attributes) <progmem>: Document this is
8749 not needed for avrxmega3.
8750 (AVR Named Address Spaces) <__flash>: Dito.
8751
8752 2017-06-12 Jan Hubicka <hubicka@ucw.cz>
8753
8754 * cgraph.c (cgraph_node::dump): Complain about profile insanities.
8755
8756 2017-06-12 Doug Rupp <rupp@adacore.com>
8757
8758 * config.gcc (*-*-vxworks*): Set use_gcc_stdint to "provide".
8759 Append vxworks-stdint.h to the tm_file list.
8760 * config/vxworks-stdint.h: New file.
8761
8762 2017-06-12 Martin Liska <mliska@suse.cz>
8763
8764 PR tree-optimization/81041
8765 * tree-profile.c (gimple_gen_ic_func_profiler):
8766 Create an extra BB in profile-generate
8767 (gimple_gen_time_profiler): Likewise.
8768
8769 2017-06-12 Jakub Jelinek <jakub@redhat.com>
8770
8771 PR tree-optimization/81003
8772 * tree-ssa-reassoc.c (force_into_ssa_name): New function.
8773 (update_range_test): Use it instead of force_gimple_operand_gsi.
8774
8775 2017-06-12 Richard Biener <rguenther@suse.de>
8776
8777 PR tree-optimization/81053
8778 * tree-vect-loop.c (vect_is_simple_reduction): Handle PHI
8779 with backedge value not defined in loop. Simplify def stmt
8780 compute.
8781
8782 2017-06-11 Tom de Vries <tom@codesourcery.com>
8783
8784 PR target/79939
8785 * config/nvptx/nvptx.c (nvptx_cannot_force_const_mem): New function.
8786 Return true.
8787 (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
8788 nvptx_cannot_force_const_mem.
8789
8790 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
8791
8792 * opts.c (finish_options): Move test for flag_split_stack after
8793 it has been initialized.
8794
8795 2017-06-11 Jason Merrill <jason@redhat.com>
8796
8797 * tree.h (id_equal): New.
8798 * dwarf2out.c, hsa-gen.c, ipa-devirt.c, omp-expand.c,
8799 omp-simd-clone.c, read-rtl-function.c, tree-chkp.c, tree.c: Use it
8800 instead of strcmp of IDENTIFIER_POINTER.
8801
8802 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
8803
8804 * ipa-inline-transform.c: Include function.h, cfg.h and basic-block.h
8805 (mark_all_inlined_calls_cdtor): Fix formating.
8806 (inline_transform): Rescale profile before inlining.
8807
8808 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
8809
8810 * cgraph.h (cgraph_edge::clone): Update prototype.
8811 * cgraphclones.c (cgraph_edge::clone): Update profile scaling.
8812 (cgraph_node::create_clone): Update.
8813 (cgraph_node::create_version_clone): Update.
8814 * tree-inline.c (copy_bb): Update.
8815 (expand_call_inline): Update.
8816
8817 2017-06-10 Segher Boessenkool <segher@kernel.crashing.org>
8818
8819 * config/rs6000/rs6000.c (emit_vrsave_prologue): New function,
8820 factored out from ...
8821 (rs6000_emit_prologue): ... here.
8822
8823 2017-06-10 Segher Boessenkool <segher@kernel.crashing.org>
8824
8825 * config/rs6000/rs6000.c (emit_split_stack_prologue): New function,
8826 factored out from ...
8827 (rs6000_emit_prologue): ... here.
8828
8829 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
8830
8831 * predict.c (drop_profile): Also drop individual bb/edge and cgraph
8832 edge counts.
8833 (handle_missing_profiles): Fix computation of tp_first_run.
8834 (counts_to_freqs): Do not touch freqs when count is 0.
8835
8836 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
8837
8838 * cgraphbuild.c (cgraph_edge::rebuild_references): Do not touch
8839 profile.
8840
8841 2017-06-10 Tom de Vries <tom@codesourcery.com>
8842
8843 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
8844 attributes): Document signal effective target.
8845
8846 2017-06-10 Tom de Vries <tom@codesourcery.com>
8847
8848 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
8849 Document effective target stack_size.
8850
8851 2017-06-09 David Malcolm <dmalcolm@redhat.com>
8852
8853 * diagnostic.c (diagnostic_report_diagnostic): Only add fixits
8854 to the edit_context if they can be auto-applied.
8855
8856 2017-06-9 Ian Lance Taylor <iant@golang.org>
8857
8858 * opts.c (finish_options): If -fsplit-stack, disable implicit
8859 -forder-blocks-and-partition.
8860 * doc/invoke.texi (Optimize Options): Document that when using
8861 -fsplit-stack -forder-blocks-and-partition is not implicitly
8862 enabled.
8863
8864 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
8865
8866 * builtin-attrs.def (ATTR_NORETURN_NOTHROW_LEAF_COLD_LIST,
8867 ATTR_CONST_NORETURN_NOTHROW_LEAF_COLD_LIST,
8868 ATTR_TMPURE_NORETURN_NOTHROW_LEAF_COLD_LIST): New.
8869 * builtins.def (abort, trap, unreachable): Declare cold.
8870 * calls.c (flags_from_decl_or_type): Lookup ECF_COLD.
8871 * tree-core.h (ECF_COLD): New.
8872 * tree.c (set_call_expr_flags): Handle ECF_COLD.
8873 (build_common_builtin_nodes): Mark unreachable and abort as cold.
8874
8875 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
8876
8877 * predict.c (unlikely_executed_stmt_p): Cleanup.
8878
8879 2017-06-09 Richard Biener <rguenther@suse.de>
8880
8881 * tree-ssa-loop-im.c (execute_sm): Do not force multi-threaded
8882 model if the ref is always written to.
8883
8884 2017-06-09 Tamar Christina <tamar.christina@arm.com>
8885
8886 * config/aarch64/aarch64.md (lrint<GPF:mode><GPI:mode>2): New.
8887
8888 2017-06-09 Tamar Christina <tamar.christina@arm.com>
8889
8890 * config/arm/arm.c (arm_rtx_costs_internal): Make sdiv more expensive
8891 than udiv.
8892
8893 2017-06-09 Tom de Vries <tom@codesourcery.com>
8894
8895 PR target/80855
8896 * config/nvptx/nvptx.md (define_expand "mov<QHSDISDFM>"): Error out with
8897 "target cannot support label values" when encountering LABEL_REF.
8898
8899 2017-06-09 Martin Liska <mliska@suse.cz>
8900
8901 * tree-profile.c (gimple_gen_ic_profiler): Update comment.
8902 (gimple_gen_ic_func_profiler): Emit direct comparison
8903 of __gcov_indirect_call_callee with NULL.
8904 (gimple_gen_time_profiler): Change probability from
8905 PROB_VERY_UNLIKELY to PROB_UNLIKELY.
8906
8907 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
8908
8909 * profile.c (edge_gcov_counts): Turn to pointer.
8910 (compute_branch_probabilities, compute_branch_probabilities): Update.
8911 (branch_prob): Do not clear edge_gcov_count.
8912 * profile.h (edge_gcov_counts): Turn to pointer.
8913 (edge_gcov_count): Update.
8914
8915 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
8916
8917 * gimple.h (gimple_check_failed): Mark cold.
8918
8919 2017-06-09 Richard Biener <rguenther@suse.de>
8920
8921 PR tree-optimization/66623
8922 * tree-vect-loop.c (vect_is_simple_reduction): Cleanup,
8923 refactor check_reduction into two parts, properly computing
8924 whether we have to check reduction validity for outer loop
8925 vectorization.
8926
8927 2017-06-09 Richard Biener <rguenther@suse.de>
8928
8929 PR tree-optimization/79483
8930 * graphite-scop-detection.c (order): New global.
8931 (get_order): Compute bb to order mapping that satisfies code
8932 generation constraints.
8933 (cmp_pbbs): New helper.
8934 (build_scops): Start domwalk at entry block, sort generated
8935 pbbs.
8936
8937 2017-06-09 Richard Biener <rguenther@suse.de>
8938
8939 PR middle-end/81007
8940 * ipa-polymorphic-call.c
8941 (ipa_polymorphic_call_context::restrict_to_inner_class):
8942 Skip FIELD_DECLs with error_mark_node type.
8943 * passes.def (all_lowering_passes): Run pass_build_cgraph_edges
8944 last again.
8945
8946 2017-06-09 Martin Liska <mliska@suse.cz>
8947
8948 * predict.c (struct branch_predictor): New struct.
8949 (test_prediction_value_range): New test.
8950 (predict_c_tests): New function.
8951 * selftest-run-tests.c (selftest::run_tests): Run the function.
8952 * selftest.h: Declare new tests.
8953
8954 2017-06-09 Segher Boessenkool <segher@kernel.crashing.org>
8955
8956 PR target/80966
8957 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Assert that
8958 gen_add3_insn did not fail.
8959 * config/rs6000/rs6000.md (add<mode>3): If asked to add a constant to
8960 r0, construct that number in a temporary reg and add that reg to r0.
8961 If asked to put the result in r0 as well, fail.
8962
8963 2017-06-08 Will Schmidt <will_schmidt@vnet.ibm.com>
8964
8965 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
8966 for early expansion of vec_eqv.
8967
8968 2017-06-08 Jakub Jelinek <jakub@redhat.com>
8969
8970 PR middle-end/81005
8971 * ubsan.c (instrument_null): Avoid pointless code temporary.
8972 (pass_ubsan::execute): Instrument aggregate arguments of calls.
8973
8974 2017-06-08 Uros Bizjak <ubizjak@gmail.com>
8975
8976 PR target/81015
8977 Revert:
8978 2016-12-14 Uros Bizjak <ubizjak@gmail.com>
8979
8980 PR target/59874
8981 * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
8982 (*clzhi2): Ditto.
8983
8984 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
8985
8986 * predict.c (unlikely_executed_edge_p): Move ahead.
8987 (probably_never_executed_edge_p): Use it.
8988
8989 2017-06-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
8990
8991 PR middle-end/79988
8992 * tree-chkp.c (chkp_gimple_call_builtin_p): Remove
8993 gimple_call_builtin_p call.
8994
8995 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
8996
8997 * system.h (fancy_abort): Annotate by ATTRIBUTE_COLD.
8998 * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
8999 rtl_check_failed_type2, rtl_check_failed_code1,
9000 rtl_check_failed_code2, rtl_check_failed_code_mode,
9001 rtl_check_failed_block_symbol, cwi_check_failed_bounds,
9002 rtvec_check_failed_bounds, rtl_check_failed_flag,
9003 _fatal_insn_not_found, _fatal_insn): Likewise.
9004 * tree.h (tree_contains_struct_check_failed,
9005 tree_check_failed, tree_not_check_failed,
9006 tree_class_check_failed, tree_range_check_failed,
9007 tree_not_class_check_failed, tree_int_cst_elt_check_failed,
9008 tree_vec_elt_check_failed, phi_node_elt_check_failed,
9009 tree_operand_check_failed, omp_clause_check_failed,
9010 omp_clause_operand_check_failed, omp_clause_range_check_failed):
9011 Likewise.
9012
9013 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
9014
9015 * cgraph.c (cgraph_edge::maybe_hot_p): Do not check
9016 flag_branch_probabilities.
9017 * ipa-inline.c (edge_badness): Likewise.
9018 * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
9019 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
9020 * predict.c (maybe_hot_frequency_p): Likewise.
9021 (probably_never_executed): Likewise.
9022 * sched-ebb.c (schedule_ebbs): Likewise.
9023 * sched-rgn.c (find_single_block_region): Likewise.
9024 * tracer.c (tail_duplicate): Likewise.
9025
9026 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
9027
9028 * opts.c (finish_options): x_flag_reorder_blocks_and_partition no
9029 longer requires x_flag_profile_use.
9030
9031 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
9032
9033 * cfgrtl.c (cfg_layout_initialize): Check crtl->has_bb_partition
9034 instead of flag_reorder_blocks_and_partition.
9035 * dbxout.c (dbxout_function_end): Likewise.
9036 * dwarf2out.c (gen_subprogram_die): Likewise.
9037 * haifa-sched.c (sched_create_recovery_edges): Likewise.
9038 * hw-doloop.c (reorg_loops): Likewise.
9039 * varasm.c (assemble_start_function,
9040 assemble_end_function): Likewise.
9041 (decide_function_section): Do not check for
9042 flag_reorder_blocks_and_partition.
9043
9044 2017-06-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
9045
9046 * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
9047 New function.
9048 (chkp_get_hard_register_fake_addr_expr): Ditto.
9049 (chkp_build_addr_expr): Add check for hard reg case.
9050 (chkp_parse_array_and_component_ref): Ditto.
9051 (chkp_find_bounds_1): Ditto.
9052 (chkp_process_stmt): Don't generate bounds store for
9053 hard reg case.
9054
9055 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
9056
9057 * predict.c (maybe_hot_bb_p): Do not check profile status.
9058 (maybe_hot_edge_p): Likewise.
9059 (probably_never_executed): Check for zero counts even if profile
9060 is not read.
9061 (unlikely_executed_edge_p): New function.
9062 (unlikely_executed_stmt_p): New function.
9063 (unlikely_executed_bb_p): New function.
9064 (set_even_probabilities): Use unlikely predicates.
9065 (combine_predictions_for_bb): Likewise.
9066 (predict_paths_for_bb): Likewise.
9067 (predict_paths_leading_to_edge): Likewise.
9068 (determine_unlikely_bbs): New function.
9069 (estimate_bb_frequencies): Use it.
9070 (compute_function_frequency): Use zero counts even if profile is
9071 not read.
9072 * profile-count.h: Fix typo.
9073
9074 2017-08-08 Julia Koval <julia.koval@intel.com>
9075
9076 * config/i386/avx512bwintrin.h (_mm512_mask_cvtepi16_storeu_epi8,
9077 _mm512_mask_cvtsepi16_storeu_epi8,
9078 _mm512_mask_cvtusepi16_storeu_epi8): New intrinsics.
9079 * config/i386/avx512vlbwintrin.h (_mm256_mask_cvtepi16_storeu_epi8,
9080 _mm_mask_cvtsepi16_storeu_epi8, _mm256_mask_cvtsepi16_storeu_epi8,
9081 _mm_mask_cvtusepi16_storeu_epi8, _mm256_mask_cvtusepi16_storeu_epi8,
9082 _mm_mask_cvtepi16_storeu_epi8): New intrinsics.
9083 * config/i386/i386-builtin-types.def (PV8Q, V8QI): New pointer type.
9084 (VOID_FTYPE_PV32QI_V32HI_USI, VOID_FTYPE_PV8QI_V8HI_UQI,
9085 VOID_FTYPE_PV16QI_V16HI_UHI): New function types.
9086 * config/i386/i386-builtin.def (__builtin_ia32_pmovwb128mem_mask,
9087 __builtin_ia32_pmovwb256mem_mask, __builtin_ia32_pmovswb128mem_mask,
9088 __builtin_ia32_pmovswb256mem_mask, __builtin_ia32_pmovuswb128mem_mask,
9089 __builtin_ia32_pmovuswb256mem_mask,
9090 __builtin_ia32_pmovuswb512mem_mask, __builtin_ia32_pmovswb512mem_mask)
9091 __builtin_ia32_pmovwb512mem_mask): New builtins.
9092
9093 2017-08-08 Julia Koval <julia.koval@intel.com>
9094
9095 PR target/73350,80862
9096 * config/i386/subst.md (round): Fix round pattern.
9097 * config/i386/i386.c (ix86_erase_embedded_rounding):
9098 Fix erasing rounding for the fixed pattern.
9099
9100 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
9101
9102 * cfgbuild.c (find_many_sub_basic_blocks): Fix thinko.
9103
9104 2017-06-08 Martin Liska <mliska@suse.cz>
9105
9106 PR gcov-profile/80911
9107 * gcov.c (block_info::block_info): New constructor.
9108
9109 2017-06-07 Carl Love <cel@us.ibm.com>
9110
9111 * config/rs6000/rs6000-c: The return type of the following
9112 built-in functions was implemented as int not long long. Fix sign
9113 of return value for the unsigned version of vec_mulo and vec_mule.
9114 vector unsigned long long vec_bperm (vector unsigned long long,
9115 vector unsigned char)
9116 vector signed long long vec_mule (vector signed int,
9117 vector signed int)
9118 vector unsigned long long vec_mule (vector unsigned int,
9119 vector unsigned int)
9120 vector signed long long vec_mulo (vector signed int,
9121 vector signed int)
9122 vector unsigned long long vec_mulo (vector unsigned int,
9123 vector unsigned int)
9124 * doc/extend.texi: Fix the documentation for the built-in
9125 functions.
9126
9127 2017-06-07 Carl Love <cel@us.ibm.com>
9128
9129 PR target/80982
9130 * config/rs6000/altivec.md (double<mode>2): Fix the implementation of
9131 for BE.
9132
9133 2017-06-07 Carl Love <cel@us.ibm.com>
9134
9135 * config/rs6000/altivec.md: Fix argument swizzle in vec_doublel
9136 support, Generate doublehv for signed int/float for BE case only.
9137
9138 2017-06-07 Alexander Monakov <amonakov@ispras.ru>
9139
9140 * doc/invoke.texi (mcx16): Rewrite.
9141
9142 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
9143
9144 * config/rs6000/predicates.md (rs6000_nonimmediate_operand): Delete.
9145 * config/rs6000/rs6000.md (*movsi_internal1, movsi_from_sf,
9146 *mov<mode>_softfloat, and an anonymous splitter): Use
9147 nonimmediate_operand instead of rs6000_nonimmediate_operand.
9148
9149 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
9150
9151 * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE_ACC and
9152 SPEFSCR registers.
9153 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
9154 (enum rs6000_reg_type): Delete SPE_ACC_TYPE and SPEFSCR_REG_TYPE.
9155 (rs6000_debug_reg_global): Adjust.
9156 (rs6000_init_hard_regno_mode_ok): Adjust.
9157 (rs6000_dbx_register_number): Adjust.
9158 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change to 115.
9159 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
9160 Remove SPE_ACC and SPEFSCR.
9161 (REG_ALLOC_ORDER): Ditto.
9162 (FRAME_POINTER_REGNUM): Change to 111.
9163 (enum reg_class): Remove the SPE_ACC and SPEFSCR registers.
9164 (REG_CLASS_NAMES): Ditto.
9165 (REG_CLASS_CONTENTS): Delete the SPE_ACC and SPEFSCR registers.
9166 (REGISTER_NAMES): Ditto.
9167 (ADDITIONAL_REG_NAMES): Ditto.
9168 (rs6000_reg_names): Ditto.
9169 * config/rs6000/rs6000.md: Renumber some register number
9170 define_constants.
9171
9172 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
9173
9174 * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE high
9175 registers.
9176 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
9177 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change from 149
9178 to 117.
9179 (DWARF_REG_TO_UNWIND_COLUMN): Do not define.
9180 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
9181 Delete the SPE high registers.
9182 (REG_ALLOC_ORDER): Ditto.
9183 (enum reg_class): Remove SPE_HIGH_REGS.
9184 (REG_CLASS_NAMES): Ditto.
9185 (REG_CLASS_CONTENTS): Delete the SPE high registers.
9186 (REGISTER_NAMES): Ditto.
9187 (rs6000_reg_names): Ditto.
9188 * doc/tm.texi.in: Remove SPE as example.
9189 * doc/tm.texi: Regenerate.
9190
9191 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
9192
9193 * config/rs6000/8540.md (ppc8540_brinc): Delete.
9194 * config/rs6000/e500mc.md (e500mc_brinc): Delete.
9195 * config/rs6000/e500mc64.md (e500mc64_brinc): Delete.
9196 * config/rs6000/rs6000.md (type): Remove "brinc".
9197
9198 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
9199
9200 * config.gcc (powerpc*-*-*): Don't add spe.h to extra_headers.
9201 (powerpc*-linux*spe*): Use ${cpu_type} instead of rs6000.
9202 * config/rs6000/linuxspe.h: Delete file.
9203 * config/rs6000/rs6000.md: Don't include spe.md.
9204 * config/rs6000/spe.h: Delete file.
9205 * config/rs6000/spe.md: Delete file.
9206 * config/rs6000/t-rs6000: Remove spe.md.
9207
9208 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
9209
9210 * config/rs6000/predicates.md (reg_or_mem_operand): Reformat.
9211 (reg_or_none500mem_operand): Delete.
9212 * config/rs6000/rs6000.md (extendsfdf2): Use reg_or_mem_operand
9213 instead of reg_or_none500mem_operand.
9214
9215 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
9216
9217 * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
9218 handling of SPE flags.
9219 * config/rs6000/rs6000.opt (-mspe, -mspe=no, -mspe=yes): Delete.
9220
9221 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
9222
9223 * config/rs6000/rs6000-common.c (rs6000_handle_option): Remove
9224 SPE ABI handling.
9225 * config/rs6000/paired.md (paired_negv2sf2): Rename to negv2sf2.
9226 (paired_absv2sf2, paired_addv2sf3, paired_subv2sf3, paired_mulv2sf3,
9227 paired_divv2sf3): Similar.
9228 * config/rs6000/predicates.md: Replace TARGET_SPE, TARGET_SPE_ABI,
9229 SPE_VECTOR_MODE and SPE_HIGH_REGNO_P by 0; simplify.
9230 * config/rs6000/rs6000-builtin.def: Delete RS6000_BUILTIN_E and
9231 RS6000_BUILTIN_S.
9232 Delete BU_SPE_1, BU_SPE_2, BU_SPE_3, BU_SPE_E, BU_SPE_P, and BU_SPE_X.
9233 Rename the paired_* instruction patterns.
9234 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Do not
9235 define __SPE__.
9236 * config/rs6000/rs6000-protos.h (invalid_e500_subreg): Delete.
9237 * config/rs6000/rs6000.c: Delete RS6000_BUILTIN_E and RS6000_BUILTIN_S.
9238 (struct rs6000_stack): Delete fields spe_gp_save_offset, spe_gp_size,
9239 spe_padding_size, and spe_64bit_regs_used. Replace TARGET_SPE and
9240 TARGET_SPE_ABI with 0, simplify. Replace SPE_VECTOR_MODE with
9241 PAIRED_VECTOR_MODE.
9242 (struct machine_function): Delete field spe_insn_chain_scanned_p.
9243 (spe_func_has_64bit_regs_p): Delete.
9244 (spe_expand_predicate_builtin): Delete.
9245 (spe_expand_evsel_builtin): Delete.
9246 (TARGET_DWARF_REGISTER_SPAN): Do not define.
9247 (TARGET_MEMBER_TYPE_FORCES_BLK): Do not define.
9248 (invalid_e500_subreg): Delete.
9249 (rs6000_legitimize_address): Always force_reg op2 as well, for
9250 paired single memory accesses.
9251 (rs6000_member_type_forces_blk): Delete.
9252 (rs6000_spe_function_arg): Delete.
9253 (rs6000_expand_unop_builtin): Delete SPE handling.
9254 (rs6000_expand_binop_builtin): Ditto.
9255 (spe_expand_stv_builtin): Delete.
9256 (bdesc_2arg_spe): Delete.
9257 (spe_expand_builtin): Delete.
9258 (spe_expand_predicate_builtin): Delete.
9259 (spe_expand_evsel_builtin): Delete.
9260 (rs6000_invalid_builtin): Remove RS6000_BTM_SPE handling.
9261 (spe_init_builtins): Delete.
9262 (spe_func_has_64bit_regs_p): Delete.
9263 (savres_routine_name): Delete "info" parameter. Adjust callers.
9264 (rs6000_emit_stack_reset): Ditto.
9265 (rs6000_dwarf_register_span): Delete.
9266 * config/rs6000/rs6000.h (TARGET_SPE_ABI, TARGET_SPE,
9267 UNITS_PER_SPE_WORD, SPE_HIGH_REGNO_P, SPE_SIMD_REGNO_P,
9268 SPE_VECTOR_MODE, RS6000_BTM_SPE, RS6000_BUILTIN_E, RS6000_BUILTIN_S):
9269 Delete.
9270 * config/rs6000/rs6000.md (FIRST_SPE_HIGH_REGNO, LAST_SPE_HIGH_REGNO):
9271 Delete.
9272 * config/rs6000/rs6000.opt (-mabi=spe, -mabi=no-spe): Delete.
9273 * config/rs6000/spe.md: Delete every pattern that uses TARGET_SPE.
9274 * config/rs6000/vector.md (absv2sf2, negv2sf2, addv2sf3, subv2sf3,
9275 mulv2sf3, divv2sf3): Delete expanders.
9276
9277 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
9278
9279 config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Delete.
9280
9281 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
9282
9283 * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit): Delete.
9284 * config/rs6000/rs6000.c: Ditto.
9285
9286 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
9287
9288 * config/rs6000/predicated.md (rs6000_cbranch_operator): Delete.
9289 * config/rs6000/rs6000.md: Replace rs6000_cbranch_operator by
9290 comparison_operator.
9291
9292 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
9293
9294 * config/rs6000/rs6000.c: Remove everything related to -mfloat-gprs.
9295 * config/rs6000/rs6000.opt: Ditto.
9296 * config/rs6000/t-rtems: Ditto.
9297
9298 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
9299
9300 * config/rs6000/predicates.md: Replace TARGET_E500_DOUBLE and
9301 TARGET_E500_SINGLE by 0, simplify.
9302 * config/rs6000/rs6000.c: Ditto.
9303 (rs6000_option_override_internal): Delete CHECK_E500_OPTIONS.
9304 (spe_build_register_parallel): Delete.
9305 * config/rs6000/rs6000.h: Delete TARGET_E500_SINGLE,
9306 TARGET_E500_DOUBLE, and CHECK_E500_OPTIONS.
9307 * config/rs6000/rs6000.md: Replace TARGET_E500_DOUBLE,
9308 TARGET_E500_SINGLE, and <E500_CONVERT> by 0, simplify.
9309 (E500_CONVERT): Delete.
9310 * config/rs6000/spe.md: Remove many patterns and all define_constants.
9311
9312 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
9313
9314 * config/rs6000/darwin.md: Replace TARGET_FPRS by 1 and simplify.
9315 * config/rs6000/dfp.md: Ditto.
9316 (negdd2, *negdd2_fpr): Merge.
9317 (absdd2, *absdd2_fpr): Merge.
9318 (negtd2, *negtd2_fpr): Merge.
9319 (abstd2, *abstd2_fpr): Merge.
9320 * config/rs6000/e500.h: Delete file.
9321 * config/rs6000/predicates.md (rs6000_cbranch_operator): Replace
9322 TARGET_FPRS by 1 and simplify.
9323 * config/rs6000/rs6000-c.c: Ditto.
9324 * config/rs6000/rs6000.c: Ditto. Also replace TARGET_SF_SPE and
9325 TARGET_DF_SPE by 0.
9326 * config/rs6000/rs6000.h: Ditto. Delete TARGET_SF_SPE and
9327 TARGET_DF_SPE.
9328 * config/rs6000/rs6000.md: Ditto.
9329 (floatdidf2, *floatdidf2_fpr): Merge.
9330 (move_from_CR_gt_bit): Delete.
9331 * config/rs6000/spe.md: Replace TARGET_FPRS by 1 and simplify.
9332 (E500_CR_IOR_COMPARE): Delete.
9333 (All patterns that require !TARGET_FPRS): Delete.
9334 * config/rs6000/vsx.md: Replace TARGET_FPRS by 1 and simplify.
9335
9336 2017-06-07 Bin Cheng <bin.cheng@arm.com>
9337
9338 * passes.def (pass_iv_canon): Move before pass_loop_distribution.
9339
9340 2017-06-07 Bin Cheng <bin.cheng@arm.com>
9341
9342 * graphds.c (add_edge): Intitialize edge's attached data.
9343 (foll_in_subgraph, dfs_fst_edge, dfs_next_edge): New function
9344 pointer parameter. Call pointed function on each edge during
9345 graph traversing. Skip traversing the edge when the function
9346 returns true.
9347 (graphds_dfs, graphds_scc): Ditto.
9348 (for_each_edge): New parameter. Pass the new parameter to callback
9349 function.
9350 * graphds.h (skip_edge_callback): New function pointer type.
9351 (graphds_dfs, graphds_scc): New function pointer parameter.
9352 (graphds_edge_callback, for_each_edge): New parameter.
9353
9354 2017-06-07 Bin Cheng <bin.cheng@arm.com>
9355
9356 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Factor
9357 out code checking if runtime alias check is possible to below ...
9358 Call the new function.
9359 * tree-data-ref.c (runtime_alias_check_p): ... to new function.
9360 * tree-data-ref.h (runtime_alias_check_p): New decalaration.
9361
9362 2017-06-07 Marek Polacek <polacek@redhat.com>
9363
9364 PR sanitizer/80932
9365 * fold-const.c (extract_muldiv_1) <case MINUS_EXPR>: Add
9366 TYPE_OVERFLOW_WRAPS check.
9367
9368 2017-06-07 Bin Cheng <bin.cheng@arm.com>
9369
9370 * tree-vect-loop-manip.c (vect_do_peeling): Don't skip vector loop
9371 if versioning is required.
9372 * tree-vect-loop.c (vect_analyze_loop_2): Merge niter check for loop
9373 peeling with the check for versioning.
9374
9375 2017-06-07 Bin Cheng <bin.cheng@arm.com>
9376
9377 * tree-vectorizer.h (vect_build_loop_niters): New parameter.
9378 * tree-vect-loop-manip.c (vect_build_loop_niters): New parameter.
9379 Set true to new parameter if new ssa variable is defined.
9380 (vect_gen_vector_loop_niters): Refactor. Set range information
9381 for the new vector loop bound variable.
9382 (vect_do_peeling): Ditto.
9383
9384 2017-06-07 Bin Cheng <bin.cheng@arm.com>
9385
9386 * tree-affine.c (ssa.h): Include header file.
9387 (tree_to_aff_combination): Handle (T1)(X - CST) when inner type
9388 has wrapping overflow behavior.
9389
9390 2017-06-07 Bin Cheng <bin.cheng@arm.com>
9391
9392 * tree-affine.c (tree_to_aff_combination): Handle (T1)(X + X).
9393
9394 2017-06-07 Bin Cheng <bin.cheng@arm.com>
9395
9396 (aff_combination_expand): Move (T1)(X *+- CST) simplification to ...
9397 (tree_to_aff_combination): ... here.
9398
9399 2017-06-07 Bin Cheng <bin.cheng@arm.com>
9400
9401 * tree-ssa-loop-ivopts.c (ivopts_estimate_reg_pressure): New
9402 reg_pressure model function.
9403 (ivopts_global_cost_for_size): Delete.
9404 (determine_set_costs, iv_ca_recount_cost): Call new model function
9405 ivopts_estimate_reg_pressure.
9406
9407 2017-06-07 Tamar Christina <tamar.christina@arm.com>
9408
9409 * config/aarch64/aarch64.c (aarch64_rtx_costs): Make sdiv more
9410 expensive than udiv. Remove floating point cases from mod.
9411
9412 2017-06-07 Tamar Christina <tamar.christina@arm.com>
9413
9414 * config/arm/aarch-cost-tables.h (cortexa53_extra_cost):
9415 Increase idiv cost.
9416
9417 2017-06-07 Tamar Christina <tamar.christina@arm.com>
9418
9419 * config/aarch64/aarch64.md
9420 (copysignsf3): Fix mask generation.
9421
9422 2017-06-07 Jakub Jelinek <jakub@redhat.com>
9423
9424 * dumpfile.h (enum tree_dump_index): Rename TDI_generic to
9425 TDI_gimple.
9426 (class dump_manager): Add register_dumps method.
9427 * dumpfile.c: Include langhooks.h.
9428 (dump_files): Use 0 instead of 3/4/5 for TDI_{original,gimple,nested}.
9429 (FIRST_AUTO_NUMBERED_DUMP): Decrease to 1.
9430 (FIRST_ME_AUTO_NUMBERED_DUMP): Define.
9431 (dump_manager::dump_register): Start with 512 entries instead of 32.
9432 (dump_manager::register_dumps): New method.
9433 * toplev.c (general_init): Instead of invoking register_dumps
9434 langhook, invoke register_dumps method on the dump manager.
9435 * gimplify.c (gimplify_function_tree): Use TDI_gimple instead of
9436 TDI_generic.
9437
9438 2017-06-07 Richard Sandiford <richard.sandiford@linaro.org>
9439
9440 * doc/md.texi: Clarify the restrictions on a define_insn condition.
9441 Say that # requires an associated define_split to exist, and that
9442 the define_split must be suitable for use after register allocation.
9443
9444 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
9445
9446 * cfgbuild.c (find_bb_boundaries): Initialize profile of split blocks.
9447 (compute_outgoing_frequencies): Also initialize zero counts.
9448 (find_many_sub_basic_blocks): Do not produce uninitialized profile
9449 around loops; preserve more of profile when nothing changes.
9450
9451 2017-06-06 Jim Wilson <jim.wilson@linaro.org>
9452
9453 * config/aarch64/aarch64-cost-tables.h (qdf24xx_extra_costs): Move to
9454 here.
9455 * config/arm/aarch-cost-tables.h (qdf24xx_extra_costs): From here.
9456 * config/arm/arm-cpu-cdata.h: Regenerate.
9457 * config/arm/arm-cpu-data.h, config/arm/arm-cpu.h: Likewise.
9458 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Likewise.
9459 * config/arm/arm-cpus.in: Delete falkor and qdf24xx entries.
9460 * config/arm/arm.c (arm_qdf24xx_tune): Delete.
9461 * config/arm/bpabi.h (BE8_LINK_SPEC): Delete falkor and qdf24xx
9462 support.
9463 * config/arm/t-aprofile (MULTILIB_MATCHES): Delete falkor and qdf24xx
9464 support.
9465 * config/arm/t-rmprofile: Likewise.
9466 * doc/invoke.texi (ARM Options): Drop falkor and qdf24xx support.
9467
9468 2017-06-06 David S. Miller <davem@davemloft.net>
9469
9470 PR target/80968
9471 * config/sparc/sparc.c (sparc_expand_prologue): Emit frame
9472 blockage if function uses alloca.
9473
9474 2017-06-06 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
9475
9476 * tree-ssa-loop-prefetch.c (struct mem_ref_group, struct mem_ref):
9477 New "uid" fields to hold pretty-print IDs of group and ref.
9478 Memory references are now identified as <group_id>:<ref_id>
9479 instead of using [random] addresses.
9480 (dump_mem_details): Simplify, no functional change.
9481 (dump_mem_ref): Simplify and make output more concise.
9482 Replace couple of fprintf's throughout code with calls to dump_mem_ref.
9483 (find_or_create_group): Initialize group uid.
9484 (record_ref): Initialize ref uid. Improve debug output.
9485 (prune_group_by_reuse, should_issue_prefetch_p,)
9486 (should_issue_prefetch_p, schedule_prefetches, issue_prefetch_ref,)
9487 (mark_nontemporal_store, determine_loop_nest_reuse):
9488 Improve debug output.
9489
9490 2017-06-06 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
9491
9492 * dbgcnt.def (prefetch): New debug counter.
9493 * tree-ssa-loop-prefetch.c (dbgcnt.h): New include.
9494 (schedule_prefetches): Stop issueing prefetches if debug counter
9495 tripped.
9496
9497 2017-06-06 Tom de Vries <tom@codesourcery.com>
9498
9499 * doc/sourcebuild.texi (Testsuites, C Language Testsuites,
9500 gcc.c-torture/compile): Remove mention of NO_LABEL_VALUES in fixme.
9501
9502 2017-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9503
9504 * config/aarch64/atomics.md (atomic_compare_and_swap<mode> expander):
9505 Use aarch64_reg_or_zero predicate for operand 4.
9506 (aarch64_compare_and_swap<mode> define_insn_and_split):
9507 Use aarch64_reg_or_zero predicate for operand 3. Add 'Z' constraint.
9508 (aarch64_store_exclusive<mode>): Likewise for operand 2.
9509
9510 2017-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
9511
9512 * config/arm/arm.c (arm_compute_save_reg_mask): Rename into ...
9513 (arm_compute_save_core_reg_mask): This.
9514 (thumb1_compute_save_reg_mask): Rename into ...
9515 (thumb1_compute_save_core_reg_mask): This.
9516 (arm_compute_save_reg0_reg12_mask): Adapt comment.
9517 (arm_compute_frame_layout): Likewise.
9518
9519 2017-06-06 Richard Biener <rguenther@suse.de>
9520
9521 PR tree-optimization/80974
9522 * tree-ssa-sccvn.c (set_ssa_val_to): Do not change but only
9523 keep or clear leaders SSA info.
9524
9525 2017-06-06 Tom de Vries <tom@codesourcery.com>
9526
9527 * config/nvptx/nvptx.c (split_mode_p): New function.
9528 (nvptx_declare_function_name, nvptx_print_operand): Use split_mode_p.
9529
9530 2017-06-06 Tom de Vries <tom@codesourcery.com>
9531
9532 * config/nvptx/nvptx.c (nvptx_print_operand): Use maybe_split_mode.
9533
9534 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
9535
9536 PR bootstrap/80978
9537 * tree-cfg.c (execute_fixup_cfg): Fix condition on when to rescale
9538 profile.
9539
9540 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
9541
9542 * shrink-wrap.c (handle_simple_exit): Update profile.
9543 (try_shrink_wrapping): Upate profile.
9544
9545 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
9546
9547 * predict.c (tree_estimate_probability_bb): Add LOCAL_ONLY.
9548 (tree_guess_outgoing_edge_probabilities): New.
9549 * predict.h (tree_guess_outgoing_edge_probabilities): Declare.
9550 * tree-cfg.c (gimple_find_sub_bbs): Propagate profile.
9551
9552 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
9553
9554 * ipa-split.c (split_function): Initialize return bb profile.
9555
9556 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
9557
9558 * profile.c (compute_branch_probabilities): Also initialize
9559 EXIT_BLOCK profile.
9560
9561 2017-06-06 Richard Biener <rguenther@suse.de>
9562
9563 PR tree-optimization/80928
9564 * tree-vect-loop.c (vect_update_vf_for_slp): Amend dumps.
9565 (vect_analyze_loop_operations): Properly guard analysis for
9566 pure SLP case.
9567 (vect_transform_loop): Likewise.
9568 (vect_analyze_loop_2): Also reset SLP type on PHIs.
9569 (vect_model_induction_cost): Do not cost for pure SLP.
9570 (vectorizable_induction): Pass in SLP node, implement SLP vectorization
9571 of induction in inner loop vectorization.
9572 * tree-vect-slp.c (vect_create_new_slp_node): Handle PHIs.
9573 (vect_get_and_check_slp_defs): Handle vect_induction_def.
9574 (vect_build_slp_tree): Likewise. Handle PHIs as terminating the
9575 recursion.
9576 (vect_analyze_slp_cost_1): Cost induction.
9577 (vect_detect_hybrid_slp_stmts): Handle PHIs.
9578 (vect_get_slp_vect_defs): Likewise.
9579 * tree-vect-stmts.c (vect_analyze_stmt): Handle induction.
9580 (vect_transform_stmt): Handle SLP reductions.
9581 * tree-vectorizer.h (vectorizable_induction): Adjust.
9582
9583 2017-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
9584
9585 * config/rs6000/rs6000.c (make_resolver_func): Update
9586 init_lowered_empty_function call.
9587
9588 2017-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
9589
9590 * doc/invoke.texi: Document the -fprofile-abs-path option.
9591 * common.opt (fprofile-abs-path): New option.
9592 * gcov-io.h (gcov_write_filename): Declare.
9593 * gcov-io.c (gcov_write_filename): New function.
9594 * coverage.c (coverage_begin_function): Use gcov_write_filename.
9595 * profile.c (output_location): Likewise.
9596
9597 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
9598
9599 * shring-wrap.c: Revert accidental commit.
9600
9601 2017-06-05 Volker Reichelt <v.reichelt@netcologne.de>
9602
9603 * doc/invoke.texi (-Wduplicated-branches): Add to warning list.
9604
9605 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
9606
9607 * cfgexpand.c (expand_gimple_tailcall): Initialize profile of
9608 new edge.
9609 * ipa-inline.c (want_inline_self_recursive_call_p): Watch for missing
9610 profile in callgraph edge.
9611 * profile-count.h (apply_probability): If THIS is 0, then result is 0
9612 (apply_scale): Likewise.
9613 * tree-inline.c (copy_bb, copy_edges_for_bb, copy_cfg_body):
9614 Also scale profile when inlining function with zero profile.
9615 (initialize_cfun): Update exit block profile even when it is zero.
9616 * tree-ssa-threadupdate.c (clear_counts_path): Handle correctly case
9617 when profile is read.
9618
9619 2017-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
9620
9621 * config/rs6000/rs6000.c (toplevel): Include attribs.h.
9622 (CLONE_*): New constants to define the processors we can generate
9623 code for with the target_clone attribute.
9624 (rs6000_clone_map): New array to identify which clone processors
9625 the current program is running on.
9626 (TARGET_COMPARE_VERSION_PRIORITY): Define to enable the
9627 target_clone attribute.
9628 (TARGET_GENERATE_VERSION_DISPATCHER_BODY): Likewise.
9629 (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): Likewise.
9630 (TARGET_OPTION_FUNCTION_VERSIONS): Likewise.
9631 (cpu_expand_builtin): Add support for target_clone attribute.
9632 (rs6000_valid_attribute_p): Allow "default" attribute.
9633 (get_decl_name): New debug function to simplify printing the
9634 current function name in debugging statements.
9635 (rs6000_clone_priority): New functions to support the target_clone
9636 attribute, and be able to generate code to switch between ISA 2.05
9637 through ISA 3.0 (power6 through power9).
9638 (rs6000_compare_version_priority): Likewise.
9639 (rs6000_get_function_versions_dispatcher): Likewise.
9640 (make_resolver_func): Likewise.
9641 (add_condition_to_bb): Likewise.
9642 (dispatch_function_versions): Likewise.
9643 (rs6000_generate_version_dispatcher_body): Likewise.
9644 (rs6000_can_inline_p): Call get_decl_name for debugging usage.
9645 (fusion_gpr_load_p): Fix a spacing issue.
9646 * doc/extend.texi (Common Function Attributes): Document that the
9647 PowerPC supports the target_clone attribute.
9648
9649 2017-06-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
9650
9651 * config/arm/arm.h: explain F symbol found in description of ARM
9652 register allocation in its legend.
9653
9654 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
9655
9656 * config/mips/frame-header-opt.c: Include profile-count.h.
9657 * config/riscv/riscv.c: Include profile-count.h
9658
9659 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
9660
9661 * tree-ssa-loop-im.c (execute_sm_if_changed): Add FLAG_BBS parameter;
9662 update profile.
9663 (sm_set_flag_if_changed): Add bbs field.
9664 (execute_sm_if_changed_flag_set): Pass BBS.
9665 (execute_sm): Update.
9666
9667 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9668
9669 * config/aarch64/aarch64-simd.md (aarch64_store_lane0<mode>):
9670 New pattern.
9671
9672 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9673
9674 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): New define_insn.
9675 (peephole2): New peephole2 to emit the above.
9676 * config/aarch64/predicates.md (aarch64_sub_immediate): New predicate.
9677
9678 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9679
9680 * config/aarch64/aarch64.c (define_peephole2 above
9681 *sub_<shift>_<mode>): New peephole.
9682
9683 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
9684
9685 * config/i386/i386.c (make_resolver_func): Update.
9686 * Makefile.in: Add profile-count.h and profile-count.o
9687 * auto-profile.c (afdo_indirect_call): Update to new API.
9688 (afdo_set_bb_count): Update.
9689 (afdo_propagate_edge): Update.
9690 (afdo_propagate_circuit): Update.
9691 (afdo_calculate_branch_prob): Update.
9692 (afdo_annotate_cfg): Update.
9693 * basic-block.h: Include profile-count.h
9694 (struct edge_def): Turn count to profile_count.
9695 (struct basic_block_def): Likewie.
9696 (REG_BR_PROB_BASE): Move to profile-count.h
9697 (RDIV): Move to profile-count.h
9698 * bb-reorder.c (max_entry_count): Turn to profile_count.
9699 (find_traces): Update.
9700 (rotate_loop):Update.
9701 (connect_traces):Update.
9702 (sanitize_hot_paths):Update.
9703 * bt-load.c (migrate_btr_defs): Update.
9704 * cfg.c (RDIV): Remove.
9705 (init_flow): Use alloc_block.
9706 (alloc_block): Uninitialize count.
9707 (unchecked_make_edge): Uninitialize count.
9708 (check_bb_profile): Update.
9709 (dump_edge_info): Update.
9710 (dump_bb_info): Update.
9711 (update_bb_profile_for_threading): Update.
9712 (scale_bbs_frequencies_int): Update.
9713 (scale_bbs_frequencies_gcov_type): Update.
9714 (scale_bbs_frequencies_profile_count): New.
9715 * cfg.h (update_bb_profile_for_threading): Update.
9716 (scale_bbs_frequencies_profile_count): Declare.
9717 * cfgbuild.c (compute_outgoing_frequencies): Update.
9718 (find_many_sub_basic_blocks): Update.
9719 * cfgcleanup.c (try_forward_edges): Update.
9720 (try_crossjump_to_edge): Update.
9721 * cfgexpand.c (expand_gimple_tailcall): Update.
9722 (construct_exit_block): Update.
9723 * cfghooks.c (verify_flow_info): Update.
9724 (dump_bb_for_graph): Update.
9725 (split_edge): Update.
9726 (make_forwarder_block): Update.
9727 (duplicate_block): Update.
9728 (account_profile_record): Update.
9729 * cfgloop.c (find_subloop_latch_edge_by_profile): Update.
9730 (get_estimated_loop_iterations): Update.
9731 * cfgloopanal.c (expected_loop_iterations_unbounded): Update.
9732 (single_likely_exit): Update.
9733 * cfgloopmanip.c (scale_loop_profile): Update.
9734 (loopify): Update.
9735 (set_zero_probability): Update.
9736 (lv_adjust_loop_entry_edge): Update.
9737 * cfgrtl.c (force_nonfallthru_and_redirect): Update.
9738 (purge_dead_edges): Update.
9739 (rtl_account_profile_record): Update.
9740 * cgraph.c (cgraph_node::create): Uninitialize count.
9741 (symbol_table::create_edge): Uninitialize count.
9742 (cgraph_update_edges_for_call_stmt_node): Update.
9743 (cgraph_edge::dump_edge_flags): Update.
9744 (cgraph_node::dump): Update.
9745 (cgraph_edge::maybe_hot_p): Update.
9746 * cgraph.h: Include profile-count.h
9747 (create_clone), create_edge, create_indirect_edge): Update.
9748 (cgraph_node): Turn count to profile_count.
9749 (cgraph_edge0: Likewise.
9750 (make_speculative, clone): Update.
9751 (create_edge): Update.
9752 (init_lowered_empty_function): Update.
9753 * cgraphclones.c (cgraph_edge::clone): Update.
9754 (duplicate_thunk_for_node): Update.
9755 (cgraph_node::create_clone): Update.
9756 * cgraphunit.c (cgraph_node::analyze): Update.
9757 (cgraph_node::expand_thunk): Update.
9758 * final.c (dump_basic_block_info): Update.
9759 * gimple-streamer-in.c (input_bb): Update.
9760 * gimple-streamer-out.c (output_bb): Update.
9761 * graphite.c (print_global_statistics): Update.
9762 (print_graphite_scop_statistics): Update.
9763 * hsa-brig.c: Include basic-block.h.
9764 * hsa-dump.c: Include basic-block.h.
9765 * hsa-gen.c (T sum_slice): Update.
9766 (convert_switch_statements):Update.
9767 * hsa-regalloc.c: Include basic-block.h.
9768 * ipa-chkp.c (chkp_produce_thunks): Update.
9769 * ipa-cp.c (struct caller_statistics): Update.
9770 (init_caller_stats): Update.
9771 (gather_caller_stats): Update.
9772 (ipcp_cloning_candidate_p): Update.
9773 (good_cloning_opportunity_p): Update.
9774 (get_info_about_necessary_edges): Update.
9775 (dump_profile_updates): Update.
9776 (update_profiling_info): Update.
9777 (update_specialized_profile): Update.
9778 (perhaps_add_new_callers): Update.
9779 (decide_about_value): Update.
9780 (ipa_cp_c_finalize): Update.
9781 * ipa-devirt.c (struct odr_type_warn_count): Update.
9782 (struct decl_warn_count): Update.
9783 (struct final_warning_record): Update.
9784 (possible_polymorphic_call_targets): Update.
9785 (ipa_devirt): Update.
9786 * ipa-fnsummary.c (redirect_to_unreachable): Update.
9787 * ipa-icf.c (sem_function::merge): Update.
9788 * ipa-inline-analysis.c (do_estimate_edge_time): Update.
9789 * ipa-inline.c (compute_uninlined_call_time): Update.
9790 (compute_inlined_call_time): Update.
9791 (want_inline_small_function_p): Update.
9792 (want_inline_self_recursive_call_p): Update.
9793 (edge_badness): Update.
9794 (lookup_recursive_calls): Update.
9795 (recursive_inlining): Update.
9796 (inline_small_functions): Update.
9797 (dump_overall_stats): Update.
9798 (dump_inline_stats): Update.
9799 * ipa-profile.c (ipa_profile_generate_summary): Update.
9800 (ipa_propagate_frequency): Update.
9801 (ipa_profile): Update.
9802 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
9803 * ipa-utils.c (ipa_merge_profiles): Update.
9804 * loop-doloop.c (doloop_modify): Update.
9805 * loop-unroll.c (report_unroll): Update.
9806 (unroll_loop_runtime_iterations): Update.
9807 * lto-cgraph.c (lto_output_edge): Update.
9808 (lto_output_node): Update.
9809 (input_node): Update.
9810 (input_edge): Update.
9811 (merge_profile_summaries): Update.
9812 * lto-streamer-in.c (input_cfg): Update.
9813 * lto-streamer-out.c (output_cfg): Update.
9814 * mcf.c (create_fixup_graph): Update.
9815 (adjust_cfg_counts): Update.
9816 (sum_edge_counts): Update.
9817 * modulo-sched.c (sms_schedule): Update.
9818 * postreload-gcse.c (eliminate_partially_redundant_load): Update.
9819 * predict.c (maybe_hot_count_p): Update.
9820 (probably_never_executed): Update.
9821 (dump_prediction): Update.
9822 (combine_predictions_for_bb): Update.
9823 (propagate_freq): Update.
9824 (handle_missing_profiles): Update.
9825 (counts_to_freqs): Update.
9826 (rebuild_frequencies): Update.
9827 (force_edge_cold): Update.
9828 * predict.h: Include profile-count.h
9829 (maybe_hot_count_p, counts_to_freqs): UPdate.
9830 * print-rtl-function.c: Do not include cfg.h
9831 * print-rtl.c: Include basic-block.h
9832 * profile-count.c: New file.
9833 * profile-count.h: New file.
9834 * profile.c (is_edge_inconsistent): Update.
9835 (correct_negative_edge_counts): Update.
9836 (is_inconsistent): Update.
9837 (set_bb_counts): Update.
9838 (read_profile_edge_counts): Update.
9839 (compute_frequency_overlap): Update.
9840 (compute_branch_probabilities): Update; Initialize and deinitialize
9841 gcov_count tables.
9842 (branch_prob): Update.
9843 * profile.h (bb_gcov_counts, edge_gcov_counts): New.
9844 (edge_gcov_count): New.
9845 (bb_gcov_count): New.
9846 * shrink-wrap.c (try_shrink_wrapping): Update.
9847 * tracer.c (better_p): Update.
9848 * trans-mem.c (expand_transaction): Update.
9849 (ipa_tm_insert_irr_call): Update.
9850 (ipa_tm_insert_gettmclone_call): Update.
9851 * tree-call-cdce.c: Update.
9852 * tree-cfg.c (gimple_duplicate_sese_region): Update.
9853 (gimple_duplicate_sese_tail): Update.
9854 (gimple_account_profile_record): Update.
9855 (execute_fixup_cfg): Update.
9856 * tree-inline.c (copy_bb): Update.
9857 (copy_edges_for_bb): Update.
9858 (initialize_cfun): Update.
9859 (freqs_to_counts): Update.
9860 (copy_cfg_body): Update.
9861 (expand_call_inline): Update.
9862 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
9863 * tree-ssa-loop-ivcanon.c (unloop_loops): Update.
9864 (try_unroll_loop_completely): Update.
9865 (try_peel_loop): Update.
9866 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
9867 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Update.
9868 * tree-ssa-loop-split.c (connect_loops): Update.
9869 * tree-ssa-loop-unswitch.c (hoist_guard): Update.
9870 * tree-ssa-reassoc.c (branch_fixup): Update.
9871 * tree-ssa-tail-merge.c (replace_block_by): Update.
9872 * tree-ssa-threadupdate.c (create_block_for_threading): Update.
9873 (compute_path_counts): Update.
9874 (update_profile): Update.
9875 (recompute_probabilities): Update.
9876 (update_joiner_offpath_counts): Update.
9877 (estimated_freqs_path): Update.
9878 (freqs_to_counts_path): Update.
9879 (clear_counts_path): Update.
9880 (ssa_fix_duplicate_block_edges): Update.
9881 (duplicate_thread_path): Update.
9882 * tree-switch-conversion.c (case_bit_test_cmp): Update.
9883 (struct switch_conv_info): Update.
9884 * tree-tailcall.c (decrease_profile): Update.
9885 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
9886 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
9887 * value-prof.c (check_counter): Update.
9888 (gimple_divmod_fixed_value): Update.
9889 (gimple_mod_pow2): Update.
9890 (gimple_mod_subtract): Update.
9891 (gimple_ic_transform): Update.
9892 (gimple_stringop_fixed_value): Update.
9893 * value-prof.h (gimple_ic): Update.
9894
9895 2017-06-02 Carl Love <cel@us.ibm.com>
9896
9897 * config/rs6000/rs6000-c: Add support for built-in functions
9898 vector double vec_doublee (vector signed int);
9899 vector double vec_doublee (vector unsigned int);
9900 vector double vec_doublee (vector float);
9901 vector double vec_doubleh (vector signed int);
9902 vector double vec_doubleh (vector unsigned int);
9903 vector double vec_doubleh (vector float);
9904 vector double vec_doublel (vector signed int);
9905 vector double vec_doublel (vector unsigned int);
9906 vector double vec_doublel (vector float);
9907 vector double vec_doubleo (vector signed int);
9908 vector double vec_doubleo (vector unsigned int);
9909 vector double vec_doubleo (vector float);.
9910 * config/rs6000/rs6000-builtin.def: Add definitions for DOUBLEE,
9911 DOUBLEO, DOUBLEH, DOUBLEL, UNS_DOUBLEO, UNS_DOUBLEE, UNS_DOUBLEH,
9912 UNS_DOUBLEL.
9913 * config/rs6000/altivec.md: Add code generator for doublee<mode>2,
9914 unsdoubleev4si2, doubleo<mode>2, unsdoubleov4si2, doubleh<mode>2,
9915 unsdoublehv4si2, doublel<mode>2, unsdoublelv4si2, add mode attribute
9916 VS_sxwsp.
9917 * config/rs6000/altivec.h: Add define for vec_doublee, vec_doubleo,
9918 vec_doublel, vec_doubleh.
9919 * doc/extend.texi: Update the built-in documentation file for the
9920 new built-in functions.
9921
9922 2017-06-02 David Malcolm <dmalcolm@redhat.com>
9923
9924 PR jit/80954
9925 * ipa-inline-analysis.c (free_growth_caches): Set
9926 edge_removal_hook_holder to NULL after removing it.
9927
9928 2017-06-02 Sudakshina Das <sudi.das@arm.com>
9929
9930 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
9931 comparision with zero.
9932
9933 2017-06-02 Will Schmidt <will_schmidt@vnet.ibm.com>
9934 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
9935 for early expansion of vec_min and vec_max builtins.
9936 (builtin_function_type): Add min/max unsigned variants to those
9937 identified as having unsigned arguments.
9938
9939 2017-06-02 Olivier Hainque <hainque@adacore.com>
9940
9941 * config/vx-common.h (DWARF_UNWIND_INFO): Switch #define to 1.
9942
9943 2017-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9944
9945 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
9946 Use VALL_F16 iterator rather than VALL.
9947
9948 2017-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9949
9950 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap):
9951 Emit CBNZ inside loop when doing a strong exchange and comparing
9952 against zero. Generate the CC flags after the loop.
9953
9954 2017-06-02 David Edelsohn <dje.gcc@gmail.com>
9955
9956 * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE_STR): New.
9957 (dl_section_ref): New.
9958 (dwarf2out_finish): Copy debug_line_section_label to dl_section_ref.
9959 On AIX, append an expression to subtract the size of the
9960 section length to dl_section_ref.
9961
9962 2017-06-02 Will Schmidt <will_schmidt@vnet.ibm.com>
9963
9964 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
9965 for early expansion of vector absolute builtins.
9966
9967 2017-06-02 Richard Biener <rguenther@suse.de>
9968
9969 * tree-vect-slp.c (vect_detect_hybrid_slp_2): Match up
9970 what we consider a relevant use stmt with vect_detect_hybrid_slp_stmts.
9971
9972 2017-06-02 Richard Biener <rguenther@suse.de>
9973
9974 PR tree-optimization/80948
9975 * tree-tailcall.c (find_tail_calls): Track stmts to move in
9976 stmt order as well.
9977
9978 2017-06-02 Richard Biener <rguenther@suse.de>
9979
9980 * tree-vect-loop.c (vect_analyze_loop_operations): Not relevant
9981 PHIs are ok.
9982 * tree-vect-stmts.c (process_use): Do not mark backedge defs
9983 for inductions as relevant.
9984
9985 2017-06-02 Richard Biener <rguenther@suse.de>
9986
9987 * tree-vect-loop.c (get_initial_def_for_induction): Inline into ...
9988 (vectorizable_induction): ... this. Remove dead code.
9989
9990 2017-06-02 Eric Botcazou <ebotcazou@adacore.com>
9991
9992 * builtins. (expand_builtin_alloca): Remove second parameter and
9993 infer its value from the first parameter instead.
9994 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust call to above.
9995
9996 2017-06-02 Jakub Jelinek <jakub@redhat.com>
9997
9998 PR rtl-optimization/80903
9999 * loop-doloop.c (add_test): Unshare sequence.
10000
10001 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
10002
10003 * doc/invoke.texi: Document the -Wsizeof-pointer-div warning.
10004
10005 2017-06-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10006
10007 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers): Make
10008 static.
10009 (xlogue_layout::get_stack_space_used, xlogue_layout::s_instances,
10010 xlogue_layout::get_instance, logue_layout::xlogue_layout,
10011 sp_valid_at, fp_valid_at, choose_basereg): Formatting.
10012 (xlogue_layout::get_stub_rtx): Make static.
10013 (xlogue_layout::get_stub_name): Avoid const-cast, make static.
10014 (xlogue_layout::compute_stub_managed_regs): Rename to...
10015 (xlogue_layout::count_stub_managed_regs): ...this.
10016 (xlogue_layout::is_stub_managed_reg): New function.
10017 (xlogue_layout::m_stub_names): Rename to...
10018 (xlogue_layout::s_stub_names): ...this, make static.
10019 (xlogue_layout::STUB_INDEX_OFFSET, xlogue_layout::MIN_REGS,
10020 xlogue_layout::MAX_REGS, xlogue_layout::MAX_EXTRA_REGS,
10021 xlogue_layout::VARIANT_COUNT, xlogue_layout::STUB_NAME_MAX_LEN,
10022 xlogue_layout::s_stub_names): Instantiate statics.
10023 (stub_managed_regs): Remove.
10024 (ix86_save_reg): Use xlogue_layout::compute_stub_managed_regs.
10025 (disable_call_ms2sysv_xlogues): Rename to...
10026 (warn_once_call_ms2sysv_xlogues): ...this, and warn only once.
10027 (ix86_initial_elimination_offset, ix86_expand_call): Fix call_ms2sysv
10028 warning logic.
10029 (ix86_static_chain): Make sure that ix86_static_chain_on_stack can't
10030 change after reload_completed.
10031 (ix86_can_use_return_insn_p): Use the ix86_frame data structure
10032 directly.
10033 (ix86_expand_prologue): Likewise.
10034 (ix86_expand_epilogue): Likewise.
10035 (ix86_expand_split_stack_prologue): Likewise.
10036 (ix86_compute_frame_layout): Remove frame parameter ...
10037 (TARGET_COMPUTE_FRAME_LAYOUT): ... and export it as a target hook.
10038 (ix86_finalize_stack_realign_flags): Call ix86_compute_frame_layout
10039 only if necessary.
10040 (ix86_init_machine_status): Don't set use_fast_prologue_epilogue_nregs.
10041 (ix86_frame): Move from here ...
10042 * config/i386/i386.h (ix86_frame): ... to here.
10043 (machine_function): Remove use_fast_prologue_epilogue_nregs, cache the
10044 complete ix86_frame data structure instead. Remove some_ld_name.
10045
10046 2017-06-01 Pierre-Marie de Rodat <derodat@adacore.com>
10047
10048 * dwarf2out.c (dwarf2out_late_global_decl): Add locations for
10049 symbols that hold a DECL_VALUE_EXPR.
10050
10051 2017-06-01 Martin Jambor <mjambor@suse.cz>
10052
10053 PR tree-optimization/80898
10054 * tree-sra.c (process_subtree_disqualification): Removed.
10055 (disqualify_candidate): Do not acll
10056 process_subtree_disqualification.
10057 (subtree_mark_written_and_enqueue): New function.
10058 (propagate_all_subaccesses): Set grp_write of LHS subtree if the
10059 RHS has been disqualified and re-queue LHS if necessary. Apart
10060 from that, ignore disqualified RHS.
10061
10062 2017-06-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10063
10064 * config/s390/s390.c (s390_emit_epilogue): Disable early return
10065 address fetch for z10 or later.
10066
10067 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
10068
10069 * config/arc/arc.md (tst_movb): Add guard when splitting.
10070
10071 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
10072
10073 * config/arc/arc.c (arc_can_eliminate): Test against
10074 arc_frame_pointer_needed.
10075
10076 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
10077
10078 * config/arc/arc.c (arc_expand_prologue): Emit a special barrier
10079 to prevent store reordering.
10080 * config/arc/arc.md (UNSPEC_ARC_STKTIE): Define.
10081 (type): Add block type.
10082 (stack_tie): Define special instruction to be used in
10083 expand_prologue.
10084
10085 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
10086
10087 * config/arc/arc.md (commutative_binary_comparison): Remove 'I'
10088 constraint. It is not valid for the pattern.
10089 (noncommutative_binary_comparison): Likewise.
10090
10091 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
10092
10093 * config/arc/simdext.md (movv2hi_insn): Change predicate to avoid
10094 scaled addresses.
10095
10096 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
10097
10098 * config/arc/arc.c (arc_conditional_register_usage): Allow r30 to
10099 be used by the reg-alloc.
10100
10101 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
10102
10103 * config/arc/arc.md (mulsi3): Avoid use of hard registers before
10104 reg-alloc when having mul64 or mul32x16 instructions.
10105 (mulsidi3): Likewise.
10106 (umulsidi3): Likewise.
10107 (mulsi32x16): New pattern.
10108 (mulsi64): Likewise.
10109 (mulsidi64): Likewise.
10110 (umulsidi64): Likewise.
10111 (MUL32x16_REG): Define.
10112 (mul64_600): Use MUL32x16_REG.
10113 (mac64_600): Likewise.
10114 (umul64_600): Likewise.
10115 (umac64_600): Likewise.
10116
10117 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
10118
10119 * config/arc/arc.md (mulsi3_700): Make it commutative.
10120
10121 2017-06-01 Jose E. Marchesi <jose.marchesi@oracle.com>
10122
10123 * config/sparc/sparc.md (*zero_extendsidi2_insn_sp64): Set insn
10124 type for movstouw.
10125 (*sign_extendsidi2_insn): Likewise for movstosw.
10126
10127 2017-06-01 Pierre-Marie de Rodat <derodat@adacore.com>
10128
10129 * dwarf2out.c (get_discr_value): Call the get_debug_type hook on
10130 the type of the input discriminant value. Convert the
10131 discriminant value of signedness vary.
10132
10133 2017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
10134
10135 * doc/invoke.texi (-Wcatch-value): Document new shortcut.
10136 Add to -Wall section.
10137
10138 2017-06-01 Richard Biener <rguenther@suse.de>
10139
10140 PR middle-end/66313
10141 * fold-const.c (fold_plusminus_mult_expr): If the factored
10142 factor may be zero use a wrapping type for the inner operation.
10143 * tree-tailcall.c (independent_of_stmt_p): Pass in to_move bitmap
10144 and handle moved defs.
10145 (process_assignment): Properly guard the unary op case. Return a
10146 tri-state indicating that moving the stmt before the call may allow
10147 to continue. Pass through to_move.
10148 (find_tail_calls): Handle moving unrelated defs before
10149 the call.
10150
10151 2017-05-31 Segher Boessenkool <segher@kernel.crashing.org>
10152
10153 PR target/80618
10154 * config/rs6000/vector.md (*vector_uneq<mode>): Write the nor in the
10155 splitter result in the canonical way.
10156
10157 2017-05-31 Uros Bizjak <ubizjak@gmail.com>
10158
10159 * config/i386/i386.md (*zero_extendsidi2): Enable alternative (?r, *Yj)
10160 also for 32bit target. Update insn attributes.
10161 (zero-extendsidi2 splitter): Allow all registers for operand 1.
10162
10163 2017-05-31 Sebastian Peryt <sebastian.peryt@intel.com>
10164
10165 * config/i386/avx512fintrin.h (_mm_mask_max_sd)
10166 (_mm_maskz_max_sd, _mm_mask_max_ss, _mm_maskz_max_ss)
10167 (_mm_mask_min_sd, _mm_maskz_min_sd, _mm_mask_min_ss)
10168 (_mm_maskz_min_ss): New intrinsics.
10169
10170 2017-05-31 Martin Liska <mliska@suse.cz>
10171
10172 * tree-vect-loop.c (vect_create_epilog_for_reduction):
10173 Change comment style to one we normally use.
10174 (vectorizable_reduction): Likewise.
10175 (vectorizable_induction): Likewise.
10176 * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
10177 (vectorizable_call): Likewise.
10178 (vectorizable_simd_clone_call): Likewise.
10179 (vectorizable_conversion): Likewise.
10180 (vectorizable_assignment): Likewise.
10181 (vectorizable_shift): Likewise.
10182 (vectorizable_operation): Likewise.
10183 (vectorizable_store): Likewise.
10184 (vectorizable_load): Likewise.
10185 * tree-vectorizer.h: Likewise.
10186
10187 2017-05-31 Alexander Monakov <amonakov@ispras.ru>
10188
10189 * passes.c (emergency_dump_function): New.
10190 * tree-pass.h (emergency_dump_function): Declare.
10191 * plugin.c (plugins_internal_error_function): Remove.
10192 * plugin.h (plugins_internal_error_function): Remove declaration.
10193 * toplev.c (internal_error_function): New static function. Use it...
10194 (general_init): ...here.
10195
10196 2017-05-31 Graham Markall <graham.markall@embecosm.com>
10197
10198 * config/arc/arc.c (arc_print_operand): Handle constant operands.
10199 (arc_rtx_costs): Add costs for new patterns.
10200 * config/arc/arc.md: Additional *add_n and *sub_n patterns.
10201 * config/arc/predicates.md: Add _1_2_3_operand predicate.
10202
10203 2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
10204
10205 * tree-ssa-strlen.c (get_next_strinfo): New function.
10206 (get_stridx_plus_constant): Use it.
10207 (zero_length_string): Likewise.
10208 (adjust_related_strinfos): Likewise.
10209 (adjust_last_stmt): Likewise.
10210
10211 2017-05-31 Richard Biener <rguenther@suse.de>
10212
10213 PR target/80880
10214 * config/i386/i386.c (ix86_expand_builtin): Remove assert
10215 for arg being an SSA name when expanding IX86_BUILTIN_BNDRET.
10216
10217 2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
10218
10219 * tree-vect-data-refs.c (vect_find_same_alignment_drs): Remove
10220 loop_vinfo argument and use of dependence distance vectors.
10221 Check instead whether the two references differ only in their
10222 initial value and assume that they have the same alignment if the
10223 difference is a multiple of the vector alignment.
10224 (vect_analyze_data_refs_alignment): Update call accordingly.
10225
10226 2017-05-31 Martin Liska <mliska@suse.cz>
10227
10228 PR target/79155
10229 * config/i386/cpuid.h: Fix typo in a comment in cpuid.h.
10230
10231 2017-05-31 Bin Cheng <bin.cheng@arm.com>
10232
10233 * tree-vect-loop-manip.c (create_intersect_range_checks_index)
10234 (create_intersect_range_checks): Move from ...
10235 * tree-data-ref.c (create_intersect_range_checks_index)
10236 (create_intersect_range_checks): ... to here.
10237 (create_runtime_alias_checks): New function factored from ...
10238 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): ...
10239 here. Call above function.
10240 * tree-data-ref.h (create_runtime_alias_checks): New function.
10241
10242 2017-05-31 Bin Cheng <bin.cheng@arm.com>
10243
10244 * tree-data-ref.c (prune_runtime_alias_test_list): Relax minimal
10245 segment length for dr_b and compute it in wide_int.
10246
10247 2017-05-31 Richard Biener <rguenther@suse.de>
10248
10249 PR tree-optimization/80906
10250 * graphite-isl-ast-to-gimple.c (copy_loop_close_phi_nodes): Get
10251 and pass through iv_map.
10252 (copy_bb_and_scalar_dependences): Adjust.
10253 (translate_pending_phi_nodes): Likewise.
10254 (copy_loop_close_phi_args): Handle code-generating IVs instead
10255 of ICEing.
10256
10257 2017-05-30 David Malcolm <dmalcolm@redhat.com>
10258
10259 * diagnostic-color.c (color_dict): Add "type-diff".
10260 (parse_gcc_colors): Update comment.
10261 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
10262 -fdiagnostics-show-template-tree and -fno-elide-type.
10263 (GCC_COLORS): Add type-diff to example.
10264 (type-diff=): New.
10265 (-fdiagnostics-show-template-tree): New.
10266 (-fno-elide-type): New.
10267 * pretty-print.c (pp_format): Pass quote and formatters[argno] to
10268 the pp_format_decoder callback. Call any m_format_postprocessor's
10269 "handle" method.
10270 (pretty_printer::pretty_printer): Initialize
10271 m_format_postprocessor.
10272 (pretty_printer::~pretty_printer): Delete any
10273 m_format_postprocessor.
10274 * pretty-print.h (printer_fn): Add bool and const char ** parameters.
10275 (class format_postprocessor): New class.
10276 (struct pretty_printer::format_decoder): Document the new parameters.
10277 (struct pretty_printer::m_format_postprocessor): New field.
10278 * tree-diagnostic.c (default_tree_printer): Update for new
10279 bool and const char ** params.
10280 * tree-diagnostic.h (default_tree_printer): Likewise.
10281
10282 2017-05-30 Segher Boessenkool <segher@kernel.crashing.org>
10283
10284 * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand): Delete.
10285 (lwa_operand): Delete rs6000_gen_cell_microcode test.
10286 * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
10287 rs6000_gen_cell_microcode code.
10288 (rs6000_final_prescan_insn): Delete.
10289 (rs6000_opt_vars): Delete the "gen-cell-microcode" and
10290 "warn-cell-microcode" entries.
10291 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Delete.
10292 * config/rs6000/rs6000.md: Delete rs6000_gen_cell_microcode tests
10293 throughout. Change cc_reg_not_micro_cr0_operand to
10294 cc_reg_not_cr0_operand throughout.
10295 (*extendhi<mode>2_noload): Delete.
10296 * config/rs6000/rs6000.opt (mgen-cell-microcode): Replace by stub.
10297 (mwarn-cell-microcode): Delete.
10298 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
10299 -mgen-cell-microcode and -mwarn-cell-microcode.
10300
10301 2017-05-30 Uros Bizjak <ubizjak@gmail.com>
10302
10303 PR target/80833
10304 * config/i386/constraints.md (Yd): New constraint.
10305 (Ye): Ditto.
10306 * config/i386/i386.md (*movti_internal): Add (?r, Ye)
10307 and (?Yd, r) alternatives. Update insn attributes.
10308 * config/i386/i386.md (*movti_internal): Add (?r, *Ye)
10309 and (?*Yd, r) alternatives. Update insn attributes.
10310 (double-mode inter-unit splitters): Add new GR<->XMM splitters.
10311
10312 2017-05-30 Pierre-Marie de Rodat <derodat@adacore.com>
10313
10314 * gimplify.c (gimplify_modify_expr): Don't create a
10315 DECL_DEBUG_EXPR link if *FROM_P does not belong to the current
10316 function.
10317
10318 2017-05-30 Wilco Dijkstra <wdijkstr@arm.com>
10319
10320 * config/arm/arm-builtins.c (arm_expand_builtin): Remove const.
10321
10322 2017-05-30 Richard Biener <rguenther@suse.de>
10323
10324 * tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type
10325 and reduc_def fields.
10326 (STMT_VINFO_REDUC_TYPE): New define.
10327 (STMT_VINFO_REDUC_DEF): Likewise.
10328 (vect_force_simple_reduction): Adjust prototype.
10329 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Adjust.
10330 (vect_is_simple_reduction): Remove check_reduction argument.
10331 (vect_force_simple_reduction): Adjust and set
10332 STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
10333 (vectorizable_reduction): Do not re-do reduction analysis
10334 but use STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
10335 * tree-parloops.c (gather_scalar_reductions): Adjust.
10336
10337 2017-05-30 Richard Biener <rguenther@suse.de>
10338
10339 PR middle-end/80901
10340 * cfgexpand.c (expand_gimple_cond): Match up loop fixup with
10341 split_edge code.
10342
10343 2017-05-24 Robin Dapp <rdapp@linux.vnet.ibm.com>
10344
10345 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
10346 Introduce unknown_misalignment parameter and remove vf.
10347 (vect_peeling_hash_get_lowest_cost):
10348 Pass unknown_misalignment parameter.
10349 (vect_enhance_data_refs_alignment):
10350 Fix unsupportable data ref treatment.
10351
10352 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
10353
10354 * tree-vect-data-refs.c (vect_get_data_access_cost):
10355 Workaround for SLP handling.
10356 (vect_enhance_data_refs_alignment):
10357 Compute costs for doing no peeling at all, compare to the best
10358 peeling costs so far and avoid peeling if cheaper.
10359
10360 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
10361
10362 * tree-vect-data-refs.c (vect_peeling_hash_choose_best_peeling):
10363 Return peeling info and set costs to zero for unlimited cost
10364 model.
10365 (vect_enhance_data_refs_alignment): Also inspect all datarefs
10366 with unknown misalignment. Compute and costs for unknown
10367 misalignment, compare them to the costs for known misalignment
10368 and choose the cheapest for peeling.
10369
10370 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
10371
10372 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Rename.
10373 (vect_get_peeling_costs_all_drs): Create function.
10374 (vect_peeling_hash_get_lowest_cost):
10375 Use vect_get_peeling_costs_all_drs.
10376 (vect_peeling_supportable): Create function.
10377 (vect_enhance_data_refs_alignment): Use vect_peeling_supportable.
10378
10379 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
10380
10381 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Create
10382 DR_HAS_NEGATIVE_STEP.
10383 (vect_update_misalignment_for_peel): Define DR_MISALIGNMENT.
10384 (vect_enhance_data_refs_alignment): Use.
10385 (vect_duplicate_ssa_name_ptr_info): Use.
10386 * tree-vectorizer.h (dr_misalignment): Use.
10387 (known_alignment_for_access_p): Use.
10388
10389 2017-05-30 Jozef Lawrynowicz <jozef.l@somniumtech.com>
10390
10391 PR target/78838
10392 * config/msp430/msp430.c (gen_prefix): Return NULL when section name is
10393 .lowtext.
10394 (has_section_name): New function.
10395
10396 2017-05-30 Martin Liska <mliska@suse.cz>
10397
10398 PR other/80909
10399 * auto-profile.c (get_function_decl_from_block): Fix
10400 parenthesis.
10401
10402 2017-05-30 Richard Biener <rguenther@suse.de>
10403
10404 PR middle-end/80876
10405 * cfgexpand.c (expand_gimple_cond): Fixup preserving loops again.
10406
10407 2017-05-30 Martin Liska <mliska@suse.cz>
10408
10409 * dumpfile.c: Use newly added macro DUMP_FILE_INFO.
10410 * dumpfile.h (struct dump_file_info): Remove ctors.
10411
10412 2017-05-30 Martin Liska <mliska@suse.cz>
10413
10414 * predict.def: Fix GNU coding style.
10415
10416 2017-05-29 Max Filippov <jcmvbkbc@gmail.com>
10417
10418 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
10419 Mark 'to' argument with ATTRIBUTE_UNUSED.
10420
10421 2017-05-29 Max Filippov <jcmvbkbc@gmail.com>
10422
10423 * config/xtensa/xtensa.c (xtensa_emit_call): Use
10424 HOST_WIDE_INT_PRINT_HEX instead of 0x%lx format string.
10425 (print_operand): Use HOST_WIDE_INT_PRINT_DEC instead of %ld
10426 format string.
10427
10428 2017-05-29 Eric Botcazou <ebotcazou@adacore.com>
10429
10430 * doc/install.texi (Options specification): Restore entry of
10431 --enable-sjlj-exceptions.
10432
10433 2017-05-27 Michael Eager <eager@eagercon.com>
10434
10435 Revert:
10436 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
10437
10438 See https://gcc.gnu.org/ml/gcc/2017-05/msg00221.html.
10439
10440 * config/microblaze/microblaze.h
10441 (FIXED_REGISTERS): Update in macro.
10442 (CALL_USED_REGISTERS): Update in macro.
10443
10444 2017-05-27 François-Xavier Coudett <fxcoudert@gcc.gnu.org>
10445
10446 * doc/install.texi: Add links to macOS binary distributions.
10447
10448 2017-05-27 Jakub Jelinek <jakub@redhat.com>
10449
10450 PR bootstrap/80887
10451 Revert:
10452 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
10453
10454 * match.pd ((A +- CST1) +- CST2): Allow some conversions.
10455
10456 2017-05-26 Martin Liska <mliska@suse.cz>
10457
10458 * dumpfile.h (enum dump_kind): Renumber TDF_* flags to be contiguous.
10459
10460 2017-05-26 Martin Liska <mliska@suse.cz>
10461
10462 * cfg.c (check_bb_profile): Do not use TDF_COMMENT and print
10463 always leading ';; '.
10464 (dump_bb_info): Likewise.
10465 (brief_dump_cfg): Likewise.
10466 * cfgrtl.c (print_rtl_with_bb): Do not use TDF_COMMENT.
10467 * dumpfile.c: Remove usage of TDF_VERBOSE.
10468 * dumpfile.h (enum dump_kind): Likewise.
10469 (dump_gimple_bb_header): Do not use TDF_COMMENT.
10470 * print-tree.c (debug_verbose): Remove.
10471 * tree-cfg.c (gimple_dump_cfg): Do not use TDF_COMMENT.
10472 (dump_function_to_file): Remove dumps guarded with TDF_VERBOSE.
10473 * tree-diagnostic.c (default_tree_printer): Replace
10474 TDF_DIAGNOSTIC with TDF_SLIM.
10475
10476 2017-05-26 Bin Cheng <bin.cheng@arm.com>
10477
10478 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Pass
10479 in parameter loop, rather than loop_vinfo.
10480 (create_intersect_range_checks): Ditto.
10481 (vect_create_cond_for_alias_checks): Update call to above functions.
10482
10483 2017-05-26 Bin Cheng <bin.cheng@arm.com>
10484
10485 PR tree-optimization/80815
10486 * tree-data-ref.c (prune_runtime_alias_test_list): Simplify condition
10487 for merging runtime alias checks. Handle negative DR_STEPs.
10488
10489 2017-05-26 Bin Cheng <bin.cheng@arm.com>
10490
10491 * tree-vect-data-refs.c (Operator==, comp_dr_with_seg_len_pair):
10492 Move from ...
10493 * tree-data-ref.c (Operator==, comp_dr_with_seg_len_pair): To here.
10494 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Factor
10495 out code pruning runtime alias checks.
10496 * tree-data-ref.c (prune_runtime_alias_test_list): New function
10497 factored out from above.
10498 * tree-vectorizer.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
10499 Move from ...
10500 * tree-data-ref.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
10501 ... to here.
10502 (prune_runtime_alias_test_list): New decalaration.
10503
10504 2017-05-26 Bin Cheng <bin.cheng@arm.com>
10505
10506 * tree-vect-data-refs.c (compare_tree): Rename and move ...
10507 * tree-data-ref.c (data_ref_compare_tree): ... to here.
10508 * tree-data-ref.h (data_ref_compare_tree): New decalaration.
10509 * tree-vect-data-refs.c (dr_group_sort_cmp): Update uses.
10510 (operator==, comp_dr_with_seg_len_pair): Ditto.
10511 (vect_prune_runtime_alias_test_list): Ditto.
10512
10513 2017-05-26 Martin Liska <mliska@suse.cz>
10514
10515 PR ipa/80663
10516 * params.def: Bound partial-inlining-entry-probability param.
10517
10518 2017-05-26 Marek Polacek <polacek@redhat.com>
10519
10520 PR sanitizer/80875
10521 * fold-const.c (fold_binary_loc) <case MULT_EXPR>: Check if OP1
10522 can be negated.
10523
10524 2017-05-26 Richard Biener <rguenther@suse.de>
10525
10526 PR tree-optimization/80842
10527 * tree-ssa-ccp.c (set_lattice_value): Always meet with the old
10528 value.
10529
10530 2017-05-26 Richard Biener <rguenther@suse.de>
10531
10532 PR tree-optimization/80844
10533 * tree-vectorizer.c (adjust_simduid_builtins): Propagate results.
10534
10535 2017-05-25 Sebastian Peryt <sebastian.peryt@intel.com>
10536
10537 * doc/md.texi (Machine Constraints): Update x86 family
10538 machine constraints section to match 'config/i386/constraints.md'.
10539
10540 2017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
10541
10542 * doc/invoke.texi (-Wcatch-value=): Document new warning option.
10543
10544 2017-05-25 Nathan Sidwell <nathan@acm.org>
10545
10546 * doc/invoke.texi (--enable-languages): Update documentation.
10547
10548 2017-05-25 Martin Liska <mliska@suse.cz>
10549
10550 * dumpfile.c: Add TDF_FOLDING.
10551 * dumpfile.h (enum dump_kind): Likewise.
10552 * genmatch.c (dt_simplify::gen_1): Use it.
10553
10554 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
10555
10556 * match.pd (view_convert (convert@0 @1)): Handle zero-extension.
10557
10558 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
10559
10560 * match.pd ((A +- CST1) +- CST2): Allow some conversions.
10561 * tree.c (drop_tree_overflow): Handle COMPLEX_CST and VECTOR_CST.
10562
10563 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
10564
10565 * fold-const.c (fold_binary_loc) [(A & C) == D]: Remove transformation.
10566 * match.pd (X == C): Rewrite it here.
10567 (with_possible_nonzero_bits, with_possible_nonzero_bits2,
10568 with_certain_nonzero_bits2): New predicates.
10569 * tree-ssanames.c (get_nonzero_bits): Handle INTEGER_CST.
10570
10571 2017-05-24 Nathan Sidwell <nathan@acm.org>
10572
10573 * lto-streamer-in.c (lto_input_data_block): Adjust T const cast to
10574 avoid warning.
10575
10576 * auto-profile.c (afdo_propagate): Adjust T const cast to avoid
10577 warning.
10578
10579 2017-05-24 Segher Boessenkool <segher@kernel.crashing.org>
10580
10581 * config/powerpcspe: New port. Files are copied from the rs6000
10582 port, with "rs6000" in filenames replaced by "powerpcspe".
10583
10584 2017-05-24 Wilco Dijkstra <wdijkstr@arm.com>
10585
10586 PR rtl-optimization/80754
10587 * lra-remat.c (do_remat): Add overlap checks for dst_regno.
10588
10589 2017-05-24 Sheldon Lobo <smlobo@sheldon.us.oracle.com>
10590
10591 * config/sparc/sparc.md (length): Return the correct value for -mflat
10592 sibcalls to match output_sibcall.
10593
10594 2017-05-24 Segher Boessenkool <segher@kernel.crashing.org>
10595
10596 PR bootstrap/80860
10597 PR bootstrap/80843
10598 * config/rs6000/rs6000.c (struct machine_function): Add new field
10599 n_components.
10600 (rs6000_get_separate_components): Init that field, use it.
10601 (rs6000_components_for_bb): Use the field.
10602
10603 2017-05-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
10604
10605 * config/arm/arm.c (arm_expand_prologue): Fix typo in comment.
10606
10607 2017-05-24 Peter Bergner <bergner@vnet.ibm.com>
10608
10609 PR middle-end/80823
10610 * tree-cfg.c (group_case_labels_stmt): Delete increment of "i";
10611
10612 2017-05-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10613
10614 PR target/80725
10615 * config/s390/s390.c (s390_check_qrst_address): Check incoming
10616 address against address_operand predicate.
10617 * config/s390/s390.md ("*indirect_jump"): Swap alternatives.
10618
10619 2017-05-24 Eric Botcazou <ebotcazou@adacore.com>
10620
10621 * var-tracking.c (track_expr_p): Do not return 0 for tracked record
10622 parameters passed indirectly.
10623
10624 2017-05-23 Uros Bizjak <ubizjak@gmail.com>
10625
10626 * config/i386/i386.md (*movdi_internal): Remove SSE4
10627 alternative 18 (?r, *v). Update insn attributes.
10628 (*movsi_internal): Remove SSE4 alternative 13 (?r, *v).
10629 Update insn attributes.
10630 (*zero_extendsidi2): Remove SSE4 alternative (?r, *x).
10631 Update insn attributes.
10632 * config/i386/sse.md (vec_extract<ssevecmodelower>_0): Remove SSE4
10633 alternative 1 (r, v). Remove isa attribute.
10634 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
10635 Always move value through stack for !TARGET_INTER_UNIT_MOVES_TO_VEC
10636 and !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
10637
10638 2017-05-23 Tom de Vries <tom@codesourcery.com>
10639
10640 * doc/sourcebuild.texi (Directives, Verify compiler message): Document
10641 dg-line directive.
10642
10643 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
10644
10645 * cgraphunit.c (symbol_table::process_new_functions): Update.
10646 * ipa-fnsummary.c (pass_data_inline_parameters): Remove.
10647 (inline_generate_summary): Rename to ...
10648 (ipa_fn_summary_generate): ... this one.
10649 (inline_read_summary): Rename to ...
10650 (ipa_fn_summary_read): ... this one.
10651 (inline_write_summary): Rename to ...
10652 (ipa_fn_summary_write): ... this one.
10653 (inline_free_summary): Rename to ...
10654 (ipa_free_fn_summary): ... this one.
10655 (pass_data_local_fn_summary, pass_local_fn_summary,
10656 make_pass_local_fn_summary, pass_data_ipa_free_fn_summary,
10657 pass_ipa_free_fn_summary, make_pass_ipa_free_fn_summary,
10658 pass_data_ipa_fn_summary, pass_ipa_fn_summary,
10659 make_pass_ipa_fn_summary): New.
10660 * ipa-fnsummary.h (inline_generate_summary, inline_read_summary,
10661 inline_write_summary, inline_free_summary): Remove.
10662 (ipa_free_fn_summary) : New.
10663 * ipa-inline.c (ipa_inline): Update.
10664 (pass_ipa_inline): Do not generate summaries.
10665 * ipa.c (pass_data_ipa_free_fn_summary, pass_ipa_free_fn_summary):
10666 Remove.
10667 * passes.def: Replace pass_inline_parameters by pass_local_fn_summary
10668 and add pass_ipa_fn_summary.
10669 * tree-pass.h (make_pass_ipa_fn_summary, make_pass_local_fn_summary):
10670 New.
10671 (make_pass_inline_parameters): Remove.
10672
10673 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
10674
10675 * omp-low.c (struct omp_context): Remove "default_kind" member.
10676 Adjust all users.
10677
10678 * omp-offload.c (execute_oacc_device_lower): Remove the
10679 parallelism dimensions function attributes for unparallelized
10680 OpenACC kernels constructs.
10681
10682 2017-05-23 Martin Liska <mliska@suse.cz>
10683
10684 * cgraph.c (cgraph_node::get_create): Use symtab_node::dump_{asm_,}name
10685 functions.
10686 (cgraph_edge::make_speculative): Likewise.
10687 (cgraph_edge::resolve_speculation): Likewise.
10688 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
10689 (cgraph_node::dump): Likewise.
10690 * cgraph.h: Likewise.
10691 * cgraphunit.c (analyze_functions): Likewise.
10692 (symbol_table::compile): Likewise.
10693 * ipa-cp.c (print_all_lattices): Likewise.
10694 (determine_versionability): Likewise.
10695 (initialize_node_lattices): Likewise.
10696 (ipcp_verify_propagated_values): Likewise.
10697 (estimate_local_effects): Likewise.
10698 (update_profiling_info): Likewise.
10699 (create_specialized_node): Likewise.
10700 (perhaps_add_new_callers): Likewise.
10701 (decide_about_value): Likewise.
10702 (decide_whether_version_node): Likewise.
10703 (identify_dead_nodes): Likewise.
10704 (ipcp_store_bits_results): Likewise.
10705 * ipa-devirt.c (dump_targets): Likewise.
10706 (ipa_devirt): Likewise.
10707 * ipa-icf.c (sem_item::dump): Likewise.
10708 (sem_function::equals): Likewise.
10709 (sem_variable::equals): Likewise.
10710 (sem_item_optimizer::read_section): Likewise.
10711 (sem_item_optimizer::execute): Likewise.
10712 (congruence_class::dump): Likewise.
10713 * ipa-inline-analysis.c (dump_ipa_call_summary): Likewise.
10714 (dump_inline_summary): Likewise.
10715 (estimate_node_size_and_time): Likewise.
10716 (inline_analyze_function): Likewise.
10717 * ipa-inline-transform.c (inline_call): Likewise.
10718 * ipa-inline.c (report_inline_failed_reason): Likewise.
10719 (want_early_inline_function_p): Likewise.
10720 (edge_badness): Likewise.
10721 (update_edge_key): Likewise.
10722 (inline_small_functions): Likewise.
10723 * ipa-profile.c (ipa_profile): Likewise.
10724 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
10725 (ipa_make_edge_direct_to_target): Likewise.
10726 (remove_described_reference): Likewise.
10727 (ipa_impossible_devirt_target): Likewise.
10728 (propagate_controlled_uses): Likewise.
10729 (ipa_print_node_params): Likewise.
10730 (ipcp_transform_function): Likewise.
10731 * ipa-pure-const.c (pure_const_read_summary): Likewise.
10732 (propagate_pure_const): Likewise.
10733 * ipa-reference.c (generate_summary): Likewise.
10734 (read_write_all_from_decl): Likewise.
10735 (propagate): Likewise.
10736 (ipa_reference_read_optimization_summary): Likewise.
10737 * ipa-utils.c (ipa_merge_profiles): Likewise.
10738 * ipa.c (walk_polymorphic_call_targets): Likewise.
10739 (symbol_table::remove_unreachable_nodes): Likewise.
10740 (ipa_single_use): Likewise.
10741 * passes.c (execute_todo): Likewise.
10742 * predict.c (drop_profile): Likewise.
10743 * symtab.c (symtab_node::get_dump_name): New function.
10744 (symtab_node::dump_name): Likewise.
10745 (symtab_node::dump_asm_name): Likewise.
10746 (symtab_node::dump_references): Likewise.
10747 (symtab_node::dump_referring): Likewise.
10748 (symtab_node::dump_base): Likewise.
10749 (symtab_node::debug_symtab): Likewise.
10750 * tree-sra.c (convert_callers_for_node): Likewise.
10751 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
10752 * value-prof.c (init_node_map): Likewise.
10753
10754 2017-05-23 Martin Liska <mliska@suse.cz>
10755
10756 * cgraph.h: Move symtab_node::dump_table to symbol_table::dump
10757 and symtab_node::debug_symtab to symbol_table::debug.
10758 * cgraphunit.c (analyze_functions): Use the renamed function.
10759 (symbol_table::compile): Likewise.
10760 * ipa-cp.c (ipcp_verify_propagated_values): Likewise.
10761 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
10762 * passes.c (execute_todo): Likewise.
10763 * symtab.c (symbol_table::dump): New function.
10764 * tree-ssa-structalias.c (ipa_pta_execute): Use the renamed function.
10765
10766 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
10767
10768 * ipa-fnsummary.c (estimate_node_size_and_time): Do not sanity check
10769 that nonconst implies exec.
10770
10771 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
10772
10773 * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
10774 inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
10775 (inline_edge_summary_vec): Turn into ...
10776 (ipa_call_summaries): ... this one.
10777 (redirect_to_unreachable, edge_set_predicate,
10778 evaluate_properties_for_edge, inline_summary_alloc,
10779 reset_ipa_call_summary, reset_inline_summary,
10780 inline_summary_t::duplicate): Update.
10781 (inline_edge_duplication_hook): Turn to ...
10782 (ipa_call_summary_t::duplicate): ... this one.
10783 (inline_edge_removal_hook): Turn to ...
10784 (ipa_call_summary_t::remove): ... this one.
10785 (dump_inline_edge_summary): Turn to ...
10786 (dump_ipa_call_summary): ... this one.
10787 (estimate_function_body_sizes): Update.
10788 (inline_update_callee_summaries): Update.
10789 (remap_edge_change_prob): Update.
10790 (remap_edge_summaries): Update.
10791 (inline_merge_summary): Update.
10792 (do_estimate_edge_time): Update.
10793 (inline_generate_summary): Update.
10794 (inline_read_section): Update.
10795 (inline_read_summary): Update.
10796 (inline_free_summary): Update.
10797 * ipa-inline.c (can_inline_edge_p): Update.
10798 (compute_inlined_call_time): Update.
10799 (want_inline_small_function_p): Update.
10800 (edge_badness): Update.
10801 (early_inliner): Update.
10802 * ipa-inline.h (inline_edge_summary): Turn to ...
10803 (ipa_call_summary): ... this one.
10804 (ipa_call_summary_t): New class.
10805 (inline_edge_summary_t, inline_edge_summary_vec): Remove.
10806 (ipa_call_summaries): New.
10807 (inline_edge_summary): Remove.
10808 (estimate_edge_growth): Update.
10809 * ipa-profile.c (ipa_propagate_frequency_1): Update.
10810 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
10811 * ipa-split.c (execute_split_functions): Update.
10812 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
10813
10814 2017-05-23 Tom de Vries <tom@codesourcery.com>
10815
10816 * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
10817 attributes): Document rdrand effective target.
10818
10819 2017-05-23 Tom de Vries <tom@codesourcery.com>
10820
10821 * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
10822 attributes): Sort alphabetically.
10823
10824 2017-05-23 Georg-Johann Lay <avr@gjlay.de>
10825
10826 * config/avr/genmultilib.awk: Use gsub instead of gensub.
10827
10828 2017-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
10829
10830 PR target/80718
10831 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Split
10832 V2DF/V2DI splat into two separate patterns, one that handles
10833 registers, and the other that only handles memory. Drop support
10834 for splatting from a GPR on ISA 2.07 and then splitting the
10835 splat into direct move and splat.
10836 (vsx_splat_<mode>_reg): Likewise.
10837 (vsx_splat_<mode>_mem): Likewise.
10838
10839 2017-05-22 Segher Boessenkool <segher@kernel.crashing.org>
10840
10841 * cfgcleanup.c (bb_is_just_return): Allow CLOBBERs.
10842
10843 2017-05-22 Jakub Jelinek <jakub@redhat.com>
10844
10845 PR middle-end/80809
10846 * omp-low.c (finish_taskreg_remap): New function.
10847 (finish_taskreg_scan): If unit size of ctx->record_type
10848 is non-constant, unshare the size expression and replace
10849 decls in it with possible outer var refs.
10850
10851 PR middle-end/80809
10852 * gimplify.c (omp_add_variable): For GOVD_DEBUG_PRIVATE use
10853 GOVD_SHARED rather than GOVD_PRIVATE with it.
10854 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Expect
10855 GOVD_SHARED rather than GOVD_PRIVATE with GOVD_DEBUG_PRIVATE.
10856
10857 PR middle-end/80853
10858 * omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
10859 as last argument to build_outer_var_ref for pointer bases of array
10860 section reductions.
10861
10862 2017-05-19 Martin Sebor <msebor@redhat.com>
10863
10864 * print-tree.c (print_node): Print DECL_READ_P flag.
10865
10866 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
10867
10868 * Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h
10869 * auto-profile.c: Replace ipa-inline.h by ipa-fnsummary.h
10870 * cgraph.c: Likewise.
10871 * cgraphunit.c: Likewise.
10872 * gengtype.c: Likewise.
10873 * ipa-cp.c: Likewise.
10874 * ipa-devirt.c: Likewise.
10875 * ipa-icf.c: Likewise.
10876 * ipa-predicate.c: Likewise.
10877 * ipa-profile.c: Likewise.
10878 * ipa-prop.c: Likewise.
10879 * ipa-split.c: Likewise.
10880 * ipa.c: Likewise.
10881 * ipa-inline-analysis.c (inline_summaries, ipa_call_summaries,
10882 edge_predicate_pool, dump_inline_hints,
10883 inline_summary::account_size_time, redirect_to_unreachable,
10884 edge_set_predicate, set_hint_predicate,
10885 evaluate_conditions_for_known_args, evaluate_properties_for_edge,
10886 inline_summary_alloc, ipa_call_summary::reset, inline_summary::reset,
10887 inline_summary_t::remove, remap_hint_predicate_after_duplication,
10888 inline_summary_t::duplicate, ipa_call_summary_t::duplicate,
10889 ipa_call_summary_t::remove, initialize_growth_caches,
10890 free_growth_caches, dump_ipa_call_summary, dump_inline_summary,
10891 debug_inline_summary, dump_inline_summaries, initialize_inline_failed,
10892 mark_modified, unmodified_parm_1, unmodified_parm,
10893 unmodified_parm_or_parm_agg_item, eliminated_by_inlining_prob,
10894 set_cond_stmt_execution_predicate, set_switch_stmt_execution_predicate,
10895 compute_bb_predicates, will_be_nonconstant_expr_predicate,
10896 will_be_nonconstant_predicate, record_modified_bb_info,
10897 get_minimal_bb, record_modified, param_change_prob,
10898 phi_result_unknown_predicate, predicate_for_phi_result,
10899 array_index_predicate, clobber_only_eh_bb_p, fp_expression_p,
10900 estimate_function_body_sizes, compute_inline_parameters,
10901 compute_inline_parameters_for_curren, pass_data_inline_parameters,
10902 estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,
10903 inline_update_callee_summaries, remap_edge_change_prob,
10904 remap_edge_summaries, remap_hint_predicate, inline_merge_summary,
10905 inline_update_overall_summary, inline_indirect_intraprocedural_analysis,
10906 inline_analyze_function, inline_summary_t::insert,
10907 inline_generate_summary, read_ipa_call_summary, inline_read_section,
10908 inline_read_summary, write_ipa_call_summary, inline_write_summary,
10909 inline_free_summary): Move to ipa-fnsummary.h
10910 (predicate_t): Remove.
10911 * ipa-fnsummary.c: New file.
10912 * ipa-inline.h: Do not include sreal.h and ipa-predicate.h
10913 (enum inline_hints_vals, inline_hints, agg_position_info,
10914 INLINE_SIZE_SCALE, size_time_entry, inline_summary, inline_summary_t,
10915 inline_summaries, ipa_call_summary, ipa_call_summary_t,
10916 ipa_call_summaries, debug_inline_summary, dump_inline_summaries,
10917 dump_inline_summary, dump_inline_hints, inline_generate_summary,
10918 inline_read_summary, inline_write_summary, inline_free_summary,
10919 inline_analyze_function, initialize_inline_failed,
10920 inline_merge_summary, inline_update_overall_summary,
10921 compute_inline_parameters): Move to ipa-fnsummary.h
10922 * ipa-fnsummary.h: New file.
10923 * ipa-inline-transform.h: Include ipa-inline.h.
10924 * ipa-inline.c: LIkewise.
10925
10926 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
10927
10928 * ipa-inline.c (edge_badness): Use inlined_time instead of
10929 inline_summaries->get.
10930
10931 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
10932
10933 * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
10934
10935 2017-05-22 Nathan Sidwell <nathan@acm.org>
10936
10937 * doc/invoke.texi (fdump-translation-unit): Delete documentation.
10938 (fdump-lang): Document 'raw' option.
10939 * dumpfile.h (TDI_tu): Delete.
10940 * dumpfile.c (dump_files): Remove translation-unit.
10941 (FIRST_AUTO_NUMBERED_DUMP): Decrement.
10942
10943 2017-05-22 Georg-Johann Lay <avr@gjlay.de>
10944
10945 * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
10946 command option from $(AWK) call.
10947 * config/avr/genmultilib.awk: Simplify and rewrite so that it
10948 generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
10949 [FORMAT]: Remove handling of variable.
10950 * config/avr/t-multilib: Regenerate.
10951
10952 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
10953
10954 * ipa-inline-analysis.c (inline_summary::reset): Do not reset
10955 self_time.
10956 (dump_inline_summary): Do not print self_time.
10957 (estimate_function_body_sizes): Do not set self_time.
10958 (compute_inline_parameters): Likewise.
10959 (inline_read_section, inline_write_summary): Do not stream self_time.
10960 * ipa-inline.h (inline_summary): Drop self_time.
10961
10962 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
10963
10964 * ipa-inline-analysis.c (account_size_time): Rename to ...
10965 (inline_summary::account_size_time): ... this one.
10966 (reset_ipa_call_summary): Turn to ...
10967 (ipa_call_summary::reset): ... this one.
10968 (reset_inline_summary): Turn to ...
10969 (inline_summary::reset): ... this one.
10970 (inline_summary_t::remove): Update.
10971 (inline_summary_t::duplicate): Update.
10972 (ipa_call_summary_t::remove): Update.
10973 (dump_inline_summary): Update.
10974 (estimate_function_body_sizes): Update.
10975 (compute_inline_parameters): Update.
10976 (estimate_node_size_and_time): Update.
10977 (inline_merge_summary): Update.
10978 (inline_update_overall_summary): Update.
10979 (inline_read_section): Update.
10980 (inline_write_summary): Update.
10981 * ipa-inline.h (inline_summary): Rename entry to size_time_table;
10982 add account_size_time and reset member functions.
10983 (ipa_call_summary): Add reset function.
10984 * ipa-predicate.h (predicate::operator &): Constify.
10985
10986 2017-05-22 Richard Biener <rguenther@suse.de>
10987
10988 * df-scan.c (df_insn_refs_verify): Speedup when not verifying.
10989
10990 2017-05-19 Jason Merrill <jason@redhat.com>
10991
10992 * tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
10993
10994 2017-05-19 Marek Polacek <polacek@redhat.com>
10995
10996 PR sanitizer/80800
10997 * fold-const.c (extract_muldiv_1) <case TRUNC_DIV_EXPR>: Add
10998 TYPE_OVERFLOW_WRAPS checks.
10999
11000 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
11001
11002 * tree-core.h (enum omp_clause_default_kind): Add
11003 "OMP_CLAUSE_DEFAULT_PRESENT".
11004 * tree-pretty-print.c (dump_omp_clause): Handle it.
11005 * gimplify.c (enum gimplify_omp_var_data): Add
11006 "GOVD_MAP_FORCE_PRESENT".
11007 (gimplify_adjust_omp_clauses_1): Map it to
11008 "GOMP_MAP_FORCE_PRESENT".
11009 (oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
11010
11011 * gimplify.c (oacc_default_clause): Clarify.
11012
11013 2017-05-19 Nathan Sidwell <nathan@acm.org>
11014
11015 LANG_HOOK_REGISTER_DUMPS
11016 * toplev.c (general_init): Call register dump lang hook.
11017 * doc/invoke.texi: Document -fdump-lang option family.
11018 * dumpfile.c (dump_files): Remove class dump here.
11019 (FIRST_AUTO_NUMBERED_DUMP): Adjust.
11020 * dumpfile.h (tree_dump_index): Remove TDI_class.
11021 * langhooks-def.h (lhd_register_dumps): Declare.
11022 (LANG_HOOKS_REGISTER_DUMPS): Define.
11023 (LANG_HOOKS_INITIALIZER): Add it.
11024 * langhooks.c (lhd_register_dumps): Define.
11025 * langhooks.h (struct lang_hooks): Add register_dumps.
11026
11027 2017-05-19 Nathan Sidwell <nathan@acm.org>
11028
11029 * context.h (context::set_passes): New.
11030 * context.c (context::context): Do not create pass manager.
11031 * toplev.c (general_init): Create pass manager here.
11032
11033 2017-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11034
11035 * config/rs6000/rs6000.md (splitter to load of -1 and mask): Don't
11036 use this splitter if two add or or instructions would also work for
11037 the constant we want to generate.
11038
11039 2017-05-19 Richard Biener <rguenther@suse.de>
11040
11041 PR build/80821
11042 * genmatch.c (dt_node::gen_kids_1): Add missing scope around
11043 predicate evaluation.
11044
11045 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
11046
11047 * ipa-inline.h (ipa_call_summary): Turn sizes into signed;
11048 add ctor.
11049 * ipa-inline.c (want_inline_small_function_p): Do not cast to
11050 unsigned.
11051
11052 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
11053
11054 * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
11055 inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
11056 (inline_edge_summary_vec): Turn into ...
11057 (ipa_call_summaries): ... this one.
11058 (redirect_to_unreachable, edge_set_predicate,
11059 evaluate_properties_for_edge, inline_summary_alloc,
11060 reset_ipa_call_summary, reset_inline_summary,
11061 inline_summary_t::duplicate): Update.
11062 (inline_edge_duplication_hook): Turn to ...
11063 (ipa_call_summary_t::duplicate): ... this one.
11064 (inline_edge_removal_hook): Turn to ...
11065 (ipa_call_summary_t::remove): ... this one.
11066 (dump_inline_edge_summary): Turn to ...
11067 (dump_ipa_call_summary): ... this one.
11068 (estimate_function_body_sizes): Update.
11069 (inline_update_callee_summaries): Update.
11070 (remap_edge_change_prob): Update.
11071 (remap_edge_summaries): Update.
11072 (inline_merge_summary): Update.
11073 (do_estimate_edge_time): Update.
11074 (inline_generate_summary): Update.
11075 (inline_read_section): Update.
11076 (inline_read_summary): Update.
11077 (inline_free_summary): Update.
11078 * ipa-inline.c (can_inline_edge_p): Update.
11079 (compute_inlined_call_time): Update.
11080 (want_inline_small_function_p): Update.
11081 (edge_badness): Update.
11082 (early_inliner): Update.
11083 * ipa-inline.h (inline_edge_summary): Turn to ...
11084 (ipa_call_summary): ... this one.
11085 (ipa_call_summary_t): New class.
11086 (inline_edge_summary_t, inline_edge_summary_vec): Remove.
11087 (ipa_call_summaries): New.
11088 (inline_edge_summary): Remove.
11089 (estimate_edge_growth): Update.
11090 * ipa-profile.c (ipa_propagate_frequency_1): Update.
11091 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
11092 * ipa-split.c (execute_split_functions): Update.
11093 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
11094
11095 2017-05-19 Richard Biener <rguenther@suse.de>
11096
11097 PR middle-end/80764
11098 * cfgexpand.c (expand_gimple_cond): Fix loop fixup.
11099
11100 2017-05-18 Segher Boessenkool <segher@kernel.crashing.org>
11101
11102 * config/rs6000/rs6000.c (struct machine_function): Add field
11103 fpr_is_wrapped_separately.
11104 (rs6000_get_separate_components): Use 64 components. Handle the
11105 new FPR components.
11106 (rs6000_components_for_bb): Handle the FPR components.
11107 (rs6000_emit_prologue_components): Handle the FPR components.
11108 (rs6000_emit_epilogue_components): Handle the FPR components.
11109 (rs6000_set_handled_components): Handle the FPR components.
11110 (rs6000_emit_prologue): Don't output prologue code for those FPRs
11111 that are already separately shrink-wrapped.
11112 (rs6000_emit_epilogue): Don't output epilogue code for those FPRs
11113 that are already separately shrink-wrapped.
11114
11115 2017-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
11116
11117 PR target/80510
11118 * config/rs6000/predicates.md (simple_offsettable_mem_operand):
11119 New predicate.
11120
11121 * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
11122 (define_peephole2 for Altivec d-form load): Add peepholes to catch
11123 cases where the register allocator uses a move and an offsettable
11124 memory operation to/from a FPR register on ISA 2.06/2.07.
11125 (define_peephole2 for Altivec d-form store): Likewise.
11126
11127 2017-05-18 Uros Bizjak <ubizjak@gmail.com>
11128
11129 PR target/80799
11130 * config/i386/mmx.md (*mov<mode>_internal): Enable
11131 alternatives 11, 12, 13 and 14 also for 32bit targets.
11132 Remove alternatives 15, 16, 17 and 18.
11133 * config/i386/sse.md (vec_concatv2di): Change
11134 alternative (!x, *y) to (x, ?!*Yn).
11135
11136 2017-05-18 Paolo Carlini <paolo.carlini@oracle.com>
11137
11138 * dumpfile.h (enum dump_kind): Remove stray comma.
11139
11140 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
11141
11142 * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
11143 * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
11144 predicate::num_conditions
11145 (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
11146 (CHANGED): turn into predicate::changed.
11147 (agg_position_info): Move to ipa-predicate.h
11148 (add_condition, predicate::add_clause, predicate::operator &=,
11149 predicate::or_with, predicate::evaluate, predicate::probability,
11150 dump_condition, dump_clause, predicate::dump,
11151 predicate::remap_after_duplication, predicate::remap_after_inlining,
11152 predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
11153 (evaluate_conditions_for_known_args): Update.
11154 (set_cond_stmt_execution_predicate): Update.
11155 * ipa-inline.h: Include ipa-predicate.h
11156 (condition, inline_param_summary, conditions, agg_position_info,
11157 predicate): Move to ipa-predicate.h
11158 * ipa-predicate.c: New file.
11159 * ipa-predicate.h: New file.
11160
11161 2017-05-18 Wilco Dijkstra <wdijkstr@arm.com>
11162
11163 * final.c (leaf_function_p): Check we are not in a sequence.
11164
11165 2017-05-18 Martin Liska <mliska@suse.cz>
11166
11167 * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
11168 * dumpfile.c (dump_register): Use new enum dump_kind.
11169 (get_dump_file_name): Likewise.
11170 (dump_enable_all): Likewise.
11171 (dump_switch_p_1): Likewise.
11172 (enable_rtl_dump_file): Remove usage of TDF_RTL.
11173 * dumpfile.h (enum dump_kind): New enum type.
11174 (struct dump_file_info): Create constructor and
11175 format fields and comments.
11176 * passes.c (pass_manager::register_one_dump_file):
11177 Use num dump_kind.
11178 * statistics.c (statistics_early_init): Likewise.
11179 * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
11180 TDF_TREE with TDF_SLIM.
11181 (gather_memory_references_ref): Likewise.
11182
11183 2017-05-18 Martin Liska <mliska@suse.cz>
11184
11185 * vec.h (struct vnull): Use it.
11186
11187 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
11188
11189 * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
11190 (true_predicate, false_predicate, true_predicate_p,
11191 false_predicate_p): Remove.
11192 (single_cond_predicate, not_inlined_predicate): Turn to member function
11193 in ipa-inline.h
11194 (add_condition): Update.
11195 (add_clause): Turn to...
11196 (predicate::add_clause): ... this one; update; allow passing NULL
11197 as parameter.
11198 (and_predicates): Turn to ...
11199 (predicate::operator &=): ... this one.
11200 (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
11201 (or_predicates): Turn to ...
11202 (predicate::or_with): ... this one.
11203 (evaluate_predicate): Turn to ...
11204 (predicate::evaluate): ... this one.
11205 (predicate_probability): Turn to ...
11206 (predicate::probability): ... this one.
11207 (dump_condition): Update.
11208 (dump_predicate): Turn to ...
11209 (predicate::dump): ... this one.
11210 (account_size_time): Update.
11211 (edge_set_predicate): Update.
11212 (set_hint_predicate): UPdate.
11213 (evaluate_conditions_for_known_args): Update.
11214 (evaluate_properties_for_edge): Update.
11215 (remap_predicate_after_duplication): Turn to...
11216 (predicate::remap_after_duplication): ... this one.
11217 (remap_hint_predicate_after_duplication): Update.
11218 (inline_summary_t::duplicate): UPdate.
11219 (dump_inline_edge_summary): Update.
11220 (dump_inline_summary): Update.
11221 (set_cond_stmt_execution_predicate): Update.
11222 (set_switch_stmt_execution_predicate): Update.
11223 (compute_bb_predicates): Update.
11224 (will_be_nonconstant_expr_predicate): Update.
11225 (will_be_nonconstant_predicate): Update.
11226 (phi_result_unknown_predicate): Update.
11227 (predicate_for_phi_result): Update.
11228 (array_index_predicate): Update.
11229 (estimate_function_body_sizes): Update.
11230 (estimate_node_size_and_time): Update.
11231 (estimate_ipcp_clone_size_and_time): Update.
11232 (remap_predicate): Rename to ...
11233 (predicate::remap_after_inlining): ... this one.
11234 (remap_hint_predicate): Update.
11235 (inline_merge_summary): Update.
11236 (inline_update_overall_summary): Update.
11237 (estimate_size_after_inlining): Update.
11238 (read_predicate): Rename to ...
11239 (predicate::stream_in): ... this one.
11240 (read_inline_edge_summary): Update.
11241 (write_predicate): Rename to ...
11242 (predicate::stream_out): ... this one.
11243 (write_inline_edge_summary): Update.
11244 * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
11245 (clause_t): Turn to uint32_t
11246 (predicate): Turn to class; implement constructor and operators
11247 ==, !=, &
11248 (size_time_entry): Update.
11249 (inline_summary): Update.
11250 (inline_edge_summary): Update.
11251
11252 2017-05-18 Marc Glisse <marc.glisse@inria.fr>
11253
11254 * fold-const.c (fold_binary_loc): Move transformation...
11255 * match.pd (C - X CMP X): ... here.
11256
11257 2017-05-18 Sheldon Lobo <sheldon.lobo@oracle.com>
11258
11259 * config/sparc/sparc.c (sparc_option_override): Set function
11260 alignment for -mcpu=niagara7 to 64 to match the I$ line.
11261 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
11262 latency to 1.
11263 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
11264 latency to 2.
11265 * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
11266
11267 2017-05-18 Marek Polacek <polacek@redhat.com>
11268
11269 PR sanitizer/80797
11270 * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
11271 (pass_ubsan::execute): Call gimple_assign_single_p instead of
11272 gimple_assign_load_p.
11273
11274 2017-05-17 Segher Boessenkool <segher@kernel.crashing.org>
11275
11276 PR middle-end/80692
11277 * real.c (do_compare): Give decimal_do_compare preference over
11278 comparing just the signs.
11279
11280 2017-05-17 Uros Bizjak <ubizjak@gmail.com>
11281
11282 * doc/md.texi (Canonicalization of Instructions): Describe the
11283 canonical form of instructions that inherently set a condition
11284 code register.
11285
11286 2017-05-17 Peter Bergner <bergner@vnet.ibm.com>
11287
11288 PR middle-end/80775
11289 * tree-cfg.c: Move deletion of unreachable case statements to after
11290 the merging of consecutive case labels.
11291
11292 2017-05-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
11293
11294 * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
11295 readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
11296 restoring of callee-saved registers.
11297
11298 2017-05-17 Eric Botcazou <ebotcazou@adacore.com>
11299
11300 * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
11301 * config/visium/visium.c (single_set_and_flags): Likewise.
11302 * config/visium/visium.md (Substitutions): Likewise.
11303
11304 2017-05-17 Martin Liska <mliska@suse.cz>
11305
11306 * cfg.c: Introduce dump_flags_t type and
11307 use it instead of int type.
11308 * cfg.h: Likewise.
11309 * cfghooks.c: Likewise.
11310 * cfghooks.h (struct cfg_hooks): Likewise.
11311 * cfgrtl.c: Likewise.
11312 * cfgrtl.h: Likewise.
11313 * cgraph.c (cgraph_node::get_body): Likewise.
11314 * coretypes.h: Likewise.
11315 * domwalk.c: Likewise.
11316 * domwalk.h: Likewise.
11317 * dumpfile.c (struct dump_option_value_info): Likewise.
11318 (dump_enable_all): Likewise.
11319 (dump_switch_p_1): Likewise.
11320 (opt_info_switch_p): Likewise.
11321 * dumpfile.h (enum tree_dump_index): Likewise.
11322 (struct dump_file_info): Likewise.
11323 * genemit.c: Likewise.
11324 * generic-match-head.c: Likewise.
11325 * gengtype.c (open_base_files): Likewise.
11326 * gimple-pretty-print.c: Likewise.
11327 * gimple-pretty-print.h: Likewise.
11328 * graph.c (print_graph_cfg): Likewise.
11329 * graphite-scop-detection.c (dot_all_sese): Likewise.
11330 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
11331 * loop-unroll.c (report_unroll): Likewise.
11332 * passes.c (pass_manager::register_one_dump_file): Likewise.
11333 * print-tree.c: Likewise.
11334 * statistics.c: Likewise.
11335 * tree-cfg.c: Likewise.
11336 * tree-cfg.h: Likewise.
11337 * tree-dfa.c: Likewise.
11338 * tree-dfa.h: Likewise.
11339 * tree-dump.c (dump_function): Likewise.
11340 * tree-dump.h (struct dump_info): Likewise.
11341 * tree-pretty-print.c: Likewise.
11342 * tree-pretty-print.h: Likewise.
11343 * tree-ssa-live.c: Likewise.
11344 * tree-ssa-live.h: Likewise.
11345 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
11346 * tree-vect-loop.c: Likewise.
11347 * tree-vect-slp.c: Likewise.
11348
11349 2017-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11350 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11351
11352 PR tree-optimization/80457
11353 * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
11354 of all arguments to a statement as scalar_to_vec operations.
11355 (vectorizable_call): Adjust call to vect_model_simple_cost for
11356 new parameter.
11357 (vectorizable_conversion): Likewise.
11358 (vectorizable_assignment): Likewise.
11359 (vectorizable_shift): Likewise.
11360 (vectorizable_operation): Likewise.
11361 (vectorizable_comparison): Likewise.
11362 (vect_is_simple_cond): Record the def types for operands.
11363 (vectorizable_condition): Likewise, call vect_model_simple_cost.
11364 * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
11365 for statement argument count.
11366
11367 2017-05-16 Carl Love <cel@us.ibm.com>
11368
11369 * config/rs6000/rs6000-c: Add support for built-in functions
11370 vector unsigned long long vec_bperm (vector unsigned long long,
11371 vector unsigned char)
11372 vector signed long long vec_mule (vector signed int,
11373 vector signed int)
11374 vector unsigned long long vec_mule (vector unsigned int,
11375 vector unsigned int)
11376 vector signed long long vec_mulo (vector signed int,
11377 vector signed int)
11378 vector unsigned long long vec_mulo (vector unsigned int,
11379 vector unsigned int)
11380 vector signed char vec_sldw (vector signed char,
11381 vector signed char,
11382 const int)
11383 vector unsigned char vec_sldw (vector unsigned char,
11384 vector unsigned char,
11385 const int)
11386 vector signed short vec_sldw (vector signed short,
11387 vector signed short,
11388 const int)
11389 vector unsigned short vec_sldw (vector unsigned short,
11390 vector unsigned short,
11391 const int)
11392 vector signed int vec_sldw (vector signed int,
11393 vector signed int,
11394 const int)
11395 vector unsigned int vec_sldw (vector unsigned int,
11396 vector unsigned int,
11397 const int)
11398 vector signed long long vec_sldw (vector signed long long,
11399 vector signed long long,
11400 const int)
11401 vector unsigned long long vec_sldw (vector unsigned long long,
11402 vector unsigned long long,
11403 const int)
11404 * config/rs6000/rs6000-c: Add support for built-in functions
11405 * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
11406 * config/rs6000/altivec.h: Add defintion for vec_sldw.
11407 * doc/extend.texi: Update the built-in documentation for the
11408 new built-in functions.
11409
11410 2017-05-16 Marek Polacek <polacek@redhat.com>
11411
11412 PR sanitizer/80536
11413 PR sanitizer/80386
11414 * tree.c (save_expr): Don't fold the expression.
11415
11416 2017-05-16 Uros Bizjak <ubizjak@gmail.com>
11417
11418 * config/i386/i386.md (*movsi_internal): Split (?rm,*y) alternative
11419 to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
11420 and (?*y,m). Update insn attributes.
11421
11422 2017-05-16 Martin Liska <mliska@suse.cz>
11423
11424 * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
11425 flags argument of print_gimple_stmt, print_gimple_expr,
11426 print_generic_stmt and print_generic_expr.
11427 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
11428 * coretypes.h: Likewise.
11429 * except.c (dump_eh_tree): Likewise.
11430 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
11431 * gimple-pretty-print.h: Likewise.
11432 * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
11433 (backprop::push_to_worklist): Likewise.
11434 (backprop::pop_from_worklist): Likewise.
11435 (backprop::process_use): Likewise.
11436 (backprop::intersect_uses): Likewise.
11437 (note_replacement): Likewise.
11438 * gimple-ssa-store-merging.c
11439 (pass_store_merging::terminate_all_aliasing_chains): Likewise.
11440 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
11441 (pass_store_merging::execute): Likewise.
11442 * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
11443 (ssa_base_cand_dump_callback): Likewise.
11444 (dump_incr_vec): Likewise.
11445 (replace_refs): Likewise.
11446 (replace_mult_candidate): Likewise.
11447 (create_add_on_incoming_edge): Likewise.
11448 (create_phi_basis): Likewise.
11449 (insert_initializers): Likewise.
11450 (all_phi_incrs_profitable): Likewise.
11451 (introduce_cast_before_cand): Likewise.
11452 (replace_one_candidate): Likewise.
11453 * gimplify.c (gimplify_expr): Likewise.
11454 * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
11455 (set_rename): Likewise.
11456 (rename_uses): Likewise.
11457 (copy_loop_phi_nodes): Likewise.
11458 (add_close_phis_to_merge_points): Likewise.
11459 (copy_loop_close_phi_args): Likewise.
11460 (copy_cond_phi_args): Likewise.
11461 (graphite_copy_stmts_from_block): Likewise.
11462 (translate_pending_phi_nodes): Likewise.
11463 * graphite-poly.c (print_pdr): Likewise.
11464 (dump_gbb_cases): Likewise.
11465 (dump_gbb_conditions): Likewise.
11466 (print_scop_params): Likewise.
11467 * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
11468 (build_cross_bb_scalars_use): Likewise.
11469 (gather_bbs::before_dom_children): Likewise.
11470 * hsa-dump.c (dump_hsa_immed): Likewise.
11471 * ipa-cp.c (print_ipcp_constant_value): Likewise.
11472 (get_replacement_map): Likewise.
11473 * ipa-inline-analysis.c (dump_condition): Likewise.
11474 (estimate_function_body_sizes): Likewise.
11475 * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
11476 (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
11477 * ipa-prop.c (ipa_dump_param): Likewise.
11478 (ipa_print_node_jump_functions_for_edge): Likewise.
11479 (ipa_modify_call_arguments): Likewise.
11480 (ipa_modify_expr): Likewise.
11481 (ipa_dump_param_adjustments): Likewise.
11482 (ipa_dump_agg_replacement_values): Likewise.
11483 (ipcp_modif_dom_walker::before_dom_children): Likewise.
11484 * ipa-pure-const.c (check_stmt): Likewise.
11485 (pass_nothrow::execute): Likewise.
11486 * ipa-split.c (execute_split_functions): Likewise.
11487 * omp-offload.c (dump_oacc_loop_part): Likewise.
11488 (dump_oacc_loop): Likewise.
11489 * trans-mem.c (tm_log_emit): Likewise.
11490 (tm_memopt_accumulate_memops): Likewise.
11491 (dump_tm_memopt_set): Likewise.
11492 (dump_tm_memopt_transform): Likewise.
11493 * tree-cfg.c (gimple_verify_flow_info): Likewise.
11494 (print_loop): Likewise.
11495 * tree-chkp-opt.c (chkp_print_addr): Likewise.
11496 (chkp_gather_checks_info): Likewise.
11497 (chkp_get_check_result): Likewise.
11498 (chkp_remove_check_if_pass): Likewise.
11499 (chkp_use_outer_bounds_if_possible): Likewise.
11500 (chkp_reduce_bounds_lifetime): Likewise.
11501 * tree-chkp.c (chkp_register_addr_bounds): Likewise.
11502 (chkp_mark_completed_bounds): Likewise.
11503 (chkp_register_incomplete_bounds): Likewise.
11504 (chkp_mark_invalid_bounds): Likewise.
11505 (chkp_maybe_copy_and_register_bounds): Likewise.
11506 (chkp_build_returned_bound): Likewise.
11507 (chkp_get_bound_for_parm): Likewise.
11508 (chkp_build_bndldx): Likewise.
11509 (chkp_get_bounds_by_definition): Likewise.
11510 (chkp_generate_extern_var_bounds): Likewise.
11511 (chkp_get_bounds_for_decl_addr): Likewise.
11512 * tree-chrec.c (chrec_apply): Likewise.
11513 * tree-data-ref.c (dump_data_reference): Likewise.
11514 (dump_subscript): Likewise.
11515 (dump_data_dependence_relation): Likewise.
11516 (analyze_overlapping_iterations): Likewise.
11517 * tree-inline.c (expand_call_inline): Likewise.
11518 (tree_function_versioning): Likewise.
11519 * tree-into-ssa.c (dump_defs_stack): Likewise.
11520 (dump_currdefs): Likewise.
11521 (dump_names_replaced_by): Likewise.
11522 (dump_update_ssa): Likewise.
11523 (update_ssa): Likewise.
11524 * tree-object-size.c (pass_object_sizes::execute): Likewise.
11525 * tree-parloops.c (build_new_reduction): Likewise.
11526 (try_create_reduction_list): Likewise.
11527 (ref_conflicts_with_region): Likewise.
11528 (oacc_entry_exit_ok_1): Likewise.
11529 (oacc_entry_exit_single_gang): Likewise.
11530 * tree-pretty-print.h: Likewise.
11531 * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
11532 (get_scalar_evolution): Likewise.
11533 (add_to_evolution): Likewise.
11534 (get_loop_exit_condition): Likewise.
11535 (analyze_evolution_in_loop): Likewise.
11536 (analyze_initial_condition): Likewise.
11537 (analyze_scalar_evolution): Likewise.
11538 (instantiate_scev): Likewise.
11539 (number_of_latch_executions): Likewise.
11540 (gather_chrec_stats): Likewise.
11541 (final_value_replacement_loop): Likewise.
11542 (scev_const_prop): Likewise.
11543 * tree-sra.c (dump_access): Likewise.
11544 (disqualify_candidate): Likewise.
11545 (create_access): Likewise.
11546 (reject): Likewise.
11547 (maybe_add_sra_candidate): Likewise.
11548 (create_access_replacement): Likewise.
11549 (analyze_access_subtree): Likewise.
11550 (analyze_all_variable_accesses): Likewise.
11551 (sra_modify_assign): Likewise.
11552 (initialize_constant_pool_replacements): Likewise.
11553 (find_param_candidates): Likewise.
11554 (decide_one_param_reduction): Likewise.
11555 (replace_removed_params_ssa_names): Likewise.
11556 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
11557 * tree-ssa-copy.c (dump_copy_of): Likewise.
11558 (copy_prop_visit_cond_stmt): Likewise.
11559 * tree-ssa-dce.c (mark_operand_necessary): Likewise.
11560 * tree-ssa-dom.c (pass_dominator::execute): Likewise.
11561 (record_equivalences_from_stmt): Likewise.
11562 * tree-ssa-dse.c (compute_trims): Likewise.
11563 (delete_dead_call): Likewise.
11564 (delete_dead_assignment): Likewise.
11565 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
11566 (forward_propagate_into_cond): Likewise.
11567 (pass_forwprop::execute): Likewise.
11568 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
11569 * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
11570 Likewise.
11571 (move_computations_worker): Likewise.
11572 (execute_sm): Likewise.
11573 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
11574 (remove_exits_and_undefined_stmts): Likewise.
11575 (remove_redundant_iv_tests): Likewise.
11576 * tree-ssa-loop-ivopts.c (dump_use): Likewise.
11577 (adjust_iv_update_pos): Likewise.
11578 * tree-ssa-math-opts.c (bswap_replace): Likewise.
11579 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
11580 (value_replacement): Likewise.
11581 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
11582 * tree-ssa-pre.c (print_pre_expr): Likewise.
11583 (get_representative_for): Likewise.
11584 (create_expression_by_pieces): Likewise.
11585 (insert_into_preds_of_block): Likewise.
11586 (eliminate_insert): Likewise.
11587 (eliminate_dom_walker::before_dom_children): Likewise.
11588 (eliminate): Likewise.
11589 (remove_dead_inserted_code): Likewise.
11590 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
11591 * tree-ssa-reassoc.c (get_rank): Likewise.
11592 (eliminate_duplicate_pair): Likewise.
11593 (eliminate_plus_minus_pair): Likewise.
11594 (eliminate_not_pairs): Likewise.
11595 (undistribute_ops_list): Likewise.
11596 (eliminate_redundant_comparison): Likewise.
11597 (update_range_test): Likewise.
11598 (optimize_range_tests_var_bound): Likewise.
11599 (optimize_vec_cond_expr): Likewise.
11600 (rewrite_expr_tree): Likewise.
11601 (rewrite_expr_tree_parallel): Likewise.
11602 (linearize_expr): Likewise.
11603 (break_up_subtract): Likewise.
11604 (linearize_expr_tree): Likewise.
11605 (attempt_builtin_powi): Likewise.
11606 (attempt_builtin_copysign): Likewise.
11607 (transform_stmt_to_copy): Likewise.
11608 (transform_stmt_to_multiply): Likewise.
11609 (dump_ops_vector): Likewise.
11610 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
11611 (print_scc): Likewise.
11612 (set_ssa_val_to): Likewise.
11613 (visit_reference_op_store): Likewise.
11614 (visit_use): Likewise.
11615 (sccvn_dom_walker::before_dom_children): Likewise.
11616 (run_scc_vn): Likewise.
11617 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
11618 Likewise.
11619 (expr_hash_elt::print): Likewise.
11620 (const_and_copies::pop_to_marker): Likewise.
11621 (const_and_copies::record_const_or_copy_raw): Likewise.
11622 * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
11623 * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
11624 (dump_predicates): Likewise.
11625 (find_uninit_use): Likewise.
11626 (warn_uninitialized_phi): Likewise.
11627 (pass_late_warn_uninitialized::execute): Likewise.
11628 * tree-ssa.c (verify_vssa): Likewise.
11629 (verify_ssa): Likewise.
11630 (maybe_optimize_var): Likewise.
11631 * tree-vrp.c (dump_value_range): Likewise.
11632 (dump_all_value_ranges): Likewise.
11633 (dump_asserts_for): Likewise.
11634 (register_edge_assert_for_2): Likewise.
11635 (vrp_visit_cond_stmt): Likewise.
11636 (vrp_visit_switch_stmt): Likewise.
11637 (vrp_visit_stmt): Likewise.
11638 (vrp_visit_phi_node): Likewise.
11639 (simplify_cond_using_ranges_1): Likewise.
11640 (fold_predicate_in): Likewise.
11641 (evrp_dom_walker::before_dom_children): Likewise.
11642 (evrp_dom_walker::push_value_range): Likewise.
11643 (evrp_dom_walker::pop_value_range): Likewise.
11644 (execute_early_vrp): Likewise.
11645
11646 2017-05-16 Richard Biener <rguenther@suse.de>
11647
11648 * dwarf2out.c (loc_list_from_tree_1): Do not create
11649 DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
11650
11651 2017-05-16 Richard Biener <rguenther@suse.de>
11652
11653 * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
11654 just generated.
11655 (note_variable_value_in_expr): If we resolved the decl ref
11656 do not push to the stack.
11657
11658 2017-05-16 Matthew Wahab <matthew.wahab@arm.com>
11659
11660 * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
11661 operations in fast-math mode.
11662 (vaddq_f16): Likewise.
11663 (vmul_f16): Likewise.
11664 (vmulq_f16): Likewise.
11665 (vsub_f16): Likewise.
11666 (vsubq_f16): Likewise.
11667 * config/arm/neon.md (add<mode>3): New.
11668 (sub<mode>3): New.
11669 (fma:<VH:mode>3): New. Also remove outdated comment.
11670 (mul<mode>3): New.
11671
11672 2017-05-16 Martin Liska <mliska@suse.cz>
11673
11674 PR ipa/79849.
11675 PR ipa/79850.
11676 * ipa-devirt.c (warn_types_mismatch): Fix typo.
11677 (odr_types_equivalent_p): Likewise.
11678
11679 2017-05-15 Sylvestre Ledru <sylvestre@debian.org>
11680
11681 * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
11682
11683 2017-05-15 Uros Bizjak <ubizjak@gmail.com>
11684
11685 PR target/80425
11686 * config/i386.i386.md (*zero_extendsidi2): Do not penalize
11687 non-interunit SSE move alternatives with '?'.
11688 (zero-extendsidi peephole2): New peephole to skip intermediate
11689 general register in SSE zero-extend sequence.
11690
11691 2017-05-15 Jeff Law <law@redhat.com>
11692
11693 * reorg.c (relax_delay_slots): Create a new variable to hold
11694 the temporary target rather than clobbering TARGET_LABEL.
11695
11696 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
11697 missing argument to extract_bit_field call.
11698 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
11699
11700 2017-05-15 Martin Liska <mliska@suse.cz>
11701
11702 PR driver/31468
11703 * gcc.c (process_command): Do not allow empty argument of -o option.
11704
11705 2017-05-15 Renlin Li <renlin.li@arm.com>
11706
11707 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
11708 * config/aarch64/aarch64.c (aarch64_expand_call): Define.
11709 * config/aarch64/constraints.md (Usf): Add long call check.
11710 * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
11711 (call_value): Likewise.
11712 (sibcall): Likewise.
11713 (sibcall_value): Likewise.
11714 (call_insn): New.
11715 (call_value_insn): New.
11716 (sibcall_insn): Update rtx pattern.
11717 (sibcall_value_insn): Likewise.
11718 (call_internal): Remove.
11719 (call_value_internal): Likewise.
11720 (sibcall_internal): Likewise.
11721 (sibcall_value_internal): Likewise.
11722 (call_reg): Likewise.
11723 (call_symbol): Likewise.
11724 (call_value_reg): Likewise.
11725 (call_value_symbol): Likewise.
11726
11727 2017-05-14 Krister Walfridsson <krister.walfridsson@gmail.com>
11728
11729 PR target/80600
11730 * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
11731
11732 2017-05-14 Uros Bizjak <ubizjak@gmail.com>
11733
11734 * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
11735 compatible with CCGOCmode and with CCZmode.
11736
11737 2017-05-14 Martin Sebor <msebor@redhat.com>
11738
11739 PR middle-end/77671
11740 * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
11741 (gimple_fold_builtin_snprintf): Same.
11742 * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
11743 (gimple_fold_builtin_snprintf): Same.
11744 * gimple-ssa-sprintf.c (get_format_string): Correct the detection
11745 of character types.
11746 (is_call_safe): New function.
11747 (try_substitute_return_value): Call it.
11748 (try_simplify_call): New function.
11749 (pass_sprintf_length::handle_gimple_call): Call it.
11750
11751 2017-05-14 Martin Sebor <msebor@redhat.com>
11752
11753 PR middle-end/80669
11754 * builtins.c (expand_builtin_stpncpy): Simplify.
11755
11756 2017-05-14 Daniel Santos <daniel.santos@pobox.com>
11757
11758 * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
11759 * config/i386/i386.h
11760 (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
11761 (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
11762 (struct machine_function): Add new members call_ms2sysv,
11763 call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
11764 (struct machine_frame_state): New fields sp_realigned and
11765 sp_realigned_offset.
11766 * config/i386/i386.c
11767 (enum xlogue_stub): New enum.
11768 (enum xlogue_stub_sets): New enum.
11769 (class xlogue_layout): New class.
11770 (struct ix86_frame): New fields stack_realign_allocate_offset,
11771 stack_realign_offset and outlined_save_offset. Modify comments to
11772 detail stack layout when using out-of-line stubs.
11773 (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
11774 (ix86_option_override_internal): Add sorry() for TARGET_SEH and
11775 -mcall-ms2sysv-xlogues.
11776 (stub_managed_regs): New static variable.
11777 (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
11778 registers managed by out-of-line stub.
11779 (disable_call_ms2sysv_xlogues): New function.
11780 (ix86_compute_frame_layout): Modify re-alignment calculations, disable
11781 m->call_ms2sysv when appropriate and compute frame layout for
11782 out-of-line stubs.
11783 (sp_valid_at, fp_valid_at): New inline functions.
11784 (choose_basereg): New function.
11785 (choose_baseaddr): Add align parameter, use choose_basereg and modify
11786 all callers.
11787 (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
11788 Use align parameter of choose_baseaddr to generated aligned SSE movs
11789 when possible.
11790 (pro_epilogue_adjust_stack): Modify to track
11791 machine_frame_state::sp_realigned.
11792 (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
11793 (ix86_nsaved_sseregs): Likewise.
11794 (ix86_emit_save_regs): Likewise.
11795 (ix86_emit_save_regs_using_mov): Likewise.
11796 (ix86_emit_save_sse_regs_using_mov): Likewise.
11797 (get_scratch_register_on_entry): Likewise.
11798 (gen_frame_set): New function.
11799 (gen_frame_load): Likewise.
11800 (gen_frame_store): Likewise.
11801 (emit_outlined_ms2sysv_save): Likewise.
11802 (emit_outlined_ms2sysv_restore): Likewise.
11803 (ix86_expand_prologue): Modify stack re-alignment code and call
11804 emit_outlined_ms2sysv_save when appropriate.
11805 (ix86_emit_leave): Clear machine_frame_state::sp_realigned. Add
11806 parameter rtx_insn *insn, which allows the function to be used to only
11807 generate the notes.
11808 (ix86_expand_epilogue): Modify validity checks of frame and stack
11809 pointers, and call emit_outlined_ms2sysv_restore when appropriate.
11810 (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
11811 * config/i386/predicates.md
11812 (save_multiple): New predicate.
11813 (restore_multiple): Likewise.
11814 * config/i386/sse.md
11815 (save_multiple<mode>): New pattern.
11816 (save_multiple_realign<mode>): Likewise.
11817 (restore_multiple<mode>): Likewise.
11818 (restore_multiple_and_return<mode>): Likewise.
11819 (restore_multiple_leave_return<mode>): Likewise.
11820 * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
11821
11822 2017-05-14 Julia Koval <julia.koval@intel.com>
11823
11824 * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
11825 * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
11826 (__builtin_ia32_xsetbv): New builtins.
11827 * config/i386/i386.c (ix86_expand_special_args_builtin):
11828 Process new types.
11829 (ix86_expand_builtin): Special expand for new intrinsics.
11830 * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
11831 (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
11832 * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
11833
11834 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11835
11836 * cfganal.c (inverted_post_order_compute): Change argument type
11837 to vec *.
11838 * cfganal.h (inverted_post_order_compute): Adjust prototype.
11839 * df-core.c (rest_of_handle_df_initialize): Adjust.
11840 (rest_of_handle_df_finish): Likewise.
11841 (df_analyze_1): Likewise.
11842 (df_analyze): Likewise.
11843 (loop_inverted_post_order_compute): Change argument to be a vec *.
11844 (df_analyze_loop): Adjust.
11845 (df_get_n_blocks): Likewise.
11846 (df_get_postorder): Likewise.
11847 * df.h (struct df_d): Change field to be a vec.
11848 * lcm.c (compute_laterin): Adjust.
11849 (compute_available): Likewise.
11850 * lra-lives.c (lra_create_live_ranges_1): Likewise.
11851 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
11852 * tree-ssa-pre.c (compute_antic): Likewise.
11853
11854 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11855
11856 * cfganal.c (connect_infinite_loops_to_exit): Adjust.
11857 (depth_first_search::depth_first_search): Change structure init
11858 function to this constructor.
11859 (depth_first_search::add_bb): Rename function to this member.
11860 (depth_first_search::execute): Likewise.
11861 (flow_dfs_compute_reverse_finish): Adjust.
11862
11863 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11864
11865 * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
11866 (longest_simple_path): Likewise.
11867 * shrink-wrap.c (spread_components): Likewise.
11868 (disqualify_problematic_components): Likewise.
11869 (emit_common_heads_for_components): Likewise.
11870 (emit_common_tails_for_components): Likewise.
11871 (insert_prologue_epilogue_for_components): Likewise.
11872
11873 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11874
11875 * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
11876 auto_sbitmap.
11877
11878 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11879
11880 * df-core.c (df_set_blocks): Start using auto_bitmap.
11881 (df_compact_blocks): Likewise.
11882 * df-problems.c (df_rd_confluence_n): Likewise.
11883 * df-scan.c (df_insn_rescan_all): Likewise.
11884 (df_process_deferred_rescans): Likewise.
11885 (df_update_entry_block_defs): Likewise.
11886 (df_update_exit_block_uses): Likewise.
11887 (df_entry_block_bitmap_verify): Likewise.
11888 (df_exit_block_bitmap_verify): Likewise.
11889 (df_scan_verify): Likewise.
11890 * lra-constraints.c (lra_constraints): Likewise.
11891 (undo_optional_reloads): Likewise.
11892 (lra_undo_inheritance): Likewise.
11893 * lra-remat.c (calculate_gen_cands): Likewise.
11894 (do_remat): Likewise.
11895 * lra-spills.c (assign_spill_hard_regs): Likewise.
11896 (spill_pseudos): Likewise.
11897 * tree-ssa-pre.c (bitmap_set_and): Likewise.
11898 (bitmap_set_subtract_values): Likewise.
11899
11900 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11901
11902 * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
11903 management with auto_bitmap.
11904 (fix_inter_tick): Likewise.
11905 (fix_recovery_deps): Likewise.
11906 * ira.c (add_store_equivs): Likewise.
11907 (find_moveable_pseudos): Likewise.
11908 (split_live_ranges_for_shrink_wrap): Likewise.
11909 * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
11910 (rtx_reuse_manager::seen_def_p): Likewise.
11911 (rtx_reuse_manager::set_seen_def): Likewise.
11912 * print-rtl.h (class rtx_reuse_manager): Likewise.
11913
11914 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11915
11916 * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
11917 lifetime.
11918 (migrate_btr_def): Likewise.
11919 * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
11920 * df-core.c (loop_post_order_compute): Likewise.
11921 (loop_inverted_post_order_compute): Likewise.
11922 * hsa-common.h: Likewise.
11923 * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
11924 * init-regs.c (initialize_uninitialized_regs): Likewise.
11925 * ipa-inline.c (resolve_noninline_speculation): Likewise.
11926 (inline_small_functions): Likewise.
11927 * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
11928 * ira.c (combine_and_move_insns): Likewise.
11929 (build_insn_chain): Likewise.
11930 * loop-invariant.c (find_invariants): Likewise.
11931 * lower-subreg.c (propagate_pseudo_copies): Likewise.
11932 * predict.c (tree_predict_by_opcode): Likewise.
11933 (predict_paths_leading_to): Likewise.
11934 (predict_paths_leading_to_edge): Likewise.
11935 (estimate_loops_at_level): Likewise.
11936 (estimate_loops): Likewise.
11937 * shrink-wrap.c (try_shrink_wrapping): Likewise.
11938 (spread_components): Likewise.
11939 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
11940 * tree-loop-distribution.c (rdg_build_partitions): Likewise.
11941 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
11942 * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
11943 * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
11944 * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
11945 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
11946 * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
11947 (mark_threaded_blocks): Likewise.
11948 (thread_through_all_blocks): Likewise.
11949 * tree-ssa.c (verify_ssa): Likewise.
11950 (execute_update_addresses_taken): Likewise.
11951 * tree-ssanames.c (verify_ssaname_freelists): Likewise.
11952
11953 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11954
11955 * cfganal.c (mark_dfs_back_edges): Replace manual stack with
11956 auto_vec.
11957 (post_order_compute): Likewise.
11958 (inverted_post_order_compute): Likewise.
11959 (pre_and_rev_post_order_compute_fn): Likewise.
11960
11961 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11962
11963 * genrecog.c (int_set::int_set): Explicitly construct our
11964 auto_vec base class.
11965 * vec.h (auto_vec::auto_vec): New constructor.
11966
11967 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11968
11969 * bitmap.h (class auto_bitmap): New constructor taking
11970 bitmap_obstack * argument.
11971
11972 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11973
11974 * bitmap.h (class auto_bitmap): Change type of m_bits to
11975 bitmap_head, and adjust ctor / dtor and member operators.
11976
11977 2017-05-13 Uros Bizjak <ubizjak@gmail.com>
11978
11979 * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
11980 when returned register mode doesn't match original mode.
11981
11982 2017-05-12 Jeff Law <law@redhat.com>
11983 Jakub Jelinek <jakub@redhat.com>
11984
11985 * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
11986 we look for cc setter after the compare-elim changes.
11987 * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
11988 within the vector to match what compare-elim now expects.
11989 (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
11990 (xorsi3_flags, one_cmplsi2_flags): Likewise.
11991
11992 * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
11993 after the compare-elim changes.
11994 * config/rx/rx.md (abssi2_flags): Fix order of patterns within
11995 the vector to match what compare-elim now expects.
11996 (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
11997 (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
11998 (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
11999 (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
12000 (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
12001
12002 * config/visium/visium.c (single_set_and_flags): Fix where
12003 we look for cc setter after the compare-elim changes.
12004 * config/visium/visium.md (flags_subst_logic): Fix order of patterns
12005 with the vector to match what compare-elim now expects.
12006 (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
12007 (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
12008 (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
12009 (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
12010 (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
12011 (neg<mode>2_insn_set_overflow): Likewise.
12012
12013 2017-05-12 Jim Wilson <jim.wilson@linaro.org>
12014
12015 PR middle-end/79794
12016 * expmed.c (extract_bit_field_1): Add alt_rtl argument. Before
12017 maybe_expand_insn call, set ops[0].target. If still set after call,
12018 set alt_rtl. Add extra arg to recursive calls.
12019 (extract_bit_field): Add alt_rtl argument. Pass to
12020 extract_bit_field.
12021 * expmed.h (extract_bit_field): Fix prototype.
12022 * expr.c (emit_group_load_1, copy_blkmode_from_reg)
12023 (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
12024 to extract_bit_field_calls.
12025 (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
12026 Pass alt_rtl to extract_bit_field calls.
12027 * calls.c (store_unaligned_arguments_into_psuedos)
12028 load_register_parameters): Pass extra NULL to extract_bit_field calls.
12029 * optabs.c (maybe_legitimize_operand): Clear op->target when call
12030 gen_reg_rtx.
12031 * optabs.h (struct expand_operand): Add target bitfield.
12032
12033 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
12034
12035 * compare-elim.c (try_eliminate_compare): Canonicalize
12036 operation with embedded compare to
12037 [(set (reg:CCM) (compare:CCM (operation) (immediate)))
12038 (set (reg) (operation)].
12039
12040 * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
12041
12042 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
12043
12044 PR target/80723
12045 * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
12046 cost of adding a carry flag for ADC instruction.
12047 [case MINUS]: Ignore the cost of subtracting a carry flag
12048 for SBB instruction.
12049
12050 2017-05-12 Steven Munroe <munroesj@gcc.gnu.org>
12051
12052 * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
12053 and x86intrin.h
12054 * config/rs6000/bmiintrin.h: New file.
12055 * config/rs6000/bmi2intrin.h: New file.
12056 * config/rs6000/x86intrin.h: New file.
12057
12058 2017-05-12 Jeff Law <law@redhat.com>
12059
12060 * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
12061 markers.
12062
12063 2017-05-12 Peter Bergner <bergner@vnet.ibm.com>
12064
12065 PR middle-end/80707
12066 * tree-cfg.c: Remove cfg edges of unreachable case statements.
12067
12068 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
12069
12070 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
12071 early expansion of vector divide builtins.
12072 (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
12073 builtins identified as having unsigned arguments.
12074
12075 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
12076
12077 * config/rs6000/rs6000.c (gimple-fold.h): New #include.
12078 (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
12079 expansion of vector logical operations (and, andc, or, xor,
12080 nor, orc, nand).
12081
12082 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
12083
12084 * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
12085 * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
12086
12087 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
12088
12089 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
12090 early GIMPLE expansion of vector multiplies.
12091
12092 2017-05-12 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
12093
12094 * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
12095 TARGET_HAVE_MOVT conditional.
12096 (movt splitter): Likewise.
12097
12098 2017-05-12 Richard Biener <rguenther@suse.de>
12099
12100 * tree-ssa-sccvn.h (has_VN_INFO): Declare.
12101 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12102 Fold all stmts not inplace.
12103
12104 2017-05-12 Richard Biener <rguenther@suse.de>
12105
12106 PR tree-optimization/80713
12107 * tree-ssa-pre.c (remove_dead_inserted_code): Clear
12108 inserted_exprs bit for not removed stmts.
12109
12110 2017-05-12 Thomas Schwinge <thomas@codesourcery.com>
12111
12112 PR middle-end/69921
12113 * tree-parloops.c (create_parallel_loop): Set "oacc kernels
12114 parallelized" attribute for parallelized OpenACC kernels.
12115 * omp-offload.c (execute_oacc_device_lower): Use it.
12116
12117 * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
12118 Set "oacc kernels" attribute.
12119 * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
12120 parameter. Adjust all users.
12121 (oacc_fn_attrib_kernels_p): Remove function.
12122 * omp-offload.c (execute_oacc_device_lower): Look for "oacc
12123 kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
12124 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
12125 * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
12126 assert "oacc kernels" attribute is set.
12127
12128 2017-05-11 Carl Love <cel@us.ibm.com>
12129
12130 * config/rs6000/rs6000-c: Add support for built-in functions
12131 vector unsigned char vec_popcnt (vector signed char)
12132 vector unsigned char vec_popcnt (vector unsigned char)
12133 vector unsigned short vec_popcnt (vector signed short)
12134 vector unsigned short vec_popcnt (vector unsigned short)
12135 vector unsigned int vec_popcnt (vector signed int)
12136 vector unsigned int vec_popcnt (vector unsigned int)
12137 vector unsigned long long vec_popcnt (vector signed long long)
12138 vector unsigned long long vec_popcnt (vector unsigned long long)
12139 vector signed long long vec_slo (vector signed long long,
12140 vector signed char)
12141 vector signed long long vec_slo (vector signed long long,
12142 vector unsigned char)
12143 vector unsigned long long vec_slo (vector unsigned long long,
12144 vector signed char)
12145 vector unsigned long long vec_slo (vector unsigned long long,
12146 vector unsigned char)
12147 * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
12148 VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
12149 * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
12150 vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
12151 * doc/extend.texi: Update the built-in documentation file for the
12152 new built-in functions.
12153
12154 2017-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
12155
12156 * attribs.h (sorted_attr_string): Move machine independent
12157 functions for target clone support from the i386 port to common
12158 code. Rename ix86_function_versions to common_function_versions.
12159 Rename make_name to make_unique_name.
12160 (common_function_versions): Likewise.
12161 (make_unique_name): Likewise.
12162 (make_dispatcher_decl): Likewise.
12163 (is_function_default_version): Likewise.
12164 * attribs.c (attr_strcmp): Likewise.
12165 (sorted_attr_string): Likewise.
12166 (common_function_versions): Likewise.
12167 (make_unique_name): Likewise.
12168 (make_dispatcher_decl): Likewise.
12169 (is_function_default_version): Likewise.
12170 * config/i386/i386.c (attr_strcmp): Likewise.
12171 (sorted_attr_string): Likewise.
12172 (ix86_function_versions): Likewise.
12173 (make_name): Likewise.
12174 (make_dispatcher_decl): Likewise.
12175 (is_function_default_version): Likewise.
12176 (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
12177
12178 2017-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12179
12180 PR target/80695
12181 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
12182 Account for direct move costs for vec_construct of integer
12183 vectors.
12184
12185 2017-05-11 Uros Bizjak <ubizjak@gmail.com>
12186
12187 PR target/80706
12188 * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
12189 (UNSPEC_STX_ATOMIC): Ditto.
12190 (loaddi_via_sse): New insn.
12191 (storedi_via_sse): Ditto.
12192 (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
12193 Update corresponding peephole2 patterns.
12194 (atomic_storedi_fpu): Ditto.
12195
12196 2017-05-11 Julia Koval <julia.koval@intel.com>
12197
12198 * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
12199 (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
12200 New intrinsics.
12201 * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
12202 (__builtin_ia32_rsqrt14ss_mask): New builtins.
12203 * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
12204
12205 2017-05-11 Nathan Sidwell <nathan@acm.org>
12206
12207 * graphite-poly.c: Include dumpfile.h.
12208
12209 * dumpfle.h (dump_function): Declare here ...
12210 * tree-dump.h (dump_function): ... not here.
12211 * dumpfile.c: #include tree-cfg.h.
12212 (dump_function): Move here from ...
12213 * tree-dump.c (dump_function): ... here.
12214 * gimplify.c: #include splay-tree.h, not tree-dump.h.
12215 * graphite-poly.c: Don't include tree-dump.h.
12216 * cgraphclones.c: Include dumpfile.h not tree-dump.h.
12217 * print-tree.c: Likewise.
12218 * stor-layout.c: Likewise.
12219 * tree-nested.c: Likewise.
12220
12221 * dumpfile.c (dump_start): Use TDF_FLAGS.
12222 (dump_enable_all): Fix TDF_KIND check thinko.
12223
12224 2017-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
12225
12226 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12227 array entries to represent two legal parameterizations of the
12228 overloaded __builtin_cmpb function, as represented by the
12229 P6_OV_BUILTIN_CMPB constant.
12230 (altivec_resolve_overloaded_builtin): Add special case handling
12231 for the __builtin_cmpb function, as represented by the
12232 P6_OV_BUILTIN_CMPB constant.
12233 * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
12234 (BU_P6_64BIT_2): New macro.
12235 (BU_P6_OVERLOAD_2): New macro
12236 (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
12237 (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
12238 (CMPB): Add overload support to represent both 32-bit and 64-bit
12239 compare-bytes function.
12240 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
12241 support for TARGET_CMPB.
12242 * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
12243 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
12244 documentation of the __builtin_cmpb overloaded built-in function.
12245
12246 2017-05-11 Richard Biener <rguenther@suse.de>
12247
12248 PR tree-optimization/80705
12249 * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
12250 bases are not vectorizable.
12251
12252 2017-05-11 Bin Cheng <bin.cheng@arm.com>
12253
12254 * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
12255 when counting register pressure.
12256
12257 2017-05-11 Bin Cheng <bin.cheng@arm.com>
12258
12259 * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
12260 (iv_ca_more_deps): Renamed to ...
12261 (iv_ca_compare_deps): ... this.
12262 (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
12263
12264 2017-05-11 Bin Cheng <bin.cheng@arm.com>
12265
12266 * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
12267 to ...
12268 (determine_group_iv_costs): ... here.
12269 (find_inv_vars_cb): Record inv var if it's not recorded before.
12270
12271 2017-05-11 Bin Cheng <bin.cheng@arm.com>
12272
12273 * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
12274 (get_shiftadd_cost): Ditto.
12275
12276 2017-05-11 Bin Cheng <bin.cheng@arm.com>
12277
12278 * tree-ssa-address.c: Include header file.
12279 (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
12280 address.
12281 (add_to_parts): Refactor.
12282 (addr_to_parts): New parameter. Update use of move_hint_to_base.
12283 (create_mem_ref): Update use of addr_to_parts. Re-associate addr
12284 in new order.
12285
12286 2017-05-11 Bin Cheng <bin.cheng@arm.com>
12287
12288 PR tree-optimization/53090
12289 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
12290 COMP_IV_EXPR_2.
12291 (extract_cond_operands): Detect condition with IV on both sides
12292 and return COMP_IV_EXPR_2.
12293 (find_interesting_uses_cond): Add iv_use for both IVs in condition.
12294 (rewrite_use_compare): Simplify by removing call to function
12295 extract_cond_operands.
12296
12297 2017-05-11 Bin Cheng <bin.cheng@arm.com>
12298
12299 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
12300 (extract_cond_operands): Detect condition comparing against non-
12301 invariant bound and return appropriate enum value.
12302 (find_interesting_uses_cond): Update use of extract_cond_operands.
12303 Handle its return value accordingly.
12304 (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
12305
12306 2017-05-11 Bin Cheng <bin.cheng@arm.com>
12307
12308 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
12309 nonlinear iv_use computation in loop invariant sensitive way.
12310
12311 2017-05-11 Bin Cheng <bin.cheng@arm.com>
12312
12313 * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
12314 (find_iv_candidates): Call relate_compare_use_with_all_cands.
12315
12316 2017-05-11 Bin Cheng <bin.cheng@arm.com>
12317
12318 * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
12319 (dump_cand): Support iv_cand.inv_exprs.
12320 (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
12321 for candidates.
12322 (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
12323 iv_cand.inv_exprs.
12324
12325 2017-05-11 Bin Cheng <bin.cheng@arm.com>
12326
12327 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
12328 from ...
12329 * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
12330 as local function. Include necessary header files.
12331 * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
12332
12333 2017-05-11 Bin Cheng <bin.cheng@arm.com>
12334
12335 * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
12336
12337 2017-05-11 Bin Cheng <bin.cheng@arm.com>
12338
12339 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
12340 operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
12341 RSHIFT_EXPR and BIT_NOT_EXPR.
12342
12343 2017-05-11 Bin Cheng <bin.cheng@arm.com>
12344
12345 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
12346 (adjust_setup_cost): New parameter supporting round up adjustment.
12347 (struct address_cost_data): Delete.
12348 (force_expr_to_var_cost): Don't bound cost with spill_cost.
12349 (split_address_cost, ptr_difference_cost): Delete.
12350 (difference_cost, compare_aff_trees, record_inv_expr): Delete.
12351 (struct ainc_cost_data): New struct.
12352 (get_address_cost_ainc): New function.
12353 (get_address_cost, get_computation_cost): Reimplement.
12354 (determine_group_iv_cost_address): Record inv_expr for all uses of
12355 a group.
12356 (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
12357 (iv_ca_has_deps): Reimplemented to ...
12358 (iv_ca_more_deps): ... this. Check if NEW_CP introduces more deps
12359 than OLD_CP.
12360 (iv_ca_extend): Call iv_ca_more_deps.
12361
12362 2017-05-11 Bin Cheng <bin.cheng@arm.com>
12363
12364 * tree-ssa-address.c (struct mem_address): Move to header file.
12365 (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
12366 * tree-ssa-address.h (struct mem_address): Move from C file.
12367 (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
12368
12369 2017-05-11 Bin Cheng <bin.cheng@arm.com>
12370
12371 * tree-affine.h (aff_combination_type): New interface.
12372 (aff_combination_zero_p): Remove static.
12373 (aff_combination_const_p): New interface.
12374 (aff_combination_singleton_var_p): New interfaces.
12375
12376 2017-05-11 Richard Biener <rguenther@suse.de>
12377
12378 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12379 Skip unreachable blocks and destinations.
12380 (eliminate): Move stmt removal and fixup ...
12381 (fini_eliminate): ... here. Skip inserted exprs.
12382 (pass_pre::execute): Move fini_pre after fini_eliminate.
12383 * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
12384 (tail_merge_optimize): Run cleanup_tree_cfg if requested by
12385 PRE to get rid of dead code that has invalid SSA form and
12386 split critical edges again.
12387
12388 2017-05-11 Bin Cheng <bin.cheng@arm.com>
12389
12390 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
12391
12392 2017-05-11 Richard Biener <rguenther@suse.de>
12393
12394 * passes.c (execute_function_todo): Verify loops if they are
12395 said to be up-to-date.
12396 * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
12397 * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
12398
12399 2017-05-10 John David Anglin <danglin@gcc.gnu.org>
12400
12401 PR target/80090
12402 * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
12403 handle calling assemble_external ourself.
12404
12405 PR target/79027
12406 * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
12407 modes with zero size. Enhance comment.
12408
12409 2017-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12410
12411 * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
12412 built-ins for vec_xl and vec_xst with short and char pointer
12413 arguments.
12414
12415 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
12416
12417 * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
12418 (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
12419 (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
12420 (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
12421 (_mm_maskz_min_round_ss): New intrinsics.
12422 * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
12423 (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
12424 * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
12425 (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
12426 (__builtin_ia32_minss_mask_round): New builtins.
12427 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
12428 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
12429 * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
12430 Rename to ...
12431 (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
12432 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
12433 Change to ...
12434 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
12435 ... this.
12436
12437 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
12438
12439 * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
12440 (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
12441 (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
12442 (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
12443 (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
12444 (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
12445 (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
12446 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
12447 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
12448 * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
12449 (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
12450 (__builtin_ia32_mulss_mask_round): New builtins.
12451 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
12452 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
12453 * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
12454 Rename to ...
12455 (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
12456 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
12457 Change to ...
12458 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
12459 ... this.
12460
12461 2017-05-10 Julia Koval <julia.koval@intel.com>
12462
12463 * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
12464 (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
12465 (_mm256_setr_m128i): New intrinsics.
12466
12467 2017-05-10 Julia Koval <julia.koval@intel.com>
12468
12469 * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
12470 (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
12471 (_mm_maskz_rcp14_ss): New intrinsics.
12472 * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
12473 (__builtin_ia32_rcp14ss_mask): New builtins.
12474 * config/i386/sse.md (srcp14<mode>_mask): New pattern.
12475
12476 2017-05-10 Peter Bergner <bergner@vnet.ibm.com>
12477
12478 PR tree-optimization/51513
12479 * tree-cfg.c (gimple_seq_unreachable_p): New function.
12480 (assert_unreachable_fallthru_edge_p): Use it.
12481 (group_case_labels_stmt): Likewise.
12482 * tree-cfg.h: Prototype it.
12483 * stmt.c: Include cfghooks.h and tree-cfg.h.
12484 (emit_case_dispatch_table) <gap_label>: New local variable.
12485 Use it to fill dispatch table gaps.
12486 Test for default_label before updating probabilities.
12487 (expand_case) <default_label>: Remove unneeded initialization.
12488 Test for unreachable default case statement and remove its edge.
12489 Set default_label accordingly.
12490 * tree-ssa-ccp.c (optimize_unreachable): Update comment.
12491
12492 2017-05-10 Carl Love <cel@us.ibm.com>
12493
12494 * config/rs6000/rs6000-c: Add support for built-in functions
12495 vector signed char vec_neg (vector signed char)
12496 vector signed short int vec_neg (vector short int)
12497 vector signed int vec_neg (vector signed int)
12498 vector signed long long vec_neg (vector signed long long)
12499 vector float vec_neg (vector float)
12500 vector double vec_neg (vector double)
12501 * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
12502 overload.
12503 * config/rs6000/altivec.h: Add define for vec_neg
12504 * doc/extend.texi: Update the built-in documentation for the
12505 new built-in functions.
12506
12507 2017-05-10 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12508
12509 PR tree-optimization/77644
12510 * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
12511
12512 2017-05-10 Nathan Sidwell <nathan@acm.org>
12513
12514 * dumpfile.h (TDI_lang_all): New.
12515 (TDF_KIND): New. Renumber others
12516 (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
12517 than bits.
12518 * dumpfile.c (dump_files): Mark language dumps as TDF_LANG. add
12519 lang-all.
12520 (get_dump_file_name): Adjust suffix generation.
12521 (dump_enable_all): Use TDF_KIND.
12522 * doc/invoke.texi (-fdump-lang-all): Document.
12523
12524 * dumpfile.h: Tabify.
12525
12526 2017-05-10 Wilco Dijkstra <wdijkstr@arm.com>
12527
12528 PR target/80671
12529 * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
12530 Move member access before delete.
12531
12532 2017-05-10 Alexandre Oliva <aoliva@redhat.com>
12533
12534 * tree-inline.c (expand_call_inline): Split block at stmt
12535 before the call.
12536
12537 2017-05-09 Michael Meissner <meissner@linux.vnet.ibm.com>
12538
12539 PR target/68163
12540 * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
12541 are now unused after splitting mov{sf,sd}_hardfloat.
12542 (f32_lr2): Likewise.
12543 (f32_lm): Likewise.
12544 (f32_lm2): Likewise.
12545 (f32_li): Likewise.
12546 (f32_li2): Likewise.
12547 (f32_lv): Likewise.
12548 (f32_sr): Likewise.
12549 (f32_sr2): Likewise.
12550 (f32_sm): Likewise.
12551 (f32_sm2): Likewise.
12552 (f32_si): Likewise.
12553 (f32_si2): Likewise.
12554 (f32_sv): Likewise.
12555 (f32_dm): Likewise.
12556 (f32_vsx): Likewise.
12557 (f32_av): Likewise.
12558 (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
12559 For movsf, order stores so the VSX stores occur before the GPR
12560 store which encourages the register allocator to use a traditional
12561 FPR instead of a GPR. For movsd, order the stores so that the GPR
12562 store comes before the VSX stores to allow the power6 to work.
12563 This is due to the power6 not having a 32-bit integer store
12564 instruction from a FPR.
12565 (movsf_hardfloat): Likewise.
12566 (movsd_hardfloat): Likewise.
12567
12568 2017-05-09 Martin Sebor <msebor@redhat.com>
12569
12570 PR translation/80280
12571 * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
12572 added in r247778.
12573
12574 PR translation/80280
12575 * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
12576 data member added in r247778.
12577 (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
12578
12579 2017-05-09 Nathan Sidwell <nathan@acm.org>
12580
12581 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
12582
12583 * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
12584 typedefs.
12585
12586 2017-05-09 Marek Polacek <polacek@redhat.com>
12587
12588 * doc/invoke.texi: Fix typo.
12589
12590 2017-05-09 Richard Biener <rguenther@suse.de>
12591
12592 * tree-vrp.c (vrp_val_is_max): Adjust comment.
12593 (vrp_val_is_min): Likewise.
12594 (set_value_range_to_value): Likewise.
12595 (set_value_range_to_nonnegative): Likewise.
12596 (gimple_assign_nonzero_p): Likewise.
12597 (gimple_stmt_nonzero_p): Likewise.
12598 (vrp_int_const_binop): Likewise. Remove unreachable case.
12599 (adjust_range_with_scev): Adjust comments.
12600 (compare_range_with_value): Likewise.
12601 (extract_range_from_phi_node): Likewise.
12602 (test_for_singularity): Likewise.
12603
12604 2017-05-09 Richard Biener <rguenther@suse.de>
12605
12606 * tree-vrp.c (get_single_symbol): Add assert that we don't
12607 get overflowed constants as invariant part.
12608 (compare_values_warnv): Add comment before the TREE_NO_WARNING
12609 checks. Use wi::cmp instead of recursing for integer constants.
12610 (compare_values): Just ignore whether we assumed undefined
12611 overflow instead of failing the compare.
12612 (extract_range_for_var_from_comparison_expr): Add comment before the
12613 TREE_NO_WARNING sets.
12614 (test_for_singularity): Likewise.
12615 (extract_range_from_comparison): Do not disable optimization
12616 when we assumed undefined overflow.
12617 (extract_range_basic): Remove init of unused var.
12618
12619 2017-05-09 Richard Biener <rguenther@suse.de>
12620
12621 * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
12622 (extract_range_from_multiplicative_op_1): Adjust.
12623 (extract_range_from_binary_expr_1): Use int_const_binop.
12624
12625 2017-05-08 Kelvin Nilsen <kelvin@gcc.gnu.org>
12626
12627 PR target/80101
12628 * config/rs6000/power6.md: Replace store_data_bypass_p calls with
12629 rs6000_store_data_bypass_p in seven define_bypass directives and
12630 in several comments.
12631 * config/rs6000/rs6000-protos.h: Add prototype for
12632 rs6000_store_data_bypass_p function.
12633 * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
12634 function implements slightly different (rs6000-specific) semantics
12635 than store_data_bypass_p, returning false rather than aborting
12636 with assertion error when arguments do not satisfy the
12637 requirements of store data bypass.
12638 (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
12639 rs6000_store_data_bypass_p.
12640
12641 2017-05-08 Max Filippov <jcmvbkbc@gmail.com>
12642
12643 * config/xtensa/xtensa-protos.h
12644 (xtensa_initial_elimination_offset): New declaration.
12645 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
12646 New function. Move its body from the INITIAL_ELIMINATION_OFFSET
12647 macro definition, add case for FRAME_POINTER_REGNUM when
12648 FRAME_GROWS_DOWNWARD.
12649 * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
12650 (INITIAL_ELIMINATION_OFFSET): Replace body with call to
12651 xtensa_initial_elimination_offset.
12652
12653 2017-05-08 Nathan Sidwell <nathan@acm.org>
12654
12655 * doc/invoke.texi: Alphabetize -fdump options.
12656
12657 2017-05-08 Martin Sebor <msebor@redhat.com>
12658
12659 PR translation/80280
12660 * config/sol2-c.c (solaris_pragma_align): Correct quoting.
12661
12662 2017-05-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
12663
12664 * target.def (compute_frame_layout): New optional target hook.
12665 * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
12666 * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
12667 * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
12668 target hook.
12669 * reload1.c (verify_initial_elim_offsets): Likewise.
12670 * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
12671 (use_simple_return_p): Call arm_compute_frame_layout if needed.
12672 (arm_get_frame_offsets): Split up into this ...
12673 (arm_compute_frame_layout): ... and this function.
12674
12675 2017-05-08 Richard Sandiford <richard.sandiford@arm.com>
12676
12677 * config/aarch64/constraints.md (Usa): New constraint.
12678 * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
12679
12680 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
12681
12682 * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
12683 with_multilib_list after it has been checked.
12684
12685 2017-05-08 Richard Biener <rguenther@suse.de>
12686
12687 * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
12688 (bitmap_set_subtract_values): Likewise.
12689
12690 2017-05-08 Richard Biener <rguenther@suse.de>
12691
12692 * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
12693 (gimple_assign_nonzero): ... this and remove strict_overflow_p
12694 argument.
12695 (gimple_stmt_nonzero_warnv_p): Rename to ...
12696 (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
12697 argument.
12698 (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
12699 (extract_range_basic): Adjust, do not disable propagation on
12700 strict overflow sensitive simplification.
12701 (vrp_visit_cond_stmt): Likewise.
12702
12703 2017-05-05 Jan Hubicka <hubicka@ucw.cz>
12704
12705 * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
12706 body size unconditionally.
12707
12708 2017-05-07 Jeff Law <law@redhat.com>
12709
12710 Revert:
12711 2017-05-06 Jeff Law <law@redhat.com>
12712 PR tree-optimization/78496
12713 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
12714 code.
12715
12716 PR tree-optimization/78496
12717 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
12718 (simplify_stmt_using_ranges): Call it.
12719 (vrp_dom_walker::before_dom_children): Extract equivalences
12720 from an ASSERT_EXPR with an equality comparison against a
12721 constant.
12722
12723 2017-05-06 Jeff Law <law@redhat.com>
12724
12725 PR tree-optimization/78496
12726 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
12727 code.
12728
12729 PR tree-optimization/78496
12730 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
12731 (simplify_stmt_using_ranges): Call it.
12732 (vrp_dom_walker::before_dom_children): Extract equivalences
12733 from an ASSERT_EXPR with an equality comparison against a
12734 constant.
12735
12736 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
12737
12738 * lra-constraints.c (lra_copy_reg_equiv): New function.
12739 (split_reg): Use it to copy equivalence information from the
12740 original register to the spill register.
12741
12742 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
12743
12744 PR rtl-optimization/75964
12745 * simplify-rtx.c (simplify_const_relational_operation): Remove
12746 invalid handling of comparisons of integer ABS.
12747
12748 2017-05-06 Uros Bizjak <ubizjak@gmail.com>
12749
12750 * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
12751 initialize to zero.
12752 (init_regs): Remove declaration.
12753 (function_arg_advance_32): Initialize error_p as boolean variable.
12754
12755 2017-05-05 Nathan Sidwell <nathan@acm.org>
12756
12757 * store-motion.c (remove_reachable_equiv_notes): Reformat long
12758 lines. Use for (;;).
12759
12760 2017-05-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12761
12762 * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
12763 (rs6000_init_cost): Initialize rs6000_vect_nonmem.
12764 (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
12765 (rs6000_finish_cost): Avoid vectorizing simple copy loops with
12766 VF=2 that require versioning.
12767
12768 2017-05-05 David Malcolm <dmalcolm@redhat.com>
12769
12770 * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
12771 int.
12772
12773 2017-05-05 David Malcolm <dmalcolm@redhat.com>
12774
12775 * diagnostic.h (diagnostic_override_option_index): Convert from
12776 macro to inline function.
12777
12778 2017-05-05 David Malcolm <dmalcolm@redhat.com>
12779
12780 * diagnostic.c (last_module_changed_p): New function.
12781 (set_last_module): New function.
12782 (diagnostic_report_current_module): Convert macro usage to
12783 the above functions.
12784 * diagnostic.h (diagnostic_context::last_module): Strengthen
12785 from const line_map * to const line_map_ordinary *.
12786 (diagnostic_last_module_changed): Delete macro.
12787 (diagnostic_set_last_module): Delete macro.
12788
12789 2017-05-05 David Malcolm <dmalcolm@redhat.com>
12790
12791 * diagnostic.c (diagnostic_impl): Replace report_diagnostic
12792 with diagnostic_report_diagnostic.
12793 (diagnostic_n_impl_richloc): Likewise.
12794 * diagnostic.h (report_diagnostic): Delete macro.
12795 * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
12796 with diagnostic_report_diagnostic.
12797 * substring-locations.c (format_warning_va): Likewise.
12798
12799 2017-05-05 David Malcolm <dmalcolm@redhat.com>
12800
12801 * diagnostic.c (diagnostic_report_diagnostic): Eliminate
12802 save/restor of format_spec. Move option-printing code to...
12803 (print_option_information): ...this new function, and
12804 reimplement by simply printing to the pretty_printer,
12805 rather than appending to the format string.
12806
12807 2017-05-05 David Malcolm <dmalcolm@redhat.com>
12808
12809 * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
12810 handling logic into...
12811 (update_effective_level_from_pragmas): ...this new function.
12812
12813 2017-05-04 Andrew Waterman <andrew@sifive.com>
12814
12815 * config/riscv/riscv.opt (mstrict-align): New option.
12816 * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it. Update comment.
12817 (SLOW_UNALIGNED_ACCESS): Define.
12818 (riscv_slow_unaligned_access): Declare.
12819 * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
12820 field.
12821 (riscv_slow_unaligned_access): New variable.
12822 (rocket_tune_info): Set slow_unaligned_access to true.
12823 (optimize_size_tune_info): Set slow_unaligned_access to false.
12824 (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
12825 (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
12826 (riscv_option_override): Set riscv_slow_unaligned_access.
12827 * doc/invoke.texi: Add -mstrict-align to RISC-V.
12828
12829 2017-05-04 Kito Cheng <kito.cheng@gmail.com>
12830
12831 * config/riscv/riscv.md: Unify indentation.
12832
12833 2017-05-05 Michael Meissner <meissner@linux.vnet.ibm.com>
12834
12835 PR target/79038
12836 PR target/79202
12837 PR target/79203
12838 * config/rs6000/rs6000.md (u code attribute): Add FIX and
12839 UNSIGNED_FIX.
12840 (extendsi<mode>2): Add support for doing sign extension via
12841 VUPKHSW and XXPERMDI if the value is in Altivec registers and we
12842 don't have ISA 3.0 instructions.
12843 (extendsi<mode>2 splitter): Likewise.
12844 (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
12845 generate the normal insns since SImode can now go in vector
12846 registers. Disallow the special UNSPECs needed for previous
12847 machines to hide SImode being used. Add new insns
12848 fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
12849 (fix_trunc<mode>si2_stfiwx): Likewise.
12850 (fix_trunc<mode>si2_internal): Likewise.
12851 (fixuns_trunc<mode>si2): Likewise.
12852 (fixuns_trunc<mode>si2_stfiwx): Likewise.
12853 (fctiw<u>z_<mode>_smallint): Likewise.
12854 (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
12855 of floating point to 32-bit integer from doing a direct move to
12856 the GPR registers to do a store.
12857 (fctiwz_<mode>): Break long line.
12858
12859 2017-05-05 Bin Cheng <bin.cheng@arm.com>
12860
12861 * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
12862 * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
12863 (addr_list, addr_offset_valid_p): New.
12864 (split_address_groups): Check offset validity with above function.
12865 (gt-tree-ssa-loop-ivopts.h): Include header file.
12866
12867 2017-05-05 Nathan Sidwell <nathan@acm.org>
12868
12869 * config.gcc (arm*-*-*): Add missing 'fi'.
12870
12871 2017-05-05 Steve Ellcey <sellcey@cavium.com>
12872
12873 * doc/invoke.texi (-fopt-info): Explicitly say order of options
12874 included in -fopt-info does not matter.
12875 * doc/optinfo.texi (-fopt-info): Fix description of default
12876 behavour. Explicitly say order of options included in -fopt-info
12877 does not matter.
12878
12879 2017-05-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
12880
12881 * config.gcc: Allow combinations of aprofile and rmprofile values for
12882 --with-multilib-list.
12883 * config/arm/t-multilib: New file.
12884 * config/arm/t-aprofile: Remove initialization of MULTILIB_*
12885 variables. Remove setting of ISA and floating-point ABI in
12886 MULTILIB_OPTIONS and MULTILIB_DIRNAMES. Set architecture and FPU in
12887 MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
12888 and MULTILIB_DIRNAMES respectively. Add comment to introduce all
12889 matches. Add architecture matches for marvel-pj4 and generic-armv7-a
12890 CPU options.
12891 * config/arm/t-rmprofile: Likewise except for the matches changes.
12892 * doc/install.texi (--with-multilib-list): Document the combination of
12893 aprofile and rmprofile values and warn about pitfalls in doing that.
12894
12895 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
12896
12897 * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
12898 (movdi_aarch64): Likewise.
12899
12900 2017-05-05 Jakub Jelinek <jakub@redhat.com>
12901
12902 PR tree-optimization/80632
12903 * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
12904 field.
12905 (build_arrays): Initialize it for virtual phis.
12906 (fix_phi_nodes): Use it for virtual phis.
12907
12908 PR tree-optimization/80558
12909 * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
12910 [x, y] op z into [x op, y op z] for op & or | if conditions
12911 are met.
12912
12913 2017-05-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
12914 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
12915
12916 PR target/71607
12917 * config/arm/arm.md (use_literal_pool): Remove.
12918 (64-bit immediate split): No longer takes cost into consideration
12919 if arm_disable_literal_pool is enabled.
12920 * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
12921 used when arm_disable_literal_pool is enabled.
12922 (arm_max_const_double_inline_cost): Remove use of
12923 arm_disable_literal_pool.
12924 (push_minipool_fix): Add assert.
12925 (arm_reorg): Add return if arm_disable_literal_pool is enabled.
12926 * config/arm/vfp.md (no_literal_pool_df_immediate): New.
12927 (no_literal_pool_sf_immediate): New.
12928
12929 2017-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12930
12931 PR tree-optimization/80613
12932 * tree-ssa-dce.c (propagate_necessity): Remove cases for
12933 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
12934
12935 2017-05-05 Richard Biener <rguenther@suse.de>
12936
12937 * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
12938
12939 2017-05-05 Georg-Johann Lay <avr@gjlay.de>
12940
12941 * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
12942 of this flag from insn conditions due to removal from r247495.
12943
12944 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
12945
12946 * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
12947 New function.
12948 (arm_early_store_addr_dep_ptr): Likewise.
12949 * config/arm/aarch-common-protos.h
12950 (arm_early_load_addr_dep_ptr): Add prototype.
12951 (arm_early_store_addr_dep_ptr): Likewise.
12952 * config/arm/cortex-a53.md: Add new bypasses.
12953
12954 2017-05-05 Jakub Jelinek <jakub@redhat.com>
12955
12956 * tree.c (next_type_uid): Change type to unsigned.
12957 (type_hash_canon): Decrement back next_type_uid if
12958 freeing a type node with the highest TYPE_UID. For INTEGER_TYPEs
12959 also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
12960 if possible.
12961
12962 2017-05-04 Martin Sebor <msebor@redhat.com>
12963
12964 * builtins.c: Fix a trivial typo in a comment.
12965
12966 PR middle-end/79234
12967 * builtins.c (check_sizes): Adjust to handle reading past the end.
12968 Avoid printing excessive upper bound of ranges. Use %E to print
12969 tree nodes instead of converting them to %wu.
12970 (expand_builtin_memchr): New function.
12971 (compute_dest_size): Rename...
12972 (compute_objsize): ...to this.
12973 (expand_builtin_memcpy): Adjust.
12974 (expand_builtin_mempcpy): Adjust.
12975 (expand_builtin_strcat): Adjust.
12976 (expand_builtin_strcpy): Adjust.
12977 (check_strncat_sizes): Adjust.
12978 (expand_builtin_strncat): Adjust.
12979 (expand_builtin_strncpy): Adjust and simplify.
12980 (expand_builtin_memset): Adjust.
12981 (expand_builtin_bzero): Adjust.
12982 (expand_builtin_memcmp): Adjust.
12983 (expand_builtin): Handle memcmp.
12984 (maybe_emit_chk_warning): Check strncat just once.
12985
12986 2017-05-04 Martin Sebor <msebor@redhat.com>
12987
12988 PR preprocessor/79214
12989 PR middle-end/79222
12990 PR middle-end/79223
12991 * builtins.c (check_sizes): Add inlining context and issue
12992 warnings even when -Wno-system-headers is set.
12993 (check_strncat_sizes): Same.
12994 (expand_builtin_strncat): Same.
12995 (expand_builtin_memmove): New function.
12996 (expand_builtin_stpncpy): Same.
12997 (expand_builtin): Handle memmove and stpncpy.
12998
12999 2017-05-04 Bin Cheng <bin.cheng@arm.com>
13000
13001 * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
13002 which is not used any more.
13003
13004 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
13005
13006 * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
13007
13008 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
13009
13010 * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
13011 (cortexa53_tunings): Likewise.
13012 (cortexa57_tunings): Likewise.
13013 (cortexa72_tunings): Likewise.
13014 (cortexa73_tunings): Likewise.
13015
13016 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
13017
13018 * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
13019 Set loop alignment to 8.
13020
13021 2017-05-04 Martin Sebor <msebor@redhat.com>
13022
13023 PR translation/80280
13024 * builtins.c (expand_builtin_object_size): Add missing quoting to
13025 %D and like directives.
13026 * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
13027 (hsa_type_for_tree_type): Same.
13028 (verify_function_arguments): Same.
13029 * symtab.c (symbol_table::change_decl_assembler_name): Same.
13030 * varasm.c (get_section): Same.
13031 (mark_weak): Same.
13032
13033 2017-05-04 Martin Sebor <msebor@redhat.com>
13034
13035 PR translation/80280
13036 * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
13037
13038 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
13039
13040 * config/aarch64/aarch64.c (generic_addrcost_table):
13041 Change HI/TI mode setting.
13042
13043 2017-05-04 Martin Jambor <mjambor@suse.cz>
13044
13045 PR tree-optimization/80622
13046 * tree-sra.c (comes_initialized_p): New function.
13047 (build_accesses_from_assign): Only set write lazily when
13048 comes_initialized_p is false.
13049 (analyze_access_subtree): Use comes_initialized_p.
13050 (propagate_subaccesses_across_link): Assert !comes_initialized_p
13051 instead of testing for PARM_DECL.
13052
13053 2017-05-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13054
13055 * config/aarch64/aarch64.md (prefetch); Adjust predicate and
13056 constraint on operand 0 to allow more general addressing modes.
13057 Adjust output template.
13058 * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
13059 New function.
13060 * config/aarch64/aarch64-protos.h
13061 (aarch64_address_valid_for_prefetch_p): Declare prototype.
13062 * config/aarch64/constraints.md (Dp): New address constraint.
13063 * config/aarch64/predicates.md (aarch64_prefetch_operand): New
13064 predicate.
13065
13066 2017-05-04 Jan Hubicka <hubicka@ucw.cz>
13067
13068 * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
13069 update use of estimate_ipcp_clone_size_and_time.
13070 (estimate_local_effects): Update use of
13071 estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
13072 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
13073 * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
13074 Return nonspecialized time.
13075
13076 2017-05-04 Richard Biener <rguenther@suse.de>
13077
13078 * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
13079 for the last VUSE which def dominates the PHI. Directly call
13080 maybe_skip_until.
13081 (get_continuation_for_phi_1): Remove.
13082
13083 2017-05-04 Richard Sandiford <richard.sandiford@linaro.org>
13084
13085 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
13086 to explain the use of truncating division. Cap the number of
13087 iterations to the maximum given by nb_iterations_upper_bound,
13088 if defined.
13089
13090 2017-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
13091
13092 * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
13093 * configure: Regenerate.
13094 * config.in: Regenerate.
13095 * config/i386/driver-mingw32.c: new file.
13096 * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
13097 * config.host: Link driver-mingw32.o on MinGW host.
13098 * doc/install.texi: Document new --enable-mingw-wildcard configure
13099 option.
13100
13101 2017-05-04 Marek Polacek <polacek@redhat.com>
13102
13103 PR tree-optimization/80612
13104 * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
13105
13106 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
13107 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
13108
13109 * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
13110 (movt splitter): Likewise.
13111 * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
13112 to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
13113 (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
13114 block for Thumb-1 with MOVT.
13115 (thumb2_legitimate_address_p): Move code block ...
13116 (can_avoid_literal_pool_for_label_p): ... into this new function.
13117 (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
13118 literal pool.
13119 (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
13120 * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
13121 "M-profile targets with the MOVT instruction".
13122
13123 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
13124
13125 * config/arm/arm-builtins.c (arm_init_builtins): Rename
13126 __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
13127 __builtin_arm_stfscr to __builtin_arm_set_fpscr.
13128
13129 2017-05-04 Martin Liska <mliska@suse.cz>
13130
13131 * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
13132 variable cond_code.
13133
13134 2017-05-04 Richard Biener <rguenther@suse.de>
13135
13136 * tree.c (array_at_struct_end_p): Handle arrays at struct
13137 end with flexarrays more conservatively. Refactor and treat
13138 arrays of arrays or aggregates more strict. Fix
13139 VIEW_CONVERT_EXPR handling. Remove allow_compref argument.
13140 * tree.c (array_at_struct_end_p): Adjust prototype.
13141 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
13142 * gimple-fold.c (get_range_strlen): Likewise.
13143 * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
13144
13145 2017-05-04 Richard Biener <rguenther@suse.de>
13146
13147 PR tree-optimization/31130
13148 * tree-vrp.c (needs_overflow_infinity): Remove as always returning
13149 false.
13150 (supports_overflow_infinity): Likewise.
13151 (is_negative_overflow_infinity): Likewise.
13152 (is_positive_overflow_infinity): Likewise.
13153 (is_overflow_infinity): Likewise.
13154 (stmt_overflow_infinity): Likewise.
13155 (overflow_infinity_range_p): Likewise.
13156 (usable_range_p): Remove as always returning true.
13157 (make_overflow_infinity): Remove.
13158 (negative_overflow_infinity): Likewise.
13159 (positive_overflow_infinity): Likewise.
13160 (avoid_overflow_infinity): Likewise.
13161 (set_value_range): Adjust accordingly.
13162 (set_value_range_to_nonnegative): Likewise, remove now unused
13163 overflow_infinity arg.
13164 (vrp_operand_equal_p): Adjust.
13165 (update_value_range): Likewise.
13166 (range_int_cst_singleton_p): Likewise.
13167 (operand_less_p): Likewise.
13168 (compare_values_warnv): Likewise.
13169 (extract_range_for_var_from_comparison_expr): Likewise.
13170 (vrp_int_const_binop): Likewise.
13171 (zero_nonzero_bits_from_vr): Likewise.
13172 (extract_range_from_multiplicative_op_1): Likewise.
13173 (extract_range_from_binary_expr_1): Likewise.
13174 (extract_range_from_unary_expr): Likewise.
13175 (extract_range_from_comparison): Likewise.
13176 (extract_range_basic): Likewise.
13177 (adjust_range_with_scev): Likewise.
13178 (compare_ranges): Likewise.
13179 (compare_range_with_value): Likewise.
13180 (dump_value_range): Likewise.
13181 (test_for_singularity): Likewise, remove strict_overflow_p parameter
13182 never used.
13183 (simplify_cond_using_ranges): Adjust.
13184
13185 2017-05-04 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
13186
13187 * brig-builtins.def: Added a builtin for class_f64.
13188 * builtin-types.def: Added a builtin type needed by class_f64.
13189
13190 2017-05-03 Jason Merrill <jason@redhat.com>
13191
13192 * timevar.def: Add TV_CONSTEXPR.
13193
13194 2017-05-03 David Malcolm <dmalcolm@redhat.com>
13195
13196 * common.opt (fdiagnostics-parseable-fixits): Fix typo.
13197
13198 2017-05-03 Martin Jambor <mjambor@suse.cz>
13199
13200 * ipa-prop.c (ipa_update_after_lto_read): Removed.
13201 * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
13202 * ipa-cp.c (ipcp_propagate_stage): Do not call
13203 ipa_update_after_lto_read.
13204 * ipa-inline.c (ipa_inline): Likewise.
13205
13206 2017-05-03 Martin Jambor <mjambor@suse.cz>
13207
13208 * ipa-prop.h (ipa_edge_args): Make a class. Mark with for_user GTY
13209 tag. Added a default constructor and a destructor.
13210 (ipa_edge_args_sum_t): New class;
13211 (ipa_edge_args_sum): Declare.
13212 (ipa_edge_args_vector): Remove declaration.
13213 (IPA_EDGE_REF): Use ipa_edge_args_sum.
13214 (ipa_free_edge_args_substructures): Remove declaration.
13215 (ipa_check_create_edge_args): Use ipa_edge_args_sum.
13216 (ipa_edge_args_info_available_for_edge_p): Likewise.
13217 * ipa-prop.c (ipa_edge_args_vector): Removed.
13218 (edge_removal_hook_holder): Likewise.
13219 (edge_duplication_hook_holder): Likewise.
13220 (ipa_edge_args_sum): New variable.
13221 (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
13222 ipa_edge_args_vector.
13223 (ipa_free_edge_args_substructures): Likewise.
13224 (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
13225 ipa_edge_args_vector.
13226 (ipa_edge_removal_hook): Turned into method
13227 ipa_edge_args_sum_t::remove.
13228 (ipa_edge_duplication_hook): Turned into method
13229 ipa_edge_args_sum_t::duplicate.
13230 (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
13231 registering edge hooks.
13232 (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
13233 * ipa-inline-analysis.c (estimate_function_body_sizes): Test
13234 ipa_edge_args_sum instead of ipa_edge_args_vector.
13235 * ipa-profile.c (ipa_profile): Likewise.
13236
13237 2017-05-03 Martin Jambor <mjambor@suse.cz>
13238
13239 * symbol-summary.h (function_summary): New method exists.
13240 (function_summary::symtab_removal): Deallocate through release.
13241 (call_summary): New class.
13242 (gt_ggc_mx): New overload.
13243 (gt_pch_nx): Likewise.
13244 (gt_pch_nx): Likewise.
13245
13246 2017-05-03 Jeff Law <law@redhat.com>
13247
13248 PR tree-optimization/78496
13249 * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
13250 from simplify_cond_using_ranges. Split off code to walk
13251 backwards through casts into ...
13252 (simplify_cond_using_ranges_2): New function.
13253 (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
13254 (execute_vrp): After identifying jump threads, call
13255 simplify_cond_using_ranges_2.
13256
13257 2017-05-03 Jan Hubicka <hubicka@ucw.cz>
13258
13259 PR bootstrap/80609
13260 * ipa-inline.h (inline_summary): Add ctor.
13261 (create_ggc): Do not use ggc_cleared_alloc.
13262
13263 2017-05-03 Jeff Downs <heydowns@somuchpressure.net>
13264 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13265
13266 * gcc.c (handle_braces): Support escaping in switch matching
13267 text.
13268 * doc/invoke.texi (Spec Files): Document it.
13269 Remove superfluous @code markup in items.
13270
13271 2017-05-03 David Malcolm <dmalcolm@redhat.com>
13272
13273 * diagnostic-show-locus.c (struct column_range): New struct.
13274 (get_affected_columns): New function.
13275 (get_printed_columns): New function.
13276 (struct correction): New struct.
13277 (correction::ensure_capacity): New function.
13278 (correction::ensure_terminated): New function.
13279 (struct line_corrections): New struct.
13280 (line_corrections::~line_corrections): New dtor.
13281 (line_corrections::add_hint): New function.
13282 (layout::print_trailing_fixits): Reimplement in terms of the new
13283 classes.
13284 (selftest::test_overlapped_fixit_printing): New function.
13285 (selftest::diagnostic_show_locus_c_tests): Call it.
13286
13287 2017-05-03 Nathan Sidwell <nathan@acm.org>
13288
13289 Canonicalize canonical type hashing
13290 * tree.h (type_hash_canon_hash): Declare.
13291 * tree.c (type_hash_list, attribute_hash_list): Move into
13292 type_hash_canon_hash.
13293 (build_type_attribute_qual_variant): Break out hash code calc into
13294 type_hash_canon_hash.
13295 (type_hash_canon_hash): New. Generic type hash computation.
13296 (build_range_type_1, build_array_type_1, build_function_type,
13297 build_method_type_directly, build_offset_type, build_complex_type,
13298 make_vector_type): Call it.
13299
13300 2017-05-03 Richard Biener <rguenther@suse.de>
13301
13302 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
13303 When all DRs have unknown misaligned do not always peel
13304 when there is a store but apply the same costing model as if
13305 there were only loads.
13306
13307 2017-05-03 Richard Biener <rguenther@suse.de>
13308
13309 Revert
13310 PR tree-optimization/80492
13311 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
13312 compare_base_decls returning dont-know properly.
13313
13314 2017-05-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13315
13316 * config/arm/iterators.md (CCSI): New mode iterator.
13317 (arch): New mode attribute.
13318 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
13319 (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
13320 (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This. Use CCSI
13321 code iterator for success result mode.
13322 * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
13323 the corresponding new insn generators.
13324
13325 2017-05-03 Bin Cheng <bin.cheng@arm.com>
13326
13327 Revert r247509
13328 2017-05-02 Bin Cheng <bin.cheng@arm.com>
13329 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
13330
13331 2017-05-03 Richard Sandiford <richard.sandiford@linaro.org>
13332
13333 * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
13334 (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
13335 (DDR_A): Wrap DDR argument in brackets.
13336 (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
13337 (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
13338 (DDR_REVERSED_P): Likewise.
13339
13340 2017-05-03 Jakub Jelinek <jakub@redhat.com>
13341
13342 PR tree-optimization/79472
13343 * tree-switch-conversion.c (struct switch_conv_info): Add
13344 contiguous_range and default_case_nonstandard fields.
13345 (collect_switch_conv_info): Compute contiguous_range and
13346 default_case_nonstandard fields, don't clear final_bb if
13347 contiguous_range and only the default case doesn't have the required
13348 structure.
13349 (check_all_empty_except_final): Set default_case_nonstandard instead
13350 of failing if contiguous_range and the default case doesn't have empty
13351 block.
13352 (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
13353 and only the default case doesn't have the required constants. Skip
13354 virtual phis.
13355 (gather_default_values): Skip virtual phis. Allow non-NULL CASE_LOW
13356 if default_case_nonstandard.
13357 (build_constructors): Build constant 1 just once. Assert that default
13358 values aren't inserted in between cases if contiguous_range. Skip
13359 virtual phis.
13360 (build_arrays): Skip virtual phis.
13361 (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
13362 (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
13363 Handle virtual phis.
13364 (gen_inbound_check): Handle default_case_nonstandard case.
13365 (process_switch): Adjust check_final_bb caller. Call
13366 gather_default_values with the first non-default case instead of
13367 default case if default_case_nonstandard.
13368
13369 2017-05-02 Nathan Sidwell <nathan@acm.org>
13370
13371 * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
13372 check. Fix formatting.
13373
13374 2017-05-02 Jan Hubicka <hubicka@ucw.cz>
13375
13376 * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
13377 errors when comparing specialized and unspecialized times.
13378
13379 2017-05-02 David Malcolm <dmalcolm@redhat.com>
13380
13381 * diagnostic-show-locus.c
13382 (layout::should_print_annotation_line_p): Make private.
13383 (layout::print_annotation_line): Make private.
13384 (layout::annotation_line_showed_range_p): Make private.
13385 (layout::show_ruler): Make private.
13386 (layout::print_source_line): Make private. Pass in line and
13387 line_width, rather than calling location_get_source_line. Drop
13388 returned value.
13389 (layout::print_leading_fixits): New method.
13390 (layout::print_any_fixits): Rename to...
13391 (layout::print_trailing_fixits): ...this, and make private.
13392 Don't print newline fixits.
13393 (diagnostic_show_locus): Move logic for printing one row into...
13394 (layout::print_line): ...this new function. Move the
13395 location_get_source_line call and error-handling from
13396 print_source_line to here. Call print_leading_fixits, and rename
13397 print_any_fixits to print_trailing_fixits.
13398 (selftest::test_fixit_insert_containing_newline): Update now that
13399 newlines are partially supported.
13400 (selftest::test_fixit_insert_containing_newline_2): New test.
13401 (selftest::test_fixit_replace_containing_newline): Update comments.
13402 (selftest::diagnostic_show_locus_c_tests): Call the new test.
13403 * edit-context.c (class added_line): New class.
13404 (class edited_line): Describe newline handling in comment.
13405 (edited_line::actually_edited_p): New method.
13406 (edited_line::print_content): Delete redundant decl.
13407 (edited_line::m_predecessors): New field.
13408 (edited_file::print_content): Call edited_line::print_content.
13409 (edited_file::print_diff): Update to support newlines.
13410 (edited_file::print_diff_hunk): Likewise.
13411 (edited_file::print_run_of_changed_lines): New function.
13412 (edited_file::print_diff_line): Convert to...
13413 (print_diff_line): ...this.
13414 (edited_file::get_effective_line_count): New function.
13415 (edited_line::edited_line): Initialize new field m_predecessors.
13416 (edited_line::~edited_line): Clean up m_predecessors.
13417 (edited_line::apply_fixit): Handle newlines.
13418 (edited_line::get_effective_line_count): New function.
13419 (edited_line::print_content): New function.
13420 (edited_line::print_diff_lines): New function.
13421 (selftest::test_applying_fixits_insert_containing_newline): New
13422 test.
13423 (selftest::test_applying_fixits_replace_containing_newline): New
13424 test.
13425 (selftest::insert_line): New function.
13426 (selftest::test_applying_fixits_multiple_lines): Add example of
13427 inserting a line.
13428 (selftest::edit_context_c_tests): Call the new tests.
13429
13430 2017-05-02 Bin Cheng <bin.cheng@arm.com>
13431
13432 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
13433 parameter cand. Update dump information.
13434 (get_computation_cost): Update uses.
13435
13436 2017-05-02 Bin Cheng <bin.cheng@arm.com>
13437
13438 * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
13439 (get_computation_aff): Reorder parameters. Use get_computation_aff_1.
13440 (get_computation_at, rewrite_use_address): Update use of
13441 get_computation_aff.
13442
13443 2017-05-02 Bin Cheng <bin.cheng@arm.com>
13444
13445 * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
13446 (get_computation): Delete.
13447 (get_computation_cost): Implement like get_computation_cost_at.
13448 Use get_computation_at.
13449 (get_computation_cost_at): Delete.
13450 (rewrite_use_nonlinear_expr): Use get_computation_at.
13451 (rewrite_use_compare, remove_unused_ivs): Ditto.
13452
13453 2017-05-02 Bin Cheng <bin.cheng@arm.com>
13454
13455 * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
13456
13457 2017-05-02 Bin Cheng <bin.cheng@arm.com>
13458
13459 * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
13460 (ivopts_global_cost_for_size): Rename parameter and update uses.
13461 (iv_ca_recount_cost): Update uses.
13462 (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
13463 candidates seperately in n_invs and n_cands.
13464 (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
13465
13466 2017-05-02 Bin Cheng <bin.cheng@arm.com>
13467
13468 * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
13469 (find_inv_vars_cb): New.
13470 (find_depends): Renamed to ...
13471 (find_inv_vars): ... this.
13472 (add_candidate_1, force_var_cost): Call find_inv_vars.
13473 (split_address_cost, determine_group_iv_cost_cond): Ditto.
13474
13475 2017-05-02 Bin Cheng <bin.cheng@arm.com>
13476
13477 * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
13478 inv_vars. Add inv_exprs.
13479 (struct iv_cand): Rename depends_on to inv_vars.
13480 (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
13481 max_inv_var_id/n_inv_var_uses. Move max_inv_expr_id around.
13482 Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
13483 (dump_cand): Dump inv_vars.
13484 (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
13485 (record_invariant, find_depends, add_candidate_1): Ditto.
13486 (set_group_iv_cost, force_var_cost): Ditto.
13487 (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
13488 (get_computation_cost_at, get_computation_cost): Ditto.
13489 (determine_group_iv_cost_generic): Ditto.
13490 (determine_group_iv_cost_address): Ditto.
13491 (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
13492 (determine_group_iv_costs): Ditto.
13493 (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
13494 (iv_ca_set_remove_invariants): Renamed to ...
13495 (iv_ca_set_remove_invs): ... this. Support inv_vars and inv_exprs.
13496 (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
13497 (iv_ca_set_add_invariants): Renamed to ...
13498 (iv_ca_set_add_invs): ... this. Support inv_vars and inv_exprs.
13499 (iv_ca_set_cp): Use iv_ca_set_add_invs.
13500 (iv_ca_has_deps): Support inv_vars and inv_exprs.
13501 (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
13502 (create_new_ivs): Remove useless dump.
13503
13504 2017-05-02 Bin Cheng <bin.cheng@arm.com>
13505
13506 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
13507 iv_cand code.
13508 (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
13509 (iv_ca_set_no_cp, create_new_iv): Ditto.
13510
13511 2017-05-02 Bin Cheng <bin.cheng@arm.com>
13512
13513 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
13514
13515 2017-05-02 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
13516
13517 * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
13518 function tree_check2.
13519
13520 2017-05-02 Martin Liska <mliska@suse.cz>
13521
13522 * doc/gcov.texi: Add missing preposition.
13523 * gcov.c (function_info::function_info): Properly fill up
13524 all member variables.
13525
13526 2017-05-02 Tamar Christina <tamar.christina@arm.com>
13527
13528 * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
13529
13530 2017-05-02 Tamar Christina <tamar.christina@arm.com>
13531
13532 * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
13533
13534 2017-05-02 Martin Liska <mliska@suse.cz>
13535
13536 PR lto/77954.
13537 * lto-streamer-in.c (lto_read_tree_1): Remove
13538 LTO_STREAMER_DEBUG.
13539 * lto-streamer.c (struct tree_hash_entry): Likewise.
13540 (struct tree_entry_hasher): Likewise.
13541 (tree_entry_hasher::hash): Likewise.
13542 (tree_entry_hasher::equal): Likewise.
13543 (lto_streamer_init): Likewise.
13544 (lto_orig_address_map): Likewise.
13545 (lto_orig_address_get): Likewise.
13546 (lto_orig_address_remove): Likewise.
13547 * lto-streamer.h: Likewise.
13548 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
13549 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
13550
13551 2017-05-02 Sebastian Peryt <sebastian.peryt@intel.com>
13552
13553 * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
13554 (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
13555 (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
13556 (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
13557 (mm_maskz_sub_round_ss, _mm_mask_add_sd)
13558 (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
13559 (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
13560 (mm_maskz_sub_ss): New intrinsics.
13561 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
13562 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
13563 * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
13564 (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
13565 (__builtin_ia32_subss_mask_round): New builtins.
13566 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
13567 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
13568 * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
13569 Renamed to ...
13570 (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
13571 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
13572 Changed to ...
13573 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
13574 ... this.
13575
13576 2017-05-02 Martin Jambor <mjambor@suse.cz>
13577
13578 PR tree-optimization/78687
13579 * tree-sra.c (access): New field parent.
13580 (process_subtree_disqualification): New function.
13581 (disqualify_candidate): Call it.
13582 (build_accesses_from_assign): Reset write flag if creating an
13583 assighnment link.
13584 (build_access_subtree): Fill in parent field and also prpagate
13585 down grp_write flag.
13586 (create_artificial_child_access): New parameter set_grp_write, set
13587 grp_write to its value.
13588 (propagate_subaccesses_across_link): Also propagate grp_write flag
13589 values.
13590 (propagate_all_subaccesses): Push the closest parent back to work
13591 queue if add_access_to_work_queue returned true.
13592
13593 2017-05-02 Richard Biener <rguenther@suse.de>
13594
13595 * common.opt (fstrict-overflow): Alias negative to fwrapv.
13596 * doc/invoke.texi (fstrict-overflow): Remove all traces of
13597 -fstrict-overflow documentation.
13598 * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
13599 (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
13600 flag_strict_overflow.
13601 * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
13602 * lto-opts.c (lto_write_options): Do not stream it.
13603 * lto-wrapper.c (merge_and_complain): Do not handle it.
13604 * opts.c (default_options_table): Do not set -fstrict-overflow.
13605 (finish_options): Likewise do not clear it when sanitizing.
13606 * simplify-rtx.c (simplify_const_relational_operation): Do not
13607 test flag_strict_overflow.
13608
13609 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
13610
13611 * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
13612 using enabled attribute.
13613 (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
13614 (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
13615 (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
13616 (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
13617 (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
13618 (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
13619 (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
13620 (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
13621 (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
13622 (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
13623
13624 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
13625
13626 * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
13627
13628 2017-05-02 Richard Biener <rguenther@suse.de>
13629
13630 PR tree-optimization/80591
13631 Revert
13632 2017-04-10 Richard Biener <rguenther@suse.de>
13633
13634 * tree-ssa-structalias.c (find_func_aliases): Properly handle
13635 asm inputs.
13636
13637 2017-05-02 Richard Biener <rguenther@suse.de>
13638
13639 PR tree-optimization/80549
13640 * tree-cfgcleanup.c (mfb_keep_latches): New helper.
13641 (cleanup_tree_cfg_noloop): Create forwarders to known loop
13642 headers if they do not have a preheader.
13643
13644 2017-05-02 Martin Liska <mliska@suse.cz>
13645
13646 PR other/80589
13647 * common.opt: Fix typo.
13648 * doc/invoke.texi: Likewise.
13649
13650 2017-05-01 Jan Beulich <jbeulich@suse.com>
13651
13652 * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
13653 swapping, add (x,x,m,x,n) alternative.
13654
13655 2017-05-01 Nathan Sidwell <nathan@acm.org>
13656
13657 * calls.c (combine_pending_stack_adjustment_and_call): Remove
13658 unnecessary unadjusted_alignment check.
13659
13660 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
13661
13662 PR c++/80038
13663 * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
13664 operations here.
13665 * gimplify.c (gimplify_cilk_detach): New function.
13666 (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
13667 * tree-core.h: Document EXPR_CILK_SPAWN.
13668 * tree.h (EXPR_CILK_SPAWN): Define.
13669
13670 2017-05-01 David Malcolm <dmalcolm@redhat.com>
13671
13672 * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
13673 to use new fixit_hint representation, using the "replace" logic.
13674 (get_line_span_for_fixit_hint): Likewise.
13675 (layout::print_any_fixits): Likewise.
13676 (selftest::test_one_liner_many_fixits): Rename to...
13677 (selftest::test_one_liner_many_fixits_1): ...this, and update
13678 comment and expected output to reflect that the multiple fix-it
13679 hints are now consolidated into one insertion.
13680 (selftest::test_one_liner_many_fixits_2): New test.
13681 (selftest::test_diagnostic_show_locus_one_liner): Update for
13682 above.
13683 (selftest::test_fixit_consolidation): Update for fix-it API
13684 change.
13685 * diagnostic.c (print_parseable_fixits): Likewise.
13686 * edit-context.c (edited_line::m_line_events): Convert from
13687 auto_vec <line_event *> to auto_vec <line_event>.
13688 (class line_event): Convert from abstract base class to a concrete
13689 class, taking over the role of replace_event.
13690 (class insert_event): Delete.
13691 (class replace_event): Rename to class line_event. Convert to
13692 half-open range.
13693 (edit_context::add_fixits): Reimplement.
13694 (edit_context::apply_insert): Delete.
13695 (edit_context::apply_replace): Rename to...
13696 (edit_context::apply_fixit): ...this. Convert to half-open range.
13697 (edited_file::apply_insert): Delete.
13698 (edited_file::apply_replace): Rename to...
13699 (edited_file::apply_fixit): ...this.
13700 (edited_line::~edited_line): Drop deletion of events.
13701 (edited_line::apply_insert): Delete.
13702 (edited_line::apply_replace): Rename to...
13703 (edited_line::apply_fixit): ...this. Convert to half-open range.
13704 Update for change to type of m_line_events.
13705 * edit-context.h (edit_context::apply_insert): Delete.
13706 (edit_context::apply_replace): Rename to...
13707 (edit_context::apply_fixit): ...this.
13708
13709 2017-05-01 Martin Sebor <msebor@redhat.com>
13710
13711 * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
13712 known.
13713
13714 2017-05-01 Uros Bizjak <ubizjak@gmail.com>
13715
13716 PR target/68491
13717 * config/i386/cpuid.h (__get_cpuid): Always return 0 when
13718 __get_cpuid_max returns 0.
13719 (__get_cpuid_count): Ditto.
13720
13721 2017-05-01 Eric Botcazou <ebotcazou@adacore.com>
13722
13723 * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
13724 replacement expression is another instance of one of its arguments.
13725
13726 2017-05-01 Jakub Jelinek <jakub@redhat.com>
13727
13728 PR target/79430
13729 * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
13730 check for stack push/pop autoinc.
13731 * config/i386/i386.c (ix86_agi_dependent): Return false
13732 if the only reason why modified_in_p returned true is that
13733 addr is SP based and set_insn is a push or pop.
13734
13735 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
13736
13737 * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
13738 overflow check.
13739
13740 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
13741
13742 PR ipa/79224
13743 * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
13744 (account_size_time): Use two predicates - exec_pred and
13745 nonconst_pred_ptr.
13746 (evaluate_conditions_for_known_args): Compute both clause and
13747 nonspec_clause.
13748 (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
13749 (inline_summary_t::duplicate): Update.
13750 (estimate_function_body_sizes): Caluculate exec and nonconst predicates
13751 separately.
13752 (compute_inline_parameters): Likewise.
13753 (estimate_edge_size_and_time): Update caluclation of time.
13754 (estimate_node_size_and_time): Compute both time and nonspecialized
13755 time.
13756 (estimate_ipcp_clone_size_and_time): Update.
13757 (inline_merge_summary): Update.
13758 (do_estimate_edge_time): Update.
13759 (do_estimate_edge_size): Update.
13760 (do_estimate_edge_hints): Update.
13761 (inline_read_section, inline_write_summary): Stream both new predicates.
13762 * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
13763 as argument.
13764 (compute_inlined_call_time): Cleanup.
13765 (big_speedup_p): Update.
13766 (edge_badness): Update.
13767 * ipa-inline.h (INLINE_TIME_SCALE): Remove.
13768 (size_time_entry): Replace predicate by exec_predicate and
13769 nonconst_predicate.
13770 (edge_growth_cache_entry): Cache both time nad nonspecialized time.
13771 (estimate_edge_time): Return also nonspec_time.
13772 (reset_edge_growth_cache): Update.
13773
13774 2017-04-29 Jakub Jelinek <jakub@redhat.com>
13775
13776 PR rtl-optimization/80491
13777 * ifcvt.c (noce_process_if_block): When looking for x setter
13778 with missing else_bb, don't check only the insn right before
13779 cond_earliest, but look for the last insn that x is modified in
13780 within the same bb.
13781
13782 PR rtl-optimization/80491
13783 * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
13784
13785 2017-04-29 Marc Glisse <marc.glisse@inria.fr>
13786
13787 PR tree-optimization/80487
13788 * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
13789
13790 2017-04-29 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13791
13792 PR tree-optimization/79697
13793 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
13794 is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
13795 (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
13796 BUILT_IN_STRNDUP.
13797 * gimple-fold.c (gimple_fold_builtin_realloc): New function.
13798 (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
13799
13800 2017-04-28 Martin Sebor <msebor@redhat.com>
13801
13802 PR tree-optimization/80523
13803 * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
13804 (init_target_to_host_charmap, target_to_host, target_strtol10): New
13805 functions.
13806 (maybe_warn, format_directive, parse_directive): Use new functions.
13807 (pass_sprintf_length::execute): Call init_target_to_host_charmap.
13808
13809 2017-04-28 Marc Glisse <marc.glisse@inria.fr>
13810
13811 * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
13812
13813 2017-04-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13814
13815 * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
13816 target_header_dir): Set correctly.
13817 * configure: Regenerated.
13818 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
13819 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
13820 instead of SYSTEM_HEADER_DIR.
13821
13822 2017-04-28 Jan Hubicka <hubicka@ucw.cz>
13823
13824 * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
13825 (estimate_local_effects): Likewise.
13826 * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
13827 edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
13828 * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
13829 estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
13830 do_estimate_edge_time, estimate_edge_time): Likewise.
13831 * ipa-inline-analysis.c (estimate_node_size_and_time,
13832 estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
13833 (estimate_time_after_inlining): Remove.
13834
13835 2017-04-28 Martin Liska <mliska@suse.cz>
13836
13837 * doc/gcov.texi: Enhance documentation of gcov.
13838
13839 2017-04-28 Martin Liska <mliska@suse.cz>
13840
13841 * doc/gcov.texi: Sort options in alphabetic order.
13842 * doc/gcov-dump.texi: Likewise.
13843 * doc/gcov-tool.texi: Likewise.
13844 * gcov.c (print_usage): Likewise.
13845 * gcov-dump.c (print_usage): Likewise.
13846 * gcov-tool.c (print_merge_usage_message): Likewise.
13847 (print_rewrite_usage_message): Likewise.
13848 (print_overlap_usage_message): Likewise.
13849
13850 2017-04-28 Martin Liska <mliska@suse.cz>
13851
13852 PR gcov-profile/53915
13853 * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
13854
13855 2017-04-28 Martin Liska <mliska@suse.cz>
13856
13857 PR gcov-profile/79891
13858 * gcov.c (add_line_counts): Assign BBs to lines just if the BB
13859 is marked by compiler as living on a line.
13860 (get_cycles_count): Remove usage of the union.
13861 (output_intermediate_file): Likewise.
13862 (find_source): Fix GNU coding style.
13863 (accumulate_line_counts): Remove old non-all block mode.
13864 (output_lines): Remove usage of the union.
13865 * profile.c (output_location): Include all BBs, even if
13866 belonging to a same line (and file) as a previous BB.
13867
13868 2017-04-28 Martin Liska <mliska@suse.cz>
13869
13870 * gcov.c (process_args): Handle new argument 'w'.
13871 (read_graph_file): Assign ID to BBs.
13872 (output_branch_count): Display BB # if verbose flag is set.
13873 (output_lines): Likewise for arcs.
13874 (print_usage): Add '--verbose' option help.
13875 * doc/gcov.texi: Document --verbose (-w) option.
13876
13877 2017-04-28 Martin Liska <mliska@suse.cz>
13878
13879 * gcov.c (struct block_location_info): New struct.
13880 (process_file): Fill up the new structure.
13881 (read_graph_file): Replace usage of encoding by the newly added
13882 struct.
13883 (add_line_counts): Likewise.
13884 (accumulate_line_counts): Remove usage of the union.
13885 (function_info::function_info): New function.
13886 (function_info::~function_info): Likewise.
13887 (process_file): Call delete instead of release_function.
13888 (release_function): Release the function.
13889 (release_structures): Call delete instead of release_function.
13890 (solve_flow_graph): Replace usage of num_blocks.
13891 (find_exception_blocks): Likewise.
13892 (output_lines): Fix GNU coding style.
13893
13894 2017-04-28 Martin Liska <mliska@suse.cz>
13895
13896 PR driver/56469
13897 * coverage.c (coverage_remove_note_file): New function.
13898 * coverage.h: Declare the function.
13899 * toplev.c (finalize): Clean if an error has been seen.
13900
13901 2017-04-28 Martin Liska <mliska@suse.cz>
13902
13903 PR gcov-profile/80031
13904 * gcov-dump.c (tag_blocks): Just print number of basic blocks.
13905 * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
13906 * gcov.c (read_graph_file): Read just number of blocks.
13907 * profile.c (branch_prob): Do not stream 0 flags per a basic
13908 block.
13909
13910 2017-04-28 Martin Liska <mliska@suse.cz>
13911
13912 * gcov-dump.c (tag_*): Add new argument to declarations.
13913 (dump_gcov_file): Likewise.
13914 (tag_blocks): Add and use new argument depth.
13915 (tag_arcs): Likewise.
13916 (tag_lines): Likewise.
13917 (tag_counters): Likewise.
13918 (tag_summary): Likewise.
13919 (dump_working_sets): Use depth to do a proper indentation.
13920
13921 2017-04-28 Jakub Jelinek <jakub@redhat.com>
13922
13923 PR bootstrap/80531
13924 * cgraph.h (symtab_node::debug_symtab): No longer inline.
13925 * symtab.c (symtab_node::debug_symtab): Move definition here.
13926
13927 2017-04-28 Richard Biener <rguenther@suse.de>
13928
13929 * lto-streamer.h (LTO_major_version): Bump to 7.
13930
13931 2017-04-28 Richard Biener <rguenther@suse.de>
13932
13933 * tree-vrp.c (assert_info): New struct.
13934 (add_assert_info): New helper.
13935 (register_edge_assert_for_2): Refactor to add asserts to a vector
13936 of assert_info.
13937 (register_edge_assert_for_1): Likewise.
13938 (register_edge_assert_for): Likewise.
13939 (finish_register_edge_assert_for): New helper actually registering
13940 asserts where live on edge.
13941 (find_conditional_asserts): Adjust.
13942 (find_switch_asserts): Likewise.
13943 (evrp_dom_walker::try_find_new_range): Generalize.
13944 (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
13945
13946 2017-04-27 Marek Polacek <polacek@redhat.com>
13947
13948 PR sanitizer/80349
13949 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
13950 arg10 and arg11 to itype.
13951
13952 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
13953
13954 * doc/extend.texi (Object Size Checking): Improve grammar.
13955
13956 2017-04-27 Richard Earnshaw <rearnsha@arm.com>
13957
13958 PR target/80530
13959 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
13960 that the logic for permitting reciprocal estimates matches that
13961 in use_rsqrt_p.
13962
13963 2017-04-27 Jakub Jelinek <jakub@redhat.com>
13964
13965 PR c++/80534
13966 * tree.c (type_cache_hasher::equal): Only compare
13967 TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
13968 (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
13969 non-aggregate element types.
13970 * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
13971 about the flag on ARRAY_TYPEs in the comment, formatting fix.
13972
13973 2017-04-27 Richard Biener <rguenther@suse.de>
13974
13975 PR middle-end/80533
13976 * emit-rtl.c (set_mem_attributes_minus_bitpos): When
13977 stripping ARRAY_REFs from MEM_EXPR make sure we're not
13978 keeping a reference to a trailing array.
13979
13980 2017-04-27 Richard Biener <rguenther@suse.de>
13981
13982 PR middle-end/80539
13983 * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
13984 being in loop-closed SSA form conservatively.
13985 (chrec_fold_multiply_poly_poly): Likewise.
13986
13987 2017-04-27 Tamar Christina <tamar.christina@arm.com>
13988
13989 PR middle-end/79665
13990 * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
13991 CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
13992
13993 2017-04-27 Jakub Jelinek <jakub@redhat.com>
13994
13995 PR target/77728
13996 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
13997 (aarch64_function_arg_alignment): Return unsigned int again, but still
13998 ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
13999 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
14000 Don't emit -Wpsabi note.
14001 (aarch64_function_arg_boundary): Likewise.
14002 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
14003 caller.
14004
14005 2017-04-26 Nathan Sidwell <nathan@acm.org>
14006
14007 * tree.h (crc32_unsigned_n): Declare.
14008 (crc32_unsigned, crc32_unsigned): Make inline.
14009 * tree.c (crc32_unsigned_bits): Replace with ...
14010 (crc32_unsigned_n): ... this.
14011 (crc32_unsigned, crc32_byte): Remove.
14012 (crc32_string): Remove unnecessary braces.
14013
14014 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
14015
14016 * ipa-cp.c (estimate_local_effects): Convert sreal to int.
14017 * ipa-inline-analysis.c (MAX_TIME): Remove.
14018 (account_size_time): Use sreal for time.
14019 (dump_inline_summary): Update.
14020 (estimate_function_body_sizes): Update.
14021 (estimate_edge_size_and_time): Update.
14022 (estimate_calls_size_and_time): Update.
14023 (estimate_node_size_and_time): Update.
14024 (inline_merge_summary): Update.
14025 (inline_update_overall_summary): Update.
14026 (estimate_time_after_inlining): Update.
14027 (inline_read_section): Update.
14028 (inline_write_summary): Update.
14029 * ipa-inline.c (compute_uninlined_call_time): Update.
14030 (compute_inlined_call_time): Update.
14031 (recursive_inlining): Update.
14032 (inline_small_functions): Update.
14033 (dump_overall_stats): Update.
14034 * ipa-inline.h: Include sreal.h.
14035 (size_time_entry): Turn time to sreal.
14036 (inline_summary): Turn self_time nad time to sreal.
14037
14038 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
14039
14040 * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
14041 data-streamer.h
14042 (sreal::stream_out, sreal::stream_in): New.
14043 * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
14044
14045 2017-04-25 Jakub Jelinek <jakub@redhat.com>
14046
14047 * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
14048 environment.
14049
14050 2017-04-25 Uros Bizjak <ubizjak@gmail.com>
14051
14052 PR target/70799
14053 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
14054 Handle ASHIFTRT.
14055 (dimode_scalar_chain::compute_convert_gain): Ditto.
14056 (dimode_scalar_chain::make_vector_copies): Ditto.
14057 (dimode_scalar_chain::convert_reg): Ditto.
14058 (dimode_scalar_chain::convert_insn): Ditto.
14059 * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
14060 (VI248_AVX512BW_1): New mode iterator.
14061 (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
14062 <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
14063 mode iterator.
14064
14065 2017-04-25 Martin Sebor <msebor@redhat.com>
14066
14067 PR tree-optimization/80497
14068 * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
14069 constants are representable in HOST_WIDE_INT.
14070 (parse_directive): Ditto.
14071
14072 2017-04-25 Martin Sebor <msebor@redhat.com>
14073
14074 PR bootstrap/80486
14075 * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
14076 (new_zero_array): Adjust signature.
14077 (dom_info::dom_init): Used unsigned rather that size_t.
14078 (dom_info::dom_info): Same.
14079
14080 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14081 Jakub Jelinek <jakub@redhat.com>
14082
14083 PR target/77728
14084 * config/arm/arm.c: Include gimple.h.
14085 (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
14086 returns negative, increment ncrn only if it returned positive.
14087 (arm_needs_doubleword_align): Return int instead of bool,
14088 ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
14089 members, but if there is any such non-FIELD_DECL
14090 > PARM_BOUNDARY aligned decl, return -1 instead of false.
14091 (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
14092 returns negative, increment nregs only if it returned positive.
14093 (arm_setup_incoming_varargs): Likewise.
14094 (arm_function_arg_boundary): Emit -Wpsabi note if
14095 arm_needs_doubleword_align returns negative, return
14096 DOUBLEWORD_ALIGNMENT only if it returned positive.
14097
14098 2017-04-25 Marek Polacek <polacek@redhat.com>
14099
14100 PR sanitizer/80349
14101 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
14102 first argument to type.
14103
14104 2017-04-25 Bill Seurer <seurer@linux.vnet.ibm.com>
14105
14106 PR target/80482
14107 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
14108 type checks to test for compatibility instead of equality.
14109
14110 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14111 Jakub Jelinek <jakub@redhat.com>
14112
14113 PR target/77728
14114 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
14115 type.
14116 (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
14117 struct. Ignore DECL_ALIGN of decls other than FIELD_DECL for
14118 the alignment computation, but return their maximum in warn_alignment.
14119 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
14120 Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
14121 is smaller.
14122 (aarch64_function_arg_boundary): Likewise. Simplify using MIN/MAX.
14123 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
14124 caller.
14125
14126 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
14127
14128 * config/arc/simdext.md (dmpyh): Fix typo.
14129
14130 2017-04-25 Richard Biener <rguenther@suse.de>
14131
14132 PR tree-optimization/80492
14133 * alias.c (compare_base_decls): Handle registers with asm
14134 specification conservatively.
14135 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
14136 compare_base_decls returning dont-know properly.
14137
14138 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
14139
14140 * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
14141 (legitimate_offset_address_p): New function.
14142 (arc_legitimate_address_p): Use above function.
14143
14144 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
14145
14146 * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
14147
14148 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
14149
14150 * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
14151 ACCH registers whenever they are available.
14152
14153 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
14154
14155 * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
14156 double regs fix when not used.
14157
14158 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
14159
14160 * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
14161 core registers.
14162 (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
14163 (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
14164
14165 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
14166
14167 * config/arc/arc.c (arc_output_addsi): Check for h-register class
14168 when emitting short ADD instructions.
14169
14170 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
14171
14172 * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
14173 constraint.
14174 (cmpsi_cc_c_insn): Likewise.
14175 (cbranchsi4_scratch): Compute proper instruction length using
14176 compact_hreg_operand.
14177 * config/arc/predicates.md (compact_hreg_operand): New predicate.
14178
14179 2017-04-25 Richard Biener <rguenther@suse.de>
14180
14181 PR middle-end/80509
14182 * passes.c (pass_manager::pass_manager): Initialize
14183 m_name_to_pass_map.
14184
14185 2017-04-25 Richard Biener <rguenther@suse.de>
14186
14187 PR tree-optimization/79201
14188 * tree-ssa-sink.c (statement_sink_location): Handle calls.
14189
14190 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14191
14192 PR target/80464
14193 * config/s390/vector.md: Split MEM->GPR vector moves for
14194 non-s_operand addresses.
14195
14196 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14197
14198 PR target/79895
14199 * config/s390/predicates.md (reload_const_wide_int_operand): New
14200 predicate.
14201 * config/s390/s390.md ("movti"): Remove d/P alternative.
14202 ("movti_bigconst"): New pattern definition.
14203
14204 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
14205
14206 PR target/80080
14207 * s390-protos.h (s390_expand_cs_hqi): Removed.
14208 (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
14209 * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
14210 modes as well as CCZ1mode and CCZmode.
14211 (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
14212 signature of s390_emit_compare_and_swap.
14213 (s390_expand_cs_hqi): Likewise, make static.
14214 (s390_expand_cs_tdsi): Generate an explicit compare before trying
14215 compare-and-swap, in some cases.
14216 (s390_expand_cs): Wrapper function.
14217 (s390_expand_atomic_exchange_tdsi): New backend specific expander for
14218 atomic_exchange.
14219 (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
14220 * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
14221 patterns for small and large integers. Forbid symref memory operands.
14222 Move expander to s390.c. Require cc register.
14223 ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
14224 ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
14225 ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
14226 ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
14227 symref memory operands. Remove CC mode and call s390_match_ccmode
14228 instead.
14229 ("atomic_exchange<mode>"): Allow and implement all integer modes.
14230
14231 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
14232
14233 * config/s390/s390.md (define_peephole2): New peephole to help
14234 combining the load-and-test pattern with volatile memory.
14235
14236 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
14237
14238 * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
14239 with CCZmode for TARGET_Z196.
14240
14241 2017-04-25 Jakub Jelinek <jakub@redhat.com>
14242
14243 PR rtl-optimization/80501
14244 * combine.c (make_compound_operation_int): Set subreg_code to SET
14245 even for AND with mask of the sign bit of mode.
14246
14247 PR rtl-optimization/80500
14248 * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
14249 sum's initial value.
14250
14251 2017-04-25 Julian Brown <julian@codesourcery.com>
14252 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
14253
14254 * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
14255
14256 2017-04-25 Marc Glisse <marc.glisse@inria.fr>
14257
14258 * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
14259
14260 2017-04-25 Julian Brown <julian@codesourcery.com>
14261 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
14262
14263 * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
14264 (thunderx2t99_sha): New Reservation.
14265
14266 2017-04-25 Julian Brown <julian@codesourcery.com>
14267 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
14268
14269 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
14270 type for 1-element load.
14271
14272 2017-04-24 Marc Glisse <marc.glisse@inria.fr>
14273
14274 * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
14275
14276 2017-04-24 Martin Jambor <mjambor@suse.cz>
14277
14278 PR tree-optimization/80293
14279 * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
14280 char arrays not totally scalarizable if it is false.
14281 (analyze_all_variable_accesses): Pass correct value in the new
14282 parameter. Add a statistics counter.
14283
14284 2017-04-24 Jan Hubicka <hubicka@ucw.cz>
14285
14286 PR middle-end/79931
14287 * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
14288
14289 2017-04-24 Richard Biener <rguenther@suse.de>
14290
14291 PR tree-optimization/80494
14292 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
14293 out for complex types.
14294
14295 2017-04-24 Richard Biener <rguenther@suse.de>
14296
14297 * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
14298 * tree-ssa-sccvn.c (print_scc): Print SCC size.
14299 (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
14300 (DFS): Adjust and never fail.
14301 (sccvn_dom_walker::fail): Remove.
14302 (sccvn_dom_walker::before_dom_children): Adjust.
14303 (run_scc_vn): Likewise and never fail.
14304 * tree-ssa-pre.c (pass_pre::execute): Adjust.
14305 (pass_fre::execute): Likewise.
14306
14307 2017-04-24 Richard Biener <rguenther@suse.de>
14308
14309 PR tree-optimization/79725
14310 * tree-ssa-sink.c (statement_sink_location): Return whether
14311 failure reason was zero uses. Move that check later.
14312 (sink_code_in_bb): Deal with zero uses by removing the stmt
14313 if possible.
14314
14315 2017-04-24 Richard Biener <rguenther@suse.de>
14316
14317 PR c++/2972
14318 * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
14319 pointer-based references.
14320
14321 2017-04-24 Richard Biener <rguenther@suse.de>
14322
14323 PR bootstrap/79814
14324 * pass_manager.h (pass_manager::operator new): Remove.
14325 (pass_manager::operator delete): Likewise.
14326 * passes.c (pass_manager::operator new): Remove.
14327 (pass_manager::operator delete): Likewise.
14328 (pass_manager::pass_manager): Zero individual pass members.
14329
14330 2017-04-23 Uros Bizjak <ubizjak@gmail.com>
14331
14332 PR target/70799
14333 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
14334 <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
14335 Check "XEXP (src, 1)" operand here.
14336 <case PLUS, case MINUS, case IOR, case XOR, case AND>:
14337 Check "XEXP (src, 1)" operand here.
14338 (dimode_scalar_chain::make_vector_copies): Detect count register
14339 of a shift instruction. Zero extend count register from QImode
14340 to DImode to satisfy vector shift pattern count operand predicate.
14341 Substitute vector shift count operand with a DImode copy.
14342 (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
14343 vector register.
14344
14345 2017-04-21 Uros Bizjak <ubizjak@gmail.com>
14346
14347 * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
14348 Remove UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
14349 (*insvqi_1_mem_rex64): Move above insv<mode>_1. Remove
14350 UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
14351 (UNSPEC_NOREX_MEM): Remove definition.
14352
14353 2017-04-21 Richard Biener <rguenther@suse.de>
14354
14355 PR tree-optimization/79547
14356 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14357 Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
14358 bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
14359 without any constraints.
14360
14361 2017-04-21 Richard Biener <rguenther@suse.de>
14362
14363 PR tree-optimization/78847
14364 * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
14365
14366 2017-04-21 Richard Biener <rguenther@suse.de>
14367
14368 * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
14369 (build_distinct_type_copy): Likewise.
14370 (build_variant_type_copy): Likewise.
14371 * tree.c (build_qualified_type): Pass down mem-stat info.
14372 (build_distinct_type_copy): Likewise.
14373 (build_variant_type_copy): Likewise.
14374
14375 2017-04-21 Richard Biener <rguenther@suse.de>
14376
14377 PR tree-optimization/80237
14378 * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
14379 defaulted to NULL.
14380 (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
14381 for a simplified result.
14382
14383 2016-04-21 Richard Biener <rguenther@suse.de>
14384
14385 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
14386 sth as strict as a simple_iv but a chrec without symbols and an
14387 operand defined in the loop we are peeling (and not some subloop).
14388 (propagate_constants_for_unrolling): Propagate all constants.
14389
14390 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
14391
14392 PR target/79804
14393 * config/i386/i386.c (print_reg): Remove assert for disalowed
14394 regno values, call output_operand_lossage instead.
14395
14396 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
14397
14398 PR target/78090
14399 * config/i386/constraints.md (Yc): New register constraint.
14400 * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
14401 Use Yc constraint for alternative 2 of operand 0. Remove
14402 preferred_for_speed attribute.
14403
14404 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
14405
14406 * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
14407 lastprivate clauses in SIMT case.
14408
14409 2017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
14410
14411 * doc/invoke.texi (-Wextra-semi): Document new warning option.
14412
14413 2017-04-20 Richard Biener <rguenther@suse.de>
14414
14415 PR tree-optimization/57796
14416 * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
14417 as N scalar stores.
14418 (vect_model_load_cost): Cost gathers as N scalar loads.
14419
14420 2017-04-20 Richard Biener <rguenther@suse.de>
14421
14422 * ggc-page.c (ggc_allocated_p): Rename to ...
14423 (safe_lookup_page_table_entry): ... this and return the lookup
14424 result.
14425 (gt_ggc_m_S): Use safe_lookup_page_table_entry.
14426
14427 2017-04-20 Richard Biener <rguenther@suse.de>
14428
14429 PR tree-optimization/80453
14430 * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
14431 * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
14432 from the conditions.
14433 (vn_phi_eq): Pass them down.
14434 (vn_phi_lookup): Record them.
14435 (vn_phi_insert): Likewise.
14436
14437 2017-04-20 Matthew Fortune <matthew.fortune@imgtec.com>
14438
14439 * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
14440 uninitialized variable warning to avoid buffer overrun.
14441
14442 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
14443
14444 PR other/71250
14445 * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
14446 is suppressed for '{ 0 }' in C.
14447
14448 2017-04-20 Jakub Jelinek <jakub@redhat.com>
14449
14450 * BASE-VER: Set to 8.0.0.
14451
14452 2017-04-20 Thomas Preud'homme <thomas.preudhomme@arm.com>
14453
14454 * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
14455 priority .init_array and .fini_array section with SECTION_NOTYPE
14456 flag.
14457
14458 2017-04-20 Jakub Jelinek <jakub@redhat.com>
14459
14460 PR middle-end/80423
14461 * tree.h (build_array_type): Add typeless_storage default argument.
14462 * tree.c (type_cache_hasher::equal): Also compare
14463 TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
14464 (build_array_type): Add typeless_storage argument, set
14465 TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
14466 recursive call.
14467 (build_nonshared_array_type): Adjust build_array_type_1 caller.
14468 (build_array_type): Likewise. Add typeless_storage argument.
14469
14470 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
14471 Jakub Jelinek <jakub@redhat.com>
14472
14473 PR tree-optimization/80426
14474 * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
14475 operation on symbolic operands, also compute the overflow for the
14476 invariant part when the operation degenerates into a negation.
14477
14478 2017-04-19 Jakub Jelinek <jakub@redhat.com>
14479
14480 PR debug/80461
14481 * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
14482 Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
14483
14484 PR debug/80436
14485 * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
14486
14487 2017-04-19 Georg-Johann Lay <avr@gjlay.de>
14488
14489 PR target/80462
14490 * config/avr/avr.c (tree.h): Include it.
14491 (cgraph.h): Include it.
14492 (avr_encode_section_info): Don't warn for uninitialized progmem
14493 variable if it's just an alias.
14494
14495 2017-04-19 Richard Biener <rguenther@suse.de>
14496
14497 PR ipa/65972
14498 * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
14499 when needed by AutoPGO.
14500
14501 2017-04-19 Paulo J. Matos <paulo@matos-sorge.com>
14502
14503 PR lto/50345
14504 * doc/lto.texi: Remove an extra 'that'.
14505
14506 2017-04-19 Segher Boessenkool <segher@kernel.crashing.org>
14507
14508 PR rtl-optimization/80429
14509 * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
14510 are only used in debug insns.
14511
14512 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
14513 Vladimir Makarov <vmakarov@redhat.com>
14514
14515 * config/sparc/predicates.md (input_operand): Add comment. Return
14516 true for any memory operand when LRA is in progress.
14517 * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
14518
14519 2017-04-18 Jeff Law <law@redhat.com>
14520
14521 PR target/74563
14522 * mips.md ({return,simple_return}_internal): Do not overwrite
14523 operands[0].
14524
14525 2017-04-18 Jakub Jelinek <jakub@redhat.com>
14526
14527 PR tree-optimization/80443
14528 * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
14529 instead of adding 1, subtract -1 and similarly instead of subtracting
14530 1 add -1.
14531
14532 2017-04-18 Richard Sandiford <richard.sandiford@arm.com>
14533
14534 PR rtl-optimization/80357
14535 * haifa-sched.c (tmp_bitmap): New variable.
14536 (model_recompute): Handle duplicate use records.
14537 (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
14538 (free_global_sched_pressure_data): Free it.
14539
14540 2017-04-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14541
14542 Revert:
14543 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14544 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
14545 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
14546 instead of SYSTEM_HEADER_DIR.
14547
14548 2017-04-18 Jeff Law <law@redhat.com>
14549
14550 PR middle-end/80422
14551 * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
14552 predecessors after walking up the insn chain.
14553
14554 2017-04-18 Jakub Jelinek <jakub@redhat.com>
14555
14556 PR debug/80263
14557 * dwarf2out.c (modified_type_die): Try harder not to emit internal
14558 sizetype type into debug info.
14559
14560 2017-04-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14561
14562 PR target/80099
14563 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
14564 unneeded test for TARGET_UPPER_REGS_SF.
14565 * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
14566
14567 2017-04-18 Jakub Jelinek <jakub@redhat.com>
14568
14569 PR sanitizer/80444
14570 * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
14571 instead of gsi_after_labels.
14572
14573 2017-04-18 Jeff Law <law@redhat.com>
14574
14575 * regcprop.c (maybe_mode_change): Avoid creating copies of the
14576 stack pointer.
14577
14578 Revert:
14579 2017-04-13 Jeff Law <law@redhat.com>
14580 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
14581 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
14582
14583 2017-04-18 Georg-Johann Lay <avr@gjlay.de>
14584
14585 PR target/79453
14586 * config/avr/avr.c (intl.h): Include it.
14587 (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
14588
14589 2017-04-18 Martin Liska <mliska@suse.cz>
14590
14591 PR gcov-profile/78783
14592 * gcov-tool.c (gcov_output_files): Validate that destination
14593 file is either removed by the tool or by a user.
14594
14595 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
14596 Guy Benyei <guybe@mellanox.com>
14597
14598 * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
14599 block, and do not negate it, the stored id is already negative.
14600
14601 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
14602
14603 * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
14604
14605 2017-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14606
14607 PR target/80098
14608 * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
14609 masks of options that should be turned off if the VSX vector
14610 options are turned off.
14611 (OTHER_P8_VECTOR_MASKS): Likewise.
14612 (OTHER_VSX_VECTOR_MASKS): Likewise.
14613 * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
14614 rs6000_disable_incompatible_switches to validate no type switches
14615 like -mvsx.
14616 (rs6000_incompatible_switch): New function to disallow turning on
14617 other vector options if -mno-vsx, -mno-power8-vector, or
14618 -mno-power9-vector are specified.
14619
14620 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
14621
14622 * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
14623
14624 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
14625
14626 * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
14627 * config/arc/arc.c (arc_decl_pretend_args): Likewise.
14628 * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
14629 (ARG_POINTER_CFA_OFFSET): Likewise.
14630
14631 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
14632
14633 * config/arc/arc.c (arc_mode_dependent_address_p): Relax
14634 conditions to take advantage of various optimizations.
14635
14636 2017-04-13 Jeff Law <law@redhat.com>
14637
14638 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
14639 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
14640 (zero_extendsidi2_dext): Likewise.
14641
14642 2017-04-13 Jakub Jelinek <jakub@redhat.com>
14643
14644 PR sanitizer/80403
14645 * fold-const.c (fold_ternary_loc): Revert
14646 use op0 instead of fold_convert_loc (loc, type, arg0) part of
14647 2017-04-12 change.
14648
14649 2017-04-13 Vladimir Makarov <vmakarov@redhat.com>
14650
14651 PR rtl-optimization/80343
14652 * lra-remat.c (update_scratch_ops): Assign original hard reg to
14653 new scratch pseudo.
14654
14655 2017-04-13 Denis Khalikov <d.khalikov@partner.samsung.com>
14656
14657 PR sanitizer/80414
14658 * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
14659 to ubsan_encode_value.
14660
14661 2017-04-13 Jeff Law <law@redhat.com>
14662
14663 * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
14664 appearing in DEBUG_INSNs.
14665
14666 2017-04-13 Martin Liska <mliska@suse.cz>
14667
14668 PR gcov-profile/80413
14669 * gcov-io.c (gcov_write_string): Copy to buffer just when
14670 allocated size is greater than zero.
14671
14672 2017-04-13 Jakub Jelinek <jakub@redhat.com>
14673
14674 PR debug/80321
14675 * dwarf2out.c (decls_for_scope): Ignore declarations of
14676 current_function_decl in BLOCK_NONLOCALIZED_VARS.
14677
14678 2017-04-12 Jan Hubicka <hubicka@ucw.cz>
14679
14680 PR lto/69953
14681 * ipa-visibility.c (non_local_p): Fix typos.
14682 (localize_node): When localizing symbol in same comdat group,
14683 dissolve the group only when we know external symbols are going
14684 to be privatized.
14685 (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
14686
14687 2017-04-12 Jakub Jelinek <jakub@redhat.com>
14688
14689 PR tree-optimization/79390
14690 * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
14691 order does not result in usable sequence, retry with reversed operand
14692 order.
14693
14694 PR sanitizer/80403
14695 PR sanitizer/80404
14696 PR sanitizer/80405
14697 * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
14698 to fold_build2_loc. Convert TREE_OPERAND (tem, 0) to type. Use
14699 op0 instead of fold_convert_loc (loc, type, arg0).
14700
14701 2017-04-12 Jeff Law <law@redhat.com>
14702
14703 * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
14704 has a delay slot in the generated code.
14705
14706 * config/cris/cris.md (cris_preferred_reload_class): Return
14707 GENNONACR_REGS rather than GENERAL_REGS.
14708
14709 2017-04-12 Jakub Jelinek <jakub@redhat.com>
14710
14711 PR c/80163
14712 * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
14713 vs. ZERO_EXTEND based on signedness of treeop0's type rather than
14714 signedness of the result type.
14715
14716 2017-04-12 Richard Biener <rguenther@suse.de>
14717 Jeff Law <law@redhat.com>
14718
14719 PR tree-optimization/80359
14720 * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
14721 trim stores to TARGET_MEM_REFs.
14722
14723 2017-04-12 Richard Biener <rguenther@suse.de>
14724
14725 PR tree-optimization/79390
14726 * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
14727 threading case even more.
14728
14729 2017-04-12 Segher Boessenkool <segher@kernel.crashing.org>
14730
14731 PR target/80382
14732 * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
14733 for quad_address_p for TImode, instead of just not indexed_address.
14734
14735 2017-04-12 Richard Biener <rguenther@suse.de>
14736 Bernd Edlinger <bernd.edlinger@hotmail.de>
14737
14738 PR middle-end/79671
14739 * alias.c (component_uses_parent_alias_set_from): Handle
14740 TYPE_TYPELESS_STORAGE.
14741 (get_alias_set): Likewise.
14742 * tree-core.h (tree_type_common): Add typeless_storage flag.
14743 * tree.h (TYPE_TYPELESS_STORAGE): New macro.
14744 * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
14745 for types containing members with TYPE_TYPELESS_STORAGE.
14746 (place_field): Likewise.
14747 (layout_type): Likewise for ARRAY_TYPE.
14748 * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
14749 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
14750 TYPE_TYPELESS_STORAGE.
14751 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
14752
14753 2017-04-12 Jakub Jelinek <jakub@redhat.com>
14754
14755 PR sanitizer/80349
14756 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
14757 first argument to type.
14758
14759 2017-04-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14760
14761 PR target/80376
14762 PR target/80315
14763 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
14764 CONST0_RTX (mode) rather than const0_rtx where appropriate.
14765 (rs6000_expand_binop_builtin): Likewise.
14766 (rs6000_expand_ternop_builtin): Likewise; also add missing
14767 vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
14768 vshasigma built-ins.
14769 * doc/extend.texi: Document that vec_xxpermdi's third argument
14770 must be a constant.
14771
14772 2017-04-11 Uros Bizjak <ubizjak@gmail.com>
14773
14774 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
14775 Use shift_const cost parameter when calculating gain of STV shifts.
14776
14777 2017-04-11 Vladimir Makarov <vmakarov@redhat.com>
14778
14779 PR rtl-optimization/70478
14780 * lra-constraints.c (process_alt_operands): Check memory for
14781 disfavoring memory insn operand.
14782
14783 2017-04-11 Jakub Jelinek <jakub@redhat.com>
14784
14785 PR middle-end/80100
14786 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
14787 left shift in unsigned HOST_WIDE_INT type.
14788
14789 PR rtl-optimization/80385
14790 * simplify-rtx.c (simplify_unary_operation_1): Don't transform
14791 (not (neg X)) into (plus X -1) for complex or non-integral modes.
14792
14793 PR libgomp/80394
14794 * omp-low.c (scan_omp_task): Don't optimize away empty tasks
14795 if they have any depend clauses.
14796
14797 2017-04-11 Martin Liska <mliska@suse.cz>
14798
14799 PR ipa/80212
14800 * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
14801 * ipa-split.c (split_function): Create a local comdat symbol
14802 if caller is in a comdat group.
14803
14804 2017-04-11 Martin Liska <mliska@suse.cz>
14805
14806 PR ipa/80212
14807 * ipa-cp.c (determine_versionability): Handle calls_comdat_local
14808 flags.
14809
14810 2017-04-11 Martin Sebor <msebor@redhat.com>
14811
14812 PR middle-end/80364
14813 * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
14814 always use the int type. Use INTEGRAL_TYPE_P() rather than testing
14815 for INTEGER_TYPE.
14816 (directive::set_width, directive::set_precision, format_character):
14817 Adjust.
14818 (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
14819 INTEGER_TYPE.
14820
14821 2017-04-11 Richard Earnshaw <rearnsha@arm.com>
14822
14823 PR target/80389
14824 * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
14825 conflict, set target->arch_name instead of target->cpu_name.
14826
14827 2017-04-11 Richard Biener <rguenther@suse.de>
14828
14829 PR tree-optimization/80374
14830 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
14831 build_zero_cst, remove fold_convertible_p check again.
14832
14833 2017-04-11 Martin Liska <mliska@suse.cz>
14834
14835 PR sanitizer/70878
14836 * ubsan.c (instrument_object_size): Do not instrument register
14837 variables.
14838
14839 2017-04-11 Jakub Jelinek <jakub@redhat.com>
14840
14841 PR target/80381
14842 * config/i386/i386-builtin-types.def
14843 (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
14844 V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
14845 V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
14846 V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
14847 V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
14848 V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
14849 V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
14850 V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
14851 V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
14852 V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
14853 V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
14854 V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
14855 V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
14856 V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
14857 V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
14858 V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
14859 V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
14860 V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
14861 * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
14862 __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
14863 __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
14864 __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
14865 __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
14866 __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
14867 __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
14868 __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
14869 __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
14870 __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
14871 __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
14872 __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
14873 __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
14874 __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
14875 __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
14876 __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
14877 __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
14878 __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
14879 __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
14880 __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
14881 __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
14882 __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
14883 __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
14884 __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
14885 __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
14886 __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
14887 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
14888 __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
14889 aliases.
14890 * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
14891 flag to second_arg_count, handle 4 argument function type _COUNT
14892 aliases, handle second_arg_count on second argument rather than last.
14893
14894 2017-04-10 Jeff Law <law@redhat.com>
14895
14896 PR tree-optimization/80374
14897 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
14898 record anything if we can not convert integer_zero_node to the
14899 desired type.
14900
14901 2017-04-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
14902
14903 PR target/80108
14904 * config/rs6000/rs6000.c (rs6000_option_override_internal):
14905 Enhance special handling given to the TARGET_P9_MINMAX option in
14906 relation to certain other options.
14907
14908 2017-04-10 Bin Cheng <bin.cheng@arm.com>
14909
14910 PR tree-optimization/80153
14911 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
14912 remove POINTER_PLUS_EXPR's base part directly, rather than through
14913 aff_tree.
14914
14915 2017-04-10 Richard Biener <rguenther@suse.de>
14916 Bin Cheng <bin.cheng@arm.com>
14917
14918 PR tree-optimization/80153
14919 * tree-affine.c (aff_combination_to_tree): Get base pointer from
14920 the first element of pointer type aff_tree. Build result expr in
14921 aff_tree's type.
14922 (add_elt_to_tree): Convert to type unconditionally. Remove other
14923 fold_convert calls.
14924 * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
14925 (rewrite_use_nonlinear_expr): Check invariant using iv information.
14926
14927 2017-04-10 Richard Biener <rguenther@suse.de>
14928
14929 * tree-ssa-structalias.c (find_func_aliases): Properly handle
14930 asm inputs.
14931
14932 2017-04-10 Vladimir Makarov <vmakarov@redhat.com>
14933
14934 PR rtl-optimization/70478
14935 * lra-constraints.c (curr_small_class_check): New.
14936 (update_and_check_small_class_inputs): New.
14937 (process_alt_operands): Update curr_small_class_check. Disfavor
14938 alternative insn memory operands. Check available regs for small
14939 class operands.
14940
14941 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
14942
14943 PR target/80057
14944 * config/mips/mips.opt (-mvirt): Update description.
14945 * doc/invoke.texi (-mvirt): Likewise.
14946
14947 2017-04-10 Richard Biener <rguenther@suse.de>
14948
14949 PR middle-end/80362
14950 * fold-const.c (fold_binary_loc): Look at unstripped ops when
14951 looking for NEGATE_EXPR in -A / -B to A / B folding.
14952
14953 2017-04-10 Martin Liska <mliska@suse.cz>
14954
14955 PR gcov-profile/80224
14956 * gcov.c (print_usage): Fix usage string.
14957 (get_gcov_intermediate_filename): Remove.
14958 (output_gcov_file): Use both for normal and intermediate format.
14959 (generate_results): Do not initialize special file for
14960 intermediate format.
14961
14962 2017-04-10 Richard Biener <rguenther@suse.de>
14963
14964 PR tree-optimization/80304
14965 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
14966 for safelen.
14967
14968 2017-04-10 Nathan Sidwell <nathan@acm.org>
14969
14970 PR target/79905
14971 * config/rs6000/rs6000.c (rs6000_vector_type): New.
14972 (rs6000_init_builtins): Use it.
14973
14974 2016-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14975
14976 * config/arm/arm.md (<mrc>): Add mode to SET source.
14977 (<mrrc>): Likewise.
14978
14979 2017-04-10 Richard Biener <rguenther@suse.de>
14980
14981 PR middle-end/80344
14982 * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
14983
14984 2017-04-10 Jakub Jelinek <jakub@redhat.com>
14985
14986 PR target/80324
14987 * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
14988 _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
14989 _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
14990 _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
14991 _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
14992 _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
14993 _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
14994 _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
14995 _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
14996 _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
14997 _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
14998 _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
14999 _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
15000 _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
15001 _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
15002 _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
15003 _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
15004 _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
15005 _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
15006 _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
15007 _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
15008 _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
15009 _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
15010
15011 2017-04-08 Vladimir Makarov <vmakarov@redhat.com>
15012
15013 PR rtl-optimization/70478
15014 * lra-constraints.c: Reverse the last patch.
15015
15016 2017-04-08 Andreas Tobler <andreast@gcc.gnu.org>
15017
15018 * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
15019 Add comment for WCHAR_T.
15020
15021 2017-04-08 Martin Liska <mliska@suse.cz>
15022
15023 Revert:
15024 2017-04-07 Martin Liska <mliska@suse.cz>
15025
15026 PR ipa/80212
15027 * ipa-split.c (split_function): Add function part to a same comdat
15028 group.
15029
15030 2017-04-08 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
15031
15032 PR target/80358
15033 * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
15034
15035 2017-04-07 Pat Haugen <pthaugen@us.ibm.com>
15036
15037 * rs6000/rs6000.c (vec_load_pendulum): Rename...
15038 (vec_pairing): ...to this.
15039 (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
15040 (rs6000_sched_init): Adjust for name change.
15041 (struct rs6000_sched_context): Likewise.
15042 (rs6000_init_sched_context): Likewise.
15043 (rs6000_set_sched_context): Likewise.
15044
15045 2017-04-07 Jakub Jelinek <jakub@redhat.com>
15046
15047 PR target/80322
15048 PR target/80323
15049 PR target/80325
15050 PR target/80326
15051 * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
15052 intrinsics.
15053 * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
15054 _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
15055 _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
15056
15057 2017-04-07 Andreas Tobler <andreast@gcc.gnu.org>
15058
15059 * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
15060
15061 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
15062
15063 PR rtl-optimization/70703
15064 * ira-color.c (update_conflict_hard_regno_costs): Use
15065 int64_t instead of HOST_WIDE_INT.
15066
15067 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
15068
15069 PR rtl-optimization/70478
15070 * lra-constraints.c (process_alt_operands): Disfavor alternative
15071 insn memory operands.
15072
15073 2017-04-07 Jeff Law <law@redhat.com>
15074
15075 * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
15076 CALL and NOTE_INSN_CALL_ARG_LOCATION.
15077
15078 2017-04-07 Martin Liska <mliska@suse.cz>
15079
15080 PR target/79889
15081 * config/aarch64/aarch64.c (aarch64_process_target_attr):
15082 Show error message instead of an ICE.
15083
15084 2017-04-07 Martin Liska <mliska@suse.cz>
15085
15086 PR ipa/80212
15087 * ipa-split.c (split_function): Add function part to a same comdat
15088 group.
15089
15090 2017-04-07 Richard Biener <rguenther@suse.de>
15091
15092 PR middle-end/80341
15093 * tree.c (get_unwidened): Also handle ! for_type case for
15094 INTEGER_CSTs.
15095 * convert.c (do_narrow): Split out from ...
15096 (convert_to_integer_1): ... here. Do not pass final truncation
15097 type to get_unwidened for TRUNC_DIV_EXPR.
15098
15099 2017-04-07 Richard Biener <rguenther@suse.de>
15100
15101 * tree-affine.c (wide_int_ext_for_comb): Take type rather
15102 than aff_tree.
15103 (aff_combination_const): Adjust.
15104 (aff_combination_scale): Likewise.
15105 (aff_combination_add_elt): Likewise.
15106 (aff_combination_add_cst): Likewise.
15107 (aff_combination_convert): Likewise.
15108 (add_elt_to_tree): Likewise. Remove unused argument.
15109 (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
15110
15111 2017-04-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
15112
15113 * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
15114 definition.
15115 * config/arm/arm.c (arm_default_short_enums): Use
15116 ARM_DEFAULT_SHORT_ENUMS.
15117 * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
15118
15119 2017-04-06 Jakub Jelinek <jakub@redhat.com>
15120
15121 PR debug/80234
15122 * dwarf2out.c (gen_member_die): Handle C++17 inline static data
15123 members with redundant out-of-class redeclaration.
15124
15125 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
15126
15127 PR target/80286
15128 * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
15129 * config/i386/i386.md (*zero_extendsidi2):
15130 Add (?*x,*x) and (?*v,*v) alternatives.
15131
15132 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
15133
15134 PR target/79733
15135 * config/i386/i386.c (ix86_expand_builtin)
15136 <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
15137 mode from insn data. Convert operands to insn operand mode.
15138 Copy operands that don't satisfy insn predicate to a register.
15139
15140 2017-04-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
15141
15142 * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
15143 Update comments.
15144
15145 2017-04-06 Richard Biener <rguenther@suse.de>
15146
15147 PR tree-optimization/80334
15148 * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
15149 preserve alignment of accesses.
15150
15151 2017-04-06 Richard Biener <rguenther@suse.de>
15152
15153 PR tree-optimization/80262
15154 * tree-sra.c (build_ref_for_offset): Preserve address-space
15155 information.
15156 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
15157 Drop useless address-space information on MEM_REF offsets.
15158
15159 2017-04-05 Andreas Schwab <schwab@linux-m68k.org>
15160
15161 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
15162
15163 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
15164
15165 PR rtl-optimization/70703
15166 * ira-color.c (update_conflict_hard_regno_costs): Use
15167 HOST_WIDE_INT instead of long.
15168
15169 2017-04-05 Uros Bizjak <ubizjak@gmail.com>
15170
15171 PR target/80298
15172 * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
15173 not defined for x86_64 target. Add -mmmx target option when __SSE2__
15174 is not defined.
15175 * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
15176 for x86_64 target. Handle -m3dnowa option.
15177
15178 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
15179
15180 PR rtl-optimization/70703
15181 * ira-color.c (update_costs_from_allocno): Use the smallest mode.
15182 (update_conflict_hard_regno_costs): Use long instead of unsigned
15183 arithmetic for cost calculation.
15184
15185 2017-04-05 Jakub Jelinek <jakub@redhat.com>
15186 Bernd Edlinger <bernd.edlinger@hotmail.de>
15187
15188 PR sanitizer/80308
15189 * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
15190 for big endian.
15191
15192 2017-04-05 Eric Botcazou <ebotcazou@adacore.com>
15193
15194 PR target/78002
15195 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
15196 ptr_mode with Pmode throughout.
15197 * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
15198 into probe_stack_range and use DImode.
15199
15200 2017-04-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
15201
15202 PR target/79890
15203 * config/s390/s390.c (s390_register_info_gprtofpr): Return if
15204 call_eh_return is true.
15205
15206 2017-04-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15207
15208 * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
15209 Initialize last_match_fntype_index.
15210
15211 2017-04-05 Jakub Jelinek <jakub@redhat.com>
15212
15213 PR target/80310
15214 * tree-nvr.c: Include internal-fn.h.
15215 (pass_return_slot::execute): Ignore internal calls without
15216 direct optab.
15217
15218 2017-04-04 Jakub Jelinek <jakub@redhat.com>
15219 Richard Biener <rguenther@suse.de>
15220
15221 PR c++/80297
15222 * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
15223 captures used multiple times, except for the last use.
15224 * generic-match-head.c: Include gimplify.h.
15225
15226 2017-04-04 Jakub Jelinek <jakub@redhat.com>
15227
15228 PR tree-optimization/79390
15229 * target.h (struct noce_if_info): Declare.
15230 * targhooks.h (default_noce_conversion_profitable_p): Declare.
15231 * target.def (noce_conversion_profitable_p): New target hook.
15232 * ifcvt.h (struct noce_if_info): New type, moved from ...
15233 * ifcvt.c (struct noce_if_info): ... here.
15234 (noce_conversion_profitable_p): Renamed to ...
15235 (default_noce_conversion_profitable_p): ... this. No longer
15236 static nor inline.
15237 (noce_try_store_flag_constants, noce_try_addcc,
15238 noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
15239 noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
15240 instead of noce_conversion_profitable_p.
15241 * config/i386/i386.c: Include ifcvt.h.
15242 (ix86_option_override_internal): Don't override
15243 PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
15244 (ix86_noce_conversion_profitable_p): New function.
15245 (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
15246 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
15247 * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
15248 * doc/tm.texi: Regenerated.
15249
15250 2017-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15251
15252 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
15253 correction.
15254
15255 2017-04-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
15256
15257 PR target/80307
15258 * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
15259 instructions for small multiply cores.
15260
15261 2017-04-04 Jeff Law <law@redhat.com>
15262
15263 * config/mips/mips.c (mips_multi_add): Zero initialize the newly
15264 added member.
15265 (mips_expand_vec_perm_const): Initialize elements in orig_perm
15266 that are not set by the loop over the elements.
15267
15268 2017-04-04 Jakub Jelinek <jakub@redhat.com>
15269
15270 PR target/80286
15271 * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
15272 int mode, convert_modes it to mode as unsigned, otherwise use
15273 lowpart_subreg to mode rather than SImode.
15274 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
15275 ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
15276 Use DImode instead of SImode for the shift count operand.
15277 * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
15278 Likewise.
15279
15280 2017-04-04 Richard Biener <rguenther@suse.de>
15281
15282 PR middle-end/80281
15283 * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
15284 arithmetic done for the negate or the plus. Simplify.
15285 (A - (-B) -> A + B): Likewise.
15286 * fold-const.c (split_tree): Make sure to not negate pointers.
15287
15288 2017-04-04 Segher Boessenkool <segher@kernel.crashing.org>
15289
15290 PR rtl-optimization/60818
15291 * simplify-rtx.c (simplify_binary_operation_1): Do not replace
15292 a compare of comparisons with the thing compared if this results
15293 in a different machine mode.
15294
15295 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
15296
15297 * alias.c (base_alias_check): Fix typo in comment.
15298 * cgraph.h (class ipa_polymorphic_call_context): Likewise.
15299 * cgraphunit.c (symbol_table::compile): Likewise.
15300 * collect2.c (maybe_run_lto_and_relink): Likewise.
15301 * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
15302 * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
15303 * config/avr/avr.c (avr_map_op_t): Likewise.
15304 * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
15305 * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
15306 * config/epiphany/epiphany.md (movcc): Likewise.
15307 * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
15308 * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
15309 Likewise.
15310 * config/mips/mips.c (mips_save_restore_reg): Likewise.
15311 * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
15312 * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
15313 * config/sh/sh.c (sh_rtx_costs): Likewise.
15314 * fold-const.c (fold_truth_andor): Likewise.
15315 * genautomata.c (collapse_flag): Likewise.
15316 * gengtype.h (struct type::u::s): Likewise.
15317 * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
15318 * input.c (FORMAT_AMOUNT): Likewise.
15319 * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
15320 (known_aggs_to_agg_replacement_list): Likewise.
15321 * ipa-inline-analysis.c: Likewise.
15322 * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
15323 * ipa-polymorphic-call.c
15324 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
15325 * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
15326 * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
15327 Likewise.
15328 * modulo-sched.c (apply_reg_moves): Likewise.
15329 * omp-expand.c (build_omp_regions_1): Likewise.
15330 * trans-mem.c (struct tm_wrapper_hasher): Likewise.
15331 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
15332 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
15333 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
15334 * value-prof.c: Likewise.
15335 * var-tracking.c (val_reset): Likewise.
15336
15337 2017-04-03 Richard Biener <rguenther@suse.de>
15338
15339 PR tree-optimization/80275
15340 * fold-const.c (split_address_to_core_and_offset): Handle
15341 POINTER_PLUS_EXPR.
15342
15343 2017-04-03 Eric Botcazou <ebotcazou@adacore.com>
15344
15345 * tree-nested.c (get_descriptor_type): Make sure that the alignment of
15346 descriptors is at least equal to that of functions.
15347
15348 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
15349
15350 * config/i386/sse.md (movdi_to_sse): Add missing DONE.
15351
15352 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
15353
15354 PR target/80250
15355 * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
15356 (mov<IMOD4:mode>): New expander.
15357 (*mov<IMOD4:mode>_internal): New insn and split pattern.
15358
15359 2017-03-31 Segher Boessenkool <segher@kernel.crashing.org>
15360
15361 PR rtl-optimization/79405
15362 * fwprop.c (propagations_left): New variable.
15363 (forward_propagate_into): Decrement it.
15364 (fwprop_init): Initialize it.
15365 (fw_prop): If the variable has reached zero, stop propagating.
15366 (fwprop_addr): Ditto.
15367
15368 2017-03-31 Jakub Jelinek <jakub@redhat.com>
15369
15370 PR debug/79255
15371 * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
15372 a FUNCTION_DECL, pass it as decl instead of origin to
15373 process_scope_var.
15374
15375 2017-03-31 Alexander Monakov <amonakov@ispras.ru>
15376
15377 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
15378 string.
15379
15380 2017-03-31 Pat Haugen <pthaugen@us.ibm.com>
15381
15382 PR target/80107
15383 * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
15384 TARGET_VSX_SMALL_INTEGER.
15385
15386 2017-03-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15387
15388 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
15389 reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
15390
15391 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
15392
15393 * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
15394 extraction from odd-numbered MSA register.
15395
15396 2017-03-31 Jakub Jelinek <jakub@redhat.com>
15397
15398 PR middle-end/80173
15399 * expmed.c (store_bit_field_1): Don't attempt to create
15400 a word subreg out of hard registers wider than word if they
15401 have HARD_REGNO_NREGS of 1 for their mode.
15402
15403 PR middle-end/80163
15404 * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
15405 conversions to integer types wider than word and pointer.
15406
15407 PR debug/80025
15408 * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
15409 (rtx_equal_for_cselib_p): Pass 0 to it.
15410 * cselib.c (cselib_hasher::equal): Likewise.
15411 (rtx_equal_for_cselib_1): Add depth argument. If depth
15412 is 128, don't look up VALUE locs and punt. Increment
15413 depth in recursive calls when walking VALUE locs.
15414
15415 2017-03-31 Bernd Edlinger <bernd.edlinger@hotmail.de>
15416
15417 * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
15418 (make_gcov_file_name): Use the canonical path name for generating
15419 the MD5 value.
15420 (read_line): Fix handling of files with ascii null bytes.
15421
15422 2017-03-30 Matthew Fortune <matthew.fortune@imgtec.com>
15423
15424 * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
15425 to initialise a vector register instead
15426 of using a const_int.
15427
15428 2017-03-30 Jakub Jelinek <jakub@redhat.com>
15429
15430 PR translation/80189
15431 * gimplify.c (omp_default_clause): Use %qs instead of %s in
15432 diagnostic messages.
15433
15434 2017-03-30 Peter Bergner <bergner@vnet.ibm.com>
15435
15436 PR target/80246
15437 * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
15438 (dfp_diex_<mode>): Update mode of operand 1.
15439 * doc/extend.texi (dxex, dxexq): Document change to return type.
15440 (diex, diexq): Document change to argument type.
15441
15442 2017-03-30 Martin Jambor <mjambor@suse.cz>
15443
15444 PR ipa/77333
15445 * cgraph.h (cgraph_build_function_type_skip_args): Declare.
15446 * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
15447 it reflects the signature changes performed at the callee side.
15448 * cgraphclones.c (build_function_type_skip_args): Make public, renamed
15449 to cgraph_build_function_type_skip_args.
15450 (build_function_decl_skip_args): Adjust call to the above function.
15451
15452 2017-03-30 Jakub Jelinek <jakub@redhat.com>
15453
15454 PR target/80206
15455 * config/i386/sse.md
15456 (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
15457 register as dest whenever it is a MEM not rtx_equal_p to the
15458 corresponding dup operand, and when forcing into reg move the
15459 reg into the memory afterwards.
15460 (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
15461 Likewise. Use <ssehalfvecmode> instead of <ssequartermode>
15462 for the force_reg mode.
15463 (avx512vl_vextractf128<mode>): Use register as dest either
15464 always when a MEM, or when it is a MEM not rtx_equal_p to the
15465 corresponding dup operand, or even not when it is a CONST_VECTOR
15466 depending on the mode and lo vs. hi.
15467 (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
15468 parens.
15469 (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
15470 (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
15471 Likewise. Require that operands[2] is even.
15472 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
15473 Remove extraneous parens. Require that operands[2] is a multiple
15474 of 4.
15475 (vec_extract_lo_<mode><mask_name>): Don't bother testing if
15476 operands[0] is a MEM if <mask_applied>, the predicates/constraints
15477 disallow memory then.
15478
15479 2017-03-30 Richard Biener <rguenther@suse.de>
15480
15481 PR tree-optimization/77498
15482 * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
15483 to non-constants over backedges.
15484
15485 2017-03-29 Segher Boessenkool <segher@kernel.crashing.org>
15486
15487 PR rtl-optimization/80233
15488 * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
15489 as last_combined_insn. Do not test for BARRIER_P separately.
15490
15491 2017-03-29 Andreas Schwab <schwab@suse.de>
15492
15493 PR ada/80146
15494 * calls.c (prepare_call_address): Convert funexp to Pmode before
15495 copying to temp reg.
15496
15497 2017-03-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15498
15499 PR tree-optimization/80158
15500 * gimple-ssa-strength-reduction.c (replace_mult_candidate):
15501 Handle possible future case of more than one alternate
15502 interpretation.
15503 (replace_rhs_if_not_dup): Likewise.
15504 (replace_one_candidate): Likewise.
15505
15506 2017-03-28 Vladimir Makarov <vmakarov@redhat.com>
15507
15508 PR rtl-optimization/80193
15509 * ira.c (ira): Do not check allocation for LRA.
15510
15511 2017-03-28 Alexander Monakov <amonakov@ispras.ru>
15512
15513 * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
15514 (nvptx_output_simt_exit): Declare.
15515 * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
15516 cfun->machine->unisimt_location. Handle NULL unisimt_predicate.
15517 (init_softstack_frame): Move initialization of crtl->is_leaf to...
15518 (nvptx_declare_function_name): ...here. Emit declaration of local
15519 memory space buffer for omp_simt_enter insn.
15520 (nvptx_output_unisimt_switch): New.
15521 (nvptx_output_softstack_switch): New.
15522 (nvptx_output_simt_enter): New.
15523 (nvptx_output_simt_exit): New.
15524 * config/nvptx/nvptx.h (struct machine_function): New fields
15525 has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
15526 * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
15527 (UNSPECV_SIMT_EXIT): Ditto.
15528 (omp_simt_enter_insn): New insn.
15529 (omp_simt_enter): New expansion.
15530 (omp_simt_exit): New insn.
15531 * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
15532
15533 * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
15534 (expand_GOMP_SIMT_ENTER_ALLOC): New.
15535 (expand_GOMP_SIMT_EXIT): New.
15536 * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
15537 (GOMP_SIMT_ENTER_ALLOC): Ditto.
15538 (GOMP_SIMT_EXIT): Ditto.
15539 * target-insns.def (omp_simt_enter): New insn.
15540 (omp_simt_exit): Ditto.
15541 * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
15542 simt_dlist.
15543 (lower_rec_simd_input_clauses): Implement SIMT privatization.
15544 (lower_rec_input_clauses): Likewise.
15545 (lower_lastprivate_clauses): Handle SIMT privatization.
15546
15547 * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
15548 (ompdevlow_adjust_simt_enter): New.
15549 (find_simtpriv_var_op): New.
15550 (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
15551 IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
15552
15553 * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
15554 * tree-inline.c (expand_call_inline): Handle SIMT privatization.
15555 (copy_decl_for_dup_finish): Ditto.
15556
15557 * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
15558
15559 2017-03-28 Uros Bizjak <ubizjak@gmail.com>
15560
15561 PR target/53383
15562 * config/i386/i386.c (ix86_option_override_internal): Always
15563 allow -mpreferred-stack-boundary=3 for 64-bit targets.
15564
15565 2017-03-28 Bin Cheng <bin.cheng@arm.com>
15566
15567 * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
15568
15569 2017-03-28 Bin Cheng <bin.cheng@arm.com>
15570
15571 * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
15572 mark new edge's irreducible flag accordign to it.
15573 (vect_do_peeling): Check loop preheader edge's irreducible flag
15574 and pass it to function slpeel_add_loop_guard.
15575
15576 2017-03-28 Richard Sandiford <richard.sandiford@arm.com>
15577
15578 PR tree-optimization/80218
15579 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
15580 Update block frequencies and counts.
15581
15582 2017-03-28 Richard Biener <rguenther@suse.de>
15583
15584 PR tree-optimization/78644
15585 * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
15586 of a simplification result we may not use it at all.
15587
15588 2017-03-28 Richard Biener <rguenther@suse.de>
15589
15590 PR ipa/80205
15591 * tree-inline.c (copy_phis_for_bb): Do not create PHI node
15592 without arguments, generate default definition of a SSA name.
15593
15594 2017-03-28 Richard Biener <rguenther@suse.de>
15595
15596 PR middle-end/80222
15597 * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
15598 TYPE_REF_CAN_ALIAS_ALL references.
15599 * fold-const.c (fold_indirect_ref_1): Likewise.
15600
15601 2017-03-28 Martin Liska <mliska@suse.cz>
15602
15603 PR ipa/80104
15604 * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
15605 thunk call as DECL_GIMPLE_REG_P when vector or complex type.
15606
15607 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
15608 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
15609
15610 * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
15611 (EXTRA_SPECS): Define.
15612 (SUBTARGET_EXTRA_SPECS): Likewise.
15613 (SUBTARGET_CPP_SPEC): Likewise.
15614 * config/arc/elf.h (EXTRA_SPECS): Renamed to
15615 SUBTARGET_EXTRA_SPECS.
15616 * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
15617
15618 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
15619
15620 * config/arc/simdext.md (vst64_insn): Update pattern.
15621 (vld32wh_insn): Likewise.
15622 (vld32wl_insn): Likewise.
15623 (vld64_insn): Likewise.
15624 (vld32_insn): Likewise.
15625
15626 2017-03-28 Marek Polacek <polacek@redhat.com>
15627
15628 PR sanitizer/80067
15629 * fold-const.c (fold_comparison): Use protected_set_expr_location
15630 instead of SET_EXPR_LOCATION.
15631
15632 2017-03-28 Markus Trippelsdorf <markus@trippelsdorf.de>
15633
15634 * tree.c (add_expr): Avoid name lookup warning.
15635
15636 2017-03-27 Jeff Law <law@redhat.com>
15637
15638 PR tree-optimization/80216
15639 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
15640 function name. Limit recursion depth.
15641 (record_temporary_equivalences): Corresponding changes.
15642
15643 2017-03-27 Jonathan Wakely <jwakely@redhat.com>
15644
15645 * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
15646 covered first.
15647
15648 2017-03-27 Jakub Jelinek <jakub@redhat.com>
15649
15650 PR target/80102
15651 * reg-notes.def (REG_CFA_NOTE): Define. Use it for CFA related
15652 notes.
15653 * cfgcleanup.c (reg_note_cfa_p): New array.
15654 (insns_have_identical_cfa_notes): New function.
15655 (old_insns_match_p): Don't cross-jump in between /f
15656 and non-/f instructions. If both i1 and i2 are frame related,
15657 verify all CFA notes, their order and content.
15658
15659 2017-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
15660
15661 PR target/78543
15662 * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
15663 HImode and SImode with zero extend to DImode to one insn.
15664 (bswap<mode>2_extenddi): Likewise.
15665 (bswapsi2_extenddi): Likewise.
15666 (bswaphi2_extendsi): Likewise.
15667 (bswaphi2): Combine bswap HImode and SImode into one insn.
15668 Separate memory insns from swapping register.
15669 (bswapsi2): Likewise.
15670 (bswap<mode>2): Likewise.
15671 (bswaphi2_internal): Delete, no longer used.
15672 (bswapsi2_internal): Likewise.
15673 (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
15674 store, and gpr<-gpr swap insns.
15675 (bswap<mode>2_store): Likewise.
15676 (bswaphi2_reg): Register only splitter, combine with the splitter.
15677 (bswaphi2 splitter): Likewise.
15678 (bswapsi2_reg): Likewise.
15679 (bswapsi2 splitter): Likewise.
15680 (bswapdi2): If we have the LDBRX and STDBRX instructions, split
15681 the insns into load, store, and register/register insns.
15682 (bswapdi2_ldbrx): Likewise.
15683 (bswapdi2_load): Likewise.
15684 (bswapdi2_store): Likewise.
15685 (bswapdi2_reg): Likewise.
15686
15687 2017-03-27 Gunther Nikl <gnikl@users.sourceforge.net>
15688
15689 * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
15690 (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
15691
15692 2017-03-27 Kelvin Nilsen <kelvin@gcc.gnu.org>
15693
15694 PR target/80103
15695 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
15696 add comments.
15697 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
15698 special handling for target option conflicts between dform
15699 options (-mpower9-dform, -mpower9-dform-vector,
15700 -mpower9-dform-scalar) and -mno-direct-move.
15701
15702 2017-03-27 Richard Biener <rguenther@suse.de>
15703
15704 PR tree-optimization/80181
15705 * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
15706
15707 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
15708
15709 * config/arc/predicates.md (move_double_src_operand): Replace the
15710 call to move_double_src_operand with a call to address_operand.
15711
15712 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
15713
15714 * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
15715 * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
15716 * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
15717
15718 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
15719
15720 * config/arc/predicates.md (long_immediate_loadstore_operand):
15721 Consider scaled addresses cases.
15722
15723 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
15724
15725 * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
15726 restored when in interrupt.
15727 * config/arc/arc.md (simple_return): ARCv2 rtie instruction
15728 doesn't have delay slot.
15729
15730 2017-03-27 Richard Biener <rguenther@suse.de>
15731
15732 PR ipa/79776
15733 * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
15734 inlined thunk clones.
15735
15736 2017-03-27 Jakub Jelinek <jakub@redhat.com>
15737
15738 PR sanitizer/80168
15739 * asan.c (instrument_derefs): Copy over last operand from
15740 original COMPONENT_REF to the new COMPONENT_REF with
15741 DECL_BIT_FIELD_REPRESENTATIVE.
15742 * ubsan.c (instrument_object_size): Likewise.
15743
15744 2017-03-27 Richard Biener <rguenther@suse.de>
15745
15746 PR tree-optimization/80170
15747 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
15748 sure DR/SCEV didnt fold in constants we do not see when looking
15749 at the reference base alignment.
15750
15751 2017-03-27 Richard Biener <rguenther@suse.de>
15752
15753 PR middle-end/80171
15754 * gimple-fold.c (fold_ctor_reference): Properly guard against
15755 NULL return value from canonicalize_constructor_val.
15756
15757 2017-03-25 Uros Bizjak <ubizjak@gmail.com>
15758
15759 PR target/80180
15760 * config/i386/i386.c (ix86_expand_builtin)
15761 <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
15762 flags reg setting and flags reg using instructions.
15763 <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto. Use non-flags reg
15764 clobbering instructions to zero extend op2.
15765
15766 2017-03-25 Gerald Pfeifer <gerald@pfeifer.com>
15767
15768 * doc/install.texi (Configuration) <--with-aix-soname>:
15769 Update link to AIX ld.
15770
15771 2017-03-25 Bernd Schmidt <bschmidt@redhat.com>
15772
15773 PR rtl-optimization/80160
15774 PR rtl-optimization/80159
15775 * lra-assigns.c (must_not_spill_p): Tighten new test to also take
15776 reg_alternate_class into account.
15777
15778 2017-03-24 Vladimir Makarov <vmakarov@redhat.com>
15779
15780 PR target/80148
15781 * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
15782 to consider in curr_insn_transform.
15783
15784 2017-03-24 Jakub Jelinek <jakub@redhat.com>
15785
15786 * genrecog.c (validate_pattern): Add VEC_SELECT validation.
15787 * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
15788 and emit_mode_inner.
15789
15790 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15791
15792 * config/s390/s390-builtins.def: Add VXE builtins. Add a flags
15793 argument to the overloaded builtin variants. Use the new flag to
15794 deprecate certain builtin variants.
15795 * config/s390/s390-builtin-types.def: Add new builtin types.
15796 * config/s390/s390-builtins.h: Support new flags field for
15797 overloaded builtins.
15798 * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
15799 (s390_macro_to_expand): Enable vector float data type.
15800 (s390_cpu_cpp_builtins_internal): Indicate support of the new
15801 builtins by incrementing the __VEC__ version number.
15802 (s390_expand_overloaded_builtin): Support expansion of vec_xl and
15803 vec_xst.
15804 (s390_resolve_overloaded_builtin): Emit error messages depending
15805 on the builtin flags.
15806 * config/s390/s390.c (s390_expand_builtin): Support additional
15807 flags argument. Change error message to match the messages
15808 emitted in s390-c.c.
15809 * config/s390/s390.md: New UNSPEC_* constants.
15810 (op_type): Add new instruction types.
15811 * config/s390/vecintrin.h: Add new builtins and test data class
15812 constants.
15813 * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
15814 (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
15815 (VEC_INEXACT, VEC_NOINEXACT): New constants.
15816 ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
15817 ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
15818 ("vec_mergel<mode>"): V_HW -> VEC_HW.
15819
15820 ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
15821 ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
15822 ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
15823 ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
15824
15825 ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
15826 ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
15827 ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
15828 ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
15829
15830 ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
15831 ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
15832 ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
15833 ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
15834 ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
15835 ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
15836 ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
15837
15838 ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
15839 ("vec_scatter_element<V_HW_4:mode>_DI")
15840 ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
15841 ("vec_fpint<mode>", "vflls")
15842 ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
15843 ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
15844 ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
15845 ("*vec_cmphe<mode>_cc"): ... these.
15846
15847 ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
15848 mode constant instead of magic value.
15849
15850 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15851
15852 * config/s390/s390.c (s390_expand_vec_compare): Support other
15853 vector floating point modes than just V2DF.
15854 (s390_expand_vcond): Likewise.
15855 (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
15856 (s390_cannot_change_mode_class): Prevent mode changes between TF
15857 and V1TF in vector registers.
15858 * config/s390/s390.md (DF, SF): New mode attributes.
15859 ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
15860 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
15861 SFmode support for VRs.
15862 * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
15863 vector fp modes.
15864 (VFT, VF_HW): New mode iterators.
15865 (vw, sdx): New mode attributes.
15866 ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
15867 ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
15868 ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
15869 ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
15870 ("vec_unorderedv2df"): Adjust the v2df only patterns to support
15871 also the new vector floating point modes. Renaming to ...
15872
15873 ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
15874 ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
15875 ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
15876 ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
15877 ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
15878 ("vec_unordered<mode>"): ... these.
15879
15880 ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
15881 ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
15882 ("*vec_extendv2df"): New insn definitions.
15883
15884 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15885
15886 * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
15887 ("mulditi3_2", "*muldi3_sign"): New patterns.
15888 ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
15889 rename the pattern definition.
15890
15891 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15892
15893 * config/s390/s390.md ("indirect_jump"): Turn insn definition into
15894 expander.
15895 ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
15896
15897 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15898
15899 * config/s390/s390.c (s390_expand_vec_init): Use vllezl
15900 instruction if possible.
15901 * config/s390/vector.md (vec_halfnumelts): New mode
15902 attribute.
15903 ("*vec_vllezlf<mode>"): New pattern.
15904
15905 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15906
15907 * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
15908 ("popcountv4si2", "popcountv2di2"): Rename to ...
15909 ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
15910 ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
15911 condition.
15912 ("popcount<mode>2_vxe"): New pattern.
15913
15914 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15915
15916 * common/config/s390/s390-common.c (processor_flags_table): Add
15917 arch12.
15918 * config.gcc: Add arch12.
15919 * config/s390/driver-native.c (s390_host_detect_local_cpu):
15920 Default to arch12 for unknown CPU model numbers.
15921 * config/s390/s390-builtins.def: Add B_VXE builtin flag.
15922 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
15923 PROCESSOR_max sanity check.
15924 * config/s390/s390-opts.h (enum processor_type): Add
15925 PROCESSOR_ARCH12.
15926 * config/s390/s390.c (processor_table): Add arch12.
15927 (s390_expand_builtin): Add check for B_VXE flag.
15928 (s390_issue_rate): Add PROCESSOR_ARCH12.
15929 (s390_get_sched_attrmask): Likewise.
15930 (s390_get_unit_mask): Likewise.
15931 (s390_sched_score): Enable z13 scheduling for arch12.
15932 (s390_sched_reorder): Likewise.
15933 (s390_sched_variable_issue): Likewise.
15934 * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
15935 PF_VXE.
15936 (s390_tune_attr): Use z13 scheduling also for arch12.
15937 (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
15938 (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
15939 (TARGET_VXE_P): New macros.
15940 * config/s390/s390.md: Add arch12 to cpu attribute. Add arch12
15941 and vxe to cpu_facility. Add arch12 and vxe to enabled attribute.
15942 * config/s390/s390.opt: Add arch12 as processor_type.
15943
15944 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15945
15946 * config/s390/s390.md
15947 ("fixuns_truncdddi2", "fixuns_trunctddi2")
15948 ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
15949 ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
15950
15951 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
15952 Rename expanders to ...
15953
15954 ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
15955 ("fixuns_truncdddi2_emu"): ... these.
15956
15957 ("fixuns_trunc<mode>si2_emu"): New expander.
15958
15959 ("*fixuns_truncdfdi2_z13"): Rename to ...
15960 ("*fixuns_truncdfdi2_vx"): ... this.
15961
15962 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15963
15964 * config/s390/2964.md: Remove the single element vector compare
15965 instructions which are no longer used.
15966 * config/s390/s390.c (s390_select_ccmode): Remove handling of
15967 vector CCmodes.
15968 (s390_canonicalize_comparison): Remove handling of DFmode
15969 compares.
15970 (s390_expand_vec_compare_scalar): Remove function.
15971 (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
15972 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
15973 pattern.
15974 ("*cmp<mode>_ccs"): Add wfcdb instruction.
15975
15976 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15977
15978 * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
15979 FP zero.
15980 ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
15981 will anyway by matched by mov<mode>_64dfp.
15982
15983 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15984
15985 * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
15986 vlef/vstef. Add missing operand to vleif.
15987
15988 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15989
15990 * config/s390/s390.c (s390_expand_vec_init): Enable vector load
15991 pair for all vector types with 64 bit elements.
15992 * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
15993 * config/s390/vector.md (V_HW_64): ... here.
15994 (V_128_NOSINGLE): New mode iterator.
15995 ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
15996 ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
15997 ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
15998 ("*vec_load_pairv2di"): Change to ...
15999 ("*vec_load_pair<mode>"): ... this one.
16000
16001 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16002
16003 * config/s390/constraints.md: Add comments.
16004 (jKK): Reject element sizes > 8 bytes.
16005 * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
16006 s_operands.
16007 * config/s390/s390.md: Add the s_operand checks formerly in
16008 s390_split_ok_p to various splitters where they are still
16009 required.
16010 * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
16011 for 128 bit vectors. Plus two splitters.
16012
16013 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16014
16015 * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
16016 the file.
16017
16018 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16019
16020 PR target/79893
16021 * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
16022 error if the boundary argument is not constant.
16023
16024 2017-03-24 Jakub Jelinek <jakub@redhat.com>
16025
16026 PR rtl-optimization/80112
16027 * loop-doloop.c (doloop_condition_get): Don't check condition
16028 if cmp isn't SET with IF_THEN_ELSE src.
16029
16030 2017-03-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16031
16032 PR tree-optimization/80158
16033 * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
16034 replacing a candidate statement, also replace it for the
16035 candidate's alternate interpretation.
16036 (replace_rhs_if_not_dup): Likewise.
16037 (replace_one_candidate): Likewise.
16038
16039 2017-03-24 Richard Biener <rguenther@suse.de>
16040
16041 PR tree-optimization/80167
16042 * graphite-isl-ast-to-gimple.c
16043 (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
16044 properly.
16045 (translate_isl_ast_to_gimple::get_rename): Likewise.
16046
16047 2017-03-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
16048
16049 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
16050 handling of certain combinations of target options, including the
16051 combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
16052 -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
16053
16054 2017-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16055
16056 PR target/71436
16057 * config/arm/arm.md (*load_multiple): Add reload_completed to
16058 matching condition.
16059
16060 2017-03-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16061 Richard Biener <rguenth@suse.de>
16062
16063 PR tree-optimization/79908
16064 PR tree-optimization/80136
16065 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
16066 been cast away, gimplify_and_add suffices.
16067
16068 2017-03-23 Markus Trippelsdorf <markus@trippelsdorf.de>
16069
16070 * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
16071
16072 2017-03-23 Richard Biener <rguenther@suse.de>
16073
16074 PR tree-optimization/80032
16075 * gimplify.c (gimple_push_cleanup): Forced unconditional
16076 cleanups still have to go to the conditional_cleanups
16077 sequence.
16078
16079 2017-03-22 Jakub Jelinek <jakub@redhat.com>
16080
16081 PR tree-optimization/80072
16082 * tree-ssa-reassoc.c (struct operand_entry): Change id field type
16083 to unsigned int.
16084 (next_operand_entry_id): Change type to unsigned int.
16085 (sort_by_operand_rank): Make sure to return the right return value
16086 even if unsigned fields are bigger than INT_MAX.
16087 (struct oecount): Change cnt and id type to unsigned int.
16088 (oecount_hasher::equal): Formatting fix.
16089 (oecount_cmp): Make sure to return the right return value
16090 even if unsigned fields are bigger than INT_MAX.
16091 (undistribute_ops_list): Change next_oecount_id type to unsigned int.
16092
16093 PR c++/80129
16094 * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
16095 TREE_READONLY on result if writing it more than once.
16096
16097 PR sanitizer/80110
16098 * doc/invoke.texi (-fsanitize=thread): Document that with
16099 -fnon-call-exceptions atomics are not able to throw
16100 exceptions.
16101
16102 PR sanitizer/80110
16103 * tsan.c: Include tree-eh.h.
16104 (instrument_builtin_call): Call maybe_clean_eh_stmt or
16105 maybe_clean_or_replace_eh_stmt where needed.
16106 (instrument_memory_accesses): Add cfg_changed argument.
16107 Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
16108 if it returned true.
16109 (tsan_pass): Adjust caller. Return TODO_cleanup_cfg if cfg_changed.
16110
16111 PR rtl-optimization/63191
16112 * config/i386/i386.c (ix86_delegitimize_address): Turn into small
16113 wrapper function, moved the whole old content into ...
16114 (ix86_delegitimize_address_1): ... this. New inline function.
16115 (ix86_find_base_term): Use ix86_delegitimize_address_1 with
16116 true as last argument instead of ix86_delegitimize_address.
16117
16118 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
16119
16120 * config/aarch64/aarch64.c (generic_branch_cost): Copy
16121 cortexa57_branch_cost.
16122
16123 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
16124
16125 * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
16126
16127 2017-03-21 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
16128
16129 PR target/80123
16130 * doc/md.texi (Constraints): Document wA constraint.
16131 * config/rs6000/constraints.md (wA): New.
16132 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
16133 (rs6000_init_hard_regno_mode_ok): Init wA constraint.
16134 * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
16135 * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
16136
16137 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
16138
16139 PR c++/80029
16140 * gimplify.c (is_oacc_declared): New function.
16141 (oacc_default_clause): Use it to set default flags for acc declared
16142 variables inside parallel regions.
16143 (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
16144 declared variables.
16145 (gimplify_oacc_declare): Gimplify the declare clauses. Add the
16146 declare attribute to any decl as necessary.
16147
16148 2017-03-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
16149
16150 PR target/80082
16151 * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
16152 (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
16153 * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
16154 (arm_arch_lpae): This.
16155 * config/arm/arm.c (arm_arch7ve): Rename into ...
16156 (arm_arch_lpae): This. Define it in term of isa_bit_lpae.
16157 * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
16158 arm_arch_lpae.
16159
16160 2017-03-22 Martin Liska <mliska@suse.cz>
16161
16162 PR target/79906
16163 * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
16164 error message instead of an ICE.
16165
16166 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16167
16168 * doc/extend.texi (6.11 Additional Floating Types): Revise.
16169
16170 2017-03-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
16171
16172 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
16173 comments.
16174 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
16175 comments.
16176
16177 2017-03-21 Martin Sebor <msebor@redhat.com>
16178
16179 * doc/extend.texi: Use "cannot" instead of "can't."
16180 * doc/hostconfig.texi: Same.
16181 * doc/install.texi: Same.
16182 * doc/invoke.texi: Same.
16183 * doc/loop.texi: Same.
16184 * doc/md.texi: Same.
16185 * doc/objc.texi: Same.
16186 * doc/rtl.texi: Same.
16187 * doc/tm.texi: Same.
16188 * doc/tm.texi.in: Same.
16189 * doc/trouble.texi: Same.
16190
16191 2017-03-21 Alexandre Oliva <aoliva@redhat.com>
16192
16193 PR debug/63238
16194 * dwarf2out.c (struct checksum_attributes): Add at_alignment.
16195 (collect_checksum_attributes): Set it.
16196 (die_checksum_ordered): Use it.
16197
16198 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16199
16200 PR tree-optimization/79908
16201 * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
16202 change: For a VA_ARG whose LHS has been cast away, use
16203 force_gimple_operand to construct the side effects.
16204
16205 2017-03-21 David Malcolm <dmalcolm@redhat.com>
16206
16207 PR translation/80001
16208 * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
16209 more amenable to translation.
16210 (oacc_loop_auto_partitions): Likewise.
16211
16212 2017-03-21 Marek Polacek <polacek@redhat.com>
16213 Martin Sebor <msebor@redhat.com>
16214
16215 PR tree-optimization/80109
16216 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
16217 on INTEGRAL_TYPE_P.
16218
16219 2017-03-21 Jakub Jelinek <jakub@redhat.com>
16220 Segher Boessenkool <segher@kernel.crashing.org>
16221
16222 PR target/80125
16223 * combine.c (can_combine_p): Revert the 2017-03-20 change, only
16224 check reg_used_between_p between insn and one of succ or succ2
16225 depending on if succ is artificial insn not inserted into insn
16226 stream.
16227
16228 2017-03-21 Martin Liska <mliska@suse.cz>
16229
16230 PR gcov-profile/80081
16231 * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
16232 * doc/gcc.texi: Include gcov-dump stuff.
16233 * doc/gcov-dump.texi: New file.
16234
16235 2017-03-21 Toma Tabacu <toma.tabacu@imgtec.com>
16236
16237 PR rtl-optimization/79150
16238 * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
16239 conditional jump, if the jump is the last insn of the loop.
16240
16241 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16242 Richard Biener <rguenth@suse.de>
16243
16244 PR tree-optimization/79908
16245 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
16246 been cast away, use force_gimple_operand to construct the side
16247 effects.
16248
16249 2017-03-21 Martin Liska <mliska@suse.cz>
16250
16251 PR libfortran/79956
16252 * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
16253 to NULL.
16254
16255 2017-03-21 Brad Spengler <spender@grsecurity.net>
16256
16257 PR plugins/80094
16258 * plugin.c (htab_hash_plugin): New function.
16259 (add_new_plugin): Use it and adjust.
16260 (parse_plugin_arg_opt): Adjust.
16261 (init_one_plugin): Likewise.
16262
16263 2017-03-21 Richard Biener <rguenther@suse.de>
16264
16265 PR tree-optimization/80032
16266 * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
16267 if set force the cleanup to happen unconditionally.
16268 (gimplify_target_expr): Push inserted clobbers with force_uncond
16269 to avoid them being removed by control-dependent DCE.
16270
16271 2017-03-21 Richard Biener <rguenther@suse.de>
16272
16273 PR tree-optimization/80122
16274 * tree-inline.c (copy_bb): Do not expans va-arg packs or
16275 va_arg_pack_len when the inlined call stmt requires pack
16276 expansion itself.
16277 * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
16278
16279 2017-03-21 Jakub Jelinek <jakub@redhat.com>
16280
16281 PR sanitizer/78158
16282 * tsan.c (instrument_builtin_call): If the memory model argument
16283 is not a constant, assume it is valid.
16284
16285 PR c/67338
16286 * fold-const.c (round_up_loc): Negate divisor in unsigned type to
16287 avoid UB.
16288
16289 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
16290
16291 PR rtl-optimization/79910
16292 * combine.c (can_combine_p): Do not allow combining an I0 or I1
16293 if its dest is used by an insn before I2 (other than the combined
16294 insns themselves, which are properly handled already).
16295
16296 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
16297
16298 Revert:
16299 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
16300
16301 * combine.c (record_used_regs): New static function.
16302 (try_combine): Handle situations where there is an additional
16303 instruction between I2 and I3 which needs to have a LOG_LINK
16304 updated.
16305
16306 Revert:
16307 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
16308
16309 * combine.c (try_combine): Delete redundant i1 test. Call
16310 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
16311
16312 2017-03-20 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
16313
16314 PR target/80083
16315 * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
16316 alternatives 13/14.
16317
16318 2017-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16319
16320 PR tree-optimization/80054
16321 * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
16322 the optimization if a PHI or any of its arguments is not dominated
16323 by the candidate's basis. Use gphi* rather than gimple* as
16324 appropriate.
16325 (replace_profitable_candidates): Clean up a gimple* variable that
16326 should be a gphi* variable.
16327
16328 2017-03-20 Martin Sebor <msebor@redhat.com>
16329
16330 PR c++/52477
16331 * doc/extend.texi (attribute constructor): Document present limitation.
16332
16333 2017-03-20 Kelvin Nilsen <kelvin@gcc.gnu.org>
16334
16335 PR target/79963
16336 * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
16337 __POWER9_VECTOR__ #ifdef control, change template definition to
16338 use Power9-specific built-in function.
16339 (vec_any_eq): Likewise.
16340 * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
16341 to control outcomes from this test.
16342 (vector_ae_<mode>p): For VEC_F modes, likewise.
16343
16344 2017-03-20 Ian Lance Taylor <iant@google.com>
16345
16346 * config/i386/i386.c (ix86_function_regparm): Save an extra
16347 register for -fsplit-stack with DECL_STATIC_CHAIN.
16348
16349 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
16350
16351 PR target/79912
16352 * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
16353 (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
16354
16355 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
16356
16357 * config/riscv/riscv.c (riscv_print_operand): Use "fence
16358 iorw,ow".
16359 * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
16360 iorw,iorw".
16361
16362 2017-03-20 Marek Polacek <polacek@redhat.com>
16363
16364 PR sanitizer/80063
16365 * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
16366
16367 2017-03-20 Richard Biener <rguenther@suse.de>
16368
16369 PR tree-optimization/80113
16370 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
16371 allocate extra SSA name for PHI def.
16372 (add_close_phis_to_outer_loops): Likewise.
16373 (add_close_phis_to_merge_points): Likewise.
16374 (copy_loop_close_phi_args): Likewise.
16375 (copy_cond_phi_nodes): Likewise.
16376
16377 2017-03-20 Martin Liska <mliska@suse.cz>
16378
16379 PR middle-end/79753
16380 * tree-chkp.c (chkp_build_returned_bound): Do not build
16381 returned bounds for a LHS that's not a BOUNDED_P type.
16382
16383 2017-03-20 Martin Liska <mliska@suse.cz>
16384
16385 PR target/79769
16386 PR target/79770
16387 * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
16388 COMPLEX_CST and VECTOR_CST.
16389
16390 2017-03-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16391
16392 PR target/78857
16393 * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
16394 target operand. A new splitter adds the clobber statement in case
16395 the target operand is dead anyway.
16396
16397 2017-03-19 Gerald Pfeifer <gerald@pfeifer.com>
16398
16399 * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
16400 to age-old versions of binutils and glibc.
16401
16402 2017-03-18 Segher Boessenkool <segher@kernel.crashing.org>
16403
16404 * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
16405
16406 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
16407
16408 * doc/contrib.texi (Contributors): Add Segher Boessenkool.
16409
16410 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
16411
16412 * doc/install.texi (Specific) <arm-*-eabi>: Remove old
16413 requirement for binutils 2.13.
16414
16415 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
16416
16417 * combine.c (try_combine): Delete redundant i1 test. Call
16418 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
16419
16420 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com
16421
16422 * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
16423 riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
16424 contents.
16425 <riscv64-*-elf>: Re-arrange section
16426 <riscv32-*-elf>: Add a note about requiring binutils 2.28.
16427 <riscv32-*-linux>: Likewise.
16428 <riscv64-*-elf>: Likewise
16429 <riscv64-*-linux>: Likewise.
16430
16431 2017-03-17 Richard Earnshaw <rearnsha@arm.com>
16432
16433 PR target/80052
16434 * aarch64.opt(verbose-cost-dump): Fix typo.
16435
16436 2017-03-17 Pat Haugen <pthaugen@us.ibm.com>
16437
16438 PR target/79951
16439 * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
16440 for VECTOR_UNIT_VSX_P (<MODE>mode) too.
16441
16442 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
16443
16444 * reload.c (find_reloads): When reloading a nonoffsettable address,
16445 use RELOAD_OTHER for it and its address reloads.
16446
16447 PR rtl-optimization/79910
16448 * combine.c (record_used_regs): New static function.
16449 (try_combine): Handle situations where there is an additional
16450 instruction between I2 and I3 which needs to have a LOG_LINK
16451 updated.
16452
16453 2017-03-17 Jeff Law <law@redhat.com>
16454
16455 PR tree-optimization/71437
16456 * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
16457 conditional in the hash table first.
16458 (vrp_dom_walker::before_dom_children): Extract condition from
16459 ASSERT_EXPR. Record condition, its inverion and any implied
16460 conditions as well.
16461
16462 2017-03-17 Marek Polacek <polacek@redhat.com>
16463 Markus Trippelsdorf <markus@trippelsdorf.de>
16464
16465 PR tree-optimization/80079
16466 * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
16467 m_stores_head.
16468
16469 2017-03-17 Richard Biener <rguenther@suse.de>
16470
16471 PR middle-end/80075
16472 * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
16473 Properly verify the LHS before the RHS possibly claims to be
16474 handled.
16475 (stmt_could_throw_p): Hande gimple conds fully here. Clobbers
16476 do not throw.
16477
16478 2017-03-17 Martin Jambor <mjambor@suse.cz>
16479
16480 * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
16481 (List of -O2 options): Likewise.
16482 (-fipa-bit-cp): Replace "ipa" with "interprocedural."
16483 (-fipa-vrp) New.
16484
16485 2017-03-17 Tom de Vries <tom@codesourcery.com>
16486
16487 * gcov-dump.c (print_usage): Print bug_report_url.
16488
16489 2017-03-17 Richard Biener <rguenther@suse.de>
16490
16491 PR middle-end/80050
16492 * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
16493 (parser::peek): Likewise.
16494
16495 2017-03-17 Richard Biener <rguenther@suse.de>
16496
16497 PR tree-optimization/80048
16498 * sese.c (free_sese_info): Properly release rename_map and
16499 copied_bb_map elements.
16500
16501 2017-03-16 Alexandre Oliva <aoliva@redhat.com>
16502
16503 * gimple-ssa-store-merging.c (struct imm_store_chain_info):
16504 Add linked-list forward and backlinks. Insert on
16505 construction, remove on destruction.
16506 (class pass_store_merging): Add m_stores_head field.
16507 (pass_store_merging::terminate_and_process_all_chains):
16508 Iterate over m_stores_head list.
16509 (pass_store_merging::terminate_all_aliasing_chains):
16510 Likewise.
16511 (pass_store_merging::execute): Check for debug stmts first.
16512 Push new chains onto the m_stores_head stack.
16513
16514 2017-03-16 Michael Meissner <meissner@linux.vnet.ibm.com>
16515
16516 PR target/71294
16517 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
16518 SPLAT operation on ISA 2.07 64-bit systems that have direct move,
16519 but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
16520
16521 2017-03-16 Jeff Law <law@redhat.com>
16522
16523 PR tree-optimization/71437
16524 * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
16525 member function. Implementation moved into after_dom_children
16526 member function and into the threader's thread_outgoing_edges
16527 function.
16528 (dom_opt_dom_walker::after_dom_children): Simplify by moving
16529 some code into new thread_outgoing_edges.
16530 * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
16531 definition. Simplify marker handling (do it here). Assume we always
16532 have the available expression and the const/copies tables.
16533 (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
16534 and tree-vrp.c
16535 * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
16536 * tree-vrp.c (equiv_stack): No longer file scoped.
16537 (vrp_dom_walker): New class.
16538 (vrp_dom_walker::before_dom_children): New member function.
16539 (vrp_dom_walker::after_dom_children): Likewise.
16540 (identify_jump_threads): Setup domwalker. Use it rather than
16541 walking edges in a random order by hand. Simplify setup/finalization.
16542 (finalize_jump_threads): Remove.
16543 (vrp_finalize): Do not call identify_jump_threads here.
16544 (execute_vrp): Do it here instead and call thread_through_all_blocks
16545 here too.
16546
16547 PR tree-optimization/71437
16548 * tree-ssa-dom.c (pfn_simplify): Add basic_block argument. All
16549 callers changed.
16550 (simplify_stmt_for_jump_threading): Add basic_block argument. All
16551 callers changed.
16552 (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
16553 (dom_opt_dom_walker::thread_across_edge): Remove
16554 handle_dominating_asserts argument. All callers changed.
16555 (record_temporary_equivalences_from_stmts_at_dest): Corresponding
16556 changes. Remove calls to lhs_of_dominating_assert. Other
16557 uses of handle_dominating_asserts turn into unconditional code
16558 (simplify_control_stmt_condition_1): Likewise.
16559 (simplify_control_stmt_condition): Likewise.
16560 (thread_through_normal_block, thread_across_edge): Likewise.
16561 * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
16562 * tree-vrp.c (lhs_of_dominating_assert): Move here. Return original
16563 object if it is not an SSA_NAME.
16564 (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
16565 before calling into the VRP specific simplifiers.
16566 (identify_jump_threads): Remove handle_dominating_asserts
16567 argument.
16568
16569 2017-03-16 Jakub Jelinek <jakub@redhat.com>
16570
16571 PR fortran/79886
16572 * tree-diagnostic.c (default_tree_printer): No longer static.
16573 * tree-diagnostic.h (default_tree_printer): New prototype.
16574
16575 2017-03-16 Tamar Christina <tamar.christina@arm.com>
16576
16577 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
16578 Change ins into fmov.
16579
16580 2017-03-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16581
16582 * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
16583 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
16584 Use h_con constraint for operand 1.
16585 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
16586 (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
16587
16588 2017-03-15 Jeff Law <law@redhat.com>
16589
16590 PR tree-optimization/71437
16591 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
16592 (record_temporary_equivalences): Use it.
16593
16594 PR tree-optimization/71437
16595 * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
16596 tree-ssa-scopedtables.
16597 (lookup_avail_expr, build_and_record_new_cond): Likewise.
16598 (record_conditions, record_cond, vuse_eq): Likewise.
16599 (record_edge_info): Adjust to API tweak of record_conditions.
16600 (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
16601 (record_temporary_equivalences, optimize_stmt): Likewise.
16602 (eliminate_redundant_computations): Likewise.
16603 (record_equivalences_from_stmt): Likewise.
16604 * tree-ssa-scopedtables.c: Include options.h and params.h.
16605 (vuse_eq): New function, moved from tree-ssa-dom.c
16606 (build_and_record_new_cond): Likewise.
16607 (record_conditions): Likewise. Accept vector of conditions rather
16608 than edge_equivalence structure for first argument.
16609 for the first argument.
16610 (avail_exprs_stack::lookup_avail_expr): New member function, moved
16611 from tree-ssa-dom.c.
16612 (avail_exprs_stack::record_cond): Likewise.
16613 * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
16614 from tree-ssa-dom.c.
16615 (avail_exprs_stack): Add new member functions lookup_avail_expr
16616 and record_cond.
16617 (record_conditions): Declare.
16618
16619 2017-03-15 Vladimir Makarov <vmakarov@redhat.com>
16620
16621 PR target/80017
16622 * lra-constraints.c (process_alt_operands): Increase reject for
16623 reloading an input/output operand.
16624
16625 2017-03-15 Michael Meissner <meissner@linux.vnet.ibm.com>
16626
16627 PR target/79038
16628 * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
16629 insns to convert from signed/unsigned char/short to IEEE 128-bit
16630 floating point.
16631 (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
16632
16633 2017-03-15 Uros Bizjak <ubizjak@gmail.com>
16634
16635 PR target/80019
16636 * config/i386/i386.c (ix86_vector_duplicate_value): Create
16637 subreg of inner mode for values already in registers.
16638
16639 2017-03-15 Bernd Schmidt <bschmidt@redhat.com>
16640
16641 * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
16642 iteration reg is used after the loop.
16643
16644 2017-03-14 Martin Sebor <msebor@redhat.com>
16645
16646 PR tree-optimization/79800
16647 * gimple-ssa-sprintf.c (format_floating: Add argument. Handle
16648 precision in negative-positive range.
16649 (format_floating): Call non-const overload with adjusted precision.
16650
16651 2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
16652
16653 PR target/79947
16654 * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
16655 -mpowerpc-gfxopt.
16656
16657 2017-03-14 Martin Sebor <msebor@redhat.com>
16658
16659 PR middle-end/80020
16660 * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
16661 * builtins.def (aligned_alloc): Use it.
16662
16663 PR c/79936
16664 * Makefile.in (GTFILES): Add calls.c.
16665 * calls.c: Include "gt-calls.h".
16666
16667 2017-03-14 Bernd Schmidt <bschmidt@redhat.com>
16668
16669 PR rtl-optimization/79728
16670 * regs.h (struct target_regs): New field
16671 x_contains_allocatable_regs_of_mode.
16672 (contains_allocatable_regs_of_mode): New macro.
16673 * reginfo.c (init_reg_sets_1): Initialize it, and change
16674 contains_reg_of_mode so it includes global regs as well.
16675 * reload.c (push_reload): Use contains_allocatable_regs_of_mode
16676 rather than contains_regs_of_mode.
16677
16678 2017-03-14 Martin Liska <mliska@suse.cz>
16679
16680 * doc/invoke.texi: Document options that can't be combined with
16681 -fcheck-pointer-bounds.
16682
16683 2017-03-14 Martin Liska <mliska@suse.cz>
16684
16685 PR middle-end/79831
16686 * doc/invoke.texi (-Wchkp): Document the option.
16687
16688 2017-03-14 Martin Liska <mliska@suse.cz>
16689
16690 * Makefile.in: Install gcov-dump.
16691
16692 2017-03-14 Martin Liska <mliska@suse.cz>
16693
16694 * multiple_target.c (expand_target_clones): Bail out for
16695 an invalid attribute.
16696
16697 2017-03-14 Richard Biener <rguenther@suse.de>
16698
16699 * alias.c (struct alias_set_entry): Pack properly.
16700 * cfgloop.h (struct loop): Likewise.
16701 * cse.c (struct set): Likewise.
16702 * ipa-utils.c (struct searchc_env): Likewise.
16703 * loop-invariant.c (struct invariant): Likewise.
16704 * lra-remat.c (struct cand): Likewise.
16705 * recog.c (struct change_t): Likewise.
16706 * rtl.h (struct address_info): Likewise.
16707 * symbol-summary.h (function_summary): Likewise.
16708 * tree-loop-distribution.c (struct partition): Likewise.
16709 * tree-object-size.c (struct object_size_info): Likewise.
16710 * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
16711 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
16712 * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
16713 * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
16714 * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
16715 * tree-vectorizer.h (struct _loop_vec_info): Likewise.
16716 (struct _stmt_vec_info): Likewise.
16717
16718 2017-03-14 Martin Liska <mliska@suse.cz>
16719
16720 PR target/79892
16721 * multiple_target.c (create_dispatcher_calls): Check that
16722 a target can create a function dispatcher.
16723
16724 2017-03-14 Martin Liska <mliska@suse.cz>
16725
16726 PR lto/66295
16727 * multiple_target.c (expand_target_clones): Drop local.local
16728 flag for default implementation.
16729
16730 2017-03-14 Richard Biener <rguenther@suse.de>
16731
16732 PR tree-optimization/80030
16733 * tree-vect-stmts.c (vectorizable_store): Plug memleak.
16734
16735 2017-03-13 Kito Cheng <kito.cheng@gmail.com>
16736
16737 * config/riscv/riscv.c (riscv_emit_float_compare>: Use
16738 gcc_fallthrough() instead of __attribute__((fallthrough));
16739
16740 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
16741
16742 * doc/gcc.texi: Remove "up" link to (DIR).
16743 * doc/gccint.texi: Ditto.
16744
16745 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
16746
16747 * doc/install.texi (Specific) <avr>: Remove reference to
16748 binutils 2.13.
16749
16750 2017-03-13 Jeff Law <law@redhat.com>
16751
16752 * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
16753 attribute rather than comments.
16754
16755 * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
16756 match_scratch operand is highest.
16757
16758 2017-03-13 Martin Liska <mliska@suse.cz>
16759
16760 PR middle-end/78339
16761 * ipa-pure-const.c (warn_function_noreturn): If the declarations
16762 is a CHKP clone, use original declaration.
16763
16764 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
16765
16766 * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
16767 (arc_conditional_register_usage): Use a different allocation order
16768 when optimizing for size.
16769 * common/config/arc/arc-common.c (arc_option_optimization_table):
16770 Section anchors default on when optimizing for size.
16771
16772 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
16773
16774 * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
16775
16776 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
16777
16778 * config/arc/arc.c (arc_output_addsi): Emit code density adds.
16779 * config/arc/arc.md (cpu_facility): Add cd variant.
16780 (*movqi_insn): Add code density variant.
16781 (*movhi_insn): Likewise.
16782 (*movqi_insn): Likewise.
16783 (*addsi3_mixed): Likewise.
16784 (subsi3_insn): Likewise.
16785
16786 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
16787
16788 * config/arc/arc.md (movsi_cond_exec): Update constraint.
16789
16790 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
16791
16792 * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
16793 expressions with MINUS and UNARY ops.
16794
16795 2017-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16796
16797 PR target/79911
16798 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
16799 Rename to...
16800 (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
16801 between vec_select and vector argument.
16802 (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
16803 (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
16804 (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
16805 (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
16806 (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
16807 (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
16808
16809 2017-03-13 Richard Biener <rguenther@suse.de>
16810
16811 PR other/79991
16812 * params.def (vect-max-peeling-for-alignment): Fix typo.
16813
16814 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
16815
16816 * doc/install.texi (Specific) <mips-*-*>: Remove description of
16817 issue that only occurred with binutils below 2.18.
16818
16819 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
16820
16821 * doc/install.texi (Specific) <cris-axis-elf>: No longer
16822 refer to binutils 2.11/2.12 minimum.
16823
16824 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
16825
16826 * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
16827 ftp.kernel.org and simplify binutils requirement.
16828
16829 2017-03-11 Gerald Pfeifer <gerald@pfeifer.com>
16830
16831 * doc/invoke.texi (Warning Options): Fix spelling of link-time
16832 optimization.
16833 (Optimize Options): Ditto. Also remove redundancy.
16834
16835 2017-03-10 David Malcolm <dmalcolm@redhat.com>
16836
16837 PR translation/79848
16838 * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
16839 "%qs".
16840 * ipa-pure-const.c (suggest_attribute): Likewise. Convert _
16841 to G_ to avoid double translation.
16842
16843 2017-03-10 David Malcolm <dmalcolm@redhat.com>
16844
16845 PR translation/79923
16846 * auto-profile.c (get_combined_location): Convert leading
16847 character of diagnostics to lower case and remove trailing period.
16848 (read_profile): Likewise for various diagnostics.
16849 * config/arm/arm.c (arm_option_override): Remove trailing period
16850 from various diagnostics.
16851 * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
16852 (msp430_expand_delay_cycles): Likewise.
16853
16854 2017-03-10 David Malcolm <dmalcolm@redhat.com>
16855
16856 PR target/79925
16857 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
16858 full command-line argument, rather than just "str".
16859 (aarch64_validate_march): Likewise.
16860 (aarch64_validate_mtune): Likewise.
16861
16862 2017-03-10 Bernd Schmidt <bschmidt@redhat.com>
16863
16864 PR rtl-optimization/78911
16865 * lra-assigns.c (must_not_spill_p): New function.
16866 (spill_for): Use it.
16867
16868 2017-03-10 Jakub Jelinek <jakub@redhat.com>
16869
16870 PR tree-optimization/79981
16871 * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
16872 ATOMIC_COMPARE_EXCHANGE ifn result.
16873 (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
16874 IFN_ATOMIC_COMPARE_EXCHANGE.
16875
16876 2017-03-10 David Malcolm <dmalcolm@redhat.com>
16877
16878 PR driver/79875
16879 * opts.c (parse_sanitizer_options): Add missing question mark to
16880 "did you mean" message.
16881
16882 2017-03-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16883
16884 * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
16885 built-in.
16886 (VMULEUH_UNS): Likewise.
16887 (VMULOUB_UNS): Likewise.
16888 (VMULOUH_UNS): Likewise.
16889 * config/rs6000/rs6000.c (builtin_function_type): Remove
16890 references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
16891
16892 2017-03-10 David Malcolm <dmalcolm@redhat.com>
16893
16894 PR bootstrap/79952
16895 * read-rtl-function.c (function_reader::read_rtx_operand): Update
16896 x with result of extra_parsing_for_operand_code_0.
16897 (function_reader::extra_parsing_for_operand_code_0): Convert
16898 return type from void to rtx, returning x. When reading
16899 SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
16900 larger size containing struct block_symbol.
16901
16902 2017-03-10 Segher Boessenkool <segher@kernel.crashing.org>
16903
16904 * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
16905 -mfloat128-hardware without -m64.
16906
16907 2017-03-10 Will Schmidt <will_schmidt@vnet.ibm.com>
16908
16909 PR target/79941
16910 * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
16911 entries to the case statement that marks unsigned arguments to
16912 overloaded functions.
16913
16914 2017-03-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
16915
16916 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
16917 two typographic errors in the handling of TARGET_UPPER_REGS_DI.
16918
16919 2017-03-10 Pat Haugen <pthaugen@us.ibm.com>
16920
16921 PR target/79907
16922 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
16923 TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
16924
16925 2017-03-10 Martin Liska <mliska@suse.cz>
16926
16927 PR target/65705
16928 PR target/69804
16929 * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
16930 * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
16931 FIELD != NULL.
16932
16933 2017-03-10 Olivier Hainque <hainque@adacore.com>
16934
16935 * tree-switch-conversion (array_value_type): Start by resetting
16936 candidate type to it's main variant.
16937
16938 2017-03-10 Jakub Jelinek <jakub@redhat.com>
16939
16940 PR rtl-optimization/79909
16941 * combine.c (try_combine): Use simplify_replace_rtx on individual
16942 CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
16943 of the whole CALL_INSN_FUNCTION_USAGE.
16944
16945 PR tree-optimization/79972
16946 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
16947 get_range_info on SSA_NAMEs. Formatting fixes.
16948
16949 2017-03-10 Richard Biener <rguenther@suse.de>
16950 Jakub Jelinek <jakub@redhat.com>
16951
16952 PR tree-optimization/77975
16953 * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
16954 edge to be constant.
16955 (get_val_for): For constant x return it. Formatting fix.
16956 (loop_niter_by_eval): Avoid pointless looping if the next iteration
16957 would use the same bases as the current one.
16958
16959 2017-03-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16960
16961 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
16962 instead of vec_select for V1TImode.
16963 * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
16964 longer needed.
16965 (VSX_LE_128): Add V1TI to this mode iterator.
16966 (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
16967 (*vsx_le_perm_store_<mode>): Likewise.
16968 (pre-reload splitter for VSX stores): Likewise.
16969 (post-reload splitter for VSX stores): Likewise.
16970 (*vsx_xxpermdi2_le_<mode>): Likewise.
16971 (*vsx_lxvd2x2_le_<mode>): Likewise.
16972 (*vsx_stxvd2x2_le_<mode>): Likewise.
16973
16974 2017-03-09 Michael Eager <eager@eagercon.com>
16975
16976 Correct failures with --enable-checking=yes,rtl.
16977
16978 * config/microblaze/microblaze.c (microblaze_expand_shift):
16979 Replace GET_CODE test with CONST_INT_P and INTVAL test with
16980 test for const0_rtx.
16981 * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
16982 lshrsi3_byone): Replace INTVAL with test for const1_rtx.
16983
16984 2017-03-09 Richard Biener <rguenther@suse.de>
16985
16986 PR tree-optimization/79977
16987 * graphite-scop-detection.c (scop_detection::merge_sese):
16988 Handle the case of extra exits to blocks dominating the entry.
16989
16990 2017-03-09 Toma Tabacu <toma.tabacu@imgtec.com>
16991
16992 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
16993 Document rdynamic.
16994
16995 2017-03-09 Vladimir Makarov <vmakarov@redhat.com>
16996
16997 PR rtl-optimization/79949
16998 * lra-constraints.c (process_alt_operands): Check memory when
16999 trying to predict a cycle. Print about the overall increase.
17000
17001 2017-03-09 Richard Biener <rguenther@suse.de>
17002
17003 PR middle-end/79971
17004 * gimple-expr.c (useless_type_conversion_p): Preserve
17005 TYPE_SATURATING for fixed-point types.
17006
17007 2017-03-09 Richard Biener <rguenther@suse.de>
17008
17009 PR ipa/79970
17010 * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
17011 alignment of BLKmode params.
17012
17013 2017-03-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17014
17015 PR target/79913
17016 * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
17017 (VALL_NO_V2Q): Likewise.
17018 (VDQF_DF): Delete.
17019 * config/aarch64/aarch64-simd.md
17020 (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
17021 iterator.
17022 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
17023 VALL_NO_V2Q mode iterator.
17024 (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
17025
17026 2017-03-09 Martin Liska <mliska@suse.cz>
17027
17028 PR tree-optimization/79631
17029 * tree-chkp-opt.c (chkp_is_constant_addr): Call
17030 tree_int_cst_sign_bit just for INTEGER constants.
17031
17032 2017-03-09 Martin Liska <mliska@suse.cz>
17033
17034 PR target/65705
17035 PR target/69804
17036 * toplev.c (process_options): Disable -fcheck-pointer-bounds with
17037 sanitizers.
17038
17039 2017-03-09 Marek Polacek <polacek@redhat.com>
17040
17041 PR c++/79672
17042 * tree.c (inchash::add_expr): Handle TREE_VEC.
17043
17044 2017-03-09 Martin Liska <mliska@suse.cz>
17045
17046 PR ipa/79764
17047 (chkp_narrow_size_and_offset): New function.
17048 (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
17049 (void chkp_parse_bit_field_ref): New function.
17050 (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
17051 (chkp_process_stmt): Use chkp_parse_bit_field_ref.
17052
17053 2017-03-09 Martin Liska <mliska@suse.cz>
17054
17055 PR ipa/79761
17056 * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
17057 (chkp_find_bounds_1): Remove gcc_unreachable.
17058
17059 2017-03-09 Jakub Jelinek <jakub@redhat.com>
17060
17061 PR sanitizer/79944
17062 * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
17063 BUILT_IN_SYNC*, determine the access type from the size suffix and
17064 always build a MEM_REF with that type. Handle forgotten
17065 BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
17066
17067 PR target/79932
17068 * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
17069 _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
17070 _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
17071 _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
17072 _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
17073 _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
17074 _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
17075 _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
17076 _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
17077 _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
17078 _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
17079 _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
17080 _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
17081 _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
17082 _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
17083 _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
17084 _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
17085 _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
17086 _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
17087 _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
17088 _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
17089 _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
17090 _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
17091 _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
17092 _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
17093 _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
17094 _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
17095 _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
17096 _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
17097 _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
17098 definitions outside of __OPTIMIZE__ guarded section.
17099
17100 PR target/79932
17101 * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
17102 _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
17103 _mm512_packus_epi32, _mm512_maskz_packus_epi32,
17104 _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
17105 guarded section.
17106
17107 2017-03-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17108
17109 * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
17110 ("vfenez<mode>"): Add missing constraints.
17111
17112 2017-03-08 Martin Sebor <msebor@redhat.com>
17113
17114 PR target/79928
17115 * config/nds32/nds32.c (nds32_option_override):
17116 Fix misspelled diagnostic.
17117
17118 2017-03-08 Jakub Jelinek <jakub@redhat.com>
17119
17120 PR c/79940
17121 * gimplify.c (gimplify_omp_for): Replace index var in outer
17122 taskloop statement with an artificial variable and add
17123 OMP_CLAUSE_PRIVATE clause for it.
17124
17125 2017-03-08 Richard Biener <rguenther@suse.de>
17126
17127 PR tree-optimization/79955
17128 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
17129 for accesses that are completely outside of the variable.
17130
17131 2017-03-08 Andrew Haley <aph@redhat.com>
17132
17133 PR tree-optimization/79943
17134 * tree-ssa-loop-split.c (compute_new_first_bound): When
17135 calculating the new upper bound, (END-BEG) should be added, not
17136 subtracted.
17137
17138 2017-03-08 Jakub Jelinek <jakub@redhat.com>
17139
17140 * config/avr/avr.md (setmemhi): Make sure match_dup
17141 operand number comes before match_scratch.
17142
17143 2017-03-08 Richard Biener <rguenther@suse.de>
17144
17145 PR tree-optimization/79920
17146 * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
17147 with ncopies == 1 to ...
17148 (vect_transform_slp_perm_load): ... here. Properly compute
17149 all element loads by iterating VF times over the group. Do
17150 not handle ncopies (computed in a broken way) in
17151 vect_create_mask_and_perm.
17152
17153 2017-03-08 Jakub Jelinek <jakub@redhat.com>
17154
17155 PR sanitizer/79904
17156 * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
17157 is a uniform vector, use uniform_vector_p return value instead of
17158 building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
17159
17160 2017-03-07 Marek Polacek <polacek@redhat.com>
17161
17162 PR middle-end/79809
17163 * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
17164 (alloca_call_type): Likewise.
17165
17166 2017-03-07 Martin Liska <mliska@suse.cz>
17167
17168 * gcov.c (process_args): Put comment to correct location.
17169
17170 2017-03-07 Martin Liska <mliska@suse.cz>
17171
17172 PR middle-end/68270
17173 * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
17174 Use array_at_struct_end_p instead of DECL_CHAIN (field).
17175 (chkp_narrow_bounds_for_field): Likewise.
17176 (chkp_parse_array_and_component_ref): Pass one more argument to
17177 call.
17178
17179 2017-03-07 Richard Biener <rguenther@suse.de>
17180
17181 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
17182 preheaders.
17183
17184 2017-03-07 Segher Boessenkool <segher@kernel.crashing.org>
17185
17186 * config/i386/i386.c (ix86_local_alignment): Align most aggregates
17187 of 16 bytes and more to 16 bytes, not those of 16 bits and more.
17188
17189 2017-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17190
17191 PR c/79855
17192 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
17193 to end of description.
17194 (PARAM_MAX_STORES_TO_MERGE): Likewise.
17195
17196 2017-03-07 Jakub Jelinek <jakub@redhat.com>
17197
17198 PR rtl-optimization/79901
17199 * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
17200 ...
17201 (*avx512f_<code><mode>3<mask_name>): ... this.
17202 (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
17203 iterator instead of VI8_AVX2_AVX512BW.
17204
17205 PR rtl-optimization/79901
17206 * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
17207 min/max expander, expand it using expand_vec_cond_expr.
17208
17209 PR sanitizer/79897
17210 * ubsan.c (ubsan_encode_value): Call mark_addressable on the
17211 temporary.
17212
17213 2017-03-06 Jakub Jelinek <jakub@redhat.com>
17214
17215 PR c++/79821
17216 * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
17217 to void * for PCH reasons.
17218 * dwarf2out.c (output_loc_operands, output_die): Cast
17219 v.val_vec.array to unsigned char *.
17220
17221 2017-03-06 John David Anglin <danglin@gcc.gnu.org>
17222
17223 PR target/77850
17224 * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
17225 vector types.
17226
17227 2017-03-06 Vladimir Makarov <vmakarov@redhat.com>
17228
17229 PR rtl-optimization/79571
17230 * lra-constraints.c (process_alt_operands): Calculate static
17231 reject and subtract it from overall when only addresses will be
17232 reloaded.
17233
17234 2017-03-06 Julia Koval <julia.koval@intel.com>
17235
17236 PR target/79793
17237 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
17238 incoming stack boundary to 128 for 64-bit targets.
17239
17240 2017-03-06 Richard Biener <rguenther@suse.de>
17241
17242 PR tree-optimization/79894
17243 * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
17244 to NULL after folding it.
17245
17246 2017-03-06 Richard Biener <rguenther@suse.de>
17247
17248 PR tree-optimization/79824
17249 * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
17250 check disabling peeling for gaps.
17251
17252 2017-03-06 Toma Tabacu <toma.tabacu@imgtec.com>
17253
17254 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
17255 attributes): Document gettimeofday.
17256
17257 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
17258
17259 * config/s390/s390.c (s390_option_override_internal): Set
17260 PARAM_MIN_VECT_LOOP_BOUND
17261
17262 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
17263
17264 * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
17265 * config/s390/s390.md: Likewise.
17266
17267 2017-03-06 Jakub Jelinek <jakub@redhat.com>
17268
17269 PR target/79812
17270 * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
17271 (<avx2_avx512>_perm<mode>): Rename to ...
17272 (avx2_perm<mode>): ... this. Use VI8F_256 iterator instead
17273 of VI8F_256_512.
17274 (<avx512>_perm<mode>_mask): Rename to ...
17275 (avx512vl_perm<mode>_mask): ... this. Use VI8F_256 iterator instead
17276 of VI8F_256_512.
17277 (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
17278 (avx2_perm<mode>_1<mask_name): ... this. Use VI8F_256 iterator
17279 instead of VI8F_256_512.
17280 (avx512f_perm<mode>): New define_expand.
17281 (avx512f_perm<mode>_mask): Likewise.
17282 (avx512f_perm<mode>_1<mask_name>): New define_insn.
17283 (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
17284
17285 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
17286
17287 * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
17288 msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
17289 if_then_else.
17290 (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
17291
17292 2017-03-06 Martin Liska <mliska@suse.cz>
17293
17294 PR sanitize/79783
17295 * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
17296 when having a SSA NAME w/o VAR_DECL assigned to it.
17297
17298 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
17299
17300 * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
17301 msa_dpsub_<su>_d): Fix MODE for vec_select.
17302
17303 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
17304
17305 * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
17306 argument.
17307 * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
17308
17309 2017-03-06 Richard Biener <rguenther@suse.de>
17310
17311 * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
17312 * plugin.c (register_plugin_info): Likewise.
17313 * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
17314
17315 2017-03-05 Jakub Jelinek <jakub@redhat.com>
17316
17317 * config/i386/sse.md (sse_storehps, sse_storelps,
17318 avx_<castmode><avxsizesuffix>_<castmode>,
17319 avx512f_<castmode><avxsizesuffix>_<castmode>,
17320 avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
17321 in condition that at least one operand is not a MEM.
17322
17323 2017-03-03 Jakub Jelinek <jakub@redhat.com>
17324
17325 PR middle-end/79805
17326 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
17327 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
17328 ECF_NOTHROW.
17329 * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
17330 gimple_call_nothrow_p flag based on whether original builtin can throw.
17331 If it can, emit following stmts on the fallthrough edge.
17332 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
17333 don't create new bb if inserting just debug stmts on the edge, try to
17334 insert them on the fallthru bb or just reset debug stmts.
17335
17336 2017-03-03 Segher Boesssenkool <segher@kernel.crashing.org>
17337
17338 PR target/43763
17339 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
17340 restore recog_data (including the operand rtxes inside it) around
17341 the call to get_insn_template.
17342
17343 2017-03-03 Martin Sebor <msebor@redhat.com>
17344
17345 PR tree-optimization/79699
17346 * context.c (context::~context): Free MPFR caches to avoid
17347 a memory leak on program exit.
17348
17349 2017-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17350
17351 * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
17352 Use wide_int::ulow () instead of .elt (0).
17353
17354 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
17355
17356 * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
17357 (*pushxf): Limit oF constraint to 32bit targets and add oC
17358 constraint for 64bit targets.
17359 (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
17360 (*pushdf): Change rmF constraint to rmC.
17361
17362 2017-03-03 Martin Liska <mliska@suse.cz>
17363
17364 * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
17365 Remove unused variable.
17366
17367 2017-03-03 Jakub Jelinek <jakub@redhat.com>
17368
17369 PR target/79807
17370 * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
17371 is a memory operand, increase num_memory.
17372 (ix86_expand_args_builtin): Likewise.
17373
17374 2017-03-03 Jan Hubicka <jh@suse.cz>
17375
17376 PR lto/79760
17377 * ipa-devirt.c (maybe_record_node): Properly handle
17378 __cxa_pure_virtual visibility.
17379
17380 2017-03-03 Martin Liska <mliska@suse.cz>
17381
17382 PR tree-optimization/79803
17383 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
17384 assert.
17385 (pass_loop_prefetch::execute): Disabled optimization if an
17386 assumption about L1 cache size is not met.
17387
17388 2017-03-03 Martin Liska <mliska@suse.cz>
17389
17390 PR rtl-optimization/79574
17391 * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
17392 (hash_scan_set): Likewise.
17393 (dump_hash_table): Likewise.
17394 (hoist_code): Likewise.
17395
17396 2017-03-03 Richard Biener <rguenther@suse.de>
17397
17398 * fixed-value.c (fixed_from_string): Restore use of elt (1)
17399 in place of uhigh ().
17400 (fixed_convert_from_real): Likewise.
17401
17402 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
17403
17404 PR target/79514
17405 * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
17406
17407 2017-03-03 Richard Biener <rguenther@suse.de>
17408
17409 PR middle-end/79818
17410 * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
17411 TYPE_OVERFLOW_UNDEFINED check.
17412
17413 2017-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17414
17415 * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
17416 numbers.
17417 (vector_ae_<mode>_p): Likewise.
17418 (vector_nez_<mode>_p): Likewise.
17419 (vector_ne_v2di_p): Likewise.
17420 (vector_ae_v2di_p): Likewise.
17421 (vector_ne_<mode>_p): Likewise.
17422 * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
17423 numbers.
17424 (vsx_tsqrt<mode>2_fe): Likewise.
17425
17426 2017-03-02 Uros Bizjak <ubizjak@gmail.com>
17427
17428 PR target/79514
17429 * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
17430
17431 2017-03-02 Jakub Jelinek <jakub@redhat.com>
17432
17433 PR rtl-optimization/79780
17434 * cprop.c (one_cprop_pass): When second and further conditional trap
17435 in a single basic block is turned into an unconditional trap, turn it
17436 into a deleted note to avoid RTL verification failures.
17437
17438 2017-03-02 Richard Biener <rguenther@suse.de>
17439
17440 * fold-const.c (const_binop): Use ulow () instead of elt (0).
17441
17442 2017-03-02 Richard Biener <rguenther@suse.de>
17443
17444 PR tree-optimization/79345
17445 PR c++/42000
17446 * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
17447 param and abort the walk, returning -1 if it is hit.
17448 (walk_aliased_vdefs): Take a limit param and pass it on.
17449 * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
17450 defaulting to 0 and return a signed int.
17451 * tree-ssa-uninit.c (struct check_defs_data): New struct.
17452 (check_defs): New helper.
17453 (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
17454 about uninitialized memory.
17455 * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
17456 bogus uninitialized warning.
17457 (fixed_convert_from_real): Likewise.
17458
17459 2017-03-02 Bin Cheng <bin.cheng@arm.com>
17460
17461 PR tree-optimization/66768
17462 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
17463 iv_use if base object can't be determined.
17464
17465 2017-03-02 Jakub Jelinek <jakub@redhat.com>
17466
17467 PR tree-optimization/79345
17468 * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
17469 * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
17470 (get_pattern_stats): Initialize it.
17471 * genemit.c (gen_expand): Verify match_scratch numbers come after
17472 match_operand/match_dup numbers.
17473 * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
17474 match_scratch numbers.
17475 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
17476 Likewise.
17477 * config/s390/s390.md (trunctdsd2): Likewise.
17478
17479 2017-03-02 Richard Biener <rguenther@suse.de>
17480
17481 * wide-int.h (wide_int_storage::operator=): Implement in terms
17482 of wi::copy.
17483
17484 2017-03-02 Richard Biener <rguenther@suse.de>
17485
17486 PR tree-optimization/79777
17487 * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
17488 the to insert expression to sth existing.
17489
17490 2017-03-01 Martin Sebor <msebor@redhat.com>
17491
17492 PR middle-end/79692
17493 * gimple-ssa-sprintf.c
17494 (directive::known_width_and_precision): New function.
17495 (format_integer): Use it.
17496 (get_mpfr_format_length): Consider the full range of precision
17497 when computing %g output with the # flag. Set the likely byte
17498 count to 3 rather than 1 when precision is indeterminate.
17499 (format_floating): Correct the lower bound of precision.
17500
17501 2017-03-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17502
17503 * doc/invoke.texi: Document default code model for 64-bit Linux.
17504
17505 2017-03-01 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
17506
17507 PR target/79752
17508 * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
17509 udiv rather than div since input pattern is unsigned.
17510
17511 2017-03-01 Uros Bizjak <ubizjak@gmail.com>
17512
17513 * config/i386/i386.c (print_reg): Warn for values of
17514 unsupported size in integer register.
17515
17516 2017-03-01 Michael Meissner <meissner@linux.vnet.ibm.com>
17517
17518 PR target/79439
17519 * config/rs6000/predicates.md (current_file_function_operand): Do
17520 not allow self calls to be local if the function is replaceable.
17521
17522 2017-03-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
17523
17524 PR target/79395
17525 * config/rs6000/altivec.h (vec_ctz and others): Change the
17526 preprocessor macro that controls conditional compilation from
17527 _ARCH_PWR9 to __POWER9_VECTOR__.
17528 (vec_all_ne): Change parameterization of __altivec_scalar_pred
17529 macro expansion under preprocessor #ifdef __POWER9_VECTOR__
17530 control (instead of _ARCH_PWR9 control) so that template
17531 definition uses power9-specific function.
17532 (vec_any_eq): Likewise.
17533 (vec_all_ne): Change macro definition to use a power9-specific
17534 expansion under #ifdef __POWER9_VECTOR__ control (instead of
17535 _ARCH_PWR9 control).
17536 (vec_any_eq) Likewise.
17537 * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
17538 expansion for CMPNEF to remove support for xvcmpnesp instruction.
17539 (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
17540 support for xvcmpnedp instruction.
17541 (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
17542 macro expansion so that Power9 implementation of vec_all_ne does
17543 not use the AltiVec predicate framework.
17544 (VCMPNEH_P): Likewise.
17545 (VCMPNEW_P): Likewise.
17546 (VCMPNED_P): Likewise.
17547 (VCMPNEFP_P): Likewise.
17548 (VCMPNEDP_P): Likewise.
17549 (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
17550 implementation of vec_any_eq to not use AltiVec predicate
17551 framework.
17552 (VCMPAEH_P): Likewise.
17553 (VCMPAEW_P): Likewise.
17554 (VCMPAED_P): Likewise.
17555 (VCMPAEFP_P): Likewise.
17556 (VCMPAEDP_P): Likewise.
17557 (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
17558 BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
17559 not use the AltiVec predicate framework.
17560 (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
17561 of vec_any_eq to not use AltiVec predicate framework.
17562 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
17563 support for predefined __POWER9_VECTOR__ macro to indicate that
17564 Power9 instruction selection is enabled.
17565 (altivec_overloaded_builtins): Remove extraneous
17566 ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
17567 function argument types RS6000_BTI_bool_V16QI and
17568 RS6000_BTI_bool_V16QI. Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
17569 entry for overloaded function argument types RS6000_BTI_bool_V4SI
17570 andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB. Remove
17571 two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
17572 P9V_BUILTIN_CMPNEF to force use of instructions not specific to
17573 Power9 for implementations of vec_cmpne. Change the signature for
17574 all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
17575 (representing vec_all_ne) to remove the previously described first
17576 argument of type RS6000_BTI_INTSI, as this was an artifact of
17577 reliance on the AltiVec predicate framework, which is no longer
17578 used in the implementation of these functions. Add
17579 P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
17580 function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
17581 since, unlike the AltiVec predicate framework implementation, we
17582 do not share function descriptors between vec_alle and vec_anyeq.
17583 (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
17584 set of modes that receive special treatment even when
17585 TARGET_P9_VECTOR is true. The special treatment emits code that
17586 does not depend on Power9 instructions.
17587 * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
17588 define_expand to not rely on AltiVec predicate framework.
17589 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
17590 function.
17591 (vector_ne_v2di_p): Change this define_expand to not rely on
17592 AltiVec predicate framework.
17593 (vector_ae_v2di_p): New define_expand to represent vec_any_eq
17594 function.
17595 (vector_ne_<mode>_p): Change this define_expand to not rely on
17596 AltiVec predicate framework.
17597 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
17598 function.
17599 * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
17600 (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
17601 define_insn pattern.
17602 (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
17603 define_insn pattern because the xvcmpne<VSs>. instruction is not
17604 supported.
17605 (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
17606 instruction is not supported.
17607
17608 2017-03-01 Jakub Jelinek <jakub@redhat.com>
17609
17610 * config/nvptx/nvptx.c: Include intl.h.
17611
17612 2017-03-01 Martin Jambor <mjambor@suse.cz>
17613
17614 PR lto/78140
17615 * ipa-prop.h (ipa_bits): Removed field known.
17616 (ipa_jump_func): Removed field vr_known. Changed fields bits and m_vr
17617 to pointers. Adjusted their comments to warn about their sharing.
17618 (ipcp_transformation_summary): Change bits to a vector of pointers.
17619 (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
17620 (ipa_get_ipa_bits_for_value): Declare.
17621 * tree-vrp.h (value_range): Mark as GTY((for_user)).
17622 * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
17623 (ipa_bits_hash_table): Likewise.
17624 (ipa_vr_ggc_hash_traits): Likewise.
17625 (ipa_vr_hash_table): Likewise.
17626 (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
17627 being pointers and vr_known being removed.
17628 (ipa_set_jf_unknown): Likewise.
17629 (ipa_get_ipa_bits_for_value): New function.
17630 (ipa_set_jfunc_bits): Likewise.
17631 (ipa_get_value_range): New overloaded functions.
17632 (ipa_set_jfunc_vr): Likewise.
17633 (ipa_compute_jump_functions_for_edge): Use the above functions to
17634 construct bits and vr parts of jump functions.
17635 (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
17636 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
17637 exist.
17638 (ipcp_grow_transformations_if_necessary): Also allocate
17639 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
17640 exist.
17641 (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
17642 them. Fix too long lines.
17643 (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
17644 vr_known being removed.
17645 (ipa_read_jump_function): Use new setter functions to construct bits
17646 and vr parts of jump functions or set them to NULL.
17647 (write_ipcp_transformation_info): Adjust for bits being pointers.
17648 (read_ipcp_transformation_info): Likewise.
17649 (ipcp_update_bits): Likewise. Fix excessively long lines a trailing
17650 space.
17651 Include gt-ipa-prop.h.
17652 * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
17653 being pointers.
17654 (ipcp_store_bits_results): Likewise.
17655 (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
17656 Do not write to existing jump functions but use a temporary instead.
17657
17658 2017-03-01 Jakub Jelinek <jakub@redhat.com>
17659
17660 PR c++/79681
17661 * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
17662 attempt to use its first operand as BIT_FIELD_REF base.
17663
17664 2017-03-01 Richard Biener <rguenther@suse.de>
17665
17666 PR middle-end/79721
17667 * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
17668 interpolating formula in wrapping arithmetic.
17669 (chrec_apply): Convert chrec_evaluate return value to wanted type.
17670
17671 2017-03-01 Jakub Jelinek <jakub@redhat.com>
17672
17673 PR tree-optimization/79734
17674 * tree-vect-generic.c (expand_vector_condition): Optimize
17675 AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
17676 Handle VEC_COND_EXPR where comparison has different inner width from
17677 type's inner width.
17678
17679 2017-02-28 Sandra Loosemore <sandra@codesourcery.com>
17680
17681 * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
17682 markup, and similar issues. Remove @opindex entries for things
17683 that aren't options. Add missing -mmpy-option entries.
17684
17685 2017-02-28 Jakub Jelinek <jakub@redhat.com>
17686
17687 PR tree-optimization/79737
17688 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
17689 a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
17690 tmpbuf[byte_size - 1]. Call natice_encode_expr with byte_size - 1
17691 instead of byte_size. Formatting fix.
17692 (shift_bytes_in_array_right): Formatting fix.
17693
17694 2017-02-28 Eric Botcazou <ebotcazou@adacore.com>
17695
17696 PR target/79749
17697 * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
17698 condition on optimize for the leaf function test.
17699
17700 2017-02-28 Martin Liska <mliska@suse.cz>
17701
17702 PR lto/79625
17703 * read-rtl-function.c (function_reader::handle_unknown_directive):
17704 Bail out when one uses -flto.
17705
17706 2017-02-28 Martin Liska <mliska@suse.cz>
17707
17708 * common.opt: Replace space with tabular for options of <number>
17709 type.
17710 * config/i386/i386.opt: Show <number> value for
17711 -mlarge-data-threshold.
17712 * opts.c (print_filtered_help): Do not display number in hexadecimal
17713 format.
17714
17715 2017-02-28 Martin Liska <mliska@suse.cz>
17716
17717 * common.opt: Fix --help=option -Q for options which are of
17718 an enum type.
17719
17720 2017-02-28 Uros Bizjak <ubizjak@gmail.com>
17721
17722 * config/i386/i386.c (print_reg): Error out for values
17723 of 8-bit size in invalid integer register.
17724
17725 2017-02-28 Martin Sebor <msebor@redhat.com>
17726
17727 PR tree-optimization/79691
17728 * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
17729
17730 2017-02-28 Jakub Jelinek <jakub@redhat.com>
17731
17732 PR target/79729
17733 * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
17734 gcc_unreachable with output_operand_lossage.
17735
17736 2017-02-28 Richard Biener <rguenther@suse.de>
17737
17738 PR tree-optimization/79740
17739 * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
17740 inserts.
17741 (visit_nary_op): Insert the nary into the hashtable if we
17742 pattern-matched sth.
17743 * tree-ssa-pre.c (eliminate_insert): Robustify.
17744
17745 2017-02-28 Richard Biener <rguenther@suse.de>
17746
17747 PR middle-end/79731
17748 * fold-const.c (decode_field_reference): Reject out-of-bound
17749 accesses.
17750
17751 2017-02-28 Jakub Jelinek <jakub@redhat.com>
17752
17753 * config/i386/i386.c: Include intl.h.
17754 (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
17755 instead of just cond ? "..." : "...".
17756 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
17757 * coverage.c (read_counts_file): Likewise.
17758 * omp-offload.c: Include intl.h.
17759 (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
17760 of just cond ? "..." : "...".
17761 * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
17762 of just cond ? "..." : "...".
17763
17764 2017-02-28 Richard Earnshaw <rearnsha@arm.com>
17765
17766 PR target/79742
17767 * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
17768 entry, if present.
17769 * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
17770 'tune for' CPU name.
17771 * config/arm/arm-cpu-data.h: Regenerated.
17772
17773 2017-02-28 Richard Biener <rguenther@suse.de>
17774
17775 PR tree-optimization/79732
17776 * tree-inline.c (expand_call_inline): Do not shadow var.
17777
17778 2017-02-28 Richard Biener <rguenther@suse.de>
17779
17780 PR tree-optimization/79723
17781 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
17782 address-space properly.
17783
17784 2017-02-28 Thomas Schwinge <thomas@codesourcery.com>
17785
17786 * doc/optinfo.texi (Optimization groups): Fix option used for
17787 OPTGROUP_ALL.
17788 * doc/invoke.texi (-fopt-info): Document "omp".
17789 * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
17790 (OPTGROUP_ALL): Add OPTGROUP_OMP.
17791 * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
17792 * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
17793 * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
17794
17795 * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP. Adjust
17796 all users.
17797 * dumpfile.c (optgroup_options): Instead of "openmp", associate
17798 OPTGROUP_OMP with "omp".
17799
17800 2017-02-27 Pat Haugen <pthaugen@us.ibm.com>
17801
17802 PR target/79544
17803 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
17804 for arithmetic shift of unsigned V2DI.
17805
17806 2017-02-27 Claudiu Zissulescu <claziss@synopsys.com>
17807
17808 * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
17809 arc/linux.h headers.
17810 * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
17811 (LINK_SPEC): Likewise.
17812 (ARC_TLS_EXTRA_START_SPEC): Likewise.
17813 (EXTRA_SPECS): Likewise.
17814 (STARTFILE_SPEC): Likewise.
17815 (ENDFILE_SPEC): Likewise.
17816 (LIB_SPEC): Likewise.
17817 (TARGET_SDATA_DEFAULT): Likewise.
17818 (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
17819 (MULTILIB_DEFAULTS): Likewise.
17820 (DWARF2_UNWIND_INFO): Likewise.
17821 * config/arc/big.h: New file.
17822 * config/arc/elf.h: Likewise.
17823 * config/arc/linux.h: Likewise.
17824 * config/arc/t-uClibc: Remove.
17825
17826 2017-02-27 Bin Cheng <bin.cheng@arm.com>
17827
17828 PR tree-optimization/77536
17829 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
17830 (tree_transform_and_unroll_loop): Use above function to compute the
17831 estimated niter of unrolled loop and use it when scaling profile.
17832 Also use count info rather than frequency if it's non-zero.
17833 * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
17834 * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
17835 (vect_transform_loop): Call above function.
17836
17837 2017-02-27 Richard Biener <rguenther@suse.de>
17838
17839 PR tree-optimization/45397
17840 * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
17841 * tree-ssa-sccvn.c (valueized_wider_op): New helper.
17842 (visit_nary_op): Add pattern matching for CSEing sign-changed
17843 or truncated operations with wider ones.
17844
17845 2017-02-27 Richard Biener <rguenther@suse.de>
17846
17847 PR tree-optimization/79690
17848 * tree-vect-stmts.c (vectorizable_store): Use vector type
17849 built from the DR with address-space.
17850
17851 2017-02-26 Gerald Pfeifer <gerald@pfeifer.com>
17852
17853 * doc/invoke.texi (Optimize Options): Refine the description
17854 of asan-use-after-return.
17855
17856 2017-02-25 Alan Modra <amodra@gmail.com>
17857
17858 PR rtl-optimization/79584
17859 * lra-constraints.c (base_to_reg): Reload ad->base, the entire
17860 base, not ad->base_term, the reg within base. Remove assertion
17861 that ad->base == ad->base_term. Replace gen_int_mode using
17862 bogus mode with const0_rtx.
17863
17864 2017-02-25 Jakub Jelinek <jakub@redhat.com>
17865
17866 PR middle-end/79396
17867 * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
17868 FMA_EXPR like tcc_binary or tcc_unary.
17869
17870 * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
17871
17872 PR debug/77589
17873 * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
17874 bitfield.
17875 (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
17876 (output_loc_operands): Handle DW_OP_call_ref and
17877 DW_OP_GNU_variable_value.
17878 (struct variable_value_struct): New type.
17879 (struct variable_value_hasher): Likewise.
17880 (variable_value_hash): New variable.
17881 (string_types): Remove.
17882 (copy_loc_descr): New function.
17883 (add_loc_descr_to_each): Clarify comment. Use copy_loc_descr.
17884 (prepend_loc_descr_to_each): New function.
17885 (add_loc_list): Fix comment typo. Use prepend_loc_descr_to_each
17886 instead of add_loc_descr_to_each if the first argument is single
17887 location list and the second has multiple.
17888 (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
17889 (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
17890 when looking for variable value which doesn't have other location info.
17891 (loc_list_from_tree): Formatting fix.
17892 (gen_array_type_die): Simplify DW_AT_string_length handling.
17893 (adjust_string_types): Remove.
17894 (gen_subprogram_die): Don't call adjust_string_types nor test/set
17895 string_types. Call resolve_variable_values.
17896 (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
17897 (resolve_addr_in_expr): Likewise. Add A argument.
17898 (copy_deref_exprloc): Remove deref argument. Adjust for the
17899 original expression being DW_OP_GNU_variable_value with optionally
17900 DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
17901 optionally after it.
17902 (optimize_string_length): Rework for DW_OP_GNU_variable_value.
17903 (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
17904 callers. Set remove_AT_byte_size if removing DW_AT_string_length.
17905 (variable_value_hasher::hash, variable_value_hasher::equal): New
17906 methods.
17907 (resolve_variable_value_in_expr, resolve_variable_value,
17908 resolve_variable_values, note_variable_value_in_expr,
17909 note_variable_value): New functions.
17910 (dwarf2out_early_finish): Call note_variable_value on all toplevel
17911 DIEs.
17912
17913 2017-02-24 Jakub Jelinek <jakub@redhat.com>
17914
17915 PR c/79677
17916 * opts.h (handle_generated_option): Add GENERATED_P argument.
17917 * opts-common.c (handle_option): Adjust function comment.
17918 (handle_generated_option): Add GENERATED_P argument, pass it to
17919 handle_option.
17920 (control_warning_option): Pass false to handle_generated_option
17921 GENERATED_P.
17922 * opts.c (maybe_default_option): Pass true to handle_generated_option
17923 GENERATED_P.
17924 * optc-gen.awk: Likewise.
17925
17926 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
17927
17928 * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
17929 a REG, look at the REG it is a SUBREG of.
17930 (splitter for cmpeqsi_t): Ditto.
17931
17932 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
17933
17934 * config/pa/pa.c (pa_combine_instructions): Do not share RTL. Make
17935 the special USEs with the pattern of the insn, not the insn itself.
17936
17937 2017-02-24 Matthew Fortune <matthew.fortune@imgtec.com>
17938
17939 PR target/79473
17940 * doc/invoke.texi: Document -mload-store-pairs.
17941
17942 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
17943 Sandra Loosemore <sandra@codesourcery.com>
17944
17945 * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
17946 argument isn't a CONST_INT.
17947 (nios2_alternate_compare_const): Assert op is a CONST_INT.
17948 (nios2_valid_compare_const_p): Assert op is a CONST_INT.
17949 (nios2_validate_compare): Bypass alternate compare logic if *op2
17950 is not a CONST_INT.
17951 (ldstwm_operation_p): Return false if first_base is not a REG or
17952 if first_offset is not a CONST_INT.
17953
17954 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
17955
17956 * config/cris/cris.md: Use correct operand in a define_peephole2.
17957
17958 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
17959
17960 * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
17961
17962 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
17963
17964 * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
17965 this_insn if it is an INSN or JUMP_INSN.
17966 (force_offsettable): Look at base, not at addr.
17967 * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
17968 on things that aren't necessarily CONST_INTs.
17969
17970 2017-02-24 Uros Bizjak <ubizjak@gmail.com>
17971
17972 * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
17973 -mfpmath=sse is the default also for x86-32 targets with SSE2
17974 instruction set when @option{-ffast-math} is enabled
17975
17976 2017-02-24 Jeff Law <law@redhat.com>
17977
17978 PR rtl-optimizatoin/79286
17979 * ira.c (update_equiv_regs): Drop may_trap_p exception to
17980 dominance test.
17981
17982 2017-02-24 Richard Biener <rguenther@suse.de>
17983
17984 PR tree-optimization/79389
17985 * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
17986 debug insns.
17987
17988 2017-02-24 Aldy Hernandez <aldyh@redhat.com>
17989
17990 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
17991 function comment to reflect reality.
17992 (loop_exits_before_overflow): Fix typo in function description.
17993
17994 2017-02-24 Richard Biener <rguenther@suse.de>
17995
17996 PR tree-optimization/79389
17997 * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
17998 properly that a threading opportunity exists. Detect conditional
17999 copy/constant propagation opportunities.
18000
18001 2017-02-23 Eric Botcazou <ebotcazou@adacore.com>
18002
18003 * config/visium/visium.md (type): Add trap.
18004 (b): New mode attribute.
18005 (*btst): Rename into...
18006 (*btst<mode>): ...this and adjust.
18007 (*cbranchsi4_btst_insn): Rename into...
18008 (*cbranch<mode>4_btst_insn): ...this and adjust.
18009 (trap): New define_insn.
18010
18011 2017-02-23 Jakub Jelinek <jakub@redhat.com>
18012
18013 PR tree-optimization/79389
18014 * ifcvt.c (struct noce_if_info): Add rev_cond field.
18015 (noce_reversed_cond_code): New function.
18016 (noce_emit_store_flag): Use rev_cond if non-NULL instead of
18017 reversed_comparison_code. Formatting fix.
18018 (noce_try_store_flag): Test rev_cond != NULL in addition to
18019 reversed_comparison_code.
18020 (noce_try_store_flag_constants): Likewise.
18021 (noce_try_store_flag_mask): Likewise.
18022 (noce_try_addcc): Use rev_cond if non-NULL instead of
18023 reversed_comparison_code.
18024 (noce_try_cmove_arith): Likewise. Formatting fixes.
18025 (noce_try_minmax, noce_try_abs): Clear rev_cond.
18026 (noce_find_if_block): Initialize rev_cond.
18027 (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
18028 instead of false as last argument never attempt to reverse it
18029 afterwards.
18030
18031 2017-02-23 Bin Cheng <bin.cheng@arm.com>
18032
18033 PR tree-optimization/79663
18034 * tree-predcom.c (combine_chains): Process refs in reverse order
18035 only for ZERO length chains, and add explaining comment.
18036
18037 2017-02-23 Jeff Law <law@redhat.com>
18038
18039 PR tree-optimization/79578
18040 * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
18041 in call to operand_equal_p.
18042
18043 2017-01-23 Dominique d'Humieres <dominiq@lps.ens.fr>
18044
18045 PR target/71017
18046 * config/i386/cpuid.h: Fix another undefined behavior.
18047
18048 2017-02-23 Richard Biener <rguenther@suse.de>
18049
18050 PR tree-optimization/79683
18051 * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
18052 vector types for data-refs.
18053
18054 2017-02-23 Martin Liska <mliska@suse.cz>
18055
18056 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
18057
18058 2017-02-23 Jakub Jelinek <jakub@redhat.com>
18059
18060 PR middle-end/79665
18061 * internal-fn.c (get_range_pos_neg): Moved to ...
18062 * tree.c (get_range_pos_neg): ... here. No longer static.
18063 * tree.h (get_range_pos_neg): New prototype.
18064 * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
18065 are known to be in between 0 and signed maximum inclusive, try to
18066 expand both unsigned and signed divmod and use the cheaper one from
18067 those.
18068
18069 2017-02-22 Jeff Law <law@redhat.com>
18070
18071 PR tree-optimization/79578
18072 * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
18073 to compare base operands.
18074
18075 2017-02-22 Segher Boessenkool <segher@kernel.crashing.org>
18076
18077 PR target/79211
18078 * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
18079 gpc_reg_operand instead of fpr_reg_operand.
18080
18081 2017-02-22 Sameera Deshpande <sameera.deshpande@imgtec.com>
18082
18083 * config/mips/mips.c (mips_return_in_memory): Force FP
18084 vector types to be returned in memory for o32 ABI.
18085
18086 2017-02-22 Jakub Jelinek <jakub@redhat.com>
18087
18088 * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
18089 instead of DW_TAG_member for static data member declarations and don't
18090 set no_linkage_name for static inline data members.
18091 (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
18092 to DW_TAG_member.
18093
18094 2017-02-22 Martin Liska <mliska@suse.cz>
18095
18096 * doc/invoke.texi: Replace inequality signs with square brackets
18097 for -Wnormalized.
18098
18099 2017-02-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18100
18101 PR tree-optimization/68644
18102 * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
18103
18104 2017-02-22 Matthew Fortune <matthew.fortune@imgtec.com>
18105
18106 PR target/78660
18107 * lra-constraints.c (simplify_operand_subreg): Handle
18108 WORD_REGISTER_OPERATIONS targets.
18109
18110 2017-02-22 Jakub Jelinek <jakub@redhat.com>
18111
18112 PR target/70465
18113 * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
18114 and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
18115 elimination by swapping fld*.
18116
18117 2017-02-22 Richard Biener <rguenther@suse.de>
18118
18119 PR tree-optimization/79673
18120 * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
18121 convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
18122 irrelevant address-space qualifiers and avoiding a
18123 ADDR_SPACE_CONVERT_EXPR from fold_convert.
18124
18125 2017-02-22 Richard Biener <rguenther@suse.de>
18126
18127 PR tree-optimization/79666
18128 * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
18129 to not symbolically negate if that may introduce undefined
18130 overflow.
18131
18132 2017-02-22 Martin Liska <mliska@suse.cz>
18133
18134 PR lto/79587
18135 * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
18136 * data-streamer-out.c (streamer_write_gcov_count_stream):
18137 Likewise.
18138 * value-prof.c (stream_out_histogram_value): Make assert more
18139 precise based on type of counter.
18140
18141 2017-02-21 Uros Bizjak <ubizjak@gmail.com>
18142
18143 PR target/79593
18144 * config/i386/i386.md (standard_x87sse_constant_load splitter):
18145 Use nonimmediate_operand instead of memory_operand for operand 1.
18146 (float-extend standard_x87sse_constant_load splitter): Ditto.
18147
18148 2017-02-21 Jeff Law <law@redhat.com>
18149
18150 PR tree-optimization/79621
18151 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
18152 blocks with edges to themselves.
18153
18154 2017-02-21 Jakub Jelinek <jakub@redhat.com>
18155
18156 PR target/79633
18157 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
18158 is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
18159 Use gimple_call_builtin_p.
18160
18161 PR target/79570
18162 * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
18163 on temporarily removed DEBUG_INSNs.
18164
18165 PR tree-optimization/79649
18166 * tree-loop-distribution.c (classify_partition): Give up on
18167 non-generic address space loads/stores.
18168
18169 2017-02-21 Aldy Hernandez <aldyh@redhat.com>
18170
18171 * doc/loop.texi (Loop manipulation): Remove nonexistent
18172 tree_ssa_loop_version from the documentation.
18173 * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
18174
18175 2017-02-21 Jakub Jelinek <jakub@redhat.com>
18176
18177 PR target/79494
18178 * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
18179 make_reg_eh_region_note_nothrow_nononlocal on call_insn.
18180 * config/rs6000/rs6000.c: Include except.h.
18181 (rs6000_expand_split_stack_prologue): Call
18182 make_reg_eh_region_note_nothrow_nononlocal on the call insn.
18183
18184 2017-02-21 Martin Jambor <mjambor@suse.cz>
18185
18186 PR lto/79579
18187 * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
18188 have been analyzed.
18189
18190 2017-02-21 Martin Jambor <mjambor@suse.cz>
18191
18192 * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
18193 for backward compatibility only.
18194 * doc/invoke.texi (Option Summary): Remove all references to
18195 -fipa-cp-alignment.
18196
18197 2017-02-21 Matthew Fortune <matthew.fortune@imgtec.com>
18198
18199 PR target/78660
18200 Revert:
18201 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
18202
18203 * lra-constraints.c (curr_insn_transform): Handle
18204 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
18205
18206 2017-02-21 Martin Liska <mliska@suse.cz>
18207
18208 * config/i386/i386.opt: Replace -masm-dialect with -masm.
18209
18210 2017-02-21 Thomas Schwinge <thomas@codesourcery.com>
18211
18212 PR translation/79638
18213 * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
18214
18215 2017-02-21 Eric Botcazou <ebotcazou@adacore.com>
18216
18217 PR ada/67205
18218 * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
18219 (arm_function_ok_for_sibcall): Return false for an indirect call by
18220 descriptor if all the argument registers are used.
18221 (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
18222 alignment of the function.
18223
18224 2017-02-21 Jakub Jelinek <jakub@redhat.com>
18225
18226 PR tree-optimization/61441
18227 * simplify-rtx.c (simplify_const_unary_operation): For
18228 -fsignaling-nans and sNaN operand, return NULL_RTX rather than
18229 the sNaN unmodified.
18230
18231 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
18232
18233 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
18234 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
18235 instead of SYSTEM_HEADER_DIR.
18236
18237 2017-02-20 Gerald Pfeifer <gerald@pfeifer.com>
18238 Martin Liška <mliska@suse.cz>
18239
18240 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
18241 Fix typos and grammar, use active voice, and clarify.
18242
18243 2017-02-20 Marek Polacek <polacek@redhat.com>
18244
18245 PR middle-end/79537
18246 * gimplify.c (gimplify_expr): Handle unused *&&L;.
18247
18248 PR sanitizer/79558
18249 * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
18250
18251 2017-02-20 Jakub Jelinek <jakub@redhat.com>
18252
18253 PR target/79568
18254 * config/i386/i386.c (ix86_expand_builtin): Handle
18255 OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
18256 ix86_builtins_isa[fcode].isa as a requirement of those
18257 flags and any other flag in the bitmask.
18258 (ix86_init_mmx_sse_builtins): Use 0 instead of
18259 ~OPTION_MASK_ISA_64BIT as mask.
18260 * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
18261 __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
18262 __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
18263 __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
18264
18265 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
18266
18267 PR target/78012
18268 * lra-constraints.c (split_reg): Check requested split mode
18269 is supported by the register.
18270
18271 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
18272
18273 * lra-constraints.c (simplify_operand_subreg): Remove early
18274 return false.
18275
18276 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
18277
18278 PR target/78660
18279 * lra-constraints.c (curr_insn_transform): Tighten condition
18280 for converting SUBREG reloads from OP_OUT to OP_INOUT.
18281
18282 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
18283
18284 PR target/78660
18285 * lra-constraints.c (curr_insn_transform): Handle
18286 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
18287
18288 2017-02-19 Uros Bizjak <ubizjak@gmail.com>
18289
18290 Revert:
18291 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
18292
18293 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
18294
18295 2017-02-19 Jonathan Wakely <jwakely@redhat.com>
18296
18297 PR c++/69523
18298 * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
18299 description.
18300
18301 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18302
18303 * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
18304 for FMA_EXPR.
18305
18306 2017-02-18 Jakub Jelinek <jakub@redhat.com>
18307
18308 * final.c (last_columnnum, override_columnnum): New variables.
18309 (final_start_function): Set last_columnnum, pass it to begin_prologue
18310 hook and pass 0 to dwarf2out_begin_prologue.
18311 (final_scan_insn): Update override_columnnum. Pass last_columnnum
18312 to source_line debug hook.
18313 (notice_source_line): Compute last_columnnum and for debug_column_info
18314 return true on column changes.
18315 * debug.h (struct gcc_debug_hooks): Add column argument to
18316 source_line and begin_prologue hooks.
18317 (debug_nothing_int_charstar_int_bool): Remove prototype.
18318 (debug_nothing_int_int_charstar,
18319 debug_nothing_int_int_charstar_int_bool): New prototypes.
18320 (dwarf2out_begin_prologue): Add column argument.
18321 * debug.c (do_nothing_debug_hooks): Adjust source_line and
18322 begin_prologue hooks.
18323 (debug_nothing_int_charstar_int_bool): Remove.
18324 (debug_nothing_int_int_charstar,
18325 debug_nothing_int_int_charstar_int_bool): New functions.
18326 * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
18327 through to dwarf2out_source_line.
18328 (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
18329 (dwarf2out_source_line): Add column argument, emit it if requested.
18330 * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
18331 arguments.
18332 * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
18333 * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
18334 * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
18335 through to dwarf2out_begin_prologue.
18336 (vmsdbgout_source_line): Add column argument, pass it through to
18337 dwarf2out_source_line.
18338 * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
18339 dbxout_source_line caller.
18340 (dbxout_source_line): Add column argument.
18341
18342 * common.opt (gno-column-info, gcolumn-info): New options.
18343 * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
18344 (check_die): Also test for multiple DW_AT_decl_column attributes.
18345 (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
18346 DW_AT_decl_column if requested.
18347 (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
18348 if requested.
18349 (gen_variable_die): Likewise.
18350 (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
18351 * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
18352
18353 PR target/79569
18354 * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
18355 * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
18356 (ix86_handle_option): Handle OPT_m3dnowa.
18357 * doc/invoke.texi (-m3dnowa): Document.
18358 * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
18359 -m3dnowa instead of -m3dnow -march=athlon.
18360
18361 PR target/79559
18362 * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
18363 instead of gcc_assert for K, r and R code checks. Formatting fixes.
18364
18365 2017-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18366
18367 PR target/79261
18368 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
18369 support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
18370 * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
18371 generator for vsx_xxpermdi_<mode>_be.
18372 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
18373 force big-endian semantics.
18374 (vsx_xxpermdi_<mode>_be): New define_expand with same
18375 implementation as previous version of vsx_xxpermdi_<mode>.
18376
18377 2017-02-17 Jakub Jelinek <jakub@redhat.com>
18378
18379 PR tree-optimization/79327
18380 * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
18381 variable, its initialization and use.
18382
18383 2017-02-17 Julia Koval <julia.koval@intel.com>
18384
18385 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
18386 (OPTION_MASK_ISA_PKU_UNSET): New.
18387 (ix86_handle_option): Handle -mrdpid.
18388 * config/i386/cpuid.h (bit_RDPID): New.
18389 * config/i386/driver-i386.c (host_detect_local_cpu):
18390 Detect RDPID feature.
18391 * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
18392 * config/i386/i386-c.c (ix86_target_macros_internal):
18393 Handle RDPID flag.
18394 * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
18395 (ix86_valid_target_attribute_inner_p): Add "rdpid".
18396 (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
18397 * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
18398 * config/i386/i386.md (define_insn "rdpid"): New.
18399 * config/i386/i386.opt Add -mrdpid.
18400 * config/i386/immintrin.h (_rdpid_u32): New.
18401
18402 2017-02-17 Vladimir Makarov <vmakarov@redhat.com>
18403
18404 PR rtl-optimization/79541
18405 * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
18406 instead of transforming it into USE.
18407
18408 2017-02-17 Segher Boessenkool <segher@kernel.crashing.org>
18409
18410 * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
18411 If HONOR_SNANS (SFmode) force the input to a register.
18412 (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
18413 (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
18414 an frsp or similar insn.
18415
18416 2017-02-17 Martin Liska <mliska@suse.cz>
18417
18418 PR rtl-optimization/79577
18419 * params.def (selsched-max-sched-times): Increase minimum to 1.
18420
18421 2017-02-17 Martin Liska <mliska@suse.cz>
18422
18423 PR rtl-optimization/79574
18424 * gcse.c (want_to_gcse_p): Prevent integer overflow.
18425
18426 2017-02-17 Martin Liska <mliska@suse.cz>
18427
18428 PR tree-optimization/79529
18429 * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
18430 ssa_defined_default_def_p to handle cases which are implicitly
18431 defined.
18432 * tree-ssa.c (ssa_defined_default_def_p): New function.
18433 (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
18434 which are implicitly defined.
18435 * tree-ssa.h (ssa_defined_default_def_p): Declare.
18436
18437 2017-02-17 Richard Biener <rguenther@suse.de>
18438
18439 PR middle-end/79576
18440 * params.def (max-ssa-name-query-depth): Limit to 10.
18441
18442 2017-02-17 Richard Biener <rguenther@suse.de>
18443
18444 PR tree-optimization/79552
18445 * tree-ssa-structalias.c (visit_loadstore): Properly verify
18446 default defs.
18447
18448 2017-02-17 Richard Biener <rguenther@suse.de>
18449
18450 PR bootstrap/79567
18451 * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
18452
18453 2017-02-17 Marek Polacek <polacek@redhat.com>
18454
18455 PR middle-end/79536
18456 * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
18457 (fold_negate_expr): New wrapper.
18458
18459 2017-02-16 Sandra Loosemore <sandra@codesourcery.com>
18460
18461 * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]:
18462 Correct terminology and de-emphasize pre-standard behavior.
18463
18464 2017-02-16 Alan Modra <amodra@gmail.com>
18465
18466 PR rtl-optimization/79286
18467 * ira.c (def_dominates_uses): New function.
18468 (update_equiv_regs): Don't create an equivalence for insns that
18469 may trap where the register def does not dominate the use.
18470
18471 2017-02-16 Vladimir Makarov <vmakarov@redhat.com>
18472
18473 PR rtl-optimization/78127
18474 * lra.c (lra): Call lra_eliminate before finish the loop after
18475 lra_constraint.
18476
18477 2017-02-16 Richard Biener <rguenther@suse.de>
18478
18479 * graphite.h: Do not include isl/isl_val_gmp.h, instead include
18480 isl/isl_val.h.
18481 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
18482 (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
18483 * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
18484 (isl_val_int_from_wi): New function.
18485 (extract_affine_gmp): Rename to ...
18486 (extract_affine_wi): ... this, take a widest_int.
18487 (extract_affine_int): Just wrap extract_affine_wi.
18488 (add_param_constraints): Use isl_val_int_from_wi.
18489 (add_loop_constraints): Likewise, and extract_affine_wi.
18490
18491 2017-02-15 Jeff Law <law@redhat.com>
18492
18493 PR middle-end/79521
18494 * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
18495 ira_init_register_move_cost_if_necessary.
18496
18497 2017-02-15 Martin Sebor <msebor@redhat.com>
18498
18499 PR middle-end/32003
18500 * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
18501 removed in a prior commit.
18502
18503 2017-02-15 Bin Cheng <bin.cheng@arm.com>
18504
18505 PR tree-optimization/79347
18506 * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
18507 counters during peeling.
18508
18509 2017-02-15 Thomas Schwinge <thomas@codesourcery.com>
18510
18511 * Makefile.in (site.exp): Remove "set ISLVER".
18512
18513 2017-02-15 Jakub Jelinek <jakub@redhat.com>
18514
18515 PR target/79487
18516 * real.c (real_from_integer): Call real_convert even for decimal.
18517
18518 2017-02-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
18519
18520 PR target/79421
18521 * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
18522
18523 2017-02-14 Andrew Pinski <apinski@cavium.com>
18524
18525 * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
18526 cores and change the partno/implementer to be correct.
18527 (thunderx2t99p1): New core which replaces thunderx2t99 and still has
18528 the 'B" as the implementer.
18529 * config/aarch64/aarch64-tune.md: Regenerate.
18530
18531 2017-02-14 Carl Love <cel@us.ibm.com>
18532
18533 * config/rs6000/rs6000.c: Add case statement entry to make the
18534 xvcvuxdsp built-in argument unsigned.
18535 * config/rs6000/vsx.md: Fix the source and return operand types so they
18536 match the instruction definitions from the ISA document. Fix typo
18537 in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
18538 statement.
18539
18540 2017-02-14 Vladimir Makarov <vmakarov@redhat.com>
18541
18542 PR target/79282
18543 * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
18544 member early_clobber_alts.
18545 * lra-lives.c (reg_early_clobber_p): New.
18546 (process_bb_lives): Use it.
18547 * lra.c (new_insn_reg): New arg early_clobber_alts. Use it.
18548 (debug_operand_data): Initialize early_clobber_alts.
18549 (setup_operand_alternative): Set up early_clobber_alts.
18550 (collect_non_operand_hard_regs): Ditto. Pass early clobber
18551 alternatives to new_insn_reg.
18552 (add_regs_to_insn_regno_info): Add arg early_clobber_alts. Use
18553 it.
18554 (lra_update_insn_regno_info): Pass the new arg.
18555
18556 2017-02-14 Jakub Jelinek <jakub@redhat.com>
18557
18558 PR middle-end/79505
18559 * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
18560 (new_oacc_loop_raw): Don't clear already cleared fields.
18561
18562 PR target/79481
18563 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
18564 _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
18565 _mm512_prefetch_i64gather_ps): New inline functions and macros.
18566
18567 2017-02-14 Uros Bizjak <ubizjak@gmail.com>
18568
18569 PR target/79495
18570 * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
18571
18572 2017-02-14 H.J. Lu <hongjiu.lu@intel.com>
18573
18574 PR target/79498
18575 * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
18576 the extra instruction to the right place to store 128-bit constant
18577 when needed.
18578
18579 2017-02-14 Martin Sebor <msebor@redhat.com>
18580
18581 PR middle-end/79448
18582 * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
18583 warning for strings of unknown length.
18584
18585 2017-02-13 Segher Boessenkool <segher@kernel.crashing.org>
18586
18587 * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
18588
18589 2017-02-14 Jeff Law <law@redhat.com>
18590
18591 PR target/79404
18592 * ira-costs.c (scan_one_insn): Initialize register move costs
18593 for pseudos seen in USE/CLOBBER insns.
18594
18595 PR tree-optimization/79095
18596 * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
18597 if the numerator has the range ~[0,0] make the resultant range ~[0,0].
18598 (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
18599 if the operands are known to be not equal, then the resulting range
18600 is ~[0,0].
18601 (intersect_ranges): If the new range is ~[0,0] and the old range is
18602 wide, then prefer ~[0,0].
18603 * tree-vrp.c (overflow_comparison_p_1): New function.
18604 (overflow_comparison_p): New function.
18605 * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
18606 if NAME is used in an overflow test.
18607 (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
18608 overflow check that can be expressed as an equality test, then adjust
18609 ops to be that equality test.
18610
18611 2017-02-14 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18612
18613 * config/s390/s390-builtin-types.def: Remove flags argument.
18614 * config/s390/s390.c (s390_init_builtins): Likewise.
18615
18616 2017-02-14 Martin Liska <mliska@suse.cz>
18617
18618 * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
18619 vector. Fix trailing white spaces.
18620
18621 2017-02-14 James Greenhalgh <james.greenhalgh@arm.com>
18622
18623 * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
18624 HFmode.
18625
18626 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18627
18628 PR rtl-optimization/68664
18629 * config/arm/arm.c (arm_sched_can_speculate_insn):
18630 New function. Declare prototype.
18631 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
18632
18633 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18634
18635 PR rtl-optimization/68664
18636 * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
18637 New function.
18638 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
18639
18640 2017-02-14 Amit Pawar <amit.pawar@amd.com>
18641
18642 * config/i386/i386.c (znver1_cost): Fix the alignment for function and
18643 max skip bytes for function, loop and jump.
18644
18645 2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18646
18647 * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
18648 ABS_EXPR for gimple dump.
18649
18650 2017-02-14 Jakub Jelinek <jakub@redhat.com>
18651
18652 PR target/79462
18653 * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
18654
18655 PR tree-optimization/79408
18656 * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
18657 case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
18658 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
18659 also if rhs1 is INTEGER_CST.
18660
18661 2017-02-14 Richard Biener <rguenther@suse.de>
18662
18663 PR middle-end/79432
18664 * tree-into-ssa.c (insert_phi_nodes): When the function can
18665 have abnormal edges rewrite SSA names with broken use-def
18666 dominance out of SSA and register them for PHI insertion.
18667
18668 2017-02-13 Martin Sebor <msebor@redhat.com>
18669
18670 PR middle-end/79496
18671 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
18672 clearing info.nowrite flag when snprintf size argument is a range.
18673
18674 2017-02-13 Jakub Jelinek <jakub@redhat.com>
18675
18676 * cprop.c (cprop_jump): Add missing space in string literal.
18677 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
18678 (get_constraint_for_component_ref): Likewise.
18679 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
18680 * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
18681 * lra-constraints.c (process_alt_operands): Likewise.
18682 * ipa-inline.c (inline_small_functions): Likewise.
18683 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
18684 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
18685 * trans-mem.c (diagnose_tm_1_op): Likewise.
18686 * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
18687 (grid_parallel_clauses_gridifiable): Likewise.
18688
18689 * config/nvptx/mkoffload.c (process): Add space in between
18690 , and %d.
18691
18692 * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
18693 "MOD4_SSE_REGS" and "ALL_REGS".
18694
18695 * spellcheck.c (test_data): Add , in between "foo" and "food".
18696
18697 2017-02-13 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
18698
18699 PR target/79449
18700 * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
18701 boundary crossing check and subsequent code generation agree.
18702
18703 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18704
18705 * config/aarch64/aarch64.c (has_memory_op): Delete.
18706 (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
18707 has_memory_op.
18708
18709 2017-02-13 Jakub Jelinek <jakub@redhat.com>
18710
18711 PR rtl-optimization/79388
18712 PR rtl-optimization/79450
18713 * combine.c (distribute_notes): When removing TEM_INSN for which
18714 corresponding dest has last value recorded, invalidate that last
18715 value.
18716
18717 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18718
18719 * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
18720 of explicit '@'. Add missing assembly comment marker on branch costs
18721 printout.
18722
18723 2017-02-13 Nathan Sidwell <nathan@acm.org>
18724
18725 * gengtype-lex.l (<in_struct>): Add '/'.
18726
18727 2017-02-13 Martin Liska <mliska@suse.cz>
18728
18729 PR c/79471
18730 * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
18731
18732 2017-02-13 Richard Biener <rguenther@suse.de>
18733
18734 * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
18735 Remove.
18736 * configure: Re-generate.
18737 * config.in: Likewise.
18738 * graphite-dependences.c: Simplify as if
18739 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
18740 * graphite-isl-ast-to-gimple.c: Likewise.
18741 * graphite-optimize-isl.c: Likewise.
18742 * graphite-poly.c: Likewise.
18743 * graphite-sese-to-poly.c: Likewise.
18744 * graphite.h: Likewise.
18745 * toplev.c: Include isl/version.h and use isl_version () for
18746 printing the ISL version.
18747 * doc/install.texi: Update ISL requirement.
18748
18749 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
18750
18751 * doc/standards.texi (Standards): Update reference to
18752 Objective-C 2.0.
18753
18754 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
18755
18756 * doc/extend.texi (Named Address Spaces): sourceware.org now
18757 defaults to https.
18758 * doc/install.texi (Binaries): Ditto.
18759 (Specific): Ditto.
18760
18761 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
18762
18763 * doc/cpp.texi: Replace "stringify"/"stringification" with C
18764 standard terminology "stringize"/"stringizing" throughout.
18765 * doc/cppinternals.texi: Likewise.
18766
18767 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
18768
18769 * doc/extend.texi: Fix some spelling mistakes and typos.
18770 * doc/invoke.texi: Likewise.
18771
18772 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
18773
18774 PR ipa/79224
18775 * params.def (inline-min-speedup) Change from 10 to 8.
18776
18777 2017-02-11 Jakub Jelinek <jakub@redhat.com>
18778
18779 * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
18780 4.5.
18781
18782 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
18783
18784 PR ipa/79224
18785 * ipa-inline-analysis.c (get_minimal_bb): New function.
18786 (record_modified): Use it.
18787 (remap_edge_change_prob): Handle also ancestor functions.
18788
18789 2017-02-11 Gerald Pfeifer <gerald@pfeifer.com>
18790
18791 * doc/contrib.texi (Contributors): Remove broken link into
18792 the Mauve CVS repository.
18793
18794 2017-02-11 Jakub Jelinek <jakub@redhat.com>
18795
18796 PR middle-end/79454
18797 * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
18798 result computation whenever lhs doesn't have vector mode, not
18799 just when it has BLKmode.
18800
18801 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
18802
18803 * doc/makefile.texi (profiledbootstrap): Refer to the
18804 installation instructions only in textual form.
18805
18806 2017-02-10 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
18807
18808 PR target/79295
18809 * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
18810
18811 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
18812
18813 * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
18814 (Specific): Update mingw-w64 reference.
18815 (Binaries): Ditto.
18816 (Specific): Remove broken link to Renesas RX processor.
18817
18818 2017-02-10 Richard Biener <rguenther@suse.de>
18819
18820 * toplev.c (process_options): Do not mention obsolete graphite
18821 options when printing sorry message about missing graphite support.
18822 Mention -floop-nest-optimize.
18823
18824 2017-02-10 Christophe Lyon <christophe.lyon@linaro.org>
18825
18826 * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
18827 (vtst_p16): Likewise.
18828 (vtstq_p8): Likewise.
18829 (vtstq_p16): Likewise.
18830 (vtst_p64): New.
18831 (vtstq_p64): Likewise.
18832 * config/arm/arm_neon.h (vgetq_lane_p64): New.
18833 (vset_lane_p64): New.
18834 (vsetq_lane_p64): New.
18835
18836 2017-02-10 Jakub Jelinek <jakub@redhat.com>
18837
18838 PR tree-optimization/79411
18839 * tree-ssa-reassoc.c (is_reassociable_op): Return false if
18840 stmt operands are SSA_NAMEs used in abnormal phis.
18841 (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
18842 phis.
18843
18844 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
18845
18846 PR ipa/70795
18847 * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
18848 flag if needed.
18849
18850 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
18851
18852 * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
18853
18854 2017-02-09 Jakub Jelinek <jakub@redhat.com>
18855
18856 * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
18857 to avoid warning.
18858
18859 PR c/79413
18860 * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
18861 not arbitrary TREE_CONSTANT.
18862
18863 PR c/79431
18864 * gimplify.c (gimplify_adjust_omp_clauses): Ignore
18865 "omp declare target link" attribute unless is_global_var.
18866 * omp-offload.c (find_link_var_op): Likewise.
18867
18868 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
18869 Chung-Lin Tang <cltang@codesourcery.com>
18870
18871 * gimplify.c (gimplify_scan_omp_clauses): No special handling for
18872 OMP_CLAUSE_TILE.
18873 (gimplify_adjust_omp_clauses): Don't delete TILE.
18874 (gimplify_omp_for): Deal with TILE.
18875 * internal-fn.c (expand_GOACC_TILE): New function.
18876 * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
18877 (GOACC_TILE): New.
18878 * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
18879 (expand_oacc_collapse_init): Add LOC paramter. Initialize tile
18880 element fields.
18881 (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
18882 avoid DIV for outermost collapse var.
18883 (expand_oacc_for): Insert tile element loop as needed. Adjust.
18884 Remove out of date comments, fix whitespace.
18885 * omp-general.c (omp_extract_for_data): Deal with tiling.
18886 * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
18887 adjust OLF_DIM_BASE value.
18888 (struct omp_for_data): Add tiling field.
18889 * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
18890 (lower_oacc_head_mark): Add OLF_TILE as appropriate. Ensure 2 levels
18891 for auto loops. Remove default auto determining, moved to
18892 oacc_loop_fixed_partitions.
18893 * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
18894 stmts, add e_mask field.
18895 (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
18896 (oacc_thread_numbers): Use oacc_dim_call.
18897 (oacc_xform_tile): New.
18898 (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
18899 (finish_oacc_loop): Adjust for ifns vector.
18900 (oacc_loop_discover_walk): Append loop abstraction sites to list,
18901 add case for GOACC_TILE fns.
18902 (oacc_loop_xform_loop): Delete.
18903 (oacc_loop_process): Iterate over call list directly, and add
18904 handling for GOACC_TILE fns.
18905 (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
18906 dump partitioning.
18907 (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
18908 vector partitioning to outer loops. Assign 2 partitions to loops
18909 when available. Add TILE handling.
18910 (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
18911 (execite_oacc_device_lower): Process GOACC_TILE fns,
18912 ignore unknown specs.
18913 * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
18914 * tree.c (omp_clause_num_ops): Adjust TILE ops.
18915 * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
18916
18917 2017-02-09 Gerald Pfeifer <gerald@pfeifer.com>
18918
18919 * configure.ac (ACX_BUGURL): Update.
18920 * configure: Regenerate.
18921
18922 2017-02-09 Richard Biener <rguenther@suse.de>
18923
18924 PR tree-optimization/69823
18925 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
18926 Properly enumerate all BBs in the region. Use auto_vec/auto_bitmap.
18927
18928 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
18929
18930 * config/arc/arc-c.def: Add __NPS400__ definition.
18931 * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
18932 (TARGET_NPS400): Define.
18933
18934 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
18935
18936 * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
18937 file.
18938 (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
18939 pointer, arch_info.
18940 (arc_cpu_types): Fill the arch_info field with a pointer into the
18941 arc_arch_types table.
18942 (arc_selected_cpu): Declare.
18943 * config/arc/arc.c (arc_selected_cpu): Make global.
18944 (arc_selected_arch): Delete.
18945 (arc_base_cpu): Delete.
18946 (arc_override_options): Remove references to deleted variables,
18947 update access to arch information.
18948 (ARC_OPT): Update access to arch information.
18949 (ARC_OPTX): Likewise.
18950 * config/arc/arc.h (arc_base_cpu): Remove declaration.
18951 (TARGET_ARC600): Update access to arch information.
18952 (TARGET_ARC601): Likewise.
18953 (TARGET_ARC700): Likewise.
18954 (TARGET_EM): Likewise.
18955 (TARGET_HS): Likewise.
18956 * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
18957 information.
18958
18959 2017-02-08 Pat Haugen <pthaugen@us.ibm.com>
18960
18961 PR target/78604
18962 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
18963 condition/operands for integer GE/LE/GEU/LEU operations.
18964
18965 2017-02-08 Segher Boessenkool <segher@kernel.crashing.org>
18966
18967 PR translation/79397
18968 * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
18969 of AltiVec.
18970
18971 2017-02-08 Martin Jambor <mjambor@suse.cz>
18972
18973 PR ipa/79375
18974 * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
18975 whether allocation happened.
18976 (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
18977 nothing was allocated.
18978
18979 2017-02-08 Jakub Jelinek <jakub@redhat.com>
18980
18981 PR tree-optimization/79408
18982 * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
18983 constant, but SSA_NAME with a known integer range, use the minimum
18984 of that range instead of op1 to determine if modulo can be replaced
18985 with its first operand.
18986
18987 2016-02-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18988
18989 * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
18990
18991 2017-02-08 Richard Biener <rguenther@suse.de>
18992
18993 PR tree-optimization/71824
18994 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
18995 Check all loops contained in the merged region.
18996
18997 2017-02-07 Andrew Pinski <apinski@cavium.com>
18998
18999 * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
19000
19001 2017-02-07 Andrew Pinski <apinski@cavium.com>
19002
19003 * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
19004 (thunderxt88): Likewise.
19005 (thunderxt81): Disable LSE and change v8.1 to v8.
19006 (thunderxt83): Likewise.
19007
19008 2017-02-07 Jakub Jelinek <jakub@redhat.com>
19009 Richard Biener <rguenther@suse.de>
19010
19011 PR middle-end/79399
19012 * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
19013 type from int to size_t.
19014 * ira-costs.c (struct_costs_size): Change type from int to size_t.
19015
19016 2017-02-07 Jakub Jelinek <jakub@redhat.com>
19017
19018 PR rtl-optimization/79386
19019 * cprop.c (bypass_conditional_jumps): Initialize
19020 bypass_last_basic_block already before splitting bbs after
19021 unconditional traps...
19022 (bypass_conditional_jumps): ... rather than here.
19023
19024 PR target/79299
19025 * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
19026 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
19027 *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
19028 fix -masm=intel patterns.
19029
19030 2017-02-07 Richard Biener <rguenther@suse.de>
19031
19032 PR tree-optimization/79256
19033 PR middle-end/79278
19034 * builtins.c (get_object_alignment_2): Use min_align_of_type
19035 to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
19036 and ADJUST_FIELD_ALIGN.
19037
19038 * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
19039 type parameter.
19040 * doc/tm.texi: Regenerate.
19041 * stor-layout.c (layout_decl): Adjust.
19042 (update_alignment_for_field): Likewise.
19043 (place_field): Likewise.
19044 (min_align_of_type): Likewise.
19045 * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
19046 * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
19047 * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
19048 * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
19049 * config/frv/frv.c (frv_adjust_field_align): Likewise.
19050 * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
19051 * config/i386/i386.c (x86_field_alignment): Likewise.
19052 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
19053 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
19054 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
19055 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
19056 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
19057 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
19058 Likewise.
19059
19060 Revert
19061 2017-01-30 Richard Biener <rguenther@suse.de>
19062
19063 PR tree-optimization/79256
19064 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
19065 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
19066 alignment on TYPE.
19067
19068 2017-02-07 Toma Tabacu <toma.tabacu@imgtec.com>
19069
19070 * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
19071 argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
19072 builtins to SImode and emit a zero-extend, if necessary.
19073
19074 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
19075
19076 * docs/invoke.texi (RISC-V Options): Alphabetize.
19077
19078 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
19079
19080 * doc/invoke.texi (RISC-V Options): Use two spaces to separate
19081 options.
19082
19083 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
19084
19085 * config/riscv/riscv.c: New file.
19086 * common/config/riscv/riscv-common.c: Likewise.
19087 * config.gcc: Likewise.
19088 * config/riscv/constraints.md: Likewise.
19089 * config/riscv/elf.h: Likewise.
19090 * config/riscv/generic.md: Likewise.
19091 * config/riscv/linux.h: Likewise.
19092 * config/riscv/multilib-generator: Likewise.
19093 * config/riscv/peephole.md: Likewise.
19094 * config/riscv/pic.md: Likewise.
19095 * config/riscv/predicates.md: Likewise.
19096 * config/riscv/riscv-builtins.c: Likewise.
19097 * config/riscv/riscv-c.c: Likewise.
19098 * config/riscv/riscv-ftypes.def: Likewise.
19099 * config/riscv/riscv-modes.def: Likewise.
19100 * config/riscv/riscv-opts.h: Likewise.
19101 * config/riscv/riscv-protos.h: Likewise.
19102 * config/riscv/riscv.h: Likewise.
19103 * config/riscv/riscv.md: Likewise.
19104 * config/riscv/riscv.opt: Likewise.
19105 * config/riscv/sync.md: Likewise.
19106 * config/riscv/t-elf-multilib: Likewise.
19107 * config/riscv/t-linux: Likewise.
19108 * config/riscv/t-linux-multilib: Likewise.
19109 * config/riscv/t-riscv: Likewise.
19110 * configure.ac: Likewise.
19111 * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
19112 Waterman as RISC-V maintainers.
19113 * doc/install.texi: Add RISC-V entries.
19114 * doc/invoke.texi: Add RISC-V options section.
19115 * doc/md.texi: Add RISC-V constraints section.
19116 * configure: Regenerated.
19117
19118 2017-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
19119
19120 PR target/66144
19121 * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
19122 false values to be constant vectors with all 0 or all 1 bits set.
19123 (vcondu<mode><mode>): Likewise.
19124 * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
19125 predicate.
19126 (fpmask_comparison_operator): Update comment.
19127 (vecint_comparison_operator): New predicate.
19128 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
19129 vector conditionals when the true and false values are constant
19130 vectors with all 0 bits or all 1 bits set.
19131
19132 2017-02-06 Martin Sebor <msebor@redhat.com>
19133
19134 PR tree-optimization/79376
19135 * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
19136
19137 2017-02-06 Uros Bizjak <ubizjak@gmail.com>
19138
19139 * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
19140 explicit subreg RTX with operand 1. Use VECTOR_MODE_P predicate
19141 to simplify split condition.
19142
19143 2017-02-06 Jakub Jelinek <jakub@redhat.com>
19144
19145 * omp-expand.c (oxpand_omp_atomic_fetch_op,
19146 expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
19147 false.
19148
19149 2017-02-06 Segher Boessenkool <segher@kernel.crashing.org>
19150
19151 PR rtl-optimization/68664
19152 * target.def (can_speculate_insn): New hook.
19153 * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
19154 * doc/tm.texi: Regenerate.
19155 * sched-rgn.c (can_schedule_ready_p): Use the new hook.
19156 * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
19157 (rs6000_sched_can_speculate_insn): New function.
19158
19159 2017-02-06 Jakub Jelinek <jakub@redhat.com>
19160
19161 PR tree-optimization/79284
19162 * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
19163 * tree-vect-stmts.c (vect_get_vec_def_for_operand,
19164 vectorizable_mask_load_store, vectorizable_operation,
19165 vect_is_simple_cond, get_same_sized_vectype): Use it instead
19166 of comparing TREE_CODE of a type against BOOLEAN_TYPE.
19167 * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
19168 vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
19169 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
19170 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
19171 Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
19172 is_gimple_assign (stmt). Replace another such test with
19173 is_gimple_assign (stmt).
19174
19175 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
19176
19177 PR target/78883
19178 * config/avr/avr.c (rtl-iter.h): Include it.
19179 (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
19180 (avr_legitimate_combined_insn): ...and implementation.
19181
19182 2017-02-06 Dominik Vogt <vogt@linux.vnet.ibm.com>
19183
19184 * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
19185 * config/s390/s390.c (s390_const_operand_ok)
19186 (s390_canonicalize_comparison, s390_extract_part)
19187 (s390_single_part, s390_contiguous_bitmask_nowrap_p)
19188 (s390_contiguous_bitmask_p, s390_rtx_costs)
19189 (legitimize_pic_address): Likewise.
19190 * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
19191 * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
19192 ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
19193 ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
19194 * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
19195
19196 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
19197
19198 * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
19199 REGNO($0) == REGNO($1).
19200
19201 2017-02-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19202
19203 * config/s390/linux.h(SIZE_TYPE): Add comment.
19204
19205 2017-02-06 Julian Brown <julian@codesourcery.com>
19206 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
19207 Virendra Pathak <virendra.pathak@broadcom.com>
19208
19209 * config/aarch64/aarch64-cores.def: Change the scheduler
19210 to Thunderx2t99.
19211 * config/aarch64/aarch64.md: Include thunderx2t99.md.
19212 * config/aarch64/thunderx2t99.md: New file.
19213
19214 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
19215
19216 * doc/standards.texi (Go Language): Update link to language
19217 standard.
19218
19219 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
19220
19221 * tree-eh.c (lower_resx): Sanitize profile.
19222 (cleanup_empty_eh_move_lp): Likewise.
19223
19224 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
19225
19226 PR tree-ssa/79347
19227 * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
19228 ELSE_PROB.
19229 * cfgloopmanip.h (loop_version): Update prototype.
19230 * modulo-sched.c (sms_schedule): Update call of loop_version.
19231 * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
19232 * tree-parloops.c (gen_parallel_loop): Likewise.
19233 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
19234 * tree-ssa-loop-split.c (split_loop): Likewise.
19235 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
19236 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
19237
19238 2017-02-05 Martin Liska <mliska@suse.cz>
19239
19240 PR bootstrap/78985
19241 * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
19242 variable to NULL.
19243 (print_operand_address): Initialize a struct to zero.
19244
19245 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
19246
19247 * doc/contrib.texi (Contributors): Refer to Hans Boehm's
19248 garbage collector only in textual form.
19249
19250 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
19251
19252 * doc/extend.texi (x86 specific memory model extensions for
19253 transactional memory): Simplify a phrase.
19254
19255 2017-02-05 Eric Botcazou <ebotcazou@adacore.com>
19256
19257 PR target/79353
19258 * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
19259 'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
19260 (atomic_storedi_1): Likewise.
19261
19262 2017-02-04 Jakub Jelinek <jakub@redhat.com>
19263
19264 PR tree-optimization/79338
19265 * tree-parloops.c (gather_scalar_reductions): Don't call
19266 vect_analyze_loop_form for loop->inner before destroying loop's
19267 loop_vinfo.
19268
19269 2017-02-03 Martin Sebor <msebor@redhat.com>
19270
19271 PR tree-optimization/79327
19272 * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
19273 when precision has resulted in leading zeros.
19274 (format_integer): Adjust the likely counter to assume an unknown
19275 argument that may be zero is non-zero.
19276
19277 2017-02-03 Jason Merrill <jason@redhat.com>
19278
19279 PR c++/78689
19280 * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
19281 avoid copying non-taken branch.
19282
19283 2017-02-03 Jakub Jelinek <jakub@redhat.com>
19284
19285 PR tree-optimization/79340
19286 * tree-vect-loop.c (vectorizable_reduction): Release
19287 vec_defs elements after safe_splicing them into other vectors.
19288 Formatting fixes.
19289
19290 PR tree-optimization/79327
19291 * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
19292 true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
19293 dirtype.
19294 (format_integer): Use wide_int_to_tree instead of build_int_cst
19295 + to_?hwi. If argmin is NULL, just set argmin and argmax to
19296 TYPE_{MIN,MAX}_VALUE of argtype. Simplify and fix computation
19297 of shortest and longest sequence.
19298
19299 2017-02-03 Uros Bizjak <ubizjak@gmail.com>
19300
19301 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
19302 Use pextrd for TARGET_SSE4_1 when creating scalar copy.
19303
19304 2017-02-03 Walter Lee <walt@tilera.com>
19305
19306 PR target/78862
19307 * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
19308 after initial stackframe link reg save.
19309 * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
19310
19311 2017-02-03 Jakub Jelinek <jakub@redhat.com>
19312
19313 PR target/79354
19314 * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
19315 wu for stxssp alternative.
19316
19317 2017-02-03 Martin Sebor <msebor@redhat.com>
19318
19319 PR tree-optimization/79352
19320 * gimple-fold.c (get_range_strlen): Add argument.
19321 (get_range_strlen): Change return type to bool.
19322 (get_maxval_strlen): Pass in a dummy argument.
19323 * gimple-fold.h (get_range_strlen): Change return type to bool.
19324 * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
19325 * tree.h (array_at_struct_end_p): Add argument.
19326 * tree.c (array_at_struct_end_p): Handle it.
19327
19328 2017-02-03 Martin Liska <mliska@suse.cz>
19329
19330 PR lto/66295
19331 * multiple_target.c (create_dispatcher_calls): Redirect edge
19332 from a caller of a dispatcher.
19333 (expand_target_clones): Make the clones local.
19334 (ipa_target_clone): Do both target clones and resolvers.
19335 (ipa_dispatcher_calls): Remove the pass.
19336 (pass_dispatcher_calls::gate): Likewise.
19337 (make_pass_dispatcher_calls): Likewise.
19338 * passes.def (pass_target_clone): Put as very first IPA early
19339 pass.
19340
19341 2017-02-03 Martin Liska <mliska@suse.cz>
19342
19343 * symtab.c (symtab_node::binds_to_current_def_p): Bail out
19344 in case of a function with ifunc attribute.
19345
19346 2017-02-03 Martin Liska <mliska@suse.cz>
19347
19348 * cgraph.c (cgraph_node::dump): Dump function version info.
19349 * symtab.c (symtab_node::dump_base): Add missing new line.
19350
19351 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
19352
19353 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
19354 (ifcombine_ifandif): Use it.
19355
19356 2017-02-03 Martin Liska <mliska@suse.cz>
19357
19358 * doc/invoke.texi: Document default value for
19359 use-after-scope-direct-emission-threshold.
19360
19361 2017-02-03 Martin Liska <mliska@suse.cz>
19362
19363 PR tree-optimization/79339
19364 * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
19365 (format_floating): Likewise.
19366
19367 2017-02-03 Martin Liska <mliska@suse.cz>
19368
19369 PR ipa/79337
19370 * ipa-prop.c (ipa_node_params_t::insert): Remove current
19371 implementation.
19372 (ipa_node_params_t::remove): Likewise.
19373 * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
19374 initialization from removed ipa_node_params_t::insert.
19375 (ipa_node_params::~ipa_node_params): Move from removed
19376 ipa_node_params_t::release.
19377 * symbol-summary.h (symbol_summary::m_released): New member.
19378 Do not release a summary twice. Do not allow to call finalizer
19379 for types of a summary that live in GGC memory.
19380
19381 2017-02-02 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
19382
19383 * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
19384 cmp_branch fusion.
19385
19386 2017-02-02 Martin Sebor <msebor@redhat.com>
19387
19388 PR middle-end/79275
19389 * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
19390 (format_string): Tighten up the range of output for non-constant
19391 strings and correct the expected range for wide non-constant strings.
19392
19393 2017-02-02 Martin Sebor <msebor@redhat.com>
19394
19395 * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
19396
19397 PR middle-end/32003
19398 * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
19399 index.
19400 (-fdump-tree-@var): Add to index and document how to come up
19401 with pass-specific option and dump file names.
19402 (-fdump-passes): Clarify where to look for output.
19403
19404 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
19405
19406 PR middle-end/77445
19407 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
19408 statistics of the analyzed path; allow threading for speed when
19409 any of BBs along the path are optimized for speed.
19410
19411 2017-02-02 Eric Botcazou <ebotcazou@adacore.com>
19412
19413 PR middle-end/78468
19414 * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
19415 settings of the virtual registers.
19416
19417 Revert again
19418 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
19419
19420 * explow.c (get_dynamic_stack_size): Take known alignment of stack
19421 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
19422 needed.
19423
19424 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19425
19426 * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
19427 ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
19428
19429 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19430
19431 * config/s390/s390.md: Add missing comments with the expanded
19432 mnemonics.
19433 * config/s390/vector.md: Likewise.
19434 * config/s390/vx-builtins.md: Likewise.
19435
19436 2017-02-02 Jakub Jelinek <jakub@redhat.com>
19437
19438 PR target/79197
19439 * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
19440 (fixuns_trunc<mode>di2): ... this, remove previous expander. Put all
19441 conditions on a single line.
19442
19443 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19444
19445 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
19446 __S390_VX__ to __VX__.
19447
19448 2017-02-01 Andrew Pinski <apinski@cavium.com>
19449
19450 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
19451 stmt_info to record_stmt_cost.
19452 (vect_get_known_peeling_cost): Pass stmt_info if known to
19453 record_stmt_cost.
19454 * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
19455 cpu_vector_cost field into
19456 scalar_int_stmt_cost and scalar_fp_stmt_cost. Split vec_stmt_cost
19457 field into vec_int_stmt_cost and vec_fp_stmt_cost.
19458 * config/aarch64/aarch64.c (generic_vector_cost): Update for the
19459 splitting of scalar_stmt_cost and vec_stmt_cost.
19460 (thunderx_vector_cost): Likewise.
19461 (cortexa57_vector_cost): LIkewise.
19462 (exynosm1_vector_cost): Likewise.
19463 (xgene1_vector_cost): Likewise.
19464 (thunderx2t99_vector_cost): Improve after the splitting of the two
19465 fields.
19466 (aarch64_builtin_vectorization_cost): Update for the splitting of
19467 scalar_stmt_cost and vec_stmt_cost.
19468
19469 2017-02-01 Torvald Riegel <triegel@redhat.com>
19470 Richard Henderson <rth@redhat.com>
19471
19472 * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
19473 conditional on existance of a fast atomic load.
19474 * optabs-query.c (can_atomic_load_p): New function.
19475 * optabs-query.h (can_atomic_load_p): Declare it.
19476 * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
19477 no fast atomic load is available for the particular size of access.
19478 (expand_atomic_compare_and_swap): Likewise.
19479 (expand_atomic_load): Likewise.
19480 (expand_atomic_store): Likewise.
19481 (expand_atomic_fetch_op): Likewise.
19482 * testsuite/lib/target-supports.exp
19483 (check_effective_target_sync_int_128): Remove x86 because it provides
19484 no fast atomic load.
19485 (check_effective_target_sync_int_128_runtime): Likewise.
19486
19487 2017-02-01 Richard Biener <rguenther@suse.de>
19488
19489 * graphite.c: Include tree-vectorizer.h for find_loop_location.
19490 (graphite_transform_loops): Provide opt-info for optimized nests.
19491 * tree-parloop.c (parallelize_loops): Provide opt-info for
19492 parallelized loops.
19493
19494 2017-02-01 Richard Biener <rguenther@suse.de>
19495
19496 PR middle-end/79315
19497 * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
19498 was not set before.
19499
19500 2017-02-01 Richard Biener <rguenther@suse.de>
19501
19502 PR tree-optimization/71824
19503 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
19504 Verify the loops are valid in the merged SESE region.
19505 (scop_detection::can_represent_loop_1): Check analyzing the
19506 evolution of the number of iterations in the region succeeds.
19507
19508 2017-01-31 Ian Lance Taylor <iant@golang.org>
19509
19510 * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
19511 REG_ARGS_SIZE note to 32-bit push insns and call insn.
19512
19513 2017-01-31 David Malcolm <dmalcolm@redhat.com>
19514
19515 PR preprocessor/79210
19516 * input.c (get_substring_ranges_for_loc): Replace line_width
19517 assertion with error-handling.
19518
19519 2017-01-31 Richard Biener <rguenther@suse.de>
19520
19521 PR tree-optimization/77318
19522 * graphite-sese-to-poly.c (extract_affine): Fix assert.
19523 (create_pw_aff_from_tree): Take loop parameter.
19524 (add_condition_to_pbb): Pass loop of the condition to
19525 create_pw_aff_from_tree.
19526
19527 2017-01-31 Jakub Jelinek <jakub@redhat.com>
19528
19529 * config/s390/s390.c (s390_asan_shadow_offset): New function.
19530 (TARGET_ASAN_SHADOW_OFFSET): Redefine.
19531
19532 2017-01-31 Michael Meissner <meissner@linux.vnet.ibm.com>
19533
19534 PR target/78597
19535 PR target/79038
19536 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
19537 no longer used.
19538 (convert_int_to_float128): Likewise.
19539 * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
19540 (convert_int_to_float128): Likewise.
19541 * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
19542 (UNSPEC_IEEE128_CONVERT): Likewise.
19543 (floatsi<mode>2, FLOAT128 iterator): Bypass calling
19544 rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
19545 Use local variables for IBM extended format.
19546 (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
19547 (fix_trunc<mode>si2_fprs): Likewise.
19548 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
19549 (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
19550 (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
19551 to know that we can now have integers of all sizes in vector
19552 registers.
19553 (fix<uns>_<mode>di2_hw): Likewise.
19554 (float<uns>_<mode>si2_hw): Likewise.
19555 (fix_<mode>si2_hw): Likewise.
19556 (fixuns_<mode>si2_hw): Likewise.
19557 (float<uns>_<mode>di2_hw): Likewise.
19558 (float_<mode>di2_hw): Likewise.
19559 (float_<mode>si2_hw): Likewise.
19560 (floatuns_<mode>di2_hw): Likewise.
19561 (floatuns_<mode>si2_hw): Likewise.
19562 (xscvqp<su>wz_<mode>): Delete, no longer used.
19563 (xscvqp<su>dz_<mode>): Likewise.
19564 (xscv<su>dqp_<mode>): Likewise.
19565 (ieee128_mfvsrd_64bit): Likewise.
19566 (ieee128_mfvsrd_32bit): Likewise.
19567 (ieee128_mfvsrwz): Likewise.
19568 (ieee128_mtvsrw): Likewise.
19569 (ieee128_mtvsrd_64bit): Likewise.
19570 (ieee128_mtvsrd_32bit): Likewise.
19571
19572 2017-01-31 Martin Liska <mliska@suse.cz>
19573
19574 PR ipa/79285
19575 * ipa-prop.c (ipa_free_all_node_params): Call release method
19576 instead of ~sumbol_summary to not to trigger double times
19577 dtor of hash_map.
19578
19579 2017-01-31 Aldy Hernandez <aldyh@redhat.com>
19580
19581 PR tree-optimization/71691
19582 * bitmap.h (class auto_bitmap): New.
19583 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
19584 is_maybe_undefined instead of ssa_undefined_value_p.
19585
19586 2017-01-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19587
19588 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
19589 __S390_ARCH_LEVEL__ to __ARCH__.
19590
19591 2017-01-31 Jakub Jelinek <jakub@redhat.com>
19592
19593 PR tree-optimization/79267
19594 * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
19595 if should_remove_lhs_p is true.
19596
19597 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
19598
19599 PR debug/63238
19600 * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
19601 (add_alignment_attribute): New.
19602 (base_type_die): Add alignment attribute.
19603 (subrange_type_die): Likewise.
19604 (modified_type_die): Likewise.
19605 (gen_array_type_die): Likewise.
19606 (gen_descr_array_type_die: Likewise.
19607 (gen_enumeration_type_die): Likewise.
19608 (gen_subprogram_die): Likewise.
19609 (gen_variable_die): Likewise.
19610 (gen_field_die): Likewise.
19611 (gen_ptr_to_mbr_type_die): Likewise.
19612 (gen_struct_or_union_type_die): Likewise.
19613 (gen_subroutine_type_die): Likewise.
19614 (gen_typedef_die): Likewise.
19615 (base_type_cmp): Compare alignment attribute.
19616
19617 2017-01-30 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
19618
19619 PR target/79170
19620 * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
19621 (setb_unsigned) New pattern for setb with CCUNS.
19622 * config/rs6000/rs6000.c (expand_block_compare): Use a different
19623 subfc./subfe sequence to avoid overflow problems. Generate a
19624 shorter sequence with cmpld/setb for power9.
19625 * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
19626 for generating subfc. instruction.
19627 (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
19628 now uses this instruction.
19629
19630 2017-01-30 Ian Lance Taylor <iant@google.com>
19631
19632 PR debug/79289
19633 * dwarf2out.c (gen_type_die_with_usage): When picking a variant
19634 for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
19635
19636 2017-01-30 Martin Sebor <msebor@redhat.com>
19637
19638 * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
19639 Move constant to the right of a relational operator.
19640 (get_mpfr_format_length, format_character, format_string): Ditto.
19641 (should_warn_p, maybe_warn): Same.
19642
19643 * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
19644
19645 2017-01-30 Maxim Ostapenko <m.ostapenko@samsung.com>
19646
19647 PR lto/79061
19648 * asan.c (get_translation_unit_decl): Remove function.
19649 (asan_add_global): Force has_dynamic_init to zero in LTO mode.
19650
19651 2017-01-30 Martin Liska <mliska@suse.cz>
19652
19653 PR gcov-profile/79259
19654 * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
19655 -fprofile-generate.
19656
19657 2017-01-30 Martin Liska <mliska@suse.cz>
19658
19659 PR bootstrap/78985
19660 * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
19661 Initialize variables with NULL value.
19662
19663 2017-01-30 Richard Earnshaw <rearnsh@arm.com>
19664
19665 PR target/79260
19666 * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
19667 tm_p_file.
19668 * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
19669
19670 2017-01-30 Richard Biener <rguenther@suse.de>
19671
19672 PR tree-optimization/79276
19673 * tree-vrp.c (process_assert_insertions): Properly adjust common
19674 when removing a duplicate.
19675
19676 * gcc.dg/torture/pr79276.c: New testcase.
19677
19678 2017-01-30 Richard Biener <rguenther@suse.de>
19679
19680 PR tree-optimization/79256
19681 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
19682 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
19683 alignment on TYPE.
19684 * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
19685
19686 2017-01-30 Dominik Vogt <vogt@linux.vnet.ibm.com>
19687
19688 PR target/79240
19689 * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
19690 ("*r<noxa>sbg_<mode>_sll_bitmask")
19691 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
19692 ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
19693 Use contiguous_bitmask_nowrap_operand.
19694
19695 2017-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19696
19697 PR target/79268
19698 * config/rs6000/altivec.h (vec_xl): Revise #define.
19699 (vec_xst): Likewise.
19700
19701 2017-01-27 Uros Bizjak <ubizjak@gmail.com>
19702
19703 * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
19704
19705 2017-01-27 Bernd Schmidt <bschmidt@redhat.com>
19706
19707 PR rtl-optimization/79194
19708 * cprop.c (one_cprop_pass): Move deletion of code after unconditional
19709 traps before call to bypass_conditional_jumps.
19710
19711 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
19712
19713 PR tree-optimization/71374
19714 * lra-constraints.c (check_conflict_input_operands): New.
19715 (match_reload): Use it.
19716
19717 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
19718
19719 PR target/79131
19720 * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
19721 account to calculate conflict_set.
19722
19723 2017-01-27 Bin Cheng <bin.cheng@arm.com>
19724
19725 PR rtl-optimization/78559
19726 * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
19727 other_insn in combine.
19728
19729 2017-01-27 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
19730
19731 * builtin-types.def: Use unsigned_char_type_node for BT_UINT8. Use
19732 uint16_type_node for BT_UINT16.
19733
19734 2017-01-27 David Malcolm <dmalcolm@redhat.com>
19735
19736 * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
19737 "RTL Tests" to menu.
19738 (GIMPLE Tests): New node.
19739 (RTL Tests): New node.
19740
19741 2017-01-27 Richard Biener <rguenther@suse.de>
19742
19743 PR tree-optimization/79245
19744 * tree-loop-distribution.c (distribute_loop): Apply cost
19745 modeling also to detected patterns.
19746
19747 2017-01-27 Richard Biener <rguenther@suse.de>
19748
19749 PR tree-optimization/71433
19750 * tree-vrp.c (register_new_assert_for): Revert earlier changes.
19751 (compare_assert_loc): New function.
19752 (process_assert_insertions): Sort and optimize assert locations
19753 to remove duplicates and push down identical assertions on
19754 edges to their destination block.
19755
19756 2017-01-27 Richard Biener <rguenther@suse.de>
19757
19758 PR tree-optimization/79244
19759 * tree-vrp.c (remove_range_assertions): Forcefully propagate
19760 out SSA names even if abnormal.
19761
19762 2017-01-27 Jakub Jelinek <jakub@redhat.com>
19763
19764 * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
19765 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
19766 instead of MPFR_RNDN.
19767
19768 2017-01-27 Richard Earnshaw <rearnsha@arm.com>
19769
19770 PR target/79239
19771 * arm.c (arm_option_override): Don't call build_target_option_node
19772 until after doing all option overrides.
19773 (arm_valid_target_attribute_tree): Likewise.
19774
19775 2017-01-27 Martin Liska <mliska@suse.cz>
19776
19777 * doc/invoke.texi (-fprofile-arcs): Document profiling support
19778 for {cd}tors and C++ {cd}tors.
19779
19780 2017-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
19781
19782 * config/s390/s390.md ("*setmem_long_and")
19783 ("*setmem_long_and_31z"): Use zero_extend instead of and.
19784
19785 2017-01-26 Martin Sebor <msebor@redhat.com>
19786
19787 * gimple-ssa-sprintf.c (format_floating): Simplify the computation
19788 of precision.
19789
19790 2017-01-26 Martin Sebor <msebor@redhat.com>
19791
19792 * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
19793 HAVE_DFmode before using XFmode or DFmode.
19794 (parse_directive): Avoid using the z length modifier to avoid
19795 the ISO C++98 does not support the ‘z’ gnu_printf length modifier.
19796
19797 PR middle-end/78703
19798 * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
19799 to accept adjustment as an array.
19800 (get_int_range): New function.
19801 (struct directive): Make width and prec arrays.
19802 (directive::set_width, directive::set_precision): Call get_int_range.
19803 (format_integer, format_floating): Handle width and precision ranges.
19804 (format_string, parse_directive): Same.
19805
19806 2017-01-26 Jakub Jelinek <jakub@redhat.com>
19807
19808 PR debug/79129
19809 * dwarf2out.c (generate_skeleton_bottom_up): For children with
19810 comdat_type_p set, just clone them, but keep the children in the
19811 original DIE.
19812
19813 PR debug/78835
19814 * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
19815 which have direct callers with -fvar-tracking-assignments enabled
19816 in the current TU.
19817 (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
19818 inside of type units.
19819
19820 2017-01-26 Martin Sebor <msebor@redhat.com>
19821
19822 PR middle-end/78703
19823 * gimple-ssa-sprintf.c (struct result_range): Add likely and
19824 unlikely counters.
19825 (struct format_result): Replace number_chars, number_chars_min,
19826 and number_chars_max with a single member of struct result_range.
19827 Remove bounded.
19828 (format_result::operator+=): Adjust.
19829 (struct fmtresult): Remove bounded. Handle likely and unlikely
19830 counters.
19831 (fmtresult::adjust_for_width_or_precision): New function.
19832 (fmtresult:type_max_digits): New function.
19833 (bytes_remaining): Handle likely and unlikely counters.
19834 (min_bytes_remaining): Remove.
19835 (format_percent): Simplify.
19836 (format_integer, format_floating): Set likely and unlikely counters.
19837 (get_string_length, format_character, format_string): Same.
19838 (format_plain, should_warn_p): New function.
19839 (maybe_warn): Call should_warn_p. Update diagnostic messages
19840 and handle those for all directives, including plain strings.
19841 (format_directive): Handle likely and unlikely counters.
19842 Remove unnecessary quoting from diagnostics. Add an informational
19843 note.
19844 (add_bytes): Remove.
19845 (pass_sprintf_length::compute_format_length): Simplify.
19846 (try_substitute_return_value): Handle likely and unlikely counters.
19847
19848 2017-01-26 Carl Love <cel@us.ibm.com>
19849
19850 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
19851 bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
19852
19853 2017-01-26 Vladimir Makarov <vmakarov@redhat.com>
19854
19855 PR target/79131
19856 * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
19857 endianess for subregs into account.
19858 * lra-constraints.c (lra_constraints): Do risky transformations
19859 always on the first iteration.
19860 * lra-lives.c (check_pseudos_live_through_calls): Add arg
19861 last_call_used_reg_set.
19862 (process_bb_lives): Define and use last_call_used_reg_set.
19863 * lra.c (lra): Always continue after lra_constraints on the first
19864 iteration.
19865
19866 2017-01-26 Kirill Yukhin <kirill.yukhin@gmail.com>
19867
19868 * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
19869 constant.
19870 * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
19871
19872 2017-01-26 Jakub Jelinek <jakub@redhat.com>
19873
19874 * config/i386/avx512fintrin.h (_ktest_mask16_u8,
19875 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
19876 * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
19877 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
19878 * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
19879 __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
19880 OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
19881 * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
19882 (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
19883
19884 2017-01-26 Marek Polacek <polacek@redhat.com>
19885
19886 PR c/79199
19887 * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
19888 for the third operand.
19889
19890 2017-01-26 Jakub Jelinek <jakub@redhat.com>
19891
19892 PR middle-end/79236
19893 * omp-low.c (struct omp_context): Add simt_stmt field.
19894 (scan_omp_for): Return omp_context *.
19895 (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
19896 context to the _simt_ SIMD stmt.
19897 (lower_omp_for): For combined SIMD with sibling _simt_
19898 SIMD, make sure to use the same decls in _looptemp_
19899 clauses as in the sibling.
19900
19901 2017-01-26 David Sherwood <david.sherwood@arm.com>
19902
19903 PR middle-end/79212
19904 * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
19905 all contexts.
19906
19907 2017-01-26 Jakub Jelinek <jakub@redhat.com>
19908
19909 PR target/70465
19910 * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
19911 emit fld b; fld a; if possible.
19912
19913 * brig-builtins.def: Update copyright years.
19914 * config/arm/arm_acle_builtins.def: Update copyright years.
19915
19916 2017-01-25 Michael Meissner <meissner@linux.vnet.ibm.com>
19917
19918 PR target/79179
19919 * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
19920 constraint instead of o for the stxsd instruction.
19921
19922 2017-01-25 Carl Love <cel@us.ibm.com>
19923
19924 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
19925 of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
19926
19927 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
19928
19929 * doc/invoke.texi (C++ Dialect Options): Fix typo.
19930
19931 2017-01-25 Richard Biener <rguenther@suse.de>
19932
19933 PR tree-optimization/69264
19934 * target.def (vector_alignment_reachable): Improve documentation.
19935 * doc/tm.texi: Regenerate.
19936 * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
19937 and add a comment.
19938 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
19939 earlier changes with respect to TYPE_USER_ALIGN.
19940 (vector_alignment_reachable_p): Likewise. Improve dumping.
19941
19942 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19943
19944 PR target/79145
19945 * config/arm/arm.md (xordi3): Force constant operand into a register
19946 for TARGET_IWMMXT.
19947
19948 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19949
19950 * doc/invoke.texi (-fstore-merging): Correct default optimization
19951 levels at which it is enabled.
19952 (-O): Move -fstore-merging from list to...
19953 (-O2): ... Here.
19954
19955 2017-01-25 Richard Biener <rguenther@suse.de>
19956
19957 PR debug/78363
19958 * omp-expand.c: Include debug.h.
19959 (expand_omp_taskreg): Make sure to generate early debug before
19960 outlining anything from a function.
19961 (expand_omp_target): Likewise.
19962 (grid_expand_target_grid_body): Likewise.
19963
19964 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
19965
19966 PR lto/79061
19967 * asan.c (get_translation_unit_decl): New function.
19968 (asan_add_global): Extract modules file name from globals
19969 TRANSLATION_UNIT_DECL name.
19970
19971 2017-01-24 Eric Botcazou <ebotcazou@adacore.com>
19972
19973 PR target/77439
19974 * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
19975 for long calls with APCS frame and VFP.
19976
19977 2017-01-24 David Malcolm <dmalcolm@redhat.com>
19978
19979 * cfg.c (original_copy_tables_initialized_p): New function.
19980 * cfg.h (original_copy_tables_initialized_p): New decl.
19981 * cfgrtl.c (relink_block_chain): Guard the call to
19982 free_original_copy_tables with a call to
19983 original_copy_tables_initialized_p.
19984 * cgraph.h (symtab_node::native_rtl_p): New decl.
19985 * cgraphunit.c (symtab_node::native_rtl_p): New function.
19986 (symtab_node::needed_p): Don't assert for early assembly output
19987 for __RTL functions.
19988 (cgraph_node::finalize_function): Set "force_output" for __RTL
19989 functions.
19990 (cgraph_node::analyze): Bail out early for __RTL functions.
19991 (analyze_functions): Update assertion to support __RTL functions.
19992 (cgraph_node::expand): Bail out early for __RTL functions.
19993 * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
19994 __RTL functions.
19995 * function.h (struct function): Update comment for field
19996 "pass_startwith".
19997 * gimple-expr.c: Include "tree-pass.h".
19998 (gimple_has_body_p): Return false for __RTL functions.
19999 * Makefile.in (OBJS): Add run-rtl-passes.o.
20000 * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
20001 accessor.
20002 (gcc::pass_manager::get_clean_slate): New accessor.
20003 * passes.c: Include "insn-addr.h".
20004 (should_skip_pass_p): Add logging. Update logic for running
20005 "expand" to be compatible with both __GIMPLE and __RTL. Guard
20006 property-provider override so it is only done for gimple passes.
20007 Don't skip dfinit.
20008 (skip_pass): New function.
20009 (execute_one_pass): Call skip_pass when skipping passes.
20010 * read-md.c (md_reader::read_char): Support filtering
20011 the input to a subset of line numbers.
20012 (md_reader::md_reader): Initialize fields
20013 m_first_line and m_last_line.
20014 (md_reader::read_file_fragment): New function.
20015 * read-md.h (md_reader::read_file_fragment): New decl.
20016 (md_reader::m_first_line): New field.
20017 (md_reader::m_last_line): New field.
20018 * read-rtl-function.c (function_reader::create_function): Only
20019 create cfun if it doesn't already exist. Set PROP_rtl on cfun's
20020 curr_properties. Set DECL_INITIAL to a dummy block.
20021 (read_rtl_function_body_from_file_range): New function.
20022 * read-rtl-function.h (read_rtl_function_body_from_file_range):
20023 New decl.
20024 * run-rtl-passes.c: New file.
20025 * run-rtl-passes.h: New file.
20026
20027 2017-01-24 Jeff Law <law@redhat.com>
20028
20029 * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
20030 buffer size.
20031
20032 2017-01-24 Bin Cheng <bin.cheng@arm.com>
20033
20034 PR tree-optimization/79159
20035 * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
20036 (record_nonwrapping_iv): Improve boundary using above function if no
20037 value range information.
20038
20039 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
20040 Martin Jambor <mjambor@suse.cz>
20041
20042 * brig-builtins.def: New file.
20043 * builtins.def (DEF_HSAIL_BUILTIN): New macro.
20044 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
20045 (DEF_HSAIL_SAT_BUILTIN): Likewise.
20046 (DEF_HSAIL_INTR_BUILTIN): Likewise.
20047 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
20048 * builtin-types.def (BT_INT8): New.
20049 (BT_INT16): Likewise.
20050 (BT_UINT8): Likewise.
20051 (BT_UINT16): Likewise.
20052 (BT_FN_ULONG): Likewise.
20053 (BT_FN_UINT_INT): Likewise.
20054 (BT_FN_UINT_ULONG): Likewise.
20055 (BT_FN_UINT_LONG): Likewise.
20056 (BT_FN_UINT_PTR): Likewise.
20057 (BT_FN_ULONG_PTR): Likewise.
20058 (BT_FN_INT8_FLOAT): Likewise.
20059 (BT_FN_INT16_FLOAT): Likewise.
20060 (BT_FN_UINT32_FLOAT): Likewise.
20061 (BT_FN_UINT16_FLOAT): Likewise.
20062 (BT_FN_UINT8_FLOAT): Likewise.
20063 (BT_FN_UINT64_FLOAT): Likewise.
20064 (BT_FN_UINT16_UINT32): Likewise.
20065 (BT_FN_UINT32_UINT16): Likewise.
20066 (BT_FN_UINT16_UINT16_UINT16): Likewise.
20067 (BT_FN_INT_PTR_INT): Likewise.
20068 (BT_FN_UINT_PTR_UINT): Likewise.
20069 (BT_FN_LONG_PTR_LONG): Likewise.
20070 (BT_FN_ULONG_PTR_ULONG): Likewise.
20071 (BT_FN_VOID_UINT64_UINT64): Likewise.
20072 (BT_FN_UINT8_UINT8_UINT8): Likewise.
20073 (BT_FN_INT8_INT8_INT8): Likewise.
20074 (BT_FN_INT16_INT16_INT16): Likewise.
20075 (BT_FN_INT_INT_INT): Likewise.
20076 (BT_FN_UINT_FLOAT_UINT): Likewise.
20077 (BT_FN_FLOAT_UINT_UINT): Likewise.
20078 (BT_FN_ULONG_UINT_UINT): Likewise.
20079 (BT_FN_ULONG_UINT_PTR): Likewise.
20080 (BT_FN_ULONG_ULONG_ULONG): Likewise.
20081 (BT_FN_UINT_UINT_UINT): Likewise.
20082 (BT_FN_VOID_UINT_PTR): Likewise.
20083 (BT_FN_UINT_UINT_PTR: Likewise.
20084 (BT_FN_UINT32_UINT64_PTR): Likewise.
20085 (BT_FN_INT_INT_UINT_UINT): Likewise.
20086 (BT_FN_UINT_UINT_UINT_UINT): Likewise.
20087 (BT_FN_UINT_UINT_UINT_PTR): Likewise.
20088 (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
20089 (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
20090 (BT_FN_LONG_LONG_UINT_UINT): Likewise.
20091 (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
20092 (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
20093 (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
20094 (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
20095 (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
20096 (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
20097 * doc/frontends.texi: List BRIG FE.
20098 * doc/install.texi (Testing): Add BRIG tesring requirements.
20099 * doc/invoke.texi (Overall Options): Mention BRIG.
20100 * doc/standards.texi (Standards): Doucment BRIG HSA version.
20101
20102 2017-01-24 Richard Biener <rguenther@suse.de>
20103
20104 PR translation/79208
20105 * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
20106
20107 2017-01-24 Martin Jambor <mjambor@suse.cz>
20108
20109 PR bootstrap/79198
20110 * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
20111 * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
20112 and known_contexts.
20113
20114 2017-01-24 Aldy Hernandez <aldyh@redhat.com>
20115
20116 PR middle-end/79123
20117 * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
20118 casts from signed to unsigned really don't have a range.
20119
20120 2017-01-24 Markus Trippelsdorf <markus@trippelsdorf.de>
20121
20122 * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
20123 GMP_RNDx for compatiblity.
20124
20125 2017-01-24 Martin Liska <mliska@suse.cz>
20126
20127 PR bootstrap/79132
20128 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
20129 that would prevent us to call alloca with -1 as argument.
20130
20131 2017-01-24 Jakub Jelinek <jakub@redhat.com>
20132
20133 * dwarf2out.c (output_compilation_unit_header, output_file_names):
20134 Avoid -Wformat-security warning.
20135
20136 2017-01-23 Andrew Pinski <apinski@cavium.com>
20137
20138 * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
20139 cost table.
20140
20141 2017-01-23 Martin Sebor <msebor@redhat.com>
20142
20143 PR middle-end/78703
20144 * gimple-ssa-sprintf.c (warn_level): New global.
20145 (format_integer): Use it here and throughout the rest of the file.
20146 Use the same switch to compute sign as base.
20147 (maybe_warn): New function.
20148 (format_directive): Factor out warnings into maybe_warn.
20149 Add debugging output. Use warn_level.
20150 (add_bytes): Use warn_level.
20151 (pass_sprintf_length::compute_format_length): Add debugging output.
20152 (try_substitute_return_value): Same.
20153 (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
20154
20155 PR middle-end/78703
20156 * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
20157 (struct fmtresult, format_integer, format_floating): Adjust.
20158 (fmtresult::fmtresult): Set max correctly in two argument ctor.
20159 (get_string_length, format_string,format_directive): Same.
20160 (pass_sprintf_length::compute_format_length): Same.
20161 (try_substitute_return_value): Simplify slightly.
20162
20163 PR middle-end/78703
20164 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
20165 (fmtresult::operator+=): Outlined.
20166 (struct fmtresult): Add ctors.
20167 (struct conversion_spec): Rename...
20168 (struct directive): ...to this. Add and remove data members.
20169 (directive::set_width, directive::set_precision): New functions.
20170 (format_percent): Use fmtresult ctor.
20171 (get_width_and_precision): Remove.
20172 (format_integer): Make naming changes. Avoid computing width and
20173 precision.
20174 (format_floating): Same. Adjust indentation.
20175 (format_character, format_none): New functions.
20176 (format_string): Moved character handling to format_character.
20177 (format_directive): Remove arguments, change return type.
20178 (parse_directive): New function.
20179 (pass_sprintf_length::compute_format_length): Move directive
20180 parsing to parse_directive.
20181
20182 2017-01-23 Jakub Jelinek <jakub@redhat.com>
20183
20184 * tree.h (assign_assembler_name_if_neeeded): Rename to ...
20185 (assign_assembler_name_if_needed): ... this.
20186 * tree.c (assign_assembler_name_if_neeeded): Rename to ...
20187 (assign_assembler_name_if_needed): ... this.
20188 (free_lang_data_in_cgraph): Adjust callers.
20189 * cgraphunit.c (cgraph_node::analyze): Likewise.
20190 * omp-expand.c (expand_omp_taskreg, expand_omp_target):
20191 Likewise.
20192
20193 2017-01-23 Richard Biener <rguenther@suse.de>
20194
20195 PR tree-optimization/79088
20196 PR tree-optimization/79188
20197 * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
20198 resetting loop bounds after last path deletion. Reset loop
20199 bounds of the target loop, make code match the comments.
20200 * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
20201 Make sure loops need no fixups.
20202
20203 2017-01-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
20204
20205 * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
20206 exponent support with double type for first argument.
20207 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
20208 type returned by __builtin_vec_extract_sig,
20209 __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
20210 functions from "vector int" to "vector unsigned int" or from
20211 "vector long long int" to "vector unsigned long long int".
20212 Changed type returned by __builtin_vec_extract_exp,
20213 __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
20214 functions from "vector int" to "vector unsigned int" or from
20215 "vector long long int" to "vector unsigned long long int".
20216 Changed return type of __builtin_vec_test_data_class,
20217 __builtin_vec_test_data_class_sp, and
20218 __builtin_vec_test_data_class_dp from "vector int" to
20219 "vector bool int" or from "vector long long int" to "vector bool
20220 long long int" and changed second argument type from "unsigned
20221 int" to "int". Added new overloaded function forms "vector float
20222 __builtin_vec_insert_exp (vector float, vector unsigned int)" and
20223 "vector float __builtin_vec_insert_exp_sp (vector float, vector
20224 unsigned int)" and "vector double __builtin_vec_insert_exp (vector
20225 double, vector unsigned long long int)" and "vector double
20226 __builtin_vec_insert_exp_dp (vector double, vector unsigned long
20227 long int)". Changed return type of
20228 __builtin_scalar_test_data_class and
20229 __builtin_scalar_test_data_class_sp and
20230 __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
20231 int" and changed second argument from "unsigned int" to "int".
20232 Changed type returned by __builtin_scalar_test_neg,
20233 __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
20234 from "int" to "bool int". Added new overloaded function form
20235 "double __builtin_scalar_insert_exp (double, unsigned long long int)".
20236 * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
20237 exponent double-precision with floating point first argument.
20238 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
20239 documentation of scalar_test_data_class, scalar_test_neg,
20240 scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
20241 vector_extract_exp, vec_extract_sig, vec_insert_exp, and
20242 vec_test_data_class built-in functions to reflect refinements in
20243 their type signatures.
20244
20245 2017-01-23 Andreas Tobler <andreast@gcc.gnu.org>
20246
20247 * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
20248 size of buf.
20249 (aarch64_elf_asm_destructor): Likewise.
20250
20251 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
20252
20253 PR rtl-optimization/78634
20254 * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
20255 (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
20256 * ifcvt.c (noce_try_cmove): Add missing cost check.
20257
20258 PR rtl-optimization/71724
20259 * combine.c (if_then_else_cond): Look for situations where it is
20260 beneficial to undo the work of one of the recursive calls.
20261
20262 2017-01-23 Bin Cheng <bin.cheng@arm.com>
20263
20264 PR tree-optimization/70754
20265 * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
20266 (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE. Insert
20267 combined stmt before it if not NULL.
20268 (combine_chains): Process refs reversely and compute dominance point
20269 for root ref.
20270
20271 2017-01-23 Martin Liska <mliska@suse.cz>
20272
20273 PR tree-optimization/79196
20274 * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
20275 (fold_strstr_to_strncmp): ... this. Fold the pattern to strncmp
20276 instead of memcmp.
20277 (strlen_optimize_stmt): Call the renamed function.
20278
20279 2017-01-23 Michael Matz <matz@suse.de>
20280
20281 PR tree-optimization/78384
20282 * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
20283
20284 2017-01-23 Richard Biener <rguenther@suse.de>
20285
20286 PR tree-optimization/79186
20287 * tree-vrp.c (register_new_assert_for): Make sure we've seen
20288 both incoming edges before moving an assert.
20289
20290 2017-01-23 Martin Jambor <mjambor@suse.cz>
20291
20292 * ipa-prop.c (load_from_param_1): Removed.
20293 (load_from_unmodified_param): Bits from load_from_param_1 put back
20294 here.
20295 (load_from_param): Removed.
20296 (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
20297 with stmt. Reverted back to use of load_from_unmodified_param.
20298
20299 2017-01-23 Martin Jambor <mjambor@suse.cz>
20300
20301 PR ipa/79108
20302 * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
20303 (ipa_node_params): Annotate with GTY((for_user)). Make descriptors
20304 field a pointer to garbage collected vector, mark lattices and
20305 ipcp_orig_node with GTY((skip)).
20306 (ipa_get_param_count): Adjust to descriptors being a pointer.
20307 (ipa_get_param): Likewise.
20308 (ipa_get_type): Likewise.
20309 (ipa_get_param_move_cost): Likewise.
20310 (ipa_set_param_used): Likewise.
20311 (ipa_get_controlled_uses): Likewise.
20312 (ipa_set_controlled_uses): Likewise.
20313 (ipa_is_param_used): Likewise.
20314 (ipa_node_params_t): Move into garbage collector. New methods insert
20315 and remove.
20316 (ipa_node_params_sum): Annotate wth GTY(()).
20317 (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
20318 garbage collected.
20319 (ipa_load_from_parm_agg): Adjust declaration.
20320 * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
20321 * ipa-profile.c (ipa_profile): Likewise.
20322 * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
20323 (ipa_populate_param_decls): Make descriptors parameter garbage
20324 collected.
20325 (ipa_dump_param): Adjust to descriptors being a pointer.
20326 (ipa_alloc_node_params): Likewise.
20327 (ipa_initialize_node_params): Likewise.
20328 (load_from_param_1): Make descriptors parameter garbage collected.
20329 (load_from_unmodified_param): Likewise.
20330 (load_from_param): Likewise.
20331 (ipa_load_from_parm_agg): Likewise.
20332 (ipa_node_params::~ipa_node_params): Removed.
20333 (ipa_free_all_node_params): Remove call to delete operator.
20334 (ipa_node_params_t::insert): New.
20335 (ipa_node_params_t::remove): Likewise.
20336 (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
20337 copy known_csts and known_contexts vectors.
20338 (ipa_read_node_info): Adjust to descriptors being a pointer.
20339 (ipcp_modif_dom_walker): Make m_descriptors field garbage
20340 collected.
20341 (ipcp_transform_function): Make descriptors variable garbage
20342 collected.
20343
20344 2017-01-23 Andrew Senkevich <andrew.senkevich@intel.com>
20345
20346 * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
20347 * config/i386/avx512dqintrin.h: Ditto.
20348 * config/i386/avx512fintrin.h: Ditto.
20349 * config/i386/i386.c: Handle new builtins.
20350 * config/i386/i386-builtin.def: Add new builtins.
20351 * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
20352 (UNSPEC_KORTEST, UNSPEC_KTEST): New.
20353
20354 2017-01-23 Jakub Jelinek <jakub@redhat.com>
20355 Martin Liska <mliska@suse.cz>
20356
20357 * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
20358 * asan.c (asan_expand_poison_ifn): Support stores and use
20359 appropriate ASAN report function.
20360 * internal-fn.c (expand_ASAN_POISON_USE): New function.
20361 * internal-fn.def (ASAN_POISON_USE): Declare.
20362 * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
20363 (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
20364 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
20365 ASAN_POISON calls w/o LHS.
20366 * tree-ssa.c (execute_update_addresses_taken): Create clobber
20367 for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
20368 from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
20369 * gimplify.c (asan_poison_variables): Add attribute
20370 use_after_scope_memory to variables that really needs to live
20371 in memory.
20372 * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
20373 having the attribute.
20374
20375 2017-01-23 Martin Liska <mliska@suse.cz>
20376
20377 * asan.c (create_asan_shadow_var): New function.
20378 (asan_expand_poison_ifn): Likewise.
20379 * asan.h (asan_expand_poison_ifn): New declaration.
20380 * internal-fn.c (expand_ASAN_POISON): Likewise.
20381 * internal-fn.def (ASAN_POISON): New builtin.
20382 * sanopt.c (pass_sanopt::execute): Expand
20383 asan_expand_poison_ifn.
20384 * tree-inline.c (copy_decl_for_dup_finish): Make function
20385 external.
20386 * tree-inline.h (copy_decl_for_dup_finish): Likewise.
20387 * tree-ssa.c (is_asan_mark_p): New function.
20388 (execute_update_addresses_taken): Rewrite local variables
20389 (identified just by use-after-scope as addressable) into SSA.
20390
20391 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
20392
20393 * doc/install.texi (Specific): opensource.apple.com uses https
20394 now. Remove trailing slash.
20395
20396 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
20397
20398 * README.Portability: Remove note on an Irix compatibility issue.
20399
20400 2017-01-22 Dimitry Andric <dim@FreeBSD.org>
20401
20402 * gcov.c (INCLUDE_ALGORITHM): Define.
20403 (INCLUDE_VECTOR): Define.
20404 No longer include <vector> and <algorithm> directly.
20405
20406 2017-01-21 Gerald Pfeifer <gerald@pfeifer.com>
20407
20408 * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
20409 to https.
20410 * doc/invoke.texi (Code Gen Options): Ditto.
20411
20412 2017-01-21 Jan Hubicka <hubicka@ucw.cz>
20413
20414 PR lto/78407
20415 * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
20416
20417 2017-01-21 Bernd Schmidt <bschmidt@redhat.com>
20418
20419 rtl-optimization/79125
20420 * cprop.c (local_cprop_pass): Handle cases where we make an
20421 unconditional trap.
20422
20423 2017-01-20 Segher Boessenkool <segher@kernel.crashing.org>
20424
20425 PR target/61729
20426 PR target/77850
20427 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
20428 read from, for big endian.
20429
20430 2017-01-20 Jiong Wang <jiong.wang@arm.com>
20431
20432 * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
20433 register pauth builtins for LP64 only.
20434
20435 2017-01-20 Marek Polacek <polacek@redhat.com>
20436
20437 PR c/79152
20438 * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
20439 non-case labels.
20440
20441 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
20442
20443 * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
20444 of safelen status.
20445 * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
20446 * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
20447 * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
20448
20449 2017-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20450
20451 PR target/71270
20452 * config/arm/arm.c (neon_valid_immediate): Reject vector constants
20453 in big-endian mode when they are not a single duplicated value.
20454
20455 2017-01-20 Richard Biener <rguenther@suse.de>
20456
20457 * BASE-VER: Bump to 7.0.1.
20458
20459 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
20460
20461 * omp-low.c (omplow_simd_context): New struct. Use it...
20462 (lower_rec_simd_input_clauses): ...here and...
20463 (lower_rec_input_clauses): ...here to hold common data. Adjust all
20464 references to idx, lane, max_vf, is_simt.
20465
20466 2017-01-20 Graham Markall <graham.markall@embecosm.com>
20467
20468 * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
20469 mcpu=nps400.
20470
20471 2017-01-20 Martin Jambor <mjambor@suse.cz>
20472
20473 * hsa.h: Renaed to hsa-common.h. Adjusted a comment.
20474 * hsa.c: Renaed to hsa-common.c. Change include of gt-hsa.h to
20475 gt-hsa-common.h.
20476 * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
20477 (GTFILES): Rename hsa.c to hsa-common.c.
20478 * hsa-brig.c: Change include of hsa.h to hsa-common.h.
20479 * hsa-dump.c: Likewise.
20480 * hsa-gen.c: Likewise.
20481 * hsa-regalloc.c: Likewise.
20482 * ipa-hsa.c: Likewise.
20483 * omp-expand.c: Likewise.
20484 * omp-low.c: Likewise.
20485 * toplev.c: Likewise.
20486
20487 2017-01-20 Marek Polacek <polacek@redhat.com>
20488
20489 PR c/64279
20490 * doc/invoke.texi: Document -Wduplicated-branches.
20491 * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
20492 COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
20493 POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
20494 STATEMENT_LIST, and RETURN_EXPR. For non-pure non-const functions
20495 return 0 only when not OEP_LEXICOGRAPHIC.
20496 (fold_build_cleanup_point_expr): Use the expression
20497 location when building CLEANUP_POINT_EXPR.
20498 * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
20499 * tree.c (add_expr): Handle error_mark_node.
20500
20501 2017-01-20 Martin Liska <mliska@suse.cz>
20502
20503 PR lto/69188
20504 * tree-profile.c (init_ic_make_global_vars): Do not call
20505 finalize_decl.
20506 (gimple_init_gcov_profiler): Likewise.
20507
20508 2017-01-20 Martin Liska <mliska@suse.cz>
20509
20510 PR ipa/71190
20511 * cgraph.h (maybe_create_reference): Remove argument and
20512 update comment.
20513 * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
20514 argument.
20515 * ipa-cp.c (create_specialized_node): Likewise.
20516 * symtab.c (symtab_node::maybe_create_reference): Handle
20517 VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
20518
20519 2017-01-20 Martin Liska <mliska@suse.cz>
20520
20521 * read-rtl-function.c (function_reader::create_function): Use
20522 build_decl instread of build_decl_stat.
20523
20524 2017-01-20 Andrew Senkevich <andrew.senkevich@intel.com>
20525
20526 * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
20527 * config/i386/avx512dqintrin.h: Ditto.
20528 * config/i386/avx512fintrin.h: Ditto.
20529 * config/i386/i386-builtin-types.def: Add new types.
20530 * config/i386/i386.c: Handle new types.
20531 * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
20532 (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
20533 (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
20534 (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
20535 (__builtin_ia32_kshiftridi): New.
20536 * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
20537
20538 2017-01-19 Segher Boessenkool <segher@kernel.crashing.org>
20539
20540 PR target/78875
20541 PR target/79140
20542 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
20543 define to rs6000_init_stack_protect_guard.
20544 (rs6000_init_stack_protect_guard): New function.
20545
20546 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
20547 Yunqiang Su <yunqiang.su@imgtec.com>
20548
20549 * config.gcc (supported_defaults): Add madd4.
20550 (with_madd4): Add validation.
20551 (all_defaults): Add madd4.
20552 * config/mips/mips.opt (mmadd4): New option.
20553 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
20554 mmadd4.
20555 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
20556 __mips_no_madd4.
20557 (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
20558 (ISA_HAS_FUSED_MADD4): Likewise.
20559 * doc/invoke.texi (-mmadd4): Document the new option.
20560 * doc/install.texi (--with-madd4): Document the new option.
20561
20562 2017-01-19 Jiong Wang <jiong.wang@arm.com>
20563
20564 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
20565 entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
20566 AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
20567 (aarch64_init_pauth_hint_builtins): New.
20568 (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
20569 (aarch64_expand_builtin): Expand new builtins.
20570
20571 2017-01-19 Jiong Wang <jiong.wang@arm.com>
20572
20573 * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
20574 * combine-stack-adj.c (no_unhandled_cfa): Handle
20575 REG_CFA_TOGGLE_RA_MANGLE.
20576 * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
20577 * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
20578 info for return address signing.
20579 (aarch64_expand_epilogue): Likewise.
20580
20581 2017-01-19 Jiong Wang <jiong.wang@arm.com>
20582
20583 * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
20584 * config/aarch64/aarch64-protos.h
20585 (aarch64_return_address_signing_enabled): New declaration.
20586 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
20587 New function.
20588 (aarch64_expand_prologue): Sign return address before it's pushed onto
20589 stack.
20590 (aarch64_expand_epilogue): Authenticate return address fetched from
20591 stack.
20592 (aarch64_override_options): Sanity check for ILP32 and ISA level.
20593 (aarch64_attributes): New function attributes for "sign-return-address".
20594 * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
20595 UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
20596 ("*do_return"): Generate combined instructions according to key index.
20597 ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
20598 * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
20599 iterators.
20600 (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
20601 * config/aarch64/aarch64.opt (msign-return-address=): New.
20602 * doc/extend.texi (AArch64 Function Attributes): Documents
20603 "sign-return-address=".
20604 * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
20605
20606 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
20607
20608 * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
20609 overall option summary.
20610
20611 2017-01-19 Jiong Wang <jiong.wang@arm.com>
20612
20613 * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
20614 * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
20615 AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
20616 * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
20617
20618 2017-01-19 Michael Meissner <meissner@linux.vnet.ibm.com>
20619
20620 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
20621 -mpower9-minmax by default for -mcpu=power9.
20622 (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
20623 128-bit floating point.
20624
20625 2017-01-20 Alan Modra <amodra@gmail.com>
20626
20627 * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
20628 optimizing for size.
20629
20630 2017-01-20 Alan Modra <amodra@gmail.com>
20631
20632 PR target/79144
20633 * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
20634 for strcmp and strncmp from corresponding builtin decl.
20635
20636 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
20637
20638 * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
20639 instead of i386/rtems-64.h.
20640 * config/i386/rtems-64.h: Remove.
20641
20642 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
20643
20644 PR target/78478
20645 Revert:
20646 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
20647
20648 * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
20649
20650 2017-01-19 Tamar Christina <tamar.christina@arm.com>
20651
20652 * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
20653 Change int to HOST_WIDE_INT.
20654 * config/aarch64/aarch64-protos.h
20655 (aarch64_simd_gen_const_vector_dup): Likewise.
20656 * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
20657
20658 2017-01-19 David Malcolm <dmalcolm@redhat.com>
20659
20660 * langhooks-def.h (lhd_type_for_size): New decl.
20661 (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
20662 * langhooks.c (lhd_type_for_size): New function, taken from
20663 lto_type_for_size.
20664
20665 2017-01-19 Pat Haugen <pthaugen@us.ibm.com>
20666
20667 * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
20668 define_bypass for CR latency.
20669 (power9-cracked-alu): Update bypass latency and remove power9-branch.
20670 (power9-alu2): Add define_bypass for CR latency.
20671 (power9-cmp): New.
20672 (power9-mul): Update insn latency.
20673 (power9-mul-compare): Update insn latency, bypass latency and remove
20674 power9-branch.
20675
20676 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20677
20678 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
20679 Delete.
20680 * config/aarch64/aarch64.md
20681 (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
20682 aarch64_nopcrelative_literal_loads.
20683 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
20684
20685 2017-01-19 Chenghua Xu <paul.hua.gm@gmail.com>
20686
20687 * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
20688 TARGET_LOONGSON_3A.
20689 (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
20690
20691 2017-01-19 Doug Gilmore <doug.gilmore@imgtec.com>
20692
20693 PR target/78176
20694 * config.gcc (supported_defaults): Add lxc1-sxc1.
20695 (with_lxc1_sxc1): Add validation.
20696 (all_defaults): Add lxc1-sxc1.
20697 * config/mips/mips.opt (mlxc1-sxc1): New option.
20698 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
20699 mlxc1-sxc1.
20700 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
20701 __mips_no_lxc1_sxc1.
20702 (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
20703 * doc/invoke.texi (-mlxc1-sxc1): Document the new option.
20704 * doc/install.texi (--with-lxc1-sxc1): Document the new option.
20705
20706 2017-01-19 Richard Biener <rguenther@suse.de>
20707
20708 PR tree-optimization/72488
20709 * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
20710 sure to restore SSA info.
20711 * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
20712
20713 2017-01-19 Richard Earnshaw <rearnsha@arm.com>
20714
20715 PR rtl-optimization/79121
20716 * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
20717 of the inner type when shifting an extended value.
20718
20719 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
20720
20721 PR lto/78407
20722 * symtab.c (symtab_node::equal_address_to): Fix comparing of
20723 interposable aliases.
20724
20725 2017-01-18 Peter Bergner <bergner@vnet.ibm.com>
20726
20727 PR target/78516
20728 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
20729 Use the evmergelohi instruction.
20730 (mov_si<mode>_e500_subreg4_2_le): Likewise.
20731 (mov_sitf_e500_subreg8_2_be): Likewise.
20732 (mov_sitf_e500_subreg12_2_le): Likewise.
20733 (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
20734 (mov_si<mode>_e500_subreg4_2_be): Likewise.
20735 (mov_sitf_e500_subreg8_2_le): Likewise.
20736 (mov_sitf_e500_subreg12_2_be): Likewise.
20737
20738 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20739
20740 * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
20741 attribute from vecsimple to vecperm.
20742 (altivec_vbpermq2): Likewise.
20743
20744 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20745
20746 PR target/79040
20747 * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
20748
20749 2017-01-18 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
20750 * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
20751 * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
20752 strcmp. Fix bug where comparison didn't stop with zero byte. Fix
20753 case where N arg is SIZE_MAX.
20754 * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
20755 (cmpstrsi): Add pattern.
20756
20757 2017-01-18 Michael Meissner <meissner@linux.vnet.ibm.com>
20758
20759 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20760 __builtin_vec_revb builtins.
20761 * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
20762 built-in functions to support generation of the ISA 3.0 XXBR<x>
20763 vector byte reverse instructions.
20764 (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
20765 (P9V_BUILTIN_XXBRD_V2DI): Likewise.
20766 (P9V_BUILTIN_XXBRD_V2DF): Likewise.
20767 (P9V_BUILTIN_XXBGW_V4SI): Likewise.
20768 (P9V_BUILTIN_XXBGW_V4SF): Likewise.
20769 (P9V_BUILTIN_XXBGH_V8HI): Likewise.
20770 (P9V_BUILTIN_VEC_REVB): Likewise.
20771 * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
20772 generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
20773 (p9_xxbrq_v16qi): Likewise.
20774 (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
20775 (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
20776 (p9_xxbrh_v8hi): Likewise.
20777 * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
20778 * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
20779 vec_revb built-in functions.
20780
20781 2017-01-18 Uros Bizjak <ubizjak@gmail.com>
20782
20783 PR rtl-optimization/78952
20784 * config/i386/i386.md (any_extract): New code iterator.
20785 (*insvqi_2): Use any_extract for source operand.
20786 (*insvqi_3): Use any_shiftrt for source operand.
20787
20788 2017-01-18 Wilco Dijkstra <wdijkstr@arm.com>
20789
20790 * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
20791 New function.
20792 (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
20793
20794 2017-01-18 Matthias Klose <doko@ubuntu.com>
20795
20796 * doc/install.texi: Allow default for --with-target-bdw-gc-include.
20797
20798 2016-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20799
20800 * config/rs6000/altivec.h (vec_bperm): Change #define.
20801 * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
20802 (altivec_vbpermq2): New define_insn.
20803 (altivec_vbpermd): Likewise.
20804 * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
20805 function interface.
20806 (VBPERMD): Likewise.
20807 (VBPERM): New polymorphic function interface.
20808 * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
20809 Add entries for P9V_BUILTIN_VEC_VBPERM.
20810 * doc/extend.texi: Add interfaces for vec_bperm.
20811
20812 2017-01-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20813
20814 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
20815 first letter of error messages.
20816 (s390_resolve_overloaded_builtin): Likewise.
20817 * config/s390/s390.c (s390_expand_builtin): Likewise.
20818 (s390_invalid_arg_for_unprototyped_fn): Likewise.
20819 (s390_valid_target_attribute_inner_p): Likewise.
20820 * config/s390/s390.md ("tabort"): Likewise.
20821
20822 2017-01-18 Toma Tabacu <toma.tabacu@imgtec.com>
20823
20824 * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
20825 (ISA_AVOID_DIV_HILO): New macro.
20826 (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
20827 (ISA_HAS_DDIV): Likewise.
20828
20829 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
20830
20831 * doc/invoke.texi (fabi-version): Correct number of occurrences.
20832
20833 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
20834
20835 * doc/invoke.texi (fabi-version): Spelling fix.
20836
20837 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
20838
20839 PR c++/70182
20840 * doc/invoke.texi (fabi-version): Mention mangling fix for
20841 operator names.
20842
20843 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
20844
20845 PR c++/77489
20846 * doc/invoke.texi (fabi-version): Document discriminator mangling.
20847
20848 2017-01-17 Segher Boessenkool <segher@kernel.crashing.org>
20849
20850 PR target/78875
20851 * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
20852 * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
20853 the new options.
20854 * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
20855 flexible settings.
20856 (stack_protect_test): Ditto.
20857 * config/rs6000/rs6000.opt (mstack-protector-guard=,
20858 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
20859 options.
20860 * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
20861 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
20862 -mstack-protector-guard-offset=.
20863 (RS/6000 and PowerPC Options): Ditto.
20864
20865 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
20866
20867 * config/i386/i386.h (MASK_CLASS_P): New define.
20868 * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
20869 there are no registers from different register sets also when
20870 mask registers are used. Update function comment.
20871 * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
20872 to (*k/*r) and (*k/*km) alternatives.
20873
20874 2017-01-17 Wilco Dijkstra <wdijkstr@arm.com>
20875
20876 * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
20877 * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
20878 (EH_RETURN_HANDLER_RTX): New define.
20879 * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
20880 Force frame pointer in EH return functions.
20881 (aarch64_expand_epilogue): Add barrier for eh_return.
20882 (aarch64_final_eh_return_addr): Remove.
20883 (aarch64_eh_return_handler_rtx): New function.
20884 * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
20885 Remove.
20886 (aarch64_eh_return_handler_rtx): New prototype.
20887
20888 2017-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20889
20890 * config/rs6000/altivec.h (vec_rlmi): New #define.
20891 (vec_vrlnm): Likewise.
20892 (vec_rlnm): Likewise.
20893 * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
20894 (UNSPEC_VRLNM): Likewise.
20895 (VIlong): New mode iterator.
20896 (altivec_vrl<VI_char>mi): New define_insn.
20897 (altivec_vrl<VI_char>nm): Likewise.
20898 * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
20899 function entry.
20900 (VRLDNM): Likewise.
20901 (RLNM): New polymorphic function entry.
20902 (VRLWMI): New monomorphic function entry.
20903 (VRLDMI): Likewise.
20904 (RLMI): New polymorphic function entry.
20905 * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
20906 new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
20907 * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
20908 vec_vrlnm.
20909
20910 2017-01-17 Jakub Jelinek <jakub@redhat.com>
20911
20912 PR debug/78839
20913 * dwarf2out.c (field_byte_offset): Restore the
20914 PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
20915 and DECL_FIELD_BIT_OFFSET. Use fold_build2 instead of build2 + fold.
20916 (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
20917 of build2 + fold.
20918
20919 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
20920
20921 PR ada/67205
20922 * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
20923
20924 2017-01-17 Jakub Jelinek <jakub@redhat.com>
20925
20926 PR debug/71669
20927 * dwarf2out.c (add_data_member_location_attribute): For constant
20928 offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
20929 instead of DW_AT_data_member_location, DW_AT_bit_offset and
20930 DW_AT_byte_size attributes.
20931
20932 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
20933
20934 * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
20935 after forcing to constant memory when the code model is medium.
20936
20937 2017-01-17 Julia Koval <julia.koval@intel.com>
20938
20939 PR target/76731
20940 * config/i386/avx512fintrin.h
20941 (_mm512_i32gather_ps): Change __addr type to void const*.
20942 (_mm512_mask_i32gather_ps): Ditto.
20943 (_mm512_i32gather_pd): Ditto.
20944 (_mm512_mask_i32gather_pd): Ditto.
20945 (_mm512_i64gather_ps): Ditto.
20946 (_mm512_mask_i64gather_ps): Ditto.
20947 (_mm512_i64gather_pd): Ditto.
20948 (_mm512_mask_i64gather_pd): Ditto.
20949 (_mm512_i32gather_epi32): Ditto.
20950 (_mm512_mask_i32gather_epi32): Ditto.
20951 (_mm512_i32gather_epi64): Ditto.
20952 (_mm512_mask_i32gather_epi64): Ditto.
20953 (_mm512_i64gather_epi32): Ditto.
20954 (_mm512_mask_i64gather_epi32): Ditto.
20955 (_mm512_i64gather_epi64): Ditto.
20956 (_mm512_mask_i64gather_epi64): Ditto.
20957 (_mm512_i32scatter_ps): Change __addr type to void*.
20958 (_mm512_mask_i32scatter_ps): Ditto.
20959 (_mm512_i32scatter_pd): Ditto.
20960 (_mm512_mask_i32scatter_pd): Ditto.
20961 (_mm512_i64scatter_ps): Ditto.
20962 (_mm512_mask_i64scatter_ps): Ditto.
20963 (_mm512_i64scatter_pd): Ditto.
20964 (_mm512_mask_i64scatter_pd): Ditto.
20965 (_mm512_i32scatter_epi32): Ditto.
20966 (_mm512_mask_i32scatter_epi32): Ditto.
20967 (_mm512_i32scatter_epi64): Ditto.
20968 (_mm512_mask_i32scatter_epi64): Ditto.
20969 (_mm512_i64scatter_epi32): Ditto.
20970 (_mm512_mask_i64scatter_epi32): Ditto.
20971 (_mm512_i64scatter_epi64): Ditto.
20972 (_mm512_mask_i64scatter_epi64): Ditto.
20973 * config/i386/avx512pfintrin.h
20974 (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
20975 (_mm512_mask_prefetch_i32gather_ps): Ditto.
20976 (_mm512_mask_prefetch_i64gather_pd): Ditto.
20977 (_mm512_mask_prefetch_i64gather_ps): Ditto.
20978 (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
20979 (_mm512_prefetch_i32scatter_ps): Ditto.
20980 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
20981 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
20982 (_mm512_prefetch_i64scatter_pd): Ditto.
20983 (_mm512_prefetch_i64scatter_ps): Ditto.
20984 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
20985 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
20986 * config/i386/avx512vlintrin.h
20987 (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
20988 (_mm_mmask_i32gather_ps): Ditto.
20989 (_mm256_mmask_i32gather_pd): Ditto.
20990 (_mm_mmask_i32gather_pd): Ditto.
20991 (_mm256_mmask_i64gather_ps): Ditto.
20992 (_mm_mmask_i64gather_ps): Ditto.
20993 (_mm256_mmask_i64gather_pd): Ditto.
20994 (_mm_mmask_i64gather_pd): Ditto.
20995 (_mm256_mmask_i32gather_epi32): Ditto.
20996 (_mm_mmask_i32gather_epi32): Ditto.
20997 (_mm256_mmask_i32gather_epi64): Ditto.
20998 (_mm_mmask_i32gather_epi64): Ditto.
20999 (_mm256_mmask_i64gather_epi32): Ditto.
21000 (_mm_mmask_i64gather_epi32): Ditto.
21001 (_mm256_mmask_i64gather_epi64): Ditto.
21002 (_mm_mmask_i64gather_epi64): Ditto.
21003 (_mm256_i32scatter_ps): Change __addr type to void*.
21004 (_mm256_mask_i32scatter_ps): Ditto.
21005 (_mm_i32scatter_ps): Ditto.
21006 (_mm_mask_i32scatter_ps): Ditto.
21007 (_mm256_i32scatter_pd): Ditto.
21008 (_mm256_mask_i32scatter_pd): Ditto.
21009 (_mm_i32scatter_pd): Ditto.
21010 (_mm_mask_i32scatter_pd): Ditto.
21011 (_mm256_i64scatter_ps): Ditto.
21012 (_mm256_mask_i64scatter_ps): Ditto.
21013 (_mm_i64scatter_ps): Ditto.
21014 (_mm_mask_i64scatter_ps): Ditto.
21015 (_mm256_i64scatter_pd): Ditto.
21016 (_mm256_mask_i64scatter_pd): Ditto.
21017 (_mm_i64scatter_pd): Ditto.
21018 (_mm_mask_i64scatter_pd): Ditto.
21019 (_mm256_i32scatter_epi32): Ditto.
21020 (_mm256_mask_i32scatter_epi32): Ditto.
21021 (_mm_i32scatter_epi32): Ditto.
21022 (_mm_mask_i32scatter_epi32): Ditto.
21023 (_mm256_i32scatter_epi64): Ditto.
21024 (_mm256_mask_i32scatter_epi64): Ditto.
21025 (_mm_i32scatter_epi64): Ditto.
21026 (_mm_mask_i32scatter_epi64): Ditto.
21027 (_mm256_i64scatter_epi32): Ditto.
21028 (_mm256_mask_i64scatter_epi32): Ditto.
21029 (_mm_i64scatter_epi32): Ditto.
21030 (_mm_mask_i64scatter_epi32): Ditto.
21031 (_mm256_i64scatter_epi64): Ditto.
21032 (_mm256_mask_i64scatter_epi64): Ditto.
21033 (_mm_i64scatter_epi64): Ditto.
21034 (_mm_mask_i64scatter_epi64): Ditto.
21035 * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
21036 (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
21037 (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
21038 (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
21039 (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
21040 (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
21041 (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
21042 (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
21043 (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
21044 (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
21045 (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
21046 (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
21047 (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
21048 (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
21049 (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
21050 (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
21051 (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
21052 (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
21053 (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
21054 (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
21055 (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
21056 (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
21057 (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
21058 (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
21059 (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
21060 (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
21061 (VOID_QI_V8DI_PCINT_INT_INT): Remove.
21062 (V16SF_V16SF_PCVOID_V16SI_HI_INT, V8DF_V8DF_PCVOID_V8SI_QI_INT)
21063 (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
21064 (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
21065 (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
21066 (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
21067 (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
21068 (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
21069 (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
21070 (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
21071 (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
21072 (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
21073 (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
21074 (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
21075 (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
21076 (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
21077 (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
21078 (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
21079 (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
21080 (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
21081 (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
21082 (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
21083 (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
21084 (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
21085 (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
21086 (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
21087 (VOID_QI_V8DI_PCVOID_INT_INT): Add.
21088 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
21089 definitions accordingly.
21090
21091 2017-01-17 Kito Cheng <kito.cheng@gmail.com>
21092 Kuan-Lin Chen <kuanlinchentw@gmail.com>
21093
21094 PR target/79079
21095 * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
21096 gen_lowpart.
21097
21098 2017-01-17 Vladimir Makarov <vmakarov@redhat.com>
21099
21100 PR target/79058
21101 * ira-conflicts.c (ira_build_conflicts): Update total conflict
21102 hard regs for inner regno.
21103
21104 2017-01-17 Martin Liska <mliska@suse.cz>
21105
21106 PR ipa/71207
21107 * ipa-polymorphic-call.c (contains_type_p): Fix wrong
21108 assumption and add comment.
21109
21110 2017-01-17 Nathan Sidwell <nathan@acm.org>
21111
21112 * ipa-visibility.c (localize_node): New function, broken out of ...
21113 (function_and_variable_visibility): ... here. Call it.
21114
21115 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
21116
21117 PR middle-end/77445
21118 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
21119 correctly set frequency of oudgoing edge.
21120 (duplicate_thread_path): Fix profile updating.
21121
21122 2017-01-17 Jakub Jelinek <jakub@redhat.com>
21123
21124 PR other/79046
21125 * configure.ac: Add GCC_BASE_VER.
21126 * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
21127 version from BASE-VER file.
21128 (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
21129 (gcc.o): Depend on $(BASEVER).
21130 * common.opt (dumpfullversion): New option.
21131 * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
21132 * doc/invoke.texi: Document -dumpfullversion.
21133 * doc/install.texi: Document --with-gcc-major-version-only.
21134 * configure: Regenerated.
21135
21136 2017-01-17 Richard Biener <rguenther@suse.de>
21137
21138 PR tree-optimization/71433
21139 * tree-vrp.c (register_new_assert_for): Merge same asserts
21140 on all incoming edges.
21141 (process_assert_insertions_for): Handle insertions at the
21142 beginning of BBs.
21143
21144 2017-01-17 Gerald Pfeifer <gerald@pfeifer.com>
21145
21146 * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
21147 * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
21148
21149 2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
21150
21151 PR target/78633
21152 * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
21153 RTL sharing.
21154
21155 2017-01-17 Alan Modra <amodra@gmail.com>
21156
21157 PR target/79066
21158 * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
21159 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
21160 symbolic stack limit when pic.
21161
21162 2017-01-16 Martin Sebor <msebor@redhat.com>
21163
21164 PR tree-optimization/78608
21165 * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
21166
21167 2017-01-16 Jeff Law <law@redhat.com>
21168
21169 Revert:
21170 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
21171 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
21172 for several include directories that may be relative to sysroot.
21173 * config/i386/x-mingw32 (gplus_includedir): Define.
21174 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
21175 (native_system_includedir): Likewise.
21176 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
21177 override if TARGET_SYSTEM_ROOT is defined.
21178 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
21179
21180 PR tree-optimization/79090
21181 PR tree-optimization/33562
21182 PR tree-optimization/61912
21183 PR tree-optimization/77485
21184 * tree-ssa-dse.c (compute_trims): Accept STMT argument. Dump STMT
21185 and computed trims into the dump file.
21186
21187 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
21188
21189 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
21190
21191 2017-01-16 Jakub Jelinek <jakub@redhat.com>
21192
21193 PR c/79089
21194 * gimplify.c (gimplify_init_constructor): If want_value and
21195 object == lhs, unshare lhs to avoid invalid tree sharing. Formatting
21196 fix.
21197
21198 PR target/79080
21199 * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
21200 sequence. Formatting fixes.
21201 (doloop_optimize): Formatting fixes.
21202
21203 PR driver/49726
21204 * gcc.c (debug_level_greater_than_spec_func): New function.
21205 (static_spec_functions): Add debug-level-gt spec function.
21206 (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
21207 !g0.
21208 * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
21209 * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
21210 * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
21211 gpubnames, ggnu-pubnames, gno-record-gcc-switches,
21212 grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
21213 gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
21214
21215 2017-01-16 Uros Bizjak <ubizjak@gmail.com>
21216
21217 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
21218 QImode fixups to general and mask registers only.
21219
21220 2017-01-16 Carl Love <cel@us.ibm.com>
21221
21222 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
21223 for built-in functions
21224 vector signed char vec_nabs (vector signed char)
21225 vector signed short vec_nabs (vector signed short)
21226 vector signed int vec_nabs (vector signed int)
21227 vector signed long long vec_nabs (vector signed long long)
21228 vector float vec_nabs (vector float)
21229 vector double vec_nabs (vector double)
21230 * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
21231 and NABS overload.
21232 * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
21233 * config/rs6000/altivec.h: New define for vec_nabs built-in function.
21234 * doc/extend.texi: Update the documentation file for the new built-in
21235 functions.
21236
21237 2017-01-16 Martin Sebor <msebor@redhat.com>
21238
21239 * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
21240 message.
21241
21242 2017-01-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21243
21244 * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
21245 UNSPEC_VSX__XXSPLTD to require special splat handling.
21246
21247 2017-01-16 David Malcolm <dmalcolm@redhat.com>
21248
21249 PR bootstrap/78616
21250 * system.h: Poison strndup.
21251
21252 2017-01-16 Alan Modra <amodra@gmail.com>
21253
21254 PR target/79098
21255 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
21256 use a switch.
21257
21258 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
21259
21260 * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
21261
21262 2017-01-15 Uros Bizjak <ubizjak@gmail.com>
21263
21264 * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
21265 call recog here. Assert that INSN_CODE (insn) is non-negative.
21266
21267 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
21268
21269 PR target/72749
21270 * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
21271 fallthrough.
21272 * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
21273 in the currently scheduled RTL fragment.
21274
21275 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
21276
21277 PR rtl-optimization/78751
21278 * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
21279 give up.
21280
21281 2017-01-14 Jeff Law <law@redhat.com>
21282
21283 PR tree-optimization/79090
21284 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
21285 variable length stores.
21286 (compute_trims): Delete dead assignment to *trim_tail.
21287 (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
21288 zero length.
21289
21290 2017-01-14 Bernd Schmidt <bschmidt@redhat.com>
21291
21292 PR rtl-optimization/78626
21293 PR rtl-optimization/78727
21294 * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
21295 of a block, and split such blocks after everything else is finished.
21296
21297 2017-01-14 Alan Modra <amodra@gmail.com>
21298
21299 PR target/72749
21300 * combine.c (recog_for_combine_1): Set INSN_CODE before calling
21301 target legitimate_combined_insn.
21302 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
21303 (rs6000_legitimate_combined_insn): New function.
21304 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
21305 all uses.
21306 (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
21307 (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
21308 (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
21309
21310 2017-01-14 Gerald Pfeifer <gerald@pfeifer.com>
21311
21312 * doc/frontends.texi (G++ and GCC): Remove references to Java.
21313
21314 2017-01-13 Jeff Law <law@redhat.com>
21315
21316 PR tree-optimization/33562
21317 PR tree-optimization/61912
21318 PR tree-optimization/77485
21319 * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
21320 a statement.
21321 (delete_dead_assignment): Likewise.
21322 (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
21323 statement to delete_dead_call and delete_dead_assignment.
21324
21325 2017-01-13 David Malcolm <dmalcolm@redhat.com>
21326
21327 PR c/78304
21328 * substring-locations.c (format_warning_va): Strengthen case 1 so
21329 that both endpoints of the substring must be within the format
21330 range for just the substring to be printed.
21331
21332 2017-01-13 Uros Bizjak <ubizjak@gmail.com>
21333
21334 * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
21335 * config/i386/i386.c (ix86_target_string): Add missing options
21336 to isa_opts and reorder options by implied ISAs. Rename isa_opts2 to
21337 isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
21338 flags_other and ix86_target_other to flags2_other. Display unknown
21339 isa2 options.
21340 (ix86_valid_target_attribute_inner_p): Add missing options and
21341 reorder options by implied ISAs, as in ix86_target_string.
21342
21343 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
21344
21345 * hash-table.h (hash_table::too_empty_p): New function.
21346 (hash_table::expand): Use it.
21347 (hash_table::traverse): Likewise.
21348 (hash_table::empty_slot): Use sizeof (value_type) instead of
21349 sizeof (PTR) to convert bytes to elements. Shrink the table
21350 if the current size is excessive for the current number of
21351 elements.
21352
21353 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
21354
21355 * ira-costs.c (record_reg_classes): Break from the inner loop
21356 early once alt_fail is known to be true. Update outer loop
21357 handling accordingly.
21358
21359 2017-01-13 Jeff Law <law@redhat.com>
21360
21361 * tree-ssa-dse.c (decrement_count): New function.
21362 (increment_start_addr, maybe_trim_memstar_call): Likewise.
21363 (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
21364 when we know the partially dead statement is a mem* function.
21365
21366 PR tree-optimization/61912
21367 PR tree-optimization/77485
21368 * tree-ssa-dse.c: Include expr.h.
21369 (maybe_trim_constructor_store): New function.
21370 (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
21371
21372 PR tree-optimization/33562
21373 PR tree-optimization/61912
21374 PR tree-optimization/77485
21375 * doc/invoke.texi: Document new dse-max-object-size param.
21376 * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
21377 * tree-ssa-dse.c: Include params.h.
21378 (dse_store_status): New enum.
21379 (initialize_ao_ref_for_dse): New, partially extracted from
21380 dse_optimize_stmt.
21381 (valid_ao_ref_for_dse, normalize_ref): New.
21382 (setup_live_bytes_from_ref, compute_trims): Likewise.
21383 (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
21384 (maybe_trim_partially_dead_store): Likewise.
21385 (maybe_trim_complex_store): Likewise.
21386 (dse_classify_store): Renamed from dse_possibly_dead_store_p.
21387 Track what bytes live from the original store. Return tri-state
21388 for dead, partially dead or live.
21389 (dse_dom_walker): Add constructor, destructor and new private members.
21390 (delete_dead_call, delete_dead_assignment): New extracted from
21391 dse_optimize_stmt.
21392 (dse_optimize_stmt): Make a member of dse_dom_walker.
21393 Use initialize_ao_ref_for_dse.
21394
21395 PR tree-optimization/33562
21396 PR tree-optimization/61912
21397 PR tree-optimization/77485
21398 * sbitmap.h (bitmap_count_bits): Prototype.
21399 (bitmap_clear_range, bitmap_set_range): Likewise.
21400 * sbitmap.c (bitmap_clear_range): New function.
21401 (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
21402
21403 2017-01-13 Martin Liska <mliska@suse.cz>
21404
21405 PR ipa/79043
21406 * function.c (set_cfun): Add new argument force.
21407 * function.h (set_cfun): Likewise.
21408 * ipa-inline-transform.c (inline_call): Use the function when
21409 strict alising from is dropped for function we inline to.
21410
21411 2017-01-13 Richard Biener <rguenther@suse.de>
21412
21413 * tree-pretty-print.c (dump_generic_node): Fix inverted condition
21414 for dumping GIMPLE INTEGER_CSTs.
21415
21416 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21417
21418 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
21419 to 201112L since C++17.
21420
21421 2017-01-13 Maxim Ostapenko <m.ostapenko@samsung.com>
21422
21423 PR sanitizer/78887
21424 * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
21425 if -fsanitize=kernel-address is present.
21426
21427 2017-01-13 Richard Biener <rguenther@suse.de>
21428
21429 * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
21430 as _Literal ( type ) number in case usual suffixes do not
21431 preserve all information.
21432
21433 2017-01-13 Richard Biener <rguenther@suse.de>
21434
21435 PR tree-optimization/77283
21436 * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
21437 and ssa-iterators.h.
21438 (is_feasible_trace): Implement a cost model based on joiner
21439 PHI node uses.
21440
21441 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21442
21443 PR target/79004
21444 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
21445 char or short to __float128/_Float128 directly.
21446
21447 2017-01-12 Martin Sebor <msebor@redhat.com>
21448
21449 to -Wformat-overflow.
21450 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
21451 (min_bytes_remaining): Same.
21452 (get_string_length): Same.
21453 (format_string): Same.
21454 (format_directive): Same.
21455 (add_bytes): Same.
21456 (pass_sprintf_length::handle_gimple_call): Same.
21457
21458 2017-01-12 Jakub Jelinek <jakub@redhat.com>
21459
21460 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
21461 info.nowrite calls with no lhs that can't throw. Return bool
21462 whether gsi_remove has been called or not.
21463 (pass_sprintf_length::handle_gimple_call): Return bool whether
21464 try_substitute_return_value called gsi_remove. Formatting fix.
21465 (pass_sprintf_length::execute): Don't use gsi_remove if
21466 handle_gimple_call returned true.
21467
21468 PR bootstrap/79069
21469 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
21470 be removed due to side-effects, don't remove following barrier nor
21471 turn the successor edge into fallthru edge.
21472
21473 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21474
21475 PR target/79044
21476 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
21477 element-reversing loads and stores as not swappable.
21478
21479 2017-01-12 Nathan Sidwell <nathan@acm.org>
21480 Nicolai Stange <nicstange@gmail.com>
21481
21482 * combine.c (try_combine): Don't ignore result of overlap checking
21483 loop. Combine overlap & asm check into single loop.
21484
21485 2017-01-12 Richard Biener <rguenther@suse.de>
21486
21487 * tree-pretty-print.c (dump_generic_node): Provide -gimple
21488 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
21489
21490 2017-01-12 Richard Biener <rguenther@suse.de>
21491
21492 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
21493 and TS_TARGET_OPTION directly derive from TS_BASE.
21494 * tree-core.h (tree_optimization_option): Derive from tree_base.
21495 (tree_target_option): Likewise.
21496
21497 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
21498
21499 * config/i386/i386.c (memory_address_length): Increase len
21500 only when rip_relative_addr_p returns false.
21501
21502 2017-01-11 Julia Koval <julia.koval@intel.com>
21503
21504 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
21505 (OPTION_MASK_ISA_SGX_SET): New.
21506 (ix86_handle_option): Handle OPT_msgx.
21507 * config.gcc: Added sgxintrin.h.
21508 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
21509 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
21510 * config/i386/i386.c (ix86_target_string): Add -msgx.
21511 (PTA_SGX): New.
21512 (ix86_option_override_internal): Handle new options.
21513 (ix86_valid_target_attribute_inner_p): Add sgx.
21514 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
21515 * config/i386/i386.opt: Add msgx.
21516 * config/i386/sgxintrin.h: New file.
21517 * config/i386/x86intrin.h: Add sgxintrin.h.
21518
21519 2017-01-11 Jakub Jelinek <jakub@redhat.com>
21520
21521 PR c++/71537
21522 * fold-const.c (maybe_nonzero_address): Return 1 for function
21523 local objects.
21524 (tree_single_nonzero_warnv_p): Don't handle function local objects
21525 here.
21526
21527 PR c++/72813
21528 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
21529 of c-header.
21530
21531 2017-01-11 David Malcolm <dmalcolm@redhat.com>
21532
21533 PR driver/78877
21534 * opts.c: Include "spellcheck.h"
21535 (struct string_fragment): New struct.
21536 (struct edit_distance_traits<const string_fragment &>): New
21537 struct.
21538 (get_closest_sanitizer_option): New function.
21539 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
21540
21541 2017-01-11 Jakub Jelinek <jakub@redhat.com>
21542
21543 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
21544 by 12.
21545 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
21546 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
21547 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
21548 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
21549 for initial die_offset if dwarf_split_debug_info.
21550 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
21551 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
21552 fields.
21553 (output_skeleton_debug_sections): Formatting fix. Use
21554 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
21555 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
21556
21557 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
21558
21559 * config/arm/cortex-a53.md: Add bypasses for
21560 cortex_a53_r2f_cvt.
21561 (cortex_a53_r2f): Only use for transfers.
21562 (cortex_a53_f2r): Likewise.
21563 (cortex_a53_r2f_cvt): Add reservation for conversions.
21564 (cortex_a53_f2r_cvt): Likewise.
21565
21566 2017-01-11 Tamar Christina <tamar.christina@arm.com>
21567
21568 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
21569 to all inlined functions, change static to extern.
21570
21571 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
21572
21573 PR target/78253
21574 * config/arm/arm.c (legitimize_pic_address): Handle reference to
21575 weak symbol.
21576 (arm_assemble_integer): Likewise.
21577
21578 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
21579
21580 * config.gcc: Use new awk script to check CPU, FPU and architecture
21581 parameters for --with-... options.
21582 * config/arm/parsecpu.awk: New file
21583 * config/arm/arm-cpus.in: New file.
21584 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
21585 files.
21586 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
21587 files.
21588 * config/arm/t-arm: Update dependency rules.
21589 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
21590 of processing .def files.
21591 * config/arm/genopt.sh: Deleted.
21592 * config/arm/gentune.sh: Deleted.
21593 * config/arm/arm-cores.def: Deleted.
21594 * config/arm/arm-arches.def: Deleted.
21595 * config/arm/arm-fpus.def: Deleted.
21596 * config/arm/arm-tune.md: Regenerated.
21597 * config/arm/arm-tables.opt: Regenerated.
21598 * config/arm/arm-cpu.h: New generated file.
21599 * config/arm/arm-cpu-data.h: New generated file.
21600 * config/arm/arm-cpu-cdata.h: New generated file.
21601
21602 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
21603
21604 PR lto/79042
21605 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
21606 bit.
21607 (input_varpool_node): Unpack dynamically_initialized bit.
21608
21609 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
21610
21611 PR rtl-optimization/79032
21612 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
21613 the alignment of the adjusted memory reference against that of MODE,
21614 instead of the alignment of the original memory reference.
21615
21616 2017-01-11 Martin Jambor <mjambor@suse.cz>
21617
21618 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
21619 test.
21620 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
21621 decorated functions.
21622
21623 2017-01-11 Richard Biener <rguenther@suse.de>
21624
21625 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
21626 set range/nonnull info for PHI results. Do not set it on
21627 stmts marked for removal.
21628
21629 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
21630
21631 * expr.c (store_field): In the bitfield case, fetch the return value
21632 from the registers before applying a single big-endian adjustment.
21633 Always do a final load for a BLKmode value not larger than a word.
21634
21635 2017-01-10 David Malcolm <dmalcolm@redhat.com>
21636
21637 PR c++/77949
21638 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
21639 that we correctly handle column numbers greater than
21640 LINE_MAP_MAX_COLUMN_NUMBER.
21641
21642 2017-01-10 Martin Sebor <msebor@redhat.com>
21643
21644 PR middle-end/78245
21645 * gimple-ssa-sprintf.c (get_destination_size): Call
21646 {init,fini}object_sizes.
21647 * tree-object-size.c (addr_object_size): Adjust.
21648 (pass_through_call): Adjust.
21649 (pass_object_sizes::execute): Adjust.
21650 * tree-object-size.h (fini_object_sizes): Declare.
21651
21652 2017-01-10 Martin Sebor <msebor@redhat.com>
21653
21654 PR tree-optimization/78775
21655 * builtins.c (get_size_range): Move...
21656 * calls.c: ...to here.
21657 (alloc_max_size): Accept zero argument.
21658 (operand_signed_p): Remove.
21659 (maybe_warn_alloc_args_overflow): Call get_size_range.
21660 * calls.h (get_size_range): Declare.
21661
21662 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
21663
21664 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
21665 from TI's devices.csv file as of September 2016.
21666 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
21667
21668 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
21669
21670 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
21671 * doc/invoke.texi: Likewise.
21672 * doc/md.texi: Likewise.
21673 * doc/objc.texi: Likewise.
21674
21675 2017-01-10 Joshua Conner <joshconner@google.com>
21676
21677 * config/arm/fuchsia-elf.h: New file.
21678 * config/fuchsia.h: New file.
21679 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
21680 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
21681 targets.
21682 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
21683
21684 2016-01-10 Richard Biener <rguenther@suse.de>
21685
21686 PR tree-optimization/79034
21687 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
21688 Propagate out degenerate PHIs in the joiner.
21689
21690 2017-01-10 Martin Liska <mliska@suse.cz>
21691
21692 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
21693 (sort_congruence_classes_by_decl_uid): Likewise.
21694 (sort_congruence_class_groups_by_decl_uid): Likewise.
21695 (sem_item_optimizer::merge_classes): Sort class, groups in these
21696 classes and members in the groups by DECL_UID of declarations.
21697 This would make merge operations stable.
21698
21699 2017-01-10 Martin Liska <mliska@suse.cz>
21700
21701 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
21702 usage of m_classes_vec.
21703 (sem_item_optimizer::~sem_item_optimizer): Likewise.
21704 (sem_item_optimizer::get_group_by_hash): Likewise.
21705 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
21706 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
21707 (sem_item_optimizer::verify_classes): Likewise.
21708 (sem_item_optimizer::process_cong_reduction): Likewise.
21709 (sem_item_optimizer::dump_cong_classes): Likewise.
21710 (sem_item_optimizer::merge_classes): Likewise.
21711 * ipa-icf.h (congruence_class_hash): Rename from
21712 congruence_class_group_hash. Remove declaration of m_classes_vec.
21713
21714 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
21715
21716 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
21717 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
21718 * config.gcc: Add avx512vpopcntdqintrin.h.
21719 * config/i386/avx512vpopcntdqintrin.h: New.
21720 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
21721 * config/i386/i386-builtin-types.def: Add new types.
21722 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
21723 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
21724 __builtin_ia32_vpopcountq_v8di_mask): New.
21725 * config/i386/i386-c.c (ix86_target_macros_internal): Define
21726 __AVX512VPOPCNTDQ__.
21727 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
21728 (PTA_AVX512VPOPCNTDQ): Define.
21729 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
21730 TARGET_AVX512VPOPCNTDQ_P): Define.
21731 * config/i386/i386.opt: Add mavx512vpopcntdq.
21732 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
21733 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
21734
21735 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
21736
21737 PR middle-end/77484
21738 * predict.def (PRED_CALL): Set to 67.
21739
21740 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
21741
21742 * expr.c (store_field): In the bitfield case, if the value comes from
21743 a function call and is of an aggregate type returned in registers, do
21744 not modify the field mode; extract the value in all cases if the mode
21745 is BLKmode and the size is not larger than a word.
21746
21747 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
21748
21749 PR target/71017
21750 * config/i386/cpuid.h: Fix undefined behavior.
21751
21752 2017-01-04 Jeff Law <law@redhat.com>
21753
21754 PR tree-optimization/79007
21755 PR tree-optimization/67955
21756 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
21757 conservative for pt.null when flag_non_call_exceptions is on.
21758
21759 2017-01-09 Jakub Jelinek <jakub@redhat.com>
21760
21761 PR translation/79019
21762 PR translation/79020
21763 * params.def (PARAM_INLINE_MIN_SPEEDUP,
21764 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
21765 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
21766 in descriptions.
21767 * config/avr/avr.opt (maccumulate-args): Likewise.
21768 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
21769 * common.opt (freport-bug): Likewise.
21770 * cif-code.def (CIF_FINAL_ERROR): Likewise.
21771 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
21772 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
21773 translatable string.
21774 * config/i386/i386.c (function_value_32): Likewise.
21775 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
21776 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
21777 Likewise.
21778 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
21779 * common/config/msp430/msp430-common.c (msp430_handle_option):
21780 Likewise.
21781 * symtab.c (symtab_node::verify_base): Likewise.
21782 * opts.c (set_debug_level): Likewise.
21783 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
21784 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
21785 missing whitespace to translatable strings.
21786 * config/avr/avr.md (bswapsi2): Fix typo in comment.
21787 * config/sh/superh.h: Likewise.
21788 * config/i386/xopintrin.h: Likewise.
21789 * config/i386/znver1.md: Likewise.
21790 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
21791 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
21792 * double-int.h (struct double_int): Likewise.
21793 * double-int.c (div_and_round_double): Likewise.
21794 * wide-int.cc: Likewise.
21795 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
21796 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
21797 * cfgcleanup.c (crossjumps_occured): Renamed to ...
21798 (crossjumps_occurred): ... this.
21799 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
21800 Adjust all uses.
21801
21802 PR tree-optimization/78899
21803 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
21804 returning bool return struct loop *, NULL for failure and the new
21805 loop on success.
21806 (versionable_outer_loop_p): Don't version outer loop if it has
21807 dont_vectorized bit set.
21808 (tree_if_conversion): When versioning outer loop, ensure
21809 tree_if_conversion is performed also on the inner loop of the
21810 non-vectorizable outer loop copy.
21811 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
21812 LOOP_VECTORIZED in inner loop of the scalar outer loop and
21813 prevent vectorization of it.
21814 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
21815 the outer loop vectorization of the non-scalar version is attempted
21816 before vectorization of the inner loop in scalar version. If
21817 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
21818 vectorization of its inner loop.
21819 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
21820 has 2 inner loops, rename also on edges from bb whose single pred
21821 is outer_loop->header. Fix typo in function comment.
21822
21823 2017-01-09 Martin Sebor <msebor@redhat.com>
21824
21825 PR bootstrap/79033
21826 * asan.c (asan_emit_stack_protection): Increase local buffer size
21827 to avoid snprintf truncation warning.
21828
21829 2017-01-09 Andrew Pinski <apinski@cavium.com>
21830
21831 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
21832 to reference thunderx2t99 for the tuning structure
21833 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
21834 Rename to ...
21835 (thunderx2t99_extra_costs): This.
21836 * config/aarch64/aarch64-tune.md: Regenerate.
21837 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
21838 (vulcan_addrcost_table): This.
21839 (vulcan_regmove_cost): Rename to ...
21840 (thunderx2t99_regmove_cost): This.
21841 (vulcan_vector_cost): Rename to ...
21842 (thunderx2t99_vector_cost): this.
21843 (vulcan_branch_cost): Rename to ...
21844 (thunderx2t99_branch_cost): This.
21845 (vulcan_tunings): Rename to ...
21846 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
21847 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
21848
21849 2017-01-09 Martin Jambor <mjambor@suse.cz>
21850
21851 PR ipa/78365
21852 PR ipa/78599
21853 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
21854 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
21855 (propagate_vr_accross_jump_function): Use the above function for all
21856 value range computations for pass-through jump functions and type
21857 converasion from explicit value range values.
21858 (ipcp_propagate_stage): Do not attempt to deduce types of formal
21859 parameters from TYPE_ARG_TYPES.
21860 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
21861 (ipa_write_node_info): Stream type of the actual argument.
21862 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
21863
21864 2017-01-09 Martin Liska <mliska@suse.cz>
21865
21866 PR pch/78970
21867 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
21868 (lookup_compiler): Do not show error message with have_E.
21869
21870 2017-01-09 Jakub Jelinek <jakub@redhat.com>
21871
21872 PR tree-optimization/78938
21873 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
21874 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
21875 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
21876 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
21877 fixes.
21878
21879 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21880
21881 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
21882 is const0_rtx.
21883
21884 2017-01-09 Richard Biener <rguenther@suse.de>
21885
21886 PR tree-optimization/78997
21887 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
21888 name condition properly.
21889
21890 2017-01-09 Richard Biener <rguenther@suse.de>
21891
21892 PR debug/79000
21893 * dwarf2out.c (is_cxx): New overload with context.
21894 (is_naming_typedef_decl): Use it.
21895
21896 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
21897
21898 * invoke.texi (Option Summary): Correct spacing in option lists
21899 and add line breaks to fix over-long lines.
21900
21901 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
21902
21903 PR middle-end/17660
21904
21905 * extend.texi (Common Variable Attributes): Add xref to GCC
21906 Internals manual to explain mode attribute keywords.
21907
21908 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
21909
21910 PR other/16519
21911 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
21912 and Preprocessor Options.
21913 (Options for Linking): Document -pthread here....
21914 (RS/6000 and PowerPC Options): ...not here.
21915 (Solaris 2 Options): ...or here.
21916 * doc/cppopts.texi: Document -pthread.
21917
21918 2017-01-08 Martin Sebor <msebor@redhat.com>
21919
21920 PR middle-end/77708
21921 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
21922 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
21923 New member functions.
21924 (format_directive): Used them.
21925 (add_bytes): Same.
21926 (pass_sprintf_length::handle_gimple_call): Same.
21927 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
21928 to avoid truncation for any argument.
21929 (extract_affine_mul): Same.
21930 * tree.c (get_file_function_name): Same.
21931
21932 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
21933
21934 PR middle-end/77484
21935 * predict.def (PRED_INDIR_CALL): Set to 86.
21936
21937 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
21938
21939 PR preprocessor/54124
21940 * doc/cppopts.texi: Reformat -d subtable to list the full name
21941 of the options. Add cross-reference to the docs for the general
21942 compiler -d options.
21943 * doc/invoke.texi (Developer Options): Add cross-reference to the
21944 preprocessor-specific -d option documentation.
21945
21946 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
21947
21948 PR preprocessor/13498
21949 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
21950 redudant material, and reflect new command-line options.
21951 (System Headers): Likewise.
21952
21953 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
21954
21955 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
21956 -isystem, and -idirafter. Copy-edit.
21957 * doc/cppopts.texi: Copy-edit. Remove contradiction about
21958 default for -ftrack-macro-expansion. Delete obsolete and
21959 badly-formatted implementation details about -fdebug-cpp output.
21960 * doc/cppwarnopts.texi: Copy-edit.
21961
21962 2017-01-07 David Malcolm <dmalcolm@redhat.com>
21963
21964 PR c++/72803
21965 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
21966 that the transition from a max line width >= 1<<10 to narrower
21967 lines works correctly.
21968
21969 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
21970
21971 * doc/options.texi (PerFunction): New.
21972 * opt-functions.awk (switch_flags): Map both Optimization and
21973 PerFunction to CL_OPTIMIZATION.
21974 * opth-gen.awk: Test for PerFunction flag along with
21975 Optimization.
21976 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
21977 it only when the latter is present. Skip those that don't in
21978 the hash function generator.
21979 * common.opt (fvar-tracking): Mark as PerFunction instead of
21980 Optimization.
21981 (fvar-tracking-assignments): Likewise.
21982 (fvar-tracking-assignments-toggle): Likewise.
21983 (fvar-tracking-uninit): Likewise.
21984
21985 2017-01-07 Jakub Jelinek <jakub@redhat.com>
21986
21987 PR translation/79018
21988 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
21989 the and store.
21990
21991 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
21992
21993 PR target/57583
21994 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
21995 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
21996 TARGET_LONG_JUMP_TABLE_OFFSETS.
21997 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
21998 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
21999 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
22000 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
22001 * config/m68k/m68k.md (tablejump expander): Likewise.
22002 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
22003 TARGET_LONG_JUMP_TABLE_OFFSETS.
22004 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
22005 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
22006
22007 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
22008 David Holsgrove <david.holsgrove@xilinx.com>
22009
22010 * common/config/microblaze/microblaze-common.c
22011 (TARGET_EXCEPT_UNWIND_INFO): Remove.
22012 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
22013 New prototype.
22014 * config/microblaze/microblaze.c (microblaze_must_save_register)
22015 (microblaze_expand_epilogue, microblaze_return_addr): Handle
22016 calls_eh_return.
22017 (microblaze_eh_return): New function.
22018 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
22019 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
22020 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
22021 * config/microblaze/microblaze.md (eh_return): New pattern.
22022
22023 2017-01-06 Jakub Jelinek <jakub@redhat.com>
22024
22025 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
22026 GCC_DIAGNOSTIC_STRINGIFY): Define.
22027
22028 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
22029
22030 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
22031
22032 * config/arm/arm.md (<mcrr>): New.
22033 (<mrrc>): New.
22034 * config/arm/arm.c (arm_arch5te): New.
22035 (arm_option_override): Set arm_arch5te.
22036 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
22037 and mrrc2.
22038 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
22039 (arm_mcrr_qualifiers): ... this. New.
22040 (MRRC_QUALIFIERS): Define to...
22041 (arm_mrrc_qualifiers): ... this. New.
22042 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
22043 __arm_mrrc2): New.
22044 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
22045 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
22046 (MRRCI, mrrc, MRRC): New.
22047 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
22048 VUNSPEC_MRRC2): New.
22049
22050 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
22051
22052 * config/arm/arm.md (<mcr>): New.
22053 (<mrc>): New.
22054 * config/arm/arm.c (arm_coproc_builtin_available): Add
22055 support for mcr, mrc, mcr2 and mrc2.
22056 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
22057 (arm_mcr_qualifiers): ... this. New.
22058 (MRC_QUALIFIERS): Define to ...
22059 (arm_mrc_qualifiers): ... this. New.
22060 (MCR_QUALIFIERS): Define to ...
22061 (arm_mcr_qualifiers): ... this. New.
22062 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
22063 __arm_mrc2): New.
22064 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
22065 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
22066 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
22067 VUNSPEC_MRC2): New.
22068
22069 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
22070
22071 * config/arm/arm.md (*ldc): New.
22072 (*stc): New.
22073 (<ldc>): New.
22074 (<stc>): New.
22075 * config/arm/arm.c (arm_coproc_builtin_available): Add
22076 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
22077 (arm_coproc_ldc_stc_legitimate_address): New.
22078 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
22079 'qualifier_const_pointer'.
22080 (LDC_QUALIFIERS): Define to...
22081 (arm_ldc_qualifiers): ... this. New.
22082 (STC_QUALIFIERS): Define to...
22083 (arm_stc_qualifiers): ... this. New.
22084 * config/arm/arm-protos.h
22085 (arm_coproc_ldc_stc_legitimate_address): New.
22086 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
22087 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
22088 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
22089 stc2, stcl, stc2l): New.
22090 * config/arm/constraints.md (Uz): New.
22091 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
22092 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
22093 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
22094 VUNSPEC_STC2L): New.
22095
22096 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
22097
22098 * config/arm/arm.md (<cdp>): New.
22099 * config/arm/arm.c (neon_const_bounds): Rename this ...
22100 (arm_const_bounds): ... this.
22101 (arm_coproc_builtin_available): New.
22102 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
22103 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
22104 (CDP_QUALIFIERS): Define to...
22105 (arm_cdp_qualifiers): ... this. New.
22106 (void_UP): Define.
22107 (arm_expand_builtin_args): Add case for 6 arguments.
22108 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
22109 (arm_const_bounds): ... this.
22110 (arm_coproc_builtin_available): New.
22111 * config/arm/arm_acle.h (__arm_cdp): New.
22112 (__arm_cdp2): New.
22113 * config/arm/arm_acle_builtins.def (cdp): New.
22114 (cdp2): New.
22115 * config/arm/iterators.md (CDPI,CDP,cdp): New.
22116 * config/arm/neon.md: Rename all 'neon_const_bounds' to
22117 'arm_const_bounds'.
22118 * config/arm/types.md (coproc): New.
22119 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
22120 * doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
22121 * doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
22122 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
22123
22124 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
22125
22126 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
22127 (UBINOP_QUALIFIERS): New.
22128 (si_UP): Define.
22129 (acle_builtin_data): New. Change comment.
22130 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
22131 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
22132 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
22133 arm_acle_builtins.def.
22134 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
22135 (arm_init_acle_builtins): New.
22136 (CRC32_BUILTIN): Remove.
22137 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
22138 crc32cb, crc32ch and crc32cw.
22139 (arm_init_crc32_builtins): Remove.
22140 (arm_init_builtins): Use arm_init_acle_builtins rather
22141 than arm_init_crc32_builtins.
22142 (arm_expand_acle_builtin): New.
22143 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
22144 * config/arm/arm_acle_builtins.def: New.
22145
22146 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
22147
22148 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
22149 (arm_builtin_datum): ... this.
22150 (arm_init_neon_builtin): Rename to ...
22151 (arm_init_builtin): ... this. Add a new parameters PREFIX
22152 and USE_SIG_IN_NAME.
22153 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
22154 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
22155 'arm_builtin_datum'.
22156 (arm_init_vfp_builtins): Likewise.
22157 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
22158 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
22159 (arm_expand_neon_args): Rename to ...
22160 (arm_expand_builtin_args): ... this. Rename builtin_arg
22161 enum values and differentiate between ARG_BUILTIN_MEMORY
22162 and ARG_BUILTIN_NEON_MEMORY.
22163 (arm_expand_neon_builtin_1): Rename to ...
22164 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
22165 values, arm_expand_builtin_args and add bool parameter NEON.
22166 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
22167 (arm_expand_vfp_builtin): Likewise.
22168 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
22169
22170 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
22171
22172 PR middle-end/77484
22173 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
22174 * predict.c (tree_estimate_probability_bb): Reverse direction of
22175 polymorphic call predictor.
22176
22177 2017-01-06 David Malcolm <dmalcolm@redhat.com>
22178
22179 * passes.c (execute_one_pass): Split out pass-skipping logic into...
22180 (determine_pass_name_match): ...this new function and...
22181 (should_skip_pass_p): ...this new function.
22182
22183 2017-01-06 Nathan Sidwell <nathan@acm.org>
22184
22185 * ipa-visibility.c (function_and_variable_visibility): Reformat
22186 comments and long lines. Remove extrneous if.
22187 * symtab.c (symtab_node::make_decl_local): Fix code format.
22188 (symtab_node::set_section_for_node): Fix comment typo.
22189
22190 2017-01-06 Martin Liska <mliska@suse.cz>
22191
22192 PR bootstrap/79003
22193 * lra-constraints.c: Rename invariant to lra_invariant.
22194 * predict.c (set_even_probabilities): Initialize e to NULL.
22195
22196 2017-01-05 Martin Sebor <msebor@redhat.com>
22197
22198 PR tree-optimization/78910
22199 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
22200 (format_integer): Correct off-by-one error in the handling
22201 of precision with negative numbers in signed conversions..
22202
22203 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
22204
22205 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
22206
22207 2017-01-05 Jakub Jelinek <jakub@redhat.com>
22208
22209 PR tree-optimization/71016
22210 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
22211 factor_out_conditional_conversion. Formatting fix.
22212 (factor_out_conditional_conversion): Add cond_stmt argument.
22213 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
22214 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
22215 Formatting fix.
22216
22217 2017-01-05 David Malcolm <dmalcolm@redhat.com>
22218
22219 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
22220 read-rtl-function.o, and selftest-rtl.o.
22221 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
22222 (selftest::aarch64_test_loading_full_dump): New function.
22223 (selftest::aarch64_run_selftests): New function.
22224 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
22225 selftest::aarch64_run_selftests.
22226 * config/i386/i386.c
22227 (selftest::ix86_test_loading_dump_fragment_1): New function.
22228 (selftest::ix86_test_loading_call_insn): New function.
22229 (selftest::ix86_test_loading_full_dump): New function.
22230 (selftest::ix86_test_loading_unspec): New function.
22231 (selftest::ix86_run_selftests): Call the new functions.
22232 * emit-rtl.c (maybe_set_max_label_num): New function.
22233 * emit-rtl.h (maybe_set_max_label_num): New decl.
22234 * function.c (instantiate_decls): Guard call to
22235 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
22236 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
22237 "static".
22238 * gensupport.c (gen_reader::gen_reader): Pass "false"
22239 for new "compact" param of rtx_reader.
22240 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
22241 rather than an empty string for NULL strings.
22242 * read-md.c: Potentially include config.h rather than bconfig.h.
22243 Wrap include of errors.h with #ifdef GENERATOR_FILE.
22244 (have_error): New global, copied from errors.c.
22245 (md_reader::read_name): Rename to...
22246 (md_reader::read_name_1): ...this, adding "out_loc" param,
22247 and converting "missing name or number" to returning false, rather
22248 than failing.
22249 (md_reader::read_name): Reimplement in terms of read_name_1.
22250 (md_reader::read_name_or_nil): New function.
22251 (md_reader::read_string): Handle "(nil)" by returning NULL.
22252 (md_reader::md_reader): Add new param "compact".
22253 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
22254 (md_reader::read_file): New method.
22255 * read-md.h (md_reader::md_reader): Add new param "compact".
22256 (md_reader::read_file): New method.
22257 (md_reader::is_compact): New accessor.
22258 (md_reader::read_name): Convert return type from void to file_location.
22259 (md_reader::read_name_or_nil): New decl.
22260 (md_reader::read_name_1): New decl.
22261 (md_reader::m_compact): New field.
22262 (noop_reader::noop_reader): Pass "false" for new "compact" param
22263 of rtx_reader.
22264 (rtx_reader::rtx_reader): Add new "compact" param.
22265 (rtx_reader::read_rtx_operand): Make virtual and convert return
22266 type from void to rtx.
22267 (rtx_reader::read_until): New decl.
22268 (rtx_reader::handle_any_trailing_information): New virtual function.
22269 (rtx_reader::postprocess): New virtual function.
22270 (rtx_reader::finalize_string): New virtual function.
22271 (rtx_reader::m_in_call_function_usage): New field.
22272 (rtx_reader::m_reuse_rtx_by_id): New field.
22273 * read-rtl-function.c: New file.
22274 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
22275 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
22276 (selftest::verify_three_block_rtl_cfg): New decl.
22277 * read-rtl-function.h: New file.
22278 * read-rtl.c: Potentially include config.h rather than bconfig.h.
22279 For host, include function.h, memmodel.h, and emit-rtl.h.
22280 (one_time_initialization): New function.
22281 (struct compact_insn_name): New struct.
22282 (compact_insn_names): New array.
22283 (find_code): Handle insn codes in compact dumps.
22284 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
22285 (bind_subst_iter_and_attr): Likewise.
22286 (add_condition_to_string): Likewise.
22287 (add_condition_to_rtx): Likewise.
22288 (apply_attribute_uses): Likewise.
22289 (add_current_iterators): Likewise.
22290 (apply_iterators): Likewise.
22291 (initialize_iterators): Guard usage of apply_subst_iterator with
22292 #ifdef GENERATOR_FILE.
22293 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
22294 (md_reader::read_mapping): Likewise.
22295 (add_define_attr_for_define_subst): Likewise.
22296 (add_define_subst_attr): Likewise.
22297 (read_subst_mapping): Likewise.
22298 (check_code_iterator): Likewise.
22299 (rtx_reader::read_rtx): Likewise. Move one-time initialization
22300 logic to...
22301 (one_time_initialization): New function.
22302 (rtx_reader::read_until): New method.
22303 (read_flags): New function.
22304 (parse_reg_note_name): New function.
22305 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
22306 Handle reuse_rtx ids.
22307 Wrap iterator lookup within #ifdef GENERATOR_FILE.
22308 Add parsing support for RTL dumps, mirroring the special-cases in
22309 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
22310 values, and calling handle_any_trailing_information.
22311 (rtx_reader::read_rtx_operand): Convert return type from void
22312 to rtx, returning return_rtx. Handle case 'e'. Call
22313 finalize_string on XSTR and XTMPL fields.
22314 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
22315 "(nil)" values were omitted. Call the postprocess vfunc on the
22316 return_rtx.
22317 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
22318 class ctor. Initialize m_in_call_function_usage. Call
22319 one_time_initialization.
22320 * rtl-tests.c (selftest::test_uncond_jump): Call
22321 set_new_first_and_last_insn.
22322 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
22323 * selftest-rtl.c: New file.
22324 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
22325 (selftest::get_insn_by_uid): New decl.
22326 * selftest-run-tests.c (selftest::run_tests): Call
22327 read_rtl_function_c_tests.
22328 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
22329 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
22330 dumps.
22331
22332 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
22333
22334 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
22335 operands in a special way. Assert that pos+len <= mode precision.
22336
22337 2017-01-05 Jakub Jelinek <jakub@redhat.com>
22338
22339 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
22340 3 argument Alias with unlimited for the negative form.
22341 (fno-vect-cost-model): Removed.
22342
22343 2017-01-05 Martin Liska <mliska@suse.cz>
22344
22345 * hsa-gen.c (gen_hsa_divmod): New function.
22346 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
22347
22348 2017-01-05 Martin Liska <mliska@suse.cz>
22349
22350 PR pch/78970
22351 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
22352 header.
22353
22354 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22355
22356 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
22357 small constant length operands.
22358
22359 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22360
22361 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
22362 between loop iterations.
22363
22364 2017-01-05 Martin Liska <mliska@suse.cz>
22365
22366 PR sanitizer/78815
22367 * gimplify.c (gimplify_decl_expr): Compare to
22368 asan_poisoned_variables instread of checking flags.
22369 (gimplify_target_expr): Likewise.
22370 (gimplify_expr): Likewise.
22371 (gimplify_function_tree): Conditionally initialize
22372 asan_poisoned_variables.
22373
22374 2017-01-04 Jeff Law <law@redhat.com>
22375
22376 PR tree-optimizatin/78812
22377 * rtl.h (contains_mem_rtx_p): Prototype.
22378 * ifcvt.c (containts_mem_rtx_p): Move from here to...
22379 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
22380 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
22381 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
22382 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
22383
22384 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
22385
22386 * input.c (assert_char_at_range): Default-initialize actual_range.
22387
22388 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
22389
22390 * df-scan.c (df_ref_create_structure): Make regno unsigned,
22391 to match the caller.
22392
22393 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
22394
22395 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
22396 insns after final jump in test to emit dummy move.
22397
22398 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
22399
22400 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
22401 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
22402
22403 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
22404
22405 * multiple_target.c (create_dispatcher_calls): Init e_next.
22406 * tree-ssa-loop-split.c (split_loop): Init border.
22407 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
22408 scalar_type.
22409
22410 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
22411
22412 PR target/71977
22413 PR target/70568
22414 PR target/78823
22415 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
22416 (altivec_register_operand): Do not return true if the operand
22417 contains a SUBREG mixing SImode and SFmode.
22418 (vsx_register_operand): Likewise.
22419 (vsx_reg_sfsubreg_ok): New predicate.
22420 (vfloat_operand): Do not return true if the operand contains a
22421 SUBREG mixing SImode and SFmode.
22422 (vint_operand): Likewise.
22423 (vlogical_operand): Likewise.
22424 (gpc_reg_operand): Likewise.
22425 (int_reg_operand): Likewise.
22426 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
22427 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
22428 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
22429 SImode and SFmode.
22430 (rs6000_emit_move_si_sf_subreg): New helper function.
22431 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
22432 fixup SUBREGs involving SImode and SFmode.
22433 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
22434 numbers for the new peephole2 optimization.
22435 (peephole2 for SFmode unions): New peephole2 to optimize cases in
22436 the GLIBC math library that do AND/IOR/XOR operations on single
22437 precision floating point.
22438 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
22439 target macros to say whether we need to avoid SUBREGs mixing
22440 SImode and SFmode.
22441 (TARGET_ALLOW_SF_SUBREG): Likewise.
22442 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
22443 (UNSPEC_SI_FROM_SF): Likewise.
22444 (iorxor): Change spacing.
22445 (and_ior_xor): New iterator for AND, IOR, and XOR.
22446 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
22447 (movdi_from_sf_zero_ext): Likewise.
22448 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
22449 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
22450 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
22451 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
22452 (fms<mode>4): Likewise.
22453 (fnma<mode>4): Likewise.
22454 (fnms<mode>4): Likewise.
22455 (nfma<mode>4): Likewise.
22456 (nfms<mode>4): Likewise.
22457
22458 2017-01-04 Marek Polacek <polacek@redhat.com>
22459
22460 PR c++/64767
22461 * doc/invoke.texi: Document -Wpointer-compare.
22462
22463 2017-01-04 Jakub Jelinek <jakub@redhat.com>
22464
22465 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
22466 RejectNegative.
22467
22468 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
22469 descriptions for -gdwarf-5 and emit them as uleb128 instead of
22470 2-byte data.
22471
22472 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
22473
22474 PR target/78056
22475 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
22476 documentation of the powerpc_popcntb_ok attribute.
22477 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
22478 code to issue warning messages if a requested CPU configuration is
22479 not supported by the binary (assembler and loader) toolchain.
22480 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
22481 made to define a built-in function that has been disabled.
22482 (paired_init_builtins): Add assertion to prevent ICE if attempt is
22483 made to define a built-in function that has been disabled.
22484 (altivec_init_builtins): Add comment explaining why definition
22485 of the DST built-in functions is not preceded by an assertion
22486 check. Add assertions to prevent ICE if attempts are made to
22487 define an altivec predicate or an abs* built-in function that has
22488 been disabled.
22489 (htm_init_builtins): Add comment explaining why definition of the
22490 htm built-in functions is not preceded by an assertion check.
22491
22492 2017-01-04 Jeff Law <law@redhat.com>
22493
22494 PR tree-optimizatin/67955
22495 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
22496 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
22497 the points-to solution does not include pt_null. Use DECL_PT_UID
22498 unconditionally.
22499
22500 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
22501
22502 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
22503 Use gen_int_mode instead of gen_lopwart for const_int operands.
22504
22505 2017-01-04 Jakub Jelinek <jakub@redhat.com>
22506
22507 PR tree-optimization/71563
22508 * match.pd: Simplify X << Y into X if Y is known to be 0 or
22509 out of range value - has low bits known to be zero.
22510
22511 2017-01-04 Alan Modra <amodra@gmail.com>
22512
22513 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
22514 * configure: Regenerate.
22515 * config.in: Regenerate.
22516
22517 2017-01-04 Jakub Jelinek <jakub@redhat.com>
22518
22519 PR bootstrap/77569
22520 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
22521 a substring of the message, but strcmp with the whole message. Ifdef
22522 ENABLE_NLS, translate the message first using dgettext.
22523
22524 2017-01-03 Jeff Law <law@redhat.com>
22525
22526 PR tree-optimizatin/78856
22527 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
22528 (mark_threaded_blocks): Remove code to truncate thread paths that
22529 cross multiple loop headers. Instead invalidate the cached loop
22530 iteration information and handle case of a thread path walking
22531 into an irreducible region.
22532
22533 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
22534
22535 PR target/78900
22536 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
22537 assertions. Add support for doing the signbit if the IEEE 128-bit
22538 floating point value is in a GPR.
22539 * config/rs6000/rs6000.md (Fsignbit): Delete.
22540 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
22541 Update the length attribute if the value is in a GPR.
22542 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
22543 the sign or zero extension instruction, since the value is always 0/1.
22544 (signbit<mode>2_dm2): Delete using <Fsignbit>.
22545
22546 PR target/78953
22547 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
22548 extracting SImode to a GPR register so that we can generate a
22549 store, limit the vector to be in a traditional Altivec register
22550 for the vextuwrx instruction.
22551
22552 2017-01-03 Ian Lance Taylor <iant@google.com>
22553
22554 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
22555
22556 2017-01-03 Martin Sebor <msebor@redhat.com>
22557
22558 PR tree-optimization/78696
22559 * gimple-ssa-sprintf.c (format_floating): Correct handling of
22560 precision. Use MPFR for %f for greater fidelity. Correct handling
22561 of %g.
22562 (pass_sprintf_length::compute_format_length): Set width and precision
22563 specified by asrerisk to void_node for vararg functions.
22564 (try_substitute_return_value): Adjust dump output.
22565
22566 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
22567
22568 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
22569
22570 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
22571
22572 * doc/invoke.texi (SPARC options): Document -mlra as the default.
22573 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
22574 -mlra/-mno-lra was passed to the compiler.
22575
22576 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
22577
22578 PR rtl-optimization/65618
22579 * emit-rtl.c (try_split): Move initialization of "before" and
22580 "after" to just before the call to emit_insn_after_setloc.
22581
22582 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
22583
22584 * doc/md.texi (Standard Names): Remove reference to Java frontend.
22585
22586 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
22587
22588 * dwarf2out.c (gen_enumeration_type_die): When
22589 -gno-strict-dwarf, add a DW_AT_encoding attribute.
22590
22591 2017-01-03 Jakub Jelinek <jakub@redhat.com>
22592
22593 PR tree-optimization/78965
22594 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
22595 Change first argument from const call_info & to call_info &. For %n
22596 set info.nowrite to false.
22597
22598 PR middle-end/78901
22599 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
22600 possibly throwing calls.
22601
22602 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
22603 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
22604 and fns handling, rather than in a separate case SSA_NAME.
22605
22606 2017-01-02 Jeff Law <law@redhat.com>
22607
22608 * config/darwin-driver.c (darwin_driver_init): Const-correctness
22609 fixes for first_period and second_period variables.
22610
22611 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
22612
22613 PR target/78967
22614 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
22615 (*insvqi_1): New insn pattern.
22616 (*insvqi_1_mem_rex64): Ditto.
22617 (*insvqi_2): Ditto.
22618 (*insvqi_3): Rename from *insvqi.
22619
22620 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
22621
22622 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
22623
22624 * doc/cfg.texi (Edges): Remove reference to Java.
22625 (Maintaining the CFG): Ditto.
22626
22627 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
22628
22629 PR middle-end/77674
22630 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
22631 transparent aliases.
22632
22633 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
22634
22635 PR middle-end/77484
22636 * predict.def (PRED_CALL): Update hitrate.
22637 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
22638 * predict.c (tree_estimate_probability_bb): Split CALL predictor
22639 into direct/indirect/polymorphic variants.
22640
22641 2017-01-01 Jakub Jelinek <jakub@redhat.com>
22642
22643 Update copyright years.
22644
22645 * gcc.c (process_command): Update copyright notice dates.
22646 * gcov-dump.c (print_version): Ditto.
22647 * gcov.c (print_version): Ditto.
22648 * gcov-tool.c (print_version): Ditto.
22649 * gengtype.c (create_file): Ditto.
22650 * doc/cpp.texi: Bump @copying's copyright year.
22651 * doc/cppinternals.texi: Ditto.
22652 * doc/gcc.texi: Ditto.
22653 * doc/gccint.texi: Ditto.
22654 * doc/gcov.texi: Ditto.
22655 * doc/install.texi: Ditto.
22656 * doc/invoke.texi: Ditto.
22657 \f
22658 Copyright (C) 2017 Free Software Foundation, Inc.
22659
22660 Copying and distribution of this file, with or without modification,
22661 are permitted in any medium without royalty provided the copyright
22662 notice and this notice are preserved.