[6/77] Make GET_MODE_WIDER return an opt_mode
[official-gcc.git] / gcc / ChangeLog
blob9d8c1f0d74db312b6ac7b6c2ffdf4a7f4f997ddc
1 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
2             Alan Hayward  <alan.hayward@arm.com>
3             David Sherwood  <david.sherwood@arm.com>
5         * coretypes.h (opt_mode): New class.
6         * machmode.h (opt_mode): Likewise.
7         (opt_mode::else_void): New function.
8         (opt_mode::require): Likewise.
9         (opt_mode::exists): Likewise.
10         (GET_MODE_WIDER_MODE): Turn into a function and return an opt_mode.
11         (GET_MODE_2XWIDER_MODE): Likewise.
12         (mode_iterator::get_wider): Update accordingly.
13         (mode_iterator::get_2xwider): Likewise.
14         (mode_iterator::get_known_wider): Likewise, turning into a template.
15         * combine.c (make_extraction): Update use of GET_MODE_WIDER_MODE,
16         forcing a wider mode to exist.
17         * config/cr16/cr16.h (LONG_REG_P): Likewise.
18         * rtlanal.c (init_num_sign_bit_copies_in_rep): Likewise.
19         * config/c6x/c6x.c (c6x_rtx_costs): Update use of
20         GET_MODE_2XWIDER_MODE, forcing a wider mode to exist.
21         * lower-subreg.c (init_lower_subreg): Likewise.
22         * optabs-libfuncs.c (init_sync_libfuncs_1): Likewise, but not
23         on the final iteration.
24         * config/i386/i386.c (ix86_expand_set_or_movmem): Check whether
25         a wider mode exists before asking for a move pattern.
26         (get_mode_wider_vector): Update use of GET_MODE_WIDER_MODE,
27         forcing a wider mode to exist.
28         (expand_vselect_vconcat): Update use of GET_MODE_2XWIDER_MODE,
29         returning false if no such mode exists.
30         * config/ia64/ia64.c (expand_vselect_vconcat): Likewise.
31         * config/mips/mips.c (mips_expand_vselect_vconcat): Likewise.
32         * expmed.c (init_expmed_one_mode): Update use of GET_MODE_WIDER_MODE.
33         Avoid checking for a MODE_INT if we already know the mode is not a
34         SCALAR_INT_MODE_P.
35         (extract_high_half): Update use of GET_MODE_WIDER_MODE,
36         forcing a wider mode to exist.
37         (expmed_mult_highpart_optab): Likewise.
38         (expmed_mult_highpart): Likewise.
39         * expr.c (expand_expr_real_2): Update use of GET_MODE_WIDER_MODE,
40         using else_void.
41         * lto-streamer-in.c (lto_input_mode_table): Likewise.
42         * optabs-query.c (find_widening_optab_handler_and_mode): Likewise.
43         * stor-layout.c (bit_field_mode_iterator::next_mode): Likewise.
44         * internal-fn.c (expand_mul_overflow): Update use of
45         GET_MODE_2XWIDER_MODE.
46         * omp-low.c (omp_clause_aligned_alignment): Likewise.
47         * tree-ssa-math-opts.c (convert_mult_to_widen): Update use of
48         GET_MODE_WIDER_MODE.
49         (convert_plusminus_to_widen): Likewise.
50         * tree-switch-conversion.c (array_value_type): Likewise.
51         * var-tracking.c (emit_note_insn_var_location): Likewise.
52         * tree-vrp.c (simplify_float_conversion_using_ranges): Likewise.
53         Return false inside rather than outside the loop if no wider mode
54         exists
55         * optabs.c (expand_binop): Update use of GET_MODE_WIDER_MODE
56         and GET_MODE_2XWIDER_MODE
57         (can_compare_p): Use else_void.
58         * gdbhooks.py (OptMachineModePrinter): New class.
59         (build_pretty_printer): Use it for opt_mode.
61 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
62             Alan Hayward  <alan.hayward@arm.com>
63             David Sherwood  <david.sherwood@arm.com>
65         * tree-switch-conversion.c (array_value_type): Only read TYPE_MODE
66         once.  Use get_narrowest_mode instead of GET_CLASS_NARROWEST_MODE.
68 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
69             Alan Hayward  <alan.hayward@arm.com>
70             David Sherwood  <david.sherwood@arm.com>
72         * machmode.h (mode_traits): New structure.
73         (get_narrowest_mode): New function.
74         (mode_iterator::start): Likewise.
75         (mode_iterator::iterate_p): Likewise.
76         (mode_iterator::get_wider): Likewise.
77         (mode_iterator::get_known_wider): Likewise.
78         (mode_iterator::get_2xwider): Likewise.
79         (FOR_EACH_MODE_IN_CLASS): New mode iterator.
80         (FOR_EACH_MODE): Likewise.
81         (FOR_EACH_MODE_FROM): Likewise.
82         (FOR_EACH_MODE_UNTIL): Likewise.
83         (FOR_EACH_WIDER_MODE): Likewise.
84         (FOR_EACH_2XWIDER_MODE): Likewise.
85         * builtins.c (expand_builtin_strlen): Use new mode iterators.
86         * combine.c (simplify_comparison): Likewise
87         * config/i386/i386.c (type_natural_mode): Likewise.
88         * cse.c (cse_insn): Likewise.
89         * dse.c (find_shift_sequence): Likewise.
90         * emit-rtl.c (init_derived_machine_modes): Likewise.
91         (init_emit_once): Likewise.
92         * explow.c (hard_function_value): Likewise.
93         * expmed.c (extract_fixed_bit_field_1): Likewise.
94         (extract_bit_field_1): Likewise.
95         (expand_divmod): Likewise.
96         (emit_store_flag_1): Likewise.
97         * expr.c (init_expr_target): Likewise.
98         (convert_move): Likewise.
99         (alignment_for_piecewise_move): Likewise.
100         (widest_int_mode_for_size): Likewise.
101         (emit_block_move_via_movmem): Likewise.
102         (copy_blkmode_to_reg): Likewise.
103         (set_storage_via_setmem): Likewise.
104         (compress_float_constant): Likewise.
105         * omp-low.c (omp_clause_aligned_alignment): Likewise.
106         * optabs-query.c (get_best_extraction_insn): Likewise.
107         * optabs.c (expand_binop): Likewise.
108         (expand_twoval_unop): Likewise.
109         (expand_twoval_binop): Likewise.
110         (widen_leading): Likewise.
111         (widen_bswap): Likewise.
112         (expand_parity): Likewise.
113         (expand_unop): Likewise.
114         (prepare_cmp_insn): Likewise.
115         (prepare_float_lib_cmp): Likewise.
116         (expand_float): Likewise.
117         (expand_fix): Likewise.
118         (expand_sfix_optab): Likewise.
119         * postreload.c (move2add_use_add2_insn): Likewise.
120         * reg-stack.c (reg_to_stack): Likewise.
121         * reginfo.c (choose_hard_reg_mode): Likewise.
122         * rtlanal.c (init_num_sign_bit_copies_in_rep): Likewise.
123         * stor-layout.c (mode_for_size): Likewise.
124         (smallest_mode_for_size): Likewise.
125         (mode_for_vector): Likewise.
126         (finish_bitfield_representative): Likewise.
127         * tree-ssa-math-opts.c (target_supports_divmod_p): Likewise.
128         * tree-vect-generic.c (type_for_widest_vector_mode): Likewise.
129         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
130         * var-tracking.c (prepare_call_arguments): Likewise.
132 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
133             Alan Hayward  <alan.hayward@arm.com>
134             David Sherwood  <david.sherwood@arm.com>
136         * genconditions.c (write_header): Add a "#define USE_ENUM_MODES".
137         * genmodes.c (emit_insn_modes_h): Define FOOmode to E_FOOmode if
138         USE_ENUM_MODES is defined and to ((void) 0, E_FOOmode) otherwise.
139         * machmode.h (mode_size): Move earlier in file.
140         (mode_precision): Likewise.
141         (mode_inner): Likewise.
142         (mode_nunits): Likewise.
143         (mode_unit_size): Likewise.
144         (unit_unit_precision): Likewise.
145         (mode_wider): Likewise.
146         (mode_2xwider): Likewise.
147         (machine_mode): New class.
148         (mode_to_bytes): New function.
149         (mode_to_bits): Likewise.
150         (mode_to_precision): Likewise.
151         (mode_to_inner): Likewise.
152         (mode_to_unit_size): Likewise.
153         (mode_to_unit_precision): Likewise.
154         (mode_to_nunits): Likewise.
155         (GET_MODE_SIZE): Use mode_to_bytes.
156         (GET_MODE_BITSIZE): Use mode_to_bits.
157         (GET_MODE_PRECISION): Use mode_to_precision.
158         (GET_MODE_INNER): Use mode_to_inner.
159         (GET_MODE_UNIT_SIZE): Use mode_to_unit_size.
160         (GET_MODE_UNIT_PRECISION): Use mode_to_unit_precision.
161         (GET_MODE_NUNITS): Use mode_to_nunits.
162         * system.h (ALWAYS_INLINE): New macro.
163         * config/powerpcspe/powerpcspe-c.c
164         (altivec_resolve_overloaded_builtin): Use machine_mode instead of
165         int for arg1_mode and arg2_mode.
167 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
168             Alan Hayward  <alan.hayward@arm.com>
169             David Sherwood  <david.sherwood@arm.com>
171         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_std_type):
172         Prefix mode names with E_ in case statements.
173         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
174         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Likewise.
175         (aarch64_split_simd_move): Likewise.
176         (aarch64_gen_storewb_pair): Likewise.
177         (aarch64_gen_loadwb_pair): Likewise.
178         (aarch64_gen_store_pair): Likewise.
179         (aarch64_gen_load_pair): Likewise.
180         (aarch64_get_condition_code_1): Likewise.
181         (aarch64_constant_pool_reload_icode): Likewise.
182         (get_rsqrte_type): Likewise.
183         (get_rsqrts_type): Likewise.
184         (get_recpe_type): Likewise.
185         (get_recps_type): Likewise.
186         (aarch64_gimplify_va_arg_expr): Likewise.
187         (aarch64_simd_container_mode): Likewise.
188         (aarch64_emit_load_exclusive): Likewise.
189         (aarch64_emit_store_exclusive): Likewise.
190         (aarch64_expand_compare_and_swap): Likewise.
191         (aarch64_gen_atomic_cas): Likewise.
192         (aarch64_emit_bic): Likewise.
193         (aarch64_emit_atomic_swap): Likewise.
194         (aarch64_emit_atomic_load_op): Likewise.
195         (aarch64_evpc_trn): Likewise.
196         (aarch64_evpc_uzp): Likewise.
197         (aarch64_evpc_zip): Likewise.
198         (aarch64_evpc_ext): Likewise.
199         (aarch64_evpc_rev): Likewise.
200         (aarch64_evpc_dup): Likewise.
201         (aarch64_gen_ccmp_first): Likewise.
202         (aarch64_gen_ccmp_next): Likewise.
203         * config/alpha/alpha.c (alpha_scalar_mode_supported_p): Likewise.
204         (alpha_emit_xfloating_libcall): Likewise.
205         (emit_insxl): Likewise.
206         (alpha_arg_type): Likewise.
207         * config/arc/arc.c (arc_vector_mode_supported_p): Likewise.
208         (arc_preferred_simd_mode): Likewise.
209         (arc_secondary_reload): Likewise.
210         (get_arc_condition_code): Likewise.
211         (arc_print_operand): Likewise.
212         (arc_legitimate_constant_p): Likewise.
213         * config/arc/arc.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
214         * config/arc/arc.md (casesi_load): Likewise.
215         (casesi_compact_jump): Likewise.
216         * config/arc/predicates.md (proper_comparison_operator): Likewise.
217         (cc_use_register): Likewise.
218         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
219         * config/arm/arm-builtins.c (arm_simd_builtin_std_type): Likewise.
220         (arm_init_iwmmxt_builtins): Likewise.
221         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
222         (neon_expand_vector_init): Likewise.
223         (arm_attr_length_move_neon): Likewise.
224         (maybe_get_arm_condition_code): Likewise.
225         (arm_emit_vector_const): Likewise.
226         (arm_preferred_simd_mode): Likewise.
227         (arm_output_iwmmxt_tinsr): Likewise.
228         (thumb1_output_casesi): Likewise.
229         (thumb2_output_casesi): Likewise.
230         (arm_emit_load_exclusive): Likewise.
231         (arm_emit_store_exclusive): Likewise.
232         (arm_expand_compare_and_swap): Likewise.
233         (arm_evpc_neon_vuzp): Likewise.
234         (arm_evpc_neon_vzip): Likewise.
235         (arm_evpc_neon_vrev): Likewise.
236         (arm_evpc_neon_vtrn): Likewise.
237         (arm_evpc_neon_vext): Likewise.
238         (arm_validize_comparison): Likewise.
239         * config/arm/neon.md (neon_vc<cmp_op><mode>): Likewise.
240         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
241         * config/avr/avr.c (avr_rtx_costs_1): Likewise.
242         * config/c6x/c6x.c (c6x_vector_mode_supported_p): Likewise.
243         (c6x_preferred_simd_mode): Likewise.
244         * config/epiphany/epiphany.c (get_epiphany_condition_code): Likewise.
245         (epiphany_rtx_costs): Likewise.
246         * config/epiphany/predicates.md (proper_comparison_operator):
247         Likewise.
248         * config/frv/frv.c (condexec_memory_operand): Likewise.
249         (frv_emit_move): Likewise.
250         (output_move_single): Likewise.
251         (output_condmove_single): Likewise.
252         (frv_hard_regno_mode_ok): Likewise.
253         (frv_matching_accg_mode): Likewise.
254         * config/h8300/h8300.c (split_adds_subs): Likewise.
255         (h8300_rtx_costs): Likewise.
256         (h8300_print_operand): Likewise.
257         (compute_mov_length): Likewise.
258         (output_logical_op): Likewise.
259         (compute_logical_op_length): Likewise.
260         (compute_logical_op_cc): Likewise.
261         (h8300_shift_needs_scratch_p): Likewise.
262         (output_a_shift): Likewise.
263         (compute_a_shift_length): Likewise.
264         (compute_a_shift_cc): Likewise.
265         (expand_a_rotate): Likewise.
266         (output_a_rotate): Likewise.
267         * config/i386/i386.c (classify_argument): Likewise.
268         (function_arg_advance_32): Likewise.
269         (function_arg_32): Likewise.
270         (function_arg_64): Likewise.
271         (function_value_64): Likewise.
272         (ix86_gimplify_va_arg): Likewise.
273         (ix86_legitimate_constant_p): Likewise.
274         (put_condition_code): Likewise.
275         (split_double_mode): Likewise.
276         (ix86_avx256_split_vector_move_misalign): Likewise.
277         (ix86_expand_vector_logical_operator): Likewise.
278         (ix86_split_idivmod): Likewise.
279         (ix86_expand_adjust_ufix_to_sfix_si): Likewise.
280         (ix86_build_const_vector): Likewise.
281         (ix86_build_signbit_mask): Likewise.
282         (ix86_match_ccmode): Likewise.
283         (ix86_cc_modes_compatible): Likewise.
284         (ix86_expand_branch): Likewise.
285         (ix86_expand_sse_cmp): Likewise.
286         (ix86_expand_sse_movcc): Likewise.
287         (ix86_expand_int_sse_cmp): Likewise.
288         (ix86_expand_vec_perm_vpermi2): Likewise.
289         (ix86_expand_vec_perm): Likewise.
290         (ix86_expand_sse_unpack): Likewise.
291         (ix86_expand_int_addcc): Likewise.
292         (ix86_split_to_parts): Likewise.
293         (ix86_vectorize_builtin_gather): Likewise.
294         (ix86_vectorize_builtin_scatter): Likewise.
295         (avx_vpermilp_parallel): Likewise.
296         (inline_memory_move_cost): Likewise.
297         (ix86_tieable_integer_mode_p): Likewise.
298         (x86_maybe_negate_const_int): Likewise.
299         (ix86_expand_vector_init_duplicate): Likewise.
300         (ix86_expand_vector_init_one_nonzero): Likewise.
301         (ix86_expand_vector_init_one_var): Likewise.
302         (ix86_expand_vector_init_concat): Likewise.
303         (ix86_expand_vector_init_interleave): Likewise.
304         (ix86_expand_vector_init_general): Likewise.
305         (ix86_expand_vector_set): Likewise.
306         (ix86_expand_vector_extract): Likewise.
307         (emit_reduc_half): Likewise.
308         (ix86_emit_i387_round): Likewise.
309         (ix86_mangle_type): Likewise.
310         (ix86_expand_round_sse4): Likewise.
311         (expand_vec_perm_blend): Likewise.
312         (canonicalize_vector_int_perm): Likewise.
313         (ix86_expand_vec_one_operand_perm_avx512): Likewise.
314         (expand_vec_perm_1): Likewise.
315         (expand_vec_perm_interleave3): Likewise.
316         (expand_vec_perm_even_odd_pack): Likewise.
317         (expand_vec_perm_even_odd_1): Likewise.
318         (expand_vec_perm_broadcast_1): Likewise.
319         (ix86_vectorize_vec_perm_const_ok): Likewise.
320         (ix86_expand_vecop_qihi): Likewise.
321         (ix86_expand_mul_widen_hilo): Likewise.
322         (ix86_expand_sse2_abs): Likewise.
323         (ix86_expand_pextr): Likewise.
324         (ix86_expand_pinsr): Likewise.
325         (ix86_preferred_simd_mode): Likewise.
326         (ix86_simd_clone_compute_vecsize_and_simdlen): Likewise.
327         * config/i386/sse.md (*andnot<mode>3): Likewise.
328         (<mask_codefor><code><mode>3<mask_name>): Likewise.
329         (*<code><mode>3): Likewise.
330         * config/ia64/ia64.c (ia64_expand_vecint_compare): Likewise.
331         (ia64_expand_atomic_op): Likewise.
332         (ia64_arg_type): Likewise.
333         (ia64_mode_to_int): Likewise.
334         (ia64_scalar_mode_supported_p): Likewise.
335         (ia64_vector_mode_supported_p): Likewise.
336         (expand_vec_perm_broadcast): Likewise.
337         * config/iq2000/iq2000.c (iq2000_move_1word): Likewise.
338         (iq2000_function_arg_advance): Likewise.
339         (iq2000_function_arg): Likewise.
340         * config/m32c/m32c.c (m32c_preferred_reload_class): Likewise.
341         * config/m68k/m68k.c (output_dbcc_and_branch): Likewise.
342         (m68k_libcall_value): Likewise.
343         (m68k_function_value): Likewise.
344         (sched_attr_op_type): Likewise.
345         * config/mcore/mcore.c (mcore_output_move): Likewise.
346         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
347         Likewise.
348         (microblaze_function_arg): Likewise.
349         * config/mips/mips.c (mips16_build_call_stub): Likewise.
350         (mips_print_operand): Likewise.
351         (mips_mode_ok_for_mov_fmt_p): Likewise.
352         (mips_vector_mode_supported_p): Likewise.
353         (mips_preferred_simd_mode): Likewise.
354         (mips_expand_vpc_loongson_even_odd): Likewise.
355         (mips_expand_vec_unpack): Likewise.
356         (mips_expand_vi_broadcast): Likewise.
357         (mips_expand_vector_init): Likewise.
358         (mips_expand_vec_reduc): Likewise.
359         (mips_expand_msa_cmp): Likewise.
360         * config/mips/mips.md (casesi_internal_mips16_<mode>): Likewise.
361         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
362         (cc_flags_for_mode): Likewise.
363         * config/msp430/msp430.c (msp430_print_operand): Likewise.
364         * config/nds32/nds32-md-auxiliary.c (nds32_mem_format): Likewise.
365         (nds32_output_casesi_pc_relative): Likewise.
366         * config/nds32/nds32.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
367         * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Likewise.
368         (nvptx_gen_unpack): Likewise.
369         (nvptx_gen_pack): Likewise.
370         (nvptx_gen_shuffle): Likewise.
371         (nvptx_gen_wcast): Likewise.
372         (nvptx_preferred_simd_mode): Likewise.
373         * config/pa/pa.c (pa_secondary_reload): Likewise.
374         * config/pa/predicates.md (base14_operand): Likewise.
375         * config/powerpcspe/powerpcspe-c.c
376         (altivec_resolve_overloaded_builtin): Likewise.
377         * config/powerpcspe/powerpcspe.c (rs6000_setup_reg_addr_masks):
378         Likewise.
379         (rs6000_preferred_simd_mode): Likewise.
380         (output_vec_const_move): Likewise.
381         (rs6000_expand_vector_extract): Likewise.
382         (rs6000_split_vec_extract_var): Likewise.
383         (reg_offset_addressing_ok_p): Likewise.
384         (rs6000_legitimate_offset_address_p): Likewise.
385         (rs6000_legitimize_address): Likewise.
386         (rs6000_emit_set_const): Likewise.
387         (rs6000_const_vec): Likewise.
388         (rs6000_emit_move): Likewise.
389         (spe_build_register_parallel): Likewise.
390         (rs6000_darwin64_record_arg_recurse): Likewise.
391         (swap_selector_for_mode): Likewise.
392         (spe_init_builtins): Likewise.
393         (paired_init_builtins): Likewise.
394         (altivec_init_builtins): Likewise.
395         (do_load_for_compare): Likewise.
396         (rs6000_generate_compare): Likewise.
397         (rs6000_expand_float128_convert): Likewise.
398         (emit_load_locked): Likewise.
399         (emit_store_conditional): Likewise.
400         (rs6000_output_function_epilogue): Likewise.
401         (rs6000_handle_altivec_attribute): Likewise.
402         (rs6000_function_value): Likewise.
403         (emit_fusion_gpr_load): Likewise.
404         (emit_fusion_p9_load): Likewise.
405         (emit_fusion_p9_store): Likewise.
406         * config/powerpcspe/predicates.md (easy_fp_constant): Likewise.
407         (fusion_gpr_mem_load): Likewise.
408         (fusion_addis_mem_combo_load): Likewise.
409         (fusion_addis_mem_combo_store): Likewise.
410         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
411         (fusion_gpr_mem_load): Likewise.
412         (fusion_addis_mem_combo_load): Likewise.
413         (fusion_addis_mem_combo_store): Likewise.
414         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
415         Likewise.
416         * config/rs6000/rs6000-string.c (do_load_for_compare): Likewise.
417         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Likewise.
418         (rs6000_preferred_simd_mode): Likewise.
419         (output_vec_const_move): Likewise.
420         (rs6000_expand_vector_extract): Likewise.
421         (rs6000_split_vec_extract_var): Likewise.
422         (reg_offset_addressing_ok_p): Likewise.
423         (rs6000_legitimate_offset_address_p): Likewise.
424         (rs6000_legitimize_address): Likewise.
425         (rs6000_emit_set_const): Likewise.
426         (rs6000_const_vec): Likewise.
427         (rs6000_emit_move): Likewise.
428         (rs6000_darwin64_record_arg_recurse): Likewise.
429         (swap_selector_for_mode): Likewise.
430         (paired_init_builtins): Likewise.
431         (altivec_init_builtins): Likewise.
432         (rs6000_expand_float128_convert): Likewise.
433         (emit_load_locked): Likewise.
434         (emit_store_conditional): Likewise.
435         (rs6000_output_function_epilogue): Likewise.
436         (rs6000_handle_altivec_attribute): Likewise.
437         (rs6000_function_value): Likewise.
438         (emit_fusion_gpr_load): Likewise.
439         (emit_fusion_p9_load): Likewise.
440         (emit_fusion_p9_store): Likewise.
441         * config/rx/rx.c (rx_gen_move_template): Likewise.
442         (flags_from_mode): Likewise.
443         * config/s390/predicates.md (s390_alc_comparison): Likewise.
444         (s390_slb_comparison): Likewise.
445         * config/s390/s390.c (s390_handle_vectorbool_attribute): Likewise.
446         (s390_vector_mode_supported_p): Likewise.
447         (s390_cc_modes_compatible): Likewise.
448         (s390_match_ccmode_set): Likewise.
449         (s390_canonicalize_comparison): Likewise.
450         (s390_emit_compare_and_swap): Likewise.
451         (s390_branch_condition_mask): Likewise.
452         (s390_rtx_costs): Likewise.
453         (s390_secondary_reload): Likewise.
454         (__SECONDARY_RELOAD_CASE): Likewise.
455         (s390_expand_cs): Likewise.
456         (s390_preferred_simd_mode): Likewise.
457         * config/s390/vx-builtins.md (vec_packsu_u<mode>): Likewise.
458         * config/sh/sh.c (sh_print_operand): Likewise.
459         (dump_table): Likewise.
460         (sh_secondary_reload): Likewise.
461         * config/sh/sh.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
462         * config/sh/sh.md (casesi_worker_1): Likewise.
463         (casesi_worker_2): Likewise.
464         * config/sparc/predicates.md (icc_comparison_operator): Likewise.
465         (fcc_comparison_operator): Likewise.
466         * config/sparc/sparc.c (sparc_expand_move): Likewise.
467         (emit_soft_tfmode_cvt): Likewise.
468         (sparc_preferred_simd_mode): Likewise.
469         (output_cbranch): Likewise.
470         (sparc_print_operand): Likewise.
471         (sparc_expand_vec_perm_bmask): Likewise.
472         (vector_init_bshuffle): Likewise.
473         * config/spu/spu.c (spu_scalar_mode_supported_p): Likewise.
474         (spu_vector_mode_supported_p): Likewise.
475         (spu_expand_insv): Likewise.
476         (spu_emit_branch_or_set): Likewise.
477         (spu_handle_vector_attribute): Likewise.
478         (spu_builtin_splats): Likewise.
479         (spu_builtin_extract): Likewise.
480         (spu_builtin_promote): Likewise.
481         (spu_expand_sign_extend): Likewise.
482         * config/tilegx/tilegx.c (tilegx_scalar_mode_supported_p): Likewise.
483         (tilegx_simd_int): Likewise.
484         * config/tilepro/tilepro.c (tilepro_scalar_mode_supported_p): Likewise.
485         (tilepro_simd_int): Likewise.
486         * config/v850/v850.c (const_double_split): Likewise.
487         (v850_print_operand): Likewise.
488         (ep_memory_offset): Likewise.
489         * config/vax/vax.c (vax_rtx_costs): Likewise.
490         (vax_output_int_move): Likewise.
491         (vax_output_int_add): Likewise.
492         (vax_output_int_subtract): Likewise.
493         * config/visium/predicates.md (visium_branch_operator): Likewise.
494         * config/visium/visium.c (rtx_ok_for_offset_p): Likewise.
495         (visium_print_operand_address): Likewise.
496         * config/visium/visium.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
497         * config/xtensa/xtensa.c (xtensa_mem_offset): Likewise.
498         (xtensa_expand_conditional_branch): Likewise.
499         (xtensa_copy_incoming_a7): Likewise.
500         (xtensa_output_literal): Likewise.
501         * dfp.c (decimal_real_maxval): Likewise.
502         * targhooks.c (default_libgcc_floating_mode_supported_p): Likewise.
504 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
505             Alan Hayward  <alan.hayward@arm.com>
506             David Sherwood  <david.sherwood@arm.com>
508         * genmodes.c (mode_size_inline): Add an E_ prefix to mode names.
509         (mode_nunits_inline): Likewise.
510         (mode_inner_inline): Likewise.
511         (mode_unit_size_inline): Likewise.
512         (mode_unit_precision_inline): Likewise.
513         (emit_insn_modes_h): Likewise.  Also emit a #define of the
514         unprefixed name.
515         (emit_mode_wider): Add an E_ prefix to mode names.
516         (emit_mode_complex): Likewise.
517         (emit_mode_inner): Likewise.
518         (emit_mode_adjustments): Likewise.
519         (emit_mode_int_n): Likewise.
520         * config/aarch64/aarch64-builtins.c (v8qi_UP, v4hi_UP, v4hf_UP)
521         (v2si_UP, v2sf_UP, v1df_UP, di_UP, df_UP, v16qi_UP, v8hi_UP, v8hf_UP)
522         (v4si_UP, v4sf_UP, v2di_UP, v2df_UP, ti_UP, oi_UP, ci_UP, xi_UP)
523         (si_UP, sf_UP, hi_UP, hf_UP, qi_UP): Likewise.
524         (CRC32_BUILTIN, ENTRY): Likewise.
525         * config/aarch64/aarch64.c (aarch64_push_regs): Likewise.
526         (aarch64_pop_regs): Likewise.
527         (aarch64_process_components): Likewise.
528         * config/alpha/alpha.c (alpha_emit_conditional_move): Likewise.
529         * config/arm/arm-builtins.c (v8qi_UP, v4hi_UP, v4hf_UP, v2si_UP)
530         (v2sf_UP, di_UP, v16qi_UP, v8hi_UP, v8hf_UP, v4si_UP, v4sf_UP)
531         (v2di_UP, ti_UP, ei_UP, oi_UP, hf_UP, si_UP, void_UP): Likewise.
532         * config/arm/arm.c (arm_init_libfuncs): Likewise.
533         * config/i386/i386-builtin-types.awk (ix86_builtin_type_vect_mode):
534         Likewise.
535         * config/i386/i386-builtin.def (pcmpestr): Likewise.
536         (pcmpistr): Likewise.
537         * config/microblaze/microblaze.c (double_memory_operand): Likewise.
538         * config/mmix/mmix.c (mmix_output_condition): Likewise.
539         * config/powerpcspe/powerpcspe.c (rs6000_init_hard_regno_mode_ok):
540         Likewise.
541         * config/rl78/rl78.c (mduc_regs): Likewise.
542         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
543         (htm_expand_builtin): Likewise.
544         * config/sh/sh.h (REGISTER_NATURAL_MODE): Likewise.
545         * config/sparc/sparc.c (emit_save_or_restore_regs): Likewise.
546         * config/xtensa/xtensa.c (print_operand): Likewise.
547         * expmed.h (NUM_MODE_PARTIAL_INT): Likewise.
548         (NUM_MODE_VECTOR_INT): Likewise.
549         * genoutput.c (null_operand): Likewise.
550         (output_operand_data): Likewise.
551         * genrecog.c (print_parameter_value): Likewise.
552         * lra.c (debug_operand_data): Likewise.
554 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
556         * dwarf2out.c (scompare_loc_descriptor_wide)
557         (scompare_loc_descriptor_narrow): New functions, split out from...
558         (scompare_loc_descriptor): ...here.
559         * expmed.c (emit_store_flag_int): New function, split out from...
560         (emit_store_flag): ...here.
562 2017-08-30  Richard Biener  <rguenther@suse.de>
564         * dwarf2out.c (dwarf2out_finish): Remove setting AT_pubnames.
565         (dwarf2out_early_finish): Move setting of AT_pubnames from
566         early debug output to early finish.
568 2017-08-30  Jozef Lawrynowicz  <jozef.l@somniumtech.com>
570         * gcc/config/msp430/msp430.h: Pass -mcode/data-region to the linker
571         and -mdata-region to the assembler.
573 2017-08-30  Richard Biener  <rguenther@suse.de>
575         * dwarf2out.c (add_dwarf_attr): Check we don't add duplicate
576         attributes.
577         (gen_subprogram_die): Add DW_AT_object_pointer only early.
578         (dwarf2out_early_global_decl): Only generate a DIE for the
579         abstract origin if it doesn't already exist or is a declaration DIE.
580         (resolve_addr): Do not add the linkage name twice when
581         generating a stub DIE for the DW_TAG_GNU_call_site target.
583 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
585         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
586         Use machine_mode rather than int for arg1_mode.
588 2017-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
590         PR target/82015
591         * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Insure
592         that the second argument of the built-in functions to unpack
593         128-bit scalar types to 64-bit values is 0 or 1.  Change to use a
594         switch statement instead a lot of if statements.
595         * config/rs6000/rs6000.md (unpack<mode>, FMOVE128_VSX iterator):
596         Allow 64-bit values to be in Altivec registers as well as
597         traditional floating point registers.
598         (pack<mode>, FMOVE128_VSX iterator): Likewise.
600 2017-08-29  Alexander Monakov  <amonakov@ispras.ru>
602         * ira-costs.c (record_address_regs): Handle both operands of PLUS for
603         MAX_REGS_PER_ADDRESS == 1.
605 2017-08-29  Uros Bizjak  <ubizjak@gmail.com>
607         * config/i386/i386.opt (flag_fentry): Do not init to -1.
608         * config/i386/i386.c (ix86_option_override_internal): Simplify
609         setting of opts->x_flag_entry.
611 2017-08-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
612             Jakub Jelinek  <jakub@redhat.com>
613             Richard Biener  <rguenther@suse.de>
615         PR tree-optimization/81503
616         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Ensure
617         folded constant fits in the target type; reorder tests for clarity.
619 2017-08-29  Martin Liska  <mliska@suse.cz>
621         * passes.def: Include pass_lower_switch.
622         * stmt.c (dump_case_nodes): Remove and move to
623         tree-switch-conversion.
624         (case_values_threshold): Likewise.
625         (expand_switch_as_decision_tree_p): Likewise.
626         (emit_case_decision_tree): Likewise.
627         (expand_case): Likewise.
628         (balance_case_nodes): Likewise.
629         (node_has_low_bound): Likewise.
630         (node_has_high_bound): Likewise.
631         (node_is_bounded): Likewise.
632         (emit_case_nodes): Likewise.
633         (struct simple_case_node): New struct.
634         (add_case_node): Remove.
635         (emit_case_dispatch_table): Use vector instead of case_list.
636         (reset_out_edges_aux): Remove.
637         (compute_cases_per_edge): Likewise.
638         (expand_case): Build list of simple_case_node.
639         (expand_sjlj_dispatch_table): Use it.
640         * tree-switch-conversion.c (struct case_node): Moved from
641         stmt.c and adjusted.
642         (emit_case_nodes): Likewise.
643         (node_has_low_bound): Likewise.
644         (node_has_high_bound): Likewise.
645         (node_is_bounded): Likewise.
646         (case_values_threshold): Likewise.
647         (reset_out_edges_aux): Likewise.
648         (compute_cases_per_edge): Likewise.
649         (add_case_node): Likewise.
650         (dump_case_nodes): Likewise.
651         (balance_case_nodes): Likewise.
652         (expand_switch_as_decision_tree_p): Likewise.
653         (emit_jump): Likewise.
654         (emit_case_decision_tree): Likewise.
655         (try_switch_expansion): Likewise.
656         (do_jump_if_equal): Likewise.
657         (emit_cmp_and_jump_insns): Likewise.
658         (fix_phi_operands_for_edge): New function.
659         (record_phi_operand_mapping): Likewise.
660         (class pass_lower_switch): New pass.
661         (pass_lower_switch::execute): New function.
662         (make_pass_lower_switch): Likewise.
663         (conditional_probability):
664         * timevar.def: Add TV_TREE_SWITCH_LOWERING.
665         * tree-pass.h: Add make_pass_lower_switch.
667 2017-08-29  Jozef Lawrynowicz  <jozef.l@somniumtech.com>
669         PR target/80993
670         * gcc/config/msp430/msp430.c (msp430_attr): Mark interrupt
671         handlers as used.
673 2017-08-29  Richard Biener  <rguenther@suse.de>
675         * dwarf2out.c (add_dwarf_attr): When checking is enabled verify
676         we do not add a DW_AT_inline attribute twice.
677         (gen_subprogram_die): Remove code setting DW_AT_inline on
678         DECL_ABSTRACT_P nodes.
680 2017-08-29  Richard Sandiford  <richard.sandiford@linaro.org>
682         * gimplify.c (gimplify_call_expr): Copy the nothrow flag to
683         calls to internal functions.
684         (gimplify_modify_expr): Likewise.
685         * tree-call-cdce.c (use_internal_fn): Likewise.
686         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
687         (convert_to_divmod): Set the nothrow flag.
688         * tree-if-conv.c (predicate_mem_writes):  Likewise.
689         * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
690         (vectorizable_call): Likewise.
691         (vectorizable_store): Likewise.
692         (vectorizable_load): Likewise.
693         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
694         (vect_recog_mask_conversion_pattern): Likewise.
696 2017-08-29  Martin Liska  <mliska@suse.cz>
698         PR other/39851
699         * gcc.c (driver_handle_option): Add new argument.
700         * opts-common.c (handle_option): Pass
701         target_option_override_hook.
702         * opts-global.c (lang_handle_option): Add new option.
703         (set_default_handlers):  Add new argument.
704         (decode_options): Likewise.
705         * opts.c (target_handle_option): Likewise.
706         (common_handle_option): Call target_option_override_hook.
707         * opts.h (struct cl_option_handler_func): Add hook for
708         target option override.
709         (struct cl_option_handlers): Likewise.
710         (set_default_handlers): Add new argument.
711         (decode_options): Likewise.
712         (common_handle_option): Likewise.
713         (target_handle_option): Likewise.
714         * toplev.c (toplev::main): Pass targetm.target_option.override
715         hook.
717 2017-08-29  Richard Biener  <rguenther@suse.de>
718         Dominik Infuehr <dominik.infuehr@theobroma-systems.com>
720         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Properly confine
721         life to the active subtree.
723 2017-08-28  Jeff Law  <law@redhat.com>
725         * tree-ssa-dom.c (edge_info::record_simple_equiv): Call
726         derive_equivalences.
727         (derive_equivalences_from_bit_ior, record_temporary_equivalences):
728         Code moved into....
729         (edge_info::derive_equivalences): New private member function
731         * tree-ssa-dom.c (class edge_info): Changed from a struct
732         to a class.  Add ctor/dtor, methods and data members.
733         (edge_info::edge_info): Renamed from allocate_edge_info.
734         Initialize additional members.
735         (edge_info::~edge_info): New.
736         (free_dom_edge_info): Delete the edge info.
737         (record_edge_info): Use new class & associated member functions.
738         Tighten forms for testing for edge equivalences.
739         (record_temporary_equivalences): Iterate over the simple
740         equivalences rather than assuming there's only one per edge.
741         (cprop_into_successor_phis): Iterate over the simple
742         equivalences rather than assuming there's only one per edge.
743         (optimize_stmt): Use operand_equal_p rather than pointer
744         equality for mini-DSE code.
746 2017-08-28  Nathan Sidwell  <nathan@acm.org>
748         * gcc.c (execute): Fold SIGPIPE handling into switch
749         statement.  Adjust internal error message.
751 2017-08-28  Richard Biener  <rguenther@suse.de>
753         PR debug/81993
754         * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
755         Do nothing for removed DIEs.
757 2017-08-28  Richard Biener  <rguenther@suse.de>
759         PR tree-optimization/81977
760         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix look through
761         memcpy.
763 2017-08-28  Alexander Monakov  <amonakov@ispras.ru>
765         PR target/80640
766         * doc/md.texi (mem_thread_fence): Remove mention of mode.  Rewrite.
767         * optabs.c (expand_mem_thread_fence): Emit a compiler barrier when
768         using targetm.gen_mem_thread_fence.
770 2017-08-27  Uros Bizjak  <ubizjak@gmail.com>
772         PR target/81995
773         * config/i386/i386.md (*<btsc><mode>): Change operand 2
774         predicate to register_operand.  Reorder operands.
775         (*btr<mode>): Ditto.
776         (*<btsc><mode>_mask): Change operand 3 predicate to register_operand.
777         (*btr<mode>_mask): Ditto.
779 2017-08-25  Steven Munroe  <munroesj@gcc.gnu.org>
781         * config.gcc (powerpc*-*-*): Add xmmintrin.h and mm_malloc.h.
782         * config/rs6000/xmmintrin.h: New file.
783         * config/rs6000/x86intrin.h [__ALTIVEC__]: Include xmmintrin.h.
785 2017-08-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
787         PR target/81504
788         * config/rs6000/rs6000-p8swap.c (find_alignment_op): Add reference
789         parameter and_insn and return it.
790         (recombine_lvx_pattern): Insert a copy to ensure availability of
791         the base register of the copied masking operation at the point of
792         the instruction replacement.
793         (recombine_stvx_pattern): Likewise.
795 2017-08-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
797         * config/rs6000/rs6000.opt (-mpower9-dform-scalar): Delete
798         undocumented switches.
799         (-mpower9-dform-vector): Likewise.
800         (-mpower9-dform): Likewise.
801         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Update
802         comments to delete references to -mpower9-dform* switches.
803         * config/rs6000/predicates.md (vsx_quad_dform_memory_operand):
804         Delete reference to -mpower9-dform* switches, test for
805         -mpower9-vector instead.
806         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Likewise.
807         (OTHER_P9_VECTOR_MASKS): Likewise.
808         (POWERPC_MASKS): Likewise.
809         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Change
810         tests against -mpower9-dform* to -mpower9-vector.  Delete code
811         that checked for -mpower9-dform* consistancy with other options.
812         Add test for -mpower9-misc to enable other power9 switches.
813         (rs6000_init_hard_regno_mode_ok): Likewise.
814         (rs6000_option_override_internal): Likewise.
815         (rs6000_emit_prologue): Likewise.
816         (rs6000_emit_epilogue): Likewise.
817         (rs6000_opt_masks): Delete -mpower9-dform-{scalar,vector}.
818         (rs6000_disable_incompatiable_switches): Delete -mpower9-dform.
819         (emit_fusion_p9_load): Change tests for -mpower9-dform-scalar
820         -mpower9-vector.
821         (emit_fusion_p9_store): Likewise.
822         * config/rs6000/rs6000.h (TARGET_P9_DFORM_SCALAR): Delete
823         resetting these macros if the assembler does not support ISA 3.0
824         instructions.
825         (TARGET_P9_DFORM_VECTOR): Likewise.
826         * config/rs6000/rs6000.md (peepholes to optimize altivec memory):
827         Change to use -mpower9-vector instead of -mpower9-dform-scalar.
829 2017-08-25  Alan Modra  <amodra@gmail.com>
831         PR rtl-optimization/81747
832         * cse.c (cse_extended_basic_block): Don't attempt to record
833         equivalences for degenerate conditional branches that branch
834         to their fall-through.
836 2017-08-24  Martin Sebor  <msebor@redhat.com>
838         PR middle-end/81908
839         * gimple-fold.c (size_must_be_zero_p): New function.
840         (gimple_fold_builtin_memory_op): Call it.
842 2017-08-24  Steven Munroe  <munroesj@gcc.gnu.org>
844         * config/rs6000/mm_malloc.h: New file.
846 2017-08-24  Bin Cheng  <bin.cheng@arm.com>
848         PR tree-optimization/81913
849         * tree-ssa-loop-niter.c (number_of_iterations_cond): Skip niter
850         analysis when either IVs in condition can wrap.
852 2017-08-24  Uros Bizjak  <ubizjak@gmail.com>
854         * dwarf2out.c (MAX_ARTIFICIAL_LABEL_BYTES): Increase to 40.
855         * dwarf2cfi.c (MAX_ARTIFICIAL_LABEL_BYTES): Remove.
857 2017-08-24  Richard Biener  <rguenther@suse.de>
859         PR target/81921
860         * targhooks.c (default_target_can_inline_p): Properly
861         use target_option_default_node when no DECL_FUNCTION_SPECIFIC_TARGET
862         is present and always compare.
863         * config/i386/i386.c (ix86_valid_target_attribute_tree): Do not
864         infer -mfpmath=sse from TARGET_SSE_P.
865         (ix86_can_inline_p): Properly use target_option_default_node when
866         no DECL_FUNCTION_SPECIFIC_TARGET is present and always compare.
868 2017-08-24  Richard Biener  <rguenther@suse.de>
870         PR debug/81936
871         * dwarf2out.c (output_die): Handle flag_generate_offload like
872         flag_generate_lto.
873         (output_comp_unit): Likewise.
874         (gen_array_type_die): Likewise.
875         (dwarf2out_early_finish): Likewise.
876         (note_variable_value_in_expr): Likewise.
877         (dwarf2out_finish): Likewise.  Adjust assert.
878         * cgraphunit.c (symbol_table::compile): Move setting of
879         flag_generate_offload earlier ...
880         (symbol_table::finalize_compilation_unit): ... here, before
881         early debug finalization.
883 2017-08-24  Richard Biener  <rguenther@suse.de>
885         * config/i386/i386.c: Include symbol-summary.h, ipa-prop.h
886         and ipa-fnsummary.h.
887         (ix86_can_inline_p): When ix86_fpmath flags do not match
888         check whether the callee uses FP math at all.
890 2017-08-24  Aldy Hernandez  <aldyh@redhat.com>
892         PR middle-end/81931
893         * tree-ssanames.c (get_nonzero_bits): Use element_precision
894         instead of TYPE_PRECISION.
896 2017-08-24  Richard Sandiford  <richard.sandiford@linaro.org>
897             Alan Hayward  <alan.hayward@arm.com>
898             David Sherwood  <david.sherwood@arm.com>
900         * combine.c (make_extraction): Use subreg_offset_from_lsb.
902 2017-08-23  Daniel Santos  <daniel.santos@pobox.com>
904         * config/i386/i386.h (ix86_frame::stack_realign_allocate_offset):
905         Remove field.
906         (ix86_frame::stack_realign_allocate): New field.
907         (struct machine_frame_state): Modify comments.
908         (machine_frame_state::sp_realigned_fp_end): New field.
909         * config/i386/i386.c (ix86_compute_frame_layout): Rework stack frame
910         layout calculation.
911         (sp_valid_at): Add assertion to assure no attempt to access invalid
912         offset of a realigned stack.
913         (fp_valid_at): Likewise.
914         (choose_baseaddr): Modify comments.
915         (ix86_emit_outlined_ms2sysv_save): Adjust to changes in
916         ix86_expand_prologue.
917         (ix86_expand_prologue): Modify stack realignment and allocation.
918         (ix86_expand_epilogue): Modify comments.
919         * doc/sourcebuild.texi: Add documentation for target selectors avx2,
920         avx2_runtime, avx512f, and avx512f_runtime.
922 2017-08-23  Uros Bizjak  <ubizjak@gmail.com>
924         * config/i386/i386.opt: Remove unneeded Init(0) initializations.
925         (mstackrealign): Do not init to -1.
926         * config/i386/i386.c (ix86_option_override_internal):
927         Check opts_set, not opts when setting default value of
928         opts->x_ix86_force_align_arg_pointer.
930 2017-08-23  Richard Biener  <rguenther@suse.de>
932         * function.c (fndecl_name): Use verbosity 1 (no arguments) for
933         lang_hooks.decl_printable_name.
934         * print-rtl-function.c (print_rtx_function): Likewise.
935         * tree-pretty-print.c (dump_function_header): Likewise.
937 2017-08-23  Richard Biener  <rguenther@suse.de>
939         PR lto/81940
940         * dwarf2out.c (dwarf2out_abstract_function): Handle LTO with
941         -g0 at compile-time.
943 2017-08-23  Tamar Christina  <tamar.christina@arm.com>
945         PR middle-end/19706
946         * doc/sourcebuild.texi (Other hardware attributes):
947         Document xorsign.
949 2017-08-23  Tamar Christina  <tamar.christina@arm.com>
951         PR middle-end/19706
952         * tree-ssa-math-opts.c (convert_expand_mult_copysign):
953         Fix single-use check.
955 2017-08-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
957         * gcc.c (execute): Only test for SIGKILL and SIGQUIT if available.
959 2017-08-22  Daniel Santos  <daniel.santos@pobox.com>
961         * doc/install.texi: Modify to add more details on running selected
962         tests.
964 2017-08-22  Daniel Santos  <daniel.santos@pobox.com>
966         * config/i386/i386.c (ix86_option_override_internal): Error when -mx32
967         is combined with -mabi=ms.
968         (ix86_function_type_abi): Limit errors for mixing -mx32 with attribute
969         ms_abi.
971 2017-08-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
973         PR tree-optimization/81488
974         * gimple-ssa-strength-reduction (struct slsr_cand_d): Add visited
975         and cached_basis fields.
976         (MAX_SPREAD): New constant.
977         (alloc_cand_and_find_basis): Initialize new fields.
978         (clear_visited): New function.
979         (create_phi_basis_1): Rename from create_phi_basis, set visited
980         and cached_basis fields.
981         (create_phi_basis): New wrapper function.
982         (phi_add_costs_1): Rename from phi_add_costs, add spread
983         parameter, set visited field, short-circuit when limits reached.
984         (phi_add_costs): New wrapper function.
985         (record_phi_increments_1): Rename from record_phi_increments, set
986         visited field.
987         (record_phi_increments): New wrapper function.
988         (phi_incr_cost_1): Rename from phi_incr_cost, set visited field.
989         (phi_incr_cost): New wrapper function.
990         (all_phi_incrs_profitable_1): Rename from
991         all_phi_incrs_profitable, set visited field.
992         (all_phi_incrs_profitable): New wrapper function.
994 2017-08-22  Richard Sandiford  <richard.sandiford@linaro.org>
995             Alan Hayward  <alan.hayward@arm.com>
996             David Sherwood  <david.sherwood@arm.com>
998         * rtl.h (paradoxical_subreg_p): Define inline, and add a version
999         that takes the outer and inner modes.
1000         * doc/rtl.texi: Use paradoxical_subreg_p instead of a GET_MODE_SIZE
1001         comparison as the canonical test for a paradoxical subreg.
1002         * combine.c (simplify_set): Use paradoxical_subreg_p.
1003         (make_extraction): Likewise.
1004         (force_to_mode): Likewise.
1005         (rtx_equal_for_field_assignment_p): Likewise.
1006         (gen_lowpart_for_combine): Likewise.
1007         (simplify_comparison): Likewise.
1008         * cse.c (equiv_constant): Likewise.
1009         * expmed.c (store_bit_field_1): Likewise.
1010         * final.c (alter_subreg): Likewise.
1011         * fwprop.c (propagate_rtx): Likewise.
1012         (forward_propagate_subreg): Likewise.
1013         * ira-conflicts.c (ira_build_conflicts): Likewise.
1014         * lower-subreg.c (simplify_gen_subreg_concatn): Likewise.
1015         * lra-constraints.c (curr_insn_transform): Likewise.
1016         (split_reg): Likewise.
1017         * lra-eliminations.c (move_plus_up): Likewise.
1018         (lra_eliminate_regs_1): Likewise.
1019         * recog.c (general_operand): Likewise.
1020         * ree.c (combine_reaching_defs): Likewise.
1021         * reload.c (push_reload): Likewise.
1022         (find_reloads): Likewise.
1023         * reload1.c (elimination_effects): Likewise.
1024         (compute_reload_subreg_offset): Likewise.
1025         (choose_reload_regs): Likewise.
1026         * rtlanal.c (subreg_lsb_1): Likewise.
1027         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
1028         (simplify_subreg): Likewise.
1029         * var-tracking.c (track_loc_p): Likewise.
1030         * emit-rtl.c (byte_lowpart_offset): Likewise.
1031         (paradoxical_subreg_p): Delete out-of-line definition.
1033 2017-08-22  Jeff Law  <law@redhat.com>
1035         PR tree-optimization/81741
1036         PR tree-optimization/71947
1037         * tree-ssa-dom.c: Include tree-inline.h.
1038         (record_temporary_equivalences): Only record SSA_NAME = SSA_NAME
1039         equivalences if one is more expensive to compute than the other.
1040         * tree-ssa-scopedtables.h (class const_or_copies): Make
1041         record_const_or_copy_raw method private.
1042         (class avail_exprs_stack): New method simplify_binary_operation.
1043         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Call
1044         avail_exprs_stack::simplify_binary_operation as needed.
1045         (avail_exprs_stack::simplify_binary_operation): New function.
1047 2017-08-22  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1049         * config.gcc (powerpc-*-rtems*): Add rs6000/linux64.opt.
1050         * config/rs6000/rtems.h (ASM_PREFERRED_EH_DATA_FORMAT): New define.
1051         (DOT_SYMBOLS): Likewise.
1052         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
1053         (RELOCATABLE_NEEDS_FIXUP): Likewise.
1054         (RS6000_ABI_NAME): Likewise.
1055         (TARGET_CMODEL): Likewise.
1056         (TOC_SECTION_ASM_OP): Likewise.
1057         (SET_CMODEL): New macro.
1058         (SUBSUBTARGET_OVERRIDE_OPTIONS): Evaluate cmodel options.
1060 2017-08-22  Richard Biener  <rguenther@suse.de>
1062         * tree-inline.c (remap_type_1): Change asserts on TYPE_SIZE[_UNIT]
1063         to allow for free-lang-data replacements similar to verify_type_variant.
1065 2017-08-22  Richard Sandiford  <richard.sandiford@linaro.org>
1066             Alan Hayward  <alan.hayward@arm.com>
1067             David Sherwood  <david.sherwood@arm.com>
1069         * config/aarch64/aarch64.md (casesi): Use DImode rather than
1070         VOIDmode for the LABEL_REF.
1072 2017-08-22  Richard Biener  <rguenther@suse.de>
1074         * tree-cfg.c (gimple_split_edge): Avoid reallocating target PHI nodes.
1076 2017-08-22  Richard Biener  <rguenther@suse.de>
1078         * common.opt (feliminate-dwarf2-dups): Ignore.
1079         * doc/invoke.texi (feliminate-dwarf2-dups): Remove documentation.
1080         * dwarf2out.c (push_new_compile_unit, pop_compile_unit,
1081         same_die_p_wrap, compute_section_prefix,
1082         is_symbol_die, assign_symbol_names, break_out_includes): Remove.
1083         (comdat_symbol_id, comdat_symbol_number): Likewise.
1084         (cu_hash_table_entry, cu_hash_table_entry_hasher, cu_hash_type):
1085         Likewise.
1086         (check_duplicate_cu, record_comdat_symbol_number): Likewise.
1087         (output_die): Mark unreachable path unreachable.
1088         (dwarf2out_start_source_file): Do not create DW_TAG_GNU_BINCL.
1089         (dwarf2out_end_source_file): Do not create DW_TAG_GNU_EINCL.
1090         (dwarf2out_init): Remove code handling flag_eliminate_dwarf2_dups.
1091         (dwarf2out_early_finish): Likewise.
1093 2017-08-22  Aldy Hernandez  <aldyh@redhat.com>
1095         * wide-int.h (hwi_with_prec::hwi_with_prec): Sign extend.
1097 2017-08-22  Georg-Johann Lay  <avr@gjlay.de>
1099         PR target/81910
1100         * config/avr/avr.c (avr_handle_addr_attribute): Early return if
1101         not VAR_P. Filter attribute warnings with OPT_Wattributes.
1102         (avr_attribute_table) <io, io_low, address>: Initialize
1103         .decl_required with true.
1105 2017-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
1107         * config/rs6000/rs6000-cpus.def (-mvsx-scalar-float): Delete
1108         undocumented debugging options.
1109         (-mvsx-scalar-double): Likewise.
1110         (-mallow-df-permute): Likewise.
1111         (-mvectorize-builtins): Likewise.
1112         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
1113         (rs6000_builtin_vectorized_function): Likewise.
1114         (rs6000_builtin_md_vectorized_function): Likewise.
1115         (rs6000_opt_vars): Likewise.
1117 2017-08-21  Uros Bizjak  <ubizjak@gmail.com>
1119         PR target/46091
1120         * config/i386/i386.md (*btsq_imm): Rename from *btsq.
1121         (*btrq_imm): Rename from *btrq.
1122         (*btcq_imm): Rename from *btcq.
1123         (btsc): New code attribute.
1124         (*<btsc><mode>): New insn pattern.
1125         (*btr<mode>): Ditto.
1126         (*<btsc><mode>_mask): New insn_and_split pattern.
1127         (*btr<mode>_mask): Ditto.
1129 2017-08-21  Richard Sandiford  <richard.sandiford@linaro.org>
1130             Alan Hayward  <alan.hayward@arm.com>
1131             David Sherwood  <david.sherwood@arm.com>
1133         * function.c (pad_below): Simplify padding calculation.
1135 2017-08-21  Richard Sandiford  <richard.sandiford@linaro.org>
1136             Alan Hayward  <alan.hayward@arm.com>
1137             David Sherwood  <david.sherwood@arm.com>
1139         * target.def (function_prologue): Remove frame size argument.
1140         (function_epilogue): Likewise.
1141         * doc/tm.texi: Regenerate.
1142         * final.c (final_start_function): Update call to function_prologue.
1143         (final_end_function): Update call to function_epilogue.
1144         (default_function_pro_epilogue): Remove frame size argument.
1145         * output.h (default_function_pro_epilogue): Likewise.
1146         * config/arm/arm.c (arm_output_function_epilogue): Likewise.
1147         (arm_output_function_prologue): Likewise.
1148         * config/frv/frv.c (frv_function_prologue): Likewise.
1149         (frv_function_epilogue): Likewise.
1150         * config/i386/i386.c (ix86_output_function_epilogue): Likewise.
1151         * config/ia64/ia64.c (ia64_output_function_prologue): Likewise.
1152         (ia64_output_function_epilogue): Likewise.
1153         * config/m32r/m32r.c (m32r_output_function_prologue): Likewise.
1154         (m32r_output_function_epilogue): Likewise.
1155         * config/microblaze/microblaze.c (microblaze_function_prologue)
1156         (microblaze_function_epilogue): Likewise.
1157         * config/mips/mips.c (mips_output_function_prologue): Likewise.
1158         (mips_output_function_epilogue): Likewise.
1159         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Likewise.
1160         (mmix_target_asm_function_epilogue): Likewise.
1161         * config/msp430/msp430.c (msp430_start_function): Likewise.
1162         * config/nds32/nds32.c (nds32_asm_function_prologue): Likewise.
1163         (nds32_asm_function_epilogue): Likewise.
1164         * config/nios2/nios2.c (nios2_asm_function_prologue): Likewise.
1165         * config/pa/pa.c (pa_output_function_prologue): Likewise.
1166         (pa_output_function_epilogue): Likewise.
1167         * config/powerpcspe/powerpcspe.c (rs6000_output_function_prologue)
1168         (rs6000_output_function_epilogue): Likewise.
1169         * config/rl78/rl78.c (rl78_start_function): Likewise.
1170         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Likewise.
1171         (rs6000_output_function_epilogue): Likewise.
1172         * config/rx/rx.c (rx_output_function_prologue): Likewise.
1173         * config/sh/sh.c (sh_output_function_epilogue): Likewise.
1174         * config/sparc/sparc.c (sparc_asm_function_prologue): Likewise.
1175         (sparc_asm_function_epilogue): Likewise.
1177 2017-08-21  Richard Sandiford  <richard.sandiford@linaro.org>
1179         * tree.h (type_has_mode_precision_p): New function.
1180         * convert.c (convert_to_integer_1): Use it.
1181         * expr.c (expand_expr_real_2): Likewise.
1182         (expand_expr_real_1): Likewise.
1183         * fold-const.c (fold_single_bit_test_into_sign_test): Likewise.
1184         * match.pd: Likewise.
1185         * tree-ssa-forwprop.c (simplify_rotate): Likewise.
1186         * tree-ssa-math-opts.c (convert_mult_to_fma): Likewise.
1187         * tree-tailcall.c (process_assignment): Likewise.
1188         * tree-vect-loop.c (vectorizable_reduction): Likewise.
1189         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern)
1190         (vect_recog_mult_pattern, vect_recog_divmod_pattern): Likewise.
1191         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
1192         (vectorizable_assignment): Likewise.
1193         (vectorizable_shift): Likewise.
1194         (vectorizable_operation): Likewise.
1195         * tree-vrp.c (register_edge_assert_for_2): Likewise.
1197 2017-08-21  Wilco Dijkstra  <wdijkstr@arm.com>
1199         * match.pd: Add pow (C, x) simplification.
1201 2017-08-21  Richard Biener  <rguenther@suse.de>
1203         PR tree-optimization/81900
1204         * tree-ssa-pre.c (compute_antic_aux): Properly compute changed
1205         for blocks with abnormal predecessors.
1206         (compute_antic): Do not set visited flag prematurely.
1208 2017-08-21  Georg-Johann Lay  <avr@gjlay.de>
1210         PR target/79883
1211         * config/avr/avr.c (avr_set_current_function): Typo in diagnostic.
1213 2017-08-21  Richard Sandiford  <richard.sandiford@linaro.org>
1215         * stor-layout.h (vector_type_mode): Move to...
1216         * tree.h (vector_type_mode): ...here.
1217         * stor-layout.c (vector_type_mode): Move to...
1218         * tree.c (vector_type_mode): ...here.  Include rtl.h and regs.h.
1220 2017-08-21  Richard Biener  <rguenther@suse.de>
1222         * debug.h (struct gcc_debug_hooks): Add die_ref_for_decl and
1223         register_external_die hooks.
1224         (debug_false_tree_charstarstar_uhwistar): Declare.
1225         (debug_nothing_tree_charstar_uhwi): Likewise.
1226         * debug.c (do_nothing_debug_hooks): Adjust.
1227         (debug_false_tree_charstarstar_uhwistar): New do nothing.
1228         (debug_nothing_tree_charstar_uhwi): Likewise.
1229         * dbxout.c (dbx_debug_hooks): Adjust.
1230         (xcoff_debug_hooks): Likewise.
1231         * sdbout.c (sdb_debug_hooks): Likewise.
1232         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1233         * dwarf2out.c (macinfo_label_base): New global.
1234         (dwarf2out_register_external_die): New function for the
1235         register_external_die hook.
1236         (dwarf2out_die_ref_for_decl): Likewise for die_ref_for_decl.
1237         (dwarf2_debug_hooks): Use them.
1238         (dwarf2_lineno_debug_hooks): Adjust.
1239         (struct die_struct): Add with_offset flag.
1240         (DEBUG_LTO_DWO_INFO_SECTION, DEBUG_LTO_INFO_SECTION,
1241         DEBUG_LTO_DWO_ABBREV_SECTION, DEBUG_LTO_ABBREV_SECTION,
1242         DEBUG_LTO_DWO_MACINFO_SECTION, DEBUG_LTO_MACINFO_SECTION,
1243         DEBUG_LTO_DWO_MACRO_SECTION, DEBUG_LTO_MACRO_SECTION,
1244         DEBUG_LTO_LINE_SECTION, DEBUG_LTO_DWO_STR_OFFSETS_SECTION,
1245         DEBUG_LTO_STR_DWO_SECTION, DEBUG_STR_LTO_SECTION): New macros
1246         defining section names for the early LTO debug variants.
1247         (reset_indirect_string): New helper.
1248         (add_AT_external_die_ref): Helper for dwarf2out_register_external_die.
1249         (print_dw_val): Add support for offsetted symbol references.
1250         (get_ultimate_context): Split out from is_cxx.
1251         (is_cxx): Use get_ultimate_context.
1252         (is_fortran): Add decl overload.
1253         (compute_comp_unit_symbol): Split out worker from
1254         compute_section_prefix.
1255         (compute_section_prefix): Call compute_comp_unit_symbol and
1256         set comdat_type_p here.
1257         (output_die): Skip DIE symbol output for the LTO added one.
1258         Handle DIE symbol references with offset.
1259         (output_comp_unit): Guard section name mangling properly.
1260         For LTO debug sections emit a symbol at the section beginning
1261         which we use to refer to its DIEs.
1262         (add_abstract_origin_attribute): For DIEs registered via
1263         dwarf2out_register_external_die directly refer to the early
1264         DIE rather than indirectly through the shadow one we created.
1265         Remove obsolete call to dwarf2out_abstract_function for
1266         non-function/block origins.
1267         (gen_array_type_die): When generating early LTO debug do
1268         not emit DW_AT_string_length.
1269         (gen_formal_parameter_die): Do not re-create DIEs for PARM_DECLs
1270         late when in LTO.  As suggested place a gcc_unreachable for
1271         the DECL_ABSTRACT_P case.
1272         (gen_subprogram_die): Avoid another specification DIE
1273         for early built declarations/definitions for the late LTO case.
1274         (gen_variable_die): Add type references for late duplicated VLA dies
1275         when in late LTO.
1276         (gen_inlined_subroutine_die): Do not call dwarf2out_abstract_function,
1277         we have the abstract instance already.
1278         (process_scope_var): Adjust decl DIE contexts in LTO which
1279         first puts them in limbo.
1280         (gen_decl_die): Do not generate type DIEs late apart from
1281         types for VLAs or for decls we do not yet have a DIE.  Do not
1282         call dwarf2out_abstract_function late.
1283         (dwarf2out_early_global_decl): Make sure to create DIEs
1284         for abstract instances of a decl first.
1285         (dwarf2out_late_global_decl): Adjust comment.
1286         (output_macinfo_op): With multiple macro sections use
1287         macinfo_label_base to distinguish labels.
1288         (output_macinfo): Likewise.  Update macinfo_label_base.
1289         Pass in the line info label.
1290         (note_variable_value_in_expr): When generating LTO resolve
1291         all variable values here by generating DIEs as needed.
1292         (init_sections_and_labels): Add early LTO debug flag parameter
1293         and generate different sections and names if set.  Add generation
1294         counter for the labels so we can have multiple of them.
1295         (reset_dies): Helper to allow DIEs to be output multiple times.
1296         (dwarf2out_finish): When outputting DIEs to the fat part of an
1297         LTO object first reset DIEs.
1298         (dwarf2out_early_finish): Output early DIEs when generating LTO.
1299         (modified_type_die): Check for decl_ultimate_origin being self
1300         before recursing.
1301         (gen_type_die_with_usage): Likewise.
1302         (gen_typedef_die): Allow decl_ultimate_origin being self.
1303         (set_decl_abstract_flags): Remove.
1304         (set_block_abstract_flags): Likewise.
1305         (dwarf2out_abstract_function): Treat the early generated DIEs
1306         as the abstract copy and only add DW_AT_inline and
1307         DW_AT_artificial here and call set_decl_origin_self.
1308         If the DIE has an abstract origin don't do anything.
1309         * tree.c (free_lang_data): Build a dummy TRANSLATION_UNIT_DECL
1310         if we have none yet (Go fails to build one, PR78628).
1311         (variably_modified_type_p): Prevent endless recursion for Ada
1312         cyclic pointer types.
1313         * lto-streamer-in.c: Include debug.h.
1314         (dref_queue): New global.
1315         (lto_read_tree_1): Stream in DIE references.
1316         (lto_input_tree): Register DIE references.
1317         (input_function): Stream DECL_DEBUG_ARGS.
1318         * lto-streamer-out.c: Include debug.h.
1319         (lto_write_tree_1): Output DIE references.
1320         (DFS::DFS_write_tree_body): Follow DECL_ABSTRACT_ORIGIN.
1321         Force a TRANSLATION_UNIT_DECL DECL_CONTEXT for file-scope decls.
1322         (output_function): Stream DECL_DEBUG_ARGS.
1323         * tree-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
1324         Stream DECL_ABSTRACT_ORIGIN.
1325         * tree-streamer-out.c (write_ts_decl_common_tree_pointers): Likewise.
1326         (write_ts_decl_minimal_tree_pointers): Force a TRANSLATION_UNIT_DECL
1327         DECL_CONTEXT for file-scope decls.
1328         * lto-streamer.h (struct dref_entry): Declare.
1329         (dref_queue): Likewise.
1330         * cfgexpand.c (pass_expand::execute): Do not call the
1331         outlining_inline_function hook here.
1332         * lto-wrapper.c (debug_obj): New global.
1333         (tool_cleanup): Unlink it if required.
1334         (debug_objcopy): New function.
1335         (run_gcc): Handle early debug sections in the IL files by
1336         extracting them to separate files, partially linkin them and
1337         feeding the result back as result to the linker.
1338         * config/darwin.h (DEBUG_LTO_INFO_SECTION, DEBUG_LTO_ABBREV_SECTION,
1339         DEBUG_LTO_MACINFO_SECTION, DEBUG_LTO_LINE_SECTION,
1340         DEBUG_STR_LTO_SECTION, DEBUG_LTO_MACRO_SECTION): Put early debug
1341         sections into a separate segment.
1342         * config/darwin.c (darwin_asm_named_section): Handle __GNU_DWARF_LTO
1343         segments.
1344         (darwin_asm_dwarf_section): Likewise.
1345         (darwin_asm_output_dwarf_offset): Likewise.
1346         * config/i386/i386.c (make_resolver_func): Set DECL_IGNORED_P.
1348 2017-08-21  Richard Sandiford  <richard.sandiford@linaro.org>
1349             Alan Hayward  <alan.hayward@arm.com>
1350             David Sherwood  <david.sherwood@arm.com>
1352         * read-md.h (md_reader::record_potential_iterator_use): Replace
1353         pointer argument with an rtx and an index.
1354         * read-rtl.c (iterator_group::apply_iterator): Likewise.
1355         (apply_mode_iterator): Likewise.
1356         (apply_code_iterator): Likewise.
1357         (apply_int_iterator): Likewise.
1358         (apply_subst_iterator): Likewise.
1359         (record_iterator_use): Likewise.
1360         (record_attribute_use): Likewise.
1361         (md_reader::record_potential_iterator_use): Likewise.  Update calls
1362         to record_iterator_use and apply_iterator.
1363         (iterator_use): Replace ptr with x and index.
1364         (attribute_use): Likewise.
1365         (apply_attribute_uses): Update calls to apply_iterator.
1366         (apply_iterators): Likewise.  Update initialization of iterator_use.
1367         (rtx_reader::read_rtx_code): Update calls to record_iterator_use
1368         and record_potential_iterator_use.
1369         (rtx_reader::read_rtx_operand): Likewise.
1371 2017-08-21  Richard Sandiford  <richard.sandiford@linaro.org>
1372             Alan Hayward  <alan.hayward@arm.com>
1373             David Sherwood  <david.sherwood@arm.com>
1375         * varasm.c (const_rtx_hash_1): Don't hash in the mode of a
1376         CONST_WIDE_INT.
1378 2017-08-21  Richard Biener  <rguenther@suse.de>
1380         PR middle-end/81884
1381         * tree-ssa-alias.c (stmt_kills_ref_p): Handle array accesses
1382         at struct end conservatively when comparing common bases.
1384 2017-08-21  Richard Biener  <rguenther@suse.de>
1386         * tree-ssa-loop-im.c (struct lim_aux_data): Add ref index member.
1387         (mem_ref_in_stmt): Remove.
1388         (determine_max_movement): Use ref index to get at the reference.
1389         (invariantness_dom_walker::before_dom_children): Deal with
1390         lim data already initialized.
1391         (gather_mem_refs_stmt): Initialize lim data and record ref index.
1393 2017-08-19  Uros Bizjak  <ubizjak@gmail.com>
1395         * config/i386/i386.h (OPTION_MASK_ISA_ROUND): Remove.
1396         (TARGET_ISA_ROUND): Ditto.
1397         (TARGET_ROUND): Ditto.
1398         * config/i386/i386.c: Substitute TARGET_ROUND with TARGET_SSE4_1.
1399         * config/i386/i386.md: Ditto.
1400         * config/i386/sse.md: Ditto.
1401         * config/i386/i386-builtin.def: Substitute OPTION_MASK_ISA_ROUND
1402         with OPTION_MASK_ISA_SSE4_1.
1404 2017-08-19  Uros Bizjak  <ubizjak@gmail.com>
1406         PR target/81894
1407         * doc/extend.texi (x86 Built-in Functions): Correct the name of
1408         __builtin_ia32_lzcnt_u16.
1410 2017-08-18  Peter Bergner  <bergner@vnet.ibm.com>
1412         PR target/80210
1413         * config/rs6000/rs6000.c (rs6000_activate_target_options): New function.
1414         (rs6000_set_current_function): Rewrite function to use it.
1416 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
1418         PR c/53037
1419         * print-tree.c (print_node): Support DECL_WARN_IF_NOT_ALIGN
1420         and TYPE_WARN_IF_NOT_ALIGN.
1421         * stor-layout.c (do_type_align): Merge DECL_WARN_IF_NOT_ALIGN.
1422         (handle_warn_if_not_align): New.
1423         (place_union_field): Call handle_warn_if_not_align.
1424         (place_field): Call handle_warn_if_not_align.
1425         Copy TYPE_WARN_IF_NOT_ALIGN.
1426         (finish_builtin_struct): Copy TYPE_WARN_IF_NOT_ALIGN.
1427         (layout_type): Likewise.
1428         * tree-core.h (tree_type_common): Add warn_if_not_align.  Set
1429         spare to 18.
1430         (tree_decl_common): Add warn_if_not_align.
1431         * tree.c (build_range_type_1): Copy TYPE_WARN_IF_NOT_ALIGN.
1432         * tree.h (TYPE_WARN_IF_NOT_ALIGN): New.
1433         (SET_TYPE_WARN_IF_NOT_ALIGN): Likewise.
1434         (DECL_WARN_IF_NOT_ALIGN): Likewise.
1435         (SET_DECL_WARN_IF_NOT_ALIGN): Likewise.
1436         * doc/extend.texi: Document warn_if_not_aligned attribute.
1437         * doc/invoke.texi: Document -Wif-not-aligned and -Wpacked-not-aligned.
1439 2017-08-17  Martin Liska  <mliska@suse.cz>
1441         PR bootstrap/81864
1442         * tree-loop-distribution.c (ddrs_table): Change type to pointer type.
1443         (get_data_dependence): Use it as pointer type.
1444         (distribute_loop): Likewise.
1446 2017-08-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1448         * config/rs6000/altivec.md (UNSPEC_VMRGOW_DIRECT): New constant.
1449         (p8_vmrgew_v4sf_direct): Generalize to p8_vmrgew_<mode>_direct.
1450         (p8_vmrgow_<mode>_direct): New define_insn.
1451         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Properly
1452         handle endianness for vmrgew and vmrgow permute patterns.
1454 2017-08-17  Peter Bergner  <bergner@vnet.ibm.com>
1456         * config/rs6000/altivec.md (VParity): Remove TARGET_VSX_TIMODE.
1457         * config/rs6000/rs6000-cpus.def: Remove comment.
1458         (ISA_2_7_MASKS_SERVER): Delete OPTION_MASK_VSX_TIMODE;
1459         (POWERPC_MASKS): Likewise.
1460         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Remove unneeded
1461         use of TARGET_VSX_TIMODE.
1462         (rs6000_setup_reg_addr_masks): Change TARGET_VSX_TIMODE to TARGET_VSX.
1463         (rs6000_init_hard_regno_mode_ok): Remove unneeded uses of
1464         TARGET_VSX_TIMODE.  Change use of TARGET_VSX_TIMODE to TARGET_VSX.
1465         (rs6000_option_override_internal): Remove dead code.
1466         (rs6000_legitimize_address): Change TARGET_VSX_TIMODE to TARGET_VSX.
1467         (rs6000_legitimize_reload_address): Likewise.
1468         (rs6000_legitimate_address_p): Likewise.
1469         (rs6000_opt_masks): Delete "vsx-timode".
1470         (rs6000_disable_incompatible_switches): Remove mention of -mvsx-timode
1471         from function comment.
1472         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Delete.
1473         * config/rs6000/rs6000.md (FMOVE128_GPR): Remove TARGET_VSX_TIMODE.
1474         (V16QI, V8HI, V4SI, V4SF, V2DI, V2DF, V1TI): Remove useless empty
1475         condition.
1476         * config/rs6000/rs6000.opt (mvsx-timode): Replace with stub.
1477         * config/rs6000/vector.md (VEC_IP): Remove TARGET_VSX_TIMODE.
1478         * config/rs6000/vsx.md (VSX_LE_128): Likewise.
1479         (VSX_TI): Likewise.
1480         (VSX_M): Likewise.
1481         (define_peephole2): Likewise.
1483 2017-08-17  Martin Sebor  <msebor@redhat.com>
1485         PR c/81859
1486         * pretty-print.c (pp_format): Use strnlen in %.*s to avoid reading
1487         past the end of an array.
1488         (test_pp_format): Add test cases.
1490 2017-08-17  Richard Sandiford  <richard.sandiford@linaro.org>
1492         * internal-fn.def (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): Add
1493         missing ECF_NOTHROW flags.
1495 2017-08-17  Peter Bergner  <bergner@vnet.ibm.com>
1497         PR target/72804
1498         * config/rs6000/vsx.md (*vsx_le_permute_<mode>): Add support for
1499         operands residing in integer registers.
1500         (*vsx_le_perm_load_<mode>): Likewise.
1501         (*vsx_le_perm_store_<mode>): Likewise.
1502         (define_peephole2): Add peepholes to optimize the above.
1504 2017-08-17  Marek Polacek  <polacek@redhat.com>
1506         PR middle-end/81814
1507         * fold-const.c (operand_equal_for_comparison_p): Remove code that used
1508         to mimic what shorten_compare did.  Change the return type to bool.
1509         (fold_cond_expr_with_comparison): Update call to
1510         operand_equal_for_comparison_p.
1511         (fold_ternary_loc): Likewise.
1513 2017-08-17  Jackson Woodruff  <jackson.woodruff@arm.com>
1515         * aarch64-simd.md (mov<mode>): No longer force zero immediate into
1516         register.
1517         (*aarch64_simd_mov<mode>): Add new case for stp using zero immediate.
1519 2017-08-17  Richard Biener  <rguenther@suse.de>
1521         * tree-ssa-structalias.c (solve_graph): When propagating
1522         to successors update the graphs succ edges and avoid duplicate work.
1524 2017-08-17  Maxim Ostapenko  <m.ostapenko@samsung.com>
1526         PR target/81861
1527         * config/i386/i386.c (ix86_option_override_internal): Save target
1528         specific options after ix86_stack_protector_guard_reg was changed.
1530 2017-08-17  Richard Biener  <rguenther@suse.de>
1532         PR tree-optimization/81827
1533         * tree-ssa-structalias.c (struct variable_info): Add is_reg_var flag.
1534         (new_var_info): Initialize it conservatively.
1535         (get_call_vi): Mark register vars.
1536         (new_scalar_tmp_constraint_exp): Likewise.
1537         (handle_rhs_call): Likewise.
1538         (handle_const_call): Likewise.
1539         (create_function_info_for): Likewise.
1540         (solve_constraints): Sort varinfos to separate register from
1541         non-register vars to pack points-to solution bitmaps during
1542         iteration.
1544 2017-08-17  Marek Polacek  <polacek@redhat.com>
1546         * gimplify.c (gimplify_adjust_omp_clauses): Compare with 0 instead of 1.
1548 2017-08-17  Richard Biener  <rguenther@suse.de>
1550         * tree-vrp.c (vrp_int_const_binop): Do not set *overflow_p
1551         to true when overflow is undefined and we saturated the result.
1553 2017-08-17  Alan Modra  <amodra@gmail.com>
1555         PR target/80938
1556         * config/rs6000/rs6000.c (rs6000_savres_strategy): Revert 2017-08-09.
1557         Don't use store multiple if only one reg needs saving.
1558         (interesting_frame_related_regno): New function.
1559         (rs6000_frame_related): Don't emit frame info for regs that
1560         don't need saving.
1561         (rs6000_emit_epilogue): Likewise.
1563 2017-08-16  Nathan Sidwell  <nathan@acm.org>
1565         * tree-core.h (tree_type_non_common): Rename binfo to lang_1.
1566         * tree.h (TYPE_BINFO): Use type_non_common.maxval.
1567         (TYPE_LANG_SLOT_1): Use type_non_common.lang_1, for any type.
1568         * tree.c (free_lang_data_in_type): Use else-if chain.  Always
1569         clear TYPE_LANG_1.  Remove obsolete member-function stripping.
1570         (find_decls_types_r): Comment about TYPE_MAX_VALUES_RAW.
1571         (verify_type): Adjust for TYPE_BINFO move.
1572         * lto-streamer-out.c (DFS::DFS_write_tree_body): No need to
1573         process TYPE_BINFO directly.
1574         (hash_tree): Likewise.
1575         * tree-streamer-in.c (lto_input_ts_type_non_common_tree_pointers):
1576         Likewise.
1577         * tree-streamer-out.c (write_ts_type_non_common_tree_pointers):
1578         Likewise.
1580 2017-08-16  David Malcolm  <dmalcolm@redhat.com>
1582         * diagnostic-show-locus.c (colorizer::m_caret): Remove unused field.
1584 2017-08-16  Uros Bizjak  <ubizjak@gmail.com>
1586         PR target/46091
1587         * config/i386/i386.md (*anddi_1_btr): Change predicates of
1588         operand 0 and operand 1 to nomimmediate_operand. Add "m" constraint.
1589         Add ix86_binary_operator_ok to insn constraint.
1590         (*iordi_1_bts): Ditto.
1591         (*xordi_1_btc): Ditto.
1592         (*btsq): Change predicate of operand 0 to nonimmediate_operand.
1593         Update corresponding peephole2 pattern.
1594         (*btrq): Ditto.
1595         (*btcq): Ditto.
1597 2017-08-16  Bin Cheng  <bin.cheng@arm.com>
1599         PR tree-optimization/81832
1600         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Don't
1601         copy loop header which has IFN_LOOP_DIST_ALIAS call.
1603 2017-08-16  Marek Polacek  <polacek@redhat.com>
1605         PR middle/81695
1606         * fold-const.c (fold_indirect_ref_1): Restore original behavior
1607         regarding size_zero_node.
1609 2017-08-16  Martin Liska  <mliska@suse.cz>
1611         PR target/81753
1612         * config.gcc: Respect previously set extra_objs in case
1613         of darwin target.
1615 2017-08-16  Richard Sandiford  <richard.sandiford@linaro.org>
1617         PR tree-optimization/81835
1618         * tree-vect-loop.c (vect_is_simple_reduction): Simply checks for
1619         the phi SSA_NAME.  Check that the condition in a COND_EXPR does
1620         not depend on the phi.
1622 2017-08-16  Alan Modra  <amodra@gmail.com>
1624         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Delete
1625         dead code.
1627 2017-08-16  Alan Modra  <amodra@gmail.com>
1629         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Merge..
1630         (save_reg_p): ..into this.  Update all callers.
1631         (first_reg_to_save): Simplify.
1633 2017-08-16  Alan Modra  <amodra@gmail.com>
1635         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't restore
1636         fixed regs.
1638 2017-08-15  Joseph Myers  <joseph@codesourcery.com>
1640         PR target/78460
1641         PR target/67712
1642         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Only unroll for
1643         constant count if that count is less than 32.
1645 2017-08-15  Nathan Sidwell  <nathan@acm.org>
1647         * gcc.c (execute): Emit friendlier message if inferior is killed
1648         by an external cause.
1650 2017-08-15  Richard Biener  <rguenther@suse.de>
1652         PR tree-optimization/81790
1653         * tree-ssa-sccvn.c (vn_lookup_simplify_result): Handle both
1654         CONSTRUCTORs from simplifying and VN.
1656 2017-08-14  Martin Sebor  <msebor@redhat.com>
1658         * builtin-attrs.def: Add comments.
1660 2017-08-14  Martin Sebor  <msebor@redhat.com>
1662         PR c/81117
1663         * doc/extend.texi (attribute nonstring): Document new attribute.
1665 2017-08-14  Martin Sebor  <msebor@redhat.com>
1667         PR c/81117
1668         * tree-diagnostic.c (default_tree_printer): Handle %G.
1669         * gimple-pretty-print.h (percent_G_format): Declare new function.
1670         * gimple-pretty-print.c (percent_G_format): Define.
1671         * tree-pretty-print.c (percent_K_format): Add argument.
1673 2017-08-14  Martin Sebor  <msebor@redhat.com>
1675         PR translation/79998
1676         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
1677         Remove a stray space.
1679 2017-08-14  Uros Bizjak  <ubizjak@gmail.com>
1681         PR target/46091
1682         * config/i386/i386.md (*anddi_1_btr): New insn_and_split pattern.
1683         (*iordi_1_bts): Ditto.
1684         (*xordi_1_btc): Ditto.
1686 2017-08-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1688         PR target/79845
1689         * config/rs6000/linux64.h (INVALID_64BIT): Use quoted strings.
1690         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1691         Likewise.
1692         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Use
1693         quoted strings, and make more translator-friendly.
1694         (darwin_rs6000_override_options): Likewise.
1695         (rs6000_option_override_internal): Likewise.
1696         (rs6000_return_in_memory): Fix overlong line.
1697         (init_cmulative_args): Use quoted strings, and make more
1698         translator-friendly.
1699         (rs6000_pass_by_reference): Fix overlong line.
1700         (def_builtin): Use quoted strings.
1701         (altivec_expand_predicate_builtin): Use quoted strings, and make
1702         more translator-friendly.
1703         (htm_expand_builtin): Use quoted strings.
1704         (cpu_expand_builtin): Use quoted strings, and make more
1705         translator-friendly.
1706         (altivec_expand_builtin): Likewise.
1707         (paired_expand_predicate_builtin): Likewise.
1708         (rs6000_invalid_builtin): Likewise.
1709         (builtin_function_type): Use quoted strings.
1710         (rs6000_expand_split_stack_prologue): Use quoted strings, and make
1711         more translator-friendly.
1712         (rs6000_trampoline_init): Likewise.
1713         (rs6000_handle_altivec_attribute): Likewise.
1714         (rs6000_inner_target_options): Use quoted strings.
1715         (rs6000_disable_incompatible_switches): Likewise.
1716         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Use quoted
1717         strings, and make more translator-friendly.
1718         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use quoted strings.
1720 2017-08-14  Bin Cheng  <bin.cheng@arm.com>
1722         PR tree-optimization/81799
1723         * tree-loop-distribution.c (version_loop_by_alias_check): Force
1724         cond_expr to simple gimple operand.
1726 2017-08-14  Wilco Dijkstra  <wdijkstr@arm.com>
1728         PR middle-end/46932
1729         * doc/sourcebuild.texi (autoincdec): Add autoincdec description.
1731 2017-08-14  Georg-Johann Lay  <avr@gjlay.de>
1733         PR target/81754
1734         PR target/81268
1735         * config/avr/avr.opt (mgas-isr-prologues): New Var avr_gasisr_prologues.
1736         * config/avr/avr.md (gasisr, *gasisr): Use it instead of
1737         TARGET_GASISR_PROLOGUES.
1738         * config/avr/avr.c (avr_option_override): Same.
1739         (avr_pass_pre_proep::execute): Same.
1741 2017-08-13  H.J. Lu  <hongjiu.lu@intel.com>
1743         PR target/81820
1744         * config/i386/i386.c (ix86_finalize_stack_frame_flags): Replace
1745         frame pointer with stack pointer - UNITS_PER_WORD in debug insns.
1747 2017-08-13  Uros Bizjak  <ubizjak@gmail.com>
1749         * config/i386/i386.md (*load_tp_<mode>): Redefine as
1750         define_insn_and_split.  Split to a memory load from 0 in
1751         DEFAULT_TLS_SEG_REG address space.  Merge with *load_tp_x32
1752         using PTR mode iterator.
1753         (*load_tp_x32_zext"): Redefine as define_insn_and_split.
1754         Split to a memory load from 0 in DEFAULT_TLS_SEG_REG address space.
1755         (*add_tp_<mode>): Redefine as define_insn_and_split.
1756         Split to an add with a memory load from 0 in DEFAULT_TLS_SEG_REG
1757         address space.  Merge with *add_tp_x32 using PTR mode iterator.
1758         (*add_tp_x32_zext"): Redefine as define_insn_and_split.
1759         Split to an add with a  memory load from 0 in
1760         DEFAULT_TLS_SEG_REG address space.
1762 2017-08-12  Andrew Pinski  <apinski@cavium.com>
1764         * config/aarch64/aarch64-option-extensions.def (rdma):
1765         Fix feature string to what Linux prints out in /proc/cpuinfo.
1767 2017-08-12  Pierre-Marie de Rodat  <derodat@adacore.com>
1769         PR ada/79542
1770         * dwarf2out.c (modified_type_die): For C typedef types that have
1771         an ultimate origin, process the ultimate origin instead of the
1772         input type.
1773         (gen_typedef_die): Assert that input DECLs have no ultimate
1774         origin.
1775         (gen_type_die_with_usage): For typedef variants that have an
1776         ultimate origin, just call gen_decl_die on the original DECL.
1777         (process_scope_var): Avoid creating DIEs for local typedefs and
1778         concrete static variables.
1780 2017-08-12  Alan Modra  <amodra@gmail.com>
1782         PR target/81170
1783         PR target/81295
1784         * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Upgrade to
1785         match gnu-user.h startfile.
1786         (ENDFILE_LINUX_SPEC): Similarly.
1788 2017-08-11  Thomas Schwinge  <thomas@codesourcery.com>
1790         PR lto/81430
1791         * config/nvptx/nvptx.c (nvptx_override_options_after_change):
1792         Remove function.
1793         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Remove definition.
1795 2017-08-11  Tamar Christina  <tamar.christina@arm.com>
1796         * config/aarch64/aarch64.md (mov<mode>): Change.
1797         (*movhf_aarch64, *movsf_aarch64, *movdf_aarch64):
1798         aarch64_reg_or_fp_float into aarch64_reg_or_fp_zero.
1799         * config/aarch64/predicates.md (aarch64_reg_or_fp_float): Removed.
1801 2017-08-11  Eric Botcazou  <ebotcazou@adacore.com>
1803         * tree-sra.c (build_access_from_expr_1): Use more precise diagnostics
1804         for storage order barriers.
1806 2017-08-11  Martin Liska  <mliska@suse.cz>
1808         PR tree-opt/79987
1809         * tree-chkp.c (chkp_get_bounds_for_decl_addr): Do not instrument
1810         variables of void type.
1812 2017-08-11  Martin Liska  <mliska@suse.cz>
1814         * asan.c (asan_protect_global): Replace ASM_OUTPUT_DEF with
1815         TARGET_SUPPORTS_ALIASES.
1816         * cgraph.c (cgraph_node::create_same_body_alias): Likewise.
1817         * ipa-visibility.c (can_replace_by_local_alias): Likewise.
1818         (optimize_weakref): Likewise.
1819         * symtab.c (symtab_node::noninterposable_alias): Likewise.
1820         * varpool.c (varpool_node::create_extra_name_alias): Likewise.
1821         * defaults.h: Introduce TARGET_SUPPORTS_ALIASES.
1823 2017-08-11  Martin Liska  <mliska@suse.cz>
1825         PR ipa/81213
1826         * config/i386/i386.c (make_resolver_func): Do complete
1827         refactoring of the function.
1829 2017-08-10  Uros Bizjak  <ubizjak@gmail.com>
1831         PR target/81708
1832         * config/i386/i386.opt (mstack-protector-guard-symbol=): New option
1833         * config/i386/i386.c (ix86_stack_protect_guard): Use
1834         ix86_stack_protect_guard_symbol_str to generate varible declaration.
1835         * doc/invoke.texi (x86 Options): Document
1836         -mstack-protector-guard-symbol= option.
1838 2017-08-10  Uros Bizjak  <ubizjak@gmail.com>
1840         * config/i386/i386-protos.h (ix86_split_stack_guard): New prototype.
1841         * config/i386/i386.c (ix86_split_stack_guard): New function.
1842         (ix86_xpand_split_stack_prologue): Call ix86_split_stack_guard.
1843         (ix86_legitimate_address_p) <case UNSPEC_STACK_CHECK>: Remove.
1844         (i386_asm_output_addr_const_extra) <case UNSPEC_STACK_CHECK>: Ditto.
1845         (optput_pic_addr_const): Remove UNSPEC_STACK_CHECK handling.
1846         * config/i386/i386.md (unspec): Remove UNSPEC_STACK_CHECK.
1847         (split_stack_space_check): Call ix86_split_stack_guard.
1849 2017-08-10  Martin Sebor  <msebor@redhat.com>
1851         * print-tree.c (print_node): Print location using the established
1852         format %s:%i%i.
1853         Replace spaces with colons.
1854         (debug_raw, debug): Ditto.
1856 2017-08-10  Martin Sebor  <msebor@redhat.com>
1858         PR c++/81586
1859         * pretty-print.c (pp_format): Correct the handling of %s precision.
1861 2017-08-10  H.J. Lu  <hongjiu.lu@intel.com>
1863         PR target/81736
1864         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Renamed
1865         to ...
1866         (ix86_finalize_stack_frame_flags): This.  Also clear
1867         frame_pointer_needed if -fno-omit-frame-pointer is used without
1868         stack access.
1869         (ix86_expand_prologue): Replace ix86_finalize_stack_realign_flags
1870         with ix86_finalize_stack_frame_flags.
1871         (ix86_expand_epilogue): Likewise.
1872         (ix86_expand_split_stack_prologue): Likewise.
1873         * doc/invoke.texi: Add a note for -fno-omit-frame-pointer.
1875 2017-08-10  Martin Liska  <mliska@suse.cz>
1877         PR c++/81355
1878         * c-attribs.c (handle_target_attribute):
1879         Report warning for an empty string argument of target attribute.
1881 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
1883         PR c/81687
1884         * omp-low.c (omp_copy_decl): Don't remap FORCED_LABEL or DECL_NONLOCAL
1885         LABEL_DECLs.
1886         * tree-cfg.c (move_stmt_op): Don't adjust DECL_CONTEXT of FORCED_LABEL
1887         or DECL_NONLOCAL labels.
1888         (move_stmt_r) <case GIMPLE_LABEL>: Adjust DECL_CONTEXT of FORCED_LABEL
1889         or DECL_NONLOCAL labels here.
1891 2017-08-09  Will Schmidt  <will_schmidt@vnet.ibm.com>
1893         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add blurb
1894         to indicate when early gimple folding has been disabled.
1895         (rs6000_gimple_fold_builtin): Add debug content.
1896         (rs6000_invalid_builtin): Fix whitespace.
1897         (rs6000_expand_builtin): Fix whitespace.
1898         * config/rs6000/rs6000.opt: Add option for -mfold-gimple.
1900 2017-08-09  Segher Boessenkool  <segher@kernel.crashing.org>
1902         PR target/80938
1903         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
1904         SAVE_MULTIPLE if not all the registers that saves, should be saved.
1906 2017-08-09  Jim Wilson  <jim.wilson@linaro.org>
1908         * config/aarch64/aarch64-cores.def (falkor): Use falkor pipeline.
1909         (qdf24xx): Likewise.
1910         * config/aarch64/aarch64.md: Include falkor.md.
1911         * config/aarch64/falkor.md: New.
1913 2017-08-09  Marek Polacek  <polacek@redhat.com>
1915         PR c/81233
1916         * diagnostic-core.h (emit_diagnostic_valist): Add declaration.
1917         * diagnostic.c (emit_diagnostic): Add a comment.
1918         (emit_diagnostic_valist): New function.
1920 2017-08-09  Marek Polacek  <polacek@redhat.com>
1922         PR c/81417
1923         * input.c (make_location): New overload.
1924         * input.h (make_location): Declare.
1926 2017-08-08  Alan Modra  <amodra@gmail.com>
1927             H.J. Lu  <hongjiu.lu@intel.com>
1929         PR driver/81523
1930         * gcc.c (NO_PIE_SPEC): Delete.
1931         (PIE_SPEC): Define as !no-pie/pie.  Move static|shared|r
1932         exclusion..
1933         (LINK_PIE_SPEC): ..to here.
1934         (LINK_COMMAND_SPEC): Support -no-pie.
1935         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Correct
1936         chain of crtbegin*.o selection, update for PIE_SPEC changes and
1937         format.
1938         (GNU_USER_TARGET_ENDFILE_SPEC): Similarly.
1939         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Similarly.
1940         (ENDFILE_CRTEND_SPEC): Similarly.
1942 2017-08-08  Uros Bizjak  <ubizjak@gmail.com>
1944         PR target/81708
1945         * config/i386/i386.opt (mstack-protector-guard-reg=): New option
1946         (mstack-protector-guard-offset=): Ditto.
1947         * config/i386/i386.c (ix86_option_override): Handle
1948         -mstack-protector-guard-reg= and -mstack-protector-guard-offset=
1949         options.
1950         (ix86_stack_protect_guard): Use ix86_stack_protect_guard_reg and
1951         ix86_stack_protect_guard_offset variables.
1952         (TARGET_STACK_PROTECT_GUARD): Always define.
1953         * doc/invoke.texi (x86 Options): Document -mstack-protector-guard-reg=
1954         and -mstack-protector-guard-offset= options.
1956 2017-08-08  Bin Cheng  <bin.cheng@arm.com>
1958         * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): Handle
1959         boundary case for the last candidate.
1961 2017-08-08  Bin Cheng  <bin.cheng@arm.com>
1963         * doc/invoke.texi: Document -ftree-loop-distribution for O3.
1964         * opts.c (default_options_table): Add OPT_ftree_loop_distribution.
1966 2017-08-08  Tamar Christina  <tamar.christina@arm.com>
1968         PR middle-end/19706
1969         * config/aarch64/aarch64.md (xorsign<mode>3): New optabs.
1970         * config/aarch64/aarch64-builtins.c
1971         (aarch64_builtin_vectorized_function): Added CASE_CFN_XORSIGN.
1972         * config/aarch64/aarch64-simd-builtins.def: Added xorsign BINOP.
1973         * config/aarch64/aarch64-simd.md: Added xorsign<mode>3
1975 2017-08-08  Tamar Christina  <tamar.christina@arm.com>
1976             Andrew Pinski <pinskia@gmail.com>
1978         PR middle-end/19706
1979         * internal-fn.def (XORSIGN): New.
1980         * optabs.def (xorsign_optab): New.
1981         * tree-ssa-math-opts.c (is_copysign_call_with_1): New.
1982         (convert_expand_mult_copysign): New.
1983         (pass_optimize_widening_mul::execute): Call
1984         convert_expand_mult_copysign.
1986 2017-08-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1988         PR tree-optimization/81354
1989         * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
1990         Insert on edges rather than explicitly creating landing pads.
1991         (analyze_candidates_and_replace): Commit edge inserts.
1993 2017-08-08  Richard Biener  <rguenther@suse.de>
1995         PR middle-end/81719
1996         * tree-ssa-loop-niter.c: Include tree-dfa.h.
1997         (expand_simple_operations): Also look through ADDR_EXPRs with
1998         MEM_REF bases treating them as POINTER_PLUS_EXPR.
2000 2017-08-08  Richard Biener  <rguenther@suse.de>
2002         PR tree-optimization/81723
2003         * tree-vect-slp.c (struct bst_traits): New hash traits.
2004         (bst_fail): New global.
2005         (vect_build_slp_tree_2): New worker, split out from ...
2006         (vect_build_slp_tree): ... this now wrapping it with using
2007         bst_fail set to cache SLP tree build fails.  Properly handle
2008         max_tree_size.
2009         (vect_analyze_slp_instance): Allocate and free bst_fail.
2011 2017-08-08  Martin Liska  <mliska@suse.cz>
2013         PR tree-opt/81696
2014         * ipa-icf-gimple.c (func_checker::compare_cst_or_decl): Consider
2015         LABEL_DECLs that can be from a different function.
2017 2017-08-08  Bin Cheng  <bin.cheng@arm.com>
2019         PR tree-optimization/81744
2020         * tree-predcom.c (prepare_finalizers_chain): Deep copy expr of
2021         loop's number of iterations.
2023 2017-08-08  Martin Liska  <mliska@suse.cz>
2025         * asan.c: Include header files.
2026         * attribs.c (build_decl_attribute_variant): New function moved
2027         from tree.[ch].
2028         (build_type_attribute_qual_variant): Likewise.
2029         (cmp_attrib_identifiers): Likewise.
2030         (simple_cst_list_equal): Likewise.
2031         (omp_declare_simd_clauses_equal): Likewise.
2032         (attribute_value_equal): Likewise.
2033         (comp_type_attributes): Likewise.
2034         (build_type_attribute_variant): Likewise.
2035         (lookup_ident_attribute): Likewise.
2036         (remove_attribute): Likewise.
2037         (merge_attributes): Likewise.
2038         (merge_type_attributes): Likewise.
2039         (merge_decl_attributes): Likewise.
2040         (merge_dllimport_decl_attributes): Likewise.
2041         (handle_dll_attribute): Likewise.
2042         (attribute_list_equal): Likewise.
2043         (attribute_list_contained): Likewise.
2044         * attribs.h (lookup_attribute): New function moved from tree.[ch].
2045         (lookup_attribute_by_prefix): Likewise.
2046         * bb-reorder.c: Include header files.
2047         * builtins.c: Likewise.
2048         * calls.c: Likewise.
2049         * cfgexpand.c: Likewise.
2050         * cgraph.c: Likewise.
2051         * cgraphunit.c: Likewise.
2052         * convert.c: Likewise.
2053         * dwarf2out.c: Likewise.
2054         * final.c: Likewise.
2055         * fold-const.c: Likewise.
2056         * function.c: Likewise.
2057         * gimple-expr.c: Likewise.
2058         * gimple-fold.c: Likewise.
2059         * gimple-pretty-print.c: Likewise.
2060         * gimple.c: Likewise.
2061         * gimplify.c: Likewise.
2062         * hsa-common.c: Likewise.
2063         * hsa-gen.c: Likewise.
2064         * internal-fn.c: Likewise.
2065         * ipa-chkp.c: Likewise.
2066         * ipa-cp.c: Likewise.
2067         * ipa-devirt.c: Likewise.
2068         * ipa-fnsummary.c: Likewise.
2069         * ipa-inline.c: Likewise.
2070         * ipa-visibility.c: Likewise.
2071         * ipa.c: Likewise.
2072         * lto-cgraph.c: Likewise.
2073         * omp-expand.c: Likewise.
2074         * omp-general.c: Likewise.
2075         * omp-low.c: Likewise.
2076         * omp-offload.c: Likewise.
2077         * omp-simd-clone.c: Likewise.
2078         * opts-global.c: Likewise.
2079         * passes.c: Likewise.
2080         * predict.c: Likewise.
2081         * sancov.c: Likewise.
2082         * sanopt.c: Likewise.
2083         * symtab.c: Likewise.
2084         * toplev.c: Likewise.
2085         * trans-mem.c: Likewise.
2086         * tree-chkp.c: Likewise.
2087         * tree-eh.c: Likewise.
2088         * tree-into-ssa.c: Likewise.
2089         * tree-object-size.c: Likewise.
2090         * tree-parloops.c: Likewise.
2091         * tree-profile.c: Likewise.
2092         * tree-ssa-ccp.c: Likewise.
2093         * tree-ssa-live.c: Likewise.
2094         * tree-ssa-loop.c: Likewise.
2095         * tree-ssa-sccvn.c: Likewise.
2096         * tree-ssa-structalias.c: Likewise.
2097         * tree-ssa.c: Likewise.
2098         * tree-streamer-in.c: Likewise.
2099         * tree-vectorizer.c: Likewise.
2100         * tree-vrp.c: Likewise.
2101         * tsan.c: Likewise.
2102         * ubsan.c: Likewise.
2103         * varasm.c: Likewise.
2104         * varpool.c: Likewise.
2105         * tree.c: Remove functions moved to attribs.[ch].
2106         * tree.h: Likewise.
2107         * config/aarch64/aarch64.c: Add attrs.h header file.
2108         * config/alpha/alpha.c: Likewise.
2109         * config/arc/arc.c: Likewise.
2110         * config/arm/arm.c: Likewise.
2111         * config/avr/avr.c: Likewise.
2112         * config/bfin/bfin.c: Likewise.
2113         * config/c6x/c6x.c: Likewise.
2114         * config/cr16/cr16.c: Likewise.
2115         * config/cris/cris.c: Likewise.
2116         * config/darwin.c: Likewise.
2117         * config/epiphany/epiphany.c: Likewise.
2118         * config/fr30/fr30.c: Likewise.
2119         * config/frv/frv.c: Likewise.
2120         * config/ft32/ft32.c: Likewise.
2121         * config/h8300/h8300.c: Likewise.
2122         * config/i386/winnt.c: Likewise.
2123         * config/ia64/ia64.c: Likewise.
2124         * config/iq2000/iq2000.c: Likewise.
2125         * config/lm32/lm32.c: Likewise.
2126         * config/m32c/m32c.c: Likewise.
2127         * config/m32r/m32r.c: Likewise.
2128         * config/m68k/m68k.c: Likewise.
2129         * config/mcore/mcore.c: Likewise.
2130         * config/microblaze/microblaze.c: Likewise.
2131         * config/mips/mips.c: Likewise.
2132         * config/mmix/mmix.c: Likewise.
2133         * config/mn10300/mn10300.c: Likewise.
2134         * config/moxie/moxie.c: Likewise.
2135         * config/msp430/msp430.c: Likewise.
2136         * config/nds32/nds32-isr.c: Likewise.
2137         * config/nds32/nds32.c: Likewise.
2138         * config/nios2/nios2.c: Likewise.
2139         * config/nvptx/nvptx.c: Likewise.
2140         * config/pa/pa.c: Likewise.
2141         * config/pdp11/pdp11.c: Likewise.
2142         * config/powerpcspe/powerpcspe.c: Likewise.
2143         * config/riscv/riscv.c: Likewise.
2144         * config/rl78/rl78.c: Likewise.
2145         * config/rx/rx.c: Likewise.
2146         * config/s390/s390.c: Likewise.
2147         * config/sh/sh.c: Likewise.
2148         * config/sol2.c: Likewise.
2149         * config/sparc/sparc.c: Likewise.
2150         * config/spu/spu.c: Likewise.
2151         * config/stormy16/stormy16.c: Likewise.
2152         * config/tilegx/tilegx.c: Likewise.
2153         * config/tilepro/tilepro.c: Likewise.
2154         * config/v850/v850.c: Likewise.
2155         * config/vax/vax.c: Likewise.
2156         * config/visium/visium.c: Likewise.
2157         * config/xtensa/xtensa.c: Likewise.
2159 2017-08-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
2161         PR target/81593
2162         * config/rs6000/vsx.md (vsx_concat_<mode>, VSX_D): Cleanup
2163         constraints since the -mupper-regs-* switches have been
2164         eliminated.
2165         (vsx_concat_<mode>_1): New combiner insns to recognize inserting
2166         into a vector from a double word element that was extracted from
2167         another vector, and eliminate extra XXPERMDI instructions.
2168         (vsx_concat_<mode>_2): Likewise.
2169         (vsx_concat_<mode>_3): Likewise.
2170         (vsx_set_<mode>, VSX_D): Rewrite vector set in terms of vector
2171         concat to allow optimizing inserts from previous extracts.
2173 2017-08-07  Uros Bizjak  <ubizjak@gmail.com>
2175         * config/i386/i386.c (ix86_stack_protect_guard): Generate
2176         memory reference to a SSP offset in TLS address space.
2177         (ix86_print_operand) <case '@'>: Remove.
2178         (ix86_print_operand_punct_valid_p): Remove '@' code.
2179         * config/i386/i386.md (unspec): Remove UNSPEC_SP_TLS_SET and
2180         UNSPEC_SP_TLS_TEST.
2181         (stack_tls_protect_set_<mode>): Remove.
2182         (stack_protect_set): Do not call gen_stack_tls_protect_set_<mode>.
2183         (stack_tls_protect_test_<mode>): Remove.
2184         (stack_protect_test): Do not call gen_stack_tls_protect_test_<mode>.
2186 2017-08-07  Olivier Hainque  <hainque@adacore.com>
2188         PR target/81755
2189         * config/vxworksae.h (VXWORKS_HAVE_TLS): Define.
2191 2017-08-07  Douglas Rupp  <rupp@adacore.com>
2193         * Makefile.in (install-mkheaders): Fix typo, where the multi_dir
2194         variable was referenced as multidir in command.
2196 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
2198         PR c/69389
2199         * gimplify.c (goa_stabilize_expr): Handle BIT_INSERT_EXPR and
2200         BIT_FIELD_REF.
2202 2017-08-07  Martin Liska  <mliska@suse.cz>
2204         * config/m32c/m32c.c: Add include of stringpool.h and attribs.h.
2205         * config/rl78/rl78.c: Add include of attribs.h.
2206         * config/sh/sh.c: Likewise.
2207         * config/v850/v850.c: Likewise.
2209 2017-08-07  Tom de Vries  <tom@codesourcery.com>
2211         PR middle-end/78266
2212         * omp-expand.c (expand_oacc_for): Ensure diff_type is large enough.
2214 2017-08-07  Martin Liska  <mliska@suse.cz>
2216         * config/mips/mips.c: Include attribs.h.
2218 2017-08-07  Thomas Koenig  <tkoenig@gcc.gnu.org>
2220         PR fortran/68829
2221         * doc/invoke.texi: Document change in behvaior for -Ofast for
2222         Fortran.
2224 2017-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
2226         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg):
2227         Use gen_frame_mem.
2228         (aarch64_pop_regs): Likewise.
2229         (aarch64_gen_load_pair): Likewise.
2230         (aarch64_save_callee_saves): Likewise.
2231         (aarch64_restore_callee_saves): Likewise.
2233 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2235         * config/i386/i386.c: Revert the last change.
2237 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2239         PR target/81736
2240         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Renamed
2241         to ...
2242         (ix86_finalize_stack_frame_flags): This.  Also clear
2243         frame_pointer_needed if -fno-omit-frame-pointer is used without
2244         stack access.
2245         (ix86_expand_prologue): Replace ix86_finalize_stack_realign_flags
2246         with ix86_finalize_stack_frame_flags.
2247         (ix86_expand_epilogue): Likewise.
2248         (ix86_expand_split_stack_prologue): Likewise.
2250 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2252         PR target/81743
2253         * config/i386/i386.c (get_builtin_code_for_version): Set priority
2254         to P_AES for Westmere.
2256 2017-08-07  Jonathan Yong  <10walls@gmail.com>
2258         * config/i386/mingw.opt (fset-stack-executable): Removed.
2259         * config/i386/cygming.opt (fset-stack-executable): Moved
2260         from mingw.opt.
2261         * config/i386/cygwin.h: Define CHECK_EXECUTE_STACK_ENABLED.
2263 2017-08-07  Segher Boessenkool  <segher@kernel.crashing.org>
2265         * print-rtl.c (print_exp): Print NOT as "~" instead of as "!".
2267 2017-08-07  Marek Polacek  <polacek@redhat.com>
2269         PR middle-end/81737
2270         * fold-const.c (fold_indirect_ref_1): Check type_domain.
2272 2017-08-07  Martin Liska  <mliska@suse.cz>
2274         * attribs.h (canonicalize_attr_name): New function.
2275         (cmp_attribs): Move from c-format.c and adjusted.
2276         (is_attribute_p): Moved from tree.h.
2277         * tree-inline.c: Add new includes.
2278         * tree.c (cmp_attrib_identifiers): Use cmp_attribs.
2279         (private_is_attribute_p): Remove.
2280         (private_lookup_attribute): Likewise.
2281         (private_lookup_attribute_by_prefix): Simplify.
2282         (remove_attribute): Use is_attribute_p.
2283         * tree.h: Remove removed declarations.
2285 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
2287         PR middle-end/81698
2288         * stmt.c (emit_case_dispatch_table): Add DEFAULT_EDGE argument,
2289         instead of computing it in the function.  Formatting fix.
2290         (expand_case): Don't rely on default_edge being the first edge,
2291         clear it if removing it, pass default_edge to
2292         emit_case_dispatch_table.
2293         (expand_sjlj_dispatch_table): Pass NULL as DEFAULT_EDGE, formatting
2294         fix.
2296 2017-08-06  Uros Bizjak  <ubizjak@gmail.com>
2298         * config/alpha/alpha.c (alpha_reorg): If trap is the last active
2299         insn in the function, emit NOP after the insn.
2301 2017-08-06  Tom de Vries  <tom@codesourcery.com>
2303         * omp-expand.c (expand_oacc_for): Add missing edge probability for tile
2304         and element loops.
2306 2017-08-06  Tom de Vries  <tom@codesourcery.com>
2308         * omp-expand.c (expand_oacc_for): Add missing edge probability for chunk
2309         loop.
2311 2017-08-04  Yury Gribov  <tetra2005@gmail.com>
2313         PR tree-optimization/57371
2314         * match.pd: New pattern.
2316 2017-08-04  Marek Polacek  <polacek@redhat.com>
2318         PR middle-end/81695
2319         * fold-const.c (fold_indirect_ref_1): For ((int *)&a + 4 -> a[1],
2320         perform the computation in offset_int.
2322 2017-08-04  Richard Sandiford  <richard.sandiford@linaro.org>
2324         PR tree-optimization/81136
2325         * tree-vectorizer.h: Include tree-hash-traits.h.
2326         (vec_base_alignments): New typedef.
2327         (vec_info): Add a base_alignments field.
2328         (vect_record_base_alignments): Declare.
2329         * tree-data-ref.h (data_reference): Add an is_conditional_in_stmt
2330         field.
2331         (DR_IS_CONDITIONAL_IN_STMT): New macro.
2332         (create_data_ref): Add an is_conditional_in_stmt argument.
2333         * tree-data-ref.c (create_data_ref): Likewise.  Use it to initialize
2334         the is_conditional_in_stmt field.
2335         (data_ref_loc): Add an is_conditional_in_stmt field.
2336         (get_references_in_stmt): Set the is_conditional_in_stmt field.
2337         (find_data_references_in_stmt): Update call to create_data_ref.
2338         (graphite_find_data_references_in_stmt): Likewise.
2339         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
2340         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
2341         (vect_record_base_alignment): New function.
2342         (vect_record_base_alignments): Likewise.
2343         (vect_compute_data_ref_alignment): Adjust base_addr and aligned_to
2344         for nested statements even if we fail to compute a misalignment.
2345         Use pooled base alignments for unconditional references.
2346         (vect_find_same_alignment_drs): Compare base addresses instead
2347         of base objects.
2348         (vect_analyze_data_refs_alignment): Call vect_record_base_alignments.
2349         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
2351 2017-08-04  Richard Sandiford  <richard.sandiford@linaro.org>
2353         * tree-vectorizer.h (vec_info): Add a constructor and destructor.
2354         Add an explicit name for the enum.  Use auto_vec for slp_instances
2355         and grouped_stores.
2356         (_loop_vec_info): Add a constructor and destructor.  Use auto_vec
2357         for all vectors.
2358         (_bb_vec_info): Add a constructor and destructor.
2359         (vinfo_for_stmt): Return NULL for uids of -1 as well.
2360         (destroy_loop_vec_info): Delete.
2361         (vect_destroy_datarefs): Likewise.
2362         * tree-vectorizer.c (vect_destroy_datarefs): Delete.
2363         (vec_info::vec_info): New function.
2364         (vec_info::~vec_info): Likewise.
2365         (vectorize_loops): Use delete instead of destroy_loop_vec_info.
2366         * tree-parloops.c (gather_scalar_reductions): Use delete instead of
2367         destroy_loop_vec_info.
2368         * tree-vect-loop.c (new_loop_vec_info): Replace with...
2369         (_loop_vec_info::_loop_vec_info): ...this.
2370         (destroy_loop_vec_info): Replace with...
2371         (_loop_vec_info::~_loop_vec_info): ...this.  Unconditionally delete
2372         the stmt_vec_infos.  Leave handling of vec_info information to its
2373         destructor.  Remove explicit vector releases.
2374         (vect_analyze_loop_form): Use new instead of new_loop_vec_info.
2375         (vect_analyze_loop): Use delete instead of destroy_loop_vec_info.
2376         * tree-vect-slp.c (new_bb_vec_info): Replace with...
2377         (_bb_vec_info::_bb_vec_info): ...this.  Don't reserve space in
2378         BB_VINFO_GROUPED_STORES or BB_VINFO_SLP_INSTANCES.
2379         (destroy_bb_vec_info): Replace with...
2380         (_bb_vec_info::~_bb_vec_info): ...this.  Leave handling of vec_info
2381         information to its destructor.
2382         (vect_slp_analyze_bb_1): Use new and delete instead of
2383         new_bb_vec_info and destroy_bb_vec_info.
2384         (vect_slp_bb): Replace 2 calls to destroy_bb_vec_info with a
2385         single delete.
2387 2017-08-04  Richard Sandiford  <richard.sandiford@linaro.org>
2389         * tree-data-ref.h (subscript): Add access_fn field.
2390         (data_dependence_relation): Add could_be_independent_p.
2391         (SUB_ACCESS_FN, DDR_COULD_BE_INDEPENDENT_P): New macros.
2392         (same_access_functions): Move to tree-data-ref.c.
2393         * tree-data-ref.c (ref_contains_union_access_p): New function.
2394         (access_fn_component_p): Likewise.
2395         (access_fn_components_comparable_p): Likewise.
2396         (dr_analyze_indices): Add a reference to access_fn_component_p.
2397         (dump_data_dependence_relation): Use SUB_ACCESS_FN instead of
2398         DR_ACCESS_FN.
2399         (constant_access_functions): Likewise.
2400         (add_other_self_distances): Likewise.
2401         (same_access_functions): Likewise.  (Moved from tree-data-ref.h.)
2402         (initialize_data_dependence_relation): Use XCNEW and remove
2403         explicit zeroing of DDR_REVERSED_P.  Look for a subsequence
2404         of access functions that have the same type.  Allow the
2405         subsequence to end with different bases in some circumstances.
2406         Record the chosen access functions in SUB_ACCESS_FN.
2407         (build_classic_dist_vector_1): Replace ddr_a and ddr_b with
2408         a_index and b_index.  Use SUB_ACCESS_FN instead of DR_ACCESS_FN.
2409         (subscript_dependence_tester_1): Likewise dra and drb.
2410         (build_classic_dist_vector): Update calls accordingly.
2411         (subscript_dependence_tester): Likewise.
2412         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Check
2413         DDR_COULD_BE_INDEPENDENT_P.
2414         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Test
2415         comp_alias_ddrs instead of may_alias_ddrs.
2416         * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
2417         New function.
2418         (vect_analyze_data_ref_dependence): Use it if
2419         DDR_COULD_BE_INDEPENDENT_P, but fall back to using the recorded
2420         distance vectors if that fails.
2421         (dependence_distance_ge_vf): New function.
2422         (vect_prune_runtime_alias_test_list): Use it.  Don't clear
2423         LOOP_VINFO_MAY_ALIAS_DDRS.
2425 2017-08-04  Richard Biener  <rguenther@suse.de>
2427         PR middle-end/81705
2428         * fold-const.c (fold_binary_loc): Properly restrict
2429         minus_var0 && minus_var1 case when associating undefined overflow
2430         entities.
2432 2017-08-04  Tom de Vries  <tom@codesourcery.com>
2434         * omp-simd-clone.c (simd_clone_adjust): Add missing edge probability.
2436 2017-08-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2438         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2439         Don't start diagnostic messages with a capital letter.
2440         * config/rs6000/rs6000.c (rs6000_option_override_internal):
2441         Likewise.
2442         (rs6000_invalid_builtin): Likewise.
2443         (rs6000_trampoline_init): Likewise.
2445 2017-08-03  Jakub Jelinek  <jakub@redhat.com>
2447         PR target/81621
2448         * bb-reorder.c (pass_partition_blocks::execute): Return TODO_df_finish
2449         after setting changeable df flags.
2451 2017-08-03  Richard Biener  <rguenther@suse.de>
2453         * tree-ssa-reassoc.c (should_break_up_subtract): Also break
2454         up if the use is in USE - X.
2456 2017-08-03  Alexander Monakov  <amonakov@ispras.ru>
2458         * toplev.c (dumpfile.h): New include.
2459         (internal_error_reentered): New static function.  Use it...
2460         (internal_error_function): ...here to handle reentered internal_error.
2462 2017-08-03  Richard Biener  <rguenther@suse.de>
2464         PR middle-end/81148
2465         * fold-const.c (split_tree): Add minus_var and minus_con
2466         arguments, remove unused loc arg.  Never generate NEGATE_EXPRs
2467         here but always use minus_*.
2468         (associate_trees): Assert we never associate with MINUS_EXPR
2469         and NULL first operand.  Do not recurse for PLUS_EXPR operands
2470         when associating as MINUS_EXPR either.
2471         (fold_binary_loc): Track minus_var and minus_con.
2473 2017-08-03  Tom de Vries  <tom@codesourcery.com>
2475         PR lto/81430
2476         * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers): If
2477         ACCEL_COMPILER, apply finish_options on
2478         DECL_FUNCTION_SPECIFIC_OPTIMIZATION.
2480 2017-08-03  Tom de Vries  <tom@codesourcery.com>
2482         PR target/81662
2483         * config/nvptx/nvptx.c (nvptx_option_override): Emit sorry if
2484         function_entry_patch_area_size > 0.
2486 2017-08-03  Jakub Jelinek  <jakub@redhat.com>
2488         PR driver/81650
2489         * calls.c (alloc_max_size): Use HOST_WIDE_INT_UC (10??)
2490         instead of 10??LU, perform unit multiplication in wide_int,
2491         don't change alloc_object_size_limit if the limit is larger
2492         than SSIZE_MAX.
2494         PR tree-optimization/81655
2495         PR tree-optimization/81588
2496         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle also
2497         the case when ranges[i].low and high are 1 for unsigned type with
2498         precision 1.
2500         PR middle-end/81052
2501         * omp-low.c (diagnose_sb_0): Handle flag_openmp_simd like flag_openmp.
2502         (pass_diagnose_omp_blocks::gate): Enable also for flag_openmp_simd.
2504 2017-08-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2506         * tree-vrp.h: Add include guard.
2508 2017-08-02  Uros Bizjak  <ubizjak@gmail.com>
2510         PR target/81644
2511         * config/i386/i386.md (unspecv): Add UNSPECV_UD2.
2512         (ud2): New insn pattern.
2513         * config/i386/i386.c (ix86_expand_epilogue):
2514         For naked functions, generate ud2 instead of trap insn.
2516 2017-08-02  Marek Polacek  <polacek@redhat.com>
2518         PR other/81667
2519         * alloc-pool.h (base_pool_allocator): Initialize m_elt_size.
2521 2017-08-02  Tom de Vries  <tom@codesourcery.com>
2522             Cesar Philippidis  <cesar@codesourcery.com>
2524         * config/nvptx/nvptx.c (nvptx_lockless_update, nvptx_lockfull_update):
2525         Add missing edge probabilities.
2527 2017-08-02  Tamar Christina  <tamar.christina@arm.com>
2529         * config/aarch64/aarch64.c (aarch64_reinterpret_float_as_int):
2530         Correct endianness.
2532 2017-08-02  Jakub Jelinek  <jakub@redhat.com>
2534         PR middle-end/79499
2535         * function.c (thread_prologue_and_epilogue_insns): Determine blocks
2536         for find_many_sub_basic_blocks bitmap by looking up BLOCK_FOR_INSN
2537         of first NONDEBUG_INSN_P in each of the split_prologue_seq and
2538         prologue_seq sequences - if any.
2540 2017-08-02  Richard Biener  <rguenther@suse.de>
2542         * tree-vect-stmts.c (vectorizable_store): Perform vector extracts
2543         via vectors if supported, integer extracts via punning if supported
2544         or otherwise vector extracts.
2546 2017-08-02  Richard Biener  <rguenther@suse.de>
2548         * tree-ssa-pre.c (bitmap_insert_into_set_1): Remove and inline
2549         into ...
2550         (bitmap_insert_into_set): ... this.
2552 2017-08-02  Richard Biener  <rguenther@suse.de>
2554         PR tree-optimization/81633
2555         Revert
2556         2015-08-17  Alan Hayward  <alan.hayward@arm.com>
2558         PR tree-optimization/71752
2559         * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
2561 2017-08-01  Daniel Santos  <daniel.santos@pobox.com>
2563         * config/i386/i386.h (ix86_frame::outlined_save_offset): Remove field.
2564         (machine_function::call_ms2sysv_pad_out): Remove field.
2565         * config/i386/i386.c (xlogue_layout::get_stack_space_used): Modify.
2566         (ix86_compute_frame_layout): Likewise.
2568 2017-08-01  H.J. Lu  <hongjiu.lu@intel.com>
2570         PR target/81654
2571         * config/i386/i386.c (ix86_set_func_type): Disallow naked
2572         attribute with interrupt attribute.
2574 2017-08-01  Andrew Pinski  <apinski@cavium.com>
2576         * tree-ssa-scopedtables.c (hashable_expr_equal_p): Check
2577         BIT_INSERT_EXPR's operand 1
2578         to see if the types precision matches.
2580 2017-08-01  Martin Liska  <mliska@suse.cz>
2582         PR middle-end/70140
2583         * builtins.c (expand_builtin_memcpy_args): Remove.
2584         (expand_builtin_memcpy): Call newly added function
2585         expand_builtin_memory_copy_args.
2586         (expand_builtin_memcpy_with_bounds): Likewise.
2587         (expand_builtin_mempcpy): Remove last argument.
2588         (expand_builtin_mempcpy_with_bounds): Likewise.
2589         (expand_builtin_memory_copy_args): New function created from
2590         expand_builtin_mempcpy_args with small modifications.
2591         (expand_builtin_mempcpy_args): Remove.
2592         (expand_builtin_stpcpy): Remove unused argument.
2593         (expand_builtin): Likewise.
2594         (expand_builtin_with_bounds): Likewise.
2596 2017-08-01  Martin Liska  <mliska@suse.cz>
2598         Revert r250771
2599         Make mempcpy more optimal (PR middle-end/70140).
2601 2017-08-01  Jakub Jelinek  <jakub@redhat.com>
2603         PR target/81622
2604         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): For
2605         __builtin_vec_cmpne verify both arguments are compatible vectors
2606         before looking at TYPE_MODE on the element type.  For __builtin_vec_ld
2607         verify arg1_type is a pointer or array type.  For __builtin_vec_st,
2608         move computation of aligned to after checking the argument types.
2609         Formatting fixes.
2611         PR target/80846
2612         * config/rs6000/vsx.md (vextract_fp_from_shorth,
2613         vextract_fp_from_shortl): Add element mode after mode in gen_vec_init*
2614         calls.
2616 2017-08-01  Jerome Lambourg  <lambourg@adacore.com>
2617             Doug Rupp  <rupp@adacore.com>
2618             Olivier Hainque  <hainque@adacore.com>
2620         * config.gcc (arm-wrs-vxworks*): Rework to handle arm-wrs-vxworks7 as
2621         well as arm-wrs-vxworks. Update target_cpu_name from arm6 (arch v3) to
2622         arm8 (arch v4).
2623         * config/arm/vxworks.h (MAYBE_TARGET_BPABI_CPP_BUILTINS): New, helper
2624         for TARGET_OS_CPP_BUILTIN.
2625         (TARGET_OS_CPP_BUILTIN): Invoke MAYBE_TARGET_BPABI_CPP_BUILTINS(),
2626         refine CPU definitions for arm_arch5 and add those for arm_arch6 and
2627         arm_arch7.
2628         (MAYBE_ASM_ABI_SPEC): New, helper for SUBTARGET_EXTRA_ASM_SPEC,
2629         passing required abi options to the assembler for EABI configurations.
2630         (EXTRA_CC1_SPEC): New macro, to help prevent the implicit production
2631         of .text.hot and .text.unlikely sections for kernel modules when
2632         using ARM style exceptions.
2633         (CC1_SPEC): Remove obsolete attempt at mimicking Diab toolchain
2634         options. Add EXTRA_CC1_SPEC.
2635         (VXWORKS_ENDIAN_SPEC): Adjust comment and remove handling of Diab
2636         toolchain options.
2637         (DWARF2_UNWIND_INFO): Redefine to handle the pre/post VxWorks 7
2638         transition.
2639         (ARM_TARGET2_DWARF_FORMAT): Define.
2640         * config/arm/t-vxworks: Adjust multilib control to removal of the
2641         Diab command line options.
2643 2017-08-01  Martin Liska  <mliska@suse.cz>
2645         PR gcov-profile/81561
2646         * gcov.c (unblock): Make unblocking safe as we need to preserve
2647         index correspondence of blocks and block_lists.
2649 2017-08-01  Richard Biener  <rguenther@suse.de>
2651         PR tree-optimization/81181
2652         * tree-ssa-pre.c (compute_antic_aux): Defer clean() to ...
2653         (compute_antic): ... end of iteration here.
2655 2017-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
2657         * common.opt (ftree-vectorize): No longer set flag_tree_vectorize.
2658         (ftree-loop-vectorize): Set as EnabledBy ftree-vectorize.
2659         (ftree-slp-vectorize): Likewise.
2660         * omp-expand (expand_omp_simd): Remove flag_tree_vectorize, as it
2661         can no longer be set independent of flag_tree_loop_vectorize.
2662         * omp-general.c (emp_max_vf): Likewise.
2663         * opts.c (enable_fdo_optimizations): Remove references to
2664         flag_tree_vectorize, these are now implicit.
2665         (common_handle_option): Remove handling for OPT_ftree_vectorize,
2666         and leave it for the options machinery.
2668 2017-08-01  Martin Liska  <mliska@suse.cz>
2670         PR middle-end/70140
2671         * builtins.c (expand_builtin_memcpy_args): Remove.
2672         (expand_builtin_memcpy): Call newly added function
2673         expand_builtin_memory_copy_args.
2674         (expand_builtin_memcpy_with_bounds): Likewise.
2675         (expand_builtin_mempcpy): Remove last argument.
2676         (expand_builtin_mempcpy_with_bounds): Likewise.
2677         (expand_builtin_memory_copy_args): New function created from
2678         expand_builtin_mempcpy_args with small modifications.
2679         (expand_builtin_mempcpy_args): Remove.
2680         (expand_builtin_stpcpy): Remove unused argument.
2681         (expand_builtin): Likewise.
2682         (expand_builtin_with_bounds): Likewise.
2684 2017-08-01  Uros Bizjak  <ubizjak@gmail.com>
2686         PR target/81641
2687         * config/i386/i386.c (ix86_print_operand_address_as): For -masm=intel
2688         print "ds:" only for immediates in generic address space.
2690 2017-08-01  Uros Bizjak  <ubizjak@gmail.com>
2692         PR target/81639
2693         * config/i386/i386.c (ix86_funciton_naked): New prototype.
2694         (ix86_function_ok_for_sibcall): Return false for naked functions.
2696 2017-08-01  Richard Biener  <rguenther@suse.de>
2698         * tree-ssa-pre.c (print_pre_expr): Handle NULL expr.
2699         (compute_antic): Seed worklist with exit block predecessors.
2700         * cfganal.c (dfs_find_deadend): For a cycle return the source
2701         of the edge closing it.
2703 2017-08-01  Tamar Christina  <tamar.christina@arm.com>
2705         * config/aarch64/aarch64.c
2706         (aarch64_can_const_movi_rtx_p): Move 0 check.
2708 2017-08-01  Bin Cheng  <bin.cheng@arm.com>
2710         * tree.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Delete.
2711         * fold-const.c (fold_comparison, fold_binary_loc): Delete use of
2712         above macro.
2713         * match.pd: Ditto in address comparison pattern.
2715 2017-08-01  Bin Cheng  <bin.cheng@arm.com>
2717         PR tree-optimization/81627
2718         * tree-predcom.c (prepare_finalizers): Always rewrite into loop
2719         closed ssa form for store-store chain.
2721 2017-08-01  Bin Cheng  <bin.cheng@arm.com>
2723         PR tree-optimization/81620
2724         * tree-predcom.c (add_ref_to_chain): Don't set has_max_use_after
2725         for store-store chain.
2727 2017-08-01  Jakub Jelinek  <jakub@redhat.com>
2729         PR tree-optimization/81588
2730         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): If
2731         ranges[i].in_p, invert comparison code ccode.  For >/>=,
2732         swap rhs1 and rhs2 and comparison code unconditionally,
2733         for </<= don't do that.  Don't swap rhs1/rhs2 again if
2734         ranges[i].in_p, instead invert comparison code ccode if
2735         opcode or oe->rank is BIT_IOR_EXPR.
2737         PR target/80846
2738         * optabs.def (vec_extract_optab, vec_init_optab): Change from
2739         a direct optab to conversion optab.
2740         * optabs.c (expand_vector_broadcast): Use convert_optab_handler
2741         with GET_MODE_INNER as last argument instead of optab_handler.
2742         * expmed.c (extract_bit_field_1): Likewise.  Use vector from
2743         vector extraction if possible and optab is available.
2744         * expr.c (store_constructor): Use convert_optab_handler instead
2745         of optab_handler.  Use vector initialization from smaller
2746         vectors if possible and optab is available.
2747         * tree-vect-stmts.c (vectorizable_load): Likewise.
2748         * doc/md.texi (vec_extract, vec_init): Document that the optabs
2749         now have two modes.
2750         * config/i386/i386.c (ix86_expand_vector_init): Handle expansion
2751         of vec_init from half-sized vectors with the same element mode.
2752         * config/i386/sse.md (ssehalfvecmode): Add V4TI case.
2753         (ssehalfvecmodelower, ssescalarmodelower): New mode attributes.
2754         (reduc_plus_scal_v8df, reduc_plus_scal_v4df, reduc_plus_scal_v2df,
2755         reduc_plus_scal_v16sf, reduc_plus_scal_v8sf, reduc_plus_scal_v4sf,
2756         reduc_<code>_scal_<mode>, reduc_umin_scal_v8hi): Add element mode
2757         after mode in gen_vec_extract* calls.
2758         (vec_extract<mode>): Renamed to ...
2759         (vec_extract<mode><ssescalarmodelower>): ... this.
2760         (vec_extract<mode><ssehalfvecmodelower>): New expander.
2761         (rotl<mode>3, rotr<mode>3, <shift_insn><mode>3, ashrv2di3): Add
2762         element mode after mode in gen_vec_init* calls.
2763         (VEC_INIT_HALF_MODE): New mode iterator.
2764         (vec_init<mode>): Renamed to ...
2765         (vec_init<mode><ssescalarmodelower>): ... this.
2766         (vec_init<mode><ssehalfvecmodelower>): New expander.
2767         * config/i386/mmx.md (vec_extractv2sf): Renamed to ...
2768         (vec_extractv2sfsf): ... this.
2769         (vec_initv2sf): Renamed to ...
2770         (vec_initv2sfsf): ... this.
2771         (vec_extractv2si): Renamed to ...
2772         (vec_extractv2sisi): ... this.
2773         (vec_initv2si): Renamed to ...
2774         (vec_initv2sisi): ... this.
2775         (vec_extractv4hi): Renamed to ...
2776         (vec_extractv4hihi): ... this.
2777         (vec_initv4hi): Renamed to ...
2778         (vec_initv4hihi): ... this.
2779         (vec_extractv8qi): Renamed to ...
2780         (vec_extractv8qiqi): ... this.
2781         (vec_initv8qi): Renamed to ...
2782         (vec_initv8qiqi): ... this.
2783         * config/rs6000/vector.md (VEC_base_l): New mode attribute.
2784         (vec_init<mode>): Renamed to ...
2785         (vec_init<mode><VEC_base_l>): ... this.
2786         (vec_extract<mode>): Renamed to ...
2787         (vec_extract<mode><VEC_base_l>): ... this.
2788         * config/rs6000/paired.md (vec_initv2sf): Renamed to ...
2789         (vec_initv2sfsf): ... this.
2790         * config/rs6000/altivec.md (splitter, altivec_copysign_v4sf3,
2791         vec_unpacku_hi_v16qi, vec_unpacku_hi_v8hi, vec_unpacku_lo_v16qi,
2792         vec_unpacku_lo_v8hi, mulv16qi3, altivec_vreve<mode>2): Add
2793         element mode after mode in gen_vec_init* calls.
2794         * config/aarch64/aarch64-simd.md (vec_init<mode>): Renamed to ...
2795         (vec_init<mode><Vel>): ... this.
2796         (vec_extract<mode>): Renamed to ...
2797         (vec_extract<mode><Vel>): ... this.
2798         * config/aarch64/iterators.md (Vel): New mode attribute.
2799         * config/s390/s390.c (s390_expand_vec_strlen, s390_expand_vec_movstr):
2800         Add element mode after mode in gen_vec_extract* calls.
2801         * config/s390/vector.md (non_vec_l): New mode attribute.
2802         (vec_extract<mode>): Renamed to ...
2803         (vec_extract<mode><non_vec_l>): ... this.
2804         (vec_init<mode>): Renamed to ...
2805         (vec_init<mode><non_vec_l>): ... this.
2806         * config/s390/s390-builtins.def (s390_vlgvb, s390_vlgvh, s390_vlgvf,
2807         s390_vlgvf_flt, s390_vlgvg, s390_vlgvg_dbl): Add element mode after
2808         vec_extract mode.
2809         * config/arm/iterators.md (V_elem_l): New mode attribute.
2810         * config/arm/neon.md (vec_extract<mode>): Renamed to ...
2811         (vec_extract<mode><V_elem_l>): ... this.
2812         (vec_extractv2di): Renamed to ...
2813         (vec_extractv2didi): ... this.
2814         (vec_init<mode>): Renamed to ...
2815         (vec_init<mode><V_elem_l>): ... this.
2816         (reduc_plus_scal_<mode>, reduc_plus_scal_v2di, reduc_smin_scal_<mode>,
2817         reduc_smax_scal_<mode>, reduc_umin_scal_<mode>,
2818         reduc_umax_scal_<mode>, neon_vget_lane<mode>, neon_vget_laneu<mode>):
2819         Add element mode after gen_vec_extract* calls.
2820         * config/mips/mips-msa.md (vec_init<mode>): Renamed to ...
2821         (vec_init<mode><unitmode>): ... this.
2822         (vec_extract<mode>): Renamed to ...
2823         (vec_extract<mode><unitmode>): ... this.
2824         * config/mips/loongson.md (vec_init<mode>): Renamed to ...
2825         (vec_init<mode><unitmode>): ... this.
2826         * config/mips/mips-ps-3d.md (vec_initv2sf): Renamed to ...
2827         (vec_initv2sfsf): ... this.
2828         (vec_extractv2sf): Renamed to ...
2829         (vec_extractv2sfsf): ... this.
2830         (reduc_plus_scal_v2sf, reduc_smin_scal_v2sf, reduc_smax_scal_v2sf):
2831         Add element mode after gen_vec_extract* calls.
2832         * config/mips/mips.md (unitmode): New mode iterator.
2833         * config/spu/spu.c (spu_expand_prologue, spu_allocate_stack,
2834         spu_builtin_extract): Add element mode after gen_vec_extract* calls.
2835         * config/spu/spu.md (inner_l): New mode attribute.
2836         (vec_init<mode>): Renamed to ...
2837         (vec_init<mode><inner_l>): ... this.
2838         (vec_extract<mode>): Renamed to ...
2839         (vec_extract<mode><inner_l>): ... this.
2840         * config/sparc/sparc.md (veltmode): New mode iterator.
2841         (vec_init<VMALL:mode>): Renamed to ...
2842         (vec_init<VMALL:mode><VMALL:veltmode>): ... this.
2843         * config/ia64/vect.md (vec_initv2si): Renamed to ...
2844         (vec_initv2sisi): ... this.
2845         (vec_initv2sf): Renamed to ...
2846         (vec_initv2sfsf): ... this.
2847         (vec_extractv2sf): Renamed to ...
2848         (vec_extractv2sfsf): ... this.
2849         * config/powerpcspe/vector.md (VEC_base_l): New mode attribute.
2850         (vec_init<mode>): Renamed to ...
2851         (vec_init<mode><VEC_base_l>): ... this.
2852         (vec_extract<mode>): Renamed to ...
2853         (vec_extract<mode><VEC_base_l>): ... this.
2854         * config/powerpcspe/paired.md (vec_initv2sf): Renamed to ...
2855         (vec_initv2sfsf): ... this.
2856         * config/powerpcspe/altivec.md (splitter, altivec_copysign_v4sf3,
2857         vec_unpacku_hi_v16qi, vec_unpacku_hi_v8hi, vec_unpacku_lo_v16qi,
2858         vec_unpacku_lo_v8hi, mulv16qi3): Add element mode after mode in
2859         gen_vec_init* calls.
2861 2017-08-01  Richard Biener  <rguenther@suse.de>
2863         PR tree-optimization/81297
2864         * tree-vrp.c (get_single_symbol): Remove assert, instead drop
2865         TREE_OVERFLOW from INTEGER_CSTs.
2867 2017-07-31  Segher Boessenkool  <segher@kernel.crashing.org>
2869         * config/rs6000/rs6000.c (enum rs6000_reg_type): Delete trailing comma.
2871 2017-07-31  Carl Love  <cel@us.ibm.com>
2873         * config/rs6000/rs6000-c: Add support for built-in functions
2874         vector signed char vec_xl_be (signed long long, signed char *);
2875         vector unsigned char vec_xl_be (signed long long, unsigned char *);
2876         vector signed int vec_xl_be (signed long long, signed int *);
2877         vector unsigned int vec_xl_be (signed long long, unsigned int *);
2878         vector signed long long vec_xl_be (signed long long, signed long long *);
2879         vector unsigned long long vec_xl_be (signed long long, unsigned long long *);
2880         vector signed short vec_xl_be (signed long long, signed short *);
2881         vector unsigned short vec_xl_be (signed long long, unsigned short *);
2882         vector double vec_xl_be (signed long long, double *);
2883         vector float vec_xl_be (signed long long, float *);
2884         * config/rs6000/altivec.h (vec_xl_be): Add #define.
2885         * config/rs6000/rs6000-builtin.def (XL_BE_V16QI, XL_BE_V8HI, XL_BE_V4SI)
2886         XL_BE_V2DI, XL_BE_V4SF, XL_BE_V2DF, XL_BE): Add definitions
2887         for the builtins.
2888         * config/rs6000/rs6000.c (altivec_expand_xl_be_builtin): Add function.
2889         (altivec_expand_builtin): Add switch statement to call
2890         altivec_expand_xl_be for each builtin.
2891         (altivec_init_builtins): Add def_builtin for _builtin_vsx_le_be_v8hi,
2892         __builtin_vsx_le_be_v4si, __builtin_vsx_le_be_v2di,
2893         __builtin_vsx_le_be_v4sf, __builtin_vsx_le_be_v2df,
2894         __builtin_vsx_le_be_v16qi.
2895         * doc/extend.texi: Update the built-in documentation file for the
2896         new built-in functions.
2898 2017-07-31  Uros Bizjak  <ubizjak@gmail.com>
2900         PR target/25967
2901         * config/i386/i386.c (ix86_allocate_stack_slots_for_args):
2902         New function.
2903         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
2905 2017-07-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2907         * config.gcc: Add z14.
2908         * config/s390/driver-native.c (s390_host_detect_local_cpu): Add
2909         CPU model numbers for z13s and z14.
2910         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Replace
2911         arch12 with z14.
2912         * config/s390/s390-opts.h (enum processor_type): Rename
2913         PROCESSOR_ARCH12 to PROCESSOR_3906_Z14.
2914         * config/s390/s390.c (processor_table): Add field for CPU name to
2915         be passed to Binutils.
2916         (s390_asm_output_machine_for_arch): Use the new field in
2917         processor_table for Binutils.
2918         (s390_expand_builtin): Replace arch12 with z14.
2919         (s390_issue_rate): Rename PROCESSOR_ARCH12 to PROCESSOR_3906_Z14.
2920         (s390_get_sched_attrmask): Likewise.
2921         (s390_get_unit_mask): Likewise.
2922         * config/s390/s390.opt: Add z14 to processor_type enum.
2924 2017-07-31  Martin Jambor  <mjambor@suse.cz>
2926         PR hsa/81477
2927         * ipa-fnsummary.c (ipa_fn_summary_generate): Set versionable
2928         regardless of optimization level.
2930 2017-07-31  Jan Hubicka <hubicka@ucw.cz>
2931             Martin Liska  <mliska@suse.cz>
2933         * predict.def: Remove old comment and adjust probability.
2934         * gimplify.c (should_warn_for_implicit_fallthrough): Ignore
2935         PREDICT statements.
2937 2017-07-31  Uros Bizjak  <ubizjak@gmail.com>
2939         PR target/25967
2940         * config/i386/i386.c (ix86_function_naked): New function.
2941         (ix86_can_use_return_insn_p): Return false for naked functions.
2942         (ix86_expand_prologue): Skip prologue for naked functions.
2943         (ix86_expand_epilogue): Skip epilogue for naked functions
2944         and emit trap instruction.
2945         (ix86_warn_func_return): New function.
2946         (ix86_attribute_table): Add "naked" attribute specification.
2947         (TARGET_WARN_FUNC_RETURN): Define.
2948         * doc/extend.texi (x86 Function Attributes) <naked>: Document it.
2950 2017-07-31  Martin Liska  <mliska@suse.cz>
2952         * gimple-pretty-print.c (dump_gimple_label): Never dump BB info.
2953         (dump_gimple_bb_header): Always dump BB info.
2954         (pp_cfg_jump): Do not append info about BB when dumping a jump.
2956 2017-07-31  Martin Liska  <mliska@suse.cz>
2958         PR sanitize/81530
2959         * convert.c (convert_to_integer_1): Guard condition with flag_sanitize_p
2960         also with current_function_decl non-null equality.
2962 2017-07-31  Jakub Jelinek  <jakub@redhat.com>
2964         PR sanitizer/81604
2965         * ubsan.c (ubsan_type_descriptor): For UBSAN_PRINT_ARRAY don't
2966         change type to the element type, instead add eltype variable and
2967         use it where we are interested in the element type.
2969         PR tree-optimization/81603
2970         * ipa-polymorphic-call.c
2971         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Perform
2972         offset arithmetic in offset_int, bail out if the resulting bit offset
2973         doesn't fit into shwi.
2975 2017-07-31  Martin Liska  <mliska@suse.cz>
2977         * gimplify.c (mostly_copy_tree_r): Remove Java specific hunk.
2978         (gimplify_save_expr): Fix comment.
2980 2017-07-30  H.J. Lu  <hongjiu.lu@intel.com>
2982         PR target/79793
2983         * config/i386/i386.c (ix86_function_arg): Update arguments for
2984         exception handler.
2985         (ix86_compute_frame_layout): Set the initial stack offset to
2986         INCOMING_FRAME_SP_OFFSET.  Update red-zone offset with
2987         INCOMING_FRAME_SP_OFFSET.
2988         (ix86_expand_epilogue): Don't pop the 'ERROR_CODE' off the
2989         stack before exception handler returns.
2990         * config/i386/i386.h (INCOMING_FRAME_SP_OFFSET): Add the
2991         the 'ERROR_CODE' for exception handler.
2993 2017-07-30  Uros Bizjak  <ubizjak@gmail.com>
2995         * config/i386/i386.h (ASM_PRINTF_EXTENSIONS): New macro.
2996         (ASM_OUTPUT_REG_PUSH): Rewrite with new operand modifiers.
2997         (ASM_OUTPUT_REG_POP): Ditto.
2998         * config/i386/i386.c (ix86_asm_output_function_label): Use fputs
2999         instead of asm_fprintf to output pure string.
3001 2017-07-29  Jakub Jelinek  <jakub@redhat.com>
3003         * debug.h (struct gcc_debug_hooks): Add IMPLICIT argument
3004         to imported_module_or_decl hook.
3005         (debug_nothing_tree_tree_tree_bool): Remove.
3006         (debug_nothing_tree_tree_tree_bool_bool): New declaration.
3007         * debug.c (do_nothing_debug_hooks): Use
3008         debug_nothing_tree_tree_tree_bool_bool instead of
3009         debug_nothing_tree_tree_tree_bool.
3010         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3011         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
3012         * sdbout.c (sdb_debug_hooks): Likewise.
3013         * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
3014         (gen_namespace_die): Add DW_AT_export_symbols attribute if
3015         langhook wants it.
3016         (dwarf2out_imported_module_or_decl): Add IMPLICIT argument,
3017         if true, -gdwarf-5 and decl will have DW_AT_export_symbols
3018         attribute, don't add anything.
3020 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3022         * fold-const.c (fold_build1_stat_loc): Remove _stat from name.
3023         (fold_build2_stat_loc): Likewise.
3024         (fold_build3_stat_loc): Likewise.
3025         * fold-const.h (fold_build1, fold_build2, fold_build3): Adjust.
3026         (fold_build1_loc): Remove macro.
3027         (fold_build2_loc): Likewise.
3028         (fold_build3_loc): Likewise.
3030 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3032         * gimple.c (gimple_build_debug_bind_stat): Remove _stat from name.
3033         (gimple_build_debug_bind_source_stat): Likewise.
3034         * gimple.h (gimple_build_debug_bind): Remove macro.
3035         (gimple_build_debug_bind_source): Likewise.
3037 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3039         * bitmap.c (bitmap_alloc): Adjust.
3040         (bitmap_gc_alloc): Likewise.
3041         * bitmap.h (bitmap_initialize_stat): Remove _stat from name.
3043 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3045         * bitmap.c (bitmap_obstack_alloc_stat): Rename to bitmap_alloc.
3046         (bitmap_gc_alloc_stat): Rename to bitmap_gc_alloc.
3047         * bitmap.h (bitmap_obstack_alloc_stat): Adjust prototype.
3048         (bitmap_gc_alloc_stat): Likewise.
3049         (BITMAP_ALLOC, BITMAP_GGC_ALLOC): Adjust.
3051 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3053         * rtl.c (shallow_copy_rtx_stat): Remove _stat from name.
3054         * rtl.h (shallow_copy_rtx): Remove macro.
3056 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3058         * emit-rtl.c (gen_raw_REG): Adjust.
3059         * gengenrtl.c (gendef): Likewise.
3060         * rtl.c (rtx_alloc_stat): Remove _stat from name.
3061         * rtl.h (rtx_alloc): Remove macro.
3063 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3065         * tree.c (build_tree_list_vec_stat): Remove _stat from name.
3066         (build_tree_list_stat): Likewise.
3067         * tree.h (build_tree_list): Remove macro.
3068         (build_tree_list_vec): Likewise.
3070 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3072         * tree.c (make_vector_stat): Remove _stat from name.
3073         (build_vector_stat): Likewise.
3074         * tree.h (make_vector_stat): Remove macro.
3075         (build_vector_stat): Likewise.
3077 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3079         * tree.h (build_var_debug_value): Remove prototype.
3081 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3083         * tree.c (tree_cons_stat): Remove _stat from name.
3084         * tree.h (tree_cons): Remove macro.
3086 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3088         * tree.c (build_vl_exp_stat): Remove _stat from name.
3089         * tree.h (build_vl_exp): Remove macro.
3091 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3093         * tree.c (build_decl_stat): Remove _stat from name.
3094         * tree.h (build_decl): Remove macro.
3096 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3098         * gimple.c (gimple_build_with_ops_stat): Adjust.
3099         (gimple_alloc_stat): Remove _stat from name.
3100         * gimple.h (gimple_alloc): Remove macro.
3102 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3104         * tree.c (make_tree_vec_stat): Remove _stat from name.
3105         (grow_tree_vec_stat): Likewise.
3106         * tree.h (make_tree_vec_stat): Adjust prototype.
3107         (grow_tree_vec_stat): Likewise.
3108         (make_tree_vec): Remove macro.
3109         (grow_tree_vec): Likewise.
3111 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3113         * fold-const.c (fold_build1_stat_loc): Adjust.
3114         (fold_build2_stat_loc): Likewise.
3115         (fold_build3_stat_loc): Likewise.
3116         * tree.c (build0_stat): Remove _stat from name.
3117         (build1_stat): Likewise.
3118         (build2_stat): Likewise.
3119         (build3_stat): Likewise.
3120         (build4_stat): Likewise.
3121         (build5_stat): Likewise.
3122         * tree.h (build1_loc): Remove macro, and rename _stat function
3123         to this.
3124         (build2_loc): Likewise.
3125         (build3_loc): Likewise.
3126         (build4_loc): Likewise.
3127         (build5_loc): Likewise.
3129 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3131         * tree.c (make_int_cst_stat): Remove _stat from name.
3132         * tree.h (make_int_cst_stat): Adjust prototype.
3133         (make_int_cst): Remove macro.
3135 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3137         * tree.c (make_tre_binfo_stat): Remove _stat from name.
3138         * tree.h (make_tree_binfo_stat): Adjust prototype.
3139         (make_tree_binfo): Remove.
3141 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3143         * tree.c (copy_node_stat): Rename to copy_node.
3144         (build_distinct_type_copy): Adjust.
3145         * tree.h (copy_node_stat): Adjust prototype.
3146         (copy_node): Remove macro.
3148 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3150         * tree.c (make_node_stat): rename to make_node.
3151         (build_tree_list_stat): Adjust.
3152         (build0_stat): Likewise.
3153         (build2_stat): Likewise.
3154         (build3_stat): Likewise.
3155         (build4_stat): Likewise.
3156         (build5_stat): Likewise.
3157         (build_decl_stat): Likewise.
3158         * tree.h (make_node_stat): Adjust prototype.
3159         (make_node): remove macro.
3161 2017-07-28  Peter Bergner  <bergner@vnet.ibm.com>
3163         * config/rs6000/ppc-auxv.h (PPC_FEATURE2_DARN): New define.
3164         (PPC_FEATURE2_SCV): Likewise.
3165         * config/rs6000/rs6000.c (cpu_supports_info): Use them.
3167 2017-07-28  Tamar Christina  <tamar.christina@arm.com>
3169         * config/aarch64/aarch64.c
3170         (aarch64_internal_mov_immediate): Add new special pattern.
3171         * config/aarch64/aarch64.md (*movdi_aarch64):
3172         Add reg/32bit const mov case.
3174 2017-07-28  Tamar Christina  <tamar.christina@arm.com>
3175             Richard Sandiford <richard.sandiford@linaro.org>
3177         * config/aarch64/aarch64.md (mov<mode>): Generalize.
3178         (*movhf_aarch64, *movsf_aarch64, *movdf_aarch64):
3179         Add integer and movi cases.
3180         (movi-split-hf-df-sf split, fp16): New.
3181         (enabled): Added TARGET_FP_F16INST.
3182         * config/aarch64/iterators.md (GPF_HF): New.
3183         * config/aarch64/predicates.md (aarch64_reg_or_fp_float): New.
3185 2017-07-28  Tamar Christina  <tamar.christina@arm.com>
3187         * config/aarch64/aarch64.c
3188         (aarch64_simd_container_mode): Add prototype.
3189         (aarch64_expand_mov_immediate): Add HI support.
3190         (aarch64_reinterpret_float_as_int, aarch64_float_const_rtx_p: New.
3191         (aarch64_can_const_movi_rtx_p): New.
3192         (aarch64_preferred_reload_class):
3193         Remove restrictions of using FP registers for certain SIMD operations.
3194         (aarch64_rtx_costs): Added new cost for CONST_DOUBLE moves.
3195         (aarch64_valid_floating_const): Add integer move validation.
3196         (aarch64_simd_imm_scalar_p): Remove.
3197         (aarch64_output_scalar_simd_mov_immediate): Generalize function.
3198         (aarch64_legitimate_constant_p): Expand list of supported cases.
3199         * config/aarch64/aarch64-protos.h
3200         (aarch64_float_const_rtx_p, aarch64_can_const_movi_rtx_p): New.
3201         (aarch64_reinterpret_float_as_int): New.
3202         (aarch64_simd_imm_scalar_p): Remove.
3203         * config/aarch64/constraints.md (Uvi): New.
3204         (Dd): Split into Ds and new Dd.
3205         * config/aarch64/aarch64.md (*movsi_aarch64):
3206         Add SIMD mov case.
3207         (*movdi_aarch64): Add SIMD mov case.
3209 2017-07-28  Bin Cheng  <bin.cheng@arm.com>
3211         * tree-predcom.c: (struct chain): Handle store-store chain in which
3212         stores for elimination only store loop invariant values.
3213         (execute_pred_commoning_chain): Ditto.
3214         (prepare_initializers_chain_store_elim): Ditto.
3215         (prepare_finalizers): Ditto.
3216         (is_inv_store_elimination_chain): New function.
3217         (initialize_root_vars_store_elim_1): New function.
3219 2017-07-28  Bin Cheng  <bin.cheng@arm.com>
3221         * tree-predcom.c: Revise general description of the pass.
3222         (enum chain_type): New enum type for store elimination.
3223         (struct chain): New field supporting store elimination.
3224         (struct component): Ditto.
3225         (dump_chain): Dump store-stores chain.
3226         (release_chain): Release resources.
3227         (split_data_refs_to_components): Compute and create component
3228         contains only stores for elimination.
3229         (get_chain_last_ref_at): New function.
3230         (make_invariant_chain): Initialization.
3231         (make_rooted_chain): Specify chain type in parameter and record it.
3232         (add_looparound_copies): Skip for store-stores chain.
3233         (determine_roots_comp): Compute type of chain and pass it to
3234         make_rooted_chain.
3235         (initialize_root_vars_store_elim_2): New function.
3236         (finalize_eliminated_stores): New function.
3237         (remove_stmt): Handle store for elimination.
3238         (execute_pred_commoning_chain): Execute predictive commoning on
3239         store-store chains.
3240         (determine_unroll_factor): Skip unroll for store-stores chain.
3241         (prepare_initializers_chain_store_elim): New function.
3242         (prepare_initializers_chain): Hanlde store-store chain.
3243         (prepare_finalizers_chain, prepare_finalizers): New function.
3244         (tree_predictive_commoning_loop): Return integer value indicating
3245         if loop is unrolled or lcssa form is corrupted.
3246         (tree_predictive_commoning): Rewrite for lcssa form if necessary.
3248 2017-07-28  Bin Cheng  <bin.cheng@arm.com>
3250         * tree-predcom.c (initialize_root): Delete.
3251         (execute_pred_commoning_chain): Initialize root vars and replace
3252         reference of non-combined chain directly, rather than call above
3253         function.
3255 2017-07-28  Bin Cheng  <bin.cheng@arm.com>
3257         * tree-predcom.c (ref_at_iteration): Add parameter NITERS.  Compute
3258         memory reference to DR at (NITERS + ITERS)-th iteration of loop.
3260 2017-07-28  Bin Cheng  <bin.cheng@arm.com>
3262         * tree-predcom.c (struct chain): New field init_seq.
3263         (release_chain): Release init_seq.
3264         (prepare_initializers_chain): Record intialization stmts in above
3265         field.
3266         (insert_init_seqs): New function.
3267         (tree_predictive_commoning_loop): Call insert_init_seqs.
3269 2017-07-28  Bin Cheng  <bin.cheng@arm.com>
3271         * tree-predcom.c (determine_roots_comp): Skip trivial components.
3273 2017-07-28  Richard Biener  <rguenther@suse.de>
3275         * match.pd: Remove superfluous :c.
3276         * genmatch.c (simplify::id): Add member.
3277         (lower_commutative, lower_opt_convert, lower_cond, lower_for):
3278         Copy id.
3279         (current_id): New global.
3280         (dt_node::parent): Move from ...
3281         (dt_operand::parent): ... here.  Add for_id member.
3282         (is_a_helper <dt_operand *>::test): DT_TRUE is also a dt_operand.
3283         (decision_tree::find_node): Relax order requirement when
3284         merging DT_TRUE nodes to ones inbetween the current simplify
3285         and the one we try to merge with.  Add diagnostic whenever
3286         we need to enforce pattern order by not merging.
3287         (decision_tree::insert): Set current_id.
3288         (decision_tree::print_node): Dump parent node and for_id.
3289         (parser::last_id): Add member.
3290         (parser::push_simplify): Assign unique id.
3291         (parser::parser): Initialize last_id.
3293 2017-07-28  Martin Liska  <mliska@suse.cz>
3295         PR sanitizer/81340
3296         * sanopt.c (sanitize_rewrite_addressable_params): Set VALUE_EXPR after
3297         gimple_build_debug_bind.
3299 2017-07-28  Richard Biener  <rguenther@suse.de>
3301         PR tree-optimization/81502
3302         * match.pd: Add pattern combining BIT_INSERT_EXPR with
3303         BIT_FIELD_REF.
3304         * tree-cfg.c (verify_expr): Verify types of BIT_FIELD_REF
3305         size/pos operands.
3306         (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR pos.
3307         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Use bitsizetype
3308         for BIT_FIELD_REF args.
3309         * fold-const.c (make_bit_field_ref): Likewise.
3310         * tree-vect-stmts.c (vectorizable_simd_clone_call): Likewise.
3312 2017-07-28  Jakub Jelinek  <jakub@redhat.com>
3314         PR sanitizer/80998
3315         * sanopt.c (pass_sanopt::execute): Handle IFN_UBSAN_PTR.
3316         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.
3317         * flag-types.h (enum sanitize_code): Add SANITIZER_POINTER_OVERFLOW.
3318         Or it into SANITIZER_UNDEFINED.
3319         * ubsan.c: Include gimple-fold.h and varasm.h.
3320         (ubsan_expand_ptr_ifn): New function.
3321         (instrument_pointer_overflow): New function.
3322         (maybe_instrument_pointer_overflow): New function.
3323         (instrument_object_size): Formatting fix.
3324         (pass_ubsan::execute): Call instrument_pointer_overflow
3325         and maybe_instrument_pointer_overflow.
3326         * internal-fn.c (expand_UBSAN_PTR): New function.
3327         * ubsan.h (ubsan_expand_ptr_ifn): Declare.
3328         * sanitizer.def (__ubsan_handle_pointer_overflow,
3329         __ubsan_handle_pointer_overflow_abort): New builtins.
3330         * tree-ssa-tail-merge.c (merge_stmts_p): Handle IFN_UBSAN_PTR.
3331         * internal-fn.def (UBSAN_PTR): New internal function.
3332         * opts.c (sanitizer_opts): Add pointer-overflow.
3333         * lto-streamer-in.c (input_function): Handle IFN_UBSAN_PTR.
3334         * fold-const.c (build_range_check): Compute pointer range check in
3335         integral type if pointer arithmetics would be needed.  Formatting
3336         fixes.
3338 2017-07-28  Martin Liska  <mliska@suse.cz>
3340         PR sanitizer/81460
3341         * sanopt.c (sanitize_rewrite_addressable_params): Do not rewrite
3342         parameters that are of a variable-length.
3344 2017-07-28  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3346         * config.gcc (powerpc-*-rtems*): Remove rs6000/eabi.h.  Add
3347         rs6000/biarch64.h.
3348         * config/rs6000/rtems.h (ASM_DECLARE_FUNCTION_SIZE): New macro.
3349         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3350         (CRT_CALL_STATIC_FUNCTION): Likewise.
3351         (ASM_DEFAULT_SPEC): New define.
3352         (ASM_SPEC32): Likewise.
3353         (ASM_SPEC64): Likewise.
3354         (ASM_SPEC_COMMON): Likewise.
3355         (ASM_SPEC): Likewise.
3356         (INVALID_64BIT): Likewise.
3357         (LINK_OS_DEFAULT_SPEC): Likewise.
3358         (LINK_OS_SPEC32): Likewise.
3359         (LINK_OS_SPEC64): Likewise.
3360         (POWERPC_LINUX): Likewise.
3361         (PTRDIFF_TYPE): Likewise.
3362         (RESTORE_FP_PREFIX): Likewise.
3363         (RESTORE_FP_SUFFIX): Likewise.
3364         (SAVE_FP_PREFIX): Likewise.
3365         (SAVE_FP_SUFFIX): Likewise.
3366         (SIZE_TYPE): Likewise.
3367         (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
3368         (TARGET_64BIT): Likewise.
3369         (TARGET_64BIT): Likewise.
3370         (TARGET_AIX): Likewise.
3371         (WCHAR_TYPE_SIZE): Likewise.
3372         (WCHAR_TYPE): Undefine.
3373         (TARGET_OS_CPP_BUILTINS): Add 64-bit PowerPC defines.
3374         (CPP_OS_DEFAULT_SPEC): Use previous CPP_OS_RTEMS_SPEC.
3375         (CPP_OS_RTEMS_SPEC): Delete.
3376         (SUBSUBTARGET_EXTRA_SPECS): Remove cpp_os_rtems.  Add
3377         asm_spec_common, asm_spec32, asm_spec64, link_os_spec32, and
3378         link_os_spec64.
3379         * config/rs6000/t-rtems: Add mcpu=e6500/m64 multilibs.
3381 2017-07-28  Jakub Jelinek  <jakub@redhat.com>
3383         PR tree-optimization/81578
3384         * tree-parloops.c (build_new_reduction): Bail out if
3385         reduction_code isn't one of the standard OpenMP reductions.
3386         Move the details printing after that decision.
3388 2017-07-27  Peter Bergner  <bergner@vnet.ibm.com>
3390         * config/rs6000/predicates.md (volatile_mem_operand): Remove code
3391         related to reload_in_progress.
3392         (splat_input_operand): Likewise.
3393         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
3394         Delete prototype.
3395         * config/rs6000/rs6000.c (machine_function): Remove sdmode_stack_slot
3396         field.
3397         (TARGET_EXPAND_TO_RTL_HOOK): Delete.
3398         (TARGET_INSTANTIATE_DECLS): Likewise.
3399         (legitimate_indexed_address_p): Delete reload_in_progress code.
3400         (rs6000_debug_legitimate_address_p): Likewise.
3401         (rs6000_eliminate_indexed_memrefs): Likewise.
3402         (rs6000_emit_le_vsx_store): Likewise.
3403         (rs6000_emit_move_si_sf_subreg): Likewise.
3404         (rs6000_emit_move): Likewise.
3405         (register_to_reg_type): Likewise.
3406         (rs6000_pre_atomic_barrier): Likewise.
3407         (rs6000_machopic_legitimize_pic_address): Likewise.
3408         (rs6000_allocate_stack_temp): Likewise.
3409         (rs6000_address_for_fpconvert): Likewise.
3410         (rs6000_address_for_altivec): Likewise.
3411         (rs6000_secondary_memory_needed_rtx): Delete function.
3412         (rs6000_check_sdmode): Likewise.
3413         (rs6000_alloc_sdmode_stack_slot): Likewise.
3414         (rs6000_instantiate_decls): Likewise.
3415         * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
3416         * config/rs6000/rs6000.md (splitter for *movsi_got_internal):
3417         Delete reload_in_progress.
3418         (*vec_reload_and_plus_<mptrsize>): Likewise.
3419         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
3420         (vsx_div_v2di): Likewise.
3421         (vsx_udiv_v2di): Likewise.
3423 2017-07-27  Peter Bergner  <bergner@vnet.ibm.com>
3425         * config/rs6000/rs6000.opt (mlra): Replace with stub.
3426         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Delete OPTION_MASK_LRA.
3427         * config/rs6000/rs6000.c (TARGET_LRA_P): Delete.
3428         (rs6000_debug_reg_global): Delete print of LRA status.
3429         (rs6000_option_override_internal): Delete dead LRA related code.
3430         (rs6000_lra_p): Delete function.
3431         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mlra.
3433 2017-07-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3435         * config.gcc (riscv*-*-elf*): Add (riscv*-*-rtems*).
3436         * config/riscv/rtems.h: New file.
3438 2017-07-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3439             Sudakshina Das  <sudi.das@arm.com>
3441         * config/aarch64/aarch64.md
3442         (define_split for and<mode>3nr_compare): Move
3443         non aarch64_logical_operand to a register.
3444         (define_split for and_<SHIFT:optab><mode>3nr_compare0): Move non
3445         register immediate operand to a register.
3446         * config/aarch64/predicates.md (aarch64_mov_imm_operand): New.
3448 2017-07-27  Peter Bergner  <bergner@vnet.ibm.com>
3450         PR middle-end/81564
3451         * tree-cfg.c (group_case_labels_stmt): Handle already deleted blocks.
3453 2017-07-27  Richard Biener  <rguenther@suse.de>
3455         PR tree-optimization/81573
3456         PR tree-optimization/81494
3457         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
3458         multi defuse cycle case.
3460 2017-07-27  Richard Biener  <rguenther@suse.de>
3462         PR tree-optimization/81571
3463         * tree-vect-slp.c (vect_build_slp_tree): Properly verify reduction
3464         PHIs.
3466 2017-07-27  Eric Botcazou  <ebotcazou@adacore.com>
3468         * config/sparc/sparc.c (sparc_option_override): Set MASK_FSMULD flag
3469         earlier and only if MASK_FPU is set.  Adjust formatting.
3471 2017-07-27  Martin Liska  <mliska@suse.cz>
3473         * opt-functions.awk: Add validation of value of Init.
3474         * optc-gen.awk: Pass new argument.
3476 2017-07-27  Martin Liska  <mliska@suse.cz>
3478         * auto-profile.c (autofdo_source_profile::update_inlined_ind_target):
3479         Fix wrong condition.
3481 2017-07-27  Martin Liska  <mliska@suse.cz>
3483         * auto-profile.c (afdo_annotate_cfg): Assign zero counts to
3484         BBs and edges seen by autoFDO.
3486 2017-07-27  Richard Biener  <rguenther@suse.de>
3488         PR tree-optimization/81502
3489         * tree-ssa.c (non_rewritable_lvalue_p): Handle BIT_INSERT_EXPR
3490         with incompatible but same sized type.
3491         (execute_update_addresses_taken): Likewise.
3493 2017-07-27  James Greenhalgh  <james.greenhalgh@arm.com>
3495         * tree-ssa-loop-ch.c (pass_ch::process_loop_p): Guard on
3496         flag_tree_loop_vectorize rather than flag_tree_vectorize.
3498 2017-07-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3500         PR target/81534
3501         * config/s390/s390.md ("*atomic_compare_and_swap<mode>_1")
3502         ("*atomic_compare_and_swapdi_2", "*atomic_compare_and_swapsi_3"):
3503         Change s_operand to memory_operand.
3505 2017-07-27  Richard Sandiford  <richard.sandiford@linaro.org>
3507         * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_permute): Declare.
3508         * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Replace with...
3509         (rs6000_emit_le_vsx_permute): ...this.  Take the destination as input.
3510         Emit instructions rather than returning an expression.  Handle TFmode
3511         and KFmode by casting to TImode.
3512         (rs6000_emit_le_vsx_load): Update to use rs6000_emit_le_vsx_permute.
3513         (rs6000_emit_le_vsx_store): Likewise.
3514         * config/rs6000/vsx.md (VSX_TI): New iterator.
3515         (*vsx_le_permute_<mode>): Use it instead of VSX_LE_128.
3516         (*vsx_le_undo_permute_<mode>): Likewise.
3517         (*vsx_le_perm_load_<mode>): Use rs6000_emit_le_vsx_permute to
3518         emit the split sequence.
3519         (*vsx_le_perm_store_<mode>): Likewise.
3521 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
3523         PR tree-optimization/81555
3524         PR tree-optimization/81556
3525         * tree-ssa-reassoc.c (rewrite_expr_tree): Add NEXT_CHANGED argument,
3526         if true, force CHANGED for the recursive invocation.
3527         (reassociate_bb): Remember original length of ops array, pass
3528         len != orig_len as NEXT_CHANGED in rewrite_expr_tree call.
3530         * attribs.c (decl_attributes): Imply noinline, noclone and no_icf
3531         attributes for noipa attribute.  For naked attribute use
3532         lookup_attribute first before lookup_attribute_spec.
3533         * final.c (rest_of_handle_final): Disable IPA RA for functions with
3534         noipa attribute.
3535         * ipa-visibility.c (non_local_p): Fix comment typos.  Return true
3536         for functions with noipa attribute.
3537         (cgraph_externally_visible_p): Return true for functions with noipa
3538         attribute.
3539         * cgraph.c (cgraph_node::get_availability): Return AVAIL_INTERPOSABLE
3540         for functions with noipa attribute.
3541         * doc/extend.texi: Document noipa function attribute.
3542         * tree-ssa-structalias.c (refered_from_nonlocal_fn): Set *nonlocal_p
3543         also for functions with noipa attribute.
3544         (ipa_pta_execute): Set nonlocal_p also for nodes with noipa attribute.
3546 2017-07-26  Andrew Pinski  <apinski@cavium.com>
3548         * config/aarch64/aarch64.c (thunderx_vector_cost): Decrease cost of
3549         vec_unalign_load_cost and vec_unalign_store_cost.
3551 2017-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3553         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Delete
3554         -mvsx-small-integer option.
3555         (ISA_3_0_MASKS_IEEE): Likewise.
3556         (OTHER_VSX_VECTOR_MASKS): Likewise.
3557         (POWERPC_MASKS): Likewise.
3558         * config/rs6000/rs6000.opt (-mvsx-small-integer): Likewise.
3559         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Simplify
3560         code, only testing for DImode being allowed in non-VSX floating
3561         point registers.
3562         (rs6000_init_hard_regno_mode_ok): Change TARGET_VSX_SMALL_INTEGER
3563         to TARGET_P8_VECTOR test.  Remove redundant VSX test inside of
3564         another VSX test.
3565         (rs6000_option_override_internal): Delete -mvsx-small-integer.
3566         (rs6000_expand_vector_set): Change TARGET_VSX_SMALL_INTEGER to
3567         TARGET_P8_VECTOR test.
3568         (rs6000_secondary_reload_simple_move): Likewise.
3569         (rs6000_preferred_reload_class): Delete TARGET_VSX_SMALL_INTEGER,
3570         since TARGET_P9_VECTOR was already tested.
3571         (rs6000_opt_masks): Remove -mvsx-small-integer.
3572         * config/rs6000/vsx.md (vsx_extract_<mode>): Delete
3573         TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
3574         used.
3575         (vsx_extract_<mode>_p9): Delete TARGET_VSX_SMALL_INTEGER, since a
3576         test for TARGET_VEXTRACTUB was used, and that uses
3577         TARGET_P9_VECTOR.
3578         (p9 extract splitter): Likewise.
3579         (vsx_extract_<mode>_di_p9): Likewise.
3580         (vsx_extract_<mode>_store_p9): Likewise.
3581         (vsx_extract_si): Delete TARGET_VSX_SMALL_INTEGER, since a test
3582         for TARGET_P9_VECTOR was used.  Delete code that is now dead with
3583         the elimination of TARGET_VSX_SMALL_INTEGER.
3584         (vsx_extract_<mode>_p8): Likewise.
3585         (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>): Likewise.
3586         (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Likewise.
3587         (vsx_set_<mode>_p9): Likewise.
3588         (vsx_set_v4sf_p9): Likewise.
3589         (vsx_set_v4sf_p9_zero): Likewise.
3590         (vsx_insert_extract_v4sf_p9): Likewise.
3591         (vsx_insert_extract_v4sf_p9_2): Likewise.
3592         * config/rs6000/rs6000.md (sign extend splitter): Change
3593         TARGET_VSX_SMALL_INTEGER to TARGET_P8_VECTOR test.
3594         (floatsi<mode>2_lfiwax_mem): Likewise.
3595         (floatunssi<mode>2_lfiwzx_mem): Likewise.
3596         (float<QHI:mode><FP_ISA3:mode>2): Delete TARGET_VSX_SMALL_INTEGER,
3597         since a test for TARGET_P9_VECTOR was used.
3598         (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
3599         (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
3600         (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
3601         (fix_trunc<mode>si2): Change TARGET_VSX_SMALL_INTEGER to
3602         TARGET_P8_VECTOR test.
3603         (fix_trunc<mode>si2_stfiwx): Likewise.
3604         (fix_trunc<mode>si2_internal): Likewise.
3605         (fix_trunc<SFDF:mode><QHI:mode>2): Delete
3606         TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
3607         used.
3608         (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
3609         (fixuns_trunc<mode>si2): Change TARGET_VSX_SMALL_INTEGER to
3610         TARGET_P8_VECTOR test.
3611         (fixuns_trunc<mode>si2_stfiwx): Likewise.
3612         (fixuns_trunc<SFDF:mode><QHI:mode>2): Delete
3613         TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
3614         used.
3615         (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
3616         (fctiw<u>z_<mode>_smallint): Delete TARGET_VSX_SMALL_INTEGER,
3617         since a test for TARGET_P9_VECTOR was used.
3618         (splitter for loading small constants): Likewise.
3620 2017-07-26  Andrew Pinski  <apinski@cavium.com>
3622         * config/aarch64/aarch64.c (thunderx_vector_cost): Fix
3623         vec_fp_stmt_cost.
3625 2017-07-26  H.J. Lu  <hongjiu.lu@intel.com>
3627         PR target/81563
3628         * config/i386/i386.c (sp_valid_at): Properly check CFA offset.
3629         (fp_valid_at): Likewise.
3631 2017-07-26  James Greenhalgh  <james.greenhalgh@arm.com>
3633         * config/aarch64/aarch64.c (cortexa57_addrcost_table): Remove.
3634         (qdf24xx_addrcost_table): Likewise.
3635         (cortexa57_tunings): Update to use generic_branch_cost.
3636         (cortexa72_tunings): Likewise.
3637         (cortexa73_tunings): Likewise.
3638         (qdf24xx_tunings): Likewise.
3640 2017-07-26  James Greenhalgh  <james.greenhalgh@arm.com>
3642         * config/aarch64/aarch64.c (cortexa57_branch_cost): Remove.
3643         (thunderx2t99_branch_cost): Likewise.
3644         (cortexa35_tunings): Update to use generic_branch_cost.
3645         (cortexa53_tunings): Likewise.
3646         (cortexa57_tunings): Likewise.
3647         (cortexa72_tunings): Likewise.
3648         (cortexa73_tunings): Likewise.
3649         (thunderx2t99_tunings): Likewise.
3651 2017-07-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3653         * config/sparc/sparc.c (dump_target_flag_bits): Dump MASK_FSMULD.
3654         (sparc_option_override): Honour MASK_FSMULD.
3655         * config/sparc/sparc.h (MASK_FEATURES): Add MASK_FSMULD.
3656         * config/sparc/sparc.md (muldf3_extend): Use TARGET_FSMULD.
3657         * config/sparc/sparc.opt (mfsmuld): New option.
3658         * doc/invoke.texi (mfsmuld): Document option.
3660 2017-07-26  Marek Polacek  <polacek@redhat.com>
3662         PR middle-end/70992
3663         * tree.c (build2_stat): Don't set TREE_CONSTANT on divisions by zero.
3665 2017-07-26  Richard Biener  <rguenther@suse.de>
3667         * gimple-match-head.c (do_valueize): Return OP if valueize
3668         returns NULL_TREE.
3669         (get_def): New helper to get at the def stmt of a SSA name
3670         if valueize allows.
3671         * genmatch.c (dt_node::gen_kids_1): Use get_def instead of
3672         do_valueize to get at the def stmt.
3673         (dt_operand::gen_gimple_expr): Simplify do_valueize calls.
3675 2017-07-26  Wilco Dijkstra  <wdijkstr@arm.com>
3677         PR middle-end/46932
3678         * auto-inc-dec.c (parse_add_or_inc): Block autoinc on sfp.
3680 2017-07-26  Martin Liska  <mliska@suse.cz>
3682         PR sanitize/81186
3683         * function.c (expand_function_start): Make expansion of
3684         nonlocal_goto_save_area after parm_birth_insn.
3686 2017-07-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3688         * config/sparc/sparc.c (sparc_option_override): Remove MASK_FPU
3689         from all CPU target flags enable members.
3691 2017-07-26  Richard Biener  <rguenther@suse.de>
3693         * genmatch.c (dt_simplify::gen): Make iterator vars const.
3694         (decision_tree::gen): Make 'type' const.
3695         (write_predicate): Likewise.
3697 2017-07-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3699         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok):
3700         Eliminate TARGET_UPPER_REGS_{DF,DI,SF} usage.
3701         (rs6000_option_override_internal): Likewise.
3702         (rs6000_expand_vector_set): Likewise.
3703         * config/rs6000/rs6000.h (TARGET_UPPER_REGS_DF): Delete.
3704         (TARGET_UPPER_REGS_SF): Likewise.
3705         (TARGET_UPPER_REGS_DI): Likewise.
3706         (TARGET_VEXTRACTUB): Eliminate TARGET_UPPER_REGS_{DF,DI,SF}.
3707         (TARGET_DIRECT_MOVE_64BIT): Likewise.
3708         * config/rs6000/rs6000.md (ALTIVEC_DFORM): Likewise.
3709         (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
3710         (Splitters for DI constants in Altivec registers): Likewise.
3711         * config/rs6000/vsx.md (vsx_set_<mode>_p9): Likewise.
3712         (vsx_set_v4sf_p9): Likewise.
3713         (vsx_set_v4sf_p9_zero): Likewise.
3714         (vsx_insert_extract_v4sf_p9): Likewise.
3715         (vsx_insert_extract_v4sf_p9_2): Likewise.
3717 2017-07-25  Carl Love  <cel@us.ibm.com>
3719         * doc/extend.texi: Update the built-in documentation file for the
3720         existing built-in functions
3721         vector signed char vec_cnttz (vector signed char);
3722         vector unsigned char vec_cnttz (vector unsigned char);
3723         vector signed short vec_cnttz (vector signed short);
3724         vector unsigned short vec_cnttz (vector unsigned short);
3725         vector signed int vec_cnttz (vector signed int);
3726         vector unsigned int vec_cnttz (vector unsigned int);
3727         vector signed long long vec_cnttz (vector signed long long);
3728         vector unsigned long long vec_cnttz (vector unsigned long long);
3730 2017-07-25  Andrew Pinski  <apinski@cavium.com>
3732         * tree-ssa-uninit.c (warn_uninitialized_vars): Don't warn about memory
3733         accesses where the use is for the first operand of a BIT_INSERT.
3735 2017-07-25  Jim Wilson  <jim.wilson@linaro.org>
3737         PR bootstrap/81521
3738         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition): Look
3739         for FUNCTION_DECLs in TYPE_FIELDS rather than TYPE_METHODS.
3741 2017-07-25  Jim Wilson  <jim.wilson@linaro.org>
3743         * config/i386/gstabs.h: Delete.
3744         * config/i386/openbsd.h, config/i386/t-openbsd: Likewise.
3746 2017-07-25  Uros Bizjak  <ubizjak@gmail.com>
3748         * config/i386/i386.c (ix86_decompose_address): Do not check for
3749         register RTX when looking at index_reg or base_reg.
3750         * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use stack_pointer_rtx.
3752 2017-07-25  Eric Botcazou  <ebotcazou@adacore.com>
3754         * gimple.c (gimple_assign_set_rhs_with_ops): Do not ask gsi_replace
3755         to update EH info here.
3757 2017-07-25  Alexander Monakov  <amonakov@ispras.ru>
3759         * match.pd ((X * CST1) * CST2): Simplify to X * (CST1 * CST2).
3761 2017-07-25  Alexander Monakov  <amonakov@ispras.ru>
3763         * match.pd ((X * CST) * Y): Reassociate to (X * Y) * CST.
3765 2017-07-25  Torsten Duwe  <duwe@suse.de>
3767         * common.opt: Introduce -fpatchable-function-entry
3768         command line option, and its variables function_entry_patch_area_size
3769         and function_entry_patch_area_start.
3770         * opts.c (common_handle_option): Add -fpatchable_function_entry_ case,
3771         including a two-value parser.
3772         * target.def (print_patchable_function_entry): New target hook.
3773         * targhooks.h (default_print_patchable_function_entry): New function.
3774         * targhooks.c (default_print_patchable_function_entry): Likewise.
3775         * toplev.c (process_options): Switch off IPA-RA if
3776         patchable function entries are being generated.
3777         * varasm.c (assemble_start_function): Look at the
3778         patchable-function-entry command line switch and current
3779         function attributes and maybe generate NOP instructions by
3780         calling the print_patchable_function_entry hook.
3781         * doc/extend.texi: Document patchable_function_entry attribute.
3782         * doc/invoke.texi: Document -fpatchable_function_entry
3783         command line option.
3784         * doc/tm.texi.in (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
3785         New target hook.
3786         * doc/tm.texi: Re-generate.
3788 2017-07-25  Jakub Jelinek  <jakub@redhat.com>
3790         PR target/81532
3791         * config/i386/constraints.md (Yd, Ye): Use ALL_SSE_REGS for
3792         TARGET_AVX512DQ rather than TARGET_AVX512BW.
3794 2017-07-25  Tamar Christina  <tamar.christina@arm.com>
3796         * config/arm/parsecpu.awk (all_cores): Remove duplicates.
3798 2017-07-25  Richard Biener  <rguenther@suse.de>
3800         PR tree-optimization/81455
3801         * tree-ssa-loop-unswitch.c (find_loop_guard): Make sure to
3802         not walk in cycles when looking for guards.
3804 2017-07-25  Richard Biener  <rguenther@suse.de>
3806         PR tree-optimization/81529
3807         * tree-vect-stmts.c (process_use): Disregard live induction PHIs
3808         when optimizing backedge uses.
3810 2017-07-25  David Edelsohn  <dje.gcc@gmail.com>
3812         * dwarf2asm.c (dw2_asm_output_nstring): Encode double quote
3813         character for AIX.
3814         * dwarf2out.c (output_macinfo): Copy debug_line_section_label
3815         to dl_section_ref.  On AIX, append an expression to subtract
3816         the size of the section length to dl_section_ref.
3818 2017-07-25  Segher Boessenkool  <segher@kernel.crashing.org>
3820         * configure.ac: If any of the config.* scripts fail, exit 1.
3821         * configure: Regenerate.
3823 2017-07-25  Richard Biener  <rguenther@suse.de>
3825         PR middle-end/81546
3826         * tree-ssa-operands.c (verify_imm_links): Remove cap on number
3827         of immediate uses, be more verbose on errors.
3829 2017-07-25  Richard Biener  <rguenther@suse.de>
3831         PR tree-optimization/81510
3832         * tree-vect-loop.c (vect_is_simple_reduction): When the
3833         reduction stmt is not inside the loop bail out.
3835 2017-07-25  Richard Biener  <rguenther@suse.de>
3837         PR tree-optimization/81303
3838         * tree-vect-loop-manip.c (vect_loop_versioning): Build
3839         profitability check against LOOP_VINFO_NITERSM1.
3841 2017-07-25  Alexander Monakov  <amonakov@ispras.ru>
3843         * domwalk.c (cmp_bb_postorder): Simplify.
3844         (sort_bbs_postorder): New function.  Use it...
3845         (dom_walker::walk): ...here to optimize common cases.
3847 2017-07-25  Martin Liska  <mliska@suse.cz>
3849         PR ipa/81520
3850         * ipa-visibility.c (function_and_variable_visibility): Make the
3851         redirection just on target that supports aliasing.
3852         Fix GNU coding style.
3854 2017-07-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3856         PR libgcc/61152
3857         * config/aarch64/rtems.h: Add GCC Runtime Library Exception.
3858         Format changes.
3859         * config/arm/rtems.h: Likewise.
3860         * config/bfin/rtems.h: Likewise.
3861         * config/i386/rtemself.h: Likewise.
3862         * config/lm32/rtems.h: Likewise.
3863         * config/m32c/rtems.h: Likewise.
3864         * config/m68k/rtemself.h: Likewise.
3865         * config/microblaze/rtems.h: Likewise.
3866         * config/mips/rtems.h: Likewise.
3867         * config/moxie/rtems.h: Likewise.
3868         * config/nios2/rtems.h: Likewise.
3869         * config/powerpcspe/rtems.h: Likewise.
3870         * config/rs6000/rtems.h: Likewise.
3871         * config/rtems.h: Likewise.
3872         * config/sh/rtems.h: Likewise.
3873         * config/sh/rtemself.h: Likewise.
3874         * config/sparc/rtemself.h: Likewise.
3876 2017-07-25  Georg-Johann Lay  <avr@gjlay.de>
3878         PR 81487
3879         * hsa-brig.c (brig_init): Use xasprintf instead of asprintf.
3880         * gimple-pretty-print.c (dump_profile, dump_probability): Same.
3881         * tree-ssa-structalias.c (alias_get_name): Same.
3883 2017-07-25  Bin Cheng  <bin.cheng@arm.com>
3885         PR target/81414
3886         * config/aarch64/cortex-a57-fma-steering.c (analyze): Skip fmul/fmac
3887         instructions if no du chain is found.
3889 2017-07-25  Georg-Johann Lay  <avr@gjlay.de>
3891         * config/avr/avr-log.c (avr_log_vadump) ['T']: Print NULL-TREE.
3893 2017-07-25  Richard Biener  <rguenther@suse.de>
3895         PR middle-end/81505
3896         * fold-const.c (fold_negate_const): TREE_OVERFLOW should be
3897         sticky.
3899 2017-07-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3901         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Delete
3902         upper-regs options.
3903         (ISA_2_7_MASKS_SERVER): Likewise.
3904         (ISA_3_0_MASKS_IEEE): Likewise.
3905         (OTHER_P8_VECTOR_MASKS): Likewise.
3906         (OTHER_VSX_VECTOR_MASKS): Likewise.
3907         (POWERPC_MASKS): Likewise.
3908         (power7 cpu): Use ISA_2_6_MASKS_SERVER instead of using a
3909         duplicate list of options.
3910         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Remove
3911         explicit -mupper-regs options.
3912         * config/rs6000/rs6000.opt (-mvsx-scalar-memory): Delete
3913         -mupper-regs* options.  Delete -mvsx-scalar-memory, which was an
3914         alias for -mupper-regs-df.
3915         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Likewise.
3916         (rs6000_init_hard_regno_mode_ok): Likewise.
3917         (rs6000_option_override_internal): Likewise.
3918         (rs6000_opt_masks): Likewise.
3919         * config/rs6000/rs6000.h (TARGET_UPPER_REGS_DF): Define upper regs
3920         options in terms of whether -mvsx or -mpower8-vector was used.
3921         (TARGET_UPPER_REGS_DI): Likewise.
3922         (TARGET_UPPER_REGS_SF): Likewise.
3923         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete the
3924         -mupper-regs-* options.
3926 2017-07-24  Segher Boessenkool  <segher@kernel.crashing.org>
3928         * passes.c (emergency_dump_function): Print some empty lines and a
3929         header before the RTL dump.
3931 2017-07-24  Segher Boessenkool  <segher@kernel.crashing.org>
3933         * cfgrtl.c (rtl_dump_bb): Don't call NEXT_INSN on NULL.
3935 2017-07-24  Wilco Dijkstra  <wdijkstr@arm.com>
3937         PR target/79041
3938         * config/aarch64/aarch64.c (aarch64_classify_symbol):
3939         Avoid SYMBOL_SMALL_ABSOLUTE for literals with pc-relative literals.
3941 2017-07-24  Carl Love  <cel@us.ibm.com>
3943         * config/rs6000/rs6000-c.c: Add support for built-in functions
3944         vector float vec_extract_fp32_from_shorth (vector unsigned short);
3945         vector float vec_extract_fp32_from_shortl (vector unsigned short);
3946         * config/rs6000/altivec.h (vec_extract_fp_from_shorth,
3947         vec_extract_fp_from_shortl): Add defines for the two builtins.
3948         * config/rs6000/rs6000-builtin.def (VEXTRACT_FP_FROM_SHORTH,
3949         VEXTRACT_FP_FROM_SHORTL): Add BU_P9V_OVERLOAD_1 and BU_P9V_VSX_1
3950         new builtins.
3951         * config/rs6000/vsx.md vsx_xvcvhpsp): Add define_insn.
3952         (vextract_fp_from_shorth, vextract_fp_from_shortl): Add define_expands.
3953         * doc/extend.texi: Update the built-in documentation file for the
3954         new built-in function.
3956 2017-07-24  Jakub Jelinek  <jakub@redhat.com>
3958         PR bootstrap/81521
3959         * tree.def: Remove TYPE_METHODS documentation, adjust TYPE_FIELDS
3960         documentation.
3961         * doc/generic.texi: Likewise.
3962         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition): Look
3963         for FUNCTION_DECLs in TYPE_FIELDS rather than TYPE_METHODS.
3965 2017-07-24  Jackson Woodruff  <jackson.woodruff@arm.com>
3967         * config/aarch64/aarch64-simd.md (aarch64_mla_elt_merge<mode>): New.
3968         (aarch64_mls_elt_merge<mode>): Likewise.
3970 2017-07-23  Krister Walfridsson  <krister.walfridsson@gmail.com>
3972         * config.gcc (*-*-netbsd*): Remove check for NetBSD versions not
3973         having __cxa_atexit.
3975 2017-07-23  Michael Collison  <michael.collison@arm.com>
3977         * config/arm/arm.c (arm_option_override): Deprecate
3978         use of -mstructure-size-boundary.
3979         * config/arm/arm.opt: Deprecate -mstructure-size-boundary.
3980         * doc/invoke.texi: Deprecate -mstructure-size-boundary.
3982 2017-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3984         PR target/80695
3985         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
3986         Reduce cost estimate for direct moves.
3988 2017-07-23  Uros Bizjak  <ubizjak@gmail.com>
3990         PR target/80569
3991         * config/i386/i386.c (ix86_option_override_internal): Disable
3992         BMI, BMI2 and TBM instructions for -m16.
3994 2017-07-21  Carl Love  <cel@us.ibm.com>
3996         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3997         ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
3998         ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
3999         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
4000         builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
4001         * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
4002         VMULOSW): New enum "unspec" values.
4003         (altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
4004         altivec_vmulosw): New patterns.
4005         * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
4006         VMULOSW): Add definitions.
4008 2017-07-21  Jim Wilson  <jim.wilson@linaro.org>
4010         * config/aarch64/aarch64-cores.def (falkor): Add AARCH64_FL_RDMA.
4011         (qdf24xx): Likewise.
4012         * config/aarch64/aarch64-options-extensions.def (rdma); New.
4013         * config/aarch64/aarch64.h (AARCH64_FL_RDMA): New.
4014         (AARCH64_FL_V8_1): Renumber.
4015         (AARCH64_FL_FOR_ARCH8_1): Add AARCH64_FL_RDMA.
4016         (AARCH64_ISA_RDMA): Use AARCH64_FL_RDMA.
4017         * config/aarch64/arm_neon.h: Use +rdma instead of arch=armv8.1-a.
4018         * doc/invoke.texi (AArch64 Options): Mention +rmda in -march docs.  Add
4019         rdma to feature modifiers list.
4021 2017-07-21  Yury Gribov  <tetra2005@gmail.com>
4023         PR middle-end/56727
4024         * ipa-visibility (function_and_variable_visibility): Convert
4025         recursive PLT call to direct call if appropriate.
4027 2017-07-21  Andrew Pinski  <apinski@cavium.com>
4029         * tree-ssa-sccvn.c (vn_nary_op_eq): Check BIT_INSERT_EXPR's
4030         operand 1 to see if the types precision matches.
4031         * fold-const.c (operand_equal_p): Likewise.
4033 2017-07-21  Richard Biener  <rguenther@suse.de>
4035         PR tree-optimization/81303
4036         * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs): Pass
4037         in datarefs vector.  Allow NULL dr0 for no peeling cost estimate.
4038         (vect_peeling_hash_get_lowest_cost): Adjust.
4039         (vect_enhance_data_refs_alignment): Likewise.  Use
4040         vect_get_peeling_costs_all_drs to compute the penalty for no
4041         peeling to match up costs.
4043 2017-07-21  Richard Biener  <rguenther@suse.de>
4045         PR tree-optimization/81500
4046         * tree-vect-loop.c (vect_is_simple_reduction): Properly fail if
4047         we didn't identify a reduction path.
4049 2017-07-21  Tom de Vries  <tom@codesourcery.com>
4050             Cesar Philippidis  <cesar@codesourcery.com>
4052         PR gcov-profile/81442
4053         * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Add missing edge
4054         probabilities.
4056 2017-07-21  Tom de Vries  <tom@codesourcery.com>
4058         PR lto/81430
4059         * config/nvptx/nvptx.c (nvptx_override_options_after_change): New
4060         function.
4061         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define to
4062         nvptx_override_options_after_change.
4064 2017-07-21  Ulrich Drepper  <drepper@redhat.com>
4066         * dwarf2out.c (output_file_names): Avoid double testing for
4067         dwarf_version >= 5.
4069 2017-07-21  Georg-Johann Lay  <avr@gjlay.de>
4071         * doc/invoke.texi (AVR Built-in Functions): Re-layout section.
4073 2016-07-21  Jan Hubicka  <hubicka@ucw.cz>
4075         * cfgcleanup.c (flow_find_cross_jump): Do not crossjump across
4076         hot/cold regions.
4077         (try_crossjump_to_edge): Do not punt on partitioned functions.
4079 2016-07-21  Jan Hubicka  <hubicka@ucw.cz>
4081         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
4082         Put all BBs reachable only via paths crossing cold region to cold
4083         region.
4084         * cfgrtl.c (find_bbs_reachable_by_hot_paths): New function.
4086 2016-07-21  Richard Biener  <rguenther@suse.de>
4088         PR tree-optimization/81303
4089         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Take
4090         into account prologue and epilogue iterations when raising
4091         min_profitable_iters to sth at least covering one vector iteration.
4093 2017-07-21  Tamar Christina  <tamar.christina@arm.com>
4095         * config/arm/arm.c (arm_test_cpu_arch_dat):
4096         Check for overlap.
4098 2017-07-20  Nathan Sidwell  <nathan@acm.org>
4100         Remove TYPE_METHODS.
4101         * tree.h (TYPE_METHODS): Delete.
4102         * dwarf2out.c (gen_member_die): Member fns are on TYPE_FIELDS.
4103         * dbxout.c (dbxout_type_fields): Ignore FUNCTION_DECLs.
4104         (dbxout_type_methods): Scan TYPE_FIELDS.
4105         (dbxout_type): Don't check TYPE_METHODS here.
4106         * function.c (use_register_for_decl): Always ignore register for
4107         class types when not optimizing.
4108         * ipa-devirt.c (odr_types_equivalent_p): Delete TYPE_METHODS scan.
4109         * tree.c (free_lang_data_in_type): Stitch out member functions and
4110         templates from TYPE_FIELDS.
4111         (build_distinct_type_copy, verify_type_variant,
4112         verify_type): Member fns are on TYPE_FIELDS.
4113         * tree-dump.c (dequeue_and_dump): No TYPE_METHODS.
4114         * tree-pretty-print.c (dump_generic_node): Likewise.
4116 2017-07-20  Jakub Jelinek  <jakub@redhat.com>
4118         PR target/80846
4119         * config/i386/i386.c (ix86_expand_vector_init_general): Handle
4120         V2TImode and V4TImode.
4121         (ix86_expand_vector_extract): Likewise.
4122         * config/i386/sse.md (VMOVE): Enable V4TImode even for just
4123         TARGET_AVX512F, instead of only for TARGET_AVX512BW.
4124         (ssescalarmode): Handle V4TImode and V2TImode.
4125         (VEC_EXTRACT_MODE): Add V4TImode and V2TImode.
4126         (*vec_extractv2ti, *vec_extractv4ti): New insns.
4127         (VEXTRACTI128_MODE): New mode iterator.
4128         (splitter for *vec_extractv?ti first element): New.
4129         (VEC_INIT_MODE): New mode iterator.
4130         (vec_init<mode>): Consolidate 3 expanders into one using
4131         VEC_INIT_MODE mode iterator.
4133 2017-07-20  Alexander Monakov  <amonakov@ispras.ru>
4135         * lra-assigns.c (pseudo_compare_func): Fix comparison step based on
4136         non_spilled_static_chain_regno_p.
4138 2017-07-20  Alexander Monakov  <amonakov@ispras.ru>
4140         * gimple-ssa-store-merging.c (sort_by_bitpos): Return 0 on equal bitpos.
4142 2017-07-20  Jan Hubicka  <hubicka@ucw.cz>
4144         * bb-reorder.c (connect_traces): Allow copying of blocks within
4145         single partition.
4147 2017-07-20  Richard Biener  <rguenther@suse.de>
4149         * gimple.h (gimple_phi_result): Add gphi * overload.
4150         (gimple_phi_result_ptr): Likewise.
4151         (gimple_phi_arg): Likewise.  Adjust index assert to only
4152         allow actual argument accesses rather than all slots available
4153         by capacity.
4154         (gimple_phi_arg_def): Add gphi * overload.
4155         * tree-phinodes.c (make_phi_node): Initialize only actual
4156         arguments.
4157         (resize_phi_node): Clear memory not covered by old node,
4158         do not initialize excess argument slots.
4159         (reserve_phi_args_for_new_edge): Initialize new argument slot
4160         completely.
4162 2017-07-20  Bin Cheng  <bin.cheng@arm.com>
4164         PR tree-optimization/81388
4165         Revert r238585:
4166         2016-07-21  Bin Cheng  <bin.cheng@arm.com>
4168         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
4169         by removing computation of may_be_zero.
4171 2017-07-18  Jan Hubicka  <hubicka@ucw.cz>
4172             Tom de Vries  <tom@codesourcery.com>
4174         PR middle-end/81030
4175         * cfgbuild.c (find_many_sub_basic_blocks): Update REG_BR_PROB note
4176         when gimple level profile disagrees with what RTL expander did.
4178 2017-07-20  Richard Biener  <rguenther@suse.de>
4180         PR tree-optimization/61171
4181         * tree-vectorizer.h (slp_instance): Add reduc_phis member.
4182         (vect_analyze_stmt): Add slp instance parameter.
4183         (vectorizable_reduction): Likewise.
4184         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust.
4185         (vect_is_simple_reduction): Deal with chains not detected
4186         as SLP reduction chain, specifically not properly associated
4187         chains containing a mix of plus/minus.
4188         (get_reduction_op): Remove.
4189         (get_initial_defs_for_reduction): Simplify, pass in whether
4190         this is a reduction chain, pass in the SLP node for the PHIs.
4191         (vect_create_epilog_for_reduction): Get the SLP instance as
4192         arg and adjust.
4193         (vectorizable_reduction): Get the SLP instance as arg.
4194         During analysis remember the SLP node with the PHIs in the
4195         instance.  Simplify getting at the vectorized reduction PHIs.
4196         * tree-vect-slp.c (vect_slp_analyze_node_operations): Pass
4197         through SLP instance.
4198         (vect_slp_analyze_operations): Likewise.
4199         * tree-vect-stms.c (vect_analyze_stmt): Likewise.
4200         (vect_transform_stmt): Likewise.
4202 2017-07-20  Tom de Vries  <tom@codesourcery.com>
4204         PR tree-optimization/81489
4205         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Move
4206         read of phi arg location to before loop that modifies phi.
4208 2017-07-20  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
4210         * match.pd (((m1 >/</>=/<= m2) * d -> (m1 >/</>=/<= m2) ? d : 0):
4211         New pattern.
4213 2017-07-19  Jan Hubicka  <hubicka@ucw.cz>
4215         PR middle-end/81331
4216         * except.c (execute): Fix ordering issue.
4218 2018-07-19  Segher Boessenkool  <segher@kernel.crashing.org>
4220         PR rtl-optimization/81423
4221         * combine.c (make_compound_operation_int): Don't try to optimize
4222         the AND of a SUBREG of an LSHIFTRT if that SUBREG is paradoxical.
4224 2017-07-19  Segher Boessenkool  <segher@kernel.crashing.org>
4226         PR rtl-optimization/81423
4227         * simplify-rtx.c (simplify_truncation): Handle truncating an IOR
4228         with a constant that is -1 in the truncated to mode.
4230 2017-07-19  Jan Hubicka  <hubicka@ucw.cz>
4232         * predict.c (propagate_unlikely_bbs_forward): Break out from ...
4233         (determine_unlikely_bbs): ... here.
4234         * predict.h (propagate_unlikely_bbs_forward): Declare.
4235         * cfgexpand.c (pass_expand::execute): Use it.
4236         * bb-reorder.c (sanitize_hot_paths): Do not consider known to be
4237         unlikely edges.
4238         (find_rarely_executed_basic_blocks_and_crossing_edges): Use
4239         propagate_unlikely_bbs_forward.
4241 2017-07-19  Jan Hubicka  <hubicka@ucw.cz>
4243         PR middle-end/81331
4244         * except.c (maybe_add_nop_after_section_switch): New function.
4245         (execute): Use it.
4247 2017-07-19  Tom de Vries  <tom@codesourcery.com>
4249         * gimple.h (gimple_phi_set_arg): Make assert more strict.
4251 2017-07-19  Tom de Vries  <tom@codesourcery.com>
4253         * gimple.h (gimple_phi_arg): Make assert more strict.
4255 2017-07-19  Steven Munroe  <munroesj@gcc.gnu.org>
4257         * config.gcc (powerpc*-*-*): Add mmintrin.h.
4258         * config/rs6000/mmintrin.h: New file.
4259         * config/rs6000/x86intrin.h [__ALTIVEC__]: Include mmintrin.h.
4261 2017-07-19  Jakub Jelinek  <jakub@redhat.com>
4263         PR tree-optimization/81346
4264         * match.pd: Optimize (X - 1U) <= INT_MAX-1U into (int) X > 0.
4266 2017-07-19  Tom de Vries  <tom@codesourcery.com>
4268         * config/nvptx/nvptx.md (VECIM): Add V2DI.
4270 2017-07-19  Tom de Vries  <tom@codesourcery.com>
4272         * config/nvptx/nvptx-modes.def: Add V2DImode.
4273         * config/nvptx/nvptx-protos.h (nvptx_data_alignment): Declare.
4274         * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Handle V2DImode.
4275         (nvptx_output_mov_insn): Handle lack of mov.b128.
4276         (nvptx_print_operand): Handle 'H' and 'L' codes.
4277         (nvptx_vector_mode_supported): Allow V2DImode.
4278         (nvptx_preferred_simd_mode): New function.
4279         (nvptx_data_alignment): New function.
4280         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Redefine to
4281         nvptx_preferred_simd_mode.
4282         * config/nvptx/nvptx.h (STACK_BOUNDARY, BIGGEST_ALIGNMENT): Change from
4283         64 to 128 bits.
4284         (DATA_ALIGNMENT): Define.  Set to nvptx_data_alignment.
4286 2017-07-19  Tom de Vries  <tom@codesourcery.com>
4288         * config/nvptx/nvptx-modes.def: New file.  Add V2SImode.
4289         * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Handle V2SImode.
4290         (nvptx_vector_mode_supported): New function.  Allow V2SImode.
4291         (TARGET_VECTOR_MODE_SUPPORTED_P): Redefine to nvptx_vector_mode_supported.
4292         * config/nvptx/nvptx.md (VECIM): New mode iterator. Add V2SI.
4293         (mov<VECIM>_insn): New define_insn.
4294         (define_expand "mov<VECIM>): New define_expand.
4296 2017-07-19  Tom de Vries  <tom@codesourcery.com>
4298         * config/nvptx/nvptx.c (nvptx_print_operand): Handle v2 vector mode.
4300 2017-07-19  Jakub Jelinek  <jakub@redhat.com>
4302         PR tree-optimization/81346
4303         * fold-const.h (fold_div_compare, range_check_type): Declare.
4304         * fold-const.c (range_check_type): New function.
4305         (build_range_check): Use range_check_type.
4306         (fold_div_compare): No longer static, rewritten into
4307         a match.pd helper function.
4308         (fold_comparison): Don't call fold_div_compare here.
4309         * match.pd (X / C1 op C2): New optimization using fold_div_compare
4310         as helper function.
4312 2017-07-19  Nathan Sidwell  <nathan@acm.org>
4314         * tree.h (TYPE_MINVAL, TYPE_MAXVAL): Rename to ...
4315         (TYPE_MIN_VALUE_RAW, TYPE_MAX_VALUE_RAW): ... these.
4316         * tree.c (find_decls_types_r, verify_type): Use
4317         TYPE_{MIN,MAX}_VALUE_RAW.
4318         * lto-streamer-out.c (DFS::DFS_write_tree_body): Likewise.
4319         (hash_tree): Likewise.
4320         * tree-streamer-in.c (lto_input_ts_type_non_common_tree_pointers):
4321         Likewise.
4322         * tree-streamer-out.c (write_ts_type_non_common_tree_pointers):
4323         Likewise.
4325 2017-07-18  Tom de Vries  <tom@codesourcery.com>
4327         PR middle-end/81464
4328         * omp-expand.c (expand_omp_for_static_chunk): Handle
4329         equal-argument loop exit phi.
4331 2017-07-18  Uros Bizjak  <ubizjak@gmail.com>
4333         PR target/81471
4334         * config/i386/i386.md (rorx_immediate_operand): New mode attribute.
4335         (*bmi2_rorx<mode>3_1): Use rorx_immediate_operand as
4336         operand 2 predicate.
4337         (*bmi2_rorxsi3_1_zext): Use const_0_to_31_operand as
4338         operand 2 predicate.
4339         (ror,rol -> rorx splitters): Use const_int_operand as
4340         operand 2 predicate.
4342 2017-06-18  Richard Biener  <rguenther@suse.de>
4344         PR tree-optimization/81410
4345         * tree-vect-stmts.c (vectorizable_load): Properly adjust for
4346         the gap in the ! slp_perm SLP case after each group.
4348 2017-07-18  Jan Hubicka  <hubicka@ucw.cz>
4350         PR middle-end/81463
4351         * cfgloopmanip.c (scale_loop_profile): Watch out for zero frequency
4352         again.
4354 2017-07-18  Jan Hubicka  <hubicka@ucw.cz>
4356         PR middle-end/81462
4357         * predict.c (set_even_probabilities): Cleanup; do not affect
4358         probabilities that are already known.
4359         (combine_predictions_for_bb): Call even when count is set.
4361 2017-07-18  Nathan Sidwell  <nathan@acm.org>
4363         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
4364         TYPE_MAX_VALUE.
4366 2017-07-18  Bin Cheng  <bin.cheng@arm.com>
4368         PR target/81408
4369         * tree-ssa-loop-niter.c (number_of_iterations_exit): Dump missed
4370         optimization for loop niter analysis.
4372 2017-07-18  Georg-Johann Lay  <avr@gjlay.de>
4374         PR target/81473
4375         * config/avr/avr.c (avr_optimize_casesi): Don't use
4376         INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX.
4378 2017-07-18  Robin Dapp  <rdapp@linux.vnet.ibm.com>
4380         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Remove
4381         body_cost_vec from _vect_peel_extended_info.
4382         (vect_peeling_hash_get_lowest_cost): Do not set body_cost_vec.
4383         (vect_peeling_hash_choose_best_peeling): Remove body_cost_vec and
4384         npeel.
4386 2017-07-18  Bin Cheng  <bin.cheng@arm.com>
4388         * config/arm/arm.c (emit_unlikely_jump): Remove unused var.
4390 2017-07-18  Richard Biener  <rguenther@suse.de>
4392         PR tree-optimization/80620
4393         PR tree-optimization/81403
4394         * tree-ssa-pre.c (phi_translate_1): Clear range and points-to
4395         info when re-using a VN table entry.
4397 2017-07-18  Richard Biener  <rguenther@suse.de>
4399         PR tree-optimization/81418
4400         * tree-vect-loop.c (vectorizable_reduction): Properly compute
4401         vectype_in.  Verify that with lane-reducing reduction operations
4402         we have a single def-use cycle.
4404 2017-07-17  Carl Love  <cel@us.ibm.com>
4406         Revert commit r249424   2017-06-20  Carl Love  <cel@us.ibm.com>
4408         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4409         ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
4410         ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
4411         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
4412         builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
4413         * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
4414         VMULOSW): New enum "unspec" values.
4415         (vec_widen_umult_even_v4si, vec_widen_smult_even_v4si,
4416         vec_widen_umult_odd_v4si, vec_widen_smult_odd_v4si,
4417         altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
4418         altivec_vmulosw): New patterns.
4419         * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
4420         VMULOSW): Add definitions.
4421 2017-07-17  Uros Bizjak  <ubizjak@gmail.com>
4423         * config/alpha/alpha.c: Include predict.h.
4425 2017-07-17  Yury Gribov  <tetra2005@gmail.com>
4427         * tree-vrp.c (compare_assert_loc): Fix comparison function
4428         to return predictable results.
4430 2017-07-17  Claudiu Zissulescu  <claziss@synopsys.com>
4432         * config/arc/arc.md (adddi3): Remove support for mexpand-adddi
4433         option.
4434         (subdi3): Likewise.
4435         * config/arc/arc.opt (mexpand-adddi): Deprecate it.
4436         * doc/invoke.texi (mexpand-adddi): Update text.
4438 2017-07-17  Claudiu Zissulescu  <claziss@synopsys.com>
4440         * config/arc/arc.md (clzsi2): Expand to an arc_clzsi2 instruction
4441         that also clobbers the CC register. The old expand code is moved
4442         to ...
4443         (*arc_clzsi2): ... here.
4444         (ctzsi2): Expand to an arc_ctzsi2 instruction that also clobbers
4445         the CC register. The old expand code is moved to ...
4446         (arc_ctzsi2): ... here.
4448 2017-07-17  Claudiu Zissulescu  <claziss@synopsys.com>
4450         * config/arc/arc.opt (mindexed-loads): Use initial value
4451         TARGET_INDEXED_LOADS_DEFAULT.
4452         (mauto-modify-reg): Use initial value
4453         TARGET_AUTO_MODIFY_REG_DEFAULT.
4454         * config/arc/elf.h (TARGET_INDEXED_LOADS_DEFAULT): Define.
4455         (TARGET_AUTO_MODIFY_REG_DEFAULT): Likewise.
4456         * config/arc/linux.h (TARGET_INDEXED_LOADS_DEFAULT): Define.
4457         (TARGET_AUTO_MODIFY_REG_DEFAULT): Likewise.
4459 2017-07-17  Martin Liska  <mliska@suse.cz>
4461         PR sanitizer/81302
4462         * opts.c (finish_options): Do not allow -fgnu-tm
4463         w/ -fsanitize={kernel-,}address.  Say sorry.
4465 2017-07-17  Bin Cheng  <bin.cheng@arm.com>
4467         PR target/81369
4468         * tree-loop-distribution.c (classify_partition): Only assert on
4469         numer of iterations.
4470         (merge_dep_scc_partitions): Delete prameter.  Update function call.
4471         (distribute_loop): Remove code handling loop with unknown niters.
4472         (pass_loop_distribution::execute): Skip loop with unknown niters.
4474 2017-07-17  Bin Cheng  <bin.cheng@arm.com>
4476         PR target/81369
4477         * tree-loop-distribution.c (merge_dep_scc_partitions): Sink call to
4478         function sort_partitions_by_post_order.
4480 2017-07-17  Bin Cheng  <bin.cheng@arm.com>
4482         PR tree-optimization/81374
4483         * tree-loop-distribution.c (pass_loop_distribution::execute): Record
4484         the max index of basic blocks, rather than number of basic blocks.
4486 2017-07-17  Claudiu Zissulescu  <claziss@synopsys.com>
4488         * config/arc/arc-protos.h (arc_legitimate_pc_offset_p): Remove
4489         proto.
4490         (arc_legitimate_pic_operand_p): Likewise.
4491         * config/arc/arc.c (arc_legitimate_pic_operand_p): Remove
4492         function.
4493         (arc_needs_pcl_p): Likewise.
4494         (arc_legitimate_pc_offset_p): Likewise.
4495         (arc_legitimate_pic_addr_p): Remove LABEL_REF case, as this
4496         function is also used in constrains.md.
4497         (arc_legitimate_constant_p): Use arc_legitimate_pic_addr_p to
4498         validate pic constants. Handle CONST_INT, CONST_DOUBLE, MINUS and
4499         PLUS.  Only return true/false in known cases, otherwise assert.
4500         (arc_legitimate_address_p): Remove arc_legitimate_pic_addr_p as it
4501         is already called in arc_legitimate_constant_p.
4502         * config/arc/arc.h (CONSTANT_ADDRESS_P): Consider also LABEL for
4503         pic addresses.
4504         (LEGITIMATE_PIC_OPERAND_P): Use
4505         arc_raw_symbolic_reference_mentioned_p function.
4506         * config/arc/constraints.md (Cpc): Use arc_legitimate_pic_addr_p
4507         function.
4508         (Cal): Likewise.
4509         (C32): Likewise.
4511 2017-07-17  Claudiu Zissulescu  <claziss@synopsys.com>
4512         Andrew Burgess  <andrew.burgess@embecosm.com>
4514         * config/arc/arc-protos.h (arc_compute_function_type): Change prototype.
4515         (arc_return_address_register): New function.
4516         * config/arc/arc.c (arc_handle_fndecl_attribute): New function.
4517         (arc_handle_fndecl_attribute): Add naked attribute.
4518         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
4519         (TARGET_WARN_FUNC_RETURN): Likewise.
4520         (arc_allocate_stack_slots_for_args): New function.
4521         (arc_warn_func_return): Likewise.
4522         (machine_function): Change type fn_type.
4523         (arc_compute_function_type): Consider new naked function type,
4524         change function return type.
4525         (arc_must_save_register): Adapt to handle new
4526         arc_compute_function_type's return type.
4527         (arc_expand_prologue): Likewise.
4528         (arc_expand_epilogue): Likewise.
4529         (arc_return_address_regs): Delete.
4530         (arc_return_address_register): New function.
4531         (arc_epilogue_uses): Use above function.
4532         * config/arc/arc.h (arc_return_address_regs): Delete prototype.
4533         (arc_function_type): Change encoding, add naked type.
4534         (ARC_INTERRUPT_P): Change to handle the new encoding.
4535         (ARC_FAST_INTERRUPT_P): Likewise.
4536         (ARC_NORMAL_P): Define.
4537         (ARC_NAKED_P): Likewise.
4538         (arc_compute_function_type): Delete prototype.
4539         * config/arc/arc.md (in_ret_delay_slot): Use
4540         arc_return_address_register function.
4541         (simple_return): Likewise.
4542         (p_return_i): Likewise.
4544 2017-07-17  Jakub Jelinek  <jakub@redhat.com>
4546         PR tree-optimization/81428
4547         * match.pd (X / X -> one): Don't optimize _Fract divisions, as 1
4548         can't be built for those types.
4550 2017-07-17  Georg-Johann Lay  <avr@gjlay.de>
4552         Remove stuff dead since r239246.
4554         * config/avr/avr-arch.h (avr_inform_devices): Remove dead proto.
4555         * config/avr/avr-devices.c (mcu_name, comparator, avr_mcus_str)
4556         (avr_inform_devices): Remove dead stuff.
4558 2017-07-17  Tamar Christina  <tamar.christina@arm.com>
4560         * config/arm/arm_neon.h: Fix softp typo.
4562 2017-07-17  Jakub Jelinek  <jakub@redhat.com>
4564         PR tree-optimization/81365
4565         * tree-ssa-phiprop.c (propagate_with_phi): When considering hoisting
4566         aggregate moves onto bb predecessor edges, make sure there are no
4567         loads that could alias the lhs in between the start of bb and the
4568         loads from *phi.
4570 2017-07-17  Georg-Johann Lay  <avr@gjlay.de>
4572         PR 80929
4573         * config/avr/avr.c (avr_mul_highpart_cost): New static function.
4574         (avr_rtx_costs_1) [TRUNCATE]: Use it to compute mul_highpart cost.
4575         [LSHIFTRT, outer_code = TRUNCATE]: Same.
4577 2017-07-17  Jakub Jelinek  <jakub@redhat.com>
4579         PR tree-optimization/81396
4580         * tree-ssa-math-opts.c (struct symbolic_number): Add n_ops field.
4581         (init_symbolic_number): Initialize it to 1.
4582         (perform_symbolic_merge): Add n_ops from both operands into the new
4583         n_ops.
4584         (find_bswap_or_nop): Don't consider n->n == cmpnop computations
4585         without base_addr as useless if they need more than one operation.
4586         (bswap_replace): Handle !bswap case for NULL base_addr.
4588 2017-07-17  Tom de Vries  <tom@codesourcery.com>
4590         PR target/81069
4591         * config/nvptx/nvptx.c (nvptx_single): Insert diverging branch as late
4592         as possible.
4594 2017-07-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4596         * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
4597         conditional builtin define __FIX_LEON3FT_B2BST.
4599 2017-07-17  Daniel Cederman  <cederman@gaisler.com>
4601         * config/sparc/t-rtems: Add mfix-gr712rc multilibs. Replace
4602         MULTILIB_EXCEPTIONS with MULTILIB_REQUIRED. Match -mfix-gr712rc
4603         with -mfix-ut700.
4605 2017-07-16  Eric Botcazou  <ebotcazou@adacore.com>
4607         PR rtl-optimization/81424
4608         * optabs.c (prepare_cmp_insn): Use copy_to_reg instead of force_reg
4609         to remove potential trapping from operands if -fnon-call-exceptions.
4611 2017-07-16  Jan Hubicka  <hubicka@ucw.cz>
4613         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Use
4614         profile_proability for scalling.
4615         * scale_profile_for_vect_loop.c (scale_profile_for_vect_loop): Likewise.
4617 2017-07-16  Jan Hubicka  <hubicka@ucw.cz>
4619         * cgraph.c (cgraph_edge::redirect_call_stmt_to_caller): Cleanup.
4621 2017-07-16  Jan Hubicka  <hubicka@ucw.cz>
4623         * cfgloopmanip.c (scale_loop_profile): Avoid use of REG_BR_PROB_BASE
4624         fixpoint arithmetics.
4626 2017-07-16  Jan Hubicka  <hubicka@ucw.cz>
4628         * tree-ssa-loop-unswitch.c (hoist_guard): Avoid use of REG_BR_PROB_BASE
4629         fixpoint arithmetics.
4631 2017-07-16  Jan Hubicka  <hubicka@ucw.cz>
4633         * asan.c (create_cond_insert_point): Avoid use of REG_BR_PROB_BASE
4634         fixpoint arithmetics.
4636 2017-07-16  Jan Hubicka  <hubicka@ucw.cz>
4638         * profile-count.h (profile_probability::from_reg_br_prob_note,
4639         profile_probability::to_reg_br_prob_note): New functions.
4640         * doc/rtl.texi (REG_BR_PROB_NOTE): Update documentation.
4641         * reg-notes.h (REG_BR_PROB, REG_BR_PRED): Update docs.
4642         * predict.c (probability_reliable_p): Update.
4643         (edge_probability_reliable_p): Update.
4644         (br_prob_note_reliable_p): Update.
4645         (invert_br_probabilities): Update.
4646         (add_reg_br_prob_note): New function.
4647         (combine_predictions_for_insn): Update.
4648         * asan.c (asan_clear_shadow): Update.
4649         * cfgbuild.c (compute_outgoing_frequencies): Update.
4650         * cfgrtl.c (force_nonfallthru_and_redirect): Update.
4651         (update_br_prob_note): Update.
4652         (rtl_verify_edges): Update.
4653         (purge_dead_edges): Update.
4654         (fixup_reorder_chain): Update.
4655         * emit-rtl.c (try_split): Update.
4656         * ifcvt.c (cond_exec_process_insns): Update.
4657         (cond_exec_process_if_block): Update.
4658         (dead_or_predicable): Update.
4659         * internal-fn.c (expand_addsub_overflow): Update.
4660         (expand_neg_overflow): Update.
4661         (expand_mul_overflow): Update.
4662         * loop-doloop.c (doloop_modify): Update.
4663         * loop-unroll.c (compare_and_jump_seq): Update.
4664         * optabs.c (emit_cmp_and_jump_insn_1): Update.
4665         * predict.h: Update.
4666         * reorg.c (mostly_true_jump): Update.
4667         * rtl.h: Update.
4668         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Update.
4669         * config/alpha/alpha.c (emit_unlikely_jump): Update.
4670         * config/arc/arc.c: (emit_unlikely_jump): Update.
4671         * config/arm/arm.c: (emit_unlikely_jump): Update.
4672         * config/bfin/bfin.c (cbranch_predicted_taken_p): Update.
4673         * config/frv/frv.c (frv_print_operand_jump_hint): Update.
4674         * config/i386/i386.c (ix86_expand_split_stack_prologue): Update.
4675         (ix86_print_operand): Update.
4676         (ix86_split_fp_branch): Update.
4677         (predict_jump): Update.
4678         * config/ia64/ia64.c (ia64_print_operand): Update.
4679         * config/mmix/mmix.c (mmix_print_operand): Update.
4680         * config/powerpcspe/powerpcspe.c (output_cbranch): Update.
4681         (rs6000_expand_split_stack_prologue): Update.
4682         * config/rs6000/rs6000.c: Update.
4683         * config/s390/s390.c (s390_expand_vec_strlen): Update.
4684         (s390_expand_vec_movstr): Update.
4685         (s390_expand_cs_tdsi): Update.
4686         (s390_expand_split_stack_prologue): Update.
4687         * config/sh/sh.c (sh_print_operand): Update.
4688         (expand_cbranchsi4): Update.
4689         (expand_cbranchdi4): Update.
4690         * config/sparc/sparc.c (output_v9branch): Update.
4691         * config/spu/spu.c (get_branch_target): Update.
4692         (ea_load_store_inline): Update.
4693         * config/tilegx/tilegx.c (cbranch_predicted_p): Update.
4694         * config/tilepro/tilepro.c: Update.
4696 2017-07-16  Eric Botcazou  <ebotcazou@adacore.com>
4698         * gimplify.c (mostly_copy_tree_r): Revert latest change.
4699         (gimplify_save_expr): Likewise.
4701 2017-07-07  Jan Hubicka  <hubicka@ucw.cz>
4703         * ipa-visibility.c (function_and_variable_visibility): Fix pasto.
4705 2017-07-07  Jan Hubicka  <hubicka@ucw.cz>
4707         * ipa-fnsummary.c (pass_data_ipa_fn_summary): Use
4708         TV_IPA_FNSUMMARY.
4709         * timevar.def (TV_IPA_FNSUMMARY): Define.
4711 2017-07-16  Daniel Cederman  <cederman@gaisler.com>
4713         * config/sparc/sparc.md (divdf3_fix): Add NOP to prevent back
4714         to back store errata sensitive sequence from being generated.
4715         (sqrtdf2_fix): Likewise.
4717 2017-07-07  Jan Hubicka  <hubicka@ucw.cz>
4719         * tree-ssa-threadupdate.c (compute_path_counts,
4720         update_joiner_offpath_counts): Use profile_probability.
4722 2017-07-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4724         Revert:
4725         2017-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4727         * config/arm/arm-c.c (arm_cpu_builtins): Define
4728         __ARM_FEATURE_NUMERIC_MAXMIN solely based on TARGET_VFP5.
4730 2017-07-14  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4732         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4733         array entries to represent __ieee128 versions of the
4734         scalar_test_data_class, scalar_test_neg, scalar_extract_exp,
4735         scalar_extract_sig, and scalar_insert_exp built-in functions.
4736         (altivec_resolve_overloaded_builtin): Add special case handling
4737         for the __builtin_scalar_insert_exp function, as represented by
4738         the P9V_BUILTIN_VEC_VSIEDP constant.
4739         * config/rs6000/rs6000-builtin.def (VSEEQP): Add scalar extract
4740         exponent support for __ieee128 argument.
4741         (VSESQP): Add scalar extract signature support for __ieee128
4742         argument.
4743         (VSTDCNQP): Add scalar test negative support for __ieee128
4744         argument.
4745         (VSIEQP): Add scalar insert exponent support for __int128 argument
4746         with __ieee128 result.
4747         (VSIEQPF): Add scalar insert exponent support for __ieee128
4748         argument with __ieee128 result.
4749         (VSTDCQP): Add scalar test data class support for __ieee128
4750         argument.
4751         (VSTDCNQP): Add overload support for scalar test negative with
4752         __ieee128 argument.
4753         (VSTDCQP): Add overload support for scalar test data class
4754         __ieee128 argument.
4755         * config/rs6000/vsx.md (UNSPEC_VSX_SXSIG) Replace
4756         UNSPEC_VSX_SXSIGDP.
4757         (UNSPEC_VSX_SIEXPQP): New constant.
4758         (xsxexpqp): New insn for VSX scalar extract exponent quad
4759         precision.
4760         (xsxsigqp): New insn for VSX scalar extract significand quad
4761         precision.
4762         (xsiexpqpf): New insn for VSX scalar insert exponent quad
4763         precision with floating point argument.
4764         (xststdcqp): New expand for VSX scalar test data class quad
4765         precision.
4766         (xststdcnegqp): New expand for VSX scalar test negative quad
4767         precision.
4768         (xststdcqp): New insn to match expansions for VSX scalar test data
4769         class quad precision and VSX scalar test negative quad precision.
4770         * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
4771         special case operand checking to enforce that second operand of
4772         VSX scalar test data class with quad precision argument is a 7-bit
4773         unsigned literal.
4774         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
4775         prototypes and descriptions of __ieee128 versions of
4776         scalar_extract_exp, scalar_extract_sig, scalar_insert_exp,
4777         scalar_test_data_class, and scalar_test_neg built-in functions.
4779 2016-07-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4781         PR tree-optimization/81162
4782         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Don't
4783         replace a negate with an add.
4785 2017-07-14  James Greenhalgh  <james.greenhalgh@arm.com>
4787         * doc/invoke.texi (arm/-mcpu): Document +crypto.
4789 2017-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4791         * config/arm/arm-c.c (arm_cpu_builtins): Define
4792         __ARM_FEATURE_NUMERIC_MAXMIN solely based on TARGET_VFP5.
4794 2017-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4796         * config/arm/arm-cpus.in (cortex-r52): Add new entry.
4797         (armv8-r): Set ARM Cortex-R52 as default CPU.
4798         * config/arm/arm-tables.opt: Regenerate.
4799         * config/arm/arm-tune.md: Regenerate.
4800         * config/arm/driver-arm.c (arm_cpu_table): Add entry for ARM
4801         Cortex-R52.
4802         * doc/invoke.texi: Mention -mtune=cortex-r52 and availability of fp.dp
4803         extension for -mcpu=cortex-r52.
4805 2017-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4807         * config/arm/arm-isa.h (isa_bit_FP_ARMv8): Delete enumerator.
4808         (ISA_FP_ARMv8): Define as ISA_FPv5 and ISA_FP_D32.
4809         * config/arm/arm-cpus.in (armv8-r): Define fp.sp as enabling FPv5.
4810         (fp-armv8): Define it as FP_ARMv8 only.
4811         config/arm/arm.h (TARGET_FPU_ARMV8): Delete.
4812         (TARGET_VFP_FP16INST): Define using TARGET_VFP5 rather than
4813         TARGET_FPU_ARMV8.
4814         config/arm/arm.c (arm_rtx_costs_internal): Replace checks against
4815         TARGET_FPU_ARMV8 by checks against TARGET_VFP5.
4816         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Define
4817         first ARM_CHECK_BUILTIN_MODE definition using TARGET_VFP5 rather
4818         than TARGET_FPU_ARMV8.
4819         * config/arm/arm-c.c (arm_cpu_builtins): Likewise for
4820         __ARM_FEATURE_NUMERIC_MAXMIN macro definition.
4821         * config/arm/arm.md (cmov<mode>): Condition on TARGET_VFP5 rather than
4822         TARGET_FPU_ARMV8.
4823         * config/arm/neon.md (neon_vrint): Likewise.
4824         (neon_vcvt): Likewise.
4825         (neon_<fmaxmin_op><mode>): Likewise.
4826         (<fmaxmin><mode>3): Likewise.
4827         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Likewise.
4828         * config/arm/predicates.md (arm_cond_move_operator): Check against
4829         TARGET_VFP5 rather than TARGET_FPU_ARMV8 and fix spacing.
4831 2017-07-14  Jackson Woodruff  <jackson.woodruff@arm.com>
4833         * config/aarch64/aarch64.c (aarch64_print_operand): Move comments
4834         to top of function.
4836 2017-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4838         * gimple-ssa-store-merging.c (clear_bit_region): Replace reference to
4839         loop in comment with memset.
4841 2017-07-14  Martin Liska  <mliska@suse.cz>
4843         * cfgexpand.c (expand_gimple_basic_block): Remove dead comment.
4844         * dwarf2out.c (is_java): Remove the function.
4845         (output_pubname): Remove usage of the function.
4846         (lower_bound_default): Remove usage of DW_LANG_Java.
4847         (gen_compile_unit_die): Likewise.
4848         * gcc.c: Remove compiler defaults for .java and .zip files.
4849         * gimple-expr.c (remove_suffix): Change as there's no longer
4850         extension than 4-letter one.
4851         * gimplify.c (mostly_copy_tree_r): Remove Java-special part.
4852         (gimplify_save_expr): Likewise.
4853         * ipa-utils.h (polymorphic_type_binfo_p): Remove the comment
4854         as it's possible even for other languages than Java.
4855         * langhooks.h (struct lang_hooks): Remove Java from a comment.
4856         * lto-opts.c (lto_write_options): Remove reference to Java.
4857         * opts.c (strip_off_ending): Update file extension handling.
4858         * tree-cfg.c (verify_gimple_call): Remove comment with Java.
4859         * tree-eh.c (lower_resx): Likewise.
4860         * tree.c (free_lang_data_in_type): Remove dead code.
4861         (find_decls_types_r): Likewise.
4862         (build_common_builtin_nodes): Remove Java from a comment.
4863         (verify_type): Remove dead code.
4864         * varasm.c (assemble_external): Remove Java from a comment.
4866 2017-07-14  Martin Liska  <mliska@suse.cz>
4868         * opts.c (finish_options): Add quotes.
4869         (common_handle_option): Likewise.
4871 2017-07-14  Martin Liska  <mliska@suse.cz>
4873         * dbxout.c (get_lang_number): Do not handle GNU Pascal.
4874         * dbxout.h (extern void dbxout_stab_value_internal_label_diff):
4875         Remove N_SO_PASCAL.
4876         * dwarf2out.c (lower_bound_default): Do not handle
4877         DW_LANG_Pascal83.
4878         (gen_compile_unit_die): Likewise.
4879         * gcc.c: Remove default extension binding for GNU Pascal.
4880         * stmt.c: Remove Pascal language from a comment.
4881         * xcoffout.c: Likewise.
4883 2017-07-13  David Malcolm  <dmalcolm@redhat.com>
4885         PR c/81405
4886         * diagnostic-show-locus.c (fixit_cmp): New function.
4887         (layout::layout): Sort m_fixit_hints.
4888         (column_range::column_range): Assert that the values are valid.
4889         (struct char_span): New struct.
4890         (correction::overwrite): New method.
4891         (struct source_line): New struct.
4892         (line_corrections::add_hint): Add assertions.  Reimplement memcpy
4893         calls in terms of classes source_line and char_span, and
4894         correction::overwrite.
4895         (selftest::test_overlapped_fixit_printing_2): New function.
4896         (selftest::diagnostic_show_locus_c_tests): Call it.
4898 2017-07-13  Will Schmidt  <will_schmidt@vnet.ibm.com>
4900         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Return
4901         early if there is no lhs.
4903 2017-07-13  Martin Liska  <mliska@suse.cz>
4905         * dwarf2out.c (gen_pointer_type_die): Remove dead code.
4906         (gen_reference_type_die): Likewise.
4907         * stor-layout.c: Remove Pascal-related comment.
4909 2017-07-13  Martin Liska  <mliska@suse.cz>
4911         * opts.c (finish_options): Add quotes to error messages.
4912         (parse_sanitizer_options): Likewise.
4914 2017-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4916         * doc/invoke.texi (armv8-r): Document +fp.sp ARMv8-R extension.
4918 2017-07-13  Richard Earnshaw  <rearnsha@arm.com>
4920         * config/arm/vxworks.h (TARGET_ENDIAN_DEFAULT): Define.
4922 2017-07-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
4924         * asan.c (asan_emit_allocas_unpoison): Use ptr_mode for arguments
4925         during expansion.
4926         * builtins.c (expand_asan_emit_allocas_unpoison): Likewise.
4928 2017-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4930         PR target/81193
4931         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): If GLIBC
4932         provides the hardware capability bits, define the macro
4933         __BUILTIN_CPU_SUPPORTS__.
4934         * config/rs6000/rs6000.c (cpu_expand_builtin): Generate a warning
4935         if GLIBC does not provide the hardware capability bits.  Add a
4936         gcc_unreachable call if the built-in cpu function is neither
4937         __builtin_cpu_is nor __builtin_cpu_supports.
4938         (rs6000_get_function_versions_dispatcher): Change the warning
4939         that an old GLIBC is used which does not export the capability
4940         bits to be an error.
4941         * doc/extend.texi (target_clones attribute): Document the
4942         restriction that GLIBC 2.23 or newer is needed on the PowerPC.
4943         (PowerPC built-in functions): Document that GLIBC 2.23 or newer is
4944         needed by __builtin_cpu_is and __builtin_cpu_supports.  Document
4945         the macros defined by GCC if the newer GLIBC is available.
4947 2017-07-12  Jeff Law  <law@redhat.com>
4949         * config/riscv/riscv.c: Remove unnecessary includes.  Reorder
4950         remaining includes slightly.
4951         * config/riscv/riscv-builtins.c: Include profile-count.h.
4953 2017-07-12  Georg-Johann Lay  <avr@gjlay.de>
4955         PR target/79883
4956         * config/avr/avr.c (avr_set_current_function): In diagnostic
4957         messages: Quote keywords and (parts of) identifiers.
4958         [WITH_AVRLIBC]: Warn for functions named "ISR", "SIGNAL" or
4959         "INTERUPT".
4961 2017-07-12  Carl Love  <cel@us.ibm.com>
4963         * config/rs6000/rs6000-c.c: Add support for built-in functions
4964         vector bool char vec_revb (vector bool char);
4965         vector bool short vec_revb (vector short char);
4966         vector bool int vec_revb (vector bool int);
4967         vector bool long long vec_revb (vector bool long long);
4968         * doc/extend.texi: Update the built-in documentation file for the
4969         new built-in functions.
4971 2017-07-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4973         * config/s390/s390.md: Remove movcc splitter.
4975 2017-07-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4977         * config/s390/s390.c (s390_rtx_costs): Return proper costs for
4978         load/store on condition.
4980 2017-07-12  Georg-Johann Lay  <avr@gjlay.de>
4982         PR target/81407
4983         * config/avr/avr.c (avr_encode_section_info)
4984         [progmem && !TREE_READONLY]: Error if progmem object needs
4985         constructing.
4987 2017-07-11  Michael Collison  <michael.collison@arm.com>
4989         * config/aarch64/aarch64-simd.md (aarch64_sub<mode>_compare0):
4990         New pattern.
4992 2017-07-11  Carl Love  <cel@us.ibm.com>
4994         * config/rs6000/rs6000-c.c: Add support for builtins
4995         vector unsigned int vec_parity_lsbb (vector signed int);
4996         vector unsigned int vec_parity_lsbb (vector unsigned int);
4997         vector unsigned __int128 vec_parity_lsbb (vector signed __int128);
4998         vector unsigned __int128 vec_parity_lsbb (vector unsigned __int128);
4999         vector unsigned long long vec_parity_lsbb (vector signed long long);
5000         vector unsigned long long vec_parity_lsbb (vector unsigned long long);
5001         * config/rs6000/rs6000-builtin.def (VPARITY_LSBB): Add BU_P9V_OVERLOAD1.
5002         * config/rs6000/altivec.h (vec_parity_lsbb): Add define.
5003         * doc/extend.texi: Update the built-in documentation file for the
5004         new built-in functions.
5006 2017-07-11  David Malcolm  <dmalcolm@redhat.com>
5008         * diagnostic-show-locus.c: Include "gcc-rich-location.h".
5009         (layout::m_primary_loc): New field.
5010         (layout::layout): Initialize new field.  Move location filtering
5011         logic from here to...
5012         (layout::maybe_add_location_range): ...this new method.  Add
5013         support for filtering to just the lines already specified by other
5014         locations.
5015         (layout::will_show_line_p): New method.
5016         (gcc_rich_location::add_location_if_nearby): New method.
5017         (selftest::test_add_location_if_nearby): New test function.
5018         (selftest::diagnostic_show_locus_c_tests): Call it.
5019         * gcc-rich-location.h (gcc_rich_location::add_location_if_nearby):
5020         New method.
5022 2017-07-11  Tom de Vries  <tom@codesourcery.com>
5024         * config/nvptx/nvptx.c (WORKAROUND_PTXJIT_BUG): New macro.
5025         (bb_first_real_insn): New function.
5026         (nvptx_single): Add extra initialization of broadcasted condition
5027         variables.
5029 2017-07-11  Nathan Sidwell  <nathan@acm.org>
5031         * dwarf2out.c (gen_member_die): Remove useless check for anon ctors.
5033 2017-07-11  Georg-Johann Lay  <avr@gjlay.de>
5035         * doc/extend.texi (AVR Function Attributes): Remove weblink to
5036         Binutils doc as TEXI will mess them up.
5037         * doc/invoke.texi (AVR Options): Same here.
5039 2017-07-11  Daniel Cederman  <cederman@gaisler.com>
5041         * config/sparc/sparc.opt (mfix-ut700): New option.
5042         (mfix-gr712rc): Likewise.
5043         (sparc_fix_b2bst): New variable.
5044         * doc/invoke.texi (SPARC options): Document them.
5045         (ARM options): Fix warnings.
5046         * config/sparc/sparc.c (sparc_do_work_around_errata): Insert NOP
5047         instructions to prevent sequences that can trigger the store-store
5048         errata for certain LEON3FT processors.
5049         (pass_work_around_errata::gate): Also test sparc_fix_b2bst.
5050         (sparc_option_override): Set sparc_fix_b2bst appropriately.
5051         * config/sparc/sparc.md (fix_b2bst): New attribute.
5052         (in_branch_delay): Prevent stores in delay slot if fix_b2bst.
5054 2017-07-10  Uros Bizjak  <ubizjak@gmail.com>
5056         PR target/81375
5057         * config/i386/i386.md (divsf3): Add TARGET_SSE to TARGET_SSE_MATH.
5058         (rcpps): Ditto.
5059         (*rsqrtsf2_sse): Ditto.
5060         (rsqrtsf2): Ditto.
5061         (div<mode>3): Macroize insn from divdf3 and divsf3
5062         using MODEF mode iterator.
5064 2017-07-10  Martin Sebor  <msebor@redhat.com>
5066         PR tree-optimization/80397
5067         * gimple-ssa-sprintf.c (format_integer): Use INTEGRAL_TYPE_P()
5068         instead of testing for equality to INTEGER_TYPE.
5070 2017-07-10  Vineet Gupta <vgupta@synopsys.com>
5072         * config.gcc: Remove uclibc from arc target spec.
5074 2017-07-10  Claudiu Zissulescu  <claziss@synopsys.com>
5076         * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Define.
5078 2017-07-07  Jan Hubicka  <hubicka@ucw.cz>
5080         PR lto/80838
5081         * lto-wrapper.c (remove_option): New function.
5082         (merge_and_complain): Merge PIC/PIE options more realistically.
5084 2017-07-10  Georg-Johann Lay  <avr@gjlay.de>
5086         Better ISR prologues by supporting GASes __gcc_isr pseudo insn.
5088         PR target/20296
5089         PR target/81268
5090         * configure.ac [target=avr]: Add GAS check for -mgcc-isr.
5091         (HAVE_AS_AVR_MGCCISR_OPTION):  If so, AC_DEFINE it.
5092         * config.in: Regenerate.
5093         * configure: Regenerate.
5094         * doc/extend.texi (AVR Function Attributes) <no_gccisr>: Document it.
5095         * doc/invoke.texi (AVR Options) <-mgas-isr-prologues>: Document it.
5096         * config/avr/avr.opt (-mgas-isr-prologues): New option and...
5097         (TARGET_GASISR_PROLOGUES): ...target mask.
5098         * common/config/avr/avr-common.c
5099         (avr_option_optimization_table) [OPT_LEVELS_1_PLUS_NOT_DEBUG]:
5100         Set -mgas-isr-prologues.
5101         * config/avr/avr-passes.def (avr_pass_pre_proep): Add
5102         INSERT_PASS_BEFORE for it.
5103         * config/avr/avr-protos.h (make_avr_pass_pre_proep): New proto.
5104         * config/avr/avr.c (avr_option_override)
5105         [!HAVE_AS_AVR_MGCCISR_OPTION]: Unset TARGET_GASISR_PROLOGUES.
5106         (avr_no_gccisr_function_p, avr_hregs_split_reg): New static functions.
5107         (avr_attribute_table) <no_gccisr>: Add new function attribute.
5108         (avr_set_current_function) <is_no_gccisr>: Init machine field.
5109         (avr_pass_data_pre_proep, avr_pass_pre_proep): New pass data
5110         and rtl_opt_pass.
5111         (make_avr_pass_pre_proep): New function.
5112         (emit_push_sfr) <treg>: Add argument to function and use it
5113         instead of TMP_REG.
5114         (avr_expand_prologue) [machine->gasisr.maybe]: Emit gasisr insn
5115         and set machine->gasisr.yes.
5116         (avr_expand_epilogue) [machine->gasisr.yes]: Similar.
5117         (avr_asm_function_end_prologue) [machine->gasisr.yes]: Add
5118         __gcc_isr.n_pushed to .L__stack_usage.
5119         (TARGET_ASM_FINAL_POSTSCAN_INSN): Define to...
5120         (avr_asm_final_postscan_insn): ...this new static function.
5121         * config/avr/avr.h (machine_function)
5122         <is_no_gccisr, use_L__stack_usage>: New fields.
5123         <gasisr, gasisr.yes, gasisr.maybe, gasisr.regno>: New fields.
5124         * config/avr/avr.md (UNSPECV_GASISR): Add unspecv enum.
5125         (GASISR_Prologue, GASISR_Epilogue, GASISR_Done): New define_constants.
5126         (gasisr, *gasisr): New expander and insn.
5127         * config/avr/gen-avr-mmcu-specs.c (print_mcu)
5128         [HAVE_AS_AVR_MGCCISR_OPTION]: Print asm_gccisr spec.
5129         * config/avr/specs.h (ASM_SPEC) <asm_gccisr>: Add sub spec.
5131 2017-07-10  Richard Earnshaw  <rearnsha@arm.com>
5133         * config/arm/parsecpu.awk (gen_comm_data): Do not escape single quotes
5134         in quoted strings.
5136 2017-07-10  Georg-Johann Lay  <avr@gjlay.de>
5138         Move jump-tables out of .text again.
5140         PR target/81075
5141         * config/avr/avr.c (ASM_OUTPUT_ADDR_VEC_ELT): Remove function.
5142         (ASM_OUTPUT_ADDR_VEC): New function.
5143         (avr_adjust_insn_length) [JUMP_TABLE_DATA_P]: Return 0.
5144         (avr_final_prescan_insn) [avr_log.insn_addresses]: Dump
5145         INSN_ADDRESSes as asm comment.
5146         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION): Adjust comment.
5147         (ASM_OUTPUT_ADDR_VEC_ELT): Remove define.
5148         (ASM_OUTPUT_ADDR_VEC): Define to avr_output_addr_vec.
5149         * config/avr/avr.md (*tablejump): Adjust comment.
5150         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
5151         * config/avr/avr-log.c (avr_log_set_avr_log) <insn_addresses>:
5152         New detail.
5153         * config/avr/avr-protos.h (avr_output_addr_vec_elt): Remove proto.
5154         (avr_output_addr_vec): New proto.
5155         (avr_log_t) <insn_addresses>: New field.
5157 2017-07-09  H.J. Lu  <hongjiu.lu@intel.com>
5159         PR target/81313
5160         * config/i386/i386.c (ix86_function_arg_advance): Set
5161         outgoing_args_on_stack to true if there are outgoing arguments
5162         on stack.
5163         (ix86_function_arg): Likewise.
5164         (ix86_get_drap_rtx): Use DRAP only if there are outgoing
5165         arguments on stack and ACCUMULATE_OUTGOING_ARGS is false.
5166         * config/i386/i386.h (machine_function): Add
5167         outgoing_args_on_stack.
5169 2017-07-09  Krister Walfridsson  <krister.walfridsson@gmail.com>
5171         * config.gcc (*-*-netbsd*): Remove check for NetBSD versions not
5172         supporting pthreds.
5173         * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always enable pthreads.
5175 2017-07-08  Richard Sandiford  <richard.sandiford@linaro.org>
5177         * Makefile.in (HOOKS_H, RTL_BASE_H, FUNCTION_H, EXPR_H, REGS_H)
5178         (REAL_H): Remove $(MACHMODE_H).
5179         (FIXED_VALUE_H, TREE_CORE_H, CFGLOOP_H): Remove $(MACHMODE_H) and
5180         double-int.h.
5181         (CORETYPES_H): Add signop.h, wide-int.h, wide-int-print.h,
5182         $(MACHMODE_H) and double-int.h.
5183         (build/min-insn-modes.o): Depend on $(CORETYPES_H) rather than
5184         $(MACHMODE_H).
5185         (gengtype-state.o, gengtype.o, build/gengtype.o): Don't depend on
5186         double-int.h.
5188 2017-07-07  Andrew Pinski  <apinski@cavium.com>
5190         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Check
5191         prev_set and curr_set for AARCH64_FUSE_ALU_BRANCH.
5193 2017-07-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
5195         * config/rs6000/rs6000.c (rs6000_get_function_versions_dispatcher):
5196         Add warning if GCC was not configured to link against a GLIBC that
5197         exports the hardware capability bits.
5198         (make_resolver_func): Make resolver function private and not a
5199         COMDAT function.  Create the name with clone_function_name instead
5200         of make_unique_name.
5202         PR target/81348
5203         * config/rs6000/rs6000.md (HI sign_extend splitter): Use the
5204         correct operand in doing the split.
5206 2017-07-07 Carl Love  <cel@us.ibm.com>
5208         * config/rs6000/rs6000-c: Add support for built-in function
5209         vector unsigned short vec_pack_to_short_fp32 (vector float,
5210                                                       vector float).
5211         * config/rs6000/rs6000-builtin.def (CONVERT_4F32_8I16): Add
5212         BU_P9V_AV_2 and BU_P9V_OVERLOAD_2 definitions.
5213         * config/rs6000/altivec.h (vec_pack_to_short_fp32): Add define.
5214         * config/rs6000/altivec.md(UNSPEC_CONVERT_4F32_8I16): Add UNSPEC.
5215         (convert_4f32_8i16): Add define_expand.
5216         * doc/extend.texi: Update the built-in documentation file for the
5217         new built-in function.
5219 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
5221         * config/sparc/m8.md: New file.
5222         * config/sparc/sparc.md: Include m8.md.
5224 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
5226         * config/sparc/sparc.opt: New option -mvis4b.
5227         * config/sparc/sparc.c (dump_target_flag_bits): Handle MASK_VIS4B.
5228         (sparc_option_override): Handle VIS4B.
5229         (enum sparc_builtins): Define
5230         SPARC_BUILTIN_DICTUNPACK{8,16,32},
5231         SPARC_BUILTIN_FPCMP{LE,GT,EQ,NE}{8,16,32}SHL,
5232         SPARC_BUILTIN_FPCMPU{LE,GT}{8,16,32}SHL,
5233         SPARC_BUILTIN_FPCMPDE{8,16,32}SHL and
5234         SPARC_BUILTIN_FPCMPUR{8,16,32}SHL.
5235         (check_constant_argument): New function.
5236         (sparc_vis_init_builtins): Define builtins
5237         __builtin_vis_dictunpack{8,16,32},
5238         __builtin_vis_fpcmp{le,gt,eq,ne}{8,16,32}shl,
5239         __builtin_vis_fpcmpu{le,gt}{8,16,32}shl,
5240         __builtin_vis_fpcmpde{8,16,32}shl and
5241         __builtin_vis_fpcmpur{8,16,32}shl.
5242         (sparc_expand_builtin): Check that the constant operands to
5243         __builtin_vis_fpcmp*shl and _builtin_vis_dictunpack* are indeed
5244         constant and in range.
5245         * config/sparc/sparc-c.c (sparc_target_macros): Handle
5246         TARGET_VIS4B.
5247         * config/sparc/sparc.h (SPARC_IMM2_P): Define.
5248         (SPARC_IMM5_P): Likewise.
5249         * config/sparc/sparc.md (cpu_feature): Add new feagure "vis4b".
5250         (enabled): Handle vis4b.
5251         (UNSPEC_DICTUNPACK): New unspec.
5252         (UNSPEC_FPCMPSHL): Likewise.
5253         (UNSPEC_FPUCMPSHL): Likewise.
5254         (UNSPEC_FPCMPDESHL): Likewise.
5255         (UNSPEC_FPCMPURSHL): Likewise.
5256         (cpu_feature): New CPU feature `vis4b'.
5257         (dictunpack{8,16,32}): New insns.
5258         (FPCSMODE): New mode iterator.
5259         (fpcscond): New code iterator.
5260         (fpcsucond): Likewise.
5261         (fpcmp{le,gt,eq,ne}{8,16,32}{si,di}shl): New insns.
5262         (fpcmpu{le,gt}{8,16,32}{si,di}shl): Likewise.
5263         (fpcmpde{8,16,32}{si,di}shl): Likewise.
5264         (fpcmpur{8,16,32}{si,di}shl): Likewise.
5265         * config/sparc/constraints.md: Define constraints `q' for unsigned
5266         2-bit integer constants and `t' for unsigned 5-bit integer
5267         constants.
5268         * config/sparc/predicates.md (imm5_operand_dictunpack8): New
5269         predicate.
5270         (imm5_operand_dictunpack16): Likewise.
5271         (imm5_operand_dictunpack32): Likewise.
5272         (imm2_operand): Likewise.
5273         * doc/invoke.texi (SPARC Options): Document -mvis4b.
5274         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
5275         ditunpack* and fpcmp*shl builtins.
5277 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
5279         * config.gcc: Handle m8 in --with-{cpu,tune} options.
5280         * config.in: Add HAVE_AS_SPARC6 define.
5281         * config/sparc/driver-sparc.c (cpu_names): Add entry for the SPARC
5282         M8.
5283         * config/sparc/sol2.h (CPP_CPU64_DEFAULT_SPEC): Define for
5284         TARGET_CPU_m8.
5285         (ASM_CPU32_DEFAUILT_SPEC): Likewise.
5286         (CPP_CPU_SPEC): Handle m8.
5287         (ASM_CPU_SPEC): Likewise.
5288         * config/sparc/sparc-opts.h (enum processor_type): Add
5289         PROCESSOR_M8.
5290         * config/sparc/sparc.c (m8_costs): New struct.
5291         (sparc_option_override): Handle TARGET_CPU_m8.
5292         (sparc32_initialize_trampoline): Likewise.
5293         (sparc64_initialize_trampoline): Likewise.
5294         (sparc_issue_rate): Likewise.
5295         (sparc_register_move_cost): Likewise.
5296         * config/sparc/sparc.h (TARGET_CPU_m8): Define.
5297         (CPP_CPU64_DEFAULT_SPEC): Define for M8.
5298         (ASM_CPU64_DEFAULT_SPEC): Likewise.
5299         (CPP_CPU_SPEC): Handle M8.
5300         (ASM_CPU_SPEC): Likewise.
5301         (AS_M8_FLAG): Define.
5302         * config/sparc/sparc.md: Add m8 to the cpu attribute.
5303         * config/sparc/sparc.opt: New option -mcpu=m8 for sparc targets.
5304         * configure.ac (HAVE_AS_SPARC6): Check for assembler support for
5305         M8 instructions.
5306         * configure: Regenerate.
5307         * doc/invoke.texi (SPARC Options): Document -mcpu=m8 and
5308         -mtune=m8.
5310 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
5312         * config/sparc/niagara7.md: Rework the DFA scheduler to use insn
5313         subtypes.
5314         * config/sparc/sparc.md: Remove the `v3pipe' insn attribute.
5315         ("*movdi_insn_sp32"): Do not set v3pipe.
5316         ("*movsi_insn"): Likewise.
5317         ("*movdi_insn_sp64"): Likewise.
5318         ("*movsf_insn"): Likewise.
5319         ("*movdf_insn_sp32"): Likewise.
5320         ("*movdf_insn_sp64"): Likewise.
5321         ("*zero_extendsidi2_insn_sp64"): Likewise.
5322         ("*sign_extendsidi2_insn"): Likewise.
5323         ("*mov<VM32:mode>_insn"): Likewise.
5324         ("*mov<VM64:mode>_insn_sp64"): Likewise.
5325         ("*mov<VM64:mode>_insn_sp32"): Likewise.
5326         ("<plusminus_insn><VADDSUB:mode>3"): Likewise.
5327         ("<vlop:code><VL:mode>3"): Likewise.
5328         ("*not_<vlop:code><VL:mode>3"): Likewise.
5329         ("*nand<VL:mode>_vis"): Likewise.
5330         ("*<vlnotop:code>_not1<VL:mode>_vis"): Likewise.
5331         ("*<vlnotop:code>_not2<VL:mode>_vis"): Likewise.
5332         ("one_cmpl<VL:mode>2"): Likewise.
5333         ("faligndata<VM64:mode>_vis"): Likewise.
5334         ("alignaddrsi_vis"): Likewise.
5335         ("alignaddrdi_vis"): Likweise.
5336         ("alignaddrlsi_vis"): Likewise.
5337         ("alignaddrldi_vis"): Likewise.
5338         ("fcmp<gcond:code><GCM:gcm_name><P:mode>_vis"): Likewise.
5339         ("bmaskdi_vis"): Likewise.
5340         ("bmasksi_vis"): Likewise.
5341         ("bshuffle<VM64:mode>_vis"): Likewise.
5342         ("cmask8<P:mode>_vis"): Likewise.
5343         ("cmask16<P:mode>_vis"): Likewise.
5344         ("cmask32<P:mode>_vis"): Likewise.
5345         ("pdistn<P:mode>_vis"): Likewise.
5346         ("<vis3_addsub_ss_patname><VASS:mode>3"): Likewise.
5348 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
5350         * config/sparc/sparc.md ("subtype"): New insn attribute.
5351         ("*wrgsr_sp64"): Set insn subtype.
5352         ("*rdgsr_sp64"): Likewise.
5353         ("alignaddrsi_vis"): Likewise.
5354         ("alignaddrdi_vis"): Likewise.
5355         ("alignaddrlsi_vis"): Likewise.
5356         ("alignaddrldi_vis"): Likewise.
5357         ("<plusminus_insn><VADDSUB:mode>3"): Likewise.
5358         ("fexpand_vis"): Likewise.
5359         ("fpmerge_vis"): Likewise.
5360         ("faligndata<VM64:mode>_vis"): Likewise.
5361         ("bshuffle<VM64:mode>_vis"): Likewise.
5362         ("cmask8<P:mode>_vis"): Likewise.
5363         ("cmask16<P:mode>_vis"): Likewise.
5364         ("cmask32<P:mode>_vis"): Likewise.
5365         ("fchksm16_vis"): Likewise.
5366         ("v<vis3_shift_patname><GCM:mode>3"): Likewise.
5367         ("fmean16_vis"): Likewise.
5368         ("fp<plusminus_insn>64_vis"): Likewise.
5369         ("<plusminus_insn>v8qi3"): Likewise.
5370         ("<vis3_addsub_ss_patname><VASS:mode>3"): Likewise.
5371         ("<vis4_minmax_patname><VMMAX:mode>3"): Likewise.
5372         ("<vis4_uminmax_patname><VMMAX:mode>3"): Likewise.
5373         ("<vis3_addsub_ss_patname>v8qi3"): Likewise.
5374         ("<vis4_addsub_us_patname><VAUS:mode>3"): Likewise.
5375         ("*movqi_insn"): Likewise.
5376         ("*movhi_insn"): Likewise.
5377         ("*movsi_insn"): Likewise.
5378         ("movsi_pic_gotdata_op"): Likewise.
5379         ("*movdi_insn_sp32"): Likewise.
5380         ("*movdi_insn_sp64"): Likewise.
5381         ("movdi_pic_gotdata_op"): Likewise.
5382         ("*movsf_insn"): Likewise.
5383         ("*movdf_insn_sp32"): Likewise.
5384         ("*movdf_insn_sp64"): Likewise.
5385         ("*zero_extendhisi2_insn"): Likewise.
5386         ("*zero_extendqihi2_insn"): Likewise.
5387         ("*zero_extendqisi2_insn"): Likewise.
5388         ("*zero_extendqidi2_insn"): Likewise.
5389         ("*zero_extendhidi2_insn"): Likewise.
5390         ("*zero_extendsidi2_insn_sp64"): Likewise.
5391         ("ldfsr"): Likewise.
5392         ("prefetch_64"): Likewise.
5393         ("prefetch_32"): Likewise.
5394         ("tie_ld32"): Likewise.
5395         ("tie_ld64"): Likewise.
5396         ("*tldo_ldub_sp32"): Likewise.
5397         ("*tldo_ldub1_sp32"): Likewise.
5398         ("*tldo_ldub2_sp32"): Likewise.
5399         ("*tldo_ldub_sp64"): Likewise.
5400         ("*tldo_ldub1_sp64"): Likewise.
5401         ("*tldo_ldub2_sp64"): Likewise.
5402         ("*tldo_ldub3_sp64"): Likewise.
5403         ("*tldo_lduh_sp32"): Likewise.
5404         ("*tldo_lduh1_sp32"): Likewise.
5405         ("*tldo_lduh_sp64"): Likewise.
5406         ("*tldo_lduh1_sp64"): Likewise.
5407         ("*tldo_lduh2_sp64"): Likewise.
5408         ("*tldo_lduw_sp32"): Likewise.
5409         ("*tldo_lduw_sp64"): Likewise.
5410         ("*tldo_lduw1_sp64"): Likewise.
5411         ("*tldo_ldx_sp64"): Likewise.
5412         ("*mov<VM32:mode>_insn"): Likewise.
5413         ("*mov<VM64:mode>_insn_sp64"): Likewise.
5414         ("*mov<VM64:mode>_insn_sp32"): Likewise.
5416 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
5418         * config/sparc/sparc.md ("type"): New insn type viscmp.
5419         ("fcmp<gcond:code><GCM:gcm_name><P:mode>_vis"): Set insn type to
5420         viscmp.
5421         ("fpcmp<gcond:code>8<P:mode>_vis"): Likewise.
5422         ("fucmp<gcond:code>8<P:mode>_vis"): Likewise.
5423         ("fpcmpu<gcond:code><GCM:gcm_name><P:mode>_vis"): Likewise.
5424         * config/sparc/niagara7.md ("n7_vis_logical_v3pipe"): Handle
5425         viscmp.
5426         ("n7_vis_logical_11cycle"): Likewise.
5427         * config/sparc/niagara4.md ("n4_vis_logical"): Likewise.
5428         * config/sparc/niagara2.md ("niag3_vis": Likewise.
5429         * config/sparc/niagara.md ("niag_vis"): Likewise.
5430         * config/sparc/ultra3.md ("us3_fga"): Likewise.
5431         * config/sparc/ultra1_2.md ("us1_fga_double"): Likewise.
5433 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
5435         * config/sparc/sparc.md: New instruction type `bmask'.
5436         (bmaskdi_vis): Use the `bmask' type.
5437         (bmasksi_vis): Likewise.
5438         * config/sparc/ultra3.md (us3_array): Likewise.
5439         * config/sparc/niagara7.md (n7_array): Likewise.
5440         * config/sparc/niagara4.md (n4_array): Likewise.
5441         * config/sparc/niagara2.md (niag2_vis): Likewise.
5442         (niag3_vis): Likewise.
5443         * config/sparc/niagara.md (niag_vis): Likewise.
5445 2017-07-06  Jan Hubicka  <hubicka@ucw.cz>
5447         * ipa-comdats.c: Remove optimize check from gate.
5448         * ipa-fnsummary.c (ipa_fn_summary_generate): do not generate summary
5449         for functions not optimized.
5450         (ipa_fn_summary_read): Skip optimize check.
5451         (ipa_fn_summary_write): Likewise.
5452         * ipa-inline-analysis.c (do_estimate_growth_1): Check that caller
5453         is optimized.
5454         * ipa-inline.c (can_inline_edge_p): Not optimized functions are
5455         uninlinable.
5456         (can_inline_edge_p): Check flag_pcc_struct_return for match.
5457         (check_callers): Give up on caller which is not optimized.
5458         (inline_small_functions): Likewise.
5459         (ipa_inline): Do not give up when not optimizing.
5460         * ipa-visbility.c (function_and_variable_visibility): Do not optimize
5461         away unoptimizes cdtors.
5462         (whole_program_function_and_variable_visibility): Do
5463         ipa_discover_readonly_nonaddressable_vars in LTO mode.
5464         * ipa.c (process_references): Do not check optimize.
5465         (symbol_table::remove_unreachable_nodes): Update optimize check.
5466         (set_writeonly_bit): Update optimize check.
5467         (pass_ipa_cdtor_merge::gate): Do not check optimize.
5468         (pass_ipa_single_use::gate): Remove.
5470 2017-07-06  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
5472         * config/rs6000/rs6000.c (union_defs, union_uses, insn_is_load_p,
5473         insn_is_store_p, insn_is_swap_p, const_load_sequence_p, v2df_reduction_p,
5474         rtx_is_swappable_p, insn_is_swappable_p, chain_contains_only_swaps,
5475         mark_swaps_for_removal, swap_const_vector_halves, adjust_subreg_index,
5476         permute_load, permute_store, adjust_extract, adjust_splat,
5477         adjust_xxpermdi, adjust_concat, adjust_vperm, handle_special_swappables,
5478         replace_swap_with_copy, dump_swap_insn_table,
5479         alignment_with_canonical_addr, alignment_mask, find_alignment_op,
5480         recombine_lvx_pattern, recombine_stvx_pattern,
5481         recombine_lvx_stvx_patterns, rs6000_analyze_swaps,
5482         make_pass_analyze_swaps): Move all code related to p8 swap optimizations
5483         to file rs6000-p8swap.c.
5484         * config/rs6000/rs6000-p8swap.c: New file.
5485         * config/rs6000/t-rs6000: Add rule to build rs6000-p8swap.o.
5486         * config.gcc: Add rs6000-p8swap.o to extra_objs for powerpc*-*-*
5487         and rs6000*-*-* targets.
5489 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
5491         * Makefile.in (selftest): Remove dependency on s-selftest-c++.
5493 2017-07-06  Jan Hubicka  <hubicka@ucw.cz>
5495         * lto-wrapper.c (merge_and_complain): Do not merge
5496         fexceptions, fnon_call_exceptions, ftrapv, ffp_contract_, fmath_errno,
5497         fsigned_zeros, ftrapping_math, fwrapv.
5498         (append_compiler_options): Do not track these options.
5499         (append_linker_options): Likewie
5501 2017-07-06  Jan Hubicka  <hubicka@ucw.cz>
5503         * cgraphunit.c (cgraph_node::finalize_function): When
5504         !flag_toplevel_reorde set no_reorder flag.
5505         (varpool_node::finalize_decl): Likewise.
5506         (symbol_table::compile): Drop no toplevel reorder path.
5508 2017-07-06  Jan Hubicka  <hubicka@ucw.cz>
5510         * bb-reorder.c (better_edge_p): Do not build traces across abnormal/eh
5511         edges; zero probability is not better than uninitialized.
5513 2017-07-06  Maxim Ostapenko  <m.ostapenko@samsung.com>
5515         * asan.h (asan_sanitize_allocas_p): Declare.
5516         * asan.c (asan_sanitize_allocas_p): New function.
5517         (handle_builtin_stack_restore): Bail out if !asan_sanitize_allocas_p.
5518         (handle_builtin_alloca): Likewise.
5519         * cfgexpand.c (expand_used_vars): Do not add allocas unpoisoning stuff
5520         if !asan_sanitize_allocas_p.
5521         * params.def (asan-instrument-allocas): Add new option.
5522         * params.h (ASAN_PROTECT_ALLOCAS): Define.
5523         * opts.c (common_handle_option): Disable allocas sanitization for
5524         KASan by default.
5526 2017-07-06  Maxim Ostapenko  <m.ostapenko@samsung.com>
5528         * asan.c: Include gimple-fold.h.
5529         (get_last_alloca_addr): New function.
5530         (handle_builtin_stackrestore): Likewise.
5531         (handle_builtin_alloca): Likewise.
5532         (asan_emit_allocas_unpoison): Likewise.
5533         (get_mem_refs_of_builtin_call): Add new parameter, remove const
5534         quallifier from first paramerer. Handle BUILT_IN_ALLOCA,
5535         BUILT_IN_ALLOCA_WITH_ALIGN and BUILT_IN_STACK_RESTORE builtins.
5536         (instrument_builtin_call): Pass gimple iterator to
5537         get_mem_refs_of_builtin_call.
5538         (last_alloca_addr): New global.
5539         * asan.h (asan_emit_allocas_unpoison): Declare.
5540         * builtins.c (expand_asan_emit_allocas_unpoison): New function.
5541         (expand_builtin): Handle BUILT_IN_ASAN_ALLOCAS_UNPOISON.
5542         * cfgexpand.c (expand_used_vars): Call asan_emit_allocas_unpoison
5543         if function calls alloca.
5544         * gimple-fold.c (replace_call_with_value): Remove static keyword.
5545         * gimple-fold.h (replace_call_with_value): Declare.
5546         * internal-fn.c: Include asan.h.
5547         * sanitizer.def (BUILT_IN_ASAN_ALLOCA_POISON,
5548         BUILT_IN_ASAN_ALLOCAS_UNPOISON): New builtins.
5550 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
5552         * Makefile.in (SELFTEST_FLAGS): Drop "-x c", moving it to...
5553         (C_SELFTEST_FLAGS): New.
5554         (CPP_SELFTEST_FLAGS): New.
5555         (SELFTEST_DEPS): New, from deps of s-selftest.
5556         (C_SELFTEST_DEPS): New, from deps of s-selftest.
5557         (CPP_SELFTEST_DEPS): New.
5558         (selftest): Add dependency on s-selftest-c++.
5559         (s-selftest): Rename to...
5560         (s-selftest-c): ...this, moving deps to SELFTEST_DEPS
5561         and C_SELFTEST_DEPS, and using C_SELFTEST_FLAGS rather
5562         than SELFTEST_FLAGS.
5563         (selftest-gdb): Rename to...
5564         (selftest-c-gdb): ...this, using C_SELFTEST_DEPS and
5565         C_SELFTEST_FLAGS.
5566         (selftest-gdb): Reintroduce as an alias for selftest-c-gdb.
5567         (selftest-valgrind): Rename to...
5568         (selftest-c-valgrind): ...this, using C_SELFTEST_DEPS and
5569         C_SELFTEST_FLAGS.
5570         (selftest-valgrind): Reintroduce as an alias for
5571         selftest-c-valgrind.
5572         (s-selftest-c++): New.
5573         (selftest-c++-gdb): New.
5574         (selftest-c++-valgrind): New.
5576 2017-07-06  Olivier Hainque  <hainque@adacore.com>
5578         * gcc.c (process_command): When deciding if undefined variables
5579         should be ignored when processing specs, accept "gcc -v" as well.
5581 2017-07-06  Jan Hubicka  <hubicka@ucw.cz>
5583         * auto-profile.c (afdo_set_bb_count, afdo_propagate_edge,
5584         afdo_annotate_cfg): Set counts/probabilities as determined by afdo.
5586 2017-07-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5588         * config/arm/arm-cpus.in (armv8-r): Add new entry.
5589         * config/arm/arm-isa.h (ISA_ARMv8r): Define macro.
5590         * config/arm/arm-tables.opt: Regenerate.
5591         * config/arm/arm.h (enum base_architecture): Add BASE_ARCH_8R
5592         enumerator.
5593         * doc/invoke.texi: Mention -march=armv8-r and its extensions.
5595 2017-07-06  Carl Love  <cel@us.ibm.com>
5597         * ChangeLog: Clean up from mid air collision
5599 2017-07-06  Carl Love  <cel@us.ibm.com>
5601         * config/rs6000/rs6000-c.c: Add support for built-in functions
5602         vector signed int vec_subc (vector signed int, vector signed int);
5603         vector signed __int128 vec_subc (vector signed __int128,
5604                                          vector signed __int128);
5605         vector unsigned __int128 vec_subc (vector unsigned __int128,
5606                                            vector unsigned __int128);
5607         vector signed int vec_sube (vector signed int, vector signed int,
5608                                     vector signed int);
5609         vector unsigned int vec_sube (vector unsigned int,
5610                                       vector unsigned int,
5611                                       vector unsigned int);
5612         vector signed __int128 vec_sube (vector signed __int128,
5613                                          vector signed __int128,
5614                                          vector signed__int128);
5615         vector unsigned __int128 vec_sube (vector unsigned __int128,
5616                                            vector unsigned __int128,
5617                                            vector unsigned __int128);
5618         vector signed int vec_subec (vector signed int, vector signed int,
5619                                      vector signed int);
5620         vector unsigned int vec_subec (vector unsigned int,
5621                                        vector unsigned int,
5622                                        vector unsigned int);
5623         vector signed __int128 vec_subec (vector signed __int128,
5624                                           vector signed __int128,
5625                                           vector signed__int128);
5626         vector unsigned __int128 vec_subec (vector unsigned __int128,
5627                                             vector unsigned __int128,
5628                                             vector unsigned __int128);
5629         * config/rs6000/rs6000.c (ALTIVEC_BUILTIN_VEC_SUBE,
5630         ALTIVEC_BUILTIN_VEC_SUBEC): Add ef_builtins.
5631         * config/rs6000/rs6000-builtin.def (SUBE, SUBEC): Add
5632         BU_ALTIVEC_OVERLOAD_X definitions.
5633         * config/rs6000/altivec.h (vec_sube, vec_subec): Add builtin defines.
5634         * doc/extend.texi: Update the built-in documentation file for the new
5635         built-in functions.
5637 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
5639         PR c++/79300
5640         * diagnostic-show-locus.c (layout::layout): Use start and finish
5641         spelling location for the start and finish of each range.
5642         * genmatch.c (linemap_client_expand_location_to_spelling_point):
5643         Add unused aspect param.
5644         * input.c (expand_location_1): Add "aspect" param, and use it
5645         to access the correct part of the location.
5646         (expand_location): Pass LOCATION_ASPECT_CARET to new param of
5647         expand_location_1.
5648         (expand_location_to_spelling_point): Likewise.
5649         (linemap_client_expand_location_to_spelling_point): Add "aspect"
5650         param, and pass it to expand_location_1.
5652 2017-07-06  Sebastian Peryt  <sebastian.peryt@intel.com>
5654         * config/i386/avx512fintrin.h (_mm_mask_getexp_round_ss,
5655         _mm_maskz_getexp_round_ss, _mm_mask_getexp_round_sd,
5656         _mm_maskz_getexp_round_sd, _mm_mask_getmant_round_sd,
5657         _mm_maskz_getmant_round_sd, _mm_mask_getmant_round_ss,
5658         _mm_maskz_getmant_round_ss, _mm_mask_getexp_ss, _mm_maskz_getexp_ss,
5659         _mm_mask_getexp_sd, _mm_maskz_getexp_sd, _mm_mask_getmant_sd,
5660         _mm_maskz_getmant_sd, _mm_mask_getmant_ss,
5661         _mm_maskz_getmant_ss): New intrinsics.
5662         (__builtin_ia32_getexpss128_mask): Changed to ...
5663         __builtin_ia32_getexpss128_round ... this.
5664         (__builtin_ia32_getexpsd128_mask): Changed to ...
5665         __builtin_ia32_getexpsd128_round ... this.
5666         * config/i386/i386-builtin-types.def
5667         ((V2DF, V2DF, V2DF, INT, V2DF, UQI, INT),
5668         (V4SF, V4SF, V4SF, INT, V4SF, UQI, INT)): New function type aliases.
5669         * config/i386/i386-builtin.def (__builtin_ia32_getexpsd_mask_round,
5670         __builtin_ia32_getexpss_mask_round,     __builtin_ia32_getmantsd_mask_round,
5671         __builtin_ia32_getmantss_mask_round): New builtins.
5672         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_UQI_INT,
5673         V4SF_FTYPE_V4SF_V4SF_INT_V4SF_UQI_INT): Handle new types.
5674         (CODE_FOR_avx512f_vgetmantv2df_mask_round,
5675         CODE_FOR_avx512f_vgetmantv4sf_mask_round): New cases.
5676         * config/i386/sse.md
5677         (avx512f_sgetexp<mode><round_saeonly_name>): Changed to ...
5678         avx512f_sgetexp<mode><mask_scalar_name>
5679         <round_saeonly_scalar_name> ... this.
5680         (vgetexp<ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|
5681         %0, %1, %2<round_saeonly_op3>}): Changed to ...
5682         vgetexp<ssescalarmodesuffix>
5683         \t{<round_saeonly_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
5684         %0<mask_scalar_operand3>, %1, %2<round_saeonly_scalar_mask_op3>} ... this.
5685         (avx512f_vgetmant<mode><round_saeonly_name>): Changed to ...
5686         avx512f_vgetmant<mode><mask_scalar_name>
5687         <round_saeonly_scalar_name> ... this.
5688         (vgetmant<ssescalarmodesuffix>\t{%3, <round_saeonly_op4>%2, %1, %0|
5689         %0, %1, %2<round_saeonly_op4>, %3}): Changed to ...
5690         vgetmant<ssescalarmodesuffix>
5691         \t{%3, <round_saeonly_scalar_mask_op4>%2, %1, %0<mask_scalar_operand4>|
5692         %0<mask_scalar_operand4>, %1, %2
5693         <round_saeonly_scalar_mask_op4>, %3} ... this.
5694         * config/i386/subst.md (mask_scalar_operand4,
5695         round_saeonly_scalar_mask_operand4,     round_saeonly_scalar_mask_op4,
5696         round_saeonly_scalar_nimm_predicate): New subst attributes.
5698 2017-07-06  Julia Koval  <julia.koval@intel.com>
5700         * config/i386/i386.c (ix86_erase_embedded_rounding):
5701         Remove code for old rounding pattern.
5703 2017-07-06  Richard Earnshaw  <rearnsha@arm.com>
5705         * config/arm/t-arm (GTM_H): Add arm-cpu.h.
5707 2017-07-06  Christophe Lyon  <christophe.lyon@linaro.org>
5709         * doc/sourcebuild.texi (Test Directives, Variants of
5710         dg-require-support): Add documentation for dg-require-stack-check.
5712 2017-07-05  Sebastian Peryt  <sebastian.peryt@intel.com>
5714         * config/i386/subst.md (mask_scalar, round_scalar,
5715         round_saeonly_scalar): New meta-templates.
5716         (mask_scalar_name, mask_scalar_operand3, round_scalar_name,
5717         round_scalar_mask_operand3, round_scalar_mask_op3,
5718         round_scalar_constraint, round_scalar_prefix, round_saeonly_scalar_name,
5719         round_saeonly_scalar_mask_operand3, round_saeonly_scalar_mask_op3,
5720         round_saeonly_scalar_constraint,
5721         round_saeonly_scalar_prefix): New subst attribute.
5722         * config/i386/sse.md
5723         (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): Renamed to ...
5724         <sse>_vm<plusminus_insn><mode>3<mask_scalar_name>
5725         <round_scalar_name> ... this.
5726         (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): Renamed to ...
5727         <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name>
5728         <round_scalar_name> ... this.
5729         (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): Renamed to ...
5730         <sse>_vm<code><mode>3<mask_scalar_name>
5731         <round_saeonly_scalar_name> ... this.
5732         (v<plusminus_mnemonic><ssescalarmodesuffix>
5733         \t{<round_mask_op3>%2, %1, %0<mask_operand3>|
5734         %0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}): Changed to ...
5735         v<plusminus_mnemonic><ssescalarmodesuffix>
5736         \t{<round_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
5737         %0<mask_scalar_operand3>, %1, %<iptr>2<round_scalar_mask_op3>} ... this.
5738         (v<multdiv_mnemonic><ssescalarmodesuffix>
5739         \t{<round_mask_op3>%2, %1, %0<mask_operand3>|
5740         %0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}): Changed to ...
5741         v<multdiv_mnemonic><ssescalarmodesuffix>
5742         \t{<round_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
5743         %0<mask_scalar_operand3>, %1, %<iptr>2<round_scalar_mask_op3>} ... this.
5744         (v<maxmin_float><ssescalarmodesuffix>
5745         \t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|
5746         %0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}): Changed to ...
5747         v<maxmin_float><ssescalarmodesuffix>
5748         \t{<round_saeonly_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
5749         %0<mask_scalar_operand3>, %1, %<iptr>2
5750         <round_saeonly_scalar_mask_op3>} ... this.
5752 2017-07-05  Richard Earnshaw  <rearnsha@arm.com>
5754         * config/arm/arm.c (arm_fixed_condition_code_regs): New function.
5755         (TARGET_FIXED_CONDITION_CODE_REGS): Redefine.
5757 2017-07-05  Richard Sandiford  <richard.sandiford@linaro.org>
5758             Alan Hayward  <alan.hayward@arm.com>
5759             David Sherwood  <david.sherwood@arm.com>
5761         * combine.c (simplify_if_then_else): Remove "enum" before
5762         "machine_mode".
5763         * compare-elim.c (can_eliminate_compare): Likewise.
5764         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_std_type):
5765         Likewise.
5766         (aarch64_lookup_simd_builtin_type): Likewise.
5767         (aarch64_simd_builtin_type): Likewise.
5768         (aarch64_init_simd_builtin_types): Likewise.
5769         (aarch64_simd_expand_args): Likewise.
5770         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist):
5771         Likewise.
5772         (aarch64_reverse_mask): Likewise.
5773         (aarch64_simd_emit_reg_reg_move): Likewise.
5774         (aarch64_gen_adjusted_ldpstp): Likewise.
5775         (aarch64_ccmp_mode_to_code): Likewise.
5776         (aarch64_operands_ok_for_ldpstp): Likewise.
5777         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
5778         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class):
5779         Likewise.
5780         (aarch64_min_divisions_for_recip_mul): Likewise.
5781         (aarch64_reassociation_width): Likewise.
5782         (aarch64_get_condition_code_1): Likewise.
5783         (aarch64_simd_emit_reg_reg_move): Likewise.
5784         (aarch64_simd_attr_length_rglist): Likewise.
5785         (aarch64_reverse_mask): Likewise.
5786         (aarch64_operands_ok_for_ldpstp): Likewise.
5787         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
5788         (aarch64_gen_adjusted_ldpstp): Likewise.
5789         * config/aarch64/cortex-a57-fma-steering.c (fma_node::rename):
5790         Likewise.
5791         * config/arc/arc.c (legitimate_offset_address_p): Likewise.
5792         * config/arm/arm-builtins.c (arm_simd_builtin_std_type): Likewise.
5793         (arm_lookup_simd_builtin_type): Likewise.
5794         (arm_simd_builtin_type): Likewise.
5795         (arm_init_simd_builtin_types): Likewise.
5796         (arm_expand_builtin_args): Likewise.
5797         * config/arm/arm-protos.h (arm_expand_builtin): Likewise.
5798         * config/ft32/ft32.c (ft32_libcall_value): Likewise.
5799         (ft32_setup_incoming_varargs): Likewise.
5800         (ft32_function_arg): Likewise.
5801         (ft32_function_arg_advance): Likewise.
5802         (ft32_pass_by_reference): Likewise.
5803         (ft32_arg_partial_bytes): Likewise.
5804         (ft32_valid_pointer_mode): Likewise.
5805         (ft32_addr_space_pointer_mode): Likewise.
5806         (ft32_addr_space_legitimate_address_p): Likewise.
5807         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple):
5808         Likewise.
5809         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
5810         (ix86_emit_outlined_ms2sysv_restore): Likewise.
5811         (iamcu_alignment): Likewise.
5812         (canonicalize_vector_int_perm): Likewise.
5813         (ix86_noce_conversion_profitable_p): Likewise.
5814         (ix86_mpx_bound_mode): Likewise.
5815         (ix86_operands_ok_for_move_multiple): Likewise.
5816         * config/microblaze/microblaze-protos.h
5817         (microblaze_expand_conditional_branch_reg): Likewise.
5818         * config/microblaze/microblaze.c
5819         (microblaze_expand_conditional_branch_reg): Likewise.
5820         * config/powerpcspe/powerpcspe.c (rs6000_init_hard_regno_mode_ok):
5821         Likewise.
5822         (rs6000_reassociation_width): Likewise.
5823         (rs6000_invalid_binary_op): Likewise.
5824         (fusion_p9_p): Likewise.
5825         (emit_fusion_p9_load): Likewise.
5826         (emit_fusion_p9_store): Likewise.
5827         * config/riscv/riscv-protos.h (riscv_regno_mode_ok_for_base_p):
5828         Likewise.
5829         (riscv_hard_regno_mode_ok_p): Likewise.
5830         (riscv_address_insns): Likewise.
5831         (riscv_split_symbol): Likewise.
5832         (riscv_legitimize_move): Likewise.
5833         (riscv_function_value): Likewise.
5834         (riscv_hard_regno_nregs): Likewise.
5835         (riscv_expand_builtin): Likewise.
5836         * config/riscv/riscv.c (riscv_build_integer_1): Likewise.
5837         (riscv_build_integer): Likewise.
5838         (riscv_split_integer): Likewise.
5839         (riscv_legitimate_constant_p): Likewise.
5840         (riscv_cannot_force_const_mem): Likewise.
5841         (riscv_regno_mode_ok_for_base_p): Likewise.
5842         (riscv_valid_base_register_p): Likewise.
5843         (riscv_valid_offset_p): Likewise.
5844         (riscv_valid_lo_sum_p): Likewise.
5845         (riscv_classify_address): Likewise.
5846         (riscv_legitimate_address_p): Likewise.
5847         (riscv_address_insns): Likewise.
5848         (riscv_load_store_insns): Likewise.
5849         (riscv_force_binary): Likewise.
5850         (riscv_split_symbol): Likewise.
5851         (riscv_force_address): Likewise.
5852         (riscv_legitimize_address): Likewise.
5853         (riscv_move_integer): Likewise.
5854         (riscv_legitimize_const_move): Likewise.
5855         (riscv_legitimize_move): Likewise.
5856         (riscv_address_cost): Likewise.
5857         (riscv_subword): Likewise.
5858         (riscv_output_move): Likewise.
5859         (riscv_canonicalize_int_order_test): Likewise.
5860         (riscv_emit_int_order_test): Likewise.
5861         (riscv_function_arg_boundary): Likewise.
5862         (riscv_pass_mode_in_fpr_p): Likewise.
5863         (riscv_pass_fpr_single): Likewise.
5864         (riscv_pass_fpr_pair): Likewise.
5865         (riscv_get_arg_info): Likewise.
5866         (riscv_function_arg): Likewise.
5867         (riscv_function_arg_advance): Likewise.
5868         (riscv_arg_partial_bytes): Likewise.
5869         (riscv_function_value): Likewise.
5870         (riscv_pass_by_reference): Likewise.
5871         (riscv_setup_incoming_varargs): Likewise.
5872         (riscv_print_operand): Likewise.
5873         (riscv_elf_select_rtx_section): Likewise.
5874         (riscv_save_restore_reg): Likewise.
5875         (riscv_for_each_saved_reg): Likewise.
5876         (riscv_register_move_cost): Likewise.
5877         (riscv_hard_regno_mode_ok_p): Likewise.
5878         (riscv_hard_regno_nregs): Likewise.
5879         (riscv_class_max_nregs): Likewise.
5880         (riscv_memory_move_cost): Likewise.
5881         * config/rl78/rl78-protos.h (rl78_split_movsi): Likewise.
5882         * config/rl78/rl78.c (rl78_split_movsi): Likewise.
5883         (rl78_addr_space_address_mode): Likewise.
5884         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5885         Likewise.
5886         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
5887         (rs6000_reassociation_width): Likewise.
5888         (rs6000_invalid_binary_op): Likewise.
5889         (fusion_p9_p): Likewise.
5890         (emit_fusion_p9_load): Likewise.
5891         (emit_fusion_p9_store): Likewise.
5892         * config/visium/visium-protos.h (prepare_move_operands): Likewise.
5893         (ok_for_simple_move_operands): Likewise.
5894         (ok_for_simple_move_strict_operands): Likewise.
5895         (ok_for_simple_arith_logic_operands): Likewise.
5896         (visium_legitimize_reload_address): Likewise.
5897         (visium_select_cc_mode): Likewise.
5898         (output_cbranch): Likewise.
5899         (visium_split_double_move): Likewise.
5900         (visium_expand_copysign): Likewise.
5901         (visium_expand_int_cstore): Likewise.
5902         (visium_expand_fp_cstore): Likewise.
5903         * config/visium/visium.c (visium_pass_by_reference): Likewise.
5904         (visium_function_arg): Likewise.
5905         (visium_function_arg_advance): Likewise.
5906         (visium_libcall_value): Likewise.
5907         (visium_setup_incoming_varargs): Likewise.
5908         (visium_legitimate_constant_p): Likewise.
5909         (visium_legitimate_address_p): Likewise.
5910         (visium_legitimize_address): Likewise.
5911         (visium_secondary_reload): Likewise.
5912         (visium_register_move_cost): Likewise.
5913         (visium_memory_move_cost): Likewise.
5914         (prepare_move_operands): Likewise.
5915         (ok_for_simple_move_operands): Likewise.
5916         (ok_for_simple_move_strict_operands): Likewise.
5917         (ok_for_simple_arith_logic_operands): Likewise.
5918         (visium_function_value_1): Likewise.
5919         (rtx_ok_for_offset_p): Likewise.
5920         (visium_legitimize_reload_address): Likewise.
5921         (visium_split_double_move): Likewise.
5922         (visium_expand_copysign): Likewise.
5923         (visium_expand_int_cstore): Likewise.
5924         (visium_expand_fp_cstore): Likewise.
5925         (visium_split_cstore): Likewise.
5926         (visium_select_cc_mode): Likewise.
5927         (visium_split_cbranch): Likewise.
5928         (output_cbranch): Likewise.
5929         (visium_print_operand_address): Likewise.
5930         * expmed.c (flip_storage_order): Likewise.
5931         * expmed.h (emit_cstore): Likewise.
5932         (flip_storage_order): Likewise.
5933         * genrecog.c (validate_pattern): Likewise.
5934         * hsa-gen.c (gen_hsa_addr): Likewise.
5935         * internal-fn.c (expand_arith_overflow): Likewise.
5936         * ira-color.c (allocno_copy_cost_saving): Likewise.
5937         * lra-assigns.c (find_hard_regno_for_1): Likewise.
5938         * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5939         (process_invariant_for_inheritance): Likewise.
5940         * lra-eliminations.c (move_plus_up): Likewise.
5941         * omp-low.c (lower_oacc_reductions): Likewise.
5942         * simplify-rtx.c (simplify_subreg): Likewise.
5943         * target.def (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
5944         (TARGET_CHKP_BOUND_MODE): Likewise..
5945         * targhooks.c (default_chkp_bound_mode): Likewise.
5946         (default_setup_incoming_vararg_bounds): Likewise.
5947         * targhooks.h (default_chkp_bound_mode): Likewise.
5948         (default_setup_incoming_vararg_bounds): Likewise.
5949         * tree-ssa-math-opts.c (divmod_candidate_p): Likewise.
5950         * tree-vect-loop.c (calc_vec_perm_mask_for_shift): Likewise.
5951         (have_whole_vector_shift): Likewise.
5952         * tree-vect-stmts.c (vectorizable_load): Likewise.
5953         * doc/tm.texi: Regenerate.
5955 2017-07-05  Georg-Johann Lay  <avr@gjlay.de>
5957         Graceful degrade if Binutils PR21472 is not available.
5959         PR target/81072
5960         * configure.ac [target=avr]: WARN instead of ERROR if avrxmega3
5961         .rodata in flash test fails.
5962         (HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH): Define it if test passes.
5963         * confgure: Regenerate.
5964         * config.in: Regenerate.
5965         * config/avr/avr.c (avr_asm_named_section)
5966         [HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH]: Only trigger
5967         __do_copy_data for stuff in .rodata if flash_pm_offset = 0.
5968         (avr_asm_init_sections): Same.
5970 2017-07-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5972         * config/arm/neon.md (fma<VCVTF:mode>4): Remove %?.
5973         (fma<VH:mode>4_intrinsic): Likewise.
5974         (*fmsub<VCVTF:mode>4): Likewise.
5975         (*fmsub<VH:mode>4_intrinsic): Likewise.
5977 2017-07-05  Georg-Johann Lay  <avr@gjlay.de>
5979         PR target/81305
5980         * config/avr/avr.c (avr_out_movhi_mr_r_xmega) [CONSTANT_ADDRESS_P]:
5981         Don't depend on "optimize > 0".
5982         (out_movhi_r_mr, out_movqi_mr_r): Same.
5983         (out_movhi_mr_r, out_movqi_r_mr): Same.
5984         (avr_address_cost) [CONSTANT_ADDRESS_P]: Don't depend cost for
5985         io_address_operand on "optimize > 0".
5987 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
5989         * tree-loop-distribution.c: Add general explanantion on the pass.
5990         (generate_loops_for_partition): Mark distributed loop.
5991         (pg_add_dependence_edges): New parameter.  Handle alias data
5992         dependence specially and record it in the parameter if asked.
5993         (struct pg_vdata, pg_edata, pg_edge_callback_data): New structs.
5994         (init_partition_graph_vertices, add_partition_graph_edge): New.
5995         (pg_skip_alias_edge, free_partition_graph_edata_cb): New.
5996         (free_partition_graph_vdata, build_partition_graph): New.
5997         (sort_partitions_by_post_order, merge_dep_scc_partitions): New.
5998         (pg_collect_alias_ddrs, break_alias_scc_partitions): New.
5999         (data_ref_segment_size, latch_dominated_by_data_ref): New.
6000         (compute_alias_check_pairs, version_loop_by_alias_check): New.
6001         (version_for_distribution_p, finalize_partitions): New.
6002         (distribute_loop): Handle alias data dependence specially.  Factor
6003         out loop fusion code as functions and call these functions.
6005 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
6007         * tree-loop-distribution.c (classify_partition): New parameter and
6008         better handle reduction statement.
6009         (rdg_build_partitions): Revise comment.
6010         (distribute_loop): Compute statements in all partitions and pass it
6011         to classify_partition.
6013 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
6015         * tree-loop-distribution.c (enum partition_type): New.
6016         (struct partition): New field type.
6017         (partition_merge_into): Add parameter.  Update partition type.
6018         (data_dep_in_cycle_p, update_type_for_merge): New functions.
6019         (build_rdg_partition_for_vertex): Compute partition type.
6020         (rdg_build_partitions): Dump partition type.
6021         (distribute_loop): Update calls to partition_merge_into.
6023 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
6025         * tree-loop-distribution.c (struct ddr_hasher): New.
6026         (ddr_hasher::hash, ::equal, get_data_dependence): New function.
6027         (ddrs_table): New.
6028         (classify_partition): Call get_data_dependence.
6029         (pg_add_dependence_edges): Ditto.
6030         (distribute_loop): Release data dependence hash table.
6032 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
6034         * tree-loop-distribution.c (ref_base_address): Delete.
6035         (similar_memory_accesses): Rename ...
6036         (share_memory_accesses): ... to this.  Check if partitions access
6037         the same memory reference.
6038         (distribute_loop): Call share_memory_accesses.
6040 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
6042         * tree-loop-distribution.c (struct partition): New field recording
6043         its data reference.
6044         (partition_alloc, partition_free): Init and release data refs.
6045         (partition_merge_into): Merge data refs.
6046         (build_rdg_partition_for_vertex): Collect data refs for partition.
6047         (pg_add_dependence_edges): Change parameters from vector to bitmap.
6048         Update uses.
6049         (distribute_loop): Remve data refs from vertice data of partition
6050         graph.
6052 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
6054         * tree-loop-distribution.c (params.h): Include header file.
6055         (MAX_DATAREFS_NUM, DR_INDEX): New macro.
6056         (datarefs_vec): New global var.
6057         (create_rdg_vertices): Use datarefs_vec directly.
6058         (free_rdg): Don't free data references.
6059         (build_rdg): Update use.  Don't free data references.
6060         (distribute_loop): Compute global variable for data references.
6061         Bail out if there are too many data references.
6063 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
6065         * tree-loop-distribution.c (loop_nest): New global var.
6066         (build_rdg): Use loop directly, rather than loop nest.
6067         (pg_add_dependence_edges): Remove loop nest parameter.  Use global
6068         variable directly.
6069         (distribute_loop): Compute global variable loop nest.  Update use.
6071 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
6073         * tree-loop-distribution.c (enum fuse_type, fuse_message): New.
6074         (partition_merge_into): New parameter.  Dump reason for fusion.
6075         (distribute_loop): Update use of partition_merge_into.
6077 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
6079         * tree-loop-distribution.c (bb_top_order_index): New.
6080         (bb_top_order_index_size, bb_top_order_cmp): New.
6081         (stmts_from_loop): Use topological order.
6082         (pass_loop_distribution::execute): Compute and release topological
6083         order for basic blocks.
6085 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
6087         * tree-loop-distribution.c (pass_loop_distribution::execute): Skip
6088         if no loops.
6090 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
6092         * cfgloop.h (struct loop): Add comment.  New field orig_loop_num.
6093         * cfgloopmanip.c (lv_adjust_loop_entry_edge): Comment change.
6094         * internal-fn.c (expand_LOOP_DIST_ALIAS): New function.
6095         * internal-fn.def (LOOP_DIST_ALIAS): New.
6096         * tree-vectorizer.c (fold_loop_vectorized_call): Rename to ...
6097         (fold_loop_internal_call): ... this.
6098         (vect_loop_dist_alias_call): New function.
6099         (set_uid_loop_bbs): Call fold_loop_internal_call.
6100         (vectorize_loops): Fold IFN_LOOP_VECTORIZED and IFN_LOOP_DIST_ALIAS
6101         internal calls.
6103 2017-07-04  Uros Bizjak  <ubizjak@gmail.com>
6105         PR target/81300
6106         * config/i386/i386.md (setcc + movzbl/and to xor + setcc peepholes):
6107         Require dead FLAGS_REG at the beginning of a peephole.
6109 2017-07-04  Uros Bizjak  <ubizjak@gmail.com>
6111         PR target/81294
6112         * config/i386/adxintrin.h (_subborrow_u32): Swap _X and _Y
6113         arguments in the call to __builtin_ia32_sbb_u32.
6114         (_subborrow_u64): Swap _X and _Y arguments in the call to
6115         __builtin_ia32_sbb_u64.
6117 2017-07-04  Jakub Jelinek  <jakub@redhat.com>
6119         PR debug/81278
6120         * tree-vrp.c (compare_assert_loc): Turn into a function template
6121         with stable template parameter.  Only test if a->e is NULL,
6122         !a->e == !b->e has been verified already.  Use e == NULL or
6123         e != NULL instead of e or ! e tests.  If stable is true, don't use
6124         iterative_hash_expr, on the other side allow a or b or both NULL
6125         and sort the NULLs last.
6126         (process_assert_insertions): Sort using compare_assert_loc<false>
6127         instead of compare_assert_loc, later sort using
6128         compare_assert_loc<true> before calling process_assert_insertions_for
6129         in a loop.  Use break instead of continue once seen NULL pointer.
6131 2017-07-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6133         * config/arm/driver-arm.c (arm_cpu_table): Add entry for ARM
6134         Cortex-R7 and Cortex-R8 processors.
6136 2017-07-04  Jan Hubicka  <hubicka@ucw.cz>
6138         * ipa-utils.c (ipa_merge_profiles): Fix merging when dst is
6139         uninitialized while src is not.
6141 2017-07-04  Richard Earnshaw  <rearnsha@arm.com>
6143         * common/config/arm/arm-common.c: Adjust include path for
6144         arm-cpu-cdata.h
6145         * config/arm/t-arm (TM_H): Adjust path for arm-cpu.h.
6146         (arm-cpu.h): Create in build directory.  Adjust dependency rules.
6147         (arm-cpu-data.h): Likewise.
6148         (arm-cpu-cdata.h): Likewise.
6149         * config/arm/arm-cpu.h: Delete.
6150         * config/arm/arm-cpu-cdata.h: Delete.
6151         * config/arm/arm-cpu-data.h: Delete.
6153 2017-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
6155         * config/arm/arm-cpus.in (cortex-a55): New.
6156         (cortex-a75): Likewise.
6157         (cortex-a75.cortex-a55): Likewise.
6158         * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a55 and
6159         cortex-a75.
6160         * doc/invoke.texi (-mcpu): Document cortex-a55 and cortex-a75.
6161         * config/arm/arm-cpu-cdata.h: Regenerate.
6162         * config/arm/arm-cpu-data.h: Regenerate.
6163         * config/arm/arm-cpu.h: Regenerate.
6164         * config/arm/arm-tables.opt: Regenerate.
6165         * config/arm/arm-tune.md: Regenerate.
6167 2017-07-04  Jan Hubicka  <hubicka@ucw.cz>
6169         * haifa-sched.c (sched_create_recovery_edges): Update profile.
6171 2017-07-04  Jan Hubicka  <hubicka@ucw.cz>
6173         * bb-reorder.c (better_edge_p): Fix handling of uninitialized
6174         probability.
6176 2017-07-04  Richard Sandiford  <richard.sandiford@linaro.org>
6178         PR tree-optimization/81292
6179         * tree-ssa-strlen.c (handle_builtin_strlen): When setting
6180         full_string_p, also call adjust_related_strinfos if the adjustment
6181         is simple, otherwise invalidate related strinfos.
6183 2017-07-04  Martin Liska  <mliska@suse.cz>
6185         PR sanitizer/81040
6186         * sanopt.c (sanitize_rewrite_addressable_params): Mark the
6187         newly created variable as DECL_IGNORED_P.
6189 2017-07-04  Martin Liska  <mliska@suse.cz>
6191         PR ipa/81293
6192         * ipa-inline.c (inline_small_functions):
6193         Use xstrdup_for_dump.
6195 2017-07-04  Tom de Vries  <tom@codesourcery.com>
6197         * graph.c (draw_cfg_edges): Save and restore EDGE_DFS_BACK.
6199 2017-07-03  Dominique d'Humieres  <dominiq@lps.ens.fr>
6201         PR target/81033
6202         * config/darwin.c (darwin_function_switched_text_sections):
6203         Fix spaces.
6205 2017-07-03  Jan Hubicka  <hubicka@ucw.cz>
6207         * tree-vect-loop-manip.c (vect_do_peeling): Fix scaling up.
6209 2017-07-03  Richard Earnshaw  <rearnsha@arm.com>
6211         * doc/invoke.texi (ARM Options): Add -mbe8 and -mbe32 to option summary.
6213 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
6215         * tree-vect-loop.c (vect_analyze_loop_2): Treat min_scalar_loop_bound,
6216         min_profitable_iters, and th as inclusive lower bounds.
6217         Fix LOOP_VINFO_PEELING_FOR_GAPS condition.
6218         (vect_estimate_min_profitable_iters): Return inclusive lower bounds
6219         for min_profitable_iters and min_profitable_estimate.
6220         (vect_transform_loop): Treat th as an inclusive lower bound.
6221         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
6223 2017-07-03  Dominique d'Humieres  <dominiq@lps.ens.fr>
6225         PR target/81033
6226         * config/darwin.c (darwin_function_switched_text_sections):
6227         Replace DECL_NAME with DECL_ASSEMBLER_NAME, split assemble_name_raw
6228         in two pieces, and suppress the use of buf.
6230 2017-07-03  Nathan Sidwell  <nathan@acm.org>
6232         * hash-table.h (hash_table_mod1): Fix indentation.
6234 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
6236         PR middle-end/81290
6237         * predict.c (force_edge_cold): Be more careful about propagation
6238         backward.
6239         * profile-count.h (profile_probability::guessed,
6240         profile_probability::fdo, profile_count::guessed, profile_count::fdo):
6241         New.
6242         * tree-ssa-threadupdate.c (recompute_probabilities): Result is guessed.
6244 2017-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
6246         * doc/invoke.texi (rcpc architecture extension): Document it.
6248 2017-07-03  Richard Biener  <rguenther@suse.de>
6250         PR tree-optimization/60510
6251         * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass in
6252         the scalar reduction PHI and use it.
6253         (vectorizable_reduction): Properly guard the single_defuse_cycle
6254         path for non-SLP reduction chains where we cannot use it.
6255         Rework reduc_def/index and vector type deduction.  Rework
6256         vector operand gathering during reduction op code-gen.
6257         * tree-vect-slp.c (vect_analyze_slp): For failed SLP reduction
6258         chains dissolve the chain and leave it to non-SLP reduction
6259         handling.
6261 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
6263         * tree-data-ref.h (dr_alignment): Declare.
6264         * tree-data-ref.c (dr_alignment): New function.
6265         * tree-vectorizer.h (dataref_aux): Remove base_element_aligned.
6266         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Don't
6267         set it.
6268         * tree-vect-stmts.c (vectorizable_store): Use dr_alignment.
6270 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
6272         * tree-data-ref.h (innermost_loop_behavior): Add base_alignment
6273         and base_misalignment fields.
6274         (DR_BASE_ALIGNMENT, DR_BASE_MISALIGNMENT): New macros.
6275         * tree-data-ref.c: Include builtins.h.
6276         (dr_analyze_innermost): Set up the new innmost_loop_behavior fields.
6277         * tree-vectorizer.h (STMT_VINFO_DR_BASE_ALIGNMENT): New macro.
6278         (STMT_VINFO_DR_BASE_MISALIGNMENT): Likewise.
6279         * tree-vect-data-refs.c: Include tree-cfg.h.
6280         (vect_compute_data_ref_alignment): Use the new innermost_loop_behavior
6281         fields instead of calculating an alignment here.
6282         (vect_analyze_data_refs): Use dr_analyze_innermost.  Dump the new
6283         innermost_loop_behavior fields.
6285 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
6287         * tree-data-ref.h (innermost_loop_behavior): Add a step_alignment
6288         field.
6289         (DR_STEP_ALIGNMENT): New macro.
6290         * tree-vectorizer.h (STMT_VINFO_DR_STEP_ALIGNMENT): Likewise.
6291         * tree-data-ref.c (dr_analyze_innermost): Initalize step_alignment.
6292         (create_data_ref): Print it.
6293         * tree-vect-stmts.c (vectorizable_load): Use the step alignment
6294         to tell whether the step preserves vector (mis)alignment.
6295         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
6296         Move the check for an integer step and generalise to all INTEGER_CST.
6297         (vect_analyze_data_refs): Set DR_STEP_ALIGNMENT when setting DR_STEP.
6298         Print the outer step alignment.
6300 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
6302         * tree-data-ref.h (innermost_loop_behavior): Replace aligned_to
6303         with offset_alignment.
6304         (DR_ALIGNED_TO): Delete.
6305         (DR_OFFSET_ALIGNMENT): New macro.
6306         * tree-vectorizer.h (STMT_VINFO_DR_ALIGNED_TO): Delete.
6307         (STMT_VINFO_DR_OFFSET_ALIGNMENT): New macro.
6308         * tree-data-ref.c (dr_analyze_innermost): Update after above changes.
6309         (create_data_ref): Likewise.
6310         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
6311         (vect_analyze_data_refs): Likewise.
6312         * tree-if-conv.c (if_convertible_loop_p_1): Use memset before
6313         creating dummy innermost behavior.
6315 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
6317         * tree-data-ref.h (dr_analyze_innermost): Replace the dr argument
6318         with a "innermost_loop_behavior *" and refeence tree.
6319         * tree-data-ref.c (dr_analyze_innermost): Likewise.
6320         (create_data_ref): Update call accordingly.
6321         * tree-predcom.c (find_looparound_phi): Likewise.
6323 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
6325         * tree-vectorizer.h (_stmt_vec_info): Replace individual dr_*
6326         fields with dr_wrt_vec_loop.
6327         (STMT_VINFO_DR_BASE_ADDRESS, STMT_VINFO_DR_INIT, STMT_VINFO_DR_OFFSET)
6328         (STMT_VINFO_DR_STEP, STMT_VINFO_DR_ALIGNED_TO): Update accordingly.
6329         (STMT_VINFO_DR_WRT_VEC_LOOP): New macro.
6330         (vect_dr_behavior): New function.
6331         (vect_create_addr_base_for_vector_ref): Remove loop parameter.
6332         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
6333         vect_dr_behavior.  Use a step_preserves_misalignment_p boolean to
6334         track whether the step preserves the misalignment.
6335         (vect_create_addr_base_for_vector_ref): Remove loop parameter.
6336         Use vect_dr_behavior.
6337         (vect_setup_realignment): Update call accordingly.
6338         (vect_create_data_ref_ptr): Likewise.  Use vect_dr_behavior.
6339         * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Update
6340         call to vect_create_addr_base_for_vector_ref.
6341         (vect_create_cond_for_align_checks): Likewise.
6342         * tree-vect-patterns.c (vect_recog_bool_pattern): Copy
6343         STMT_VINFO_DR_WRT_VEC_LOOP as a block.
6344         (vect_recog_mask_conversion_pattern): Likewise.
6345         * tree-vect-stmts.c (compare_step_with_zero): Use vect_dr_behavior.
6346         (new_stmt_vec_info): Remove redundant zeroing.
6348 2017-07-03  Richard Earnshaw  <rearnsha@arm.com>
6350         * common/config/arm/arm-common.c (arm_be8_option): New function.
6351         * config/arm/arm-isa.h (isa_feature): Add new feature bit isa_bit_be8.
6352         (ISA_ARMv6): Add isa_bit_be8.
6353         * config/arm/arm.h (arm_be8_option): Add prototype.
6354         (BE8_SPEC_FUNCTION): New define.
6355         (EXTRA_SPEC_FUNCTIONS): Add BE8_SPEC_FUNCTION.
6356         * config/arm/arm.opt (mbig-endian): Mark as Negative of mlittle-endian.
6357         (mlittle-endian): Similarly.
6358         (mbe8, mbe32): New options.
6359         * config/arm/bpabi.h (BE8_LINK_SPEC): Call arm_be8_option.
6360         * doc/invoke.texi (ARM Options): Document -mbe8 and -mbe32.
6362 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
6364         * tree-cfg.c (gimple_find_sub_bbs): Fix profile updating.
6366 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
6368         * tree-cfgcleanup.c (want_merge_blocks_p): New function.
6369         (cleanup_tree_cfg_bb): Use it.
6370         * profile-count.h (profile_count::of_for_merging, profile_count::merge):
6371         New functions.
6372         * tree-cfg.c (gimple_merge_blocks): Use profile_count::merge.
6374 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
6376         PR bootstrap/81285
6377         * loop-doloop.c (add_test): Update profile.
6379 2017-07-03  Martin Liska  <mliska@suse.cz>
6381         PR sanitize/81040
6382         * sanopt.c (rewrite_usage_of_param): New function.
6383         (sanitize_rewrite_addressable_params): Likewise.
6384         (pass_sanopt::execute): Call rewrite_usage_of_param.
6386 2017-07-03  Richard Biener  <rguenther@suse.de>
6388         * tree-vect-loop.c (vect_create_epilog_for_reduction): Revert
6389         back to using VIEW_CONVERT_EXPR.
6391 2017-07-03  Martin Liska  <mliska@suse.cz>
6393         PR other/78366
6394         * doc/extend.texi: Document when a resolver function is
6395         generated for target_clones.
6397 2017-07-03  Martin Liska  <mliska@suse.cz>
6399         * asan.c (asan_emit_stack_protection): Unpoison just red zones
6400         and shadow memory of auto variables which are subject of
6401         use-after-scope sanitization.
6402         (asan_expand_mark_ifn): Add do set only when is_poison.
6404 2016-07-03  Richard Biener  <rguenther@suse.de>
6406         * tree-vect-loop.c (vect_analyze_loop_operations): Also analyze
6407         reduction PHIs.
6408         (vect_force_simple_reduction): Record reduction def -> phi mapping.
6409         (vectorizable_reduction): Perform reduction PHI creation when
6410         visiting a reduction PHI and adjust and simplify code generation
6411         phase of the reduction op.  Cache dts, use fold_binary, not fold_build2.
6412         (vect_transform_loop): Visit reduction PHIs.
6413         * tree-vect-slp.c (vect_get_and_check_slp_defs): Record reduction
6414         defs into the SLP tree.
6415         (vect_build_slp_tree): Reduction defs terminate the recursion.
6416         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): Allow lookup
6417         of reduction defs.
6418         (vect_get_vec_defs_for_stmt_copy): Export.
6419         (vect_get_vec_defs): Likewise.
6420         * tree-vectorizer.h (struct _stmt_vec_info): Amend reduc_def
6421         purpose.
6422         (vect_get_vec_defs_for_stmt_copy): Declare.
6423         (vect_get_vec_defs): Likewise.
6425 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
6427         * tree-data-ref.c (dr_analyze_innermost): Replace the "nest"
6428         parameter with a "loop" parameter and use it instead of the
6429         loop containing DR_STMT.  Don't check simple_iv when doing
6430         BB analysis.  Describe the two analysis modes in the comment.
6432 2017-07-03  Tom de Vries  <tom@codesourcery.com>
6434         PR tree-optimization/69468
6435         * tree-ssa-tail-merge.c (ignore_edge_flags): New constant.
6436         (find_same_succ_bb): Handle ignore_edge_flags.
6438 2017-07-03  Tom de Vries  <tom@codesourcery.com>
6440         PR tree-optimization/81192
6441         * tree-ssa-tail-merge.c (same_succ_hash): Use bb->loop_father->num in
6442         hash.
6443         (same_succ::equal): Don't find bbs to be equal if bb->loop_father
6444         differs.
6445         (find_same_succ_bb): Remove obsolete test on bb->loop_father->latch.
6447 2017-07-03  Tom de Vries  <tom@codesourcery.com>
6449         PR tree-optimization/81192
6450         * tree-ssa-tail-merge.c (same_succ_flush_bb): Handle
6451         BB_SAME_SUCC (bb) == NULL.
6453 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
6455         * cfgrtl.c (rtl_verify_edges): Enable checking of profile_probability
6456         consistency.
6458 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
6460         * dumpfile.c: Include profile-count.h
6461         * tree-cfg.c (gimple_duplicate_sese_tail): Drop UNUSED attributes;
6462         update profile.
6463         (insert_cond_bb): Update profile.
6464         * tree-cfg.h (insert_cond_bb): Update prototype.
6465         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Update.
6466         * tree-dump.c: Do not include tree-cfg.
6468 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
6470         * bb-reorder.c (fix_up_crossing_landing_pad): Update profile.
6472 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
6474         * expect.c (dw2_build_landing_pads): Update profile of the landing pad
6475         bb.
6477 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
6479         * tree-complex.c (expand_complex_div_wide): update profile.
6481 2017-07-02  Richard Sandiford  <richard.sandiford@linaro.org>
6482             Alan Hayward  <alan.hayward@arm.com>
6483             David Sherwood  <david.sherwood@arm.com>
6485         * Makefile.in (MACHMODE_H): Remove insn-modes.h
6486         (CORETYPES_H): New define.
6487         (MOSTLYCLEANFILES): Add insn-modes-inline.h.
6488         (insn-modes-inline.h, s-modes-inline-h): New rules.
6489         (generated_files): Add insn-modes-inline.h.
6490         (RTL_BASE_H, TREE_CORE_H): Use CORETYPES_H instead of coretypes.h.
6491         (build/gensupport.o, build/ggc-none.o, build/print-rtl.o): Likewise.
6492         (build/read-md.o, build/read-rtl.o, build/rtl.o): Likewise.
6493         (build/vec.o, build/hash-table.o, build/inchash.o): Likewise.
6494         (build/gencondmd.o, build/genattr.o, build/genattr-common.o): Likewise.
6495         (build/genattrtab.o, build/genautomata.o, build/gencheck.o): Likewise.
6496         (build/gencodes.o, build/genconditions.o): Likewise.
6497         (build/genconfig.o, build/genconstants.o, build/genemit.o): Likewise.
6498         (build/genenums.o, build/genextract.o, build/genflags.o): Likewise.
6499         (build/gentarget-def.o, build/genmddeps.o, build/genopinit.o)
6500         (build/genoutput.o, build/genpeep.o, build/genpreds.o): Likewise.
6501         (build/genrecog.o, build/genmddump.o, build/genmatch.o): Likewise.
6502         (build/gencfn-macros.o, build/gcov-iov.o): Likewise.
6503         * coretypes.h: Include everything up to real.h for generators.
6504         Include insn-modes.h first.  Include wide-int-print.h after
6505         wide-int.h.  Include insn-modes-inline.h and then machmode.h.
6506         * machmode.h: Don't include insn-modes.h here.
6507         * function-tests.c: Remove includes of signop.h, machmode.h,
6508         double-int.h and wide-int.h.
6509         * rtl.h: Likewise.
6510         * gcc-rich-location.c: Remove includes of machmode.h, double-int.h
6511         and wide-int.h.
6512         * optc-save-gen.awk: Likewise.
6513         * gencheck.c (BITS_PER_UNIT): Delete dummy definition.
6514         * godump.c: Remove include of wide-int-print.h.
6515         * pretty-print.h: Likewise.
6516         * wide-int-print.cc: Likewise.
6517         * wide-int.cc: Likewise.
6518         * hash-map-tests.c: Remove include of signop.h.
6519         * hash-set-tests.c: Likewise.
6520         * rtl-tests.c: Likewise.
6521         * mkconfig.sh: Remove include of machmode.h.
6522         * genmodes.c (emit_insn_modes_h): Split emission of inline functions
6523         into...
6524         (emit_insn_modes_inline_h): ...this new function.  Emit the code
6525         into an insn-modes-inline.h header file, adding appropriate
6526         include guards and end comments.
6527         (emit_insn_modes_c_header): Remove include of machmode.h.
6528         (emit_min_insn_modes_c_header): Include coretypes.h rather than
6529         machmode.h.
6530         (main): Handle -i flag and call emit_insn_modes_inline_h when
6531         it is passed.
6533 2017-07-02  Richard Sandiford  <richard.sandiford@linaro.org>
6535         * tree-ssa-strlen.c (strinfo): Rename the length field to
6536         nonzero_chars.  Add a full_string_p field.
6537         (compare_nonzero_chars, zero_length_string_p): New functions.
6538         (get_addr_stridx): Add an offset_out parameter.
6539         Use compare_nonzero_chars.
6540         (get_stridx): Update accordingly.  Use compare_nonzero_chars.
6541         (new_strinfo): Update after above changes to strinfo.
6542         (set_endptr_and_length): Set full_string_p.
6543         (get_string_length): Update after above changes to strinfo.
6544         (unshare_strinfo): Update call to new_strinfo.
6545         (maybe_invalidate): Likewise.
6546         (get_stridx_plus_constant): Change off to unsigned HOST_WIDE_INT.
6547         Use compare_nonzero_chars and zero_string_p.  Treat nonzero_chars
6548         as a uhwi instead of an shwi.  Update after above changes to
6549         strinfo and new_strinfo.
6550         (zero_length_string): Assert that chainsi contains full strings.
6551         Use zero_length_string_p.  Update call to new_strinfo.
6552         (adjust_related_strinfos): Update after above changes to strinfo.
6553         Copy full_string_p from origsi.
6554         (adjust_last_stmt): Use zero_length_string_p.
6555         (handle_builtin_strlen): Update after above changes to strinfo and
6556         new_strinfo.  Install the lhs as the string length if the previous
6557         entry didn't describe a full string.
6558         (handle_builtin_strchr): Update after above changes to strinfo
6559         and new_strinfo.
6560         (handle_builtin_strcpy): Likewise.
6561         (handle_builtin_strcat): Likewise.
6562         (handle_builtin_malloc): Likewise.
6563         (handle_pointer_plus): Likewise.
6564         (handle_builtin_memcpy): Likewise.  Track nonzero characters
6565         that aren't necessarily followed by a nul terminator.
6566         (handle_char_store): Likewise.
6568 2017-07-02  Richard Sandiford  <richard.sandiford@linaro.org>
6570         PR tree-optimization/80769
6571         * tree-ssa-strlen.c (strinfo): Document that "stmt" is also used
6572         for malloc and calloc.  Document the new invariant that all related
6573         strinfos have delayed lengths or none do.
6574         (verify_related_strinfos): Move earlier in file.
6575         (set_endptr_and_length): New function, split out from...
6576         (get_string_length): ...here.  Also set the lengths of related
6577         strinfos.
6578         (zero_length_string): Assert that chainsi has known (rather than
6579         delayed) lengths.
6580         (adjust_related_strinfos): Likewise.
6582 2017-07-02  Richard Sandiford  <richard.sandiford@linaro.org>
6584         PR tree-optimization/81136
6585         * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Only
6586         assert that two references with the same misalignment have the same
6587         compile-time misalignment if those compile-time misalignments
6588         are known.
6590 2017-07-01  Andi Kleen  <ak@linux.intel.com>
6592         * print-tree.c (print_node): Print all attributes.
6594 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
6596         * cfg.c (scale_bbs_frequencies): New function.
6597         * cfg.h (scale_bbs_frequencies): Declare it.
6598         * cfgloopanal.c (single_likely_exit): Cleanup.
6599         * cfgloopmanip.c (scale_loop_frequencies): Take profile_probability
6600         as parameter.
6601         (scale_loop_profile): Likewise.
6602         (loop_version): Likewise.
6603         (create_empty_loop_on_edge): Update.
6604         * cfgloopmanip.h (scale_loop_frequencies, scale_loop_profile,
6605         scale_loop_frequencies, scale_loop_profile, loopify,
6606         loop_version): Update prototypes.
6607         * modulo-sched.c (sms_schedule): Update.
6608         * predict.c (unlikely_executed_edge_p): Also check probability.
6609         (probably_never_executed_edge_p): Fix typo.
6610         * tree-if-conv.c (version_loop_for_if_conversion): Update.
6611         * tree-parloops.c (gen_parallel_loop): Update.
6612         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update.
6613         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
6614         * tree-ssa-loop-split.c (split_loop): Update.
6615         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
6616         * tree-vect-loop-manip.c (vect_do_peeling): Update.
6617         (vect_loop_versioning): Update.
6618         * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
6620 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
6622         * trans-mem.c (split_bb_make_tm_edge): Update profile.
6624 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
6626         * tree-if-conv.c (combine_blocks): Use make_single_succ_edge
6627         to keep profile consistent.
6629 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
6631         * cfgrtl.c (rtl_flow_call_edges_add): Update profile.
6632         * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
6633         * profile-count.h (max_safe_multiplier): Make unsigned.
6634         (profile_count::guessed_zero): New.
6636 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
6638         * bb-reorder.c (fix_up_crossing_landing_pad,
6639         fix_crossing_conditional_branches): Use make_single_succ_edge
6640         to keep profile consistent.
6642 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
6644         * tree-vect-loop.c (optimize_mask_stores): Use make_single_succ_edge
6645         to update profile.
6647 2017-07-01  Jakub Jelinek  <jakub@redhat.com>
6649         PR sanitizer/81262
6650         * bb-reorder.c (fix_up_fall_thru_edges): Move variable declarations to
6651         the right scopes, make sure cond_jump isn't preserved between multiple
6652         iterations.  Search for fallthru edge whenever there are 3+ edges and
6653         use find_fallthru_edge for it.
6655 2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
6657         Patch by Alexander Monakov <amonakov@ispras.ru>
6658         * sel-sched-ir.c (compute_succs_info): Handle uninitialized
6659         probabilities consistently.
6661 2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
6663         * pa.c (pa_expand_compare_and_swap_loop): Update call of
6664         emit_cmp_and_jump_insns.
6666 2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
6668         PR ipa/81261
6669         * tree-inline.c (expand_call_inline): Combine profile statuses.
6671 2017-06-30  Andrew Pinski  <apinski@cavium.com>
6673         * tree-if-conv.c (predicate_scalar_phi): Update new_stmt if
6674         fold_stmt returned true.
6676 2017-06-30  Nathan Sidwell  <nathan@acm.org>
6678         * ggc.h (empty_string): Delete.
6679         * cfgexpand.c (expand_asm_stmt): Use plain "".
6680         * optabs.c (expand_asm_memory_barrier): Likewise.
6681         * stringpool.c (empty_string): Delete.
6682         (digit_vector, digit_string): Delete.
6683         (ggc_alloc_string): Use plain "", don't optimize single digit
6684         strings.  Use ggc_alloc_atomic.
6686 2017-06-30  Richard Earnshaw  <rearnsha@arm.com>
6688         * rtlanal.c (insn_rtx_cost): If a parallel contains exactly one
6689         comparison set and one other set, use the cost of the non-comparison
6690         set.
6692 2017-06-30  Nathan Sidwell  <nathan@acm.org>
6694         * ggc.h: Replace all 'static inline' with plain 'inline'.  Fix
6695         some formatting.
6697 2017-06-30  Peter Bergner  <bergner@vnet.ibm.com>
6699         * tree-cfg.c (group_case_labels_stmt): Merge scanning and compressing
6700         loops.  Remove now unneeded calls to gimple_switch_set_label() that
6701         just set removed labels to NULL_TREE.
6703 2017-06-30  Aldy Hernandez  <aldyh@redhat.com>
6705         * tree-ssanames.c (set_range_info_raw): Abstract from ...
6706         (set_range_info): ...here.  Only call set_range_info_raw if domain
6707         is useful.
6708         (set_nonzero_bits): Call set_range_info_raw.
6709         * tree-ssanames.h (set_range_info_raw): New.
6711 2017-06-30  Jakub Jelinek  <jakub@redhat.com>
6713         PR target/81225
6714         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): For V8FI,
6715         V16FI and VI8F_256 iterators, use <store_mask_predicate> instead
6716         of nonimmediate_operand and <store_mask_constraint> instead of m
6717         for the input operand.  For V8FI iterator, always split if input
6718         is a MEM.  For V16FI and V8SF_256 iterators, don't test if both
6719         operands are MEM if <mask_applied>.  For VI4F_256 iterator, use
6720         <store_mask_predicate> instead of register_operand and
6721         <store_mask_constraint> instead of v for the input operand.  Make
6722         sure both operands aren't MEMs for if not <mask_applied>.
6724 2017-06-30  Sylvestre Ledru  <sylvestre@debian.org>
6726         * lto-wrapper.c (copy_file) Close both file descriptors before
6727         exiting normally.
6729 2017-06-30  Martin Liska  <mliska@suse.cz>
6731         PR ipa/81214
6732         * multiple_target.c (create_dispatcher_calls): Make ifunc
6733         also for function that don't have calls or are not referenced.
6735 2017-06-30  Richard Biener  <rguenther@suse.de>
6737         * tree-vect-slp.c (vect_slp_analyze_node_operations): Only
6738         analyze the first scalar stmt.  Move vector type computation
6739         for the BB case here from ...
6740         * tree-vect-stmts.c (vect_analyze_stmt): ... here.  Guard
6741         live operation processing in the SLP case properly.
6743 2017-06-30  Richard Biener  <rguenther@suse.de>
6745         * graph.c (draw_cfg_node_succ_edges): Fix broken dot syntax.
6747 2017-06-30  Martin Liska  <mliska@suse.cz>
6749         PR sanitizer/81021
6750         * tree-eh.c (lower_resx): Call BUILT_IN_ASAN_HANDLE_NO_RETURN
6751         before BUILT_IN_UNWIND_RESUME when ASAN is used.
6753 2017-06-30  Yvan Roux  <yvan.roux@linaro.org>
6755         * doc/invoke.texi (AArch64): Add missing options and remove redundant
6756         ones.
6758 2017-06-30  Richard Biener  <rguenther@suse.de>
6760         PR tree-optimization/81249
6761         * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
6762         condition reduction result to original scalar type.
6764 2017-06-30  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6766         * profile-count.h (enum profile_quality): Fix typos and whitespace
6767         issues.
6769 2017-06-30  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6771         * config/s390/s390.c (s390_expand_setmem): Adjust to the new data
6772         type for branch probabilities.
6774 2017-06-29  Julian Brown  <julian@codesourcery.com>
6775             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
6777         * config/aarch64/aarch64-fusion-pairs.def: Add ALU_BRANCH entry.
6778         * config/aarch64/aarch64.c (AARCH64_FUSE_ALU_BRANCH): New fusion type.
6779         (thunderx2t99_tunings): Set AARCH64_FUSE_ALU_BRANCH flag.
6780         (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_ALU_BRANCH.
6782 2017-06-29  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
6784         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Push the
6785         check for CC usage into AARCH64_FUSE_CMP_BRANCH.
6786         * config/i386/i386.c (ix86_macro_fusion_pair_p): Push the check for
6787         CC usage from generic code to here.
6788         * sched-deps.c (sched_macro_fuse_insns): Move the condition for
6789         CC usage into the target macros.
6791 2017-06-29  Maya Rashish  <coypu@sdf.org>
6793         * config/netbsd.h (NETBSD_LIB_SPEC): Add -lc when creating shared
6794         objects.
6796 2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
6798         * arm/arm-builtins.c: Include profile-count.h
6799         * except.c (sjlj_emit_function_enter): Use
6800         profile_probability::unlikely.
6802 2017-06-29  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
6804         * config/rs6000/rs6000.c (toc_relative_expr_p): Make tocrel_base
6805         and tocrel_offset be pointer args rather than implicitly using
6806         static versions.
6807         (legitimate_constant_pool_address_p, rs6000_emit_move,
6808         const_load_sequence_p, adjust_vperm): Add local tocrel_base and
6809         tocrel_offset and use in toc_relative_expr_p call.
6810         (print_operand, print_operand_address): Use static tocrel_base_oac
6811         and tocrel_offset_oac.
6812         (rs6000_output_addr_const_extra): Use static tocrel_base_oac and
6813         tocrel_offset_oac.
6815 2017-06-29  Maya Rashish  <coypu@sdf.org>
6817         * config/vax/builtins.md (ffssi2_internal): Correct constraint.
6819 2017-06-29  Eric Botcazou  <ebotcazou@adacore.com>
6821         * expr.c (expand_expr) <normal_inner_ref>: When testing for unaligned
6822         objects, take into account only the alignment of 'op0' and 'mode1' if
6823         'op0' is a MEM.
6825 2017-06-29  Steve Ellcey  <sellcey@cavium.com>
6827         * ccmp.c (ccmp_tree_comparison_p): New function.
6828         (ccmp_candidate_p): Update to use above function.
6829         (get_compare_parts): New function.
6830         (expand_ccmp_next): Update to use new functions.
6831         (expand_ccmp_expr_1): Take tree arg instead of gimple, update to use
6832         new functions.
6833         (expand_ccmp_expr): Pass tree instead of gimple to expand_ccmp_expr_1,
6834         take mode as argument.
6835         * ccmp.h (expand_ccmp_expr): Add mode as argument.
6836         * expr.c (expand_expr_real_1): Pass mode as argument.
6838 2017-06-29  Segher Boessenkool  <segher@kernel.crashing.org>
6840         * combine.c (combine_instructions): Print insns to dump_file, together
6841         with their costs.
6843 2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
6845         * asan.c (asan_emit_stack_protection): Update.
6846         (create_cond_insert_point): Update.
6847         * auto-profile.c (afdo_propagate_circuit): Update.
6848         * basic-block.h (struct edge_def): Turn probability to
6849         profile_probability.
6850         (EDGE_FREQUENCY): Update.
6851         * bb-reorder.c (find_traces_1_round): Update.
6852         (better_edge_p): Update.
6853         (sanitize_hot_paths): Update.
6854         * cfg.c (unchecked_make_edge): Initialize probability to uninitialized.
6855         (make_single_succ_edge): Update.
6856         (check_bb_profile): Update.
6857         (dump_edge_info): Update.
6858         (update_bb_profile_for_threading): Update.
6859         * cfganal.c (connect_infinite_loops_to_exit): Initialize new edge
6860         probabilitycount to 0.
6861         * cfgbuild.c (compute_outgoing_frequencies): Update.
6862         * cfgcleanup.c (try_forward_edges): Update.
6863         (outgoing_edges_match): Update.
6864         (try_crossjump_to_edge): Update.
6865         * cfgexpand.c (expand_gimple_cond): Update make_single_succ_edge.
6866         (expand_gimple_tailcall): Update.
6867         (construct_init_block): Use make_single_succ_edge.
6868         (construct_exit_block): Use make_single_succ_edge.
6869         * cfghooks.c (verify_flow_info): Update.
6870         (redirect_edge_succ_nodup): Update.
6871         (split_edge): Update.
6872         (account_profile_record): Update.
6873         * cfgloopanal.c (single_likely_exit): Update.
6874         * cfgloopmanip.c (scale_loop_profile): Update.
6875         (set_zero_probability): Remove.
6876         (duplicate_loop_to_header_edge): Update.
6877         * cfgloopmanip.h (loop_version): Update prototype.
6878         * cfgrtl.c (try_redirect_by_replacing_jump): Update.
6879         (force_nonfallthru_and_redirect): Update.
6880         (update_br_prob_note): Update.
6881         (rtl_verify_edges): Update.
6882         (purge_dead_edges): Update.
6883         (rtl_lv_add_condition_to_bb): Update.
6884         * cgraph.c: (cgraph_edge::redirect_call_stmt_to_calle): Update.
6885         * cgraphunit.c (init_lowered_empty_function): Update.
6886         (cgraph_node::expand_thunk): Update.
6887         * cilk-common.c: Include profile-count.h
6888         * dojump.c (inv): Remove.
6889         (jumpifnot): Update.
6890         (jumpifnot_1): Update.
6891         (do_jump_1): Update.
6892         (do_jump): Update.
6893         (do_jump_by_parts_greater_rtx): Update.
6894         (do_compare_rtx_and_jump): Update.
6895         * dojump.h (jumpifnot, jumpifnot_1, jumpif_1, jumpif, do_jump,
6896         do_jump_1. do_compare_rtx_and_jump): Update prototype.
6897         * dwarf2cfi.c: Include profile-count.h
6898         * except.c (dw2_build_landing_pads): Use make_single_succ_edge.
6899         (sjlj_emit_dispatch_table): Likewise.
6900         * explow.c: Include profile-count.h
6901         * expmed.c (emit_store_flag_force): Update.
6902         (do_cmp_and_jump): Update.
6903         * expr.c (compare_by_pieces_d::generate): Update.
6904         (compare_by_pieces_d::finish_mode): Update.
6905         (emit_block_move_via_loop): Update.
6906         (store_expr_with_bounds): Update.
6907         (store_constructor): Update.
6908         (expand_expr_real_2): Update.
6909         (expand_expr_real_1): Update.
6910         * expr.h (try_casesi, try_tablejump): Update prototypes.
6911         * gimple-pretty-print.c (dump_probability): Update.
6912         (dump_profile): New.
6913         (dump_gimple_label): Update.
6914         (dump_gimple_bb_header): Update.
6915         * graph.c (draw_cfg_node_succ_edges): Update.
6916         * hsa-gen.c (convert_switch_statements): Update.
6917         * ifcvt.c (cheap_bb_rtx_cost_p): Update.
6918         (find_if_case_1): Update.
6919         (find_if_case_2): Update.
6920         * internal-fn.c (expand_arith_overflow_result_store): Update.
6921         (expand_addsub_overflow): Update.
6922         (expand_neg_overflow): Update.
6923         (expand_mul_overflow): Update.
6924         (expand_vector_ubsan_overflow): Update.
6925         * ipa-cp.c (good_cloning_opportunity_p): Update.
6926         * ipa-split.c (split_function): Use make_single_succ_edge.
6927         * ipa-utils.c (ipa_merge_profiles): Update.
6928         * loop-doloop.c (add_test): Update.
6929         (doloop_modify): Update.
6930         * loop-unroll.c (compare_and_jump_seq): Update.
6931         (unroll_loop_runtime_iterations): Update.
6932         * lra-constraints.c (lra_inheritance): Update.
6933         * lto-streamer-in.c (input_cfg): Update.
6934         * lto-streamer-out.c (output_cfg): Update.
6935         * mcf.c (adjust_cfg_counts): Update.
6936         * modulo-sched.c (sms_schedule): Update.
6937         * omp-expand.c (expand_omp_for_init_counts): Update.
6938         (extract_omp_for_update_vars): Update.
6939         (expand_omp_ordered_sink): Update.
6940         (expand_omp_for_ordered_loops): Update.
6941         (expand_omp_for_generic): Update.
6942         (expand_omp_for_static_nochunk): Update.
6943         (expand_omp_for_static_chunk): Update.
6944         (expand_cilk_for): Update.
6945         (expand_omp_simd): Update.
6946         (expand_omp_taskloop_for_outer): Update.
6947         (expand_omp_taskloop_for_inner): Update.
6948         * omp-simd-clone.c (simd_clone_adjust): Update.
6949         * optabs.c (expand_doubleword_shift): Update.
6950         (expand_abs): Update.
6951         (emit_cmp_and_jump_insn_1): Update.
6952         (expand_compare_and_swap_loop): Update.
6953         * optabs.h (emit_cmp_and_jump_insns): Update prototype.
6954         * predict.c (predictable_edge_p): Update.
6955         (edge_probability_reliable_p): Update.
6956         (set_even_probabilities): Update.
6957         (combine_predictions_for_insn): Update.
6958         (combine_predictions_for_bb): Update.
6959         (propagate_freq): Update.
6960         (estimate_bb_frequencies): Update.
6961         (force_edge_cold): Update.
6962         * profile-count.c (profile_count::dump): Add missing space into dump.
6963         (profile_count::debug): Add newline.
6964         (profile_count::differs_from_p): Explicitly convert to unsigned.
6965         (profile_count::stream_in): Update.
6966         (profile_probability::dump): New member function.
6967         (profile_probability::debug): New member function.
6968         (profile_probability::differs_from_p): New member function.
6969         (profile_probability::differs_lot_from_p): New member function.
6970         (profile_probability::stream_in): New member function.
6971         (profile_probability::stream_out): New member function.
6972         * profile-count.h (profile_count_quality): Rename to ...
6973         (profile_quality): ... this one.
6974         (profile_probability): New.
6975         (profile_count): Update.
6976         * profile.c (compute_branch_probabilities): Update.
6977         * recog.c (peep2_attempt): Update.
6978         * sched-ebb.c (schedule_ebbs): Update.
6979         * sched-rgn.c (find_single_block_region): Update.
6980         (compute_dom_prob_ps): Update.
6981         (schedule_region): Update.
6982         * sel-sched-ir.c (compute_succs_info): Update.
6983         * stmt.c (struct case_node): Update.
6984         (do_jump_if_equal): Update.
6985         (get_outgoing_edge_probs): Update.
6986         (conditional_probability): Update.
6987         (emit_case_dispatch_table): Update.
6988         (expand_case): Update.
6989         (expand_sjlj_dispatch_table): Update.
6990         (emit_case_nodes): Update.
6991         * targhooks.c: Update.
6992         * tracer.c (better_p): Update.
6993         (find_best_successor): Update.
6994         * trans-mem.c (expand_transaction): Update.
6995         * tree-call-cdce.c: Update.
6996         * tree-cfg.c (gimple_split_edge): Upate.
6997         (move_sese_region_to_fn): Upate.
6998         * tree-cfgcleanup.c (cleanup_control_expr_graph): Upate.
6999         * tree-eh.c (lower_resx): Upate.
7000         (cleanup_empty_eh_move_lp): Upate.
7001         * tree-if-conv.c (version_loop_for_if_conversion): Update.
7002         * tree-inline.c (copy_edges_for_bb): Update.
7003         (copy_cfg_body): Update.
7004         * tree-parloops.c (gen_parallel_loop): Update.
7005         * tree-profile.c (gimple_gen_ic_func_profiler): Update.
7006         (gimple_gen_time_profiler): Update.
7007         * tree-ssa-dce.c (remove_dead_stmt): Update.
7008         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
7009         * tree-ssa-loop-im.c (execute_sm_if_changed): Update.
7010         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update.
7011         (unloop_loops): Update.
7012         (try_peel_loop): Update.
7013         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
7014         * tree-ssa-loop-split.c (connect_loops): Update.
7015         (split_loop): Update.
7016         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
7017         (hoist_guard): Update.
7018         * tree-ssa-phionlycprop.c (propagate_rhs_into_lhs): Update.
7019         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update.
7020         (value_replacement): Update.
7021         * tree-ssa-reassoc.c (branch_fixup): Update.
7022         * tree-ssa-tail-merge.c (replace_block_by): Update.
7023         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Update.
7024         (create_edge_and_update_destination_phis): Update.
7025         (compute_path_counts): Update.
7026         (recompute_probabilities): Update.
7027         (update_joiner_offpath_counts): Update.
7028         (freqs_to_counts_path): Update.
7029         (duplicate_thread_path): Update.
7030         * tree-switch-conversion.c (hoist_edge_and_branch_if_true): Update.
7031         (struct switch_conv_info): Update.
7032         (gen_inbound_check): Update.
7033         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
7034         (vect_do_peeling): Update.
7035         (vect_loop_versioning): Update.
7036         * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
7037         (optimize_mask_stores): Update.
7038         * ubsan.c (ubsan_expand_null_ifn): Update.
7039         * value-prof.c (gimple_divmod_fixed_value): Update.
7040         (gimple_divmod_fixed_value_transform): Update.
7041         (gimple_mod_pow2): Update.
7042         (gimple_mod_pow2_value_transform): Update.
7043         (gimple_mod_subtract): Update.
7044         (gimple_mod_subtract_transform): Update.
7045         (gimple_ic): Update.
7046         (gimple_stringop_fixed_value): Update.
7047         (gimple_stringops_transform): Update.
7048         * value-prof.h: Update.
7050 2017-06-29  Carl Love  <cel@us.ibm.com>
7052         * config/rs6000/rs6000-c.c: Add support for built-in functions
7053         vector signed int vec_signed (vector float);
7054         vector signed long long vec_signed (vector double);
7055         vector signed int vec_signed2 (vector double, vector double);
7056         vector signed int vec_signede (vector double);
7057         vector signed int vec_signedo (vector double);
7058         * config/rs6000/rs6000.c (rs6000_generate_vsigned2_code): Add
7059         instruction generator.
7060         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
7061         UNSPEC_VSX_VSIGNED2): Add UNSPECS.
7062         (vsx_xvcvspsxws, vsx_xvcvdpuxds_scale, vsx_xvcvspuxws, vsigned2_v2df):
7063         Add define_insn.
7064         (vsignedo_v2df, vsignede_v2df, vunsigned2_v2df, vunsignedo_v2df,
7065         vunsignede_v2df): Add define_expands.
7066         * config/rs6000/rs6000-builtin.def (VEC_SIGNED, VEC_UNSIGNED,
7067         VEC_SIGNED2, VEC_UNSIGNED2, VEC_SIGNEDE, VEC_UNSIGNEDE, VEC_SIGNEDO,
7068         VEC_UNSIGNEDO): Add definitions.
7069         * config/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
7070         UNSPEC_VSX_VSIGNED2): Add UNSPECs.
7071         (vsx_xvcvspsxws, vsx_xvcvspuxws): Add define_insn.
7072         (vsigned2_v2df, vsigendo_v2df, vsignede_v2df,
7073         vunsigned2_v2df, vunsignedo_v2df, vunsignede_v2df): Add define_expands.
7074         * config/rs6000/altivec.h (vec_signed, vec_signed2,
7075         vec_signede and vec_signedo, vec_unsigned, vec_unsigned2,
7076         vec_unsignede, vec_unsignedo): Add builtin defines.
7077         * config/rs6000-protos.h (rs6000_generate_vsigned2_code): Add extern
7078         declaration.
7079         * doc/extend.texi: Update the built-in documentation file for the
7080         new built-in functions.
7082 2017-06-29  Richard Biener  <rguenther@suse.de>
7084         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Do not add
7085         reduction chains to LOOP_VINFO_REDUCTIONS.
7086         * tree-vect-slp.c (vect_analyze_slp): Continue looking for
7087         SLP reductions after processing reduction chains.
7089 2017-06-29  Nathan Sidwell  <nathan@acm.org>
7091         * builtins.c (fold_builtin_FUNCTION): Use
7092         lang_hooks.decl_printable_name.
7094 2017-06-29  Peter Bergner  <bergner@vnet.ibm.com>
7096         PR middle-end/81194
7097         * cfgexpand.c (expand_gimple_stmt_1): Handle switch statements
7098         with only one label.
7099         * stmt.c (expand_case): Assert NCASES is greater than one.
7101 2017-06-29  Richard Biener  <rguenther@suse.de>
7103         * tree-cfg.c (group_case_labels_stmt): Return whether we changed
7104         anything.
7105         (group_case_labels): Likewise.
7106         (find_taken_edge): Push sanity checking on val to workers...
7107         (find_taken_edge_cond_expr): ... here
7108         (find_taken_edge_switch_expr): ... and here, handle cases
7109         with just a default label.
7110         * tree-cfg.h (group_case_labels_stmt): Adjust prototype.
7111         (group_case_labels): Likewise.
7112         * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing): When
7113         group_case_labels does anything cleanup the CFG again.
7115 2017-06-29  Bin Cheng  <bin.cheng@arm.com>
7117         PR tree-optimization/81196
7118         * tree-ssa-loop-niter.c (number_of_iterations_cond): Handle loop
7119         exit condition comparing two IVs.
7121 2017-06-29  Richard Earnshaw  <rearnsha@arm.com>
7123         * config/arm/parsecpu.awk (gen_comm_data): Add initializer for
7124         profile to the dummy entry at the end of the list of architectures.
7125         * config/arm/arm-cpu-cdata.h: Regenerated.
7127 2017-06-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7128             Michael Collison <michael.collison@arm.com>
7130         PR target/70119
7131         * config/aarch64/aarch64.md (*aarch64_<optab>_reg_<mode>3_mask1):
7132         New pattern.
7133         (*aarch64_reg_<mode>3_neg_mask2): New pattern.
7134         (*aarch64_reg_<mode>3_minus_mask): New pattern.
7135         (*aarch64_<optab>_reg_di3_mask2): New pattern.
7136         * config/aarch64/aarch64.c (aarch64_rtx_costs): Account for cost
7137         of shift when the shift amount is masked with constant equal to
7138         the size of the mode.
7139         * config/aarch64/predicates.md (subreg_lowpart_operator): New
7140         predicate.
7142 2017-06-29  Martin Liska  <mliska@suse.cz>
7144         * config/i386/i386.opt: Change range from [1,5] to [0,5].
7146 2017-06-29  Yury Gribov  <tetra2005@gmail.com>
7148         PR bootstrap/80565
7149         * ipa-cp.c (allocate_and_init_ipcp_value): Add initialization
7150         code.
7151         * ipa-inline.h
7152         (edge_growth_cache_entry::edge_growth_cache_entry): New
7153         function.
7154         (reset_edge_growth_cache): Update to use constructor.
7156 2017-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7158         * config/aarch64/aarch64.h (AARCH64_EXPAND_ALIGNMENT): New.
7159         (DATA_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
7160         (LOCAL_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
7162 2017-06-28  Sebastian Peryt  <sebastian.peryt@intel.com>
7164         * config/i386/avx512vlintrin.h (_mm256_permutexvar_epi64)
7165         (_mm256_permutexvar_epi32, _mm256_permutex_epi64): New intrinsics.
7167 2017-06-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7169         * config.gcc (*-linux-musl*): Add t-musl tmake_file.
7170         (*-linux-uclibc*): Add t-uclibc tmake_file.
7171         * config/t-musl: New.
7172         * config/t-uclibc: New.
7174 2017-06-28  Richard Earnshaw  <rearnsha@arm.com>
7176         * config/arm/parsecpu.awk (profile): Parse new keyword in an arch
7177         context.
7178         (gen_comm_data): Emit architectural setting of arch_prof.
7179         * config/arm/arm-cpus.in (armv6-m, armv6s-m, armv7-a, armv7ve): Set the
7180         profile.
7181         (armv7-r, armv7-m, armv7e-m, armv8-a, armv8.1-a, armv8.2-a): Likewise.
7182         (armv8-m.base, armv8-m.main): Likewise.
7183         * arm-protos.h (arm_build_target): Add profile field.
7184         (arch_option): Likewise.
7185         * config/arm/arm.c (arm_configure_build_target): Copy the profile to
7186         the active target.
7187         * config/arm/arm.h (TARGET_ARM_ARCH_PROFILE): Use
7188         arm_active_target.profile.
7190 2017-06-28  Richard Biener  <rguenther@suse.de>
7192         PR middle-end/81227
7193         * fold-const.c (negate_expr_p): Use TYPE_UNSIGNED, not
7194         TYPE_OVERFLOW_WRAPS.
7195         * match.pd (negate_expr_p): Likewise.
7196         * tree-ssa-reassoc.c (optimize_range_tests_diff): Use
7197         fold_build2, not fold_binary.
7199 2017-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
7201         * config/aarch64/aarch64 (aarch64_expand_mov_immediate):
7202         Convert memory address to Pmode.
7203         (aarch64_print_operand): Assert MEM operands are always Pmode.
7205 2017-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
7207         PR target/79665
7208         * config/arm/aarch-common.c (arm_no_early_alu_shift_dep):
7209         Remove redundant if.
7210         (aarch_forward_to_shift_is_not_shifted_reg): Remove.
7211         * config/arm/aarch-common-protos.h
7212         (aarch_forward_to_shift_is_not_shifted_re): Remove.
7213         * config/arm/cortex-a53.md: Use arm_no_early_alu_shift_dep in bypass.
7215 2017-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
7217         PR ipa/81238
7218         * multiple_target.c (create_dispatcher_calls): Set the default
7219         clone to be static, not public.
7221 2017-06-28  Richard Biener  <rguenther@suse.de>
7223         * tree-vect-loop.c (vectorizable_reduction): Move special
7224         cond reduction IV var creation ...
7225         (vect_create_epilog_for_reduction): ... here.  Remove induction_index
7226         parameter.  Use STMT_VINFO_VECTYPE.
7227         * tree-vect-slp.c (vect_get_constant_vectors): Properly reset
7228         constant_p.
7230 2017-06-28  Martin Liska  <mliska@suse.cz>
7232         PR ipa/81128
7233         * ipa-visibility.c (non_local_p): Handle visibility.
7235 2017-06-28  Martin Liska  <mliska@suse.cz>
7237         PR driver/79659
7238         * common.opt: Add IntegerRange to various options.
7239         * opt-functions.awk (integer_range_info): New function.
7240         * optc-gen.awk: Add integer_range_info to cl_options struct.
7241         * opts-common.c (decode_cmdline_option): Handle
7242         CL_ERR_INT_RANGE_ARG.
7243         (cmdline_handle_error): Likewise.
7244         * opts.c (print_filtered_help): Show valid interval in
7245         when --help is provided.
7246         * opts.h (struct cl_option): Add range_min and range_max fields.
7247         * config/i386/i386.opt: Add IntegerRange for -mbranch-cost.
7249 2017-06-28  Marc Glisse  <marc.glisse@inria.fr>
7251         * match.pd ((X & ~Y) | (~X & Y)): Generalize to + and ^.
7252         (x * C EQ/NE y * C): New transformation.
7254 2017-06-28  Christophe Lyon  <christophe.lyon@linaro.org>
7256         * genmultilib (combination_space): Accept '+' in option names.
7258 2017-06-28  Martin Liska  <mliska@suse.cz>
7260         PR sanitizer/81224
7261         * asan.c (instrument_derefs): Bail out inner references
7262         that are hard register variables.
7264 2017-06-28  Jakub Jelinek  <jakub@redhat.com>
7266         PR target/81175
7267         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use def_builtin
7268         rather than def_builtin_pure for __builtin_ia32_gatherpf*.
7270 2017-06-28  Richard Biener  <rguenther@suse.de>
7272         * tree-vectorizer.h (vect_get_vec_defs): Remove.
7273         (vect_get_slp_defs): Adjust.
7274         * tree-vect-loop.c (get_initial_defs_for_reduction): Split
7275         out from ...
7276         * tree-vect-slp.c (vect_get_constant_vectors): ... here and
7277         simplify.
7278         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7279         get_initial_defs_for_reduction instead of vect_get_vec_defs.
7280         (vectorizable_reduction): Adjust.
7281         * tree-vect-slp.c (vect_get_constant_vectors): Remove reduction
7282         handling.
7283         (vect_get_slp_defs): Likewise.
7284         * tree-vect-stmts.c (vect_get_vec_defs): Make static and adjust.
7285         (vectorizable_bswap): Adjust.
7286         (vectorizable_call): Likewise.
7287         (vectorizable_conversion): Likewise.
7288         (vectorizable_assignment): Likewise.
7289         (vectorizable_shift): Likewise.
7290         (vectorizable_operation): Likewise.
7291         (vectorizable_store): Likewise.
7292         (vectorizable_condition): Likewise.
7293         (vectorizable_comparison): Likewise.
7295 2017-06-28  Michael Collison  <michael.collison@arm.com>
7297         PR target/68535
7298         * config/arm/arm.c (gen_ldm_seq): Remove last unnecessary
7299         set of base_reg
7300         (arm_gen_movmemqi): Removed unused variable 'i'.
7301         Convert 'for' loop into 'while' loop.
7302         (arm_expand_prologue): Remove last unnecessary set of insn.
7303         (thumb_pop): Remove unused variable 'pushed_words'.
7304         (thumb_exit): Remove last unnecessary set of regs_to_pop.
7306 2017-06-28  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7308         * config/s390/predicates.md: Use s390_rel_address_ok_p.
7309         * config/s390/s390-protos.h: Add prototype of
7310         s390_rel_address_ok_p.
7311         * config/s390/s390.c (s390_got_symbol): New function.
7312         (s390_rel_address_ok_p): New function.
7313         (legitimize_pic_address): Use s390_rel_address_ok_p.
7314         (s390_load_got): Use s390_got_symbol.
7315         (s390_option_override): Issue error if
7316         -mno-pic-data-is-text-relative is used without -fpic/-fPIC.
7317         * config/s390/s390.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
7318         New macro.
7319         * config/s390/s390.opt: New option mpic-data-is-text-relative.
7321 2017-06-27  Andrew Pinski  <apinski@cavium.com>
7323         * match.pd (X >/>=/</<= 0 ? 1.0 : -1.0): New patterns.
7324         (X * copysign (1.0, X)): New pattern.
7325         (X * copysign (1.0, -X)): New pattern.
7326         (copysign (-1.0, CST)): New pattern.
7328 2017-06-27  Joseph Myers  <joseph@codesourcery.com>
7330         * genmultilib (combination_space): Remove variable.
7331         Validate reuse rules against regular expression for any sequence
7332         of multilib options in any order.
7334 2017-06-27  Michael Collison  <michael.collison@arm.com>
7336         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Directly
7337         call aarch64_split_simd_combine.
7338         * (aarch64_combine_internal<mode>): Delete pattern.
7339         * config/aarch64/aarch64.c (aarch64_split_simd_combine):
7340         Allow register and subreg operands.
7342 2017-06-27  Jerome Lambourg  <lambourg@adacore.com>
7344         * config/i386/vxworks.h (ASM_SPEC): Remove definition. No target
7345         specific need, just fallback on defaults.
7346         (ASM_OUTPUT_ALIGNED_BSS): Add #undef before #define.
7348 2017-06-27  Jerome Lambourg  <lambourg@adacore.com>
7349             Olivier Hainque  <hainque@adacore.com>
7351         * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Pick distinct
7352         map for 64bits.
7353         (TARGET_OS_CPP_BUILTINS): builtin_define CPU to X86_64 for 64bit
7354         targets. Pick a default if no particular attempt applied.
7355         (STACK_CHECK_PROTECT): Double for 64bit targets, which have
7356         larger contexts.
7358 2017-06-27  Jerome Lambourg  <lambourg@adacore.com>
7360         * config.gcc (i*86-wrs-vxworks7): Handle new acceptable triplet.
7361         (x86_64-wrs-vxworks7): Likewise.
7363 2017-06-27  Marek Polacek  <polacek@redhat.com>
7365         PR sanitizer/81223
7366         * ubsan.c (instrument_null): Check get_base_address's result for null.
7368 2017-06-27  Marc Glisse  <marc.glisse@inria.fr>
7370         * match.pd ((A+-B)+(C-A), (A+B)-(A-C)): New transformations.
7372 2017-06-27  Marc Glisse  <marc.glisse@inria.fr>
7374         * builtin-types.def (BT_FENV_T_PTR, BT_CONST_FENV_T_PTR,
7375         BT_FEXCEPT_T_PTR, BT_CONST_FEXCEPT_T_PTR): New primitive types.
7376         (BT_FN_INT_FENV_T_PTR, BT_FN_INT_CONST_FENV_T_PTR,
7377         BT_FN_INT_FEXCEPT_T_PTR_INT, BT_FN_INT_CONST_FEXCEPT_T_PTR_INT):
7378         New function types.
7379         * builtins.def (BUILT_IN_FECLEAREXCEPT, BUILT_IN_FEGETENV,
7380         BUILT_IN_FEGETEXCEPTFLAG, BUILT_IN_FEGETROUND,
7381         BUILT_IN_FEHOLDEXCEPT, BUILT_IN_FERAISEEXCEPT,
7382         BUILT_IN_FESETENV, BUILT_IN_FESETEXCEPTFLAG,
7383         BUILT_IN_FESETROUND, BUILT_IN_FETESTEXCEPT,
7384         BUILT_IN_FEUPDATEENV): New builtins.
7385         * tree-core.h (TI_FENV_T_PTR_TYPE, TI_CONST_FENV_T_PTR_TYPE,
7386         TI_FEXCEPT_T_PTR_TYPE, TI_CONST_FEXCEPT_T_PTR_TYPE): New entries.
7387         * tree.h (fenv_t_ptr_type_node, const_fenv_t_ptr_type_node,
7388         fexcept_t_ptr_type_node, const_fexcept_t_ptr_type_node): New
7389         macros.
7390         (builtin_structptr_types): Adjust size.
7391         * tree.c (builtin_structptr_types): Add four entries.
7393 2017-06-27  Jerome Lambourg  <lambourg@adacore.com>
7394             Olivier Hainque  <hainque@adacore.com>
7396         * config/vxworks.h (VXWORKS_LIB_SPEC): Incorporate ...
7397         (TLS_SYM): New local macro, forcing reference to __tls__ on
7398         link command lines for VxWorks 7 RTPs, triggering initialization
7399         of tlsLib.
7400         (VXWORKS_HAVE_TLS): New macro. State whether the target VxWorks
7401         OS features TLS support, true for RTPs on VxWorks 7.
7402         * config/vxworks.c (vxworks_override_options): Setup emutls
7403         accordingly.
7405 2017-06-27  Jakub Jelinek  <jakub@redhat.com>
7407         * predict.c (test_prediction_value_range): Use -1U instead of -1
7408         to avoid narrowing conversion warning.
7409         * dumpfile.c (dump_options): Wrap all value into dump_flags_t cast
7410         to avoid narrowing conversion warning.
7411         * opt-functions.awk (var_ref): Return (unsigned short) -1 instead of
7412         -1.
7413         * optc-gen.awk (END): Expect (unsigned short) -1 instead of -1.
7415 2017-06-27  Jerome Lambourg  <lambourg@adacore.com>
7417         * config/vxworks.h (VXWORKS_LIBS_RTP): Alternative definition for
7418         64bit configurations.
7419         (PTR_DIFF_TYPE): Alternative definition for TARGET_LP64.
7420         (SIZE_TYPE): Likewise.
7421         * config/vxworks.c (vxworks_emutls_var_fields): Use
7422         long_unsigned_type_node instead of unsigned_type_node as the offset
7423         field type, which is "pointer" mode in emutls.c.
7425 2017-06-27  Jakub Jelinek  <jakub@redhat.com>
7427         PR sanitizer/81209
7428         * ubsan.c (ubsan_encode_value): Initialize DECL_CONTEXT on var.
7430         PR middle-end/81207
7431         * gimple-fold.c (replace_call_with_call_and_fold): Handle
7432         gimple_vuse copying separately from gimple_vdef copying.
7434 2017-06-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7436         * value-prof.c (free_hist): Remove call to memset and the enclosing if
7437         condition.
7439 2017-06-26  Jerome Lambourg  <lambourg@adacore.com>
7440             Olivier Hainque  <hainque@adacore.com>
7442         * config.gcc (*-*-vxworks*): Add TARGET_VXWORKS7=1 to tm_defines
7443         for all vxworks7 targets.
7444         * config/vxworks.h (TARGET_VXWORKS7): If not defined, define to 0.
7445         (VXWORKS_ADDITIONAL_CPP_SPEC): Alternative definition for VXWORKS7.
7446         (VXWORKS_LIBS_RTP, VXWORKS_LIBS_RTP_DIR): New macros, allowing
7447         variations for VX6/VX7 and 32/64bits later on in ...
7448         (VXWORKS_LIB_SPEC): Leverage new macros.
7449         (VXWORKS_OS_CPP_BUILTINS): Define _VSB_CONFIG_FILE for VXWORKS7,
7450         as well as _ALLOW_KEYWORD_MACROS when "inline" is not a keyword.
7452 2017-06-26  Jerome Lambourg  <lambourg@adacore.com>
7454         * config/vxworks.h (VXWORKS_OS_CPP_BUILTINS): builtin_define
7455         _VX_TOOL_FAMILY and _VX_TOOL to gnu.
7457 2017-06-26  Carl Love  <cel@us.ibm.com>
7459         * config/rs6000/rs6000-c.c: Add support for built-in functions
7460         vector bool char vec_reve (vector bool char);
7461         vector signed char vec_reve (vector signed char);
7462         vector unsigned char vec_reve (vector unsigned char);
7463         vector bool int vec_reve (vector bool int);
7464         vector signed int vec_reve (vector signed int);
7465         vector unsigned int vec_reve (vector unsigned int);
7466         vector bool long long vec_reve (vector bool long long);
7467         vector signed long long vec_reve (vector signed long long);
7468         vector unsigned long long vec_reve (vector unsigned long long);
7469         vector bool short vec_reve (vector bool short);
7470         vector signed short vec_reve (vector signed short);
7471         vector double vec_reve (vector double);
7472         vector float vec_reve (vector float);
7473         * config/rs6000/rs6000-builtin.def (VREVE_V2DI, VREVE_V4SI,
7474         VREVE_V8HI, VREVE_V16QI, VREVE_V2DF, VREVE_V4SF, VREVE): New builtin.
7475         * config/rs6000/altivec.md (UNSPEC_VREVEV): New UNSPEC.
7476         (altivec_vreve): New pattern.
7477         * config/rs6000/altivec.h (vec_reve): New define.
7478         * doc/extend.texi (vec_rev): Update the built-in documentation file
7479         for the new built-in functions.
7481 2016-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7483         PR tree-optimization/71815
7484         * gimple-ssa-strength-reduction.c (uses_consumed_by_stmt): New
7485         function.
7486         (find_basis_for_candidate): Call uses_consumed_by_stmt rather than
7487         has_single_use.
7488         (slsr_process_phi): Likewise.
7489         (replace_uncond_cands_and_profitable_phis): Don't replace a
7490         multiply candidate with a stride of 1 (copy or cast).
7491         (phi_incr_cost): Call uses_consumed_by_stmt rather than
7492         has_single_use.
7493         (lowest_cost_path): Likewise.
7494         (total_savings): Likewise.
7496 2017-06-26  Richard Biener  <rguenther@suse.de>
7498         PR target/81175
7499         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
7500         Use def_builtin_pure for all gather builtins.
7502 2017-06-26  Richard Biener  <rguenther@suse.de>
7504         PR tree-optimization/81203
7505         * tree-tailcall.c (find_tail_calls): Do not move stmts into
7506         non-dominating BBs.
7508 2017-06-26  Marek Polacek  <polacek@redhat.com>
7510         PR c/80116
7511         * doc/invoke.texi: Document -Wmultistatement-macros.
7513 2017-06-26  Christophe Lyon  <christophe.lyon@linaro.org>
7515         * doc/sourcebuild.texi (ARM-specific attributes): Document new
7516         arm_neon_ok_no_float_abi effective target.
7518 2017-06-26  Richard Biener  <rguenther@suse.de>
7520         PR tree-optimization/80928
7521         * cfghooks.c (duplicate_block): Do not copy BB_DUPLICATED flag.
7522         (copy_bbs): Set BB_DUPLICATED flag early.
7523         (execute_on_growing_pred): Do not execute for BB_DUPLICATED
7524         marked blocks.
7525         (execute_on_shrinking_pred): Likewise.
7526         * tree-ssa.c (ssa_redirect_edge): Do not look for PHI args in
7527         BB_DUPLICATED blocks.
7528         * tree-ssa-phionlycoprop.c (eliminate_degenerate_phis_1): Properly
7529         iterate over all PHIs considering removal of *gsi.
7531 2017-06-23  Jim Wilson  <jim.wilson@linaro.org>
7533         * doc/invoke.texi (AArch64 Options, -mtune): Re-add falkor and
7534         qdf24xx.
7536 2017-06-23  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
7538         * config/rs6000/rs6000-string.c: (expand_block_clear,
7539         do_load_for_compare, select_block_compare_mode,
7540         compute_current_alignment, expand_block_compare,
7541         expand_strncmp_align_check, expand_strn_compare,
7542         expand_block_move, rs6000_output_load_multiple)
7543         Move functions related to string/block move/compare
7544         to a separate file.
7545         * config/rs6000/rs6000.c: Move above functions to rs6000-string.c.
7546         * config/rs6000/rs6000-protos.h (rs6000_emit_dot_insn): Add prototype
7547         for this function which is now used in two files.
7548         * config/rs6000/t-rs6000: Add rule to compile rs6000-string.o.
7549         * config.gcc: Add rs6000-string.o to extra_objs for
7550         targets powerpc*-*-* and rs6000*-*-*.
7552 2017-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
7554         PR target/80510
7555         * config/rs6000/rs6000.md (ALTIVEC_DFORM): Do not allow DImode in
7556         32-bit, since indexed is not valid for DImode.
7557         (mov<mode>_hardfloat32): Reorder ISA 2.07 load/stores before ISA
7558         3.0 d-form load/stores to be the same as mov<mode>_hardfloat64.
7559         (define_peephole2 for Altivec d-form load): Add 32-bit support.
7560         (define_peephole2 for Altivec d-form store): Likewise.
7562         PR ipa/81185
7563         * multiple_target.c (create_dispatcher_calls): Only create the
7564         dispatcher call if the function is the default clone of a
7565         versioned function.
7567 2017-06-23  Segher Boessenkool  <segher@kernel.crashing.org>
7569         PR middle-end/80902
7570         * builtins.c (expand_builtin_atomic_fetch_op): If emitting code after
7571         a call, force the call to not be a tail call.
7573 2017-06-23  Jeff Law  <law@redhat.com>
7575         * doc/contrib.texi: Add entry for Steven Pemberton's work on
7576         enquire.
7578 2017-06-23  Will Schmidt  <will_schmidt@vnet.ibm.com>
7580         * config/rs6000/rs6000.c: Add include of ssa-propagate.h for
7581         update_call_from_tree().  (rs6000_gimple_fold_builtin): Add
7582         handling for early expansion of vector shifts (sl,sr,sra,rl).
7583         (builtin_function_type): Add vector shift right instructions
7584         to the unsigned argument list.
7586 2017-06-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7588         rtl-optimizatoin/79286
7589         * ira.c (update_equiv_regs): Revert to using may_trap_or_fault_p again.
7590         * rtlanal.c (rtx_addr_can_trap_p_1): SYMBOL_REF_FUNCTION_P can never
7591         trap.  PIC register plus a const unspec without offset can never trap.
7593 2017-06-23  Marc Glisse  <marc.glisse@inria.fr>
7595         * tree.h (builtin_structptr_type): New type.
7596         (builtin_structptr_types): Declare new array.
7597         * tree.c (builtin_structptr_types): New array.
7598         (free_lang_data, build_common_tree_nodes): Use it.
7600 2017-06-23  Jonathan Wakely  <jwakely@redhat.com>
7602         PR c++/81187
7603         * doc/invoke.texi (-Wnoexcept-type): Fix name of option, from
7604         -Wnoexcept.
7606 2017-06-22  Matt Turner  <mattst88@gmail.com>
7608         * config/i386/driver-i386.c (host_detect_local_cpu): Add Kaby
7609         Lake models to skylake case.  Assume skylake for unknown
7610         models with clflushopt.
7612 2017-06-22  Jeff Law  <law@redhat.com>
7614         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Handle
7615         frame sizes that do not satisfy aarch64_uimm12_shift.
7617 2017-06-22  Jan Hubicka <hubicka@ucw.cz>
7619         * profile-count.h (apply_probability,
7620         apply_scale, probability_in): Fix checks for zero.
7622 2017-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7624         * incpath.c (add_sysroot_to_chain): Allow for $SYSROOT prefix.
7625         * doc/cppdiropts.texi (-I @var{dir}): Document it.
7627 2016-06-22  Richard Biener  <rguenther@suse.de>
7629         * tree-vect-loop.c (vect_model_reduction_cost): Handle
7630         COND_REDUCTION and INTEGER_INDUC_COND_REDUCTION without
7631         REDUC_MAX_EXPR support.
7632         (vectorizable_reduction): Likewise.
7633         (vect_create_epilog_for_reduction): Likewise.
7635 2017-06-22  James Greenhalgh  <james.greenhalgh@arm.com>
7637         * match.pd (A / (1 << B) -> A >> B): New.
7638         * generic-match-head.c: Include optabs-tree.h.
7639         * gimple-match-head.c: Likewise.
7640         * optabs-tree.h (target_supports_op_p): New.
7641         * optabs-tree.c (target_supports_op_p): New.
7643 2017-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7645         * configure.ac (gcc_cv_ld_static_dynamic): Also check stderr for
7646         $gcc_cv_ld --help output.
7647         (gcc_cv_ld_demangle): Likewise.
7648         (gcc_cv_ld_eh_frame_hdr): Likewise.
7649         (gcc_cv_ld_pie): Likewise.
7650         (gcc_cv_ld_as_needed): Likewise.  Prefer native forms unless $gnu_ld.
7651         (gcc_cv_ld_buildid): Likewise.
7652         (gcc_cv_ld_sysroot): Likewise.
7653         (ld_bndplt_support): Likewise.
7654         (ld_pushpopstate_support): Likewise.
7655         * configure: Regenerate.
7656         * config/sol2.h [!USE_GLD] (SYSROOT_SPEC): Define.
7658 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
7660         PR target/81151
7661         * config/i386/sse.md (round<mode>2): Renumber match_dup and
7662         operands indexes to avoid gap between operands and match_dups.
7664 2017-06-21  Andrew Pinski  <apinski@cavium.com>
7666         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
7667         Increment Arith_shift and Arith_shift_reg by 1.
7668         * config/aarch64/aarch64-tuning-flags.def (cheap_shift_extend):
7669         New tuning flag.
7670         * config/aarch64/aarch64.c (thunderx_tunings): Enable
7671         AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
7672         (aarch64_strip_extend): Add new argument and test for it.
7673         (aarch64_cheap_mult_shift_p): New function.
7674         (aarch64_rtx_mult_cost): Call aarch64_cheap_mult_shift_p and don't
7675         add a cost if it is true.
7676         Update calls to aarch64_strip_extend.
7677         (aarch64_rtx_costs): Update calls to aarch64_strip_extend.
7679 2017-06-21  Andrew Pinski  <apinski@cavium.com>
7681         * config/aarch64/aarch64-cores.def (thunderxt88p1): Use thunderxt88
7682         tunings.
7683         (thunderxt88): Likewise.
7684         * config/aarch64/aarch64.c (thunderxt88_prefetch_tune): New variable.
7685         (thunderx_prefetch_tune): New variable.
7686         (thunderx2t99_prefetch_tune): Update for the correct values.
7687         (thunderxt88_tunings): New variable.
7688         (thunderx_tunings): Use thunderx_prefetch_tune instead of
7689         generic_prefetch_tune.
7690         (thunderx2t99_tunings): Use AUTOPREFETCHER_WEAK.
7692 2017-06-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7694         * config/aarch64/atomics.md (aarch64_compare_and_swap<mode>_lse,
7695         SHORT): Relax operand 3 to aarch64_reg_or_zero and constraint to Z.
7696         (aarch64_compare_and_swap<mode>_lse, GPI): Likewise.
7697         (aarch64_atomic_cas<mode>, SHORT): Likewise for operand 2.
7698         (aarch64_atomic_cas<mode>, GPI): Likewise.
7700 2017-06-21  Martin Liska  <mliska@suse.cz>
7702         * gimplify.c (gimplify_label_expr): Insert GIMPLE_PREDICT
7703         statements on cold and hot labels.
7704         * predict.c (tree_estimate_probability_bb): Remove the
7705         prediction from this place.
7707 2017-06-21  Martin Liska  <mliska@suse.cz>
7709         PR tree-optimization/79489
7710         * gimplify.c (maybe_add_early_return_predict_stmt): New
7711         function.
7712         (gimplify_return_expr): Call the function.
7713         * predict.c (tree_estimate_probability_bb): Remove handling
7714         of early return.
7715         * predict.def: Update comment about early return predictor.
7716         * gimple-predict.h (is_gimple_predict): New function.
7717         * predict.def: Change default value of early return to 66.
7718         * tree-tailcall.c (find_tail_calls): Skip GIMPLE_PREDICT
7719         statements.
7720         * passes.def: Put pass_strip_predict_hints to the beginning of
7721         IPA passes.
7723 2017-06-21  Pierre-Marie de Rodat  <derodat@adacore.com>
7725         * dwarf2out.c (gen_decl_die): Remove the guard to skip file-scope
7726         FUNCTION_DECL declarations.
7727         (dwarf2out_early_global_decl): Remove the guard to skip FUNCTION_DECL
7728         declarations.
7729         (dwaf2out_decl): Likewise.
7730         * godump.c (go_early_global_decl): Skip call to the real debug hook
7731         for FUNCTION_DECL declarations.
7732         * passes.c (rest_of_decl_compilation): Skip call to the
7733         early_global_decl debug hook for FUNCTION_DECL declarations, unless
7734         -fdump-go-spec is passed.
7736 2017-06-21  Marc Glisse  <marc.glisse@inria.fr>
7738         * config/i386/i386.c (struct builtin_isa): New field pure_p.
7739         Reorder for compactness.
7740         (def_builtin, def_builtin2, ix86_add_new_builtins): Handle pure_p.
7741         (def_builtin_pure, def_builtin_pure2): New functions.
7742         (ix86_init_mmx_sse_builtins) [__builtin_ia32_stmxcsr]: Mark as pure.
7744 2017-06-21  Marc Glisse  <marc.glisse@inria.fr>
7746         * match.pd (nop_convert): New predicate.
7747         ((A +- CST1) +- CST2): Allow some NOP conversions.
7749 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
7751         PR c++/81130
7752         * gimplify.c (omp_add_variable): Don't force GOVD_SEEN for types
7753         with ctors/dtors if GOVD_SHARED is set.
7755 2017-06-21  Wilco Dijkstra  <wdijkstr@arm.com>
7757         * config/aarch64/aarch64.md (movti_aarch64):
7758         Emit mov rather than orr.
7759         (movtf_aarch64): Likewise.
7760         * config/aarch64/aarch64-simd.md (aarch64_simd_mov):
7761         Emit mov rather than orr.
7763 2017-06-21  Wilco Dijkstra  <wdijkstr@arm.com>
7765         * config/aarch64/aarch64-simd.md (aarch64_simd_dup):
7766         Swap alternatives, make integer dup more expensive.
7768 2017-06-21  Wilco Dijkstra  <wdijkstr@arm.com>
7770         * config/aarch64/aarch64.c (aarch64_legitimate_constant_p):
7771         Return true for non-tls symbols.
7773 2017-06-21  James Greenhalgh  <james.greenhalgh@arm.com>
7775         * config/aarch64/aarch64-cores.def (cortex-a55): New.
7776         (cortex-a75): Likewise.
7777         (cortex-a75.cortex-a55): Likewise.
7778         * config/aarch64/aarch64-tune.md: Regenerate.
7779         * doc/invoke.texi (-mtune): Document new values for -mtune.
7781 2017-06-21  Tom de Vries  <tom@codesourcery.com>
7783         * doc/sourcebuild.texi (Add Options, Features for dg-add-options): Add
7784         stack_size feature.
7785         (Effective-Target Keywords, Other attributes): Suggest using
7786         dg-add-options stack_size feature to get stack limit in stack_size
7787         effective target documentation.
7789 2017-06-21  Julian Brown  <julian@codesourcery.com>
7790             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
7792         * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi)
7793         (aarch64_crypto_pmullv2di): Change type attribute to crypto_pmull.
7794         * config/aarch64/thunderx2t99.md (thunderx2t99_pmull): New
7795         reservation.
7796         * config/arm/cortex-a53.md (cortex_a53_advsimd_type): Add crypto_pmull to
7797         attribute type list for neon_multiply.
7798         * config/arm/cortex-a57.md (cortex_a57_neon_type): Add crypto_pmull to
7799         attribute type list for neon_multiply.
7800         * config/arm/crypto.md (crypto_vmullp64): Change type to crypto_pmull.
7801         * config/arm/exynos-m1.md (exynos_m1_neon_type): Add crypto_pmull to
7802         attribute type list for neon_multiply.
7803         * config/arm/types.md (crypto_pmull): Add.
7804         * config/arm/xgene1.md (xgene1_neon_pmull): Add crypto_pmull to
7805         attribute type list.
7807 2017-06-20  Andreas Tobler  <andreast@gcc.gnu.org>
7809         * config.gcc (armv6*-*-freebsd*): Change the target_cpu_cname to
7810         arm1176jzf-s.
7812 2017-06-20  Jakub Jelinek  <jakub@redhat.com>
7814         * ira-costs.c (find_costs_and_classes): Initialize cost_classes later
7815         to make sure not to dereference a NULL cost_classes_ptr pointer.
7817 2017-06-20  Carl Love  <cel@us.ibm.com>
7819         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7820         ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
7821         ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
7822         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
7823         builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
7824         * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
7825         VMULOSW): New enum "unspec" values.
7826         (vec_widen_umult_even_v4si, vec_widen_smult_even_v4si,
7827         vec_widen_umult_odd_v4si, vec_widen_smult_odd_v4si,
7828         altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
7829         altivec_vmulosw): New patterns.
7830         * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
7831         VMULOSW): Add definitions.
7833 2017-06-20  Julia Koval  <julia.koval@intel.com>
7835         * config/i386/i386.c: Fix rounding expand for new pattern.
7836         * config/i386/subst.md: Fix pattern (parallel -> unspec).
7838 2017-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
7840         * config/aarch64/aarch64-option-extensions.def (rcpc): New.
7841         * config/aarch64/aarch64.h (AARCH64_FL_RCPC): New.
7843 2017-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
7845         * config/aarch64/aarch64-option-extensions.def (fp16): Fix expected
7846         feature string.
7848 2017-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
7850         * config/aarch64/aarch64-cores.def: Rearrange to sort by
7851         architecture, then by implementer ID.
7852         * config/aarch64/aarch64-tune.md: Regenerate.
7854 2017-06-20  Richard Biener  <rguenther@suse.de>
7856         PR middle-end/81097
7857         * fold-const.c (split_tree): Fold to type before negating.
7859 2017-06-20  David Malcolm  <dmalcolm@redhat.com>
7861         * diagnostic-show-locus.c
7862         (selftest::test_fixit_deletion_affecting_newline): New function.
7863         (selftest::diagnostic_show_locus_c_tests): Call it.
7865 2017-06-20  Andreas Schwab  <schwab@suse.de>
7867         PR target/80970
7868         * config/m68k/m68k.md (bsetdreg, bchgdreg, bclrdreg): Use "=d"
7869         instead of "+d".
7871 2017-06-20  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
7873         * config/arm/arm-c.c (arm_cpu_builtins): New block to define
7874         __ARM_FEATURE_COPROC according to support.
7876 2017-06-20  Jakub Jelinek  <jakub@redhat.com>
7878         * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
7879         Rewritten to avoid overflow for > 32-bit pointers.
7881         PR sanitizer/81125
7882         * ubsan.h (ubsan_encode_value): Workaround buggy clang++ parser
7883         by removing enum keyword.
7884         (ubsan_type_descriptor): Likewise.  Formatting fix.
7886         PR target/81121
7887         * config/i386/i386.md (TARGET_USE_VECTOR_CONVERTS float si->{sf,df}
7888         splitter): Require TARGET_SSE2 in the condition.
7890 2017-06-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
7892         PR target/79799
7893         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Add support
7894         for doing vector set of SFmode on ISA 3.0.
7895         * config/rs6000/vsx.md (vsx_set_v4sf_p9): Likewise.
7896         (vsx_set_v4sf_p9_zero): Special case setting 0.0f to a V4SF
7897         element.
7898         (vsx_insert_extract_v4sf_p9): Add an optimization for inserting a
7899         SFmode value into a V4SF variable that was extracted from another
7900         V4SF variable without converting the element to double precision
7901         and back to single precision vector format.
7902         (vsx_insert_extract_v4sf_p9_2): Likewise.
7904 2017-06-19  Jakub Jelinek  <jakub@redhat.com>
7906         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Multiply
7907         in UWHI to avoid undefined overflow.
7909         PR sanitizer/81125
7910         * ubsan.h (enum ubsan_encode_value_phase): New.
7911         (ubsan_encode_value): Change second argument to
7912         enum ubsan_encode_value_phase with default value of
7913         UBSAN_ENCODE_VALUE_GENERIC.
7914         * ubsan.c (ubsan_encode_value): Change second argument to
7915         enum ubsan_encode_value_phase PHASE from bool IN_EXPAND_P,
7916         adjust uses, for UBSAN_ENCODE_VALUE_GENERIC use just
7917         create_tmp_var_raw instead of create_tmp_var and use a
7918         TARGET_EXPR.
7919         (ubsan_expand_bounds_ifn, ubsan_build_overflow_builtin,
7920         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
7921         ubsan_encode_value callers.
7923         PR sanitizer/81111
7924         * ubsan.c (ubsan_encode_value): If current_function_decl is NULL,
7925         use create_tmp_var_raw instead of create_tmp_var, mark it addressable
7926         just by setting TREE_ADDRESSABLE on the result and use a TARGET_EXPR.
7928 2017-06-19  Richard Biener  <rguenther@suse.de>
7930         PR middle-end/81118
7931         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop): Clear niter
7932         estimates if we changed anything.
7934 2017-06-19  Richard Biener  <rguenther@suse.de>
7936         PR tree-optimization/80887
7937         * tree-ssa-sccvn.c (mprts_hook_cnt): New global.
7938         (vn_lookup_simplify_result): Allow only mprts_hook_cnt succesful
7939         simplified lookups, then reset mprts_hook.
7940         (vn_nary_build_or_lookup_1): Set mprts_hook_cnt to 9 before
7941         simplifying.
7942         (try_to_simplify): Likewise.
7944 2017-06-19  Martin Liska  <mliska@suse.cz>
7946         PR sanitizer/80879
7947         * gimplify.c (gimplify_switch_expr):
7948         Initialize live_switch_vars for SWITCH_BODY == STATEMENT_LIST.
7950 2017-06-19  Martin Liska  <mliska@suse.cz>
7952         * doc/install.texi: Document that PGO runs in 4 stages.
7954 2017-06-19  Martin Liska  <mliska@suse.cz>
7956         PR ipa/80732
7957         * attribs.c (make_dispatcher_decl): Do not append '.ifunc'
7958         to dispatcher function name.
7959         * multiple_target.c (replace_function_decl): New function.
7960         (create_dispatcher_calls): Redirect both edges and references.
7962 2017-06-19  Jan Hubicka <hubicka@ucw.cz>
7964         * profile-count.c (profile_count::dump): Dump quality.
7965         (profile_count::differs_from_p): Update for unsigned val.
7966         * profile-count.h (profile_count_quality): New enum.
7967         (profile_count): Turn m_val to 62bit unsigned, add quality tracking.
7969 2017-06-19  Richard Biener  <rguenther@suse.de>
7971         * tree-ssa-loop-niter.h (estimate_numbers_of_iterations): Take
7972         struct function as arg.
7973         (estimate_numbers_of_iterations): Export overload with loop arg.
7974         (free_numbers_of_iterations_estimates_loop): Use an overload of
7975         free_numbers_of_iterations_estimates instead.
7976         * tree-cfg.c (remove_bb): Adjust.
7977         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Likewise.
7978         * tree-parloops.c (gen_parallel_loop): Likewise.
7979         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
7980         Likewise.
7981         (tree_unroll_loops_completely): Likewise.
7982         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
7983         Use an overload instead and export.
7984         (estimated_loop_iterations): Adjust.
7985         (max_loop_iterations): Likewise.
7986         (likely_max_loop_iterations): Likewise.
7987         (estimate_numbers_of_iterations): Take struct function as arg
7988         and adjust.
7989         (loop_exits_before_overflow): Adjust.
7990         (free_numbers_of_iterations_estimates_loop): Use an overload.
7991         * tree-vect-loop.c (vect_analyze_loop_form): Adjust.
7992         * tree-vectorizer.c (vect_free_loop_info_assumptions): Likewise.
7994 2017-06-19  Richard Biener  <rguenther@suse.de>
7996         PR ipa/81112
7997         * ipa-prop.c (find_constructor_constant_at_offset): Handle
7998         RANGE_EXPR conservatively.
8000 2017-06-16  Carl Love  <cel@us.ibm.com>
8002         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8003         definitions for vec_float, vec_float2, vec_floato,
8004         vec_floate built-ins.
8005         * config/rs6000/vsx.md (define_c_enum "unspec"): Add RTL code
8006         for instructions vsx_xvcvsxws vsx_xvcvuxwsp, float2, floato and
8007         floate.
8008         * config/rs6000/rs6000-builtin.def (FLOAT2_V2DI, FLOATE_V2DF,
8009         FLOATE_2DI, FLOATO_V2DF, FLOATEE_V2DI, XVCVSXWSP_V4SF,
8010         UNS_FLOATO_V2DI, UNS_FLOATE_V2DI): Add definitions.
8011         * config/altivec.md (define_insn "p8_vmrgew_<mode>",
8012         define_mode_attr VF_sxddp): Add V4SF type to p8_vmrgew.
8013         * config/rs6000/altivec.h (vec_float, vec_float2, vec_floate,
8014         vec_floato): Add builtin defines.
8015         * doc/extend.texi (vec_float, vec_float2, vec_floate, vec_floato):
8016         Update the built-in documentation file for the new built-in
8017         functions.
8019 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8021         * config/arm/arm.opt (marm): Mark as the negative of of -mthumb.
8022         (mthumb): Mark as the negative of -marm.
8024 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8026         * doc/invoke.texi (ARM Options, -mcpu): Document supported
8027         extension options.
8028         (ARM Options, -mtune): Document that this accepts the same
8029         extension options as -mcpu.
8030         (ARM Options, -mfpu): Document addition of -mfpu=auto.
8032 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8034         * doc/invoke.texi (ARM Options, -march=): Document new syntax and
8035         permitted extensions.
8037 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8039         * config/arm/arm-cpus.in (armv7): Add extension +nofp.
8040         (armv7-r): Add aliases vfpv3xd and vfpv3-d16.
8041         (armv8-m.main): Add option +nodsp.
8042         * config/arm/arm-cpu-cdata.h: Regenerated.
8044 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8046         * config/arm/t-fuchsia: New file.
8047         * config.gcc (arm*-*-fuchsia*): Use it.
8049 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8051         * config/arm/t-symbian: Rewrite for new option infrastructure.
8053 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8055         * config/arm/t-phoenix (MULTILIB_REUSE): Clear variable.
8056         (MULTILIB_REQUIRED): Likewise.
8058 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8060         * config/arm/t-linux-eabi (MULTILIB_EXCEPTIONS): Set to empty.
8061         (MULTILIB_RESUE): Likewise.
8062         (MULTILIB_MATCHES): Likewise.
8063         (MULTLIB_REQUIRED): Likewise.
8065 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8067         * config/arm/t-rtems: Rewrite for new option framework.
8069 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8071         * config/arm/t-aprofile (v7_a_nosimd_variants, v7_a_simd_variants)
8072         (v7ve_nosimd_variatns, v7ve_vfpv3_simd_variants)
8073         (v7ve_vfpv4_simd_variants, v8_a_nosimd_variants, v8_a_simd_variants)
8074         (v8_1_a_simd_variants, v8_2_a_simd_variants): Move to ...
8075         * config/arm/t-multilib: ... here.
8076         (MULTILIB_OPTIONS): Add armv7 and armv7+fp architectures.
8077         (MULTILIB_MATCHES): Use armv7 libraries for armv7-r.  Also use for
8078         armv7-a and armv8*-a when A-profile libraries have not been built.
8079         * config/arm/t-rmprofile: Rewrite.
8081 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8083         * genmultilib (multilib_reuse): Allow an explicit period to be escaped
8084         with a backslash.  Remove the backslash after substituting unescaped
8085         periods.
8086         * doc/fragments.texi (MULTILIB_REUSE): Document it.
8088 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8090         * config.gcc: (arm*-*-*): When building a-profile libraries, force
8091         the driver to pass through the default setting of -mfloat-abi.
8092         * common/config/arm/arm-common.c (arm_target_thumb_only): Return -marm
8093         rather than NULL.
8094         * config/arm/t-multilib (MULTILIB_REUSE): Initialize to empty.
8095         (all_feat_combs): New rule.
8096         (MULTILIB_OPTIONS): Use explicit ARM and Thumb directories.  Rework
8097         default libraries.
8098         * config/arm/t-aprofile: Rewrite.
8100 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8102         * config/arm/arm.h (FPUTYPE_AUTO): Define.
8103         * config/arm/arm.c (arm_option_override): Use FPUTYPE_AUTO if the
8104         fpu is not specified by the user/command-line.
8105         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Delete.
8106         * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Delete.
8107         * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Delete.
8108         * config/arm/vxworks.h (FPUTYPE_DEFAULT): Delete.
8109         * common/config/arm/arm-common.c (arm_canon_arch_option): Use
8110         FPUTYPE_AUTO insted of FPUTYPE_DEFAULT.
8112 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8114         * config/arm/elf.h (MULTILIB_DEFAULTS): Delete.
8115         * config/arm/t-arm-elf: Rewritten.
8117 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8119         * config/arm/arm.h (TARGET_HARD_FLOAT): Also check that we
8120         have some floating-point instructions.
8121         (TARGET_SOFT_FLOAT): Define as inverse of TARGET_HARD_FLOAT.
8122         (TARGET_MAYBE_HARD_FLOAT): New macro.
8123         * config/arm/arm-builtins.c (arm_init_builtins): Use
8124         TARGET_MAYBE_HARD_FLOAT.
8125         * config/arm/arm.c (arm_option_override): Use TARGET_HARD_FLOAT_ABI.
8127 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8129         * common/config/arm/arm-common.c: Define INCLUDE_LIST.
8130         (configargs.h): Include it.
8131         (arm_print_hint_for_fpu_option): New function.
8132         (arm_parse_fpu_option): New function.
8133         (candidate_extension): New class.
8134         (arm_canon_for_multilib): New function.
8135         * config/arm/arm.h (CANON_ARCH_SPEC_FUNCTION): New macro.
8136         (EXTRA_SPEC_FUNCTIONS): Add CANON_ARCH_SPEC_FUNCTION.
8137         (ARCH_CANONICAL_SPECS): New macro.
8138         (DRIVER_SELF_SPECS): Add ARCH_CANONICAL_SPECS.
8140 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8142         * config.gcc (arm*-*-*): Ensure both target_cpu_cname and with_cpu
8143         are set after handling multilib fragments.  Set target_cpu_default2
8144         from with_cpu.
8146 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8148         * config.gcc (arm*-*-fucshia*): Set target_cpu_cname to the real
8149         cpu name.
8150         (arm*-*-*): Set target_cpu_default2 to a quoted string.
8151         * config/arm/parsecpu.awk (check_cpu): Validate any extension
8152         options.
8153         (check_arch): Likewise.
8154         * config/arm/arm.c (arm_configure_build_target): Handle
8155         TARGET_CPU_DEFAULT being a string constant.  Scan any feature
8156         options in the default.
8158 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8160         * config/arm/arm-protos.h (cpu_arch_extension): Add field to record
8161         when an option is an alias of another.
8162         * config/arm/parsecpu.awk (optalias): New parser token.
8163         (gen_comm_data): Mark non-alias options as such.  Emit entries
8164         for extension aliases.
8165         * config/arm/arm-cpus.in (armv5e): Make vfpv2 an alias.
8166         (armv5te, armv5tej, armv6, armv6j, armv6k, armv6z): Likewise.
8167         (armv6kz, armv6zk, armv6t2): Likewise.
8168         (armv7): Make vfpv3-d16 an alias.
8169         (armv7-a): Make vfpv3-d16, neon and neon-vfpv3 aliases.  Sort in
8170         canonical order.
8171         (armv7ve): Make vfpv4-d16, neon-vfpv3 and neon-vfpv4 aliases.
8172         Sort in canonical order.
8173         (armv8-a): Sort in canonical order.
8174         (armv8.1-a, armv8.2-a):  Likewise.
8175         (generic-armv7-a): Make neon and neon-vfpv3 aliases.  Sort in
8176         canonical order.
8177         (cortex-a9): Sort in canonical order.
8178         * config/arm/arm.c (selftests.h): Include it.
8179         (arm_test_cpu_arch_data): New function.
8180         (arm_run_self_tests): New function.
8181         (TARGET_RUN_TARGET_SELFTESTS): Redefine.
8182         (targetm): Move declaration to the end of the file.
8183         * arm-cpu-cdata.h: Regenerated.
8185 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8187         * config/arm/arm.h (TARGET_MODE_SPECS): Add additional parameter to
8188         call to target_mode_check describing the type of option passed.
8189         * common/config/arm/arm-common.c (arm_arch_core_flag): Delete.
8190         (arm_target_thumb_only): Use arm_parse_arch_option_name or
8191         arm_parse_cpu_option_name to match parameters against list of
8192         available targets.
8193         * config/arm/parsecpu.awk (gen_comm_data): Don't generate
8194         arm_arch_core_flags data structure.
8195         * config/arm/arm-cpu_cdata.h: Regenerated.
8197 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8199         * common/config/arm/arm-common.c (arm_initialize_isa): Moved here from
8200         config/arm/arm.c.
8201         (arm_print_hint_for_cpu_option): Likewise.
8202         (arm_print_hint_for_arch_option): Likewise.
8203         (arm_parse_cpu_option_name): Likewise.
8204         (arm_parse_arch_option_name): Likewise.
8205         * config/arm/arm.c (arm_identify_fpu_from_isa): Use the computed number
8206         of entries in the all_fpus list.
8207         * config/arm/arm-protos.h (all_architectures, all_cores): Declare.
8208         (arm_parse_cpu_option_name): Declare.
8209         (arm_parse_arch_option_name): Declare.
8210         (arm_parse_option_features): Declare.
8211         (arm_intialize_isa): Declare.
8212         * config/arm/parsecpu.awk (gen_data): Move CPU and architecture
8213         data tables to ...
8214         (gen_comm_data): ... here.  Make definitions non-static.
8215         * config/arm/arm-cpu-data.h: Regenerated.
8216         * config/arm/arm-cpu-cdata.h: Regenerated.
8218 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8220         * config/arm/arm-protos.h (arm_build_target): Remove arch_core.
8221         (cpu_arch_extension): New structure.
8222         (cpu_arch_option, arch_option, cpu_option): New structures.
8223         * config/arm/parsecpu.awk (gen_headers): Build an enumeration of
8224         architecture types.
8225         (gen_data): Generate new format data tables.
8226         * config/arm/arm.c (cpu_tune): New structure.
8227         (cpu_option, processors): Delete.
8228         (arm_print_hint_for_core_or_arch): Delete.  Replace with ...
8229         (arm_print_hint_for_cpu_option): ... this and ...
8230         (arm_print_hint_for_arch_option): ... this.
8231         (arm_parse_arch_cpu_name): Delete.  Replace with ...
8232         (arm_parse_cpu_option_name): ... this and ...
8233         (arm_parse_arch_option_name): ... this.
8234         (arm_unrecognized_feature): Change type of target parameter to
8235         cpu_arch_option.
8236         (arm_parse_arch_cpu_features): Delete.  Replace with ...
8237         (arm_parse_option_features): ... this.
8238         (arm_configure_build_target): Rework to use new configuration data
8239         tables.
8240         (arm_print_tune_info): Rework for new configuration data tables.
8241         * config/arm/arm-cpu-data.h: Regenerated.
8242         * config/arm/arm-cpu.h: Regenerated.
8244 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8246         * Makefile.in (OBJS): Move sbitmap.o from here ...
8247         (OBJS-libcommon): ... to here.
8249 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8251         * config/arm/arm-isa.h (ISA_ALL_FPU_INTERNAL): Renamed from ISA_ALL_FPU.
8252         (ISA_ALL_CRYPTO): New macro.
8253         (ISA_ALL_SIMD): New macro
8254         (ISA_ALL_FP): New macro.
8255         * config/arm/arm.c (fpu_bitlist): Update initializer.
8256         * config/arm/arm-cpus.in: Use new ISA_ALL macros to disable crypto,
8257         simd or fp.
8258         (arm9e): Add fpu.  Add option for nofp
8259         (arm946e-s, arm966e-s, arm968e-s, arm10e, arm1020e, arm1022e): Likewise.
8260         (arm926ej-s, arm1026ej-s): Likewise.
8261         (generic-armv7-a): Add fpu.  Add options for simd, vfpv3, vfpv3-d16,
8262         vfpv3-fp16, vfpv3-d16-fp16, vfpv4, vfpv4-d16, neon, neon-vfp3,
8263         neon-fp16, neon-vfpv4, nofp and nosimd.
8264         (cortex-a5, cortex-a7): Add fpu.  Add options for nosimd and nofp.
8265         (cortex-a8): Add fpu.  Add option for nofp.
8266         (cortex-a9): Add fpu.  Add options for nosimd and nofp.
8267         (cortex-a12, cortex-a15, cortex-a17): Add fpu.  Add option for nofp.
8268         (cortex-r4f): Add fpu.
8269         (cortex-r5): Add fpu.  Add options for nofp.dp and nofp.
8270         (cortex-r7): Use idiv option from architecture.  Add fpu.  Add option
8271         for nofp.
8272         (cortex-r8): Likewise.
8273         (cortex-m4): Add fpu.  Add option for nofp.
8274         (cortex-a15.cortex-a7): Add fpu.  Add option for nofp.
8275         (cortex-a17.cortex-a7): Likewise.
8276         (cortex-a32): Add fpu.  Add options for crypto and nofp.
8277         (cortex-a35, cortex-a53): Likewise.
8278         (cortex-a57): Add fpu.  Add option for crypto.
8279         (cortex-a72, cortex-a73): Likewise.
8280         (exynos-m1): Likewise.
8281         (cortex-a57.cortex-a53, cortex-a72.cortex-a53): Likewise.
8282         (cortex-a73.cortex-a35, cortex-a73.cortex-a53): Likewise.
8283         (cortex-m33): Add fpu.  Add option for nofp.
8284         * config/arm/arm-cpu-cdata.h: Regenerated
8285         * config/arm/arm-cpu-data.h: Regenerated.
8287 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8289         * arm-cpus.in (armv5e): Add options fp, vfpv2 and nofp.
8290         (armv5te, armv5tej): Likewise.
8291         (armv6, armv6j, armv6k, armv6z, armv6kz, armv6zk, armv6t2): Likewise.
8292         (armv7): Add options fp and vfpv3-d16.
8293         (armv7-a): Add options fp, simd, vfpv3, vfpv3-d16, vfpv3-d16-fp16,
8294         vfpv3-fp16, vfpv4, vfpv4-d16, neon, neon-vfpv3, neon-fp16, neon-vfpv4,
8295         nofp and nosimd.
8296         (armv7ve): Likewise.
8297         (armv7-r): Add options fp, fp.sp, idiv, nofp and noidiv.
8298         (armv7e-m): Add options fp, fpv5, fp.dp and nofp.
8299         (armv8-a): Add nocrypto option.
8300         (armv8.1-a, armv8.2-a): Likewise.
8301         (armv8-m.main): add options fp, fp.dp and nofp.
8303 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8305         * config/arm/arm-cpus.in (armv8-a): Add options crc, simd crypto and
8306         nofp.
8307         (armv8-a+crc): Delete.
8308         (armv8.1-a): Add options simd, crypto and nofp.
8309         (armv8.2-a): Add options fp16, simd, crypto and nofp.
8310         (armv8.2-a+fp16): Delete.
8311         (armv8-m.main): Add option dsp.
8312         (armv8-m.main+dsp): Delete.
8313         (cortex-a8): Add fpu.  Add nofp option.
8314         (cortex-a9): Add fpu.  Add nofp and nosimd options.
8315         * config/arm/parsecpu.awk (gen_data): Generate option tables and
8316         link to main cpu and architecture data structures.
8317         (gen_comm_data): Only put isa attributes from the main architecture
8318         in common tables.
8319         (option): New statement for architecture and CPU entries.
8320         * arm.c (struct cpu_option): New structure.
8321         (struct processors): Add entry for options.
8322         (arm_unrecognized_feature): New function.
8323         (arm_parse_arch_cpu_name): Ignore any characters after the first
8324         '+' character.
8325         (arm_parse_arch_cpu_feature): New function.
8326         (arm_configure_build_target): Separate out any CPU and architecture
8327         features and parse separately.  Don't error out if -mfpu=auto is
8328         used with only an architecture string.
8329         (arm_print_asm_arch_directives): New function.
8330         (arm_file_start): Call it.
8331         * config/arm/arm-cpu-cdata.h: Regenerated.
8332         * config/arm/arm-cpu-data.h: Likewise.
8333         * config/arm/arm-tables.opt: Likewise.
8335 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8337         * config/arm/elf.h (ASM_SPEC): Only pass -mfpu through to the
8338         assembler when it is not -mfpu=auto.
8340 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8342         * config/arm/arm.h (BIG_LITTLE_SPEC): Delete macro.
8343         (ASM_REWRITE_SPEC_FUNCTIONS): New macro.
8344         (BIG_LITTLE_CPU_SPEC_FUNCTIONS): Delete macro.
8345         (ASM_CPU_SPEC): Rewrite.
8346         (MCPU_MTUNE_NATIVE_FUNCTIONS): New macro.
8347         (EXTRA_SPEC_FUNCTIONS): Move outside of ifdef.  Use
8348         MCPU_MTUNE_NATIVE_FUNCTIONS and ASM_REWRITE_SPEC_FUNCTIONS.  Remove
8349         reference to BIG_LITTLE_CPU_SPEC_FUNCTIONS.
8350         * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): Ensure
8351         copied string is NUL-terminated.  Also strip any characters prefixed
8352         by '+'.
8353         (arm_rewrite_selected_arch): New function.
8354         (arm_rewrite_march): New function.
8356 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8358         * config/arm/arm.opt (x_arm_arch_string): New TargetSave option.
8359         (x_arm_cpu_string, x_arm_tune_string): Likewise.
8360         (march, mcpu, mtune): Convert to string-based options.
8361         * config/arm/arm.c (arm_print_hint_for_core_or_arch): New function.
8362         (arm_parse_arch_cpu_name): New function.
8363         (arm_configure_build_target): Use arm_parse_arch_cpu_name to
8364         identify selected architecture or CPU.
8365         (arm_option_save): New function.
8366         (TARGET_OPTION_SAVE): Redefine.
8367         (arm_option_restore): Restore string options.
8368         (arm_option_print): Print string options.
8370 2017-06-16  Martin Sebor  <msebor@redhat.com>
8372         PR tree-optimization/80933
8373         PR tree-optimization/80934
8374         * builtins.c (fold_builtin_3): Do not handle bcmp here.
8375         * gimple-fold.c (gimple_fold_builtin_bcmp): New function.
8376         (gimple_fold_builtin_bcopy, gimple_fold_builtin_bzero): Likewise.
8377         (gimple_fold_builtin): Call them.
8379 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
8381         * gimple-ssa-isolate-paths.c (isolate_path): Set edge leading to path
8382         as unlikely; update profile.
8384 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
8386         * predict.c (force_edge_cold): Handle declaring edges impossible
8387         more aggresively.
8389 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
8391         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update
8392         profile.
8393         (try_unroll_loop_completely): Fix reporting.
8395 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
8397         * tree-ssa-tail-merge.c (replace_block_by): Fix profile updating.
8399 2017-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
8401         PR target/71778
8402         * config/arm/arm-builtins.c (arm_expand_builtin_args): Return TARGET
8403         if given a non-constant argument for an intrinsic which requires a
8404         constant.
8406 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
8408         * profile.c (compare_freqs): New function.
8409         (branch_prob): Sort edge list.
8410         (find_spanning_tree): Assume that the list is priority sorted.
8412 2017-06-16  Richard Biener  <rguenther@suse.de>
8414         PR tree-optimization/81090
8415         * passes.def (pass_record_bounds): Remove.
8416         * tree-pass.h (make_pass_record_bounds): Likewise.
8417         * tree-ssa-loop.c (pass_data_record_bounds, pass_record_bounds,
8418         make_pass_record_bounds): Likewise.
8419         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Do
8420         not free niter estimates at the beginning but at the end.
8421         * tree-scalar-evolution.c (scev_finalize): Free niter estimates.
8423 2017-06-16  Richard Biener  <rguenther@suse.de>
8425         * tree-switch-conversion.c (emit_case_bit_tests): Adjust
8426         initializer to workaround ICE in host GCC 4.8.
8428 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
8430         * ipa-inline-transform.c (update_noncloned_frequencies): Update also
8431         counts.
8432         (clone_inlined_nodes): Update.
8434 2017-06-16  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
8436         * config/aarch64/aarch64.c (qdf24xx_prefetch_tune): Update
8437         prefetch settings, and enable prefetching by default at -O3.
8439 2017-06-16  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
8441         * config/aarch64/aarch64.c (aarch64_override_options_internal):
8442         Set flag_prefetch_loop_arrays according to tuning data.
8444 2017-06-16  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
8446         * config/aarch64/aarch64-protos.h (struct cpu_prefetch_tune):
8447         New tune structure.
8448         (struct tune_params): Use cpu_prefetch_tune instead of cache_line_size.
8449         [Unrelated to main purpose of the patch] Place the pointer field last
8450         to enable type checking errors when tune structure are wrongly merged.
8451         * config/aarch64/aarch64.c (generic_prefetch_tune,)
8452         (exynosm1_prefetch_tune, qdf24xx_prefetch_tune,)
8453         (thunderx2t99_prefetch_tune): New tune constants.
8454         (tune_params *_tunings): Update all tunings (no functional change).
8455         (aarch64_override_options_internal): Set PARAM_SIMULTANEOUS_PREFETCHES,
8456         PARAM_L1_CACHE_SIZE, PARAM_L1_CACHE_LINE_SIZE, and PARAM_L2_CACHE_SIZE
8457         from tunings structures.
8459 2017-06-16  Jakub Jelinek  <jakub@redhat.com>
8461         PR sanitizer/81094
8462         * ubsan.c (instrument_null): Add T argument, use it instead
8463         of computing it based on IS_LHS.
8464         (instrument_object_size): Likewise.
8465         (pass_ubsan::execute): Adjust instrument_null and
8466         instrument_object_size callers to pass gimple_get_lhs or
8467         gimple_assign_rhs1 result to it.  Use instrument_null instead of
8468         calling get_base_address and instrument_mem_ref.  Handle
8469         aggregate call arguments for object-size sanitization.
8471 2017-06-16  Yury Gribov  <tetra2005@gmail.com>
8473         PR tree-optimization/81089
8474         * tree-vrp.c (is_masked_range_test): Validate operands of
8475         subexpression.
8477 2017-06-15  Martin Sebor  <msebor@redhat.com>
8479         PR c++/80560
8480         * dumpfile.c (dump_register): Avoid calling memset to initialize
8481         a class with a default ctor.
8482         * gcc.c (struct compiler): Remove const qualification.
8483         * genattrtab.c (gen_insn_reserv): Replace memset with initialization.
8484         * hash-table.h: Ditto.
8485         * ipa-cp.c (allocate_and_init_ipcp_value): Replace memset with
8486           assignment.
8487         * ipa-prop.c (ipa_free_edge_args_substructures): Ditto.
8488         * omp-low.c (lower_omp_ordered_clauses): Replace memset with
8489         default ctor.
8490         * params.h (struct param_info): Make struct members non-const.
8491         * tree-switch-conversion.c (emit_case_bit_tests): Replace memset
8492         with default initialization.
8493         * vec.h (vec_copy_construct, vec_default_construct): New helper
8494         functions.
8495         (vec<T>::copy, vec<T>::splice, vec<T>::reserve): Replace memcpy
8496         with vec_copy_construct.
8497         (vect<T>::quick_grow_cleared): Replace memset with default ctor.
8498         (vect<T>::vec_safe_grow_cleared, vec_safe_grow_cleared): Same.
8499         * doc/invoke.texi (-Wclass-memaccess): Document.
8501 2017-06-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8503         * emit-rtl.h (is_leaf): Update comment about local
8504         register allocator.
8506 2017-06-15  Jozef Lawrynowicz   <jozef.l@somniumtech.com>
8508         PR target/78818
8509         * config/msp430/msp430.c (msp430_data_attr): Check that it's possible
8510         for a variable to have a section before checking if the section has a
8511         name.
8512         Set section to.persistent if persistent attribute is set.
8513         Warn if .persistent attribute is used on an automatic variable.
8515 2017-06-15  Eric Botcazou  <ebotcazou@adacore.com>
8517         PR rtl-optimization/80474
8518         * reorg.c (update_block): Do not ignore instructions in a delay slot.
8520 2017-06-15  Segher Boessenkool  <segher@kernel.crashing.org>
8522         * config/rs6000/rs6000.md (add<mode>3): Use reg_or_subregno instead
8523         of REGNO.
8525 2017-06-14  Maciej W. Rozycki  <macro@imgtec.com>
8527         * config/mips/mips.md (MIPS16_T_REGNUM): Remove constant.
8528         (casesi): Emit bounds checking as RTL.
8529         (casesi_internal_mips16_<mode>): Remove bounds checking.
8531 2017-06-14  Max Filippov  <jcmvbkbc@gmail.com>
8533         * config/xtensa/xtensa.c (xtensa_option_override): Append
8534         MASK_CONST16 to target_flags in the absence of TARGET_L32R.
8535         (hwloop_optimize, hwloop_fail, hwloop_pattern_reg,
8536          xtensa_doloop_hooks): Define unconditionally.
8537         (xtensa_reorg_loops): Only call reorg_loops in the presence of
8538         TARGET_LOOPS.
8539         * config/xtensa/xtensa.h (TARGET_L32R): New definition.
8540         (TARGET_DEFAULT): Remove XCHAL_HAVE_L32R condition and account
8541         for it in xtensa_option_override.
8542         (HARD_FRAME_POINTER_IS_FRAME_POINTER,
8543          HARD_FRAME_POINTER_IS_ARG_POINTER): New definitions.
8545 2017-06-14  Boris Kolpackov  <boris@codesynthesis.com>
8547         * doc/cppopts.texi: Document '-' special value to -MF.
8549 2017-06-14  Wilco Dijkstra  <wdijkstr@arm.com>
8551         * config/arm/cortex-a53.md (cortex_a53_fpalu) Adjust latency.
8552         (cortex_a53_fconst): Likewise.
8553         (cortex_a53_fpmul): Likewise.
8554         (cortex_a53_f_load_64): Likewise.
8555         (cortex_a53_f_load_many): Likewise.
8556         (cortex_a53_advsimd_alu): Likewise.
8557         (cortex_a53_advsimd_alu_q): Likewise.
8558         (cortex_a53_advsimd_mul): Likewise.
8559         (cortex_a53_advsimd_mul_q): Likewise.
8560         (fpmac bypass): Add new bypass for fpmac-fpmac case.
8561         Add missing fmul, r2f_cvt and fconst cases.
8563 2017-06-14  Richard Biener  <rguenther@suse.de>
8565         PR middle-end/81088
8566         * fold-const.c (split_tree): Drop TREE_OVERFLOW flag from
8567         literal constants.
8568         (fold_binary_loc): When associating do not treat pre-existing
8569         TREE_OVERFLOW on literal constants as a reason to allow
8570         TREE_OVERFLOW on associated literal constants.
8572 2017-06-14  Eric Botcazou  <ebotcazou@adacore.com>
8574         * config/sparc/sparc.h (MASK_ISA): Add MASK_LEON and MASK_LEON3.
8575         (MASK_FEATURES): New macro.
8576         * config/sparc/sparc.c (sparc_option_override): Remove the special
8577         handling of -mfpu and generalize it to all MASK_FEATURES switches.
8579 2017-06-14  Eric Botcazou  <ebotcazou@adacore.com>
8581         * simplify-rtx.c (simplify_binary_operation_1) <UDIV>: Do not simplify
8582         a division of 0 if non-call exceptions are enabled.
8584 2017-06-14  Andrew Pinski  <apinski@cavium.com>
8585             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
8587         PR target/71663
8588         * config/aarch64/aarch64.c (aarch64_expand_vector_init):
8589         Improve vector initialization code gen for only variable case.
8591 2017-06-14  Eric Botcazou  <ebotcazou@adacore.com>
8593         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
8595 2017-06-14  Richard Biener  <rguenther@suse.de>
8597         PR tree-optimization/81083
8598         * tree-ssa-sccvn.c (vn_reference_lookup_3): Do not use abnormals
8599         as values.
8601 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
8603         * config/rs6000/rs6000.c: Update all comments that mentioned SPE.
8604         (rs6000_expand_builtin): Remove RS6000_BTC_EVSEL.
8605         * config/rs6000/rs6000.h (RS6000_BTC_EVSEL): Delete.
8606         * config/rs6000/vxworks.h (VXCPU_FOR_8548): Delete.  Adjust former use.
8607         * config/rs6000/vxworksae.h (VXCPU_FOR_8548): Delete.
8608         * config/rs6000/vxworksmils.h (VXCPU_FOR_8548): Delete.
8610 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
8612         * config/rs6000/rs6000-opts.h (enum rs6000_vector): Delete VECTOR_SPE.
8613         * config/rs6000/rs6000.c (rs6000_debug_vector_unit): Delete VECTOR_SPE.
8615 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
8617         * config/rs6000/rs6000.h (FIXED_SCRATCH): Delete.
8619 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
8621         * config/rs6000/t-rtems: Don't handle SPE.
8623 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
8625         * config/rs6000/t-linux: Don't handle SPE.
8627 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
8629         * config/rs6000/eabispe.h: Delete file.
8631 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
8633         * config/rs6000/t-spe: Delete file.
8635 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
8637         * config/rs6000/rs6000.c (SPE_CONST_OFFSET_OK): Delete.
8638         (rs6000_legitimate_offset_address_p): Return false for anything in
8639         V2SImode or V2SFmode.
8641 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
8643         * config/rs6000/rs6000-modes.def: Remove all 8-byte vector modes
8644         except V2SF and V2SI.  Rearrange the vector modes, and add comments.
8645         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Remove V8QImode
8646         and V4HImode.
8647         (reg_offset_addressing_ok_p): Remove V4HImode and V1DImode.
8648         (rs6000_legitimate_offset_address_p): Ditto.
8649         (rs6000_emit_move): Ditto.
8650         (rs6000_init_builtins): Remove V4HI_type_node.
8652 2017-06-13  Martin Liska  <mliska@suse.cz>
8654         PR sanitize/78204
8655         * asan.c (asan_sanitize_stack_p): Use sanitize_flags_p.
8656         (gate_asan): Likewise.
8657         * asan.h (asan_no_sanitize_address_p): Remove the function.
8658         (sanitize_flags_p): New function.
8659         * builtins.def: Fix coding style.
8660         * common.opt: Use renamed enum value.
8661         * convert.c (convert_to_integer_1): Use sanitize_flags_p.
8662         * doc/extend.texi: Document no_sanitize attribute.
8663         * flag-types.h (enum sanitize_code): Rename SANITIZE_NONDEFAULT
8664         to SANITIZE_UNDEFINED_NONDEFAULT.
8665         * gcc.c (sanitize_spec_function): Use the renamed enum value.
8666         * gimple-fold.c (optimize_atomic_compare_exchange_p):
8667         Use sanitize_flags_p.
8668         * gimplify.c (gimplify_function_tree): Likewise.
8669         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Likewise.
8670         * opts.c (parse_no_sanitize_attribute): New function.
8671         (common_handle_option): Use renamed enum value.
8672         * opts.h (parse_no_sanitize_attribute): Declare.
8673         * tree.c (sanitize_flags_p): New function.
8674         * tree.h: Declared here.
8675         * tsan.c: Use sanitize_flags_p.
8676         * ubsan.c (ubsan_expand_null_ifn): Likewise.
8677         (instrument_mem_ref): Likewise.
8678         (instrument_bool_enum_load): Likewise.
8679         (do_ubsan_in_current_function): Remove the function.
8680         (pass_ubsan::execute): Use sanitize_flags_p.
8681         * ubsan.h: Remove do_ubsan_in_current_function
8682         * tree-cfg.c (print_no_sanitize_attr_value): New function.
8683         (dump_function_to_file): Use it here.
8685 2017-06-13  Martin Jambor  <mjambor@suse.cz>
8687         PR tree-optimization/80803
8688         PR tree-optimization/81063
8689         * tree-sra.c (subtree_mark_written_and_enqueue): Move up in the file.
8690         (propagate_subaccesses_across_link): Enqueue subtree whenever
8691         necessary instead of relying on the caller.
8693 2017-06-13  Martin Jambor  <mjambor@suse.cz>
8695         * tree-sra.c (add_access_to_work_queue): Only enqueue accesses
8696         that have a first_link.
8697         (sort_and_splice_var_accesses): Do not check first_link before
8698         enquing.
8699         (subtree_mark_written_and_enqueue): Likewise.
8700         (propagate_all_subaccesses): Likewise and do not stop at first
8701         parent with a first_link.
8703 2017-06-13  Martin Jambor  <mjambor@suse.cz>
8705         * tree-sra.c (dump_access_tree_1): Fix accidental dumping to stderr
8706         instead of f.
8708 2017-06-13  Yury Gribov  <tetra2005@gmail.com>
8710         * match.pd: New pattern.
8712 2017-06-13  Yury Gribov  <tetra2005@gmail.com>
8714         * tree-vrp.c (is_masked_range_test): New function.
8715         (register_edge_assert_for): Determine ranges for
8716         some bit tests.
8718 2017-06-13  Yury Gribov  <tetra2005@gmail.com>
8720         PR tree-optimization/67328
8721         * fold-const.c (maskable_range_p): New function.
8722         (build_range_check): Generate bittests if possible.
8724 2017-06-13  Martin Liska  <mliska@suse.cz>
8726         * gimple-pretty-print.c (dump_probability): Add new argument.
8727         (dump_edge_probability): Dump both probability and count.
8728         (dump_gimple_label): Likewise.
8729         (dump_gimple_bb_header): Likewise.
8731 2017-06-13  Georg-Johann Lay  <avr@gjlay.de>
8733         PR target/81072
8734         * config/avr/avr-devices.c: Fix indentation.
8735         * config/avr/gen-avr-mmcu-specs.c: Dito.
8737 2017-06-13  Richard Biener  <rguenther@suse.de>
8739         * tree-vect-loop.c (vect_model_reduction_cost): Do not fail,
8740         instead get vector type from stmt_info.
8741         (vectorizable_reduction): Adjust.  Remove dead code.
8743 2017-06-13  Richard Biener  <rguenther@suse.de>
8745         PR middle-end/81065
8746         * fold-const.c (extract_muldiv_1): Remove bogus distribution
8747         case of C * (x * C2 + C3).
8748         (fold_addr_of_array_ref_difference): Properly fold index difference.
8750 2017-06-12  David S. Miller  <davem@davemloft.net>
8752         PR target/80968
8753         * config/sparc/sparc.md (return expander): Emit frame blockage if
8754         function uses alloca.
8756 2017-06-12  Richard Sandiford  <richard.sandiford@linaro.org>
8758         * combine.c (make_field_assignment): Check len rather than the mode
8759         precision when calling force_to_mode.
8761 2017-06-12  Georg-Johann Lay  <avr@gjlay.de>
8763         Support multilibs and devices that see flash in RAM address range.
8765         PR target/81072
8766         * config/avr/avr-arch.h (avr_arch_id) <ARCH_AVRXMEGA3>: New enum.
8767         (avr_mcu_t) <flash_pm_offset>: New field.
8768         (avr_device_specific_features) <AVR_ISA_RCALL>: New enum.
8769         * config/avr/avr.h (AVR_SHORT_CALLS): New define.
8770         (AVR_HAVE_JMP_CALL): Don't set if AVR_SHORT_CALLS.
8771         (AVR_TINY_PM_OFFSET): Remove macro.
8772         * config/avr/avr.opt (-mshort-calls): New option.
8773         * config/avr/gen-avr-mmcu-specs.c (print_mcu)
8774         [*self_spec]: Add / remove -mshort-calls depending on AVR_ISA_RCALL.
8775         * config/avr/avr-c.c (avr_cpu_cpp_builtins)
8776         <__AVR_SHORT_CALLS__>: Built-in define if AVR_SHORT_CALLS.
8777         <__AVR_HAVE_JMP_CALL__>: Use AVR_HAVE_JMP_CALL as condition
8778         instead of avr_arch->have_jmp_call.
8779         <__AVR_PM_BASE_ADDRESS__>: Built-in define if avr_arch->flash_pm_offset.
8780         [AVR_TINY] <__AVR_TINY_PM_BASE_ADDRESS__>: Use
8781         avr_arch->flash_pm_offset to define.
8782         * config/avr/avr-devices.c (avr_arch_types): Add initializers for
8783         new field flash_pm_offset.  Add entry for avrxmega3.
8784         (avr_texinfo): Add entry for avrxmega3.
8785         * config/avr/avr-mcus.def: Add entries for: avrxmega3,
8786         attiny212, attiny214,
8787         attiny412, attiny414, attiny416, attiny417,
8788         attiny814, attiny816, attiny817,
8789         attiny1614, attiny1616, attiny1617,
8790         attiny3214, attiny3216, attiny3217.
8791         * config/avr/avr.c (avr_assemble_integer)[AVR_TINY]: Use
8792         avr_arch->flash_pm_offset instead of AVR_TINY_PM_OFFSET.
8793         (avr_print_operand_address) [AVR_TINY]: Same.
8794         (avr_asm_init_sections) <readonly_data_section>: Only patch
8795         callback if avr_arch->flash_pm_offset = 0.
8796         (avr_asm_named_section) <avr_need_copy_data_p>: Skip setting it
8797         for rodata if avr_arch->flash_pm_offset != 0.
8798         (avr_encode_section_info) [AVR_TINY]: Adjust comment.
8799         * config/avr/genmultilib.awk (dir_rcall, opt_rcall): New vars.
8800         (opts) [AVR_ISA_RCALL]: Append opt_rcall.
8801         (m_options): Append opt_rcall.
8802         (m_dirnames): Append dir_rcall.
8803         * config/avr/t-multilib: Regenerate.
8805         * configure.ac [target=avr]: Check whether avrxmega3 default
8806         linker description file works as needed.
8807         * configure: Regenerate.
8808         * doc/avr-mmcu.texi: Regenerate.
8809         * doc/invoke.texi (AVR Options) <-mshort-calls>: Document it.
8810         <__AVR_ARCH__>: Document avrxmega3 and 103.
8811         <__AVR_HAVE_JMP_CALL__>: Adjust documentation.
8812         <__AVR_SHORT_CALLS__>: Document it.
8813         <__AVR_PM_BASE_ADDRESS__>: Document it.
8814         * doc/extend.texi (AVR Options) <-mshort-calls>: Document it.
8815         (AVR Variable Attributes) <progmem>: Document this is
8816         not needed for avrxmega3.
8817         (AVR Named Address Spaces) <__flash>: Dito.
8819 2017-06-12  Jan Hubicka  <hubicka@ucw.cz>
8821         * cgraph.c (cgraph_node::dump): Complain about profile insanities.
8823 2017-06-12  Doug Rupp  <rupp@adacore.com>
8825         * config.gcc (*-*-vxworks*): Set use_gcc_stdint to "provide".
8826         Append vxworks-stdint.h to the tm_file list.
8827         * config/vxworks-stdint.h: New file.
8829 2017-06-12  Martin Liska  <mliska@suse.cz>
8831         PR tree-optimization/81041
8832         * tree-profile.c (gimple_gen_ic_func_profiler):
8833         Create an extra BB in profile-generate
8834         (gimple_gen_time_profiler): Likewise.
8836 2017-06-12  Jakub Jelinek  <jakub@redhat.com>
8838         PR tree-optimization/81003
8839         * tree-ssa-reassoc.c (force_into_ssa_name): New function.
8840         (update_range_test): Use it instead of force_gimple_operand_gsi.
8842 2017-06-12  Richard Biener  <rguenther@suse.de>
8844         PR tree-optimization/81053
8845         * tree-vect-loop.c (vect_is_simple_reduction): Handle PHI
8846         with backedge value not defined in loop.  Simplify def stmt
8847         compute.
8849 2017-06-11  Tom de Vries  <tom@codesourcery.com>
8851         PR target/79939
8852         * config/nvptx/nvptx.c (nvptx_cannot_force_const_mem): New function.
8853         Return true.
8854         (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
8855         nvptx_cannot_force_const_mem.
8857 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
8859         * opts.c (finish_options): Move test for flag_split_stack after
8860         it has been initialized.
8862 2017-06-11  Jason Merrill  <jason@redhat.com>
8864         * tree.h (id_equal): New.
8865         * dwarf2out.c, hsa-gen.c, ipa-devirt.c, omp-expand.c,
8866         omp-simd-clone.c, read-rtl-function.c, tree-chkp.c, tree.c: Use it
8867         instead of strcmp of IDENTIFIER_POINTER.
8869 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
8871         * ipa-inline-transform.c: Include function.h, cfg.h and basic-block.h
8872         (mark_all_inlined_calls_cdtor): Fix formating.
8873         (inline_transform): Rescale profile before inlining.
8875 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
8877         * cgraph.h (cgraph_edge::clone): Update prototype.
8878         * cgraphclones.c (cgraph_edge::clone): Update profile scaling.
8879         (cgraph_node::create_clone): Update.
8880         (cgraph_node::create_version_clone): Update.
8881         * tree-inline.c (copy_bb): Update.
8882         (expand_call_inline): Update.
8884 2017-06-10  Segher Boessenkool  <segher@kernel.crashing.org>
8886         * config/rs6000/rs6000.c (emit_vrsave_prologue): New function,
8887         factored out from ...
8888         (rs6000_emit_prologue): ... here.
8890 2017-06-10  Segher Boessenkool  <segher@kernel.crashing.org>
8892         * config/rs6000/rs6000.c (emit_split_stack_prologue): New function,
8893         factored out from ...
8894         (rs6000_emit_prologue): ... here.
8896 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
8898         * predict.c (drop_profile): Also drop individual bb/edge and cgraph
8899         edge counts.
8900         (handle_missing_profiles): Fix computation of tp_first_run.
8901         (counts_to_freqs): Do not touch freqs when count is 0.
8903 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
8905         * cgraphbuild.c (cgraph_edge::rebuild_references): Do not touch
8906         profile.
8908 2017-06-10  Tom de Vries  <tom@codesourcery.com>
8910         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
8911         attributes): Document signal effective target.
8913 2017-06-10  Tom de Vries  <tom@codesourcery.com>
8915         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
8916         Document effective target stack_size.
8918 2017-06-09  David Malcolm  <dmalcolm@redhat.com>
8920         * diagnostic.c (diagnostic_report_diagnostic): Only add fixits
8921         to the edit_context if they can be auto-applied.
8923 2017-06-9  Ian Lance Taylor  <iant@golang.org>
8925         * opts.c (finish_options): If -fsplit-stack, disable implicit
8926         -forder-blocks-and-partition.
8927         * doc/invoke.texi (Optimize Options): Document that when using
8928         -fsplit-stack -forder-blocks-and-partition is not implicitly
8929         enabled.
8931 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
8933         * builtin-attrs.def (ATTR_NORETURN_NOTHROW_LEAF_COLD_LIST,
8934         ATTR_CONST_NORETURN_NOTHROW_LEAF_COLD_LIST,
8935         ATTR_TMPURE_NORETURN_NOTHROW_LEAF_COLD_LIST): New.
8936         * builtins.def (abort, trap, unreachable): Declare cold.
8937         * calls.c (flags_from_decl_or_type): Lookup ECF_COLD.
8938         * tree-core.h (ECF_COLD): New.
8939         * tree.c (set_call_expr_flags): Handle ECF_COLD.
8940         (build_common_builtin_nodes): Mark unreachable and abort as cold.
8942 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
8944         * predict.c (unlikely_executed_stmt_p): Cleanup.
8946 2017-06-09  Richard Biener  <rguenther@suse.de>
8948         * tree-ssa-loop-im.c (execute_sm): Do not force multi-threaded
8949         model if the ref is always written to.
8951 2017-06-09  Tamar Christina  <tamar.christina@arm.com>
8953         * config/aarch64/aarch64.md (lrint<GPF:mode><GPI:mode>2): New.
8955 2017-06-09  Tamar Christina  <tamar.christina@arm.com>
8957         * config/arm/arm.c (arm_rtx_costs_internal): Make sdiv more expensive
8958         than udiv.
8960 2017-06-09  Tom de Vries  <tom@codesourcery.com>
8962         PR target/80855
8963         * config/nvptx/nvptx.md (define_expand "mov<QHSDISDFM>"): Error out with
8964         "target cannot support label values" when encountering LABEL_REF.
8966 2017-06-09  Martin Liska  <mliska@suse.cz>
8968         * tree-profile.c (gimple_gen_ic_profiler): Update comment.
8969         (gimple_gen_ic_func_profiler): Emit direct comparison
8970         of __gcov_indirect_call_callee with NULL.
8971         (gimple_gen_time_profiler): Change probability from
8972         PROB_VERY_UNLIKELY to PROB_UNLIKELY.
8974 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
8976         * profile.c (edge_gcov_counts): Turn to pointer.
8977         (compute_branch_probabilities, compute_branch_probabilities): Update.
8978         (branch_prob): Do not clear edge_gcov_count.
8979         * profile.h (edge_gcov_counts): Turn to pointer.
8980         (edge_gcov_count): Update.
8982 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
8984         * gimple.h (gimple_check_failed): Mark cold.
8986 2017-06-09  Richard Biener  <rguenther@suse.de>
8988         PR tree-optimization/66623
8989         * tree-vect-loop.c (vect_is_simple_reduction): Cleanup,
8990         refactor check_reduction into two parts, properly computing
8991         whether we have to check reduction validity for outer loop
8992         vectorization.
8994 2017-06-09  Richard Biener  <rguenther@suse.de>
8996         PR tree-optimization/79483
8997         * graphite-scop-detection.c (order): New global.
8998         (get_order): Compute bb to order mapping that satisfies code
8999         generation constraints.
9000         (cmp_pbbs): New helper.
9001         (build_scops): Start domwalk at entry block, sort generated
9002         pbbs.
9004 2017-06-09  Richard Biener  <rguenther@suse.de>
9006         PR middle-end/81007
9007         * ipa-polymorphic-call.c
9008         (ipa_polymorphic_call_context::restrict_to_inner_class):
9009         Skip FIELD_DECLs with error_mark_node type.
9010         * passes.def (all_lowering_passes): Run pass_build_cgraph_edges
9011         last again.
9013 2017-06-09  Martin Liska  <mliska@suse.cz>
9015         * predict.c (struct branch_predictor): New struct.
9016         (test_prediction_value_range): New test.
9017         (predict_c_tests): New function.
9018         * selftest-run-tests.c (selftest::run_tests): Run the function.
9019         * selftest.h: Declare new tests.
9021 2017-06-09  Segher Boessenkool  <segher@kernel.crashing.org>
9023         PR target/80966
9024         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Assert that
9025         gen_add3_insn did not fail.
9026         * config/rs6000/rs6000.md (add<mode>3): If asked to add a constant to
9027         r0, construct that number in a temporary reg and add that reg to r0.
9028         If asked to put the result in r0 as well, fail.
9030 2017-06-08  Will Schmidt  <will_schmidt@vnet.ibm.com>
9032         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
9033         for early expansion of vec_eqv.
9035 2017-06-08  Jakub Jelinek  <jakub@redhat.com>
9037         PR middle-end/81005
9038         * ubsan.c (instrument_null): Avoid pointless code temporary.
9039         (pass_ubsan::execute): Instrument aggregate arguments of calls.
9041 2017-06-08  Uros Bizjak  <ubizjak@gmail.com>
9043         PR target/81015
9044         Revert:
9045         2016-12-14  Uros Bizjak  <ubizjak@gmail.com>
9047         PR target/59874
9048         * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
9049         (*clzhi2): Ditto.
9051 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
9053         * predict.c (unlikely_executed_edge_p): Move ahead.
9054         (probably_never_executed_edge_p): Use it.
9056 2017-06-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9058         PR middle-end/79988
9059         * tree-chkp.c (chkp_gimple_call_builtin_p): Remove
9060         gimple_call_builtin_p call.
9062 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
9064         * system.h (fancy_abort): Annotate by ATTRIBUTE_COLD.
9065         * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
9066         rtl_check_failed_type2, rtl_check_failed_code1,
9067         rtl_check_failed_code2, rtl_check_failed_code_mode,
9068         rtl_check_failed_block_symbol, cwi_check_failed_bounds,
9069         rtvec_check_failed_bounds, rtl_check_failed_flag,
9070         _fatal_insn_not_found, _fatal_insn): Likewise.
9071         * tree.h (tree_contains_struct_check_failed,
9072         tree_check_failed, tree_not_check_failed,
9073         tree_class_check_failed, tree_range_check_failed,
9074         tree_not_class_check_failed, tree_int_cst_elt_check_failed,
9075         tree_vec_elt_check_failed, phi_node_elt_check_failed,
9076         tree_operand_check_failed, omp_clause_check_failed,
9077         omp_clause_operand_check_failed, omp_clause_range_check_failed):
9078         Likewise.
9080 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
9082         * cgraph.c (cgraph_edge::maybe_hot_p): Do not check
9083         flag_branch_probabilities.
9084         * ipa-inline.c (edge_badness): Likewise.
9085         * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
9086         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
9087         * predict.c (maybe_hot_frequency_p): Likewise.
9088         (probably_never_executed): Likewise.
9089         * sched-ebb.c (schedule_ebbs): Likewise.
9090         * sched-rgn.c (find_single_block_region): Likewise.
9091         * tracer.c (tail_duplicate): Likewise.
9093 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
9095         * opts.c (finish_options): x_flag_reorder_blocks_and_partition no
9096         longer requires x_flag_profile_use.
9098 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
9100         * cfgrtl.c (cfg_layout_initialize): Check crtl->has_bb_partition
9101         instead of flag_reorder_blocks_and_partition.
9102         * dbxout.c (dbxout_function_end): Likewise.
9103         * dwarf2out.c (gen_subprogram_die): Likewise.
9104         * haifa-sched.c (sched_create_recovery_edges): Likewise.
9105         * hw-doloop.c (reorg_loops): Likewise.
9106         * varasm.c (assemble_start_function,
9107         assemble_end_function): Likewise.
9108         (decide_function_section): Do not check for
9109         flag_reorder_blocks_and_partition.
9111 2017-06-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9113         * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
9114         New function.
9115         (chkp_get_hard_register_fake_addr_expr): Ditto.
9116         (chkp_build_addr_expr): Add check for hard reg case.
9117         (chkp_parse_array_and_component_ref): Ditto.
9118         (chkp_find_bounds_1): Ditto.
9119         (chkp_process_stmt): Don't generate bounds store for
9120         hard reg case.
9122 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
9124         * predict.c (maybe_hot_bb_p): Do not check profile status.
9125         (maybe_hot_edge_p): Likewise.
9126         (probably_never_executed): Check for zero counts even if profile
9127         is not read.
9128         (unlikely_executed_edge_p): New function.
9129         (unlikely_executed_stmt_p): New function.
9130         (unlikely_executed_bb_p): New function.
9131         (set_even_probabilities): Use unlikely predicates.
9132         (combine_predictions_for_bb): Likewise.
9133         (predict_paths_for_bb): Likewise.
9134         (predict_paths_leading_to_edge): Likewise.
9135         (determine_unlikely_bbs): New function.
9136         (estimate_bb_frequencies): Use it.
9137         (compute_function_frequency): Use zero counts even if profile is
9138         not read.
9139         * profile-count.h: Fix typo.
9141 2017-08-08  Julia Koval  <julia.koval@intel.com>
9143         * config/i386/avx512bwintrin.h (_mm512_mask_cvtepi16_storeu_epi8,
9144         _mm512_mask_cvtsepi16_storeu_epi8,
9145         _mm512_mask_cvtusepi16_storeu_epi8): New intrinsics.
9146         * config/i386/avx512vlbwintrin.h (_mm256_mask_cvtepi16_storeu_epi8,
9147         _mm_mask_cvtsepi16_storeu_epi8, _mm256_mask_cvtsepi16_storeu_epi8,
9148         _mm_mask_cvtusepi16_storeu_epi8, _mm256_mask_cvtusepi16_storeu_epi8,
9149         _mm_mask_cvtepi16_storeu_epi8): New intrinsics.
9150         * config/i386/i386-builtin-types.def (PV8Q, V8QI): New pointer type.
9151         (VOID_FTYPE_PV32QI_V32HI_USI, VOID_FTYPE_PV8QI_V8HI_UQI,
9152         VOID_FTYPE_PV16QI_V16HI_UHI): New function types.
9153         * config/i386/i386-builtin.def (__builtin_ia32_pmovwb128mem_mask,
9154         __builtin_ia32_pmovwb256mem_mask, __builtin_ia32_pmovswb128mem_mask,
9155         __builtin_ia32_pmovswb256mem_mask, __builtin_ia32_pmovuswb128mem_mask,
9156         __builtin_ia32_pmovuswb256mem_mask,
9157         __builtin_ia32_pmovuswb512mem_mask, __builtin_ia32_pmovswb512mem_mask)
9158         __builtin_ia32_pmovwb512mem_mask): New builtins.
9160 2017-08-08  Julia Koval  <julia.koval@intel.com>
9162         PR target/73350,80862
9163         * config/i386/subst.md (round): Fix round pattern.
9164         * config/i386/i386.c (ix86_erase_embedded_rounding):
9165         Fix erasing rounding for the fixed pattern.
9167 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
9169         * cfgbuild.c (find_many_sub_basic_blocks): Fix thinko.
9171 2017-06-08  Martin Liska  <mliska@suse.cz>
9173         PR gcov-profile/80911
9174         * gcov.c (block_info::block_info): New constructor.
9176 2017-06-07  Carl Love  <cel@us.ibm.com>
9178         * config/rs6000/rs6000-c: The return type of the following
9179         built-in functions was implemented as int not long long.  Fix sign
9180         of return value for the unsigned version of vec_mulo and vec_mule.
9181         vector unsigned long long vec_bperm (vector unsigned long long,
9182                                              vector unsigned char)
9183         vector signed long long vec_mule (vector signed int,
9184                                           vector signed int)
9185         vector unsigned long long vec_mule (vector unsigned int,
9186                                             vector unsigned int)
9187         vector signed long long vec_mulo (vector signed int,
9188                                           vector signed int)
9189         vector unsigned long long vec_mulo (vector unsigned int,
9190                                             vector unsigned int)
9191         * doc/extend.texi: Fix the documentation for the built-in
9192         functions.
9194 2017-06-07  Carl Love  <cel@us.ibm.com>
9196         PR target/80982
9197         * config/rs6000/altivec.md (double<mode>2): Fix the implementation of
9198         for BE.
9200 2017-06-07  Carl Love  <cel@us.ibm.com>
9202         * config/rs6000/altivec.md: Fix argument swizzle in vec_doublel
9203         support, Generate       doublehv for signed int/float for BE case only.
9205 2017-06-07  Alexander Monakov  <amonakov@ispras.ru>
9207         * doc/invoke.texi (mcx16): Rewrite.
9209 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9211         * config/rs6000/predicates.md (rs6000_nonimmediate_operand): Delete.
9212         * config/rs6000/rs6000.md (*movsi_internal1, movsi_from_sf,
9213         *mov<mode>_softfloat, and an anonymous splitter): Use
9214         nonimmediate_operand instead of rs6000_nonimmediate_operand.
9216 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9218         * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE_ACC and
9219         SPEFSCR registers.
9220         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
9221         (enum rs6000_reg_type): Delete SPE_ACC_TYPE and SPEFSCR_REG_TYPE.
9222         (rs6000_debug_reg_global): Adjust.
9223         (rs6000_init_hard_regno_mode_ok): Adjust.
9224         (rs6000_dbx_register_number): Adjust.
9225         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change to 115.
9226         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
9227         Remove SPE_ACC and SPEFSCR.
9228         (REG_ALLOC_ORDER): Ditto.
9229         (FRAME_POINTER_REGNUM): Change to 111.
9230         (enum reg_class): Remove the SPE_ACC and SPEFSCR registers.
9231         (REG_CLASS_NAMES): Ditto.
9232         (REG_CLASS_CONTENTS): Delete the SPE_ACC and SPEFSCR registers.
9233         (REGISTER_NAMES): Ditto.
9234         (ADDITIONAL_REG_NAMES): Ditto.
9235         (rs6000_reg_names): Ditto.
9236         * config/rs6000/rs6000.md: Renumber some register number
9237         define_constants.
9239 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9241         * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE high
9242         registers.
9243         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
9244         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change from 149
9245         to 117.
9246         (DWARF_REG_TO_UNWIND_COLUMN): Do not define.
9247         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
9248         Delete the SPE high registers.
9249         (REG_ALLOC_ORDER): Ditto.
9250         (enum reg_class): Remove SPE_HIGH_REGS.
9251         (REG_CLASS_NAMES): Ditto.
9252         (REG_CLASS_CONTENTS): Delete the SPE high registers.
9253         (REGISTER_NAMES): Ditto.
9254         (rs6000_reg_names): Ditto.
9255         * doc/tm.texi.in: Remove SPE as example.
9256         * doc/tm.texi: Regenerate.
9258 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9260         * config/rs6000/8540.md (ppc8540_brinc): Delete.
9261         * config/rs6000/e500mc.md (e500mc_brinc): Delete.
9262         * config/rs6000/e500mc64.md (e500mc64_brinc): Delete.
9263         * config/rs6000/rs6000.md (type): Remove "brinc".
9265 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9267         * config.gcc (powerpc*-*-*): Don't add spe.h to extra_headers.
9268         (powerpc*-linux*spe*): Use ${cpu_type} instead of rs6000.
9269         * config/rs6000/linuxspe.h: Delete file.
9270         * config/rs6000/rs6000.md: Don't include spe.md.
9271         * config/rs6000/spe.h: Delete file.
9272         * config/rs6000/spe.md: Delete file.
9273         * config/rs6000/t-rs6000: Remove spe.md.
9275 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9277         * config/rs6000/predicates.md (reg_or_mem_operand): Reformat.
9278         (reg_or_none500mem_operand): Delete.
9279         * config/rs6000/rs6000.md (extendsfdf2): Use reg_or_mem_operand
9280         instead of reg_or_none500mem_operand.
9282 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9284         * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
9285         handling of SPE flags.
9286         * config/rs6000/rs6000.opt (-mspe, -mspe=no, -mspe=yes): Delete.
9288 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9290         * config/rs6000/rs6000-common.c (rs6000_handle_option): Remove
9291         SPE ABI handling.
9292         * config/rs6000/paired.md (paired_negv2sf2): Rename to negv2sf2.
9293         (paired_absv2sf2, paired_addv2sf3, paired_subv2sf3, paired_mulv2sf3,
9294         paired_divv2sf3): Similar.
9295         * config/rs6000/predicates.md: Replace TARGET_SPE, TARGET_SPE_ABI,
9296         SPE_VECTOR_MODE and SPE_HIGH_REGNO_P by 0; simplify.
9297         * config/rs6000/rs6000-builtin.def: Delete RS6000_BUILTIN_E and
9298         RS6000_BUILTIN_S.
9299         Delete BU_SPE_1, BU_SPE_2, BU_SPE_3, BU_SPE_E, BU_SPE_P, and BU_SPE_X.
9300         Rename the paired_* instruction patterns.
9301         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Do not
9302         define __SPE__.
9303         * config/rs6000/rs6000-protos.h (invalid_e500_subreg): Delete.
9304         * config/rs6000/rs6000.c: Delete RS6000_BUILTIN_E and RS6000_BUILTIN_S.
9305         (struct rs6000_stack): Delete fields spe_gp_save_offset, spe_gp_size,
9306         spe_padding_size, and spe_64bit_regs_used.  Replace TARGET_SPE and
9307         TARGET_SPE_ABI with 0, simplify.  Replace SPE_VECTOR_MODE with
9308         PAIRED_VECTOR_MODE.
9309         (struct machine_function): Delete field spe_insn_chain_scanned_p.
9310         (spe_func_has_64bit_regs_p): Delete.
9311         (spe_expand_predicate_builtin): Delete.
9312         (spe_expand_evsel_builtin): Delete.
9313         (TARGET_DWARF_REGISTER_SPAN): Do not define.
9314         (TARGET_MEMBER_TYPE_FORCES_BLK): Do not define.
9315         (invalid_e500_subreg): Delete.
9316         (rs6000_legitimize_address): Always force_reg op2 as well, for
9317         paired single memory accesses.
9318         (rs6000_member_type_forces_blk): Delete.
9319         (rs6000_spe_function_arg): Delete.
9320         (rs6000_expand_unop_builtin): Delete SPE handling.
9321         (rs6000_expand_binop_builtin): Ditto.
9322         (spe_expand_stv_builtin): Delete.
9323         (bdesc_2arg_spe): Delete.
9324         (spe_expand_builtin): Delete.
9325         (spe_expand_predicate_builtin): Delete.
9326         (spe_expand_evsel_builtin): Delete.
9327         (rs6000_invalid_builtin): Remove RS6000_BTM_SPE handling.
9328         (spe_init_builtins): Delete.
9329         (spe_func_has_64bit_regs_p): Delete.
9330         (savres_routine_name): Delete "info" parameter.  Adjust callers.
9331         (rs6000_emit_stack_reset): Ditto.
9332         (rs6000_dwarf_register_span): Delete.
9333         * config/rs6000/rs6000.h (TARGET_SPE_ABI, TARGET_SPE,
9334         UNITS_PER_SPE_WORD, SPE_HIGH_REGNO_P, SPE_SIMD_REGNO_P,
9335         SPE_VECTOR_MODE, RS6000_BTM_SPE, RS6000_BUILTIN_E, RS6000_BUILTIN_S):
9336         Delete.
9337         * config/rs6000/rs6000.md (FIRST_SPE_HIGH_REGNO, LAST_SPE_HIGH_REGNO):
9338         Delete.
9339         * config/rs6000/rs6000.opt (-mabi=spe, -mabi=no-spe): Delete.
9340         * config/rs6000/spe.md: Delete every pattern that uses TARGET_SPE.
9341         * config/rs6000/vector.md (absv2sf2, negv2sf2, addv2sf3, subv2sf3,
9342         mulv2sf3, divv2sf3): Delete expanders.
9344 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9346         config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Delete.
9348 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9350         * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit): Delete.
9351         * config/rs6000/rs6000.c: Ditto.
9353 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9355         * config/rs6000/predicated.md (rs6000_cbranch_operator): Delete.
9356         * config/rs6000/rs6000.md: Replace rs6000_cbranch_operator by
9357         comparison_operator.
9359 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9361         * config/rs6000/rs6000.c: Remove everything related to -mfloat-gprs.
9362         * config/rs6000/rs6000.opt: Ditto.
9363         * config/rs6000/t-rtems: Ditto.
9365 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9367         * config/rs6000/predicates.md: Replace TARGET_E500_DOUBLE and
9368         TARGET_E500_SINGLE by 0, simplify.
9369         * config/rs6000/rs6000.c: Ditto.
9370         (rs6000_option_override_internal): Delete CHECK_E500_OPTIONS.
9371         (spe_build_register_parallel): Delete.
9372         * config/rs6000/rs6000.h: Delete TARGET_E500_SINGLE,
9373         TARGET_E500_DOUBLE, and CHECK_E500_OPTIONS.
9374         * config/rs6000/rs6000.md: Replace TARGET_E500_DOUBLE,
9375         TARGET_E500_SINGLE, and <E500_CONVERT> by 0, simplify.
9376         (E500_CONVERT): Delete.
9377         * config/rs6000/spe.md: Remove many patterns and all define_constants.
9379 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9381         * config/rs6000/darwin.md: Replace TARGET_FPRS by 1 and simplify.
9382         * config/rs6000/dfp.md: Ditto.
9383         (negdd2, *negdd2_fpr): Merge.
9384         (absdd2, *absdd2_fpr): Merge.
9385         (negtd2, *negtd2_fpr): Merge.
9386         (abstd2, *abstd2_fpr): Merge.
9387         * config/rs6000/e500.h: Delete file.
9388         * config/rs6000/predicates.md (rs6000_cbranch_operator): Replace
9389         TARGET_FPRS by 1 and simplify.
9390         * config/rs6000/rs6000-c.c: Ditto.
9391         * config/rs6000/rs6000.c: Ditto.  Also replace TARGET_SF_SPE and
9392         TARGET_DF_SPE by 0.
9393         * config/rs6000/rs6000.h: Ditto.  Delete TARGET_SF_SPE and
9394         TARGET_DF_SPE.
9395         * config/rs6000/rs6000.md: Ditto.
9396         (floatdidf2, *floatdidf2_fpr): Merge.
9397         (move_from_CR_gt_bit): Delete.
9398         * config/rs6000/spe.md: Replace TARGET_FPRS by 1 and simplify.
9399         (E500_CR_IOR_COMPARE): Delete.
9400         (All patterns that require !TARGET_FPRS): Delete.
9401         * config/rs6000/vsx.md: Replace TARGET_FPRS by 1 and simplify.
9403 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
9405         * passes.def (pass_iv_canon): Move before pass_loop_distribution.
9407 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
9409         * graphds.c (add_edge): Intitialize edge's attached data.
9410         (foll_in_subgraph, dfs_fst_edge, dfs_next_edge): New function
9411         pointer parameter.  Call pointed function on each edge during
9412         graph traversing.  Skip traversing the edge when the function
9413         returns true.
9414         (graphds_dfs, graphds_scc): Ditto.
9415         (for_each_edge): New parameter.  Pass the new parameter to callback
9416         function.
9417         * graphds.h (skip_edge_callback): New function pointer type.
9418         (graphds_dfs, graphds_scc): New function pointer parameter.
9419         (graphds_edge_callback, for_each_edge): New parameter.
9421 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
9423         * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Factor
9424         out code checking if runtime alias check is possible to below ...
9425         Call the new function.
9426         * tree-data-ref.c (runtime_alias_check_p): ... to new function.
9427         * tree-data-ref.h (runtime_alias_check_p): New decalaration.
9429 2017-06-07  Marek Polacek  <polacek@redhat.com>
9431         PR sanitizer/80932
9432         * fold-const.c (extract_muldiv_1) <case MINUS_EXPR>: Add
9433         TYPE_OVERFLOW_WRAPS check.
9435 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
9437         * tree-vect-loop-manip.c (vect_do_peeling): Don't skip vector loop
9438         if versioning is required.
9439         * tree-vect-loop.c (vect_analyze_loop_2): Merge niter check for loop
9440         peeling with the check for versioning.
9442 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
9444         * tree-vectorizer.h (vect_build_loop_niters): New parameter.
9445         * tree-vect-loop-manip.c (vect_build_loop_niters): New parameter.
9446         Set true to new parameter if new ssa variable is defined.
9447         (vect_gen_vector_loop_niters): Refactor.  Set range information
9448         for the new vector loop bound variable.
9449         (vect_do_peeling): Ditto.
9451 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
9453         * tree-affine.c (ssa.h): Include header file.
9454         (tree_to_aff_combination): Handle (T1)(X - CST) when inner type
9455         has wrapping overflow behavior.
9457 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
9459         * tree-affine.c (tree_to_aff_combination): Handle (T1)(X + X).
9461 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
9463         (aff_combination_expand): Move (T1)(X *+- CST) simplification to ...
9464         (tree_to_aff_combination): ... here.
9466 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
9468         * tree-ssa-loop-ivopts.c (ivopts_estimate_reg_pressure): New
9469         reg_pressure model function.
9470         (ivopts_global_cost_for_size): Delete.
9471         (determine_set_costs, iv_ca_recount_cost): Call new model function
9472         ivopts_estimate_reg_pressure.
9474 2017-06-07  Tamar Christina  <tamar.christina@arm.com>
9476         * config/aarch64/aarch64.c (aarch64_rtx_costs): Make sdiv more
9477         expensive than udiv.  Remove floating point cases from mod.
9479 2017-06-07  Tamar Christina  <tamar.christina@arm.com>
9481         * config/arm/aarch-cost-tables.h (cortexa53_extra_cost):
9482         Increase idiv cost.
9484 2017-06-07  Tamar Christina  <tamar.christina@arm.com>
9486         * config/aarch64/aarch64.md
9487         (copysignsf3): Fix mask generation.
9489 2017-06-07  Jakub Jelinek  <jakub@redhat.com>
9491         * dumpfile.h (enum tree_dump_index): Rename TDI_generic to
9492         TDI_gimple.
9493         (class dump_manager): Add register_dumps method.
9494         * dumpfile.c: Include langhooks.h.
9495         (dump_files): Use 0 instead of 3/4/5 for TDI_{original,gimple,nested}.
9496         (FIRST_AUTO_NUMBERED_DUMP): Decrease to 1.
9497         (FIRST_ME_AUTO_NUMBERED_DUMP): Define.
9498         (dump_manager::dump_register): Start with 512 entries instead of 32.
9499         (dump_manager::register_dumps): New method.
9500         * toplev.c (general_init): Instead of invoking register_dumps
9501         langhook, invoke register_dumps method on the dump manager.
9502         * gimplify.c (gimplify_function_tree): Use TDI_gimple instead of
9503         TDI_generic.
9505 2017-06-07  Richard Sandiford  <richard.sandiford@linaro.org>
9507         * doc/md.texi: Clarify the restrictions on a define_insn condition.
9508         Say that # requires an associated define_split to exist, and that
9509         the define_split must be suitable for use after register allocation.
9511 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
9513         * cfgbuild.c (find_bb_boundaries): Initialize profile of split blocks.
9514         (compute_outgoing_frequencies): Also initialize zero counts.
9515         (find_many_sub_basic_blocks): Do not produce uninitialized profile
9516         around loops; preserve more of profile when nothing changes.
9518 2017-06-06  Jim Wilson  <jim.wilson@linaro.org>
9520         * config/aarch64/aarch64-cost-tables.h (qdf24xx_extra_costs): Move to
9521         here.
9522         * config/arm/aarch-cost-tables.h (qdf24xx_extra_costs): From here.
9523         * config/arm/arm-cpu-cdata.h: Regenerate.
9524         * config/arm/arm-cpu-data.h, config/arm/arm-cpu.h: Likewise.
9525         * config/arm/arm-tables.opt, config/arm/arm-tune.md: Likewise.
9526         * config/arm/arm-cpus.in: Delete falkor and qdf24xx entries.
9527         * config/arm/arm.c (arm_qdf24xx_tune): Delete.
9528         * config/arm/bpabi.h (BE8_LINK_SPEC): Delete falkor and qdf24xx
9529         support.
9530         * config/arm/t-aprofile (MULTILIB_MATCHES): Delete falkor and qdf24xx
9531         support.
9532         * config/arm/t-rmprofile: Likewise.
9533         * doc/invoke.texi (ARM Options): Drop falkor and qdf24xx support.
9535 2017-06-06  David S. Miller  <davem@davemloft.net>
9537         PR target/80968
9538         * config/sparc/sparc.c (sparc_expand_prologue): Emit frame
9539         blockage if function uses alloca.
9541 2017-06-06  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
9543         * tree-ssa-loop-prefetch.c (struct mem_ref_group, struct mem_ref):
9544         New "uid" fields to hold pretty-print IDs of group and ref.
9545         Memory references are now identified as <group_id>:<ref_id>
9546         instead of using [random] addresses.
9547         (dump_mem_details): Simplify, no functional change.
9548         (dump_mem_ref): Simplify and make output more concise.
9549         Replace couple of fprintf's throughout code with calls to dump_mem_ref.
9550         (find_or_create_group): Initialize group uid.
9551         (record_ref): Initialize ref uid.  Improve debug output.
9552         (prune_group_by_reuse, should_issue_prefetch_p,)
9553         (should_issue_prefetch_p, schedule_prefetches, issue_prefetch_ref,)
9554         (mark_nontemporal_store, determine_loop_nest_reuse):
9555         Improve debug output.
9557 2017-06-06  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
9559         * dbgcnt.def (prefetch): New debug counter.
9560         * tree-ssa-loop-prefetch.c (dbgcnt.h): New include.
9561         (schedule_prefetches): Stop issueing prefetches if debug counter
9562         tripped.
9564 2017-06-06  Tom de Vries  <tom@codesourcery.com>
9566         * doc/sourcebuild.texi (Testsuites, C Language Testsuites,
9567         gcc.c-torture/compile): Remove mention of NO_LABEL_VALUES in fixme.
9569 2017-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9571         * config/aarch64/atomics.md (atomic_compare_and_swap<mode> expander):
9572         Use aarch64_reg_or_zero predicate for operand 4.
9573         (aarch64_compare_and_swap<mode> define_insn_and_split):
9574         Use aarch64_reg_or_zero predicate for operand 3.  Add 'Z' constraint.
9575         (aarch64_store_exclusive<mode>): Likewise for operand 2.
9577 2017-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9579         * config/arm/arm.c (arm_compute_save_reg_mask): Rename into ...
9580         (arm_compute_save_core_reg_mask): This.
9581         (thumb1_compute_save_reg_mask): Rename into ...
9582         (thumb1_compute_save_core_reg_mask): This.
9583         (arm_compute_save_reg0_reg12_mask): Adapt comment.
9584         (arm_compute_frame_layout): Likewise.
9586 2017-06-06  Richard Biener  <rguenther@suse.de>
9588         PR tree-optimization/80974
9589         * tree-ssa-sccvn.c (set_ssa_val_to): Do not change but only
9590         keep or clear leaders SSA info.
9592 2017-06-06  Tom de Vries  <tom@codesourcery.com>
9594         * config/nvptx/nvptx.c (split_mode_p): New function.
9595         (nvptx_declare_function_name, nvptx_print_operand): Use split_mode_p.
9597 2017-06-06  Tom de Vries  <tom@codesourcery.com>
9599         * config/nvptx/nvptx.c (nvptx_print_operand): Use maybe_split_mode.
9601 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
9603         PR bootstrap/80978
9604         * tree-cfg.c (execute_fixup_cfg): Fix condition on when to rescale
9605         profile.
9607 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
9609         * shrink-wrap.c (handle_simple_exit): Update profile.
9610         (try_shrink_wrapping): Upate profile.
9612 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
9614         * predict.c (tree_estimate_probability_bb): Add LOCAL_ONLY.
9615         (tree_guess_outgoing_edge_probabilities): New.
9616         * predict.h (tree_guess_outgoing_edge_probabilities): Declare.
9617         * tree-cfg.c (gimple_find_sub_bbs): Propagate profile.
9619 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
9621         * ipa-split.c (split_function): Initialize return bb profile.
9623 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
9625         * profile.c (compute_branch_probabilities): Also initialize
9626         EXIT_BLOCK profile.
9628 2017-06-06  Richard Biener  <rguenther@suse.de>
9630         PR tree-optimization/80928
9631         * tree-vect-loop.c (vect_update_vf_for_slp): Amend dumps.
9632         (vect_analyze_loop_operations): Properly guard analysis for
9633         pure SLP case.
9634         (vect_transform_loop): Likewise.
9635         (vect_analyze_loop_2): Also reset SLP type on PHIs.
9636         (vect_model_induction_cost): Do not cost for pure SLP.
9637         (vectorizable_induction): Pass in SLP node, implement SLP vectorization
9638         of induction in inner loop vectorization.
9639         * tree-vect-slp.c (vect_create_new_slp_node): Handle PHIs.
9640         (vect_get_and_check_slp_defs): Handle vect_induction_def.
9641         (vect_build_slp_tree): Likewise.  Handle PHIs as terminating the
9642         recursion.
9643         (vect_analyze_slp_cost_1): Cost induction.
9644         (vect_detect_hybrid_slp_stmts): Handle PHIs.
9645         (vect_get_slp_vect_defs): Likewise.
9646         * tree-vect-stmts.c (vect_analyze_stmt): Handle induction.
9647         (vect_transform_stmt): Handle SLP reductions.
9648         * tree-vectorizer.h (vectorizable_induction): Adjust.
9650 2017-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
9652         * config/rs6000/rs6000.c (make_resolver_func): Update
9653         init_lowered_empty_function call.
9655 2017-06-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9657         * doc/invoke.texi: Document the -fprofile-abs-path option.
9658         * common.opt (fprofile-abs-path): New option.
9659         * gcov-io.h (gcov_write_filename): Declare.
9660         * gcov-io.c (gcov_write_filename): New function.
9661         * coverage.c (coverage_begin_function): Use gcov_write_filename.
9662         * profile.c (output_location): Likewise.
9664 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
9666         * shring-wrap.c: Revert accidental commit.
9668 2017-06-05  Volker Reichelt  <v.reichelt@netcologne.de>
9670         * doc/invoke.texi (-Wduplicated-branches): Add to warning list.
9672 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
9674         * cfgexpand.c (expand_gimple_tailcall): Initialize profile of
9675         new edge.
9676         * ipa-inline.c (want_inline_self_recursive_call_p): Watch for missing
9677         profile in callgraph edge.
9678         * profile-count.h (apply_probability): If THIS is 0, then result is 0
9679         (apply_scale): Likewise.
9680         * tree-inline.c (copy_bb, copy_edges_for_bb, copy_cfg_body):
9681         Also scale profile when inlining function with zero profile.
9682         (initialize_cfun): Update exit block profile even when it is zero.
9683         * tree-ssa-threadupdate.c (clear_counts_path): Handle correctly case
9684         when profile is read.
9686 2017-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
9688         * config/rs6000/rs6000.c (toplevel): Include attribs.h.
9689         (CLONE_*): New constants to define the processors we can generate
9690         code for with the target_clone attribute.
9691         (rs6000_clone_map): New array to identify which clone processors
9692         the current program is running on.
9693         (TARGET_COMPARE_VERSION_PRIORITY): Define to enable the
9694         target_clone attribute.
9695         (TARGET_GENERATE_VERSION_DISPATCHER_BODY): Likewise.
9696         (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): Likewise.
9697         (TARGET_OPTION_FUNCTION_VERSIONS): Likewise.
9698         (cpu_expand_builtin): Add support for target_clone attribute.
9699         (rs6000_valid_attribute_p): Allow "default" attribute.
9700         (get_decl_name): New debug function to simplify printing the
9701         current function name in debugging statements.
9702         (rs6000_clone_priority): New functions to support the target_clone
9703         attribute, and be able to generate code to switch between ISA 2.05
9704         through ISA 3.0 (power6 through power9).
9705         (rs6000_compare_version_priority): Likewise.
9706         (rs6000_get_function_versions_dispatcher): Likewise.
9707         (make_resolver_func): Likewise.
9708         (add_condition_to_bb): Likewise.
9709         (dispatch_function_versions): Likewise.
9710         (rs6000_generate_version_dispatcher_body): Likewise.
9711         (rs6000_can_inline_p): Call get_decl_name for debugging usage.
9712         (fusion_gpr_load_p): Fix a spacing issue.
9713         * doc/extend.texi (Common Function Attributes): Document that the
9714         PowerPC supports the target_clone attribute.
9716 2017-06-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9718         * config/arm/arm.h: explain F symbol found in description of ARM
9719         register allocation in its legend.
9721 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
9723         * config/mips/frame-header-opt.c: Include profile-count.h.
9724         * config/riscv/riscv.c: Include profile-count.h
9726 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
9728         * tree-ssa-loop-im.c (execute_sm_if_changed): Add FLAG_BBS parameter;
9729         update profile.
9730         (sm_set_flag_if_changed): Add bbs field.
9731         (execute_sm_if_changed_flag_set): Pass BBS.
9732         (execute_sm): Update.
9734 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9736         * config/aarch64/aarch64-simd.md (aarch64_store_lane0<mode>):
9737         New pattern.
9739 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9741         * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): New define_insn.
9742         (peephole2): New peephole2 to emit the above.
9743         * config/aarch64/predicates.md (aarch64_sub_immediate): New predicate.
9745 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9747         * config/aarch64/aarch64.c (define_peephole2 above
9748         *sub_<shift>_<mode>): New peephole.
9750 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
9752         * config/i386/i386.c (make_resolver_func): Update.
9753         * Makefile.in: Add profile-count.h and profile-count.o
9754         * auto-profile.c (afdo_indirect_call): Update to new API.
9755         (afdo_set_bb_count): Update.
9756         (afdo_propagate_edge): Update.
9757         (afdo_propagate_circuit): Update.
9758         (afdo_calculate_branch_prob): Update.
9759         (afdo_annotate_cfg): Update.
9760         * basic-block.h: Include profile-count.h
9761         (struct edge_def): Turn count to profile_count.
9762         (struct basic_block_def): Likewie.
9763         (REG_BR_PROB_BASE): Move to profile-count.h
9764         (RDIV): Move to profile-count.h
9765         * bb-reorder.c (max_entry_count): Turn to profile_count.
9766         (find_traces): Update.
9767         (rotate_loop):Update.
9768         (connect_traces):Update.
9769         (sanitize_hot_paths):Update.
9770         * bt-load.c (migrate_btr_defs): Update.
9771         * cfg.c (RDIV): Remove.
9772         (init_flow): Use alloc_block.
9773         (alloc_block): Uninitialize count.
9774         (unchecked_make_edge): Uninitialize count.
9775         (check_bb_profile): Update.
9776         (dump_edge_info): Update.
9777         (dump_bb_info): Update.
9778         (update_bb_profile_for_threading): Update.
9779         (scale_bbs_frequencies_int): Update.
9780         (scale_bbs_frequencies_gcov_type): Update.
9781         (scale_bbs_frequencies_profile_count): New.
9782         * cfg.h (update_bb_profile_for_threading): Update.
9783         (scale_bbs_frequencies_profile_count): Declare.
9784         * cfgbuild.c (compute_outgoing_frequencies): Update.
9785         (find_many_sub_basic_blocks): Update.
9786         * cfgcleanup.c (try_forward_edges): Update.
9787         (try_crossjump_to_edge): Update.
9788         * cfgexpand.c (expand_gimple_tailcall): Update.
9789         (construct_exit_block): Update.
9790         * cfghooks.c (verify_flow_info): Update.
9791         (dump_bb_for_graph): Update.
9792         (split_edge): Update.
9793         (make_forwarder_block): Update.
9794         (duplicate_block): Update.
9795         (account_profile_record): Update.
9796         * cfgloop.c (find_subloop_latch_edge_by_profile): Update.
9797         (get_estimated_loop_iterations): Update.
9798         * cfgloopanal.c (expected_loop_iterations_unbounded): Update.
9799         (single_likely_exit): Update.
9800         * cfgloopmanip.c (scale_loop_profile): Update.
9801         (loopify): Update.
9802         (set_zero_probability): Update.
9803         (lv_adjust_loop_entry_edge): Update.
9804         * cfgrtl.c (force_nonfallthru_and_redirect): Update.
9805         (purge_dead_edges): Update.
9806         (rtl_account_profile_record): Update.
9807         * cgraph.c (cgraph_node::create): Uninitialize count.
9808         (symbol_table::create_edge): Uninitialize count.
9809         (cgraph_update_edges_for_call_stmt_node): Update.
9810         (cgraph_edge::dump_edge_flags): Update.
9811         (cgraph_node::dump): Update.
9812         (cgraph_edge::maybe_hot_p): Update.
9813         * cgraph.h: Include profile-count.h
9814         (create_clone), create_edge, create_indirect_edge): Update.
9815         (cgraph_node): Turn count to profile_count.
9816         (cgraph_edge0: Likewise.
9817         (make_speculative, clone): Update.
9818         (create_edge): Update.
9819         (init_lowered_empty_function): Update.
9820         * cgraphclones.c (cgraph_edge::clone): Update.
9821         (duplicate_thunk_for_node): Update.
9822         (cgraph_node::create_clone): Update.
9823         * cgraphunit.c (cgraph_node::analyze): Update.
9824         (cgraph_node::expand_thunk): Update.
9825         * final.c (dump_basic_block_info): Update.
9826         * gimple-streamer-in.c (input_bb): Update.
9827         * gimple-streamer-out.c (output_bb): Update.
9828         * graphite.c (print_global_statistics): Update.
9829         (print_graphite_scop_statistics): Update.
9830         * hsa-brig.c: Include basic-block.h.
9831         * hsa-dump.c: Include basic-block.h.
9832         * hsa-gen.c (T sum_slice): Update.
9833         (convert_switch_statements):Update.
9834         * hsa-regalloc.c: Include basic-block.h.
9835         * ipa-chkp.c (chkp_produce_thunks): Update.
9836         * ipa-cp.c (struct caller_statistics): Update.
9837         (init_caller_stats): Update.
9838         (gather_caller_stats): Update.
9839         (ipcp_cloning_candidate_p): Update.
9840         (good_cloning_opportunity_p): Update.
9841         (get_info_about_necessary_edges): Update.
9842         (dump_profile_updates): Update.
9843         (update_profiling_info): Update.
9844         (update_specialized_profile): Update.
9845         (perhaps_add_new_callers): Update.
9846         (decide_about_value): Update.
9847         (ipa_cp_c_finalize): Update.
9848         * ipa-devirt.c (struct odr_type_warn_count): Update.
9849         (struct decl_warn_count): Update.
9850         (struct final_warning_record): Update.
9851         (possible_polymorphic_call_targets): Update.
9852         (ipa_devirt): Update.
9853         * ipa-fnsummary.c (redirect_to_unreachable): Update.
9854         * ipa-icf.c (sem_function::merge): Update.
9855         * ipa-inline-analysis.c (do_estimate_edge_time): Update.
9856         * ipa-inline.c (compute_uninlined_call_time): Update.
9857         (compute_inlined_call_time): Update.
9858         (want_inline_small_function_p): Update.
9859         (want_inline_self_recursive_call_p): Update.
9860         (edge_badness): Update.
9861         (lookup_recursive_calls): Update.
9862         (recursive_inlining): Update.
9863         (inline_small_functions): Update.
9864         (dump_overall_stats): Update.
9865         (dump_inline_stats): Update.
9866         * ipa-profile.c (ipa_profile_generate_summary): Update.
9867         (ipa_propagate_frequency): Update.
9868         (ipa_profile): Update.
9869         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
9870         * ipa-utils.c (ipa_merge_profiles): Update.
9871         * loop-doloop.c (doloop_modify): Update.
9872         * loop-unroll.c (report_unroll): Update.
9873         (unroll_loop_runtime_iterations): Update.
9874         * lto-cgraph.c (lto_output_edge): Update.
9875         (lto_output_node): Update.
9876         (input_node): Update.
9877         (input_edge): Update.
9878         (merge_profile_summaries): Update.
9879         * lto-streamer-in.c (input_cfg): Update.
9880         * lto-streamer-out.c (output_cfg): Update.
9881         * mcf.c (create_fixup_graph): Update.
9882         (adjust_cfg_counts): Update.
9883         (sum_edge_counts): Update.
9884         * modulo-sched.c (sms_schedule): Update.
9885         * postreload-gcse.c (eliminate_partially_redundant_load): Update.
9886         * predict.c (maybe_hot_count_p): Update.
9887         (probably_never_executed): Update.
9888         (dump_prediction): Update.
9889         (combine_predictions_for_bb): Update.
9890         (propagate_freq): Update.
9891         (handle_missing_profiles): Update.
9892         (counts_to_freqs): Update.
9893         (rebuild_frequencies): Update.
9894         (force_edge_cold): Update.
9895         * predict.h: Include profile-count.h
9896         (maybe_hot_count_p, counts_to_freqs): UPdate.
9897         * print-rtl-function.c: Do not include cfg.h
9898         * print-rtl.c: Include basic-block.h
9899         * profile-count.c: New file.
9900         * profile-count.h: New file.
9901         * profile.c (is_edge_inconsistent): Update.
9902         (correct_negative_edge_counts): Update.
9903         (is_inconsistent): Update.
9904         (set_bb_counts): Update.
9905         (read_profile_edge_counts): Update.
9906         (compute_frequency_overlap): Update.
9907         (compute_branch_probabilities): Update; Initialize and deinitialize
9908         gcov_count tables.
9909         (branch_prob): Update.
9910         * profile.h (bb_gcov_counts, edge_gcov_counts): New.
9911         (edge_gcov_count): New.
9912         (bb_gcov_count): New.
9913         * shrink-wrap.c (try_shrink_wrapping): Update.
9914         * tracer.c (better_p): Update.
9915         * trans-mem.c (expand_transaction): Update.
9916         (ipa_tm_insert_irr_call): Update.
9917         (ipa_tm_insert_gettmclone_call): Update.
9918         * tree-call-cdce.c: Update.
9919         * tree-cfg.c (gimple_duplicate_sese_region): Update.
9920         (gimple_duplicate_sese_tail): Update.
9921         (gimple_account_profile_record): Update.
9922         (execute_fixup_cfg): Update.
9923         * tree-inline.c (copy_bb): Update.
9924         (copy_edges_for_bb): Update.
9925         (initialize_cfun): Update.
9926         (freqs_to_counts): Update.
9927         (copy_cfg_body): Update.
9928         (expand_call_inline): Update.
9929         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
9930         * tree-ssa-loop-ivcanon.c (unloop_loops): Update.
9931         (try_unroll_loop_completely): Update.
9932         (try_peel_loop): Update.
9933         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
9934         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Update.
9935         * tree-ssa-loop-split.c (connect_loops): Update.
9936         * tree-ssa-loop-unswitch.c (hoist_guard): Update.
9937         * tree-ssa-reassoc.c (branch_fixup): Update.
9938         * tree-ssa-tail-merge.c (replace_block_by): Update.
9939         * tree-ssa-threadupdate.c (create_block_for_threading): Update.
9940         (compute_path_counts): Update.
9941         (update_profile): Update.
9942         (recompute_probabilities): Update.
9943         (update_joiner_offpath_counts): Update.
9944         (estimated_freqs_path): Update.
9945         (freqs_to_counts_path): Update.
9946         (clear_counts_path): Update.
9947         (ssa_fix_duplicate_block_edges): Update.
9948         (duplicate_thread_path): Update.
9949         * tree-switch-conversion.c (case_bit_test_cmp): Update.
9950         (struct switch_conv_info): Update.
9951         * tree-tailcall.c (decrease_profile): Update.
9952         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
9953         * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
9954         * value-prof.c (check_counter): Update.
9955         (gimple_divmod_fixed_value): Update.
9956         (gimple_mod_pow2): Update.
9957         (gimple_mod_subtract): Update.
9958         (gimple_ic_transform): Update.
9959         (gimple_stringop_fixed_value): Update.
9960         * value-prof.h (gimple_ic): Update.
9962 2017-06-02  Carl Love  <cel@us.ibm.com>
9964         * config/rs6000/rs6000-c: Add support for built-in functions
9965         vector double vec_doublee (vector signed int);
9966         vector double vec_doublee (vector unsigned int);
9967         vector double vec_doublee (vector float);
9968         vector double vec_doubleh (vector signed int);
9969         vector double vec_doubleh (vector unsigned int);
9970         vector double vec_doubleh (vector float);
9971         vector double vec_doublel (vector signed int);
9972         vector double vec_doublel (vector unsigned int);
9973         vector double vec_doublel (vector float);
9974         vector double vec_doubleo (vector signed int);
9975         vector double vec_doubleo (vector unsigned int);
9976         vector double vec_doubleo (vector float);.
9977         * config/rs6000/rs6000-builtin.def: Add definitions for DOUBLEE,
9978         DOUBLEO, DOUBLEH, DOUBLEL, UNS_DOUBLEO, UNS_DOUBLEE, UNS_DOUBLEH,
9979         UNS_DOUBLEL.
9980         * config/rs6000/altivec.md: Add code generator for doublee<mode>2,
9981         unsdoubleev4si2, doubleo<mode>2, unsdoubleov4si2, doubleh<mode>2,
9982         unsdoublehv4si2, doublel<mode>2, unsdoublelv4si2, add mode attribute
9983         VS_sxwsp.
9984         * config/rs6000/altivec.h: Add define for vec_doublee, vec_doubleo,
9985         vec_doublel, vec_doubleh.
9986         * doc/extend.texi: Update the built-in documentation file for the
9987         new built-in functions.
9989 2017-06-02  David Malcolm  <dmalcolm@redhat.com>
9991         PR jit/80954
9992         * ipa-inline-analysis.c (free_growth_caches): Set
9993         edge_removal_hook_holder to NULL after removing it.
9995 2017-06-02  Sudakshina Das  <sudi.das@arm.com>
9997         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
9998         comparision with zero.
10000 2017-06-02  Will Schmidt  <will_schmidt@vnet.ibm.com>
10001         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
10002         for early expansion of vec_min and vec_max builtins.
10003         (builtin_function_type): Add min/max unsigned variants to those
10004         identified as having unsigned arguments.
10006 2017-06-02  Olivier Hainque  <hainque@adacore.com>
10008         * config/vx-common.h (DWARF_UNWIND_INFO): Switch #define to 1.
10010 2017-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10012         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
10013         Use VALL_F16 iterator rather than VALL.
10015 2017-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10017         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap):
10018         Emit CBNZ inside loop when doing a strong exchange and comparing
10019         against zero.  Generate the CC flags after the loop.
10021 2017-06-02  David Edelsohn  <dje.gcc@gmail.com>
10023         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE_STR): New.
10024         (dl_section_ref): New.
10025         (dwarf2out_finish): Copy debug_line_section_label to dl_section_ref.
10026         On AIX, append an expression to subtract the size of the
10027         section length to dl_section_ref.
10029 2017-06-02  Will Schmidt  <will_schmidt@vnet.ibm.com>
10031         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
10032         for early expansion of vector absolute builtins.
10034 2017-06-02  Richard Biener  <rguenther@suse.de>
10036         * tree-vect-slp.c (vect_detect_hybrid_slp_2): Match up
10037         what we consider a relevant use stmt with vect_detect_hybrid_slp_stmts.
10039 2017-06-02  Richard Biener  <rguenther@suse.de>
10041         PR tree-optimization/80948
10042         * tree-tailcall.c (find_tail_calls): Track stmts to move in
10043         stmt order as well.
10045 2017-06-02  Richard Biener  <rguenther@suse.de>
10047         * tree-vect-loop.c (vect_analyze_loop_operations): Not relevant
10048         PHIs are ok.
10049         * tree-vect-stmts.c (process_use): Do not mark backedge defs
10050         for inductions as relevant.
10052 2017-06-02  Richard Biener  <rguenther@suse.de>
10054         * tree-vect-loop.c (get_initial_def_for_induction): Inline into ...
10055         (vectorizable_induction): ... this.  Remove dead code.
10057 2017-06-02  Eric Botcazou  <ebotcazou@adacore.com>
10059         * builtins. (expand_builtin_alloca): Remove second parameter and
10060         infer its value from the first parameter instead.
10061         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust call to above.
10063 2017-06-02  Jakub Jelinek  <jakub@redhat.com>
10065         PR rtl-optimization/80903
10066         * loop-doloop.c (add_test): Unshare sequence.
10068 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10070         * doc/invoke.texi: Document the -Wsizeof-pointer-div warning.
10072 2017-06-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10074         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers): Make
10075         static.
10076         (xlogue_layout::get_stack_space_used, xlogue_layout::s_instances,
10077         xlogue_layout::get_instance, logue_layout::xlogue_layout,
10078         sp_valid_at, fp_valid_at, choose_basereg): Formatting.
10079         (xlogue_layout::get_stub_rtx): Make static.
10080         (xlogue_layout::get_stub_name): Avoid const-cast, make static.
10081         (xlogue_layout::compute_stub_managed_regs): Rename to...
10082         (xlogue_layout::count_stub_managed_regs): ...this.
10083         (xlogue_layout::is_stub_managed_reg): New function.
10084         (xlogue_layout::m_stub_names): Rename to...
10085         (xlogue_layout::s_stub_names): ...this, make static.
10086         (xlogue_layout::STUB_INDEX_OFFSET, xlogue_layout::MIN_REGS,
10087         xlogue_layout::MAX_REGS, xlogue_layout::MAX_EXTRA_REGS,
10088         xlogue_layout::VARIANT_COUNT, xlogue_layout::STUB_NAME_MAX_LEN,
10089         xlogue_layout::s_stub_names): Instantiate statics.
10090         (stub_managed_regs): Remove.
10091         (ix86_save_reg): Use xlogue_layout::compute_stub_managed_regs.
10092         (disable_call_ms2sysv_xlogues): Rename to...
10093         (warn_once_call_ms2sysv_xlogues): ...this, and warn only once.
10094         (ix86_initial_elimination_offset, ix86_expand_call): Fix call_ms2sysv
10095         warning logic.
10096         (ix86_static_chain): Make sure that ix86_static_chain_on_stack can't
10097         change after reload_completed.
10098         (ix86_can_use_return_insn_p): Use the ix86_frame data structure
10099         directly.
10100         (ix86_expand_prologue): Likewise.
10101         (ix86_expand_epilogue): Likewise.
10102         (ix86_expand_split_stack_prologue): Likewise.
10103         (ix86_compute_frame_layout): Remove frame parameter ...
10104         (TARGET_COMPUTE_FRAME_LAYOUT): ... and export it as a target hook.
10105         (ix86_finalize_stack_realign_flags): Call ix86_compute_frame_layout
10106         only if necessary.
10107         (ix86_init_machine_status): Don't set use_fast_prologue_epilogue_nregs.
10108         (ix86_frame): Move from here ...
10109         * config/i386/i386.h (ix86_frame): ... to here.
10110         (machine_function): Remove use_fast_prologue_epilogue_nregs, cache the
10111         complete ix86_frame data structure instead.  Remove some_ld_name.
10113 2017-06-01  Pierre-Marie de Rodat  <derodat@adacore.com>
10115         * dwarf2out.c (dwarf2out_late_global_decl): Add locations for
10116         symbols that hold a DECL_VALUE_EXPR.
10118 2017-06-01  Martin Jambor  <mjambor@suse.cz>
10120         PR tree-optimization/80898
10121         * tree-sra.c (process_subtree_disqualification): Removed.
10122         (disqualify_candidate): Do not acll
10123         process_subtree_disqualification.
10124         (subtree_mark_written_and_enqueue): New function.
10125         (propagate_all_subaccesses): Set grp_write of LHS subtree if the
10126         RHS has been disqualified and re-queue LHS if necessary.  Apart
10127         from that, ignore disqualified RHS.
10129 2017-06-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10131         * config/s390/s390.c (s390_emit_epilogue): Disable early return
10132         address fetch for z10 or later.
10134 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
10136         * config/arc/arc.md (tst_movb): Add guard when splitting.
10138 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
10140         * config/arc/arc.c (arc_can_eliminate): Test against
10141         arc_frame_pointer_needed.
10143 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
10145         * config/arc/arc.c (arc_expand_prologue): Emit a special barrier
10146         to prevent store reordering.
10147         * config/arc/arc.md (UNSPEC_ARC_STKTIE): Define.
10148         (type): Add block type.
10149         (stack_tie): Define special instruction to be used in
10150         expand_prologue.
10152 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
10154         * config/arc/arc.md (commutative_binary_comparison): Remove 'I'
10155         constraint. It is not valid for the pattern.
10156         (noncommutative_binary_comparison): Likewise.
10158 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
10160         * config/arc/simdext.md (movv2hi_insn): Change predicate to avoid
10161         scaled addresses.
10163 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
10165         * config/arc/arc.c (arc_conditional_register_usage): Allow r30 to
10166         be used by the reg-alloc.
10168 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
10170         * config/arc/arc.md (mulsi3): Avoid use of hard registers before
10171         reg-alloc when having mul64 or mul32x16 instructions.
10172         (mulsidi3): Likewise.
10173         (umulsidi3): Likewise.
10174         (mulsi32x16): New pattern.
10175         (mulsi64): Likewise.
10176         (mulsidi64): Likewise.
10177         (umulsidi64): Likewise.
10178         (MUL32x16_REG): Define.
10179         (mul64_600): Use MUL32x16_REG.
10180         (mac64_600): Likewise.
10181         (umul64_600): Likewise.
10182         (umac64_600): Likewise.
10184 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
10186         * config/arc/arc.md (mulsi3_700): Make it commutative.
10188 2017-06-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
10190         * config/sparc/sparc.md (*zero_extendsidi2_insn_sp64): Set insn
10191         type for movstouw.
10192         (*sign_extendsidi2_insn): Likewise for movstosw.
10194 2017-06-01  Pierre-Marie de Rodat  <derodat@adacore.com>
10196         * dwarf2out.c (get_discr_value): Call the get_debug_type hook on
10197         the type of the input discriminant value.  Convert the
10198         discriminant value of signedness vary.
10200 2017-06-01  Volker Reichelt  <v.reichelt@netcologne.de>
10202         * doc/invoke.texi (-Wcatch-value): Document new shortcut.
10203         Add to -Wall section.
10205 2017-06-01  Richard Biener  <rguenther@suse.de>
10207         PR middle-end/66313
10208         * fold-const.c (fold_plusminus_mult_expr): If the factored
10209         factor may be zero use a wrapping type for the inner operation.
10210         * tree-tailcall.c (independent_of_stmt_p): Pass in to_move bitmap
10211         and handle moved defs.
10212         (process_assignment): Properly guard the unary op case.  Return a
10213         tri-state indicating that moving the stmt before the call may allow
10214         to continue.  Pass through to_move.
10215         (find_tail_calls): Handle moving unrelated defs before
10216         the call.
10218 2017-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
10220         PR target/80618
10221         * config/rs6000/vector.md (*vector_uneq<mode>): Write the nor in the
10222         splitter result in the canonical way.
10224 2017-05-31  Uros Bizjak  <ubizjak@gmail.com>
10226         * config/i386/i386.md (*zero_extendsidi2): Enable alternative (?r, *Yj)
10227         also for 32bit target.  Update insn attributes.
10228         (zero-extendsidi2 splitter): Allow all registers for operand 1.
10230 2017-05-31  Sebastian Peryt  <sebastian.peryt@intel.com>
10232         * config/i386/avx512fintrin.h (_mm_mask_max_sd)
10233         (_mm_maskz_max_sd, _mm_mask_max_ss, _mm_maskz_max_ss)
10234         (_mm_mask_min_sd, _mm_maskz_min_sd, _mm_mask_min_ss)
10235         (_mm_maskz_min_ss): New intrinsics.
10237 2017-05-31  Martin Liska  <mliska@suse.cz>
10239         * tree-vect-loop.c (vect_create_epilog_for_reduction):
10240         Change comment style to one we normally use.
10241         (vectorizable_reduction): Likewise.
10242         (vectorizable_induction): Likewise.
10243         * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
10244         (vectorizable_call): Likewise.
10245         (vectorizable_simd_clone_call): Likewise.
10246         (vectorizable_conversion): Likewise.
10247         (vectorizable_assignment): Likewise.
10248         (vectorizable_shift): Likewise.
10249         (vectorizable_operation): Likewise.
10250         (vectorizable_store): Likewise.
10251         (vectorizable_load): Likewise.
10252         * tree-vectorizer.h: Likewise.
10254 2017-05-31  Alexander Monakov  <amonakov@ispras.ru>
10256         * passes.c (emergency_dump_function): New.
10257         * tree-pass.h (emergency_dump_function): Declare.
10258         * plugin.c (plugins_internal_error_function): Remove.
10259         * plugin.h (plugins_internal_error_function): Remove declaration.
10260         * toplev.c (internal_error_function): New static function.  Use it...
10261         (general_init): ...here.
10263 2017-05-31  Graham Markall  <graham.markall@embecosm.com>
10265         * config/arc/arc.c (arc_print_operand): Handle constant operands.
10266         (arc_rtx_costs): Add costs for new patterns.
10267         * config/arc/arc.md: Additional *add_n and *sub_n patterns.
10268         * config/arc/predicates.md: Add _1_2_3_operand predicate.
10270 2017-05-31  Richard Sandiford  <richard.sandiford@linaro.org>
10272         * tree-ssa-strlen.c (get_next_strinfo): New function.
10273         (get_stridx_plus_constant): Use it.
10274         (zero_length_string): Likewise.
10275         (adjust_related_strinfos): Likewise.
10276         (adjust_last_stmt): Likewise.
10278 2017-05-31  Richard Biener  <rguenther@suse.de>
10280         PR target/80880
10281         * config/i386/i386.c (ix86_expand_builtin): Remove assert
10282         for arg being an SSA name when expanding IX86_BUILTIN_BNDRET.
10284 2017-05-31  Richard Sandiford  <richard.sandiford@linaro.org>
10286         * tree-vect-data-refs.c (vect_find_same_alignment_drs): Remove
10287         loop_vinfo argument and use of dependence distance vectors.
10288         Check instead whether the two references differ only in their
10289         initial value and assume that they have the same alignment if the
10290         difference is a multiple of the vector alignment.
10291         (vect_analyze_data_refs_alignment): Update call accordingly.
10293 2017-05-31  Martin Liska  <mliska@suse.cz>
10295         PR target/79155
10296         * config/i386/cpuid.h: Fix typo in a comment in cpuid.h.
10298 2017-05-31  Bin Cheng  <bin.cheng@arm.com>
10300         * tree-vect-loop-manip.c (create_intersect_range_checks_index)
10301         (create_intersect_range_checks): Move from ...
10302         * tree-data-ref.c (create_intersect_range_checks_index)
10303         (create_intersect_range_checks): ... to here.
10304         (create_runtime_alias_checks): New function factored from ...
10305         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): ...
10306         here.  Call above function.
10307         * tree-data-ref.h (create_runtime_alias_checks): New function.
10309 2017-05-31  Bin Cheng  <bin.cheng@arm.com>
10311         * tree-data-ref.c (prune_runtime_alias_test_list): Relax minimal
10312         segment length for dr_b and compute it in wide_int.
10314 2017-05-31  Richard Biener  <rguenther@suse.de>
10316         PR tree-optimization/80906
10317         * graphite-isl-ast-to-gimple.c (copy_loop_close_phi_nodes): Get
10318         and pass through iv_map.
10319         (copy_bb_and_scalar_dependences): Adjust.
10320         (translate_pending_phi_nodes): Likewise.
10321         (copy_loop_close_phi_args): Handle code-generating IVs instead
10322         of ICEing.
10324 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
10326         * diagnostic-color.c (color_dict): Add "type-diff".
10327         (parse_gcc_colors): Update comment.
10328         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
10329         -fdiagnostics-show-template-tree and -fno-elide-type.
10330         (GCC_COLORS): Add type-diff to example.
10331         (type-diff=): New.
10332         (-fdiagnostics-show-template-tree): New.
10333         (-fno-elide-type): New.
10334         * pretty-print.c (pp_format): Pass quote and formatters[argno] to
10335         the pp_format_decoder callback.  Call any m_format_postprocessor's
10336         "handle" method.
10337         (pretty_printer::pretty_printer): Initialize
10338         m_format_postprocessor.
10339         (pretty_printer::~pretty_printer): Delete any
10340         m_format_postprocessor.
10341         * pretty-print.h (printer_fn): Add bool and const char ** parameters.
10342         (class format_postprocessor): New class.
10343         (struct pretty_printer::format_decoder): Document the new parameters.
10344         (struct pretty_printer::m_format_postprocessor): New field.
10345         * tree-diagnostic.c (default_tree_printer): Update for new
10346         bool and const char ** params.
10347         * tree-diagnostic.h (default_tree_printer): Likewise.
10349 2017-05-30  Segher Boessenkool  <segher@kernel.crashing.org>
10351         * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand): Delete.
10352         (lwa_operand): Delete rs6000_gen_cell_microcode test.
10353         * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
10354         rs6000_gen_cell_microcode code.
10355         (rs6000_final_prescan_insn): Delete.
10356         (rs6000_opt_vars): Delete the "gen-cell-microcode" and
10357         "warn-cell-microcode" entries.
10358         * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Delete.
10359         * config/rs6000/rs6000.md: Delete rs6000_gen_cell_microcode tests
10360         throughout.  Change cc_reg_not_micro_cr0_operand to
10361         cc_reg_not_cr0_operand throughout.
10362         (*extendhi<mode>2_noload): Delete.
10363         * config/rs6000/rs6000.opt (mgen-cell-microcode): Replace by stub.
10364         (mwarn-cell-microcode): Delete.
10365         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
10366         -mgen-cell-microcode and -mwarn-cell-microcode.
10368 2017-05-30  Uros Bizjak  <ubizjak@gmail.com>
10370         PR target/80833
10371         * config/i386/constraints.md (Yd): New constraint.
10372         (Ye): Ditto.
10373         * config/i386/i386.md (*movti_internal): Add (?r, Ye)
10374         and (?Yd, r) alternatives.  Update insn attributes.
10375         * config/i386/i386.md (*movti_internal): Add (?r, *Ye)
10376         and (?*Yd, r) alternatives.  Update insn attributes.
10377         (double-mode inter-unit splitters): Add new GR<->XMM splitters.
10379 2017-05-30  Pierre-Marie de Rodat  <derodat@adacore.com>
10381         * gimplify.c (gimplify_modify_expr): Don't create a
10382         DECL_DEBUG_EXPR link if *FROM_P does not belong to the current
10383         function.
10385 2017-05-30  Wilco Dijkstra  <wdijkstr@arm.com>
10387         * config/arm/arm-builtins.c (arm_expand_builtin): Remove const.
10389 2017-05-30  Richard Biener  <rguenther@suse.de>
10391         * tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type
10392         and reduc_def fields.
10393         (STMT_VINFO_REDUC_TYPE): New define.
10394         (STMT_VINFO_REDUC_DEF): Likewise.
10395         (vect_force_simple_reduction): Adjust prototype.
10396         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Adjust.
10397         (vect_is_simple_reduction): Remove check_reduction argument.
10398         (vect_force_simple_reduction): Adjust and set
10399         STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
10400         (vectorizable_reduction): Do not re-do reduction analysis
10401         but use STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
10402         * tree-parloops.c (gather_scalar_reductions): Adjust.
10404 2017-05-30  Richard Biener  <rguenther@suse.de>
10406         PR middle-end/80901
10407         * cfgexpand.c (expand_gimple_cond): Match up loop fixup with
10408         split_edge code.
10410 2017-05-24  Robin Dapp  <rdapp@linux.vnet.ibm.com>
10412         * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
10413         Introduce unknown_misalignment parameter and remove vf.
10414         (vect_peeling_hash_get_lowest_cost):
10415         Pass unknown_misalignment parameter.
10416         (vect_enhance_data_refs_alignment):
10417         Fix unsupportable data ref treatment.
10419 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
10421         * tree-vect-data-refs.c (vect_get_data_access_cost):
10422         Workaround for SLP handling.
10423         (vect_enhance_data_refs_alignment):
10424         Compute costs for doing no peeling at all, compare to the best
10425         peeling costs so far and avoid peeling if cheaper.
10427 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
10429         * tree-vect-data-refs.c (vect_peeling_hash_choose_best_peeling):
10430         Return peeling info and set costs to zero for unlimited cost
10431         model.
10432         (vect_enhance_data_refs_alignment): Also inspect all datarefs
10433         with unknown misalignment. Compute and costs for unknown
10434         misalignment, compare them to the costs for known misalignment
10435         and choose the cheapest for peeling.
10437 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
10439         * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Rename.
10440         (vect_get_peeling_costs_all_drs): Create function.
10441         (vect_peeling_hash_get_lowest_cost):
10442         Use vect_get_peeling_costs_all_drs.
10443         (vect_peeling_supportable): Create function.
10444         (vect_enhance_data_refs_alignment): Use vect_peeling_supportable.
10446 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
10448         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Create
10449         DR_HAS_NEGATIVE_STEP.
10450         (vect_update_misalignment_for_peel): Define DR_MISALIGNMENT.
10451         (vect_enhance_data_refs_alignment): Use.
10452         (vect_duplicate_ssa_name_ptr_info): Use.
10453         * tree-vectorizer.h (dr_misalignment): Use.
10454         (known_alignment_for_access_p): Use.
10456 2017-05-30  Jozef Lawrynowicz  <jozef.l@somniumtech.com>
10458         PR target/78838
10459         * config/msp430/msp430.c (gen_prefix): Return NULL when section name is
10460         .lowtext.
10461         (has_section_name): New function.
10463 2017-05-30  Martin Liska  <mliska@suse.cz>
10465         PR other/80909
10466         * auto-profile.c (get_function_decl_from_block): Fix
10467         parenthesis.
10469 2017-05-30  Richard Biener  <rguenther@suse.de>
10471         PR middle-end/80876
10472         * cfgexpand.c (expand_gimple_cond): Fixup preserving loops again.
10474 2017-05-30  Martin Liska  <mliska@suse.cz>
10476         * dumpfile.c: Use newly added macro DUMP_FILE_INFO.
10477         * dumpfile.h (struct dump_file_info): Remove ctors.
10479 2017-05-30  Martin Liska  <mliska@suse.cz>
10481         * predict.def: Fix GNU coding style.
10483 2017-05-29  Max Filippov  <jcmvbkbc@gmail.com>
10485         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
10486         Mark 'to' argument with ATTRIBUTE_UNUSED.
10488 2017-05-29  Max Filippov  <jcmvbkbc@gmail.com>
10490         * config/xtensa/xtensa.c (xtensa_emit_call): Use
10491         HOST_WIDE_INT_PRINT_HEX instead of 0x%lx format string.
10492         (print_operand): Use HOST_WIDE_INT_PRINT_DEC instead of %ld
10493         format string.
10495 2017-05-29  Eric Botcazou  <ebotcazou@adacore.com>
10497         * doc/install.texi (Options specification): Restore entry of
10498         --enable-sjlj-exceptions.
10500 2017-05-27  Michael Eager  <eager@eagercon.com>
10502         Revert:
10503         2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
10505         See https://gcc.gnu.org/ml/gcc/2017-05/msg00221.html.
10507         * config/microblaze/microblaze.h
10508         (FIXED_REGISTERS): Update in macro.
10509         (CALL_USED_REGISTERS): Update in macro.
10511 2017-05-27  François-Xavier Coudett  <fxcoudert@gcc.gnu.org>
10513         * doc/install.texi: Add links to macOS binary distributions.
10515 2017-05-27  Jakub Jelinek  <jakub@redhat.com>
10517         PR bootstrap/80887
10518         Revert:
10519         2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
10521         * match.pd ((A +- CST1) +- CST2): Allow some conversions.
10523 2017-05-26  Martin Liska  <mliska@suse.cz>
10525         * dumpfile.h (enum dump_kind): Renumber TDF_* flags to be contiguous.
10527 2017-05-26  Martin Liska  <mliska@suse.cz>
10529         * cfg.c (check_bb_profile): Do not use TDF_COMMENT and print
10530         always leading ';; '.
10531         (dump_bb_info): Likewise.
10532         (brief_dump_cfg): Likewise.
10533         * cfgrtl.c (print_rtl_with_bb): Do not use TDF_COMMENT.
10534         * dumpfile.c: Remove usage of TDF_VERBOSE.
10535         * dumpfile.h (enum dump_kind): Likewise.
10536         (dump_gimple_bb_header): Do not use TDF_COMMENT.
10537         * print-tree.c (debug_verbose): Remove.
10538         * tree-cfg.c (gimple_dump_cfg): Do not use TDF_COMMENT.
10539         (dump_function_to_file): Remove dumps guarded with TDF_VERBOSE.
10540         * tree-diagnostic.c (default_tree_printer): Replace
10541         TDF_DIAGNOSTIC with TDF_SLIM.
10543 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
10545         * tree-vect-loop-manip.c (create_intersect_range_checks_index): Pass
10546         in parameter loop, rather than loop_vinfo.
10547         (create_intersect_range_checks): Ditto.
10548         (vect_create_cond_for_alias_checks): Update call to above functions.
10550 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
10552         PR tree-optimization/80815
10553         * tree-data-ref.c (prune_runtime_alias_test_list): Simplify condition
10554         for merging runtime alias checks.  Handle negative DR_STEPs.
10556 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
10558         * tree-vect-data-refs.c (Operator==, comp_dr_with_seg_len_pair):
10559         Move from ...
10560         * tree-data-ref.c (Operator==, comp_dr_with_seg_len_pair): To here.
10561         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Factor
10562         out code pruning runtime alias checks.
10563         * tree-data-ref.c (prune_runtime_alias_test_list): New function
10564         factored out from above.
10565         * tree-vectorizer.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
10566         Move from ...
10567         * tree-data-ref.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
10568         ... to here.
10569         (prune_runtime_alias_test_list): New decalaration.
10571 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
10573         * tree-vect-data-refs.c (compare_tree): Rename and move ...
10574         * tree-data-ref.c (data_ref_compare_tree): ... to here.
10575         * tree-data-ref.h (data_ref_compare_tree): New decalaration.
10576         * tree-vect-data-refs.c (dr_group_sort_cmp): Update uses.
10577         (operator==, comp_dr_with_seg_len_pair): Ditto.
10578         (vect_prune_runtime_alias_test_list): Ditto.
10580 2017-05-26  Martin Liska  <mliska@suse.cz>
10582         PR ipa/80663
10583         * params.def: Bound partial-inlining-entry-probability param.
10585 2017-05-26  Marek Polacek  <polacek@redhat.com>
10587         PR sanitizer/80875
10588         * fold-const.c (fold_binary_loc) <case MULT_EXPR>: Check if OP1
10589         can be negated.
10591 2017-05-26  Richard Biener  <rguenther@suse.de>
10593         PR tree-optimization/80842
10594         * tree-ssa-ccp.c (set_lattice_value): Always meet with the old
10595         value.
10597 2017-05-26  Richard Biener  <rguenther@suse.de>
10599         PR tree-optimization/80844
10600         * tree-vectorizer.c (adjust_simduid_builtins): Propagate results.
10602 2017-05-25  Sebastian Peryt  <sebastian.peryt@intel.com>
10604         * doc/md.texi (Machine Constraints): Update x86 family
10605         machine constraints section to match 'config/i386/constraints.md'.
10607 2017-05-25  Volker Reichelt  <v.reichelt@netcologne.de>
10609         * doc/invoke.texi (-Wcatch-value=): Document new warning option.
10611 2017-05-25  Nathan Sidwell  <nathan@acm.org>
10613         * doc/invoke.texi (--enable-languages): Update documentation.
10615 2017-05-25  Martin Liska  <mliska@suse.cz>
10617         * dumpfile.c: Add TDF_FOLDING.
10618         * dumpfile.h (enum dump_kind): Likewise.
10619         * genmatch.c (dt_simplify::gen_1): Use it.
10621 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
10623         * match.pd (view_convert (convert@0 @1)): Handle zero-extension.
10625 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
10627         * match.pd ((A +- CST1) +- CST2): Allow some conversions.
10628         * tree.c (drop_tree_overflow): Handle COMPLEX_CST and VECTOR_CST.
10630 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
10632         * fold-const.c (fold_binary_loc) [(A & C) == D]: Remove transformation.
10633         * match.pd (X == C): Rewrite it here.
10634         (with_possible_nonzero_bits, with_possible_nonzero_bits2,
10635         with_certain_nonzero_bits2): New predicates.
10636         * tree-ssanames.c (get_nonzero_bits): Handle INTEGER_CST.
10638 2017-05-24  Nathan Sidwell  <nathan@acm.org>
10640         * lto-streamer-in.c (lto_input_data_block): Adjust T const cast to
10641         avoid warning.
10643         * auto-profile.c (afdo_propagate): Adjust T const cast to avoid
10644         warning.
10646 2017-05-24  Segher Boessenkool  <segher@kernel.crashing.org>
10648         * config/powerpcspe: New port.  Files are copied from the rs6000
10649         port, with "rs6000" in filenames replaced by "powerpcspe".
10651 2017-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
10653         PR rtl-optimization/80754
10654         * lra-remat.c (do_remat): Add overlap checks for dst_regno.
10656 2017-05-24  Sheldon Lobo  <smlobo@sheldon.us.oracle.com>
10658         * config/sparc/sparc.md (length): Return the correct value for -mflat
10659         sibcalls to match output_sibcall.
10661 2017-05-24  Segher Boessenkool  <segher@kernel.crashing.org>
10663         PR bootstrap/80860
10664         PR bootstrap/80843
10665         * config/rs6000/rs6000.c (struct machine_function): Add new field
10666         n_components.
10667         (rs6000_get_separate_components): Init that field, use it.
10668         (rs6000_components_for_bb): Use the field.
10670 2017-05-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10672         * config/arm/arm.c (arm_expand_prologue): Fix typo in comment.
10674 2017-05-24  Peter Bergner  <bergner@vnet.ibm.com>
10676         PR middle-end/80823
10677         * tree-cfg.c (group_case_labels_stmt): Delete increment of "i";
10679 2017-05-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10681         PR target/80725
10682         * config/s390/s390.c (s390_check_qrst_address): Check incoming
10683         address against address_operand predicate.
10684         * config/s390/s390.md ("*indirect_jump"): Swap alternatives.
10686 2017-05-24  Eric Botcazou  <ebotcazou@adacore.com>
10688         * var-tracking.c (track_expr_p): Do not return 0 for tracked record
10689         parameters passed indirectly.
10691 2017-05-23  Uros Bizjak  <ubizjak@gmail.com>
10693         * config/i386/i386.md (*movdi_internal): Remove SSE4
10694         alternative 18 (?r, *v).  Update insn attributes.
10695         (*movsi_internal): Remove SSE4 alternative 13 (?r, *v).
10696         Update insn attributes.
10697         (*zero_extendsidi2): Remove SSE4 alternative (?r, *x).
10698         Update insn attributes.
10699         * config/i386/sse.md (vec_extract<ssevecmodelower>_0): Remove SSE4
10700         alternative 1 (r, v). Remove isa attribute.
10701         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
10702         Always move value through stack for !TARGET_INTER_UNIT_MOVES_TO_VEC
10703         and !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
10705 2017-05-23  Tom de Vries  <tom@codesourcery.com>
10707         * doc/sourcebuild.texi (Directives, Verify compiler message): Document
10708         dg-line directive.
10710 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
10712         * cgraphunit.c (symbol_table::process_new_functions): Update.
10713         * ipa-fnsummary.c (pass_data_inline_parameters): Remove.
10714         (inline_generate_summary): Rename to ...
10715         (ipa_fn_summary_generate): ... this one.
10716         (inline_read_summary): Rename to ...
10717         (ipa_fn_summary_read): ... this one.
10718         (inline_write_summary): Rename to ...
10719         (ipa_fn_summary_write): ... this one.
10720         (inline_free_summary): Rename to ...
10721         (ipa_free_fn_summary): ... this one.
10722         (pass_data_local_fn_summary, pass_local_fn_summary,
10723         make_pass_local_fn_summary, pass_data_ipa_free_fn_summary,
10724         pass_ipa_free_fn_summary, make_pass_ipa_free_fn_summary,
10725         pass_data_ipa_fn_summary, pass_ipa_fn_summary,
10726         make_pass_ipa_fn_summary): New.
10727         * ipa-fnsummary.h (inline_generate_summary, inline_read_summary,
10728         inline_write_summary, inline_free_summary): Remove.
10729         (ipa_free_fn_summary) : New.
10730         * ipa-inline.c (ipa_inline): Update.
10731         (pass_ipa_inline): Do not generate summaries.
10732         * ipa.c (pass_data_ipa_free_fn_summary, pass_ipa_free_fn_summary):
10733         Remove.
10734         * passes.def: Replace pass_inline_parameters by pass_local_fn_summary
10735         and add pass_ipa_fn_summary.
10736         * tree-pass.h (make_pass_ipa_fn_summary, make_pass_local_fn_summary):
10737         New.
10738         (make_pass_inline_parameters): Remove.
10740 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
10742         * omp-low.c (struct omp_context): Remove "default_kind" member.
10743         Adjust all users.
10745         * omp-offload.c (execute_oacc_device_lower): Remove the
10746         parallelism dimensions function attributes for unparallelized
10747         OpenACC kernels constructs.
10749 2017-05-23  Martin Liska  <mliska@suse.cz>
10751         * cgraph.c (cgraph_node::get_create): Use symtab_node::dump_{asm_,}name
10752         functions.
10753         (cgraph_edge::make_speculative): Likewise.
10754         (cgraph_edge::resolve_speculation): Likewise.
10755         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
10756         (cgraph_node::dump): Likewise.
10757         * cgraph.h: Likewise.
10758         * cgraphunit.c (analyze_functions): Likewise.
10759         (symbol_table::compile): Likewise.
10760         * ipa-cp.c (print_all_lattices): Likewise.
10761         (determine_versionability): Likewise.
10762         (initialize_node_lattices): Likewise.
10763         (ipcp_verify_propagated_values): Likewise.
10764         (estimate_local_effects): Likewise.
10765         (update_profiling_info): Likewise.
10766         (create_specialized_node): Likewise.
10767         (perhaps_add_new_callers): Likewise.
10768         (decide_about_value): Likewise.
10769         (decide_whether_version_node): Likewise.
10770         (identify_dead_nodes): Likewise.
10771         (ipcp_store_bits_results): Likewise.
10772         * ipa-devirt.c (dump_targets): Likewise.
10773         (ipa_devirt): Likewise.
10774         * ipa-icf.c (sem_item::dump): Likewise.
10775         (sem_function::equals): Likewise.
10776         (sem_variable::equals): Likewise.
10777         (sem_item_optimizer::read_section): Likewise.
10778         (sem_item_optimizer::execute): Likewise.
10779         (congruence_class::dump): Likewise.
10780         * ipa-inline-analysis.c (dump_ipa_call_summary): Likewise.
10781         (dump_inline_summary): Likewise.
10782         (estimate_node_size_and_time): Likewise.
10783         (inline_analyze_function): Likewise.
10784         * ipa-inline-transform.c (inline_call): Likewise.
10785         * ipa-inline.c (report_inline_failed_reason): Likewise.
10786         (want_early_inline_function_p): Likewise.
10787         (edge_badness): Likewise.
10788         (update_edge_key): Likewise.
10789         (inline_small_functions): Likewise.
10790         * ipa-profile.c (ipa_profile): Likewise.
10791         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
10792         (ipa_make_edge_direct_to_target): Likewise.
10793         (remove_described_reference): Likewise.
10794         (ipa_impossible_devirt_target): Likewise.
10795         (propagate_controlled_uses): Likewise.
10796         (ipa_print_node_params): Likewise.
10797         (ipcp_transform_function): Likewise.
10798         * ipa-pure-const.c (pure_const_read_summary): Likewise.
10799         (propagate_pure_const): Likewise.
10800         * ipa-reference.c (generate_summary): Likewise.
10801         (read_write_all_from_decl): Likewise.
10802         (propagate): Likewise.
10803         (ipa_reference_read_optimization_summary): Likewise.
10804         * ipa-utils.c (ipa_merge_profiles): Likewise.
10805         * ipa.c (walk_polymorphic_call_targets): Likewise.
10806         (symbol_table::remove_unreachable_nodes): Likewise.
10807         (ipa_single_use): Likewise.
10808         * passes.c (execute_todo): Likewise.
10809         * predict.c (drop_profile): Likewise.
10810         * symtab.c (symtab_node::get_dump_name): New function.
10811         (symtab_node::dump_name): Likewise.
10812         (symtab_node::dump_asm_name): Likewise.
10813         (symtab_node::dump_references): Likewise.
10814         (symtab_node::dump_referring): Likewise.
10815         (symtab_node::dump_base): Likewise.
10816         (symtab_node::debug_symtab): Likewise.
10817         * tree-sra.c (convert_callers_for_node): Likewise.
10818         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
10819         * value-prof.c (init_node_map): Likewise.
10821 2017-05-23  Martin Liska  <mliska@suse.cz>
10823         * cgraph.h: Move symtab_node::dump_table to symbol_table::dump
10824         and symtab_node::debug_symtab to symbol_table::debug.
10825         * cgraphunit.c (analyze_functions): Use the renamed function.
10826         (symbol_table::compile): Likewise.
10827         * ipa-cp.c (ipcp_verify_propagated_values): Likewise.
10828         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
10829         * passes.c (execute_todo): Likewise.
10830         * symtab.c (symbol_table::dump): New function.
10831         * tree-ssa-structalias.c (ipa_pta_execute): Use the renamed function.
10833 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
10835         * ipa-fnsummary.c (estimate_node_size_and_time): Do not sanity check
10836         that nonconst implies exec.
10838 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
10840         * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
10841         inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
10842         (inline_edge_summary_vec): Turn into ...
10843         (ipa_call_summaries): ... this one.
10844         (redirect_to_unreachable, edge_set_predicate,
10845         evaluate_properties_for_edge, inline_summary_alloc,
10846         reset_ipa_call_summary, reset_inline_summary,
10847         inline_summary_t::duplicate): Update.
10848         (inline_edge_duplication_hook): Turn to ...
10849         (ipa_call_summary_t::duplicate): ... this one.
10850         (inline_edge_removal_hook): Turn to ...
10851         (ipa_call_summary_t::remove): ... this one.
10852         (dump_inline_edge_summary): Turn to ...
10853         (dump_ipa_call_summary): ... this one.
10854         (estimate_function_body_sizes): Update.
10855         (inline_update_callee_summaries): Update.
10856         (remap_edge_change_prob): Update.
10857         (remap_edge_summaries): Update.
10858         (inline_merge_summary): Update.
10859         (do_estimate_edge_time): Update.
10860         (inline_generate_summary): Update.
10861         (inline_read_section): Update.
10862         (inline_read_summary): Update.
10863         (inline_free_summary): Update.
10864         * ipa-inline.c (can_inline_edge_p): Update.
10865         (compute_inlined_call_time): Update.
10866         (want_inline_small_function_p): Update.
10867         (edge_badness): Update.
10868         (early_inliner): Update.
10869         * ipa-inline.h (inline_edge_summary): Turn to ...
10870         (ipa_call_summary): ... this one.
10871         (ipa_call_summary_t): New class.
10872         (inline_edge_summary_t, inline_edge_summary_vec): Remove.
10873         (ipa_call_summaries): New.
10874         (inline_edge_summary): Remove.
10875         (estimate_edge_growth): Update.
10876         * ipa-profile.c (ipa_propagate_frequency_1): Update.
10877         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
10878         * ipa-split.c (execute_split_functions): Update.
10879         * ipa.c (symbol_table::remove_unreachable_nodes): Update.
10881 2017-05-23  Tom de Vries  <tom@codesourcery.com>
10883         * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
10884         attributes): Document rdrand effective target.
10886 2017-05-23  Tom de Vries  <tom@codesourcery.com>
10888         * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
10889         attributes): Sort alphabetically.
10891 2017-05-23  Georg-Johann Lay  <avr@gjlay.de>
10893         * config/avr/genmultilib.awk: Use gsub instead of gensub.
10895 2017-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
10897         PR target/80718
10898         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Split
10899         V2DF/V2DI splat into two separate patterns, one that handles
10900         registers, and the other that only handles memory.  Drop support
10901         for splatting from a GPR on ISA 2.07 and then splitting the
10902         splat into direct move and splat.
10903         (vsx_splat_<mode>_reg): Likewise.
10904         (vsx_splat_<mode>_mem): Likewise.
10906 2017-05-22  Segher Boessenkool  <segher@kernel.crashing.org>
10908         * cfgcleanup.c (bb_is_just_return): Allow CLOBBERs.
10910 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
10912         PR middle-end/80809
10913         * omp-low.c (finish_taskreg_remap): New function.
10914         (finish_taskreg_scan): If unit size of ctx->record_type
10915         is non-constant, unshare the size expression and replace
10916         decls in it with possible outer var refs.
10918         PR middle-end/80809
10919         * gimplify.c (omp_add_variable): For GOVD_DEBUG_PRIVATE use
10920         GOVD_SHARED rather than GOVD_PRIVATE with it.
10921         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Expect
10922         GOVD_SHARED rather than GOVD_PRIVATE with GOVD_DEBUG_PRIVATE.
10924         PR middle-end/80853
10925         * omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
10926         as last argument to build_outer_var_ref for pointer bases of array
10927         section reductions.
10929 2017-05-19  Martin Sebor  <msebor@redhat.com>
10931         * print-tree.c (print_node): Print DECL_READ_P flag.
10933 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
10935         * Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h
10936         * auto-profile.c: Replace ipa-inline.h by ipa-fnsummary.h
10937         * cgraph.c: Likewise.
10938         * cgraphunit.c: Likewise.
10939         * gengtype.c: Likewise.
10940         * ipa-cp.c: Likewise.
10941         * ipa-devirt.c: Likewise.
10942         * ipa-icf.c: Likewise.
10943         * ipa-predicate.c: Likewise.
10944         * ipa-profile.c: Likewise.
10945         * ipa-prop.c: Likewise.
10946         * ipa-split.c: Likewise.
10947         * ipa.c: Likewise.
10948         * ipa-inline-analysis.c (inline_summaries, ipa_call_summaries,
10949         edge_predicate_pool, dump_inline_hints,
10950         inline_summary::account_size_time, redirect_to_unreachable,
10951         edge_set_predicate, set_hint_predicate,
10952         evaluate_conditions_for_known_args, evaluate_properties_for_edge,
10953         inline_summary_alloc, ipa_call_summary::reset, inline_summary::reset,
10954         inline_summary_t::remove, remap_hint_predicate_after_duplication,
10955         inline_summary_t::duplicate, ipa_call_summary_t::duplicate,
10956         ipa_call_summary_t::remove, initialize_growth_caches,
10957         free_growth_caches, dump_ipa_call_summary, dump_inline_summary,
10958         debug_inline_summary, dump_inline_summaries, initialize_inline_failed,
10959         mark_modified, unmodified_parm_1, unmodified_parm,
10960         unmodified_parm_or_parm_agg_item, eliminated_by_inlining_prob,
10961         set_cond_stmt_execution_predicate, set_switch_stmt_execution_predicate,
10962         compute_bb_predicates, will_be_nonconstant_expr_predicate,
10963         will_be_nonconstant_predicate, record_modified_bb_info,
10964         get_minimal_bb, record_modified, param_change_prob,
10965         phi_result_unknown_predicate, predicate_for_phi_result,
10966         array_index_predicate, clobber_only_eh_bb_p, fp_expression_p,
10967         estimate_function_body_sizes, compute_inline_parameters,
10968         compute_inline_parameters_for_curren, pass_data_inline_parameters,
10969         estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,
10970         inline_update_callee_summaries, remap_edge_change_prob,
10971         remap_edge_summaries, remap_hint_predicate, inline_merge_summary,
10972         inline_update_overall_summary, inline_indirect_intraprocedural_analysis,
10973         inline_analyze_function, inline_summary_t::insert,
10974         inline_generate_summary, read_ipa_call_summary, inline_read_section,
10975         inline_read_summary, write_ipa_call_summary, inline_write_summary,
10976         inline_free_summary): Move to ipa-fnsummary.h
10977         (predicate_t): Remove.
10978         * ipa-fnsummary.c: New file.
10979         * ipa-inline.h:  Do not include sreal.h and ipa-predicate.h
10980         (enum inline_hints_vals, inline_hints, agg_position_info,
10981         INLINE_SIZE_SCALE, size_time_entry, inline_summary, inline_summary_t,
10982         inline_summaries, ipa_call_summary, ipa_call_summary_t,
10983         ipa_call_summaries, debug_inline_summary, dump_inline_summaries,
10984         dump_inline_summary, dump_inline_hints, inline_generate_summary,
10985         inline_read_summary, inline_write_summary, inline_free_summary,
10986         inline_analyze_function, initialize_inline_failed,
10987         inline_merge_summary, inline_update_overall_summary,
10988         compute_inline_parameters): Move to ipa-fnsummary.h
10989         * ipa-fnsummary.h: New file.
10990         * ipa-inline-transform.h: Include ipa-inline.h.
10991         * ipa-inline.c: LIkewise.
10993 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
10995         * ipa-inline.c (edge_badness): Use inlined_time instead of
10996         inline_summaries->get.
10998 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
11000         * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
11002 2017-05-22  Nathan Sidwell  <nathan@acm.org>
11004         * doc/invoke.texi (fdump-translation-unit): Delete documentation.
11005         (fdump-lang): Document 'raw' option.
11006         * dumpfile.h (TDI_tu): Delete.
11007         * dumpfile.c (dump_files): Remove translation-unit.
11008         (FIRST_AUTO_NUMBERED_DUMP): Decrement.
11010 2017-05-22  Georg-Johann Lay  <avr@gjlay.de>
11012         * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
11013         command option from $(AWK) call.
11014         * config/avr/genmultilib.awk: Simplify and rewrite so that it
11015         generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
11016         [FORMAT]: Remove handling of variable.
11017         * config/avr/t-multilib: Regenerate.
11019 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
11021         * ipa-inline-analysis.c (inline_summary::reset): Do not reset
11022         self_time.
11023         (dump_inline_summary): Do not print self_time.
11024         (estimate_function_body_sizes): Do not set self_time.
11025         (compute_inline_parameters): Likewise.
11026         (inline_read_section, inline_write_summary): Do not stream self_time.
11027         * ipa-inline.h (inline_summary): Drop self_time.
11029 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
11031         * ipa-inline-analysis.c (account_size_time): Rename to ...
11032         (inline_summary::account_size_time): ... this one.
11033         (reset_ipa_call_summary): Turn to ...
11034         (ipa_call_summary::reset): ... this one.
11035         (reset_inline_summary): Turn to ...
11036         (inline_summary::reset): ... this one.
11037         (inline_summary_t::remove): Update.
11038         (inline_summary_t::duplicate): Update.
11039         (ipa_call_summary_t::remove): Update.
11040         (dump_inline_summary): Update.
11041         (estimate_function_body_sizes): Update.
11042         (compute_inline_parameters): Update.
11043         (estimate_node_size_and_time): Update.
11044         (inline_merge_summary): Update.
11045         (inline_update_overall_summary): Update.
11046         (inline_read_section): Update.
11047         (inline_write_summary): Update.
11048         * ipa-inline.h (inline_summary): Rename entry to size_time_table;
11049         add account_size_time and reset member functions.
11050         (ipa_call_summary): Add reset function.
11051         * ipa-predicate.h (predicate::operator &): Constify.
11053 2017-05-22  Richard Biener  <rguenther@suse.de>
11055         * df-scan.c (df_insn_refs_verify): Speedup when not verifying.
11057 2017-05-19  Jason Merrill  <jason@redhat.com>
11059         * tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
11061 2017-05-19  Marek Polacek  <polacek@redhat.com>
11063         PR sanitizer/80800
11064         * fold-const.c (extract_muldiv_1) <case TRUNC_DIV_EXPR>: Add
11065         TYPE_OVERFLOW_WRAPS checks.
11067 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
11069         * tree-core.h (enum omp_clause_default_kind): Add
11070         "OMP_CLAUSE_DEFAULT_PRESENT".
11071         * tree-pretty-print.c (dump_omp_clause): Handle it.
11072         * gimplify.c (enum gimplify_omp_var_data): Add
11073         "GOVD_MAP_FORCE_PRESENT".
11074         (gimplify_adjust_omp_clauses_1): Map it to
11075         "GOMP_MAP_FORCE_PRESENT".
11076         (oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
11078         * gimplify.c (oacc_default_clause): Clarify.
11080 2017-05-19  Nathan Sidwell  <nathan@acm.org>
11082         LANG_HOOK_REGISTER_DUMPS
11083         * toplev.c (general_init): Call register dump lang hook.
11084         * doc/invoke.texi: Document -fdump-lang option family.
11085         * dumpfile.c (dump_files): Remove class dump here.
11086         (FIRST_AUTO_NUMBERED_DUMP): Adjust.
11087         * dumpfile.h (tree_dump_index): Remove TDI_class.
11088         * langhooks-def.h (lhd_register_dumps): Declare.
11089         (LANG_HOOKS_REGISTER_DUMPS): Define.
11090         (LANG_HOOKS_INITIALIZER): Add it.
11091         * langhooks.c (lhd_register_dumps): Define.
11092         * langhooks.h (struct lang_hooks): Add register_dumps.
11094 2017-05-19  Nathan Sidwell  <nathan@acm.org>
11096         * context.h (context::set_passes): New.
11097         * context.c (context::context): Do not create pass manager.
11098         * toplev.c (general_init): Create pass manager here.
11100 2017-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
11102         * config/rs6000/rs6000.md (splitter to load of -1 and mask): Don't
11103         use this splitter if two add or or instructions would also work for
11104         the constant we want to generate.
11106 2017-05-19  Richard Biener  <rguenther@suse.de>
11108         PR build/80821
11109         * genmatch.c (dt_node::gen_kids_1): Add missing scope around
11110         predicate evaluation.
11112 2017-05-19  Jan Hubicka  <hubicka@ucw.cz>
11114         * ipa-inline.h (ipa_call_summary): Turn sizes into signed;
11115         add ctor.
11116         * ipa-inline.c (want_inline_small_function_p): Do not cast to
11117         unsigned.
11119 2017-05-19  Jan Hubicka  <hubicka@ucw.cz>
11121         * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
11122         inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
11123         (inline_edge_summary_vec): Turn into ...
11124         (ipa_call_summaries): ... this one.
11125         (redirect_to_unreachable, edge_set_predicate,
11126         evaluate_properties_for_edge, inline_summary_alloc,
11127         reset_ipa_call_summary, reset_inline_summary,
11128         inline_summary_t::duplicate): Update.
11129         (inline_edge_duplication_hook): Turn to ...
11130         (ipa_call_summary_t::duplicate): ... this one.
11131         (inline_edge_removal_hook): Turn to ...
11132         (ipa_call_summary_t::remove): ... this one.
11133         (dump_inline_edge_summary): Turn to ...
11134         (dump_ipa_call_summary): ... this one.
11135         (estimate_function_body_sizes): Update.
11136         (inline_update_callee_summaries): Update.
11137         (remap_edge_change_prob): Update.
11138         (remap_edge_summaries): Update.
11139         (inline_merge_summary): Update.
11140         (do_estimate_edge_time): Update.
11141         (inline_generate_summary): Update.
11142         (inline_read_section): Update.
11143         (inline_read_summary): Update.
11144         (inline_free_summary): Update.
11145         * ipa-inline.c (can_inline_edge_p): Update.
11146         (compute_inlined_call_time): Update.
11147         (want_inline_small_function_p): Update.
11148         (edge_badness): Update.
11149         (early_inliner): Update.
11150         * ipa-inline.h (inline_edge_summary): Turn to ...
11151         (ipa_call_summary): ... this one.
11152         (ipa_call_summary_t): New class.
11153         (inline_edge_summary_t, inline_edge_summary_vec): Remove.
11154         (ipa_call_summaries): New.
11155         (inline_edge_summary): Remove.
11156         (estimate_edge_growth): Update.
11157         * ipa-profile.c (ipa_propagate_frequency_1): Update.
11158         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
11159         * ipa-split.c (execute_split_functions): Update.
11160         * ipa.c (symbol_table::remove_unreachable_nodes): Update.
11162 2017-05-19  Richard Biener  <rguenther@suse.de>
11164         PR middle-end/80764
11165         * cfgexpand.c (expand_gimple_cond): Fix loop fixup.
11167 2017-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
11169         * config/rs6000/rs6000.c (struct machine_function): Add field
11170         fpr_is_wrapped_separately.
11171         (rs6000_get_separate_components): Use 64 components.  Handle the
11172         new FPR components.
11173         (rs6000_components_for_bb): Handle the FPR components.
11174         (rs6000_emit_prologue_components): Handle the FPR components.
11175         (rs6000_emit_epilogue_components): Handle the FPR components.
11176         (rs6000_set_handled_components): Handle the FPR components.
11177         (rs6000_emit_prologue): Don't output prologue code for those FPRs
11178         that are already separately shrink-wrapped.
11179         (rs6000_emit_epilogue): Don't output epilogue code for those FPRs
11180         that are already separately shrink-wrapped.
11182 2017-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
11184         PR target/80510
11185         * config/rs6000/predicates.md (simple_offsettable_mem_operand):
11186         New predicate.
11188         * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
11189         (define_peephole2 for Altivec d-form load): Add peepholes to catch
11190         cases where the register allocator uses a move and an offsettable
11191         memory operation to/from a FPR register on ISA 2.06/2.07.
11192         (define_peephole2 for Altivec d-form store): Likewise.
11194 2017-05-18  Uros Bizjak  <ubizjak@gmail.com>
11196         PR target/80799
11197         * config/i386/mmx.md (*mov<mode>_internal): Enable
11198         alternatives 11, 12, 13 and 14 also for 32bit targets.
11199         Remove alternatives 15, 16, 17 and 18.
11200         * config/i386/sse.md (vec_concatv2di): Change
11201         alternative (!x, *y) to (x, ?!*Yn).
11203 2017-05-18  Paolo Carlini  <paolo.carlini@oracle.com>
11205         * dumpfile.h (enum dump_kind): Remove stray comma.
11207 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
11209         * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
11210         * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
11211         predicate::num_conditions
11212         (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
11213         (CHANGED): turn into predicate::changed.
11214         (agg_position_info): Move to ipa-predicate.h
11215         (add_condition, predicate::add_clause, predicate::operator &=,
11216         predicate::or_with, predicate::evaluate, predicate::probability,
11217         dump_condition, dump_clause, predicate::dump,
11218         predicate::remap_after_duplication, predicate::remap_after_inlining,
11219         predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
11220         (evaluate_conditions_for_known_args): Update.
11221         (set_cond_stmt_execution_predicate): Update.
11222         * ipa-inline.h: Include ipa-predicate.h
11223         (condition, inline_param_summary, conditions, agg_position_info,
11224         predicate): Move to ipa-predicate.h
11225         * ipa-predicate.c: New file.
11226         * ipa-predicate.h: New file.
11228 2017-05-18  Wilco Dijkstra  <wdijkstr@arm.com>
11230         * final.c (leaf_function_p): Check we are not in a sequence.
11232 2017-05-18  Martin Liska  <mliska@suse.cz>
11234         * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
11235         * dumpfile.c (dump_register): Use new enum dump_kind.
11236         (get_dump_file_name): Likewise.
11237         (dump_enable_all): Likewise.
11238         (dump_switch_p_1): Likewise.
11239         (enable_rtl_dump_file): Remove usage of TDF_RTL.
11240         * dumpfile.h (enum dump_kind): New enum type.
11241         (struct dump_file_info): Create constructor and
11242         format fields and comments.
11243         * passes.c (pass_manager::register_one_dump_file):
11244         Use num dump_kind.
11245         * statistics.c (statistics_early_init): Likewise.
11246         * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
11247         TDF_TREE with TDF_SLIM.
11248         (gather_memory_references_ref): Likewise.
11250 2017-05-18  Martin Liska  <mliska@suse.cz>
11252         * vec.h (struct vnull): Use it.
11254 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
11256         * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
11257         (true_predicate, false_predicate, true_predicate_p,
11258         false_predicate_p): Remove.
11259         (single_cond_predicate, not_inlined_predicate): Turn to member function
11260         in ipa-inline.h
11261         (add_condition): Update.
11262         (add_clause): Turn to...
11263         (predicate::add_clause): ... this one; update; allow passing NULL
11264         as parameter.
11265         (and_predicates): Turn to ...
11266         (predicate::operator &=): ... this one.
11267         (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
11268         (or_predicates): Turn to ...
11269         (predicate::or_with): ... this one.
11270         (evaluate_predicate): Turn to ...
11271         (predicate::evaluate): ... this one.
11272         (predicate_probability): Turn to ...
11273         (predicate::probability): ... this one.
11274         (dump_condition): Update.
11275         (dump_predicate): Turn to ...
11276         (predicate::dump): ... this one.
11277         (account_size_time): Update.
11278         (edge_set_predicate): Update.
11279         (set_hint_predicate): UPdate.
11280         (evaluate_conditions_for_known_args): Update.
11281         (evaluate_properties_for_edge): Update.
11282         (remap_predicate_after_duplication): Turn to...
11283         (predicate::remap_after_duplication): ... this one.
11284         (remap_hint_predicate_after_duplication): Update.
11285         (inline_summary_t::duplicate): UPdate.
11286         (dump_inline_edge_summary): Update.
11287         (dump_inline_summary): Update.
11288         (set_cond_stmt_execution_predicate): Update.
11289         (set_switch_stmt_execution_predicate): Update.
11290         (compute_bb_predicates): Update.
11291         (will_be_nonconstant_expr_predicate): Update.
11292         (will_be_nonconstant_predicate): Update.
11293         (phi_result_unknown_predicate): Update.
11294         (predicate_for_phi_result): Update.
11295         (array_index_predicate): Update.
11296         (estimate_function_body_sizes): Update.
11297         (estimate_node_size_and_time): Update.
11298         (estimate_ipcp_clone_size_and_time): Update.
11299         (remap_predicate): Rename to ...
11300         (predicate::remap_after_inlining): ... this one.
11301         (remap_hint_predicate): Update.
11302         (inline_merge_summary): Update.
11303         (inline_update_overall_summary): Update.
11304         (estimate_size_after_inlining): Update.
11305         (read_predicate): Rename to ...
11306         (predicate::stream_in): ... this one.
11307         (read_inline_edge_summary): Update.
11308         (write_predicate): Rename to ...
11309         (predicate::stream_out): ... this one.
11310         (write_inline_edge_summary): Update.
11311         * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
11312         (clause_t): Turn to uint32_t
11313         (predicate): Turn to class; implement constructor and operators
11314         ==, !=, &
11315         (size_time_entry): Update.
11316         (inline_summary): Update.
11317         (inline_edge_summary): Update.
11319 2017-05-18  Marc Glisse  <marc.glisse@inria.fr>
11321         * fold-const.c (fold_binary_loc): Move transformation...
11322         * match.pd (C - X CMP X): ... here.
11324 2017-05-18  Sheldon Lobo  <sheldon.lobo@oracle.com>
11326         * config/sparc/sparc.c (sparc_option_override): Set function
11327         alignment for -mcpu=niagara7 to 64 to match the I$ line.
11328         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
11329         latency to 1.
11330         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
11331         latency to 2.
11332         * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
11334 2017-05-18  Marek Polacek  <polacek@redhat.com>
11336         PR sanitizer/80797
11337         * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
11338         (pass_ubsan::execute): Call gimple_assign_single_p instead of
11339         gimple_assign_load_p.
11341 2017-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
11343         PR middle-end/80692
11344         * real.c (do_compare): Give decimal_do_compare preference over
11345         comparing just the signs.
11347 2017-05-17  Uros Bizjak  <ubizjak@gmail.com>
11349         * doc/md.texi (Canonicalization of Instructions): Describe the
11350         canonical form of instructions that inherently set a condition
11351         code register.
11353 2017-05-17  Peter Bergner  <bergner@vnet.ibm.com>
11355         PR middle-end/80775
11356         * tree-cfg.c: Move deletion of unreachable case statements to after
11357         the merging of consecutive case labels.
11359 2017-05-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11361         * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
11362         readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
11363         restoring of callee-saved registers.
11365 2017-05-17  Eric Botcazou  <ebotcazou@adacore.com>
11367         * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
11368         * config/visium/visium.c (single_set_and_flags): Likewise.
11369         * config/visium/visium.md (Substitutions): Likewise.
11371 2017-05-17  Martin Liska  <mliska@suse.cz>
11373         * cfg.c: Introduce dump_flags_t type and
11374         use it instead of int type.
11375         * cfg.h: Likewise.
11376         * cfghooks.c: Likewise.
11377         * cfghooks.h (struct cfg_hooks): Likewise.
11378         * cfgrtl.c: Likewise.
11379         * cfgrtl.h: Likewise.
11380         * cgraph.c (cgraph_node::get_body): Likewise.
11381         * coretypes.h: Likewise.
11382         * domwalk.c: Likewise.
11383         * domwalk.h: Likewise.
11384         * dumpfile.c (struct dump_option_value_info): Likewise.
11385         (dump_enable_all): Likewise.
11386         (dump_switch_p_1): Likewise.
11387         (opt_info_switch_p): Likewise.
11388         * dumpfile.h (enum tree_dump_index): Likewise.
11389         (struct dump_file_info): Likewise.
11390         * genemit.c: Likewise.
11391         * generic-match-head.c: Likewise.
11392         * gengtype.c (open_base_files): Likewise.
11393         * gimple-pretty-print.c: Likewise.
11394         * gimple-pretty-print.h: Likewise.
11395         * graph.c (print_graph_cfg): Likewise.
11396         * graphite-scop-detection.c (dot_all_sese): Likewise.
11397         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
11398         * loop-unroll.c (report_unroll): Likewise.
11399         * passes.c (pass_manager::register_one_dump_file): Likewise.
11400         * print-tree.c: Likewise.
11401         * statistics.c: Likewise.
11402         * tree-cfg.c: Likewise.
11403         * tree-cfg.h: Likewise.
11404         * tree-dfa.c: Likewise.
11405         * tree-dfa.h: Likewise.
11406         * tree-dump.c (dump_function): Likewise.
11407         * tree-dump.h (struct dump_info): Likewise.
11408         * tree-pretty-print.c: Likewise.
11409         * tree-pretty-print.h: Likewise.
11410         * tree-ssa-live.c: Likewise.
11411         * tree-ssa-live.h: Likewise.
11412         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
11413         * tree-vect-loop.c: Likewise.
11414         * tree-vect-slp.c: Likewise.
11416 2017-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
11417             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11419         PR tree-optimization/80457
11420         * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
11421         of all arguments to a statement as scalar_to_vec operations.
11422         (vectorizable_call): Adjust call to vect_model_simple_cost for
11423         new parameter.
11424         (vectorizable_conversion): Likewise.
11425         (vectorizable_assignment): Likewise.
11426         (vectorizable_shift): Likewise.
11427         (vectorizable_operation): Likewise.
11428         (vectorizable_comparison): Likewise.
11429         (vect_is_simple_cond): Record the def types for operands.
11430         (vectorizable_condition): Likewise, call vect_model_simple_cost.
11431         * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
11432         for statement argument count.
11434 2017-05-16  Carl Love  <cel@us.ibm.com>
11436         * config/rs6000/rs6000-c: Add support for built-in functions
11437         vector unsigned long long vec_bperm (vector unsigned long long,
11438                                              vector unsigned char)
11439         vector signed long long vec_mule (vector signed int,
11440                                           vector signed int)
11441         vector unsigned long long vec_mule (vector unsigned int,
11442                                             vector unsigned int)
11443         vector signed long long vec_mulo (vector signed int,
11444                                           vector signed int)
11445         vector unsigned long long vec_mulo (vector unsigned int,
11446                                             vector unsigned int)
11447         vector signed char vec_sldw (vector signed char,
11448                                      vector signed char,
11449                                      const int)
11450         vector unsigned char vec_sldw (vector unsigned char,
11451                                        vector unsigned char,
11452                                        const int)
11453         vector signed short vec_sldw (vector signed short,
11454                                       vector signed short,
11455                                       const int)
11456         vector unsigned short vec_sldw (vector unsigned short,
11457                                         vector unsigned short,
11458                                         const int)
11459         vector signed int vec_sldw (vector signed int,
11460                                     vector signed int,
11461                                     const int)
11462         vector unsigned int vec_sldw (vector unsigned int,
11463                                       vector unsigned int,
11464                                       const int)
11465         vector signed long long vec_sldw (vector signed long long,
11466                                           vector signed long long,
11467                                           const int)
11468         vector unsigned long long vec_sldw (vector unsigned long long,
11469                                             vector unsigned long long,
11470                                             const int)
11471         * config/rs6000/rs6000-c: Add support for built-in functions
11472         * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
11473         * config/rs6000/altivec.h: Add defintion for vec_sldw.
11474         * doc/extend.texi: Update the built-in documentation for the
11475         new built-in functions.
11477 2017-05-16  Marek Polacek  <polacek@redhat.com>
11479         PR sanitizer/80536
11480         PR sanitizer/80386
11481         * tree.c (save_expr): Don't fold the expression.
11483 2017-05-16  Uros Bizjak  <ubizjak@gmail.com>
11485         * config/i386/i386.md (*movsi_internal): Split (?rm,*y) alternative
11486         to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
11487         and (?*y,m).  Update insn attributes.
11489 2017-05-16  Martin Liska  <mliska@suse.cz>
11491         * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
11492         flags argument of print_gimple_stmt, print_gimple_expr,
11493         print_generic_stmt and print_generic_expr.
11494         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
11495         * coretypes.h: Likewise.
11496         * except.c (dump_eh_tree): Likewise.
11497         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
11498         * gimple-pretty-print.h: Likewise.
11499         * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
11500         (backprop::push_to_worklist): Likewise.
11501         (backprop::pop_from_worklist): Likewise.
11502         (backprop::process_use): Likewise.
11503         (backprop::intersect_uses): Likewise.
11504         (note_replacement): Likewise.
11505         * gimple-ssa-store-merging.c
11506         (pass_store_merging::terminate_all_aliasing_chains): Likewise.
11507         (imm_store_chain_info::coalesce_immediate_stores): Likewise.
11508         (pass_store_merging::execute): Likewise.
11509         * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
11510         (ssa_base_cand_dump_callback): Likewise.
11511         (dump_incr_vec): Likewise.
11512         (replace_refs): Likewise.
11513         (replace_mult_candidate): Likewise.
11514         (create_add_on_incoming_edge): Likewise.
11515         (create_phi_basis): Likewise.
11516         (insert_initializers): Likewise.
11517         (all_phi_incrs_profitable): Likewise.
11518         (introduce_cast_before_cand): Likewise.
11519         (replace_one_candidate): Likewise.
11520         * gimplify.c (gimplify_expr): Likewise.
11521         * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
11522         (set_rename): Likewise.
11523         (rename_uses): Likewise.
11524         (copy_loop_phi_nodes): Likewise.
11525         (add_close_phis_to_merge_points): Likewise.
11526         (copy_loop_close_phi_args): Likewise.
11527         (copy_cond_phi_args): Likewise.
11528         (graphite_copy_stmts_from_block): Likewise.
11529         (translate_pending_phi_nodes): Likewise.
11530         * graphite-poly.c (print_pdr): Likewise.
11531         (dump_gbb_cases): Likewise.
11532         (dump_gbb_conditions): Likewise.
11533         (print_scop_params): Likewise.
11534         * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
11535         (build_cross_bb_scalars_use): Likewise.
11536         (gather_bbs::before_dom_children): Likewise.
11537         * hsa-dump.c (dump_hsa_immed): Likewise.
11538         * ipa-cp.c (print_ipcp_constant_value): Likewise.
11539         (get_replacement_map): Likewise.
11540         * ipa-inline-analysis.c (dump_condition): Likewise.
11541         (estimate_function_body_sizes): Likewise.
11542         * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
11543         (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
11544         * ipa-prop.c (ipa_dump_param): Likewise.
11545         (ipa_print_node_jump_functions_for_edge): Likewise.
11546         (ipa_modify_call_arguments): Likewise.
11547         (ipa_modify_expr): Likewise.
11548         (ipa_dump_param_adjustments): Likewise.
11549         (ipa_dump_agg_replacement_values): Likewise.
11550         (ipcp_modif_dom_walker::before_dom_children): Likewise.
11551         * ipa-pure-const.c (check_stmt): Likewise.
11552         (pass_nothrow::execute): Likewise.
11553         * ipa-split.c (execute_split_functions): Likewise.
11554         * omp-offload.c (dump_oacc_loop_part): Likewise.
11555         (dump_oacc_loop): Likewise.
11556         * trans-mem.c (tm_log_emit): Likewise.
11557         (tm_memopt_accumulate_memops): Likewise.
11558         (dump_tm_memopt_set): Likewise.
11559         (dump_tm_memopt_transform): Likewise.
11560         * tree-cfg.c (gimple_verify_flow_info): Likewise.
11561         (print_loop): Likewise.
11562         * tree-chkp-opt.c (chkp_print_addr): Likewise.
11563         (chkp_gather_checks_info): Likewise.
11564         (chkp_get_check_result): Likewise.
11565         (chkp_remove_check_if_pass): Likewise.
11566         (chkp_use_outer_bounds_if_possible): Likewise.
11567         (chkp_reduce_bounds_lifetime): Likewise.
11568         * tree-chkp.c (chkp_register_addr_bounds): Likewise.
11569         (chkp_mark_completed_bounds): Likewise.
11570         (chkp_register_incomplete_bounds): Likewise.
11571         (chkp_mark_invalid_bounds): Likewise.
11572         (chkp_maybe_copy_and_register_bounds): Likewise.
11573         (chkp_build_returned_bound): Likewise.
11574         (chkp_get_bound_for_parm): Likewise.
11575         (chkp_build_bndldx): Likewise.
11576         (chkp_get_bounds_by_definition): Likewise.
11577         (chkp_generate_extern_var_bounds): Likewise.
11578         (chkp_get_bounds_for_decl_addr): Likewise.
11579         * tree-chrec.c (chrec_apply): Likewise.
11580         * tree-data-ref.c (dump_data_reference): Likewise.
11581         (dump_subscript): Likewise.
11582         (dump_data_dependence_relation): Likewise.
11583         (analyze_overlapping_iterations): Likewise.
11584         * tree-inline.c (expand_call_inline): Likewise.
11585         (tree_function_versioning): Likewise.
11586         * tree-into-ssa.c (dump_defs_stack): Likewise.
11587         (dump_currdefs): Likewise.
11588         (dump_names_replaced_by): Likewise.
11589         (dump_update_ssa): Likewise.
11590         (update_ssa): Likewise.
11591         * tree-object-size.c (pass_object_sizes::execute): Likewise.
11592         * tree-parloops.c (build_new_reduction): Likewise.
11593         (try_create_reduction_list): Likewise.
11594         (ref_conflicts_with_region): Likewise.
11595         (oacc_entry_exit_ok_1): Likewise.
11596         (oacc_entry_exit_single_gang): Likewise.
11597         * tree-pretty-print.h: Likewise.
11598         * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
11599         (get_scalar_evolution): Likewise.
11600         (add_to_evolution): Likewise.
11601         (get_loop_exit_condition): Likewise.
11602         (analyze_evolution_in_loop): Likewise.
11603         (analyze_initial_condition): Likewise.
11604         (analyze_scalar_evolution): Likewise.
11605         (instantiate_scev): Likewise.
11606         (number_of_latch_executions): Likewise.
11607         (gather_chrec_stats): Likewise.
11608         (final_value_replacement_loop): Likewise.
11609         (scev_const_prop): Likewise.
11610         * tree-sra.c (dump_access): Likewise.
11611         (disqualify_candidate): Likewise.
11612         (create_access): Likewise.
11613         (reject): Likewise.
11614         (maybe_add_sra_candidate): Likewise.
11615         (create_access_replacement): Likewise.
11616         (analyze_access_subtree): Likewise.
11617         (analyze_all_variable_accesses): Likewise.
11618         (sra_modify_assign): Likewise.
11619         (initialize_constant_pool_replacements): Likewise.
11620         (find_param_candidates): Likewise.
11621         (decide_one_param_reduction): Likewise.
11622         (replace_removed_params_ssa_names): Likewise.
11623         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
11624         * tree-ssa-copy.c (dump_copy_of): Likewise.
11625         (copy_prop_visit_cond_stmt): Likewise.
11626         * tree-ssa-dce.c (mark_operand_necessary): Likewise.
11627         * tree-ssa-dom.c (pass_dominator::execute): Likewise.
11628         (record_equivalences_from_stmt): Likewise.
11629         * tree-ssa-dse.c (compute_trims): Likewise.
11630         (delete_dead_call): Likewise.
11631         (delete_dead_assignment): Likewise.
11632         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
11633         (forward_propagate_into_cond): Likewise.
11634         (pass_forwprop::execute): Likewise.
11635         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
11636         * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
11637         Likewise.
11638         (move_computations_worker): Likewise.
11639         (execute_sm): Likewise.
11640         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
11641         (remove_exits_and_undefined_stmts): Likewise.
11642         (remove_redundant_iv_tests): Likewise.
11643         * tree-ssa-loop-ivopts.c (dump_use): Likewise.
11644         (adjust_iv_update_pos): Likewise.
11645         * tree-ssa-math-opts.c (bswap_replace): Likewise.
11646         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
11647         (value_replacement): Likewise.
11648         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
11649         * tree-ssa-pre.c (print_pre_expr): Likewise.
11650         (get_representative_for): Likewise.
11651         (create_expression_by_pieces): Likewise.
11652         (insert_into_preds_of_block): Likewise.
11653         (eliminate_insert): Likewise.
11654         (eliminate_dom_walker::before_dom_children): Likewise.
11655         (eliminate): Likewise.
11656         (remove_dead_inserted_code): Likewise.
11657         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
11658         * tree-ssa-reassoc.c (get_rank): Likewise.
11659         (eliminate_duplicate_pair): Likewise.
11660         (eliminate_plus_minus_pair): Likewise.
11661         (eliminate_not_pairs): Likewise.
11662         (undistribute_ops_list): Likewise.
11663         (eliminate_redundant_comparison): Likewise.
11664         (update_range_test): Likewise.
11665         (optimize_range_tests_var_bound): Likewise.
11666         (optimize_vec_cond_expr): Likewise.
11667         (rewrite_expr_tree): Likewise.
11668         (rewrite_expr_tree_parallel): Likewise.
11669         (linearize_expr): Likewise.
11670         (break_up_subtract): Likewise.
11671         (linearize_expr_tree): Likewise.
11672         (attempt_builtin_powi): Likewise.
11673         (attempt_builtin_copysign): Likewise.
11674         (transform_stmt_to_copy): Likewise.
11675         (transform_stmt_to_multiply): Likewise.
11676         (dump_ops_vector): Likewise.
11677         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
11678         (print_scc): Likewise.
11679         (set_ssa_val_to): Likewise.
11680         (visit_reference_op_store): Likewise.
11681         (visit_use): Likewise.
11682         (sccvn_dom_walker::before_dom_children): Likewise.
11683         (run_scc_vn): Likewise.
11684         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
11685         Likewise.
11686         (expr_hash_elt::print): Likewise.
11687         (const_and_copies::pop_to_marker): Likewise.
11688         (const_and_copies::record_const_or_copy_raw): Likewise.
11689         * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
11690         * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
11691         (dump_predicates): Likewise.
11692         (find_uninit_use): Likewise.
11693         (warn_uninitialized_phi): Likewise.
11694         (pass_late_warn_uninitialized::execute): Likewise.
11695         * tree-ssa.c (verify_vssa): Likewise.
11696         (verify_ssa): Likewise.
11697         (maybe_optimize_var): Likewise.
11698         * tree-vrp.c (dump_value_range): Likewise.
11699         (dump_all_value_ranges): Likewise.
11700         (dump_asserts_for): Likewise.
11701         (register_edge_assert_for_2): Likewise.
11702         (vrp_visit_cond_stmt): Likewise.
11703         (vrp_visit_switch_stmt): Likewise.
11704         (vrp_visit_stmt): Likewise.
11705         (vrp_visit_phi_node): Likewise.
11706         (simplify_cond_using_ranges_1): Likewise.
11707         (fold_predicate_in): Likewise.
11708         (evrp_dom_walker::before_dom_children): Likewise.
11709         (evrp_dom_walker::push_value_range): Likewise.
11710         (evrp_dom_walker::pop_value_range): Likewise.
11711         (execute_early_vrp): Likewise.
11713 2017-05-16  Richard Biener  <rguenther@suse.de>
11715         * dwarf2out.c (loc_list_from_tree_1): Do not create
11716         DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
11718 2017-05-16  Richard Biener  <rguenther@suse.de>
11720         * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
11721         just generated.
11722         (note_variable_value_in_expr): If we resolved the decl ref
11723         do not push to the stack.
11725 2017-05-16  Matthew Wahab  <matthew.wahab@arm.com>
11727         * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
11728         operations in fast-math mode.
11729         (vaddq_f16): Likewise.
11730         (vmul_f16): Likewise.
11731         (vmulq_f16): Likewise.
11732         (vsub_f16): Likewise.
11733         (vsubq_f16): Likewise.
11734         * config/arm/neon.md (add<mode>3): New.
11735         (sub<mode>3): New.
11736         (fma:<VH:mode>3): New.  Also remove outdated comment.
11737         (mul<mode>3): New.
11739 2017-05-16  Martin Liska  <mliska@suse.cz>
11741         PR ipa/79849.
11742         PR ipa/79850.
11743         * ipa-devirt.c (warn_types_mismatch): Fix typo.
11744         (odr_types_equivalent_p): Likewise.
11746 2017-05-15  Sylvestre Ledru  <sylvestre@debian.org>
11748         * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
11750 2017-05-15  Uros Bizjak  <ubizjak@gmail.com>
11752         PR target/80425
11753         * config/i386.i386.md (*zero_extendsidi2): Do not penalize
11754         non-interunit SSE move alternatives with '?'.
11755         (zero-extendsidi peephole2): New peephole to skip intermediate
11756         general register in SSE zero-extend sequence.
11758 2017-05-15  Jeff Law  <law@redhat.com>
11760         * reorg.c (relax_delay_slots): Create a new variable to hold
11761         the temporary target rather than clobbering TARGET_LABEL.
11763         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
11764         missing argument to extract_bit_field call.
11765         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
11767 2017-05-15  Martin Liska  <mliska@suse.cz>
11769         PR driver/31468
11770         * gcc.c (process_command): Do not allow empty argument of -o option.
11772 2017-05-15  Renlin Li  <renlin.li@arm.com>
11774         * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
11775         * config/aarch64/aarch64.c (aarch64_expand_call): Define.
11776         * config/aarch64/constraints.md (Usf): Add long call check.
11777         * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
11778         (call_value): Likewise.
11779         (sibcall): Likewise.
11780         (sibcall_value): Likewise.
11781         (call_insn): New.
11782         (call_value_insn): New.
11783         (sibcall_insn): Update rtx pattern.
11784         (sibcall_value_insn): Likewise.
11785         (call_internal): Remove.
11786         (call_value_internal): Likewise.
11787         (sibcall_internal): Likewise.
11788         (sibcall_value_internal): Likewise.
11789         (call_reg): Likewise.
11790         (call_symbol): Likewise.
11791         (call_value_reg): Likewise.
11792         (call_value_symbol): Likewise.
11794 2017-05-14  Krister Walfridsson  <krister.walfridsson@gmail.com>
11796         PR target/80600
11797         * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
11799 2017-05-14  Uros Bizjak  <ubizjak@gmail.com>
11801         * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
11802         compatible with CCGOCmode and with CCZmode.
11804 2017-05-14  Martin Sebor  <msebor@redhat.com>
11806         PR middle-end/77671
11807         * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
11808         (gimple_fold_builtin_snprintf): Same.
11809         * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
11810         (gimple_fold_builtin_snprintf): Same.
11811         * gimple-ssa-sprintf.c (get_format_string): Correct the detection
11812         of character types.
11813         (is_call_safe): New function.
11814         (try_substitute_return_value): Call it.
11815         (try_simplify_call): New function.
11816         (pass_sprintf_length::handle_gimple_call): Call it.
11818 2017-05-14  Martin Sebor  <msebor@redhat.com>
11820         PR middle-end/80669
11821         * builtins.c (expand_builtin_stpncpy): Simplify.
11823 2017-05-14  Daniel Santos  <daniel.santos@pobox.com>
11825         * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
11826         * config/i386/i386.h
11827         (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
11828         (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
11829         (struct machine_function): Add new members call_ms2sysv,
11830         call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
11831         (struct machine_frame_state): New fields sp_realigned and
11832         sp_realigned_offset.
11833         * config/i386/i386.c
11834         (enum xlogue_stub): New enum.
11835         (enum xlogue_stub_sets): New enum.
11836         (class xlogue_layout): New class.
11837         (struct ix86_frame): New fields stack_realign_allocate_offset,
11838         stack_realign_offset and outlined_save_offset.  Modify comments to
11839         detail stack layout when using out-of-line stubs.
11840         (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
11841         (ix86_option_override_internal): Add sorry() for TARGET_SEH and
11842         -mcall-ms2sysv-xlogues.
11843         (stub_managed_regs): New static variable.
11844         (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
11845         registers managed by out-of-line stub.
11846         (disable_call_ms2sysv_xlogues): New function.
11847         (ix86_compute_frame_layout): Modify re-alignment calculations, disable
11848         m->call_ms2sysv when appropriate and compute frame layout for
11849         out-of-line stubs.
11850         (sp_valid_at, fp_valid_at): New inline functions.
11851         (choose_basereg): New function.
11852         (choose_baseaddr): Add align parameter, use choose_basereg and modify
11853         all callers.
11854         (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
11855         Use align parameter of choose_baseaddr to generated aligned SSE movs
11856         when possible.
11857         (pro_epilogue_adjust_stack): Modify to track
11858         machine_frame_state::sp_realigned.
11859         (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
11860         (ix86_nsaved_sseregs): Likewise.
11861         (ix86_emit_save_regs): Likewise.
11862         (ix86_emit_save_regs_using_mov): Likewise.
11863         (ix86_emit_save_sse_regs_using_mov): Likewise.
11864         (get_scratch_register_on_entry): Likewise.
11865         (gen_frame_set): New function.
11866         (gen_frame_load): Likewise.
11867         (gen_frame_store): Likewise.
11868         (emit_outlined_ms2sysv_save): Likewise.
11869         (emit_outlined_ms2sysv_restore): Likewise.
11870         (ix86_expand_prologue): Modify stack re-alignment code and call
11871         emit_outlined_ms2sysv_save when appropriate.
11872         (ix86_emit_leave): Clear machine_frame_state::sp_realigned.  Add
11873         parameter rtx_insn *insn, which allows the function to be used to only
11874         generate the notes.
11875         (ix86_expand_epilogue): Modify validity checks of frame and stack
11876         pointers, and call emit_outlined_ms2sysv_restore when appropriate.
11877         (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
11878         * config/i386/predicates.md
11879         (save_multiple): New predicate.
11880         (restore_multiple): Likewise.
11881         * config/i386/sse.md
11882         (save_multiple<mode>): New pattern.
11883         (save_multiple_realign<mode>): Likewise.
11884         (restore_multiple<mode>): Likewise.
11885         (restore_multiple_and_return<mode>): Likewise.
11886         (restore_multiple_leave_return<mode>): Likewise.
11887         * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
11889 2017-05-14  Julia Koval  <julia.koval@intel.com>
11891         * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
11892         * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
11893         (__builtin_ia32_xsetbv): New builtins.
11894         * config/i386/i386.c (ix86_expand_special_args_builtin):
11895         Process new types.
11896         (ix86_expand_builtin): Special expand for new intrinsics.
11897         * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
11898         (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
11899         * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
11901 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11903         * cfganal.c (inverted_post_order_compute): Change argument type
11904         to vec *.
11905         * cfganal.h (inverted_post_order_compute): Adjust prototype.
11906         * df-core.c (rest_of_handle_df_initialize): Adjust.
11907         (rest_of_handle_df_finish): Likewise.
11908         (df_analyze_1): Likewise.
11909         (df_analyze): Likewise.
11910         (loop_inverted_post_order_compute): Change argument to be a vec *.
11911         (df_analyze_loop): Adjust.
11912         (df_get_n_blocks): Likewise.
11913         (df_get_postorder): Likewise.
11914         * df.h (struct df_d): Change field to be a vec.
11915         * lcm.c (compute_laterin): Adjust.
11916         (compute_available): Likewise.
11917         * lra-lives.c (lra_create_live_ranges_1): Likewise.
11918         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
11919         * tree-ssa-pre.c (compute_antic): Likewise.
11921 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11923         * cfganal.c (connect_infinite_loops_to_exit): Adjust.
11924         (depth_first_search::depth_first_search): Change structure init
11925         function to this constructor.
11926         (depth_first_search::add_bb): Rename function to this member.
11927         (depth_first_search::execute): Likewise.
11928         (flow_dfs_compute_reverse_finish): Adjust.
11930 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11932         * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
11933         (longest_simple_path): Likewise.
11934         * shrink-wrap.c (spread_components): Likewise.
11935         (disqualify_problematic_components): Likewise.
11936         (emit_common_heads_for_components): Likewise.
11937         (emit_common_tails_for_components): Likewise.
11938         (insert_prologue_epilogue_for_components): Likewise.
11940 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11942         * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
11943         auto_sbitmap.
11945 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11947         * df-core.c (df_set_blocks): Start using auto_bitmap.
11948         (df_compact_blocks): Likewise.
11949         * df-problems.c (df_rd_confluence_n): Likewise.
11950         * df-scan.c (df_insn_rescan_all): Likewise.
11951         (df_process_deferred_rescans): Likewise.
11952         (df_update_entry_block_defs): Likewise.
11953         (df_update_exit_block_uses): Likewise.
11954         (df_entry_block_bitmap_verify): Likewise.
11955         (df_exit_block_bitmap_verify): Likewise.
11956         (df_scan_verify): Likewise.
11957         * lra-constraints.c (lra_constraints): Likewise.
11958         (undo_optional_reloads): Likewise.
11959         (lra_undo_inheritance): Likewise.
11960         * lra-remat.c (calculate_gen_cands): Likewise.
11961         (do_remat): Likewise.
11962         * lra-spills.c (assign_spill_hard_regs): Likewise.
11963         (spill_pseudos): Likewise.
11964         * tree-ssa-pre.c (bitmap_set_and): Likewise.
11965         (bitmap_set_subtract_values): Likewise.
11967 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11969         * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
11970         management with auto_bitmap.
11971         (fix_inter_tick): Likewise.
11972         (fix_recovery_deps): Likewise.
11973         * ira.c (add_store_equivs): Likewise.
11974         (find_moveable_pseudos): Likewise.
11975         (split_live_ranges_for_shrink_wrap): Likewise.
11976         * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
11977         (rtx_reuse_manager::seen_def_p): Likewise.
11978         (rtx_reuse_manager::set_seen_def): Likewise.
11979         * print-rtl.h (class rtx_reuse_manager): Likewise.
11981 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11983         * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
11984         lifetime.
11985         (migrate_btr_def): Likewise.
11986         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
11987         * df-core.c (loop_post_order_compute): Likewise.
11988         (loop_inverted_post_order_compute): Likewise.
11989         * hsa-common.h: Likewise.
11990         * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
11991         * init-regs.c (initialize_uninitialized_regs): Likewise.
11992         * ipa-inline.c (resolve_noninline_speculation): Likewise.
11993         (inline_small_functions): Likewise.
11994         * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
11995         * ira.c (combine_and_move_insns): Likewise.
11996         (build_insn_chain): Likewise.
11997         * loop-invariant.c (find_invariants): Likewise.
11998         * lower-subreg.c (propagate_pseudo_copies): Likewise.
11999         * predict.c (tree_predict_by_opcode): Likewise.
12000         (predict_paths_leading_to): Likewise.
12001         (predict_paths_leading_to_edge): Likewise.
12002         (estimate_loops_at_level): Likewise.
12003         (estimate_loops): Likewise.
12004         * shrink-wrap.c (try_shrink_wrapping): Likewise.
12005         (spread_components): Likewise.
12006         * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
12007         * tree-loop-distribution.c (rdg_build_partitions): Likewise.
12008         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
12009         * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
12010         * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
12011         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
12012         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
12013         * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
12014         (mark_threaded_blocks): Likewise.
12015         (thread_through_all_blocks): Likewise.
12016         * tree-ssa.c (verify_ssa): Likewise.
12017         (execute_update_addresses_taken): Likewise.
12018         * tree-ssanames.c (verify_ssaname_freelists): Likewise.
12020 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12022         * cfganal.c (mark_dfs_back_edges): Replace manual stack with
12023         auto_vec.
12024         (post_order_compute): Likewise.
12025         (inverted_post_order_compute): Likewise.
12026         (pre_and_rev_post_order_compute_fn): Likewise.
12028 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12030         * genrecog.c (int_set::int_set): Explicitly construct our
12031         auto_vec base class.
12032         * vec.h (auto_vec::auto_vec): New constructor.
12034 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12036         * bitmap.h (class auto_bitmap): New constructor taking
12037         bitmap_obstack * argument.
12039 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12041         * bitmap.h (class auto_bitmap): Change type of m_bits to
12042         bitmap_head, and adjust ctor / dtor and member operators.
12044 2017-05-13  Uros Bizjak  <ubizjak@gmail.com>
12046         * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
12047         when returned register mode doesn't match original mode.
12049 2017-05-12  Jeff Law  <law@redhat.com>
12050             Jakub Jelinek  <jakub@redhat.com>
12052         * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
12053         we look for cc setter after the compare-elim changes.
12054         * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
12055         within the vector to match what compare-elim now expects.
12056         (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
12057         (xorsi3_flags, one_cmplsi2_flags): Likewise.
12059         * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
12060         after the compare-elim changes.
12061         * config/rx/rx.md (abssi2_flags): Fix order of patterns within
12062         the vector to match what compare-elim now expects.
12063         (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
12064         (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
12065         (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
12066         (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
12067         (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
12069         * config/visium/visium.c (single_set_and_flags): Fix where
12070         we look for cc setter after the compare-elim changes.
12071         * config/visium/visium.md (flags_subst_logic): Fix order of patterns
12072         with the vector to match what compare-elim now expects.
12073         (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
12074         (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
12075         (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
12076         (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
12077         (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
12078         (neg<mode>2_insn_set_overflow): Likewise.
12080 2017-05-12  Jim Wilson  <jim.wilson@linaro.org>
12082         PR middle-end/79794
12083         * expmed.c (extract_bit_field_1): Add alt_rtl argument.  Before
12084         maybe_expand_insn call, set ops[0].target.  If still set after call,
12085         set alt_rtl.  Add extra arg to recursive calls.
12086         (extract_bit_field): Add alt_rtl argument.  Pass to
12087         extract_bit_field.
12088         * expmed.h (extract_bit_field): Fix prototype.
12089         * expr.c (emit_group_load_1, copy_blkmode_from_reg)
12090         (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
12091         to extract_bit_field_calls.
12092         (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
12093         Pass alt_rtl to extract_bit_field calls.
12094         * calls.c (store_unaligned_arguments_into_psuedos)
12095         load_register_parameters): Pass extra NULL to extract_bit_field calls.
12096         * optabs.c (maybe_legitimize_operand): Clear op->target when call
12097         gen_reg_rtx.
12098         * optabs.h (struct expand_operand): Add target bitfield.
12100 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
12102         * compare-elim.c (try_eliminate_compare): Canonicalize
12103         operation with embedded compare to
12104         [(set (reg:CCM) (compare:CCM (operation) (immediate)))
12105          (set (reg) (operation)].
12107         * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
12109 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
12111         PR target/80723
12112         * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
12113         cost of adding a carry flag for ADC instruction.
12114         [case MINUS]: Ignore the cost of subtracting a carry flag
12115         for SBB instruction.
12117 2017-05-12  Steven Munroe  <munroesj@gcc.gnu.org>
12119         * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
12120         and x86intrin.h
12121         * config/rs6000/bmiintrin.h: New file.
12122         * config/rs6000/bmi2intrin.h: New file.
12123         * config/rs6000/x86intrin.h: New file.
12125 2017-05-12  Jeff Law  <law@redhat.com>
12127         * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
12128         markers.
12130 2017-05-12  Peter Bergner  <bergner@vnet.ibm.com>
12132         PR middle-end/80707
12133         * tree-cfg.c: Remove cfg edges of unreachable case statements.
12135 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
12137         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
12138         early expansion of vector divide builtins.
12139         (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
12140         builtins identified as having unsigned arguments.
12142 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
12144         * config/rs6000/rs6000.c (gimple-fold.h): New #include.
12145         (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
12146         expansion of vector logical operations (and, andc, or, xor,
12147         nor, orc, nand).
12149 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
12151         * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
12152         * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
12154 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
12156         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
12157         early GIMPLE expansion of vector multiplies.
12159 2017-05-12  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
12161         * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
12162         TARGET_HAVE_MOVT conditional.
12163         (movt splitter): Likewise.
12165 2017-05-12  Richard Biener  <rguenther@suse.de>
12167         * tree-ssa-sccvn.h (has_VN_INFO): Declare.
12168         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12169         Fold all stmts not inplace.
12171 2017-05-12  Richard Biener  <rguenther@suse.de>
12173         PR tree-optimization/80713
12174         * tree-ssa-pre.c (remove_dead_inserted_code): Clear
12175         inserted_exprs bit for not removed stmts.
12177 2017-05-12  Thomas Schwinge  <thomas@codesourcery.com>
12179         PR middle-end/69921
12180         * tree-parloops.c (create_parallel_loop): Set "oacc kernels
12181         parallelized" attribute for parallelized OpenACC kernels.
12182         * omp-offload.c (execute_oacc_device_lower): Use it.
12184         * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
12185         Set "oacc kernels" attribute.
12186         * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
12187         parameter.  Adjust all users.
12188         (oacc_fn_attrib_kernels_p): Remove function.
12189         * omp-offload.c (execute_oacc_device_lower): Look for "oacc
12190         kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
12191         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
12192         * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
12193         assert "oacc kernels" attribute is set.
12195 2017-05-11  Carl Love  <cel@us.ibm.com>
12197         * config/rs6000/rs6000-c: Add support for built-in functions
12198         vector unsigned char vec_popcnt (vector signed char)
12199         vector unsigned char vec_popcnt (vector unsigned char)
12200         vector unsigned short vec_popcnt (vector signed short)
12201         vector unsigned short vec_popcnt (vector unsigned short)
12202         vector unsigned int vec_popcnt (vector signed int)
12203         vector unsigned int vec_popcnt (vector unsigned int)
12204         vector unsigned long long vec_popcnt (vector signed long long)
12205         vector unsigned long long vec_popcnt (vector unsigned long long)
12206         vector signed long long vec_slo (vector signed long long,
12207                                          vector signed char)
12208         vector signed long long vec_slo (vector signed long long,
12209                                          vector unsigned char)
12210         vector unsigned long long vec_slo (vector unsigned long long,
12211                                            vector signed char)
12212         vector unsigned long long vec_slo (vector unsigned long long,
12213                                            vector unsigned char)
12214         * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
12215         VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
12216         * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
12217         vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
12218         * doc/extend.texi: Update the built-in documentation file for the
12219         new built-in functions.
12221 2017-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
12223         * attribs.h (sorted_attr_string): Move machine independent
12224         functions for target clone support from the i386 port to common
12225         code.  Rename ix86_function_versions to common_function_versions.
12226         Rename make_name to make_unique_name.
12227         (common_function_versions): Likewise.
12228         (make_unique_name): Likewise.
12229         (make_dispatcher_decl): Likewise.
12230         (is_function_default_version): Likewise.
12231         * attribs.c (attr_strcmp): Likewise.
12232         (sorted_attr_string): Likewise.
12233         (common_function_versions): Likewise.
12234         (make_unique_name): Likewise.
12235         (make_dispatcher_decl): Likewise.
12236         (is_function_default_version): Likewise.
12237         * config/i386/i386.c (attr_strcmp): Likewise.
12238         (sorted_attr_string): Likewise.
12239         (ix86_function_versions): Likewise.
12240         (make_name): Likewise.
12241         (make_dispatcher_decl): Likewise.
12242         (is_function_default_version): Likewise.
12243         (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
12245 2017-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12247         PR target/80695
12248         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
12249         Account for direct move costs for vec_construct of integer
12250         vectors.
12252 2017-05-11  Uros Bizjak  <ubizjak@gmail.com>
12254         PR target/80706
12255         * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
12256         (UNSPEC_STX_ATOMIC): Ditto.
12257         (loaddi_via_sse): New insn.
12258         (storedi_via_sse): Ditto.
12259         (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
12260         Update corresponding peephole2 patterns.
12261         (atomic_storedi_fpu): Ditto.
12263 2017-05-11  Julia Koval  <julia.koval@intel.com>
12265         * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
12266         (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
12267         New intrinsics.
12268         * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
12269         (__builtin_ia32_rsqrt14ss_mask): New builtins.
12270         * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
12272 2017-05-11  Nathan Sidwell  <nathan@acm.org>
12274         * graphite-poly.c: Include dumpfile.h.
12276         * dumpfle.h (dump_function): Declare here ...
12277         * tree-dump.h (dump_function): ... not here.
12278         * dumpfile.c: #include tree-cfg.h.
12279         (dump_function): Move here from ...
12280         * tree-dump.c (dump_function): ... here.
12281         * gimplify.c: #include splay-tree.h, not tree-dump.h.
12282         * graphite-poly.c: Don't include tree-dump.h.
12283         * cgraphclones.c: Include dumpfile.h not tree-dump.h.
12284         * print-tree.c: Likewise.
12285         * stor-layout.c: Likewise.
12286         * tree-nested.c: Likewise.
12288         * dumpfile.c (dump_start): Use TDF_FLAGS.
12289         (dump_enable_all): Fix TDF_KIND check thinko.
12291 2017-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12293         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12294         array entries to represent two legal parameterizations of the
12295         overloaded __builtin_cmpb function, as represented by the
12296         P6_OV_BUILTIN_CMPB constant.
12297         (altivec_resolve_overloaded_builtin): Add special case handling
12298         for the __builtin_cmpb function, as represented by the
12299         P6_OV_BUILTIN_CMPB constant.
12300         * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
12301         (BU_P6_64BIT_2): New macro.
12302         (BU_P6_OVERLOAD_2): New macro
12303         (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
12304         (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
12305         (CMPB): Add overload support to represent both 32-bit and 64-bit
12306         compare-bytes function.
12307         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
12308         support for TARGET_CMPB.
12309         * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
12310         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
12311         documentation of the __builtin_cmpb overloaded built-in function.
12313 2017-05-11  Richard Biener  <rguenther@suse.de>
12315         PR tree-optimization/80705
12316         * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
12317         bases are not vectorizable.
12319 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
12321         * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
12322         when counting register pressure.
12324 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
12326         * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
12327         (iv_ca_more_deps): Renamed to ...
12328         (iv_ca_compare_deps): ... this.
12329         (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
12331 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
12333         * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
12334         to ...
12335         (determine_group_iv_costs): ... here.
12336         (find_inv_vars_cb): Record inv var if it's not recorded before.
12338 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
12340         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
12341         (get_shiftadd_cost): Ditto.
12343 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
12345         * tree-ssa-address.c: Include header file.
12346         (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
12347         address.
12348         (add_to_parts): Refactor.
12349         (addr_to_parts): New parameter.  Update use of move_hint_to_base.
12350         (create_mem_ref): Update use of addr_to_parts.  Re-associate addr
12351         in new order.
12353 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
12355         PR tree-optimization/53090
12356         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
12357         COMP_IV_EXPR_2.
12358         (extract_cond_operands): Detect condition with IV on both sides
12359         and return COMP_IV_EXPR_2.
12360         (find_interesting_uses_cond): Add iv_use for both IVs in condition.
12361         (rewrite_use_compare): Simplify by removing call to function
12362         extract_cond_operands.
12364 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
12366         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
12367         (extract_cond_operands): Detect condition comparing against non-
12368         invariant bound and return appropriate enum value.
12369         (find_interesting_uses_cond): Update use of extract_cond_operands.
12370         Handle its return value accordingly.
12371         (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
12373 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
12375         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
12376         nonlinear iv_use computation in loop invariant sensitive way.
12378 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
12380         * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
12381         (find_iv_candidates): Call relate_compare_use_with_all_cands.
12383 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
12385         * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
12386         (dump_cand): Support iv_cand.inv_exprs.
12387         (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
12388         for candidates.
12389         (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
12390         iv_cand.inv_exprs.
12392 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
12394         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
12395         from ...
12396         * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
12397         as local function.  Include necessary header files.
12398         * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
12400 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
12402         * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
12404 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
12406         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
12407         operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
12408         RSHIFT_EXPR and BIT_NOT_EXPR.
12410 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
12412         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
12413         (adjust_setup_cost): New parameter supporting round up adjustment.
12414         (struct address_cost_data): Delete.
12415         (force_expr_to_var_cost): Don't bound cost with spill_cost.
12416         (split_address_cost, ptr_difference_cost): Delete.
12417         (difference_cost, compare_aff_trees, record_inv_expr): Delete.
12418         (struct ainc_cost_data): New struct.
12419         (get_address_cost_ainc): New function.
12420         (get_address_cost, get_computation_cost): Reimplement.
12421         (determine_group_iv_cost_address): Record inv_expr for all uses of
12422         a group.
12423         (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
12424         (iv_ca_has_deps): Reimplemented to ...
12425         (iv_ca_more_deps): ... this.  Check if NEW_CP introduces more deps
12426         than OLD_CP.
12427         (iv_ca_extend): Call iv_ca_more_deps.
12429 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
12431         * tree-ssa-address.c (struct mem_address): Move to header file.
12432         (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
12433         * tree-ssa-address.h (struct mem_address): Move from C file.
12434         (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
12436 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
12438         * tree-affine.h (aff_combination_type): New interface.
12439         (aff_combination_zero_p): Remove static.
12440         (aff_combination_const_p): New interface.
12441         (aff_combination_singleton_var_p): New interfaces.
12443 2017-05-11  Richard Biener  <rguenther@suse.de>
12445         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12446         Skip unreachable blocks and destinations.
12447         (eliminate): Move stmt removal and fixup ...
12448         (fini_eliminate): ... here.  Skip inserted exprs.
12449         (pass_pre::execute): Move fini_pre after fini_eliminate.
12450         * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
12451         (tail_merge_optimize): Run cleanup_tree_cfg if requested by
12452         PRE to get rid of dead code that has invalid SSA form and
12453         split critical edges again.
12455 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
12457         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
12459 2017-05-11  Richard Biener  <rguenther@suse.de>
12461         * passes.c (execute_function_todo): Verify loops if they are
12462         said to be up-to-date.
12463         * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
12464         * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
12466 2017-05-10  John David Anglin  <danglin@gcc.gnu.org>
12468         PR target/80090
12469         * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
12470         handle calling assemble_external ourself.
12472         PR target/79027
12473         * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
12474         modes with zero size.  Enhance comment.
12476 2017-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12478         * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
12479         built-ins for vec_xl and vec_xst with short and char pointer
12480         arguments.
12482 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
12484         * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
12485         (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
12486         (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
12487         (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
12488         (_mm_maskz_min_round_ss): New intrinsics.
12489         * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
12490         (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
12491         * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
12492         (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
12493         (__builtin_ia32_minss_mask_round): New builtins.
12494         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
12495         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
12496         * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
12497         Rename to ...
12498         (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
12499         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
12500         Change to ...
12501         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
12502         ... this.
12504 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
12506         * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
12507         (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
12508         (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
12509         (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
12510         (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
12511         (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
12512         (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
12513         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
12514         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
12515         * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
12516         (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
12517         (__builtin_ia32_mulss_mask_round): New builtins.
12518         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
12519         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
12520         * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
12521         Rename to ...
12522         (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
12523         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
12524         Change to ...
12525         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
12526         ... this.
12528 2017-05-10  Julia Koval  <julia.koval@intel.com>
12530         * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
12531         (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
12532         (_mm256_setr_m128i): New intrinsics.
12534 2017-05-10  Julia Koval  <julia.koval@intel.com>
12536         * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
12537         (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
12538         (_mm_maskz_rcp14_ss): New intrinsics.
12539         * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
12540         (__builtin_ia32_rcp14ss_mask): New builtins.
12541         * config/i386/sse.md (srcp14<mode>_mask): New pattern.
12543 2017-05-10  Peter Bergner  <bergner@vnet.ibm.com>
12545         PR tree-optimization/51513
12546         * tree-cfg.c (gimple_seq_unreachable_p): New function.
12547         (assert_unreachable_fallthru_edge_p): Use it.
12548         (group_case_labels_stmt): Likewise.
12549         * tree-cfg.h: Prototype it.
12550         * stmt.c: Include cfghooks.h and tree-cfg.h.
12551         (emit_case_dispatch_table) <gap_label>: New local variable.
12552         Use it to fill dispatch table gaps.
12553         Test for default_label before updating probabilities.
12554         (expand_case) <default_label>: Remove unneeded initialization.
12555         Test for unreachable default case statement and remove its edge.
12556         Set default_label accordingly.
12557         * tree-ssa-ccp.c (optimize_unreachable): Update comment.
12559 2017-05-10  Carl Love  <cel@us.ibm.com>
12561         * config/rs6000/rs6000-c: Add support for built-in functions
12562         vector signed char      vec_neg (vector signed char)
12563         vector signed short int vec_neg (vector short int)
12564         vector signed int       vec_neg (vector signed int)
12565         vector signed long long vec_neg (vector signed long long)
12566         vector float            vec_neg (vector float)
12567         vector double           vec_neg (vector double)
12568         * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
12569         overload.
12570         * config/rs6000/altivec.h: Add define for vec_neg
12571         * doc/extend.texi: Update the built-in documentation for the
12572         new built-in functions.
12574 2017-05-10  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12576         PR tree-optimization/77644
12577         * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
12579 2017-05-10  Nathan Sidwell  <nathan@acm.org>
12581         * dumpfile.h (TDI_lang_all): New.
12582         (TDF_KIND): New. Renumber others
12583         (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
12584         than bits.
12585         * dumpfile.c (dump_files): Mark language dumps as TDF_LANG.  add
12586         lang-all.
12587         (get_dump_file_name): Adjust suffix generation.
12588         (dump_enable_all): Use TDF_KIND.
12589         * doc/invoke.texi (-fdump-lang-all): Document.
12591         * dumpfile.h: Tabify.
12593 2017-05-10  Wilco Dijkstra  <wdijkstr@arm.com>
12595         PR target/80671
12596         * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
12597         Move member access before delete.
12599 2017-05-10  Alexandre Oliva <aoliva@redhat.com>
12601         * tree-inline.c (expand_call_inline): Split block at stmt
12602         before the call.
12604 2017-05-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
12606         PR target/68163
12607         * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
12608         are now unused after splitting mov{sf,sd}_hardfloat.
12609         (f32_lr2): Likewise.
12610         (f32_lm): Likewise.
12611         (f32_lm2): Likewise.
12612         (f32_li): Likewise.
12613         (f32_li2): Likewise.
12614         (f32_lv): Likewise.
12615         (f32_sr): Likewise.
12616         (f32_sr2): Likewise.
12617         (f32_sm): Likewise.
12618         (f32_sm2): Likewise.
12619         (f32_si): Likewise.
12620         (f32_si2): Likewise.
12621         (f32_sv): Likewise.
12622         (f32_dm): Likewise.
12623         (f32_vsx): Likewise.
12624         (f32_av): Likewise.
12625         (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
12626         For movsf, order stores so the VSX stores occur before the GPR
12627         store which encourages the register allocator to use a traditional
12628         FPR instead of a GPR.  For movsd, order the stores so that the GPR
12629         store comes before the VSX stores to allow the power6 to work.
12630         This is due to the power6 not having a 32-bit integer store
12631         instruction from a FPR.
12632         (movsf_hardfloat): Likewise.
12633         (movsd_hardfloat): Likewise.
12635 2017-05-09  Martin Sebor  <msebor@redhat.com>
12637         PR translation/80280
12638         * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
12639         added in r247778.
12641         PR translation/80280
12642         * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
12643         data member added in r247778.
12644         (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
12646 2017-05-09  Nathan Sidwell  <nathan@acm.org>
12648         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
12650         * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
12651         typedefs.
12653 2017-05-09  Marek Polacek  <polacek@redhat.com>
12655         * doc/invoke.texi: Fix typo.
12657 2017-05-09  Richard Biener  <rguenther@suse.de>
12659         * tree-vrp.c (vrp_val_is_max): Adjust comment.
12660         (vrp_val_is_min): Likewise.
12661         (set_value_range_to_value): Likewise.
12662         (set_value_range_to_nonnegative): Likewise.
12663         (gimple_assign_nonzero_p): Likewise.
12664         (gimple_stmt_nonzero_p): Likewise.
12665         (vrp_int_const_binop): Likewise.  Remove unreachable case.
12666         (adjust_range_with_scev): Adjust comments.
12667         (compare_range_with_value): Likewise.
12668         (extract_range_from_phi_node): Likewise.
12669         (test_for_singularity): Likewise.
12671 2017-05-09  Richard Biener  <rguenther@suse.de>
12673         * tree-vrp.c (get_single_symbol): Add assert that we don't
12674         get overflowed constants as invariant part.
12675         (compare_values_warnv): Add comment before the TREE_NO_WARNING
12676         checks.  Use wi::cmp instead of recursing for integer constants.
12677         (compare_values): Just ignore whether we assumed undefined
12678         overflow instead of failing the compare.
12679         (extract_range_for_var_from_comparison_expr): Add comment before the
12680         TREE_NO_WARNING sets.
12681         (test_for_singularity): Likewise.
12682         (extract_range_from_comparison): Do not disable optimization
12683         when we assumed undefined overflow.
12684         (extract_range_basic): Remove init of unused var.
12686 2017-05-09  Richard Biener  <rguenther@suse.de>
12688         * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
12689         (extract_range_from_multiplicative_op_1): Adjust.
12690         (extract_range_from_binary_expr_1): Use int_const_binop.
12692 2017-05-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12694         PR target/80101
12695         * config/rs6000/power6.md: Replace store_data_bypass_p calls with
12696         rs6000_store_data_bypass_p in seven define_bypass directives and
12697         in several comments.
12698         * config/rs6000/rs6000-protos.h: Add prototype for
12699         rs6000_store_data_bypass_p function.
12700         * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
12701         function implements slightly different (rs6000-specific) semantics
12702         than store_data_bypass_p, returning false rather than aborting
12703         with assertion error when arguments do not satisfy the
12704         requirements of store data bypass.
12705         (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
12706         rs6000_store_data_bypass_p.
12708 2017-05-08  Max Filippov  <jcmvbkbc@gmail.com>
12710         * config/xtensa/xtensa-protos.h
12711         (xtensa_initial_elimination_offset): New declaration.
12712         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
12713         New function. Move its body from the INITIAL_ELIMINATION_OFFSET
12714         macro definition, add case for FRAME_POINTER_REGNUM when
12715         FRAME_GROWS_DOWNWARD.
12716         * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
12717         (INITIAL_ELIMINATION_OFFSET): Replace body with call to
12718         xtensa_initial_elimination_offset.
12720 2017-05-08  Nathan Sidwell  <nathan@acm.org>
12722         * doc/invoke.texi: Alphabetize -fdump options.
12724 2017-05-08  Martin Sebor  <msebor@redhat.com>
12726         PR translation/80280
12727         * config/sol2-c.c (solaris_pragma_align): Correct quoting.
12729 2017-05-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12731         * target.def (compute_frame_layout): New optional target hook.
12732         * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
12733         * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
12734         * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
12735         target hook.
12736         * reload1.c (verify_initial_elim_offsets): Likewise.
12737         * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
12738         (use_simple_return_p): Call arm_compute_frame_layout if needed.
12739         (arm_get_frame_offsets): Split up into this ...
12740         (arm_compute_frame_layout): ... and this function.
12742 2017-05-08  Richard Sandiford  <richard.sandiford@arm.com>
12744         * config/aarch64/constraints.md (Usa): New constraint.
12745         * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
12747 2017-05-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12749         * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
12750         with_multilib_list after it has been checked.
12752 2017-05-08  Richard Biener  <rguenther@suse.de>
12754         * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
12755         (bitmap_set_subtract_values): Likewise.
12757 2017-05-08  Richard Biener  <rguenther@suse.de>
12759         * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
12760         (gimple_assign_nonzero): ... this and remove strict_overflow_p
12761         argument.
12762         (gimple_stmt_nonzero_warnv_p): Rename to ...
12763         (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
12764         argument.
12765         (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
12766         (extract_range_basic): Adjust, do not disable propagation on
12767         strict overflow sensitive simplification.
12768         (vrp_visit_cond_stmt): Likewise.
12770 2017-05-05  Jan Hubicka  <hubicka@ucw.cz>
12772         * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
12773         body size unconditionally.
12775 2017-05-07  Jeff Law  <law@redhat.com>
12777         Revert:
12778         2017-05-06  Jeff Law  <law@redhat.com>
12779         PR tree-optimization/78496
12780         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
12781         code.
12783         PR tree-optimization/78496
12784         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
12785         (simplify_stmt_using_ranges): Call it.
12786         (vrp_dom_walker::before_dom_children): Extract equivalences
12787         from an ASSERT_EXPR with an equality comparison against a
12788         constant.
12790 2017-05-06  Jeff Law  <law@redhat.com>
12792         PR tree-optimization/78496
12793         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
12794         code.
12796         PR tree-optimization/78496
12797         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
12798         (simplify_stmt_using_ranges): Call it.
12799         (vrp_dom_walker::before_dom_children): Extract equivalences
12800         from an ASSERT_EXPR with an equality comparison against a
12801         constant.
12803 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
12805         * lra-constraints.c (lra_copy_reg_equiv): New function.
12806         (split_reg): Use it to copy equivalence information from the
12807         original register to the spill register.
12809 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
12811         PR rtl-optimization/75964
12812         * simplify-rtx.c (simplify_const_relational_operation): Remove
12813         invalid handling of comparisons of integer ABS.
12815 2017-05-06  Uros Bizjak  <ubizjak@gmail.com>
12817         * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
12818         initialize to zero.
12819         (init_regs): Remove declaration.
12820         (function_arg_advance_32): Initialize error_p as boolean variable.
12822 2017-05-05  Nathan Sidwell  <nathan@acm.org>
12824         * store-motion.c (remove_reachable_equiv_notes): Reformat long
12825         lines.  Use for (;;).
12827 2017-05-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12829         * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
12830         (rs6000_init_cost): Initialize rs6000_vect_nonmem.
12831         (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
12832         (rs6000_finish_cost): Avoid vectorizing simple copy loops with
12833         VF=2 that require versioning.
12835 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
12837         * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
12838         int.
12840 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
12842         * diagnostic.h (diagnostic_override_option_index): Convert from
12843         macro to inline function.
12845 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
12847         * diagnostic.c (last_module_changed_p): New function.
12848         (set_last_module): New function.
12849         (diagnostic_report_current_module): Convert macro usage to
12850         the above functions.
12851         * diagnostic.h (diagnostic_context::last_module): Strengthen
12852         from const line_map * to const line_map_ordinary *.
12853         (diagnostic_last_module_changed): Delete macro.
12854         (diagnostic_set_last_module): Delete macro.
12856 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
12858         * diagnostic.c (diagnostic_impl): Replace report_diagnostic
12859         with diagnostic_report_diagnostic.
12860         (diagnostic_n_impl_richloc): Likewise.
12861         * diagnostic.h (report_diagnostic): Delete macro.
12862         * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
12863         with diagnostic_report_diagnostic.
12864         * substring-locations.c (format_warning_va): Likewise.
12866 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
12868         * diagnostic.c (diagnostic_report_diagnostic): Eliminate
12869         save/restor of format_spec.  Move option-printing code to...
12870         (print_option_information): ...this new function, and
12871         reimplement by simply printing to the pretty_printer,
12872         rather than appending to the format string.
12874 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
12876         * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
12877         handling logic into...
12878         (update_effective_level_from_pragmas): ...this new function.
12880 2017-05-04  Andrew Waterman  <andrew@sifive.com>
12882         * config/riscv/riscv.opt (mstrict-align): New option.
12883         * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it.  Update comment.
12884         (SLOW_UNALIGNED_ACCESS): Define.
12885         (riscv_slow_unaligned_access): Declare.
12886         * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
12887         field.
12888         (riscv_slow_unaligned_access): New variable.
12889         (rocket_tune_info): Set slow_unaligned_access to true.
12890         (optimize_size_tune_info): Set slow_unaligned_access to false.
12891         (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
12892         (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
12893         (riscv_option_override): Set riscv_slow_unaligned_access.
12894         * doc/invoke.texi: Add -mstrict-align to RISC-V.
12896 2017-05-04  Kito Cheng  <kito.cheng@gmail.com>
12898         * config/riscv/riscv.md: Unify indentation.
12900 2017-05-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
12902         PR target/79038
12903         PR target/79202
12904         PR target/79203
12905         * config/rs6000/rs6000.md (u code attribute): Add FIX and
12906         UNSIGNED_FIX.
12907         (extendsi<mode>2): Add support for doing sign extension via
12908         VUPKHSW and XXPERMDI if the value is in Altivec registers and we
12909         don't have ISA 3.0 instructions.
12910         (extendsi<mode>2 splitter): Likewise.
12911         (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
12912         generate the normal insns since SImode can now go in vector
12913         registers.  Disallow the special UNSPECs needed for previous
12914         machines to hide SImode being used.  Add new insns
12915         fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
12916         (fix_trunc<mode>si2_stfiwx): Likewise.
12917         (fix_trunc<mode>si2_internal): Likewise.
12918         (fixuns_trunc<mode>si2): Likewise.
12919         (fixuns_trunc<mode>si2_stfiwx): Likewise.
12920         (fctiw<u>z_<mode>_smallint): Likewise.
12921         (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
12922         of floating point to 32-bit integer from doing a direct move to
12923         the GPR registers to do a store.
12924         (fctiwz_<mode>): Break long line.
12926 2017-05-05  Bin Cheng  <bin.cheng@arm.com>
12928         * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
12929         * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
12930         (addr_list, addr_offset_valid_p): New.
12931         (split_address_groups): Check offset validity with above function.
12932         (gt-tree-ssa-loop-ivopts.h): Include header file.
12934 2017-05-05  Nathan Sidwell  <nathan@acm.org>
12936         * config.gcc (arm*-*-*): Add missing 'fi'.
12938 2017-05-05  Steve Ellcey  <sellcey@cavium.com>
12940         * doc/invoke.texi (-fopt-info): Explicitly say order of options
12941         included in -fopt-info does not matter.
12942         * doc/optinfo.texi (-fopt-info): Fix description of default
12943         behavour. Explicitly say order of options included in -fopt-info
12944         does not matter.
12946 2017-05-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12948         * config.gcc: Allow combinations of aprofile and rmprofile values for
12949         --with-multilib-list.
12950         * config/arm/t-multilib: New file.
12951         * config/arm/t-aprofile: Remove initialization of MULTILIB_*
12952         variables.  Remove setting of ISA and floating-point ABI in
12953         MULTILIB_OPTIONS and MULTILIB_DIRNAMES.  Set architecture and FPU in
12954         MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
12955         and MULTILIB_DIRNAMES respectively.  Add comment to introduce all
12956         matches.  Add architecture matches for marvel-pj4 and generic-armv7-a
12957         CPU options.
12958         * config/arm/t-rmprofile: Likewise except for the matches changes.
12959         * doc/install.texi (--with-multilib-list): Document the combination of
12960         aprofile and rmprofile values and warn about pitfalls in doing that.
12962 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
12964         * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
12965         (movdi_aarch64): Likewise.
12967 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
12969         PR tree-optimization/80632
12970         * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
12971         field.
12972         (build_arrays): Initialize it for virtual phis.
12973         (fix_phi_nodes): Use it for virtual phis.
12975         PR tree-optimization/80558
12976         * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
12977         [x, y] op z into [x op, y op z] for op & or | if conditions
12978         are met.
12980 2017-05-05  Andre Vieira  <andre.simoesdiasvieira@arm.com>
12981             Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
12983         PR target/71607
12984         * config/arm/arm.md (use_literal_pool): Remove.
12985         (64-bit immediate split): No longer takes cost into consideration
12986         if arm_disable_literal_pool is enabled.
12987         * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
12988         used when arm_disable_literal_pool is enabled.
12989         (arm_max_const_double_inline_cost): Remove use of
12990         arm_disable_literal_pool.
12991         (push_minipool_fix): Add assert.
12992         (arm_reorg): Add return if arm_disable_literal_pool is enabled.
12993         * config/arm/vfp.md (no_literal_pool_df_immediate): New.
12994         (no_literal_pool_sf_immediate): New.
12996 2017-05-05  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12998         PR tree-optimization/80613
12999         * tree-ssa-dce.c (propagate_necessity): Remove cases for
13000         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
13002 2017-05-05  Richard Biener  <rguenther@suse.de>
13004         * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
13006 2017-05-05  Georg-Johann Lay  <avr@gjlay.de>
13008         * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
13009         of this flag from insn conditions due to removal from r247495.
13011 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
13013         * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
13014         New function.
13015         (arm_early_store_addr_dep_ptr): Likewise.
13016         * config/arm/aarch-common-protos.h
13017         (arm_early_load_addr_dep_ptr): Add prototype.
13018         (arm_early_store_addr_dep_ptr): Likewise.
13019         * config/arm/cortex-a53.md: Add new bypasses.
13021 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
13023         * tree.c (next_type_uid): Change type to unsigned.
13024         (type_hash_canon): Decrement back next_type_uid if
13025         freeing a type node with the highest TYPE_UID.  For INTEGER_TYPEs
13026         also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
13027         if possible.
13029 2017-05-04  Martin Sebor  <msebor@redhat.com>
13031         * builtins.c: Fix a trivial typo in a comment.
13033         PR middle-end/79234
13034         * builtins.c (check_sizes): Adjust to handle reading past the end.
13035         Avoid printing excessive upper bound of ranges.  Use %E to print
13036         tree nodes instead of converting them to %wu.
13037         (expand_builtin_memchr): New function.
13038         (compute_dest_size): Rename...
13039         (compute_objsize): ...to this.
13040         (expand_builtin_memcpy): Adjust.
13041         (expand_builtin_mempcpy): Adjust.
13042         (expand_builtin_strcat): Adjust.
13043         (expand_builtin_strcpy): Adjust.
13044         (check_strncat_sizes): Adjust.
13045         (expand_builtin_strncat): Adjust.
13046         (expand_builtin_strncpy): Adjust and simplify.
13047         (expand_builtin_memset): Adjust.
13048         (expand_builtin_bzero): Adjust.
13049         (expand_builtin_memcmp): Adjust.
13050         (expand_builtin): Handle memcmp.
13051         (maybe_emit_chk_warning): Check strncat just once.
13053 2017-05-04  Martin Sebor  <msebor@redhat.com>
13055         PR preprocessor/79214
13056         PR middle-end/79222
13057         PR middle-end/79223
13058         * builtins.c (check_sizes): Add inlining context and issue
13059         warnings even when -Wno-system-headers is set.
13060         (check_strncat_sizes): Same.
13061         (expand_builtin_strncat): Same.
13062         (expand_builtin_memmove): New function.
13063         (expand_builtin_stpncpy): Same.
13064         (expand_builtin): Handle memmove and stpncpy.
13066 2017-05-04  Bin Cheng  <bin.cheng@arm.com>
13068         * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
13069         which is not used any more.
13071 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
13073         * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
13075 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
13077         * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
13078         (cortexa53_tunings): Likewise.
13079         (cortexa57_tunings): Likewise.
13080         (cortexa72_tunings): Likewise.
13081         (cortexa73_tunings): Likewise.
13083 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
13085         * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
13086         Set loop alignment to 8.
13088 2017-05-04  Martin Sebor  <msebor@redhat.com>
13090         PR translation/80280
13091         * builtins.c (expand_builtin_object_size): Add missing quoting to
13092         %D and like directives.
13093         * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
13094         (hsa_type_for_tree_type): Same.
13095         (verify_function_arguments): Same.
13096         * symtab.c (symbol_table::change_decl_assembler_name): Same.
13097         * varasm.c (get_section): Same.
13098         (mark_weak): Same.
13100 2017-05-04  Martin Sebor  <msebor@redhat.com>
13102         PR translation/80280
13103         * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
13105 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
13107         * config/aarch64/aarch64.c (generic_addrcost_table):
13108         Change HI/TI mode setting.
13110 2017-05-04  Martin Jambor  <mjambor@suse.cz>
13112         PR tree-optimization/80622
13113         * tree-sra.c (comes_initialized_p): New function.
13114         (build_accesses_from_assign): Only set write lazily when
13115         comes_initialized_p is false.
13116         (analyze_access_subtree): Use comes_initialized_p.
13117         (propagate_subaccesses_across_link): Assert !comes_initialized_p
13118         instead of testing for PARM_DECL.
13120 2017-05-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13122         * config/aarch64/aarch64.md (prefetch); Adjust predicate and
13123         constraint on operand 0 to allow more general addressing modes.
13124         Adjust output template.
13125         * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
13126         New function.
13127         * config/aarch64/aarch64-protos.h
13128         (aarch64_address_valid_for_prefetch_p): Declare prototype.
13129         * config/aarch64/constraints.md (Dp): New address constraint.
13130         * config/aarch64/predicates.md (aarch64_prefetch_operand): New
13131         predicate.
13133 2017-05-04  Jan Hubicka  <hubicka@ucw.cz>
13135         * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
13136         update use of estimate_ipcp_clone_size_and_time.
13137         (estimate_local_effects): Update use of
13138         estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
13139         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
13140         * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
13141         Return nonspecialized time.
13143 2017-05-04  Richard Biener  <rguenther@suse.de>
13145         * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
13146         for the last VUSE which def dominates the PHI.  Directly call
13147         maybe_skip_until.
13148         (get_continuation_for_phi_1): Remove.
13150 2017-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
13152         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
13153         to explain the use of truncating division.  Cap the number of
13154         iterations to the maximum given by nb_iterations_upper_bound,
13155         if defined.
13157 2017-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13159         * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
13160         * configure: Regenerate.
13161         * config.in: Regenerate.
13162         * config/i386/driver-mingw32.c: new file.
13163         * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
13164         * config.host: Link driver-mingw32.o on MinGW host.
13165         * doc/install.texi: Document new --enable-mingw-wildcard configure
13166         option.
13168 2017-05-04  Marek Polacek  <polacek@redhat.com>
13170         PR tree-optimization/80612
13171         * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
13173 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
13174             Andre Simoes Dias Vieira  <andre.simoesdiasvieira@arm.com>
13176         * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
13177         (movt splitter): Likewise.
13178         * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
13179         to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
13180         (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
13181         block for Thumb-1 with MOVT.
13182         (thumb2_legitimate_address_p): Move code block ...
13183         (can_avoid_literal_pool_for_label_p): ... into this new function.
13184         (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
13185         literal pool.
13186         (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
13187         * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
13188         "M-profile targets with the MOVT instruction".
13190 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
13192         * config/arm/arm-builtins.c (arm_init_builtins): Rename
13193         __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
13194         __builtin_arm_stfscr to __builtin_arm_set_fpscr.
13196 2017-05-04  Martin Liska  <mliska@suse.cz>
13198         * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
13199         variable cond_code.
13201 2017-05-04  Richard Biener  <rguenther@suse.de>
13203         * tree.c (array_at_struct_end_p): Handle arrays at struct
13204         end with flexarrays more conservatively.  Refactor and treat
13205         arrays of arrays or aggregates more strict.  Fix
13206         VIEW_CONVERT_EXPR handling.  Remove allow_compref argument.
13207         * tree.c (array_at_struct_end_p): Adjust prototype.
13208         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
13209         * gimple-fold.c (get_range_strlen): Likewise.
13210         * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
13212 2017-05-04  Richard Biener  <rguenther@suse.de>
13214         PR tree-optimization/31130
13215         * tree-vrp.c (needs_overflow_infinity): Remove as always returning
13216         false.
13217         (supports_overflow_infinity): Likewise.
13218         (is_negative_overflow_infinity): Likewise.
13219         (is_positive_overflow_infinity): Likewise.
13220         (is_overflow_infinity): Likewise.
13221         (stmt_overflow_infinity): Likewise.
13222         (overflow_infinity_range_p): Likewise.
13223         (usable_range_p): Remove as always returning true.
13224         (make_overflow_infinity): Remove.
13225         (negative_overflow_infinity): Likewise.
13226         (positive_overflow_infinity): Likewise.
13227         (avoid_overflow_infinity): Likewise.
13228         (set_value_range): Adjust accordingly.
13229         (set_value_range_to_nonnegative): Likewise, remove now unused
13230         overflow_infinity arg.
13231         (vrp_operand_equal_p): Adjust.
13232         (update_value_range): Likewise.
13233         (range_int_cst_singleton_p): Likewise.
13234         (operand_less_p): Likewise.
13235         (compare_values_warnv): Likewise.
13236         (extract_range_for_var_from_comparison_expr): Likewise.
13237         (vrp_int_const_binop): Likewise.
13238         (zero_nonzero_bits_from_vr): Likewise.
13239         (extract_range_from_multiplicative_op_1): Likewise.
13240         (extract_range_from_binary_expr_1): Likewise.
13241         (extract_range_from_unary_expr): Likewise.
13242         (extract_range_from_comparison): Likewise.
13243         (extract_range_basic): Likewise.
13244         (adjust_range_with_scev): Likewise.
13245         (compare_ranges): Likewise.
13246         (compare_range_with_value): Likewise.
13247         (dump_value_range): Likewise.
13248         (test_for_singularity): Likewise, remove strict_overflow_p parameter
13249         never used.
13250         (simplify_cond_using_ranges): Adjust.
13252 2017-05-04  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
13254         * brig-builtins.def: Added a builtin for class_f64.
13255         * builtin-types.def: Added a builtin type needed by class_f64.
13257 2017-05-03  Jason Merrill  <jason@redhat.com>
13259         * timevar.def: Add TV_CONSTEXPR.
13261 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
13263         * common.opt (fdiagnostics-parseable-fixits): Fix typo.
13265 2017-05-03  Martin Jambor  <mjambor@suse.cz>
13267         * ipa-prop.c (ipa_update_after_lto_read): Removed.
13268         * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
13269         * ipa-cp.c (ipcp_propagate_stage): Do not call
13270         ipa_update_after_lto_read.
13271         * ipa-inline.c (ipa_inline): Likewise.
13273 2017-05-03  Martin Jambor  <mjambor@suse.cz>
13275         * ipa-prop.h (ipa_edge_args): Make a class.  Mark with for_user GTY
13276         tag.  Added a default constructor and a destructor.
13277         (ipa_edge_args_sum_t): New class;
13278         (ipa_edge_args_sum): Declare.
13279         (ipa_edge_args_vector): Remove declaration.
13280         (IPA_EDGE_REF): Use ipa_edge_args_sum.
13281         (ipa_free_edge_args_substructures): Remove declaration.
13282         (ipa_check_create_edge_args): Use ipa_edge_args_sum.
13283         (ipa_edge_args_info_available_for_edge_p): Likewise.
13284         * ipa-prop.c (ipa_edge_args_vector): Removed.
13285         (edge_removal_hook_holder): Likewise.
13286         (edge_duplication_hook_holder): Likewise.
13287         (ipa_edge_args_sum): New variable.
13288         (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
13289         ipa_edge_args_vector.
13290         (ipa_free_edge_args_substructures): Likewise.
13291         (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
13292         ipa_edge_args_vector.
13293         (ipa_edge_removal_hook): Turned into method
13294         ipa_edge_args_sum_t::remove.
13295         (ipa_edge_duplication_hook): Turned into method
13296         ipa_edge_args_sum_t::duplicate.
13297         (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
13298         registering edge hooks.
13299         (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
13300         * ipa-inline-analysis.c (estimate_function_body_sizes): Test
13301         ipa_edge_args_sum instead of ipa_edge_args_vector.
13302         * ipa-profile.c (ipa_profile): Likewise.
13304 2017-05-03  Martin Jambor  <mjambor@suse.cz>
13306         * symbol-summary.h (function_summary): New method exists.
13307         (function_summary::symtab_removal): Deallocate through release.
13308         (call_summary): New class.
13309         (gt_ggc_mx): New overload.
13310         (gt_pch_nx): Likewise.
13311         (gt_pch_nx): Likewise.
13313 2017-05-03  Jeff Law  <law@redhat.com>
13315         PR tree-optimization/78496
13316         * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
13317         from simplify_cond_using_ranges.  Split off code to walk
13318         backwards through casts into ...
13319         (simplify_cond_using_ranges_2): New function.
13320         (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
13321         (execute_vrp): After identifying jump threads, call
13322         simplify_cond_using_ranges_2.
13324 2017-05-03  Jan Hubicka  <hubicka@ucw.cz>
13326         PR bootstrap/80609
13327         * ipa-inline.h (inline_summary): Add ctor.
13328         (create_ggc): Do not use ggc_cleared_alloc.
13330 2017-05-03  Jeff Downs  <heydowns@somuchpressure.net>
13331             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13333         * gcc.c (handle_braces): Support escaping in switch matching
13334         text.
13335         * doc/invoke.texi (Spec Files): Document it.
13336         Remove superfluous @code markup in items.
13338 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
13340         * diagnostic-show-locus.c (struct column_range): New struct.
13341         (get_affected_columns): New function.
13342         (get_printed_columns): New function.
13343         (struct correction): New struct.
13344         (correction::ensure_capacity): New function.
13345         (correction::ensure_terminated): New function.
13346         (struct line_corrections): New struct.
13347         (line_corrections::~line_corrections): New dtor.
13348         (line_corrections::add_hint): New function.
13349         (layout::print_trailing_fixits): Reimplement in terms of the new
13350         classes.
13351         (selftest::test_overlapped_fixit_printing): New function.
13352         (selftest::diagnostic_show_locus_c_tests): Call it.
13354 2017-05-03  Nathan Sidwell  <nathan@acm.org>
13356         Canonicalize canonical type hashing
13357         * tree.h (type_hash_canon_hash): Declare.
13358         * tree.c (type_hash_list, attribute_hash_list): Move into
13359         type_hash_canon_hash.
13360         (build_type_attribute_qual_variant): Break out hash code calc into
13361         type_hash_canon_hash.
13362         (type_hash_canon_hash): New.  Generic type hash computation.
13363         (build_range_type_1, build_array_type_1, build_function_type,
13364         build_method_type_directly, build_offset_type, build_complex_type,
13365         make_vector_type): Call it.
13367 2017-05-03  Richard Biener  <rguenther@suse.de>
13369         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
13370         When all DRs have unknown misaligned do not always peel
13371         when there is a store but apply the same costing model as if
13372         there were only loads.
13374 2017-05-03  Richard Biener  <rguenther@suse.de>
13376         Revert
13377         PR tree-optimization/80492
13378         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
13379         compare_base_decls returning dont-know properly.
13381 2017-05-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13383         * config/arm/iterators.md (CCSI): New mode iterator.
13384         (arch): New mode attribute.
13385         * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
13386         (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
13387         (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This.  Use CCSI
13388         code iterator for success result mode.
13389         * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
13390         the corresponding new insn generators.
13392 2017-05-03  Bin Cheng  <bin.cheng@arm.com>
13394         Revert r247509
13395         2017-05-02  Bin Cheng  <bin.cheng@arm.com>
13396         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
13398 2017-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
13400         * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
13401         (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
13402         (DDR_A): Wrap DDR argument in brackets.
13403         (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
13404         (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
13405         (DDR_REVERSED_P): Likewise.
13407 2017-05-03  Jakub Jelinek  <jakub@redhat.com>
13409         PR tree-optimization/79472
13410         * tree-switch-conversion.c (struct switch_conv_info): Add
13411         contiguous_range and default_case_nonstandard fields.
13412         (collect_switch_conv_info): Compute contiguous_range and
13413         default_case_nonstandard fields, don't clear final_bb if
13414         contiguous_range and only the default case doesn't have the required
13415         structure.
13416         (check_all_empty_except_final): Set default_case_nonstandard instead
13417         of failing if contiguous_range and the default case doesn't have empty
13418         block.
13419         (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
13420         and only the default case doesn't have the required constants.  Skip
13421         virtual phis.
13422         (gather_default_values): Skip virtual phis.  Allow non-NULL CASE_LOW
13423         if default_case_nonstandard.
13424         (build_constructors): Build constant 1 just once.  Assert that default
13425         values aren't inserted in between cases if contiguous_range.  Skip
13426         virtual phis.
13427         (build_arrays): Skip virtual phis.
13428         (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
13429         (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
13430         Handle virtual phis.
13431         (gen_inbound_check): Handle default_case_nonstandard case.
13432         (process_switch): Adjust check_final_bb caller.  Call
13433         gather_default_values with the first non-default case instead of
13434         default case if default_case_nonstandard.
13436 2017-05-02  Nathan Sidwell  <nathan@acm.org>
13438         * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
13439         check.  Fix formatting.
13441 2017-05-02  Jan Hubicka  <hubicka@ucw.cz>
13443         * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
13444         errors when comparing specialized and unspecialized times.
13446 2017-05-02  David Malcolm  <dmalcolm@redhat.com>
13448         * diagnostic-show-locus.c
13449         (layout::should_print_annotation_line_p): Make private.
13450         (layout::print_annotation_line): Make private.
13451         (layout::annotation_line_showed_range_p): Make private.
13452         (layout::show_ruler): Make private.
13453         (layout::print_source_line): Make private.  Pass in line and
13454         line_width, rather than calling location_get_source_line.  Drop
13455         returned value.
13456         (layout::print_leading_fixits): New method.
13457         (layout::print_any_fixits): Rename to...
13458         (layout::print_trailing_fixits): ...this, and make private.
13459         Don't print newline fixits.
13460         (diagnostic_show_locus): Move logic for printing one row into...
13461         (layout::print_line): ...this new function.  Move the
13462         location_get_source_line call and error-handling from
13463         print_source_line to here.  Call print_leading_fixits, and rename
13464         print_any_fixits to print_trailing_fixits.
13465         (selftest::test_fixit_insert_containing_newline): Update now that
13466         newlines are partially supported.
13467         (selftest::test_fixit_insert_containing_newline_2): New test.
13468         (selftest::test_fixit_replace_containing_newline): Update comments.
13469         (selftest::diagnostic_show_locus_c_tests): Call the new test.
13470         * edit-context.c (class added_line): New class.
13471         (class edited_line): Describe newline handling in comment.
13472         (edited_line::actually_edited_p): New method.
13473         (edited_line::print_content): Delete redundant decl.
13474         (edited_line::m_predecessors): New field.
13475         (edited_file::print_content): Call edited_line::print_content.
13476         (edited_file::print_diff): Update to support newlines.
13477         (edited_file::print_diff_hunk): Likewise.
13478         (edited_file::print_run_of_changed_lines): New function.
13479         (edited_file::print_diff_line): Convert to...
13480         (print_diff_line): ...this.
13481         (edited_file::get_effective_line_count): New function.
13482         (edited_line::edited_line): Initialize new field m_predecessors.
13483         (edited_line::~edited_line): Clean up m_predecessors.
13484         (edited_line::apply_fixit): Handle newlines.
13485         (edited_line::get_effective_line_count): New function.
13486         (edited_line::print_content): New function.
13487         (edited_line::print_diff_lines): New function.
13488         (selftest::test_applying_fixits_insert_containing_newline): New
13489         test.
13490         (selftest::test_applying_fixits_replace_containing_newline): New
13491         test.
13492         (selftest::insert_line): New function.
13493         (selftest::test_applying_fixits_multiple_lines): Add example of
13494         inserting a line.
13495         (selftest::edit_context_c_tests): Call the new tests.
13497 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
13499         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
13500         parameter cand.  Update dump information.
13501         (get_computation_cost): Update uses.
13503 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
13505         * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
13506         (get_computation_aff): Reorder parameters.  Use get_computation_aff_1.
13507         (get_computation_at, rewrite_use_address): Update use of
13508         get_computation_aff.
13510 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
13512         * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
13513         (get_computation): Delete.
13514         (get_computation_cost): Implement like get_computation_cost_at.
13515         Use get_computation_at.
13516         (get_computation_cost_at): Delete.
13517         (rewrite_use_nonlinear_expr): Use get_computation_at.
13518         (rewrite_use_compare, remove_unused_ivs): Ditto.
13520 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
13522         * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
13524 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
13526         * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
13527         (ivopts_global_cost_for_size): Rename parameter and update uses.
13528         (iv_ca_recount_cost): Update uses.
13529         (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
13530         candidates seperately in n_invs and n_cands.
13531         (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
13533 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
13535         * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
13536         (find_inv_vars_cb): New.
13537         (find_depends): Renamed to ...
13538         (find_inv_vars): ... this.
13539         (add_candidate_1, force_var_cost): Call find_inv_vars.
13540         (split_address_cost, determine_group_iv_cost_cond): Ditto.
13542 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
13544         * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
13545         inv_vars.  Add inv_exprs.
13546         (struct iv_cand): Rename depends_on to inv_vars.
13547         (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
13548         max_inv_var_id/n_inv_var_uses.  Move max_inv_expr_id around.
13549         Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
13550         (dump_cand): Dump inv_vars.
13551         (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
13552         (record_invariant, find_depends, add_candidate_1): Ditto.
13553         (set_group_iv_cost, force_var_cost): Ditto.
13554         (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
13555         (get_computation_cost_at, get_computation_cost): Ditto.
13556         (determine_group_iv_cost_generic): Ditto.
13557         (determine_group_iv_cost_address): Ditto.
13558         (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
13559         (determine_group_iv_costs): Ditto.
13560         (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
13561         (iv_ca_set_remove_invariants): Renamed to ...
13562         (iv_ca_set_remove_invs): ... this.  Support inv_vars and inv_exprs.
13563         (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
13564         (iv_ca_set_add_invariants):  Renamed to ...
13565         (iv_ca_set_add_invs): ... this.  Support inv_vars and inv_exprs.
13566         (iv_ca_set_cp): Use iv_ca_set_add_invs.
13567         (iv_ca_has_deps): Support inv_vars and inv_exprs.
13568         (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
13569         (create_new_ivs): Remove useless dump.
13571 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
13573         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
13574         iv_cand code.
13575         (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
13576         (iv_ca_set_no_cp, create_new_iv): Ditto.
13578 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
13580         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
13582 2017-05-02  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
13584         * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
13585         function tree_check2.
13587 2017-05-02  Martin Liska  <mliska@suse.cz>
13589         * doc/gcov.texi: Add missing preposition.
13590         * gcov.c (function_info::function_info): Properly fill up
13591         all member variables.
13593 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
13595         * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
13597 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
13599         * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
13601 2017-05-02  Martin Liska  <mliska@suse.cz>
13603         PR lto/77954.
13604         * lto-streamer-in.c (lto_read_tree_1): Remove
13605         LTO_STREAMER_DEBUG.
13606         * lto-streamer.c (struct tree_hash_entry): Likewise.
13607         (struct tree_entry_hasher): Likewise.
13608         (tree_entry_hasher::hash): Likewise.
13609         (tree_entry_hasher::equal): Likewise.
13610         (lto_streamer_init): Likewise.
13611         (lto_orig_address_map): Likewise.
13612         (lto_orig_address_get): Likewise.
13613         (lto_orig_address_remove): Likewise.
13614         * lto-streamer.h: Likewise.
13615         * tree-streamer-in.c (streamer_alloc_tree): Likewise.
13616         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
13618 2017-05-02  Sebastian Peryt  <sebastian.peryt@intel.com>
13620         * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
13621         (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
13622         (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
13623         (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
13624         (mm_maskz_sub_round_ss, _mm_mask_add_sd)
13625         (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
13626         (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
13627         (mm_maskz_sub_ss): New intrinsics.
13628         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
13629         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
13630         * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
13631         (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
13632         (__builtin_ia32_subss_mask_round): New builtins.
13633         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
13634         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
13635         * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
13636         Renamed to ...
13637         (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
13638         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
13639         Changed to ...
13640         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
13641         ... this.
13643 2017-05-02  Martin Jambor  <mjambor@suse.cz>
13645         PR tree-optimization/78687
13646         * tree-sra.c (access): New field parent.
13647         (process_subtree_disqualification): New function.
13648         (disqualify_candidate): Call it.
13649         (build_accesses_from_assign): Reset write flag if creating an
13650         assighnment link.
13651         (build_access_subtree): Fill in parent field and also prpagate
13652         down grp_write flag.
13653         (create_artificial_child_access): New parameter set_grp_write, set
13654         grp_write to its value.
13655         (propagate_subaccesses_across_link): Also propagate grp_write flag
13656         values.
13657         (propagate_all_subaccesses): Push the closest parent back to work
13658         queue if add_access_to_work_queue returned true.
13660 2017-05-02  Richard Biener  <rguenther@suse.de>
13662         * common.opt (fstrict-overflow): Alias negative to fwrapv.
13663         * doc/invoke.texi (fstrict-overflow): Remove all traces of
13664         -fstrict-overflow documentation.
13665         * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
13666         (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
13667         flag_strict_overflow.
13668         * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
13669         * lto-opts.c (lto_write_options): Do not stream it.
13670         * lto-wrapper.c (merge_and_complain): Do not handle it.
13671         * opts.c (default_options_table): Do not set -fstrict-overflow.
13672         (finish_options): Likewise do not clear it when sanitizing.
13673         * simplify-rtx.c (simplify_const_relational_operation): Do not
13674         test flag_strict_overflow.
13676 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
13678         * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
13679         using enabled attribute.
13680         (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
13681         (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
13682         (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
13683         (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
13684         (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
13685         (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
13686         (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
13687         (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
13688         (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
13689         (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
13691 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
13693         * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
13695 2017-05-02  Richard Biener  <rguenther@suse.de>
13697         PR tree-optimization/80591
13698         Revert
13699         2017-04-10  Richard Biener  <rguenther@suse.de>
13701         * tree-ssa-structalias.c (find_func_aliases): Properly handle
13702         asm inputs.
13704 2017-05-02  Richard Biener  <rguenther@suse.de>
13706         PR tree-optimization/80549
13707         * tree-cfgcleanup.c (mfb_keep_latches): New helper.
13708         (cleanup_tree_cfg_noloop): Create forwarders to known loop
13709         headers if they do not have a preheader.
13711 2017-05-02  Martin Liska  <mliska@suse.cz>
13713         PR other/80589
13714         * common.opt: Fix typo.
13715         * doc/invoke.texi: Likewise.
13717 2017-05-01  Jan Beulich  <jbeulich@suse.com>
13719         * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
13720         swapping, add (x,x,m,x,n) alternative.
13722 2017-05-01  Nathan Sidwell  <nathan@acm.org>
13724         * calls.c (combine_pending_stack_adjustment_and_call): Remove
13725         unnecessary unadjusted_alignment check.
13727 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
13729         PR c++/80038
13730         * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
13731         operations here.
13732         * gimplify.c (gimplify_cilk_detach): New function.
13733         (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
13734         * tree-core.h: Document EXPR_CILK_SPAWN.
13735         * tree.h (EXPR_CILK_SPAWN): Define.
13737 2017-05-01  David Malcolm  <dmalcolm@redhat.com>
13739         * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
13740         to use new fixit_hint representation, using the "replace" logic.
13741         (get_line_span_for_fixit_hint): Likewise.
13742         (layout::print_any_fixits): Likewise.
13743         (selftest::test_one_liner_many_fixits): Rename to...
13744         (selftest::test_one_liner_many_fixits_1): ...this, and update
13745         comment and expected output to reflect that the multiple fix-it
13746         hints are now consolidated into one insertion.
13747         (selftest::test_one_liner_many_fixits_2): New test.
13748         (selftest::test_diagnostic_show_locus_one_liner): Update for
13749         above.
13750         (selftest::test_fixit_consolidation): Update for fix-it API
13751         change.
13752         * diagnostic.c (print_parseable_fixits): Likewise.
13753         * edit-context.c (edited_line::m_line_events): Convert from
13754         auto_vec <line_event *> to auto_vec <line_event>.
13755         (class line_event): Convert from abstract base class to a concrete
13756         class, taking over the role of replace_event.
13757         (class insert_event): Delete.
13758         (class replace_event): Rename to class line_event.  Convert to
13759         half-open range.
13760         (edit_context::add_fixits): Reimplement.
13761         (edit_context::apply_insert): Delete.
13762         (edit_context::apply_replace): Rename to...
13763         (edit_context::apply_fixit): ...this.  Convert to half-open range.
13764         (edited_file::apply_insert): Delete.
13765         (edited_file::apply_replace): Rename to...
13766         (edited_file::apply_fixit): ...this.
13767         (edited_line::~edited_line): Drop deletion of events.
13768         (edited_line::apply_insert): Delete.
13769         (edited_line::apply_replace): Rename to...
13770         (edited_line::apply_fixit): ...this.  Convert to half-open range.
13771         Update for change to type of m_line_events.
13772         * edit-context.h (edit_context::apply_insert): Delete.
13773         (edit_context::apply_replace): Rename to...
13774         (edit_context::apply_fixit): ...this.
13776 2017-05-01  Martin Sebor  <msebor@redhat.com>
13778         * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
13779         known.
13781 2017-05-01  Uros Bizjak  <ubizjak@gmail.com>
13783         PR target/68491
13784         * config/i386/cpuid.h (__get_cpuid): Always return 0 when
13785         __get_cpuid_max returns 0.
13786         (__get_cpuid_count): Ditto.
13788 2017-05-01  Eric Botcazou  <ebotcazou@adacore.com>
13790         * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
13791         replacement expression is another instance of one of its arguments.
13793 2017-05-01  Jakub Jelinek  <jakub@redhat.com>
13795         PR target/79430
13796         * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
13797         check for stack push/pop autoinc.
13798         * config/i386/i386.c (ix86_agi_dependent): Return false
13799         if the only reason why modified_in_p returned true is that
13800         addr is SP based and set_insn is a push or pop.
13802 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
13804         * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
13805         overflow check.
13807 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
13809         PR ipa/79224
13810         * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
13811         (account_size_time): Use two predicates - exec_pred and
13812         nonconst_pred_ptr.
13813         (evaluate_conditions_for_known_args): Compute both clause and
13814         nonspec_clause.
13815         (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
13816         (inline_summary_t::duplicate): Update.
13817         (estimate_function_body_sizes): Caluculate exec and nonconst predicates
13818         separately.
13819         (compute_inline_parameters): Likewise.
13820         (estimate_edge_size_and_time): Update caluclation of time.
13821         (estimate_node_size_and_time): Compute both time and nonspecialized
13822         time.
13823         (estimate_ipcp_clone_size_and_time): Update.
13824         (inline_merge_summary): Update.
13825         (do_estimate_edge_time): Update.
13826         (do_estimate_edge_size): Update.
13827         (do_estimate_edge_hints): Update.
13828         (inline_read_section, inline_write_summary): Stream both new predicates.
13829         * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
13830         as argument.
13831         (compute_inlined_call_time): Cleanup.
13832         (big_speedup_p): Update.
13833         (edge_badness): Update.
13834         * ipa-inline.h (INLINE_TIME_SCALE): Remove.
13835         (size_time_entry): Replace predicate by exec_predicate and
13836         nonconst_predicate.
13837         (edge_growth_cache_entry): Cache both time nad nonspecialized time.
13838         (estimate_edge_time): Return also nonspec_time.
13839         (reset_edge_growth_cache): Update.
13841 2017-04-29  Jakub Jelinek  <jakub@redhat.com>
13843         PR rtl-optimization/80491
13844         * ifcvt.c (noce_process_if_block): When looking for x setter
13845         with missing else_bb, don't check only the insn right before
13846         cond_earliest, but look for the last insn that x is modified in
13847         within the same bb.
13849         PR rtl-optimization/80491
13850         * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
13852 2017-04-29  Marc Glisse  <marc.glisse@inria.fr>
13854         PR tree-optimization/80487
13855         * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
13857 2017-04-29  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13859         PR tree-optimization/79697
13860         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
13861         is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
13862         (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
13863         BUILT_IN_STRNDUP.
13864         * gimple-fold.c (gimple_fold_builtin_realloc): New function.
13865         (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
13867 2017-04-28  Martin Sebor  <msebor@redhat.com>
13869         PR tree-optimization/80523
13870         * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
13871         (init_target_to_host_charmap, target_to_host, target_strtol10): New
13872         functions.
13873         (maybe_warn, format_directive, parse_directive): Use new functions.
13874         (pass_sprintf_length::execute): Call init_target_to_host_charmap.
13876 2017-04-28  Marc Glisse  <marc.glisse@inria.fr>
13878         * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
13880 2017-04-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13882         * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
13883         target_header_dir): Set correctly.
13884         * configure: Regenerated.
13885         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
13886         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
13887         instead of SYSTEM_HEADER_DIR.
13889 2017-04-28  Jan Hubicka  <hubicka@ucw.cz>
13891         * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
13892         (estimate_local_effects): Likewise.
13893         * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
13894         edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
13895         * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
13896         estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
13897         do_estimate_edge_time, estimate_edge_time): Likewise.
13898         * ipa-inline-analysis.c (estimate_node_size_and_time,
13899         estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
13900         (estimate_time_after_inlining): Remove.
13902 2017-04-28  Martin Liska  <mliska@suse.cz>
13904         * doc/gcov.texi: Enhance documentation of gcov.
13906 2017-04-28  Martin Liska  <mliska@suse.cz>
13908         * doc/gcov.texi: Sort options in alphabetic order.
13909         * doc/gcov-dump.texi: Likewise.
13910         * doc/gcov-tool.texi: Likewise.
13911         * gcov.c (print_usage): Likewise.
13912         * gcov-dump.c (print_usage): Likewise.
13913         * gcov-tool.c (print_merge_usage_message): Likewise.
13914         (print_rewrite_usage_message): Likewise.
13915         (print_overlap_usage_message): Likewise.
13917 2017-04-28  Martin Liska  <mliska@suse.cz>
13919         PR gcov-profile/53915
13920         * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
13922 2017-04-28  Martin Liska  <mliska@suse.cz>
13924         PR gcov-profile/79891
13925         * gcov.c (add_line_counts): Assign BBs to lines just if the BB
13926         is marked by compiler as living on a line.
13927         (get_cycles_count): Remove usage of the union.
13928         (output_intermediate_file): Likewise.
13929         (find_source): Fix GNU coding style.
13930         (accumulate_line_counts): Remove old non-all block mode.
13931         (output_lines): Remove usage of the union.
13932         * profile.c (output_location): Include all BBs, even if
13933         belonging to a same line (and file) as a previous BB.
13935 2017-04-28  Martin Liska  <mliska@suse.cz>
13937         * gcov.c (process_args): Handle new argument 'w'.
13938         (read_graph_file): Assign ID to BBs.
13939         (output_branch_count): Display BB # if verbose flag is set.
13940         (output_lines): Likewise for arcs.
13941         (print_usage): Add '--verbose' option help.
13942         * doc/gcov.texi: Document --verbose (-w) option.
13944 2017-04-28  Martin Liska  <mliska@suse.cz>
13946         * gcov.c (struct block_location_info): New struct.
13947         (process_file): Fill up the new structure.
13948         (read_graph_file): Replace usage of encoding by the newly added
13949         struct.
13950         (add_line_counts): Likewise.
13951         (accumulate_line_counts): Remove usage of the union.
13952         (function_info::function_info): New function.
13953         (function_info::~function_info): Likewise.
13954         (process_file): Call delete instead of release_function.
13955         (release_function): Release the function.
13956         (release_structures): Call delete instead of release_function.
13957         (solve_flow_graph): Replace usage of num_blocks.
13958         (find_exception_blocks): Likewise.
13959         (output_lines): Fix GNU coding style.
13961 2017-04-28  Martin Liska  <mliska@suse.cz>
13963         PR driver/56469
13964         * coverage.c (coverage_remove_note_file): New function.
13965         * coverage.h: Declare the function.
13966         * toplev.c (finalize): Clean if an error has been seen.
13968 2017-04-28  Martin Liska  <mliska@suse.cz>
13970         PR gcov-profile/80031
13971         * gcov-dump.c (tag_blocks): Just print number of basic blocks.
13972         * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
13973         * gcov.c (read_graph_file): Read just number of blocks.
13974         * profile.c (branch_prob): Do not stream 0 flags per a basic
13975         block.
13977 2017-04-28  Martin Liska  <mliska@suse.cz>
13979         * gcov-dump.c (tag_*): Add new argument to declarations.
13980         (dump_gcov_file): Likewise.
13981         (tag_blocks): Add and use new argument depth.
13982         (tag_arcs): Likewise.
13983         (tag_lines): Likewise.
13984         (tag_counters): Likewise.
13985         (tag_summary): Likewise.
13986         (dump_working_sets): Use depth to do a proper indentation.
13988 2017-04-28  Jakub Jelinek  <jakub@redhat.com>
13990         PR bootstrap/80531
13991         * cgraph.h (symtab_node::debug_symtab): No longer inline.
13992         * symtab.c (symtab_node::debug_symtab): Move definition here.
13994 2017-04-28  Richard Biener  <rguenther@suse.de>
13996         * lto-streamer.h (LTO_major_version): Bump to 7.
13998 2017-04-28  Richard Biener  <rguenther@suse.de>
14000         * tree-vrp.c (assert_info): New struct.
14001         (add_assert_info): New helper.
14002         (register_edge_assert_for_2): Refactor to add asserts to a vector
14003         of assert_info.
14004         (register_edge_assert_for_1): Likewise.
14005         (register_edge_assert_for): Likewise.
14006         (finish_register_edge_assert_for): New helper actually registering
14007         asserts where live on edge.
14008         (find_conditional_asserts): Adjust.
14009         (find_switch_asserts): Likewise.
14010         (evrp_dom_walker::try_find_new_range): Generalize.
14011         (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
14013 2017-04-27  Marek Polacek  <polacek@redhat.com>
14015         PR sanitizer/80349
14016         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
14017         arg10 and arg11 to itype.
14019 2017-04-27  Jonathan Wakely  <jwakely@redhat.com>
14021         * doc/extend.texi (Object Size Checking): Improve grammar.
14023 2017-04-27  Richard Earnshaw  <rearnsha@arm.com>
14025         PR target/80530
14026         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
14027         that the logic for permitting reciprocal estimates matches that
14028         in use_rsqrt_p.
14030 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
14032         PR c++/80534
14033         * tree.c (type_cache_hasher::equal): Only compare
14034         TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
14035         (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
14036         non-aggregate element types.
14037         * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
14038         about the flag on ARRAY_TYPEs in the comment, formatting fix.
14040 2017-04-27  Richard Biener  <rguenther@suse.de>
14042         PR middle-end/80533
14043         * emit-rtl.c (set_mem_attributes_minus_bitpos): When
14044         stripping ARRAY_REFs from MEM_EXPR make sure we're not
14045         keeping a reference to a trailing array.
14047 2017-04-27  Richard Biener  <rguenther@suse.de>
14049         PR middle-end/80539
14050         * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
14051         being in loop-closed SSA form conservatively.
14052         (chrec_fold_multiply_poly_poly): Likewise.
14054 2017-04-27  Tamar Christina  <tamar.christina@arm.com>
14056         PR middle-end/79665
14057         * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
14058         CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
14060 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
14062         PR target/77728
14063         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
14064         (aarch64_function_arg_alignment): Return unsigned int again, but still
14065         ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
14066         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
14067         Don't emit -Wpsabi note.
14068         (aarch64_function_arg_boundary): Likewise.
14069         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
14070         caller.
14072 2017-04-26  Nathan Sidwell  <nathan@acm.org>
14074         * tree.h (crc32_unsigned_n): Declare.
14075         (crc32_unsigned, crc32_unsigned): Make inline.
14076         * tree.c (crc32_unsigned_bits): Replace with ...
14077         (crc32_unsigned_n): ... this.
14078         (crc32_unsigned, crc32_byte): Remove.
14079         (crc32_string): Remove unnecessary braces.
14081 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
14083         * ipa-cp.c (estimate_local_effects): Convert sreal to int.
14084         * ipa-inline-analysis.c (MAX_TIME): Remove.
14085         (account_size_time): Use sreal for time.
14086         (dump_inline_summary): Update.
14087         (estimate_function_body_sizes): Update.
14088         (estimate_edge_size_and_time): Update.
14089         (estimate_calls_size_and_time): Update.
14090         (estimate_node_size_and_time): Update.
14091         (inline_merge_summary): Update.
14092         (inline_update_overall_summary): Update.
14093         (estimate_time_after_inlining): Update.
14094         (inline_read_section): Update.
14095         (inline_write_summary): Update.
14096         * ipa-inline.c (compute_uninlined_call_time): Update.
14097         (compute_inlined_call_time): Update.
14098         (recursive_inlining): Update.
14099         (inline_small_functions): Update.
14100         (dump_overall_stats): Update.
14101         * ipa-inline.h: Include sreal.h.
14102         (size_time_entry): Turn time to sreal.
14103         (inline_summary): Turn self_time nad time to sreal.
14105 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
14107         * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
14108         data-streamer.h
14109         (sreal::stream_out, sreal::stream_in): New.
14110         * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
14112 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
14114         * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
14115         environment.
14117 2017-04-25  Uros Bizjak  <ubizjak@gmail.com>
14119         PR target/70799
14120         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
14121         Handle ASHIFTRT.
14122         (dimode_scalar_chain::compute_convert_gain): Ditto.
14123         (dimode_scalar_chain::make_vector_copies): Ditto.
14124         (dimode_scalar_chain::convert_reg): Ditto.
14125         (dimode_scalar_chain::convert_insn): Ditto.
14126         * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
14127         (VI248_AVX512BW_1): New mode iterator.
14128         (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
14129         <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
14130         mode iterator.
14132 2017-04-25  Martin Sebor  <msebor@redhat.com>
14134         PR tree-optimization/80497
14135         * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
14136         constants are representable in HOST_WIDE_INT.
14137         (parse_directive): Ditto.
14139 2017-04-25  Martin Sebor  <msebor@redhat.com>
14141         PR bootstrap/80486
14142         * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
14143         (new_zero_array): Adjust signature.
14144         (dom_info::dom_init): Used unsigned rather that size_t.
14145         (dom_info::dom_info): Same.
14147 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14148             Jakub Jelinek  <jakub@redhat.com>
14150         PR target/77728
14151         * config/arm/arm.c: Include gimple.h.
14152         (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
14153         returns negative, increment ncrn only if it returned positive.
14154         (arm_needs_doubleword_align): Return int instead of bool,
14155         ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
14156         members, but if there is any such non-FIELD_DECL
14157         > PARM_BOUNDARY aligned decl, return -1 instead of false.
14158         (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
14159         returns negative, increment nregs only if it returned positive.
14160         (arm_setup_incoming_varargs): Likewise.
14161         (arm_function_arg_boundary): Emit -Wpsabi note if
14162         arm_needs_doubleword_align returns negative, return
14163         DOUBLEWORD_ALIGNMENT only if it returned positive.
14165 2017-04-25  Marek Polacek  <polacek@redhat.com>
14167         PR sanitizer/80349
14168         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
14169         first argument to type.
14171 2017-04-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
14173         PR target/80482
14174         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
14175         type checks to test for compatibility instead of equality.
14177 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14178             Jakub Jelinek  <jakub@redhat.com>
14180         PR target/77728
14181         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
14182         type.
14183         (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
14184         struct.  Ignore DECL_ALIGN of decls other than FIELD_DECL for
14185         the alignment computation, but return their maximum in warn_alignment.
14186         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
14187         Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
14188         is smaller.
14189         (aarch64_function_arg_boundary): Likewise.  Simplify using MIN/MAX.
14190         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
14191         caller.
14193 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
14195         * config/arc/simdext.md (dmpyh): Fix typo.
14197 2017-04-25  Richard Biener  <rguenther@suse.de>
14199         PR tree-optimization/80492
14200         * alias.c (compare_base_decls): Handle registers with asm
14201         specification conservatively.
14202         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
14203         compare_base_decls returning dont-know properly.
14205 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
14207         * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
14208         (legitimate_offset_address_p): New function.
14209         (arc_legitimate_address_p): Use above function.
14211 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
14213         * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
14215 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
14217         * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
14218         ACCH registers whenever they are available.
14220 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
14222         * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
14223         double regs fix when not used.
14225 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
14227         * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
14228         core registers.
14229         (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
14230         (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
14232 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
14234         * config/arc/arc.c (arc_output_addsi): Check for h-register class
14235         when emitting short ADD instructions.
14237 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
14239         * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
14240         constraint.
14241         (cmpsi_cc_c_insn): Likewise.
14242         (cbranchsi4_scratch): Compute proper instruction length using
14243         compact_hreg_operand.
14244         * config/arc/predicates.md (compact_hreg_operand): New predicate.
14246 2017-04-25  Richard Biener  <rguenther@suse.de>
14248         PR middle-end/80509
14249         * passes.c (pass_manager::pass_manager): Initialize
14250         m_name_to_pass_map.
14252 2017-04-25  Richard Biener  <rguenther@suse.de>
14254         PR tree-optimization/79201
14255         * tree-ssa-sink.c (statement_sink_location): Handle calls.
14257 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14259         PR target/80464
14260         * config/s390/vector.md: Split MEM->GPR vector moves for
14261         non-s_operand addresses.
14263 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14265         PR target/79895
14266         * config/s390/predicates.md (reload_const_wide_int_operand): New
14267         predicate.
14268         * config/s390/s390.md ("movti"): Remove d/P alternative.
14269         ("movti_bigconst"): New pattern definition.
14271 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14273         PR target/80080
14274         * s390-protos.h (s390_expand_cs_hqi): Removed.
14275         (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
14276         * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
14277         modes as well as CCZ1mode and CCZmode.
14278         (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
14279         signature of s390_emit_compare_and_swap.
14280         (s390_expand_cs_hqi): Likewise, make static.
14281         (s390_expand_cs_tdsi): Generate an explicit compare before trying
14282         compare-and-swap, in some cases.
14283         (s390_expand_cs): Wrapper function.
14284         (s390_expand_atomic_exchange_tdsi): New backend specific expander for
14285         atomic_exchange.
14286         (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
14287         * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
14288         patterns for small and large integers.  Forbid symref memory operands.
14289         Move expander to s390.c.  Require cc register.
14290         ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
14291         ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
14292         ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
14293         ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
14294         symref memory operands.  Remove CC mode and call s390_match_ccmode
14295         instead.
14296         ("atomic_exchange<mode>"): Allow and implement all integer modes.
14298 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14300         * config/s390/s390.md (define_peephole2): New peephole to help
14301         combining the load-and-test pattern with volatile memory.
14303 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14305         * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
14306         with CCZmode for TARGET_Z196.
14308 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
14310         PR rtl-optimization/80501
14311         * combine.c (make_compound_operation_int): Set subreg_code to SET
14312         even for AND with mask of the sign bit of mode.
14314         PR rtl-optimization/80500
14315         * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
14316         sum's initial value.
14318 2017-04-25  Julian Brown  <julian@codesourcery.com>
14319             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
14321         * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
14323 2017-04-25  Marc Glisse  <marc.glisse@inria.fr>
14325         * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
14327 2017-04-25  Julian Brown  <julian@codesourcery.com>
14328             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
14330         * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
14331         (thunderx2t99_sha): New Reservation.
14333 2017-04-25  Julian Brown  <julian@codesourcery.com>
14334             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
14336         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
14337         type for 1-element load.
14339 2017-04-24  Marc Glisse  <marc.glisse@inria.fr>
14341         * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
14343 2017-04-24  Martin Jambor  <mjambor@suse.cz>
14345         PR tree-optimization/80293
14346         * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
14347         char arrays not totally scalarizable if it is false.
14348         (analyze_all_variable_accesses): Pass correct value in the new
14349         parameter.  Add a statistics counter.
14351 2017-04-24  Jan Hubicka  <hubicka@ucw.cz>
14353         PR middle-end/79931
14354         * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
14356 2017-04-24  Richard Biener  <rguenther@suse.de>
14358         PR tree-optimization/80494
14359         * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
14360         out for complex types.
14362 2017-04-24  Richard Biener  <rguenther@suse.de>
14364         * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
14365         * tree-ssa-sccvn.c (print_scc): Print SCC size.
14366         (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
14367         (DFS): Adjust and never fail.
14368         (sccvn_dom_walker::fail): Remove.
14369         (sccvn_dom_walker::before_dom_children): Adjust.
14370         (run_scc_vn): Likewise and never fail.
14371         * tree-ssa-pre.c (pass_pre::execute): Adjust.
14372         (pass_fre::execute): Likewise.
14374 2017-04-24  Richard Biener  <rguenther@suse.de>
14376         PR tree-optimization/79725
14377         * tree-ssa-sink.c (statement_sink_location): Return whether
14378         failure reason was zero uses.  Move that check later.
14379         (sink_code_in_bb): Deal with zero uses by removing the stmt
14380         if possible.
14382 2017-04-24  Richard Biener  <rguenther@suse.de>
14384         PR c++/2972
14385         * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
14386         pointer-based references.
14388 2017-04-24  Richard Biener  <rguenther@suse.de>
14390         PR bootstrap/79814
14391         * pass_manager.h (pass_manager::operator new): Remove.
14392         (pass_manager::operator delete): Likewise.
14393         * passes.c (pass_manager::operator new): Remove.
14394         (pass_manager::operator delete): Likewise.
14395         (pass_manager::pass_manager): Zero individual pass members.
14397 2017-04-23  Uros Bizjak  <ubizjak@gmail.com>
14399         PR target/70799
14400         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
14401         <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
14402         Check "XEXP (src, 1)" operand here.
14403         <case PLUS, case MINUS, case IOR, case XOR, case AND>:
14404         Check "XEXP (src, 1)" operand here.
14405         (dimode_scalar_chain::make_vector_copies): Detect count register
14406         of a shift instruction.  Zero extend count register from QImode
14407         to DImode to satisfy vector shift pattern count operand predicate.
14408         Substitute vector shift count operand with a DImode copy.
14409         (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
14410         vector register.
14412 2017-04-21  Uros Bizjak  <ubizjak@gmail.com>
14414         * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
14415         Remove UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
14416         (*insvqi_1_mem_rex64): Move above insv<mode>_1.  Remove
14417         UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
14418         (UNSPEC_NOREX_MEM): Remove definition.
14420 2017-04-21  Richard Biener  <rguenther@suse.de>
14422         PR tree-optimization/79547
14423         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14424         Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
14425         bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
14426         without any constraints.
14428 2017-04-21  Richard Biener  <rguenther@suse.de>
14430         PR tree-optimization/78847
14431         * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
14433 2017-04-21  Richard Biener  <rguenther@suse.de>
14435         * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
14436         (build_distinct_type_copy): Likewise.
14437         (build_variant_type_copy): Likewise.
14438         * tree.c (build_qualified_type): Pass down mem-stat info.
14439         (build_distinct_type_copy): Likewise.
14440         (build_variant_type_copy): Likewise.
14442 2017-04-21  Richard Biener  <rguenther@suse.de>
14444         PR tree-optimization/80237
14445         * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
14446         defaulted to NULL.
14447         (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
14448         for a simplified result.
14450 2016-04-21  Richard Biener  <rguenther@suse.de>
14452         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
14453         sth as strict as a simple_iv but a chrec without symbols and an
14454         operand defined in the loop we are peeling (and not some subloop).
14455         (propagate_constants_for_unrolling): Propagate all constants.
14457 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
14459         PR target/79804
14460         * config/i386/i386.c (print_reg): Remove assert for disalowed
14461         regno values, call output_operand_lossage instead.
14463 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
14465         PR target/78090
14466         * config/i386/constraints.md (Yc): New register constraint.
14467         * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
14468         Use Yc constraint for alternative 2 of operand 0.  Remove
14469         preferred_for_speed attribute.
14471 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
14473         * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
14474         lastprivate clauses in SIMT case.
14476 2017-04-20  Volker Reichelt  <v.reichelt@netcologne.de>
14478         * doc/invoke.texi (-Wextra-semi): Document new warning option.
14480 2017-04-20  Richard Biener  <rguenther@suse.de>
14482         PR tree-optimization/57796
14483         * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
14484         as N scalar stores.
14485         (vect_model_load_cost): Cost gathers as N scalar loads.
14487 2017-04-20  Richard Biener  <rguenther@suse.de>
14489         * ggc-page.c (ggc_allocated_p): Rename to ...
14490         (safe_lookup_page_table_entry): ... this and return the lookup
14491         result.
14492         (gt_ggc_m_S): Use safe_lookup_page_table_entry.
14494 2017-04-20  Richard Biener  <rguenther@suse.de>
14496         PR tree-optimization/80453
14497         * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
14498         * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
14499         from the conditions.
14500         (vn_phi_eq): Pass them down.
14501         (vn_phi_lookup): Record them.
14502         (vn_phi_insert): Likewise.
14504 2017-04-20  Matthew Fortune  <matthew.fortune@imgtec.com>
14506         * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
14507         uninitialized variable warning to avoid buffer overrun.
14509 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
14511         PR other/71250
14512         * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
14513         is suppressed for '{ 0 }' in C.
14515 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
14517         * BASE-VER: Set to 8.0.0.
14519 2017-04-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14521         * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
14522         priority .init_array and .fini_array section with SECTION_NOTYPE
14523         flag.
14525 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
14527         PR middle-end/80423
14528         * tree.h (build_array_type): Add typeless_storage default argument.
14529         * tree.c (type_cache_hasher::equal): Also compare
14530         TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
14531         (build_array_type): Add typeless_storage argument, set
14532         TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
14533         recursive call.
14534         (build_nonshared_array_type): Adjust build_array_type_1 caller.
14535         (build_array_type): Likewise.  Add typeless_storage argument.
14537 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
14538             Jakub Jelinek  <jakub@redhat.com>
14540         PR tree-optimization/80426
14541         * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
14542         operation on symbolic operands, also compute the overflow for the
14543         invariant part when the operation degenerates into a negation.
14545 2017-04-19  Jakub Jelinek  <jakub@redhat.com>
14547         PR debug/80461
14548         * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
14549         Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
14551         PR debug/80436
14552         * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
14554 2017-04-19  Georg-Johann Lay  <avr@gjlay.de>
14556         PR target/80462
14557         * config/avr/avr.c (tree.h): Include it.
14558         (cgraph.h): Include it.
14559         (avr_encode_section_info): Don't warn for uninitialized progmem
14560         variable if it's just an alias.
14562 2017-04-19  Richard Biener  <rguenther@suse.de>
14564         PR ipa/65972
14565         * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
14566         when needed by AutoPGO.
14568 2017-04-19  Paulo J. Matos  <paulo@matos-sorge.com>
14570         PR lto/50345
14571         * doc/lto.texi: Remove an extra 'that'.
14573 2017-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
14575         PR rtl-optimization/80429
14576         * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
14577         are only used in debug insns.
14579 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
14580             Vladimir Makarov  <vmakarov@redhat.com>
14582         * config/sparc/predicates.md (input_operand): Add comment.  Return
14583         true for any memory operand when LRA is in progress.
14584         * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
14586 2017-04-18  Jeff Law  <law@redhat.com>
14588         PR target/74563
14589         * mips.md ({return,simple_return}_internal): Do not overwrite
14590         operands[0].
14592 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
14594         PR tree-optimization/80443
14595         * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
14596         instead of adding 1, subtract -1 and similarly instead of subtracting
14597         1 add -1.
14599 2017-04-18  Richard Sandiford  <richard.sandiford@arm.com>
14601         PR rtl-optimization/80357
14602         * haifa-sched.c (tmp_bitmap): New variable.
14603         (model_recompute): Handle duplicate use records.
14604         (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
14605         (free_global_sched_pressure_data): Free it.
14607 2017-04-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14609         Revert:
14610         2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14611         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
14612         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
14613         instead of SYSTEM_HEADER_DIR.
14615 2017-04-18  Jeff Law  <law@redhat.com>
14617         PR middle-end/80422
14618         * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
14619         predecessors after walking up the insn chain.
14621 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
14623         PR debug/80263
14624         * dwarf2out.c (modified_type_die): Try harder not to emit internal
14625         sizetype type into debug info.
14627 2017-04-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
14629         PR target/80099
14630         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
14631         unneeded test for TARGET_UPPER_REGS_SF.
14632         * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
14634 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
14636         PR sanitizer/80444
14637         * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
14638         instead of gsi_after_labels.
14640 2017-04-18  Jeff Law  <law@redhat.com>
14642         * regcprop.c (maybe_mode_change): Avoid creating copies of the
14643         stack pointer.
14645         Revert:
14646         2017-04-13  Jeff Law  <law@redhat.com>
14647         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
14648         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
14650 2017-04-18  Georg-Johann Lay  <avr@gjlay.de>
14652         PR target/79453
14653         * config/avr/avr.c (intl.h): Include it.
14654         (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
14656 2017-04-18  Martin Liska  <mliska@suse.cz>
14658         PR gcov-profile/78783
14659         * gcov-tool.c (gcov_output_files): Validate that destination
14660         file is either removed by the tool or by a user.
14662 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
14663             Guy Benyei  <guybe@mellanox.com>
14665         * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
14666         block, and do not negate it, the stored id is already negative.
14668 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
14670         * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
14672 2017-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
14674         PR target/80098
14675         * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
14676         masks of options that should be turned off if the VSX vector
14677         options are turned off.
14678         (OTHER_P8_VECTOR_MASKS): Likewise.
14679         (OTHER_VSX_VECTOR_MASKS): Likewise.
14680         * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
14681         rs6000_disable_incompatible_switches to validate no type switches
14682         like -mvsx.
14683         (rs6000_incompatible_switch): New function to disallow turning on
14684         other vector options if -mno-vsx, -mno-power8-vector, or
14685         -mno-power9-vector are specified.
14687 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
14689         * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
14691 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
14693         * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
14694         * config/arc/arc.c (arc_decl_pretend_args): Likewise.
14695         * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
14696         (ARG_POINTER_CFA_OFFSET): Likewise.
14698 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
14700         * config/arc/arc.c (arc_mode_dependent_address_p): Relax
14701         conditions to take advantage of various optimizations.
14703 2017-04-13  Jeff Law  <law@redhat.com>
14705         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
14706         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
14707         (zero_extendsidi2_dext): Likewise.
14709 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
14711         PR sanitizer/80403
14712         * fold-const.c (fold_ternary_loc): Revert
14713         use op0 instead of fold_convert_loc (loc, type, arg0) part of
14714         2017-04-12 change.
14716 2017-04-13  Vladimir Makarov  <vmakarov@redhat.com>
14718         PR rtl-optimization/80343
14719         * lra-remat.c (update_scratch_ops): Assign original hard reg to
14720         new scratch pseudo.
14722 2017-04-13  Denis Khalikov <d.khalikov@partner.samsung.com>
14724         PR sanitizer/80414
14725         * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
14726         to ubsan_encode_value.
14728 2017-04-13  Jeff Law  <law@redhat.com>
14730         * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
14731         appearing in DEBUG_INSNs.
14733 2017-04-13  Martin Liska  <mliska@suse.cz>
14735         PR gcov-profile/80413
14736         * gcov-io.c (gcov_write_string): Copy to buffer just when
14737         allocated size is greater than zero.
14739 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
14741         PR debug/80321
14742         * dwarf2out.c (decls_for_scope): Ignore declarations of
14743         current_function_decl in BLOCK_NONLOCALIZED_VARS.
14745 2017-04-12  Jan Hubicka  <hubicka@ucw.cz>
14747         PR lto/69953
14748         * ipa-visibility.c (non_local_p): Fix typos.
14749         (localize_node): When localizing symbol in same comdat group,
14750         dissolve the group only when we know external symbols are going
14751         to be privatized.
14752         (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
14754 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
14756         PR tree-optimization/79390
14757         * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
14758         order does not result in usable sequence, retry with reversed operand
14759         order.
14761         PR sanitizer/80403
14762         PR sanitizer/80404
14763         PR sanitizer/80405
14764         * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
14765         to fold_build2_loc.  Convert TREE_OPERAND (tem, 0) to type.  Use
14766         op0 instead of fold_convert_loc (loc, type, arg0).
14768 2017-04-12  Jeff Law  <law@redhat.com>
14770         * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
14771         has a delay slot in the generated code.
14773         * config/cris/cris.md (cris_preferred_reload_class): Return
14774         GENNONACR_REGS rather than GENERAL_REGS.
14776 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
14778         PR c/80163
14779         * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
14780         vs. ZERO_EXTEND based on signedness of treeop0's type rather than
14781         signedness of the result type.
14783 2017-04-12  Richard Biener  <rguenther@suse.de>
14784             Jeff Law  <law@redhat.com>
14786         PR tree-optimization/80359
14787         * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
14788         trim stores to TARGET_MEM_REFs.
14790 2017-04-12  Richard Biener  <rguenther@suse.de>
14792         PR tree-optimization/79390
14793         * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
14794         threading case even more.
14796 2017-04-12  Segher Boessenkool  <segher@kernel.crashing.org>
14798         PR target/80382
14799         * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
14800         for quad_address_p for TImode, instead of just not indexed_address.
14802 2017-04-12  Richard Biener  <rguenther@suse.de>
14803             Bernd Edlinger  <bernd.edlinger@hotmail.de>
14805         PR middle-end/79671
14806         * alias.c (component_uses_parent_alias_set_from): Handle
14807         TYPE_TYPELESS_STORAGE.
14808         (get_alias_set): Likewise.
14809         * tree-core.h (tree_type_common): Add typeless_storage flag.
14810         * tree.h (TYPE_TYPELESS_STORAGE): New macro.
14811         * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
14812         for types containing members with TYPE_TYPELESS_STORAGE.
14813         (place_field): Likewise.
14814         (layout_type): Likewise for ARRAY_TYPE.
14815         * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
14816         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
14817         TYPE_TYPELESS_STORAGE.
14818         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
14820 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
14822         PR sanitizer/80349
14823         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
14824         first argument to type.
14826 2017-04-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14828         PR target/80376
14829         PR target/80315
14830         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
14831         CONST0_RTX (mode) rather than const0_rtx where appropriate.
14832         (rs6000_expand_binop_builtin): Likewise.
14833         (rs6000_expand_ternop_builtin): Likewise; also add missing
14834         vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
14835         vshasigma built-ins.
14836         * doc/extend.texi: Document that vec_xxpermdi's third argument
14837         must be a constant.
14839 2017-04-11  Uros Bizjak  <ubizjak@gmail.com>
14841         * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
14842         Use shift_const cost parameter when calculating gain of STV shifts.
14844 2017-04-11  Vladimir Makarov  <vmakarov@redhat.com>
14846         PR rtl-optimization/70478
14847         * lra-constraints.c (process_alt_operands): Check memory for
14848         disfavoring memory insn operand.
14850 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
14852         PR middle-end/80100
14853         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
14854         left shift in unsigned HOST_WIDE_INT type.
14856         PR rtl-optimization/80385
14857         * simplify-rtx.c (simplify_unary_operation_1): Don't transform
14858         (not (neg X)) into (plus X -1) for complex or non-integral modes.
14860         PR libgomp/80394
14861         * omp-low.c (scan_omp_task): Don't optimize away empty tasks
14862         if they have any depend clauses.
14864 2017-04-11  Martin Liska  <mliska@suse.cz>
14866         PR ipa/80212
14867         * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
14868         * ipa-split.c (split_function): Create a local comdat symbol
14869         if caller is in a comdat group.
14871 2017-04-11  Martin Liska  <mliska@suse.cz>
14873         PR ipa/80212
14874         * ipa-cp.c (determine_versionability): Handle calls_comdat_local
14875         flags.
14877 2017-04-11  Martin Sebor  <msebor@redhat.com>
14879         PR middle-end/80364
14880         * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
14881         always use the int type.  Use INTEGRAL_TYPE_P() rather than testing
14882         for INTEGER_TYPE.
14883         (directive::set_width, directive::set_precision, format_character):
14884         Adjust.
14885         (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
14886         INTEGER_TYPE.
14888 2017-04-11  Richard Earnshaw  <rearnsha@arm.com>
14890         PR target/80389
14891         * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
14892         conflict, set target->arch_name instead of target->cpu_name.
14894 2017-04-11  Richard Biener  <rguenther@suse.de>
14896         PR tree-optimization/80374
14897         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
14898         build_zero_cst, remove fold_convertible_p check again.
14900 2017-04-11  Martin Liska  <mliska@suse.cz>
14902         PR sanitizer/70878
14903         * ubsan.c (instrument_object_size): Do not instrument register
14904         variables.
14906 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
14908         PR target/80381
14909         * config/i386/i386-builtin-types.def
14910         (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
14911         V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
14912         V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
14913         V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
14914         V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
14915         V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
14916         V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
14917         V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
14918         V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
14919         V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
14920         V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
14921         V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
14922         V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
14923         V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
14924         V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
14925         V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
14926         V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
14927         V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
14928         * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
14929         __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
14930         __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
14931         __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
14932         __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
14933         __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
14934         __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
14935         __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
14936         __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
14937         __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
14938         __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
14939         __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
14940         __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
14941         __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
14942         __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
14943         __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
14944         __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
14945         __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
14946         __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
14947         __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
14948         __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
14949         __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
14950         __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
14951         __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
14952         __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
14953         __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
14954         __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
14955         __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
14956         aliases.
14957         * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
14958         flag to second_arg_count, handle 4 argument function type _COUNT
14959         aliases, handle second_arg_count on second argument rather than last.
14961 2017-04-10  Jeff Law  <law@redhat.com>
14963         PR tree-optimization/80374
14964         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
14965         record anything if we can not convert integer_zero_node to the
14966         desired type.
14968 2017-04-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
14970         PR target/80108
14971         * config/rs6000/rs6000.c (rs6000_option_override_internal):
14972         Enhance special handling given to the TARGET_P9_MINMAX option in
14973         relation to certain other options.
14975 2017-04-10  Bin Cheng  <bin.cheng@arm.com>
14977         PR tree-optimization/80153
14978         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
14979         remove POINTER_PLUS_EXPR's base part directly, rather than through
14980         aff_tree.
14982 2017-04-10  Richard Biener  <rguenther@suse.de>
14983             Bin Cheng  <bin.cheng@arm.com>
14985         PR tree-optimization/80153
14986         * tree-affine.c (aff_combination_to_tree): Get base pointer from
14987         the first element of pointer type aff_tree.  Build result expr in
14988         aff_tree's type.
14989         (add_elt_to_tree): Convert to type unconditionally.  Remove other
14990         fold_convert calls.
14991         * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
14992         (rewrite_use_nonlinear_expr): Check invariant using iv information.
14994 2017-04-10  Richard Biener  <rguenther@suse.de>
14996         * tree-ssa-structalias.c (find_func_aliases): Properly handle
14997         asm inputs.
14999 2017-04-10  Vladimir Makarov  <vmakarov@redhat.com>
15001         PR rtl-optimization/70478
15002         * lra-constraints.c (curr_small_class_check): New.
15003         (update_and_check_small_class_inputs): New.
15004         (process_alt_operands): Update curr_small_class_check.  Disfavor
15005         alternative insn memory operands.  Check available regs for small
15006         class operands.
15008 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
15010         PR target/80057
15011         * config/mips/mips.opt (-mvirt): Update description.
15012         * doc/invoke.texi (-mvirt): Likewise.
15014 2017-04-10  Richard Biener  <rguenther@suse.de>
15016         PR middle-end/80362
15017         * fold-const.c (fold_binary_loc): Look at unstripped ops when
15018         looking for NEGATE_EXPR in -A / -B to A / B folding.
15020 2017-04-10  Martin Liska  <mliska@suse.cz>
15022         PR gcov-profile/80224
15023         * gcov.c (print_usage): Fix usage string.
15024         (get_gcov_intermediate_filename): Remove.
15025         (output_gcov_file): Use both for normal and intermediate format.
15026         (generate_results): Do not initialize special file for
15027         intermediate format.
15029 2017-04-10  Richard Biener  <rguenther@suse.de>
15031         PR tree-optimization/80304
15032         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
15033         for safelen.
15035 2017-04-10  Nathan Sidwell  <nathan@acm.org>
15037         PR target/79905
15038         * config/rs6000/rs6000.c (rs6000_vector_type): New.
15039         (rs6000_init_builtins): Use it.
15041 2016-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15043         * config/arm/arm.md (<mrc>): Add mode to SET source.
15044         (<mrrc>): Likewise.
15046 2017-04-10  Richard Biener  <rguenther@suse.de>
15048         PR middle-end/80344
15049         * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
15051 2017-04-10  Jakub Jelinek  <jakub@redhat.com>
15053         PR target/80324
15054         * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
15055         _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
15056         _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
15057         _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
15058         _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
15059         _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
15060         _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
15061         _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
15062         _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
15063         _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
15064         _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
15065         _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
15066         _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
15067         _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
15068         _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
15069         _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
15070         _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
15071         _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
15072         _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
15073         _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
15074         _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
15075         _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
15076         _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
15078 2017-04-08  Vladimir Makarov  <vmakarov@redhat.com>
15080         PR rtl-optimization/70478
15081         * lra-constraints.c: Reverse the last patch.
15083 2017-04-08  Andreas Tobler  <andreast@gcc.gnu.org>
15085         * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
15086         Add comment for WCHAR_T.
15088 2017-04-08  Martin Liska  <mliska@suse.cz>
15090         Revert:
15091         2017-04-07  Martin Liska  <mliska@suse.cz>
15093         PR ipa/80212
15094         * ipa-split.c (split_function): Add function part to a same comdat
15095         group.
15097 2017-04-08  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
15099         PR target/80358
15100         * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
15102 2017-04-07  Pat Haugen  <pthaugen@us.ibm.com>
15104         * rs6000/rs6000.c (vec_load_pendulum): Rename...
15105         (vec_pairing): ...to this.
15106         (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
15107         (rs6000_sched_init): Adjust for name change.
15108         (struct rs6000_sched_context): Likewise.
15109         (rs6000_init_sched_context): Likewise.
15110         (rs6000_set_sched_context): Likewise.
15112 2017-04-07  Jakub Jelinek  <jakub@redhat.com>
15114         PR target/80322
15115         PR target/80323
15116         PR target/80325
15117         PR target/80326
15118         * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
15119         intrinsics.
15120         * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
15121         _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
15122         _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
15124 2017-04-07  Andreas Tobler  <andreast@gcc.gnu.org>
15126         * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
15128 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
15130         PR rtl-optimization/70703
15131         * ira-color.c (update_conflict_hard_regno_costs): Use
15132         int64_t instead of HOST_WIDE_INT.
15134 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
15136         PR rtl-optimization/70478
15137         * lra-constraints.c (process_alt_operands): Disfavor alternative
15138         insn memory operands.
15140 2017-04-07  Jeff Law  <law@redhat.com>
15142         * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
15143         CALL and NOTE_INSN_CALL_ARG_LOCATION.
15145 2017-04-07  Martin Liska  <mliska@suse.cz>
15147         PR target/79889
15148         * config/aarch64/aarch64.c (aarch64_process_target_attr):
15149         Show error message instead of an ICE.
15151 2017-04-07  Martin Liska  <mliska@suse.cz>
15153         PR ipa/80212
15154         * ipa-split.c (split_function): Add function part to a same comdat
15155         group.
15157 2017-04-07  Richard Biener  <rguenther@suse.de>
15159         PR middle-end/80341
15160         * tree.c (get_unwidened): Also handle ! for_type case for
15161         INTEGER_CSTs.
15162         * convert.c (do_narrow): Split out from ...
15163         (convert_to_integer_1): ... here.  Do not pass final truncation
15164         type to get_unwidened for TRUNC_DIV_EXPR.
15166 2017-04-07  Richard Biener  <rguenther@suse.de>
15168         * tree-affine.c (wide_int_ext_for_comb): Take type rather
15169         than aff_tree.
15170         (aff_combination_const): Adjust.
15171         (aff_combination_scale): Likewise.
15172         (aff_combination_add_elt): Likewise.
15173         (aff_combination_add_cst): Likewise.
15174         (aff_combination_convert): Likewise.
15175         (add_elt_to_tree): Likewise.  Remove unused argument.
15176         (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
15178 2017-04-07  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15180         * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
15181         definition.
15182         * config/arm/arm.c (arm_default_short_enums): Use
15183         ARM_DEFAULT_SHORT_ENUMS.
15184         * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
15186 2017-04-06  Jakub Jelinek  <jakub@redhat.com>
15188         PR debug/80234
15189         * dwarf2out.c (gen_member_die): Handle C++17 inline static data
15190         members with redundant out-of-class redeclaration.
15192 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
15194         PR target/80286
15195         * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
15196         * config/i386/i386.md (*zero_extendsidi2):
15197         Add (?*x,*x) and (?*v,*v) alternatives.
15199 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
15201         PR target/79733
15202         * config/i386/i386.c (ix86_expand_builtin)
15203         <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
15204         mode from insn data. Convert operands to insn operand mode.
15205         Copy operands that don't satisfy insn predicate to a register.
15207 2017-04-06  Sam Thursfield  <sam.thursfield@codethink.co.uk>
15209         * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
15210         Update comments.
15212 2017-04-06  Richard Biener  <rguenther@suse.de>
15214         PR tree-optimization/80334
15215         * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
15216         preserve alignment of accesses.
15218 2017-04-06  Richard Biener  <rguenther@suse.de>
15220         PR tree-optimization/80262
15221         * tree-sra.c (build_ref_for_offset): Preserve address-space
15222         information.
15223         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
15224         Drop useless address-space information on MEM_REF offsets.
15226 2017-04-05  Andreas Schwab  <schwab@linux-m68k.org>
15228         * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
15230 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
15232         PR rtl-optimization/70703
15233         * ira-color.c (update_conflict_hard_regno_costs): Use
15234         HOST_WIDE_INT instead of long.
15236 2017-04-05  Uros Bizjak  <ubizjak@gmail.com>
15238         PR target/80298
15239         * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
15240         not defined for x86_64 target.  Add -mmmx target option when __SSE2__
15241         is not defined.
15242         * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
15243         for x86_64 target.  Handle -m3dnowa option.
15245 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
15247         PR rtl-optimization/70703
15248         * ira-color.c (update_costs_from_allocno): Use the smallest mode.
15249         (update_conflict_hard_regno_costs): Use long instead of unsigned
15250         arithmetic for cost calculation.
15252 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
15253             Bernd Edlinger  <bernd.edlinger@hotmail.de>
15255         PR sanitizer/80308
15256         * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
15257         for big endian.
15259 2017-04-05  Eric Botcazou  <ebotcazou@adacore.com>
15261         PR target/78002
15262         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
15263         ptr_mode with Pmode throughout.
15264         * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
15265         into probe_stack_range and use DImode.
15267 2017-04-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15269         PR target/79890
15270         * config/s390/s390.c (s390_register_info_gprtofpr): Return if
15271         call_eh_return is true.
15273 2017-04-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15275         * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
15276         Initialize last_match_fntype_index.
15278 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
15280         PR target/80310
15281         * tree-nvr.c: Include internal-fn.h.
15282         (pass_return_slot::execute): Ignore internal calls without
15283         direct optab.
15285 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
15286             Richard Biener  <rguenther@suse.de>
15288         PR c++/80297
15289         * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
15290         captures used multiple times, except for the last use.
15291         * generic-match-head.c: Include gimplify.h.
15293 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
15295         PR tree-optimization/79390
15296         * target.h (struct noce_if_info): Declare.
15297         * targhooks.h (default_noce_conversion_profitable_p): Declare.
15298         * target.def (noce_conversion_profitable_p): New target hook.
15299         * ifcvt.h (struct noce_if_info): New type, moved from ...
15300         * ifcvt.c (struct noce_if_info): ... here.
15301         (noce_conversion_profitable_p): Renamed to ...
15302         (default_noce_conversion_profitable_p): ... this.  No longer
15303         static nor inline.
15304         (noce_try_store_flag_constants, noce_try_addcc,
15305         noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
15306         noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
15307         instead of noce_conversion_profitable_p.
15308         * config/i386/i386.c: Include ifcvt.h.
15309         (ix86_option_override_internal): Don't override
15310         PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
15311         (ix86_noce_conversion_profitable_p): New function.
15312         (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
15313         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
15314         * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
15315         * doc/tm.texi: Regenerated.
15317 2017-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15319         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
15320         correction.
15322 2017-04-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15324         PR target/80307
15325         * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
15326         instructions for small multiply cores.
15328 2017-04-04  Jeff Law  <law@redhat.com>
15330         * config/mips/mips.c (mips_multi_add): Zero initialize the newly
15331         added member.
15332         (mips_expand_vec_perm_const): Initialize elements in orig_perm
15333         that are not set by the loop over the elements.
15335 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
15337         PR target/80286
15338         * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
15339         int mode, convert_modes it to mode as unsigned, otherwise use
15340         lowpart_subreg to mode rather than SImode.
15341         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
15342         ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
15343         Use DImode instead of SImode for the shift count operand.
15344         * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
15345         Likewise.
15347 2017-04-04  Richard Biener  <rguenther@suse.de>
15349         PR middle-end/80281
15350         * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
15351         arithmetic done for the negate or the plus.  Simplify.
15352         (A - (-B) -> A + B): Likewise.
15353         * fold-const.c (split_tree): Make sure to not negate pointers.
15355 2017-04-04  Segher Boessenkool  <segher@kernel.crashing.org>
15357         PR rtl-optimization/60818
15358         * simplify-rtx.c (simplify_binary_operation_1): Do not replace
15359         a compare of comparisons with the thing compared if this results
15360         in a different machine mode.
15362 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
15364         * alias.c (base_alias_check): Fix typo in comment.
15365         * cgraph.h (class ipa_polymorphic_call_context): Likewise.
15366         * cgraphunit.c (symbol_table::compile): Likewise.
15367         * collect2.c (maybe_run_lto_and_relink): Likewise.
15368         * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
15369         * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
15370         * config/avr/avr.c (avr_map_op_t): Likewise.
15371         * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
15372         * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
15373         * config/epiphany/epiphany.md (movcc): Likewise.
15374         * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
15375         * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
15376         Likewise.
15377         * config/mips/mips.c (mips_save_restore_reg): Likewise.
15378         * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
15379         * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
15380         * config/sh/sh.c (sh_rtx_costs): Likewise.
15381         * fold-const.c (fold_truth_andor): Likewise.
15382         * genautomata.c (collapse_flag): Likewise.
15383         * gengtype.h (struct type::u::s): Likewise.
15384         * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
15385         * input.c (FORMAT_AMOUNT): Likewise.
15386         * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
15387         (known_aggs_to_agg_replacement_list): Likewise.
15388         * ipa-inline-analysis.c: Likewise.
15389         * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
15390         * ipa-polymorphic-call.c
15391         (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
15392         * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
15393         * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
15394         Likewise.
15395         * modulo-sched.c (apply_reg_moves): Likewise.
15396         * omp-expand.c (build_omp_regions_1): Likewise.
15397         * trans-mem.c (struct tm_wrapper_hasher): Likewise.
15398         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
15399         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
15400         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
15401         * value-prof.c: Likewise.
15402         * var-tracking.c (val_reset): Likewise.
15404 2017-04-03  Richard Biener  <rguenther@suse.de>
15406         PR tree-optimization/80275
15407         * fold-const.c (split_address_to_core_and_offset): Handle
15408         POINTER_PLUS_EXPR.
15410 2017-04-03  Eric Botcazou  <ebotcazou@adacore.com>
15412         * tree-nested.c (get_descriptor_type): Make sure that the alignment of
15413         descriptors is at least equal to that of functions.
15415 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
15417         * config/i386/sse.md (movdi_to_sse): Add missing DONE.
15419 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
15421         PR target/80250
15422         * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
15423         (mov<IMOD4:mode>): New expander.
15424         (*mov<IMOD4:mode>_internal): New insn and split pattern.
15426 2017-03-31  Segher Boessenkool  <segher@kernel.crashing.org>
15428         PR rtl-optimization/79405
15429         * fwprop.c (propagations_left): New variable.
15430         (forward_propagate_into): Decrement it.
15431         (fwprop_init): Initialize it.
15432         (fw_prop): If the variable has reached zero, stop propagating.
15433         (fwprop_addr): Ditto.
15435 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
15437         PR debug/79255
15438         * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
15439         a FUNCTION_DECL, pass it as decl instead of origin to
15440         process_scope_var.
15442 2017-03-31  Alexander Monakov  <amonakov@ispras.ru>
15444         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
15445         string.
15447 2017-03-31  Pat Haugen  <pthaugen@us.ibm.com>
15449         PR target/80107
15450         * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
15451         TARGET_VSX_SMALL_INTEGER.
15453 2017-03-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15455         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
15456         reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
15458 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
15460         * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
15461         extraction from odd-numbered MSA register.
15463 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
15465         PR middle-end/80173
15466         * expmed.c (store_bit_field_1): Don't attempt to create
15467         a word subreg out of hard registers wider than word if they
15468         have HARD_REGNO_NREGS of 1 for their mode.
15470         PR middle-end/80163
15471         * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
15472         conversions to integer types wider than word and pointer.
15474         PR debug/80025
15475         * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
15476         (rtx_equal_for_cselib_p): Pass 0 to it.
15477         * cselib.c (cselib_hasher::equal): Likewise.
15478         (rtx_equal_for_cselib_1): Add depth argument.  If depth
15479         is 128, don't look up VALUE locs and punt.  Increment
15480         depth in recursive calls when walking VALUE locs.
15482 2017-03-31  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15484         * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
15485         (make_gcov_file_name): Use the canonical path name for generating
15486         the MD5 value.
15487         (read_line): Fix handling of files with ascii null bytes.
15489 2017-03-30  Matthew Fortune  <matthew.fortune@imgtec.com>
15491         * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
15492         to initialise a vector register instead
15493         of using a const_int.
15495 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
15497         PR translation/80189
15498         * gimplify.c (omp_default_clause): Use %qs instead of %s in
15499         diagnostic messages.
15501 2017-03-30  Peter Bergner  <bergner@vnet.ibm.com>
15503         PR target/80246
15504         * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
15505         (dfp_diex_<mode>): Update mode of operand 1.
15506         * doc/extend.texi (dxex, dxexq): Document change to return type.
15507         (diex, diexq): Document change to argument type.
15509 2017-03-30  Martin Jambor  <mjambor@suse.cz>
15511         PR ipa/77333
15512         * cgraph.h (cgraph_build_function_type_skip_args): Declare.
15513         * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
15514         it reflects the signature changes performed at the callee side.
15515         * cgraphclones.c (build_function_type_skip_args): Make public, renamed
15516         to cgraph_build_function_type_skip_args.
15517         (build_function_decl_skip_args): Adjust call to the above function.
15519 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
15521         PR target/80206
15522         * config/i386/sse.md
15523         (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
15524         register as dest whenever it is a MEM not rtx_equal_p to the
15525         corresponding dup operand, and when forcing into reg move the
15526         reg into the memory afterwards.
15527         (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
15528         Likewise.  Use <ssehalfvecmode> instead of <ssequartermode>
15529         for the force_reg mode.
15530         (avx512vl_vextractf128<mode>): Use register as dest either
15531         always when a MEM, or when it is a MEM not rtx_equal_p to the
15532         corresponding dup operand, or even not when it is a CONST_VECTOR
15533         depending on the mode and lo vs. hi.
15534         (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
15535         parens.
15536         (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
15537         (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
15538         Likewise.  Require that operands[2] is even.
15539         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
15540         Remove extraneous parens.  Require that operands[2] is a multiple
15541         of 4.
15542         (vec_extract_lo_<mode><mask_name>): Don't bother testing if
15543         operands[0] is a MEM if <mask_applied>, the predicates/constraints
15544         disallow memory then.
15546 2017-03-30  Richard Biener  <rguenther@suse.de>
15548         PR tree-optimization/77498
15549         * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
15550         to non-constants over backedges.
15552 2017-03-29  Segher Boessenkool  <segher@kernel.crashing.org>
15554         PR rtl-optimization/80233
15555         * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
15556         as last_combined_insn.  Do not test for BARRIER_P separately.
15558 2017-03-29  Andreas Schwab  <schwab@suse.de>
15560         PR ada/80146
15561         * calls.c (prepare_call_address): Convert funexp to Pmode before
15562         copying to temp reg.
15564 2017-03-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15566         PR tree-optimization/80158
15567         * gimple-ssa-strength-reduction.c (replace_mult_candidate):
15568         Handle possible future case of more than one alternate
15569         interpretation.
15570         (replace_rhs_if_not_dup): Likewise.
15571         (replace_one_candidate): Likewise.
15573 2017-03-28  Vladimir Makarov  <vmakarov@redhat.com>
15575         PR rtl-optimization/80193
15576         * ira.c (ira): Do not check allocation for LRA.
15578 2017-03-28  Alexander Monakov  <amonakov@ispras.ru>
15580         * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
15581         (nvptx_output_simt_exit): Declare.
15582         * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
15583         cfun->machine->unisimt_location.  Handle NULL unisimt_predicate.
15584         (init_softstack_frame): Move initialization of crtl->is_leaf to...
15585         (nvptx_declare_function_name): ...here.  Emit declaration of local
15586         memory space buffer for omp_simt_enter insn.
15587         (nvptx_output_unisimt_switch): New.
15588         (nvptx_output_softstack_switch): New.
15589         (nvptx_output_simt_enter): New.
15590         (nvptx_output_simt_exit): New.
15591         * config/nvptx/nvptx.h (struct machine_function): New fields
15592         has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
15593         * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
15594         (UNSPECV_SIMT_EXIT): Ditto.
15595         (omp_simt_enter_insn): New insn.
15596         (omp_simt_enter): New expansion.
15597         (omp_simt_exit): New insn.
15598         * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
15600         * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
15601         (expand_GOMP_SIMT_ENTER_ALLOC): New.
15602         (expand_GOMP_SIMT_EXIT): New.
15603         * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
15604         (GOMP_SIMT_ENTER_ALLOC): Ditto.
15605         (GOMP_SIMT_EXIT): Ditto.
15606         * target-insns.def (omp_simt_enter): New insn.
15607         (omp_simt_exit): Ditto.
15608         * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
15609         simt_dlist.
15610         (lower_rec_simd_input_clauses): Implement SIMT privatization.
15611         (lower_rec_input_clauses): Likewise.
15612         (lower_lastprivate_clauses): Handle SIMT privatization.
15614         * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
15615         (ompdevlow_adjust_simt_enter): New.
15616         (find_simtpriv_var_op): New.
15617         (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
15618         IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
15620         * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
15621         * tree-inline.c (expand_call_inline): Handle SIMT privatization.
15622         (copy_decl_for_dup_finish): Ditto.
15624         * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
15626 2017-03-28  Uros Bizjak  <ubizjak@gmail.com>
15628         PR target/53383
15629         * config/i386/i386.c (ix86_option_override_internal): Always
15630         allow -mpreferred-stack-boundary=3 for 64-bit targets.
15632 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
15634         * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
15636 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
15638         * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
15639         mark new edge's irreducible flag accordign to it.
15640         (vect_do_peeling): Check loop preheader edge's irreducible flag
15641         and pass it to function slpeel_add_loop_guard.
15643 2017-03-28  Richard Sandiford  <richard.sandiford@arm.com>
15645         PR tree-optimization/80218
15646         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
15647         Update block frequencies and counts.
15649 2017-03-28  Richard Biener  <rguenther@suse.de>
15651         PR tree-optimization/78644
15652         * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
15653         of a simplification result we may not use it at all.
15655 2017-03-28  Richard Biener  <rguenther@suse.de>
15657         PR ipa/80205
15658         * tree-inline.c (copy_phis_for_bb): Do not create PHI node
15659         without arguments, generate default definition of a SSA name.
15661 2017-03-28  Richard Biener  <rguenther@suse.de>
15663         PR middle-end/80222
15664         * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
15665         TYPE_REF_CAN_ALIAS_ALL references.
15666         * fold-const.c (fold_indirect_ref_1): Likewise.
15668 2017-03-28  Martin Liska  <mliska@suse.cz>
15670         PR ipa/80104
15671         * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
15672         thunk call as DECL_GIMPLE_REG_P when vector or complex type.
15674 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
15675             Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>
15677         * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
15678         (EXTRA_SPECS): Define.
15679         (SUBTARGET_EXTRA_SPECS): Likewise.
15680         (SUBTARGET_CPP_SPEC): Likewise.
15681         * config/arc/elf.h (EXTRA_SPECS): Renamed to
15682         SUBTARGET_EXTRA_SPECS.
15683         * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
15685 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
15687         * config/arc/simdext.md (vst64_insn): Update pattern.
15688         (vld32wh_insn): Likewise.
15689         (vld32wl_insn): Likewise.
15690         (vld64_insn): Likewise.
15691         (vld32_insn): Likewise.
15693 2017-03-28  Marek Polacek  <polacek@redhat.com>
15695         PR sanitizer/80067
15696         * fold-const.c (fold_comparison): Use protected_set_expr_location
15697         instead of SET_EXPR_LOCATION.
15699 2017-03-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
15701         * tree.c (add_expr): Avoid name lookup warning.
15703 2017-03-27  Jeff Law  <law@redhat.com>
15705         PR tree-optimization/80216
15706         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
15707         function name.  Limit recursion depth.
15708         (record_temporary_equivalences): Corresponding changes.
15710 2017-03-27  Jonathan Wakely  <jwakely@redhat.com>
15712         * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
15713         covered first.
15715 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
15717         PR target/80102
15718         * reg-notes.def (REG_CFA_NOTE): Define.  Use it for CFA related
15719         notes.
15720         * cfgcleanup.c (reg_note_cfa_p): New array.
15721         (insns_have_identical_cfa_notes): New function.
15722         (old_insns_match_p): Don't cross-jump in between /f
15723         and non-/f instructions.  If both i1 and i2 are frame related,
15724         verify all CFA notes, their order and content.
15726 2017-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
15728         PR target/78543
15729         * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
15730         HImode and SImode with zero extend to DImode to one insn.
15731         (bswap<mode>2_extenddi): Likewise.
15732         (bswapsi2_extenddi): Likewise.
15733         (bswaphi2_extendsi): Likewise.
15734         (bswaphi2): Combine bswap HImode and SImode into one insn.
15735         Separate memory insns from swapping register.
15736         (bswapsi2): Likewise.
15737         (bswap<mode>2): Likewise.
15738         (bswaphi2_internal): Delete, no longer used.
15739         (bswapsi2_internal): Likewise.
15740         (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
15741         store, and gpr<-gpr swap insns.
15742         (bswap<mode>2_store): Likewise.
15743         (bswaphi2_reg): Register only splitter, combine with the splitter.
15744         (bswaphi2 splitter): Likewise.
15745         (bswapsi2_reg): Likewise.
15746         (bswapsi2 splitter): Likewise.
15747         (bswapdi2): If we have the LDBRX and STDBRX instructions, split
15748         the insns into load, store, and register/register insns.
15749         (bswapdi2_ldbrx): Likewise.
15750         (bswapdi2_load): Likewise.
15751         (bswapdi2_store): Likewise.
15752         (bswapdi2_reg): Likewise.
15754 2017-03-27  Gunther Nikl  <gnikl@users.sourceforge.net>
15756         * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
15757         (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
15759 2017-03-27  Kelvin Nilsen  <kelvin@gcc.gnu.org>
15761         PR target/80103
15762         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
15763         add comments.
15764         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
15765         special handling for target option conflicts between dform
15766         options (-mpower9-dform, -mpower9-dform-vector,
15767         -mpower9-dform-scalar) and -mno-direct-move.
15769 2017-03-27  Richard Biener  <rguenther@suse.de>
15771         PR tree-optimization/80181
15772         * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
15774 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
15776         * config/arc/predicates.md (move_double_src_operand): Replace the
15777         call to move_double_src_operand with a call to address_operand.
15779 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
15781         * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
15782         * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
15783         * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
15785 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
15787         * config/arc/predicates.md (long_immediate_loadstore_operand):
15788         Consider scaled addresses cases.
15790 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
15792         * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
15793         restored when in interrupt.
15794         * config/arc/arc.md (simple_return): ARCv2 rtie instruction
15795         doesn't have delay slot.
15797 2017-03-27  Richard Biener  <rguenther@suse.de>
15799         PR ipa/79776
15800         * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
15801         inlined thunk clones.
15803 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
15805         PR sanitizer/80168
15806         * asan.c (instrument_derefs): Copy over last operand from
15807         original COMPONENT_REF to the new COMPONENT_REF with
15808         DECL_BIT_FIELD_REPRESENTATIVE.
15809         * ubsan.c (instrument_object_size): Likewise.
15811 2017-03-27  Richard Biener  <rguenther@suse.de>
15813         PR tree-optimization/80170
15814         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
15815         sure DR/SCEV didnt fold in constants we do not see when looking
15816         at the reference base alignment.
15818 2017-03-27  Richard Biener  <rguenther@suse.de>
15820         PR middle-end/80171
15821         * gimple-fold.c (fold_ctor_reference): Properly guard against
15822         NULL return value from canonicalize_constructor_val.
15824 2017-03-25  Uros Bizjak  <ubizjak@gmail.com>
15826         PR target/80180
15827         * config/i386/i386.c (ix86_expand_builtin)
15828         <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
15829         flags reg setting and flags reg using instructions.
15830         <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto.  Use non-flags reg
15831         clobbering instructions to zero extend op2.
15833 2017-03-25  Gerald Pfeifer  <gerald@pfeifer.com>
15835         * doc/install.texi (Configuration) <--with-aix-soname>:
15836         Update link to AIX ld.
15838 2017-03-25  Bernd Schmidt  <bschmidt@redhat.com>
15840         PR rtl-optimization/80160
15841         PR rtl-optimization/80159
15842         * lra-assigns.c (must_not_spill_p): Tighten new test to also take
15843         reg_alternate_class into account.
15845 2017-03-24  Vladimir Makarov  <vmakarov@redhat.com>
15847         PR target/80148
15848         * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
15849         to consider in curr_insn_transform.
15851 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
15853         * genrecog.c (validate_pattern): Add VEC_SELECT validation.
15854         * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
15855         and emit_mode_inner.
15857 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15859         * config/s390/s390-builtins.def: Add VXE builtins.  Add a flags
15860         argument to the overloaded builtin variants.  Use the new flag to
15861         deprecate certain builtin variants.
15862         * config/s390/s390-builtin-types.def: Add new builtin types.
15863         * config/s390/s390-builtins.h: Support new flags field for
15864         overloaded builtins.
15865         * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
15866         (s390_macro_to_expand): Enable vector float data type.
15867         (s390_cpu_cpp_builtins_internal): Indicate support of the new
15868         builtins by incrementing the __VEC__ version number.
15869         (s390_expand_overloaded_builtin): Support expansion of vec_xl and
15870         vec_xst.
15871         (s390_resolve_overloaded_builtin): Emit error messages depending
15872         on the builtin flags.
15873         * config/s390/s390.c (s390_expand_builtin): Support additional
15874         flags argument.  Change error message to match the messages
15875         emitted in s390-c.c.
15876         * config/s390/s390.md: New UNSPEC_* constants.
15877         (op_type): Add new instruction types.
15878         * config/s390/vecintrin.h: Add new builtins and test data class
15879         constants.
15880         * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
15881         (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
15882         (VEC_INEXACT, VEC_NOINEXACT): New constants.
15883         ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
15884         ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
15885         ("vec_mergel<mode>"): V_HW -> VEC_HW.
15887         ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
15888         ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
15889         ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
15890         ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
15892         ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
15893         ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
15894         ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
15895         ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
15897         ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
15898         ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
15899         ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
15900         ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
15901         ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
15902         ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
15903         ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
15905         ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
15906         ("vec_scatter_element<V_HW_4:mode>_DI")
15907         ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
15908         ("vec_fpint<mode>", "vflls")
15909         ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
15910         ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
15911         ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
15912         ("*vec_cmphe<mode>_cc"): ... these.
15914         ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
15915         mode constant instead of magic value.
15917 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15919         * config/s390/s390.c (s390_expand_vec_compare): Support other
15920         vector floating point modes than just V2DF.
15921         (s390_expand_vcond): Likewise.
15922         (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
15923         (s390_cannot_change_mode_class): Prevent mode changes between TF
15924         and V1TF in vector registers.
15925         * config/s390/s390.md (DF, SF): New mode attributes.
15926         ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
15927         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
15928         SFmode support for VRs.
15929         * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
15930         vector fp modes.
15931         (VFT, VF_HW): New mode iterators.
15932         (vw, sdx): New mode attributes.
15933         ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
15934         ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
15935         ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
15936         ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
15937         ("vec_unorderedv2df"): Adjust the v2df only patterns to support
15938         also the new vector floating point modes.  Renaming to ...
15940         ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
15941         ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
15942         ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
15943         ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
15944         ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
15945         ("vec_unordered<mode>"): ... these.
15947         ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
15948         ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
15949         ("*vec_extendv2df"): New insn definitions.
15951 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15953         * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
15954         ("mulditi3_2", "*muldi3_sign"): New patterns.
15955         ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
15956         rename the pattern definition.
15958 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15960         * config/s390/s390.md ("indirect_jump"): Turn insn definition into
15961         expander.
15962         ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
15964 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15966         * config/s390/s390.c (s390_expand_vec_init): Use vllezl
15967         instruction if possible.
15968         * config/s390/vector.md (vec_halfnumelts): New mode
15969         attribute.
15970         ("*vec_vllezlf<mode>"): New pattern.
15972 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15974         * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
15975         ("popcountv4si2", "popcountv2di2"): Rename to ...
15976         ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
15977         ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
15978         condition.
15979         ("popcount<mode>2_vxe"): New pattern.
15981 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15983         * common/config/s390/s390-common.c (processor_flags_table): Add
15984         arch12.
15985         * config.gcc: Add arch12.
15986         * config/s390/driver-native.c (s390_host_detect_local_cpu):
15987         Default to arch12 for unknown CPU model numbers.
15988         * config/s390/s390-builtins.def: Add B_VXE builtin flag.
15989         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
15990         PROCESSOR_max sanity check.
15991         * config/s390/s390-opts.h (enum processor_type): Add
15992         PROCESSOR_ARCH12.
15993         * config/s390/s390.c (processor_table): Add arch12.
15994         (s390_expand_builtin): Add check for B_VXE flag.
15995         (s390_issue_rate): Add PROCESSOR_ARCH12.
15996         (s390_get_sched_attrmask): Likewise.
15997         (s390_get_unit_mask): Likewise.
15998         (s390_sched_score): Enable z13 scheduling for arch12.
15999         (s390_sched_reorder): Likewise.
16000         (s390_sched_variable_issue): Likewise.
16001         * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
16002         PF_VXE.
16003         (s390_tune_attr): Use z13 scheduling also for arch12.
16004         (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
16005         (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
16006         (TARGET_VXE_P): New macros.
16007         * config/s390/s390.md: Add arch12 to cpu attribute.  Add arch12
16008         and vxe to cpu_facility.  Add arch12 and vxe to enabled attribute.
16009         * config/s390/s390.opt: Add arch12 as processor_type.
16011 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16013         * config/s390/s390.md
16014         ("fixuns_truncdddi2", "fixuns_trunctddi2")
16015         ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
16016         ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
16018         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
16019         Rename expanders to ...
16021         ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
16022         ("fixuns_truncdddi2_emu"): ... these.
16024         ("fixuns_trunc<mode>si2_emu"): New expander.
16026         ("*fixuns_truncdfdi2_z13"): Rename to ...
16027         ("*fixuns_truncdfdi2_vx"): ... this.
16029 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16031         * config/s390/2964.md: Remove the single element vector compare
16032         instructions which are no longer used.
16033         * config/s390/s390.c (s390_select_ccmode): Remove handling of
16034         vector CCmodes.
16035         (s390_canonicalize_comparison): Remove handling of DFmode
16036         compares.
16037         (s390_expand_vec_compare_scalar): Remove function.
16038         (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
16039         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
16040         pattern.
16041         ("*cmp<mode>_ccs"): Add wfcdb instruction.
16043 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16045         * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
16046         FP zero.
16047         ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
16048         will anyway by matched by mov<mode>_64dfp.
16050 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16052         * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
16053         vlef/vstef.  Add missing operand to vleif.
16055 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16057         * config/s390/s390.c (s390_expand_vec_init): Enable vector load
16058         pair for all vector types with 64 bit elements.
16059         * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
16060         * config/s390/vector.md (V_HW_64): ... here.
16061         (V_128_NOSINGLE): New mode iterator.
16062         ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
16063         ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
16064         ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
16065         ("*vec_load_pairv2di"): Change to ...
16066         ("*vec_load_pair<mode>"): ... this one.
16068 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16070         * config/s390/constraints.md: Add comments.
16071         (jKK): Reject element sizes > 8 bytes.
16072         * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
16073         s_operands.
16074         * config/s390/s390.md: Add the s_operand checks formerly in
16075         s390_split_ok_p to various splitters where they are still
16076         required.
16077         * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
16078         for 128 bit vectors.  Plus two splitters.
16080 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16082         * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
16083         the file.
16085 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16087         PR target/79893
16088         * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
16089         error if the boundary argument is not constant.
16091 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
16093         PR rtl-optimization/80112
16094         * loop-doloop.c (doloop_condition_get): Don't check condition
16095         if cmp isn't SET with IF_THEN_ELSE src.
16097 2017-03-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16099         PR tree-optimization/80158
16100         * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
16101         replacing a candidate statement, also replace it for the
16102         candidate's alternate interpretation.
16103         (replace_rhs_if_not_dup): Likewise.
16104         (replace_one_candidate): Likewise.
16106 2017-03-24  Richard Biener  <rguenther@suse.de>
16108         PR tree-optimization/80167
16109         * graphite-isl-ast-to-gimple.c
16110         (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
16111         properly.
16112         (translate_isl_ast_to_gimple::get_rename): Likewise.
16114 2017-03-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
16116         * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
16117         handling of certain combinations of target options, including the
16118         combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
16119         -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
16121 2017-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16123         PR target/71436
16124         * config/arm/arm.md (*load_multiple): Add reload_completed to
16125         matching condition.
16127 2017-03-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16128             Richard Biener  <rguenth@suse.de>
16130         PR tree-optimization/79908
16131         PR tree-optimization/80136
16132         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
16133         been cast away, gimplify_and_add suffices.
16135 2017-03-23  Markus Trippelsdorf  <markus@trippelsdorf.de>
16137         * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
16139 2017-03-23  Richard Biener  <rguenther@suse.de>
16141         PR tree-optimization/80032
16142         * gimplify.c (gimple_push_cleanup): Forced unconditional
16143         cleanups still have to go to the conditional_cleanups
16144         sequence.
16146 2017-03-22  Jakub Jelinek  <jakub@redhat.com>
16148         PR tree-optimization/80072
16149         * tree-ssa-reassoc.c (struct operand_entry): Change id field type
16150         to unsigned int.
16151         (next_operand_entry_id): Change type to unsigned int.
16152         (sort_by_operand_rank): Make sure to return the right return value
16153         even if unsigned fields are bigger than INT_MAX.
16154         (struct oecount): Change cnt and id type to unsigned int.
16155         (oecount_hasher::equal): Formatting fix.
16156         (oecount_cmp): Make sure to return the right return value
16157         even if unsigned fields are bigger than INT_MAX.
16158         (undistribute_ops_list): Change next_oecount_id type to unsigned int.
16160         PR c++/80129
16161         * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
16162         TREE_READONLY on result if writing it more than once.
16164         PR sanitizer/80110
16165         * doc/invoke.texi (-fsanitize=thread): Document that with
16166         -fnon-call-exceptions atomics are not able to throw
16167         exceptions.
16169         PR sanitizer/80110
16170         * tsan.c: Include tree-eh.h.
16171         (instrument_builtin_call): Call maybe_clean_eh_stmt or
16172         maybe_clean_or_replace_eh_stmt where needed.
16173         (instrument_memory_accesses): Add cfg_changed argument.
16174         Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
16175         if it returned true.
16176         (tsan_pass): Adjust caller.  Return TODO_cleanup_cfg if cfg_changed.
16178         PR rtl-optimization/63191
16179         * config/i386/i386.c (ix86_delegitimize_address): Turn into small
16180         wrapper function, moved the whole old content into ...
16181         (ix86_delegitimize_address_1): ... this.  New inline function.
16182         (ix86_find_base_term): Use ix86_delegitimize_address_1 with
16183         true as last argument instead of ix86_delegitimize_address.
16185 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
16187         * config/aarch64/aarch64.c (generic_branch_cost): Copy
16188         cortexa57_branch_cost.
16190 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
16192         * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
16194 2017-03-21  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
16196         PR target/80123
16197         * doc/md.texi (Constraints): Document wA constraint.
16198         * config/rs6000/constraints.md (wA): New.
16199         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
16200         (rs6000_init_hard_regno_mode_ok): Init wA constraint.
16201         * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
16202         * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
16204 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
16206         PR c++/80029
16207         * gimplify.c (is_oacc_declared): New function.
16208         (oacc_default_clause): Use it to set default flags for acc declared
16209         variables inside parallel regions.
16210         (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
16211         declared variables.
16212         (gimplify_oacc_declare): Gimplify the declare clauses.  Add the
16213         declare attribute to any decl as necessary.
16215 2017-03-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16217         PR target/80082
16218         * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
16219         (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
16220         * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
16221         (arm_arch_lpae): This.
16222         * config/arm/arm.c (arm_arch7ve): Rename into ...
16223         (arm_arch_lpae): This.  Define it in term of isa_bit_lpae.
16224         * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
16225         arm_arch_lpae.
16227 2017-03-22  Martin Liska  <mliska@suse.cz>
16229         PR target/79906
16230         * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
16231         error message instead of an ICE.
16233 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16235         * doc/extend.texi (6.11 Additional Floating Types): Revise.
16237 2017-03-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
16239         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
16240         comments.
16241         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
16242         comments.
16244 2017-03-21  Martin Sebor  <msebor@redhat.com>
16246         * doc/extend.texi: Use "cannot" instead of "can't."
16247         * doc/hostconfig.texi: Same.
16248         * doc/install.texi: Same.
16249         * doc/invoke.texi: Same.
16250         * doc/loop.texi: Same.
16251         * doc/md.texi: Same.
16252         * doc/objc.texi: Same.
16253         * doc/rtl.texi: Same.
16254         * doc/tm.texi: Same.
16255         * doc/tm.texi.in: Same.
16256         * doc/trouble.texi: Same.
16258 2017-03-21  Alexandre Oliva <aoliva@redhat.com>
16260         PR debug/63238
16261         * dwarf2out.c (struct checksum_attributes): Add at_alignment.
16262         (collect_checksum_attributes): Set it.
16263         (die_checksum_ordered): Use it.
16265 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16267         PR tree-optimization/79908
16268         * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
16269         change: For a VA_ARG whose LHS has been cast away, use
16270         force_gimple_operand to construct the side effects.
16272 2017-03-21  David Malcolm  <dmalcolm@redhat.com>
16274         PR translation/80001
16275         * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
16276         more amenable to translation.
16277         (oacc_loop_auto_partitions): Likewise.
16279 2017-03-21  Marek Polacek  <polacek@redhat.com>
16280             Martin Sebor  <msebor@redhat.com>
16282         PR tree-optimization/80109
16283         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
16284         on INTEGRAL_TYPE_P.
16286 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
16287             Segher Boessenkool  <segher@kernel.crashing.org>
16289         PR target/80125
16290         * combine.c (can_combine_p): Revert the 2017-03-20 change, only
16291         check reg_used_between_p between insn and one of succ or succ2
16292         depending on if succ is artificial insn not inserted into insn
16293         stream.
16295 2017-03-21  Martin Liska  <mliska@suse.cz>
16297         PR gcov-profile/80081
16298         * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
16299         * doc/gcc.texi: Include gcov-dump stuff.
16300         * doc/gcov-dump.texi: New file.
16302 2017-03-21  Toma Tabacu  <toma.tabacu@imgtec.com>
16304         PR rtl-optimization/79150
16305         * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
16306         conditional jump, if the jump is the last insn of the loop.
16308 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16309             Richard Biener  <rguenth@suse.de>
16311         PR tree-optimization/79908
16312         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
16313         been cast away, use force_gimple_operand to construct the side
16314         effects.
16316 2017-03-21  Martin Liska  <mliska@suse.cz>
16318         PR libfortran/79956
16319         * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
16320         to NULL.
16322 2017-03-21  Brad Spengler <spender@grsecurity.net>
16324         PR plugins/80094
16325         * plugin.c (htab_hash_plugin): New function.
16326         (add_new_plugin): Use it and adjust.
16327         (parse_plugin_arg_opt): Adjust.
16328         (init_one_plugin): Likewise.
16330 2017-03-21  Richard Biener  <rguenther@suse.de>
16332         PR tree-optimization/80032
16333         * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
16334         if set force the cleanup to happen unconditionally.
16335         (gimplify_target_expr): Push inserted clobbers with force_uncond
16336         to avoid them being removed by control-dependent DCE.
16338 2017-03-21  Richard Biener  <rguenther@suse.de>
16340         PR tree-optimization/80122
16341         * tree-inline.c (copy_bb): Do not expans va-arg packs or
16342         va_arg_pack_len when the inlined call stmt requires pack
16343         expansion itself.
16344         * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
16346 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
16348         PR sanitizer/78158
16349         * tsan.c (instrument_builtin_call): If the memory model argument
16350         is not a constant, assume it is valid.
16352         PR c/67338
16353         * fold-const.c (round_up_loc): Negate divisor in unsigned type to
16354         avoid UB.
16356 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
16358         PR rtl-optimization/79910
16359         * combine.c (can_combine_p): Do not allow combining an I0 or I1
16360         if its dest is used by an insn before I2 (other than the combined
16361         insns themselves, which are properly handled already).
16363 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
16365         Revert:
16366         2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
16368         * combine.c (record_used_regs): New static function.
16369         (try_combine): Handle situations where there is an additional
16370         instruction between I2 and I3 which needs to have a LOG_LINK
16371         updated.
16373         Revert:
16374         2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
16376         * combine.c (try_combine): Delete redundant i1 test.  Call
16377         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
16379 2017-03-20  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
16381         PR target/80083
16382         * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
16383         alternatives 13/14.
16385 2017-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16387         PR tree-optimization/80054
16388         * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
16389         the optimization if a PHI or any of its arguments is not dominated
16390         by the candidate's basis.  Use gphi* rather than gimple* as
16391         appropriate.
16392         (replace_profitable_candidates): Clean up a gimple* variable that
16393         should be a gphi* variable.
16395 2017-03-20  Martin Sebor  <msebor@redhat.com>
16397         PR c++/52477
16398         * doc/extend.texi (attribute constructor): Document present limitation.
16400 2017-03-20  Kelvin Nilsen  <kelvin@gcc.gnu.org>
16402         PR target/79963
16403         * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
16404         __POWER9_VECTOR__ #ifdef control, change template definition to
16405         use Power9-specific built-in function.
16406         (vec_any_eq): Likewise.
16407         * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
16408         to control outcomes from this test.
16409         (vector_ae_<mode>p): For VEC_F modes, likewise.
16411 2017-03-20  Ian Lance Taylor  <iant@google.com>
16413         * config/i386/i386.c (ix86_function_regparm): Save an extra
16414         register for -fsplit-stack with DECL_STATIC_CHAIN.
16416 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
16418         PR target/79912
16419         * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
16420         (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
16422 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
16424         * config/riscv/riscv.c (riscv_print_operand): Use "fence
16425         iorw,ow".
16426         * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
16427         iorw,iorw".
16429 2017-03-20  Marek Polacek  <polacek@redhat.com>
16431         PR sanitizer/80063
16432         * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
16434 2017-03-20  Richard Biener  <rguenther@suse.de>
16436         PR tree-optimization/80113
16437         * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
16438         allocate extra SSA name for PHI def.
16439         (add_close_phis_to_outer_loops): Likewise.
16440         (add_close_phis_to_merge_points): Likewise.
16441         (copy_loop_close_phi_args): Likewise.
16442         (copy_cond_phi_nodes): Likewise.
16444 2017-03-20  Martin Liska  <mliska@suse.cz>
16446         PR middle-end/79753
16447         * tree-chkp.c (chkp_build_returned_bound): Do not build
16448         returned bounds for a LHS that's not a BOUNDED_P type.
16450 2017-03-20  Martin Liska  <mliska@suse.cz>
16452         PR target/79769
16453         PR target/79770
16454         * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
16455         COMPLEX_CST and VECTOR_CST.
16457 2017-03-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16459         PR target/78857
16460         * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
16461         target operand.  A new splitter adds the clobber statement in case
16462         the target operand is dead anyway.
16464 2017-03-19  Gerald Pfeifer  <gerald@pfeifer.com>
16466         * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
16467         to age-old versions of binutils and glibc.
16469 2017-03-18  Segher Boessenkool  <segher@kernel.crashing.org>
16471         * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
16473 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
16475         * doc/contrib.texi (Contributors): Add Segher Boessenkool.
16477 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
16479         * doc/install.texi (Specific) <arm-*-eabi>: Remove old
16480         requirement for binutils 2.13.
16482 2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
16484         * combine.c (try_combine): Delete redundant i1 test.  Call
16485         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
16487 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com
16489         * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
16490         riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
16491         contents.
16492         <riscv64-*-elf>: Re-arrange section
16493         <riscv32-*-elf>: Add a note about requiring binutils 2.28.
16494         <riscv32-*-linux>: Likewise.
16495         <riscv64-*-elf>: Likewise
16496         <riscv64-*-linux>: Likewise.
16498 2017-03-17  Richard Earnshaw  <rearnsha@arm.com>
16500         PR target/80052
16501         * aarch64.opt(verbose-cost-dump): Fix typo.
16503 2017-03-17  Pat Haugen  <pthaugen@us.ibm.com>
16505         PR target/79951
16506         * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
16507         for VECTOR_UNIT_VSX_P (<MODE>mode) too.
16509 2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
16511         * reload.c (find_reloads): When reloading a nonoffsettable address,
16512         use RELOAD_OTHER for it and its address reloads.
16514         PR rtl-optimization/79910
16515         * combine.c (record_used_regs): New static function.
16516         (try_combine): Handle situations where there is an additional
16517         instruction between I2 and I3 which needs to have a LOG_LINK
16518         updated.
16520 2017-03-17  Jeff Law  <law@redhat.com>
16522         PR tree-optimization/71437
16523         * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
16524         conditional in the hash table first.
16525         (vrp_dom_walker::before_dom_children): Extract condition from
16526         ASSERT_EXPR.  Record condition, its inverion and any implied
16527         conditions as well.
16529 2017-03-17  Marek Polacek  <polacek@redhat.com>
16530             Markus Trippelsdorf  <markus@trippelsdorf.de>
16532         PR tree-optimization/80079
16533         * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
16534         m_stores_head.
16536 2017-03-17  Richard Biener  <rguenther@suse.de>
16538         PR middle-end/80075
16539         * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
16540         Properly verify the LHS before the RHS possibly claims to be
16541         handled.
16542         (stmt_could_throw_p): Hande gimple conds fully here.  Clobbers
16543         do not throw.
16545 2017-03-17  Martin Jambor  <mjambor@suse.cz>
16547         * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
16548         (List of -O2 options): Likewise.
16549         (-fipa-bit-cp): Replace "ipa" with "interprocedural."
16550         (-fipa-vrp) New.
16552 2017-03-17  Tom de Vries  <tom@codesourcery.com>
16554         * gcov-dump.c (print_usage): Print bug_report_url.
16556 2017-03-17  Richard Biener  <rguenther@suse.de>
16558         PR middle-end/80050
16559         * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
16560         (parser::peek): Likewise.
16562 2017-03-17  Richard Biener  <rguenther@suse.de>
16564         PR tree-optimization/80048
16565         * sese.c (free_sese_info): Properly release rename_map and
16566         copied_bb_map elements.
16568 2017-03-16  Alexandre Oliva <aoliva@redhat.com>
16570         * gimple-ssa-store-merging.c (struct imm_store_chain_info):
16571         Add linked-list forward and backlinks.  Insert on
16572         construction, remove on destruction.
16573         (class pass_store_merging): Add m_stores_head field.
16574         (pass_store_merging::terminate_and_process_all_chains):
16575         Iterate over m_stores_head list.
16576         (pass_store_merging::terminate_all_aliasing_chains):
16577         Likewise.
16578         (pass_store_merging::execute): Check for debug stmts first.
16579         Push new chains onto the m_stores_head stack.
16581 2017-03-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
16583         PR target/71294
16584         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
16585         SPLAT operation on ISA 2.07 64-bit systems that have direct move,
16586         but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
16588 2017-03-16  Jeff Law  <law@redhat.com>
16590         PR tree-optimization/71437
16591         * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
16592         member function.  Implementation moved into after_dom_children
16593         member function and into the threader's thread_outgoing_edges
16594         function.
16595         (dom_opt_dom_walker::after_dom_children): Simplify by moving
16596         some code into new thread_outgoing_edges.
16597         * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
16598         definition.  Simplify marker handling (do it here).   Assume we always
16599         have the available expression and the const/copies tables.
16600         (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
16601         and tree-vrp.c
16602         * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
16603         * tree-vrp.c (equiv_stack): No longer file scoped.
16604         (vrp_dom_walker): New class.
16605         (vrp_dom_walker::before_dom_children): New member function.
16606         (vrp_dom_walker::after_dom_children): Likewise.
16607         (identify_jump_threads):  Setup domwalker.  Use it rather than
16608         walking edges in a random order by hand.  Simplify setup/finalization.
16609         (finalize_jump_threads): Remove.
16610         (vrp_finalize): Do not call identify_jump_threads here.
16611         (execute_vrp): Do it here instead and call thread_through_all_blocks
16612         here too.
16614         PR tree-optimization/71437
16615         * tree-ssa-dom.c (pfn_simplify): Add basic_block argument.  All
16616         callers changed.
16617         (simplify_stmt_for_jump_threading): Add basic_block argument.  All
16618         callers changed.
16619         (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
16620         (dom_opt_dom_walker::thread_across_edge): Remove
16621         handle_dominating_asserts argument.  All callers changed.
16622         (record_temporary_equivalences_from_stmts_at_dest): Corresponding
16623         changes.  Remove calls to lhs_of_dominating_assert.  Other
16624         uses of handle_dominating_asserts turn into unconditional code
16625         (simplify_control_stmt_condition_1): Likewise.
16626         (simplify_control_stmt_condition): Likewise.
16627         (thread_through_normal_block, thread_across_edge): Likewise.
16628         * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
16629         * tree-vrp.c (lhs_of_dominating_assert): Move here.  Return original
16630         object if it is not an SSA_NAME.
16631         (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
16632         before calling into the VRP specific simplifiers.
16633         (identify_jump_threads): Remove handle_dominating_asserts
16634         argument.
16636 2017-03-16  Jakub Jelinek  <jakub@redhat.com>
16638         PR fortran/79886
16639         * tree-diagnostic.c (default_tree_printer): No longer static.
16640         * tree-diagnostic.h (default_tree_printer): New prototype.
16642 2017-03-16  Tamar Christina  <tamar.christina@arm.com>
16644         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
16645         Change ins into fmov.
16647 2017-03-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16649         * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
16650         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
16651         Use h_con constraint for operand 1.
16652         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
16653         (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
16655 2017-03-15  Jeff Law  <law@redhat.com>
16657         PR tree-optimization/71437
16658         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
16659         (record_temporary_equivalences): Use it.
16661         PR tree-optimization/71437
16662         * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
16663         tree-ssa-scopedtables.
16664         (lookup_avail_expr, build_and_record_new_cond): Likewise.
16665         (record_conditions, record_cond, vuse_eq): Likewise.
16666         (record_edge_info): Adjust to API tweak of record_conditions.
16667         (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
16668         (record_temporary_equivalences, optimize_stmt): Likewise.
16669         (eliminate_redundant_computations): Likewise.
16670         (record_equivalences_from_stmt): Likewise.
16671         * tree-ssa-scopedtables.c: Include options.h and params.h.
16672         (vuse_eq): New function, moved from tree-ssa-dom.c
16673         (build_and_record_new_cond): Likewise.
16674         (record_conditions): Likewise.  Accept vector of conditions rather
16675         than edge_equivalence structure for first argument.
16676         for the first argument.
16677         (avail_exprs_stack::lookup_avail_expr): New member function, moved
16678         from tree-ssa-dom.c.
16679         (avail_exprs_stack::record_cond): Likewise.
16680         * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
16681         from tree-ssa-dom.c.
16682         (avail_exprs_stack): Add new member functions lookup_avail_expr
16683         and record_cond.
16684         (record_conditions): Declare.
16686 2017-03-15  Vladimir Makarov  <vmakarov@redhat.com>
16688         PR target/80017
16689         * lra-constraints.c (process_alt_operands): Increase reject for
16690         reloading an input/output operand.
16692 2017-03-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
16694         PR target/79038
16695         * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
16696         insns to convert from signed/unsigned char/short to IEEE 128-bit
16697         floating point.
16698         (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
16700 2017-03-15  Uros Bizjak  <ubizjak@gmail.com>
16702         PR target/80019
16703         * config/i386/i386.c (ix86_vector_duplicate_value): Create
16704         subreg of inner mode for values already in registers.
16706 2017-03-15  Bernd Schmidt  <bschmidt@redhat.com>
16708         * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
16709         iteration reg is used after the loop.
16711 2017-03-14  Martin Sebor  <msebor@redhat.com>
16713         PR tree-optimization/79800
16714         * gimple-ssa-sprintf.c (format_floating: Add argument.  Handle
16715         precision in negative-positive range.
16716         (format_floating): Call non-const overload with adjusted precision.
16718 2017-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
16720         PR target/79947
16721         * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
16722         -mpowerpc-gfxopt.
16724 2017-03-14  Martin Sebor  <msebor@redhat.com>
16726         PR middle-end/80020
16727         * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
16728         * builtins.def (aligned_alloc): Use it.
16730         PR c/79936
16731         * Makefile.in (GTFILES): Add calls.c.
16732         * calls.c: Include "gt-calls.h".
16734 2017-03-14  Bernd Schmidt  <bschmidt@redhat.com>
16736         PR rtl-optimization/79728
16737         * regs.h (struct target_regs): New field
16738         x_contains_allocatable_regs_of_mode.
16739         (contains_allocatable_regs_of_mode): New macro.
16740         * reginfo.c (init_reg_sets_1): Initialize it, and change
16741         contains_reg_of_mode so it includes global regs as well.
16742         * reload.c (push_reload): Use contains_allocatable_regs_of_mode
16743         rather than contains_regs_of_mode.
16745 2017-03-14  Martin Liska  <mliska@suse.cz>
16747         * doc/invoke.texi: Document options that can't be combined with
16748         -fcheck-pointer-bounds.
16750 2017-03-14  Martin Liska  <mliska@suse.cz>
16752         PR middle-end/79831
16753         * doc/invoke.texi (-Wchkp): Document the option.
16755 2017-03-14  Martin Liska  <mliska@suse.cz>
16757         * Makefile.in: Install gcov-dump.
16759 2017-03-14  Martin Liska  <mliska@suse.cz>
16761         * multiple_target.c (expand_target_clones): Bail out for
16762         an invalid attribute.
16764 2017-03-14  Richard Biener  <rguenther@suse.de>
16766         * alias.c (struct alias_set_entry): Pack properly.
16767         * cfgloop.h (struct loop): Likewise.
16768         * cse.c (struct set): Likewise.
16769         * ipa-utils.c (struct searchc_env): Likewise.
16770         * loop-invariant.c (struct invariant): Likewise.
16771         * lra-remat.c (struct cand): Likewise.
16772         * recog.c (struct change_t): Likewise.
16773         * rtl.h (struct address_info): Likewise.
16774         * symbol-summary.h (function_summary): Likewise.
16775         * tree-loop-distribution.c (struct partition): Likewise.
16776         * tree-object-size.c (struct object_size_info): Likewise.
16777         * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
16778         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
16779         * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
16780         * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
16781         * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
16782         * tree-vectorizer.h (struct _loop_vec_info): Likewise.
16783         (struct _stmt_vec_info): Likewise.
16785 2017-03-14  Martin Liska  <mliska@suse.cz>
16787         PR target/79892
16788         * multiple_target.c (create_dispatcher_calls): Check that
16789         a target can create a function dispatcher.
16791 2017-03-14  Martin Liska  <mliska@suse.cz>
16793         PR lto/66295
16794         * multiple_target.c (expand_target_clones): Drop local.local
16795         flag for default implementation.
16797 2017-03-14  Richard Biener  <rguenther@suse.de>
16799         PR tree-optimization/80030
16800         * tree-vect-stmts.c (vectorizable_store): Plug memleak.
16802 2017-03-13  Kito Cheng  <kito.cheng@gmail.com>
16804         * config/riscv/riscv.c (riscv_emit_float_compare>: Use
16805         gcc_fallthrough() instead of __attribute__((fallthrough));
16807 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
16809         * doc/gcc.texi: Remove "up" link to (DIR).
16810         * doc/gccint.texi: Ditto.
16812 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
16814         * doc/install.texi (Specific) <avr>: Remove reference to
16815         binutils 2.13.
16817 2017-03-13  Jeff Law  <law@redhat.com>
16819         * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
16820         attribute rather than comments.
16822         * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
16823         match_scratch operand is highest.
16825 2017-03-13  Martin Liska  <mliska@suse.cz>
16827         PR middle-end/78339
16828         * ipa-pure-const.c (warn_function_noreturn): If the declarations
16829         is a CHKP clone, use original declaration.
16831 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
16833         * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
16834         (arc_conditional_register_usage): Use a different allocation order
16835         when optimizing for size.
16836         * common/config/arc/arc-common.c (arc_option_optimization_table):
16837         Section anchors default on when optimizing for size.
16839 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
16841         * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
16843 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
16845         * config/arc/arc.c (arc_output_addsi): Emit code density adds.
16846         * config/arc/arc.md (cpu_facility): Add cd variant.
16847         (*movqi_insn): Add code density variant.
16848         (*movhi_insn): Likewise.
16849         (*movqi_insn): Likewise.
16850         (*addsi3_mixed): Likewise.
16851         (subsi3_insn): Likewise.
16853 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
16855         * config/arc/arc.md (movsi_cond_exec): Update constraint.
16857 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
16859         * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
16860         expressions with MINUS and UNARY ops.
16862 2017-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16864         PR target/79911
16865         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
16866         Rename to...
16867         (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
16868         between vec_select and vector argument.
16869         (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
16870         (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
16871         (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
16872         (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
16873         (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
16874         (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
16876 2017-03-13  Richard Biener  <rguenther@suse.de>
16878         PR other/79991
16879         * params.def (vect-max-peeling-for-alignment): Fix typo.
16881 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
16883         * doc/install.texi (Specific) <mips-*-*>: Remove description of
16884         issue that only occurred with binutils below 2.18.
16886 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
16888         * doc/install.texi (Specific) <cris-axis-elf>: No longer
16889         refer to binutils 2.11/2.12 minimum.
16891 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
16893         * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
16894         ftp.kernel.org and simplify binutils requirement.
16896 2017-03-11  Gerald Pfeifer  <gerald@pfeifer.com>
16898         * doc/invoke.texi (Warning Options): Fix spelling of link-time
16899         optimization.
16900         (Optimize Options): Ditto.  Also remove redundancy.
16902 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
16904         PR translation/79848
16905         * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
16906         "%qs".
16907         * ipa-pure-const.c (suggest_attribute): Likewise.  Convert _
16908         to G_ to avoid double translation.
16910 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
16912         PR translation/79923
16913         * auto-profile.c (get_combined_location): Convert leading
16914         character of diagnostics to lower case and remove trailing period.
16915         (read_profile): Likewise for various diagnostics.
16916         * config/arm/arm.c (arm_option_override): Remove trailing period
16917         from various diagnostics.
16918         * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
16919         (msp430_expand_delay_cycles): Likewise.
16921 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
16923         PR target/79925
16924         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
16925         full command-line argument, rather than just "str".
16926         (aarch64_validate_march): Likewise.
16927         (aarch64_validate_mtune): Likewise.
16929 2017-03-10  Bernd Schmidt  <bschmidt@redhat.com>
16931         PR rtl-optimization/78911
16932         * lra-assigns.c (must_not_spill_p): New function.
16933         (spill_for): Use it.
16935 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
16937         PR tree-optimization/79981
16938         * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
16939         ATOMIC_COMPARE_EXCHANGE ifn result.
16940         (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
16941         IFN_ATOMIC_COMPARE_EXCHANGE.
16943 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
16945         PR driver/79875
16946         * opts.c (parse_sanitizer_options): Add missing question mark to
16947         "did you mean" message.
16949 2017-03-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16951         * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
16952         built-in.
16953         (VMULEUH_UNS): Likewise.
16954         (VMULOUB_UNS): Likewise.
16955         (VMULOUH_UNS): Likewise.
16956         * config/rs6000/rs6000.c (builtin_function_type): Remove
16957         references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
16959 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
16961         PR bootstrap/79952
16962         * read-rtl-function.c (function_reader::read_rtx_operand): Update
16963         x with result of extra_parsing_for_operand_code_0.
16964         (function_reader::extra_parsing_for_operand_code_0): Convert
16965         return type from void to rtx, returning x.  When reading
16966         SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
16967         larger size containing struct block_symbol.
16969 2017-03-10  Segher Boessenkool  <segher@kernel.crashing.org>
16971         * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
16972         -mfloat128-hardware without -m64.
16974 2017-03-10  Will Schmidt <will_schmidt@vnet.ibm.com>
16976         PR target/79941
16977         * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
16978         entries to the case statement that marks unsigned arguments to
16979         overloaded functions.
16981 2017-03-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
16983         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
16984         two typographic errors in the handling of TARGET_UPPER_REGS_DI.
16986 2017-03-10  Pat Haugen  <pthaugen@us.ibm.com>
16988         PR target/79907
16989         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
16990         TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
16992 2017-03-10  Martin Liska  <mliska@suse.cz>
16994         PR target/65705
16995         PR target/69804
16996         * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
16997         * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
16998         FIELD != NULL.
17000 2017-03-10  Olivier Hainque  <hainque@adacore.com>
17002         * tree-switch-conversion (array_value_type): Start by resetting
17003         candidate type to it's main variant.
17005 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
17007         PR rtl-optimization/79909
17008         * combine.c (try_combine): Use simplify_replace_rtx on individual
17009         CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
17010         of the whole CALL_INSN_FUNCTION_USAGE.
17012         PR tree-optimization/79972
17013         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
17014         get_range_info on SSA_NAMEs.  Formatting fixes.
17016 2017-03-10  Richard Biener  <rguenther@suse.de>
17017             Jakub Jelinek  <jakub@redhat.com>
17019         PR tree-optimization/77975
17020         * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
17021         edge to be constant.
17022         (get_val_for): For constant x return it.  Formatting fix.
17023         (loop_niter_by_eval): Avoid pointless looping if the next iteration
17024         would use the same bases as the current one.
17026 2017-03-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17028         * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
17029         instead of vec_select for V1TImode.
17030         * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
17031         longer needed.
17032         (VSX_LE_128): Add V1TI to this mode iterator.
17033         (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
17034         (*vsx_le_perm_store_<mode>): Likewise.
17035         (pre-reload splitter for VSX stores): Likewise.
17036         (post-reload splitter for VSX stores): Likewise.
17037         (*vsx_xxpermdi2_le_<mode>): Likewise.
17038         (*vsx_lxvd2x2_le_<mode>): Likewise.
17039         (*vsx_stxvd2x2_le_<mode>): Likewise.
17041 2017-03-09  Michael Eager  <eager@eagercon.com>
17043         Correct failures with --enable-checking=yes,rtl.
17045         * config/microblaze/microblaze.c (microblaze_expand_shift):
17046         Replace GET_CODE test with CONST_INT_P and INTVAL test with
17047         test for const0_rtx.
17048         * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
17049         lshrsi3_byone): Replace INTVAL with test for const1_rtx.
17051 2017-03-09  Richard Biener  <rguenther@suse.de>
17053         PR tree-optimization/79977
17054         * graphite-scop-detection.c (scop_detection::merge_sese):
17055         Handle the case of extra exits to blocks dominating the entry.
17057 2017-03-09  Toma Tabacu  <toma.tabacu@imgtec.com>
17059         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
17060         Document rdynamic.
17062 2017-03-09  Vladimir Makarov  <vmakarov@redhat.com>
17064         PR rtl-optimization/79949
17065         * lra-constraints.c (process_alt_operands): Check memory when
17066         trying to predict a cycle.  Print about the overall increase.
17068 2017-03-09  Richard Biener  <rguenther@suse.de>
17070         PR middle-end/79971
17071         * gimple-expr.c (useless_type_conversion_p): Preserve
17072         TYPE_SATURATING for fixed-point types.
17074 2017-03-09  Richard Biener  <rguenther@suse.de>
17076         PR ipa/79970
17077         * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
17078         alignment of BLKmode params.
17080 2017-03-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17082         PR target/79913
17083         * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
17084         (VALL_NO_V2Q): Likewise.
17085         (VDQF_DF): Delete.
17086         * config/aarch64/aarch64-simd.md
17087         (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
17088         iterator.
17089         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
17090         VALL_NO_V2Q mode iterator.
17091         (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
17093 2017-03-09  Martin Liska  <mliska@suse.cz>
17095         PR tree-optimization/79631
17096         * tree-chkp-opt.c (chkp_is_constant_addr): Call
17097         tree_int_cst_sign_bit just for INTEGER constants.
17099 2017-03-09  Martin Liska  <mliska@suse.cz>
17101         PR target/65705
17102         PR target/69804
17103         * toplev.c (process_options): Disable -fcheck-pointer-bounds with
17104         sanitizers.
17106 2017-03-09  Marek Polacek  <polacek@redhat.com>
17108         PR c++/79672
17109         * tree.c (inchash::add_expr): Handle TREE_VEC.
17111 2017-03-09  Martin Liska  <mliska@suse.cz>
17113         PR ipa/79764
17114         (chkp_narrow_size_and_offset): New function.
17115         (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
17116         (void chkp_parse_bit_field_ref): New function.
17117         (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
17118         (chkp_process_stmt): Use chkp_parse_bit_field_ref.
17120 2017-03-09  Martin Liska  <mliska@suse.cz>
17122         PR ipa/79761
17123         * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
17124         (chkp_find_bounds_1): Remove gcc_unreachable.
17126 2017-03-09  Jakub Jelinek  <jakub@redhat.com>
17128         PR sanitizer/79944
17129         * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
17130         BUILT_IN_SYNC*, determine the access type from the size suffix and
17131         always build a MEM_REF with that type.  Handle forgotten
17132         BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
17134         PR target/79932
17135         * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
17136         _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
17137         _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
17138         _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
17139         _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
17140         _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
17141         _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
17142         _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
17143         _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
17144         _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
17145         _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
17146         _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
17147         _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
17148         _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
17149         _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
17150         _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
17151         _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
17152         _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
17153         _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
17154         _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
17155         _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
17156         _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
17157         _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
17158         _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
17159         _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
17160         _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
17161         _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
17162         _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
17163         _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
17164         _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
17165         definitions outside of __OPTIMIZE__ guarded section.
17167         PR target/79932
17168         * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
17169         _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
17170         _mm512_packus_epi32, _mm512_maskz_packus_epi32,
17171         _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
17172         guarded section.
17174 2017-03-09  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17176         * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
17177         ("vfenez<mode>"): Add missing constraints.
17179 2017-03-08  Martin Sebor  <msebor@redhat.com>
17181         PR target/79928
17182         * config/nds32/nds32.c (nds32_option_override):
17183         Fix misspelled diagnostic.
17185 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
17187         PR c/79940
17188         * gimplify.c (gimplify_omp_for): Replace index var in outer
17189         taskloop statement with an artificial variable and add
17190         OMP_CLAUSE_PRIVATE clause for it.
17192 2017-03-08  Richard Biener  <rguenther@suse.de>
17194         PR tree-optimization/79955
17195         * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
17196         for accesses that are completely outside of the variable.
17198 2017-03-08  Andrew Haley  <aph@redhat.com>
17200         PR tree-optimization/79943
17201         * tree-ssa-loop-split.c (compute_new_first_bound): When
17202         calculating the new upper bound, (END-BEG) should be added, not
17203         subtracted.
17205 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
17207         * config/avr/avr.md (setmemhi): Make sure match_dup
17208         operand number comes before match_scratch.
17210 2017-03-08  Richard Biener  <rguenther@suse.de>
17212         PR tree-optimization/79920
17213         * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
17214         with ncopies == 1 to ...
17215         (vect_transform_slp_perm_load): ... here.  Properly compute
17216         all element loads by iterating VF times over the group.  Do
17217         not handle ncopies (computed in a broken way) in
17218         vect_create_mask_and_perm.
17220 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
17222         PR sanitizer/79904
17223         * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
17224         is a uniform vector, use uniform_vector_p return value instead of
17225         building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
17227 2017-03-07  Marek Polacek  <polacek@redhat.com>
17229         PR middle-end/79809
17230         * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
17231         (alloca_call_type): Likewise.
17233 2017-03-07  Martin Liska  <mliska@suse.cz>
17235         * gcov.c (process_args): Put comment to correct location.
17237 2017-03-07  Martin Liska  <mliska@suse.cz>
17239         PR middle-end/68270
17240         * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
17241         Use array_at_struct_end_p instead of DECL_CHAIN (field).
17242         (chkp_narrow_bounds_for_field): Likewise.
17243         (chkp_parse_array_and_component_ref): Pass one more argument to
17244         call.
17246 2017-03-07  Richard Biener  <rguenther@suse.de>
17248         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
17249         preheaders.
17251 2017-03-07  Segher Boessenkool  <segher@kernel.crashing.org>
17253         * config/i386/i386.c (ix86_local_alignment): Align most aggregates
17254         of 16 bytes and more to 16 bytes, not those of 16 bits and more.
17256 2017-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17258         PR c/79855
17259         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
17260         to end of description.
17261         (PARAM_MAX_STORES_TO_MERGE): Likewise.
17263 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
17265         PR rtl-optimization/79901
17266         * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
17267         ...
17268         (*avx512f_<code><mode>3<mask_name>): ... this.
17269         (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
17270         iterator instead of VI8_AVX2_AVX512BW.
17272         PR rtl-optimization/79901
17273         * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
17274         min/max expander, expand it using expand_vec_cond_expr.
17276         PR sanitizer/79897
17277         * ubsan.c (ubsan_encode_value): Call mark_addressable on the
17278         temporary.
17280 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
17282         PR c++/79821
17283         * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
17284         to void * for PCH reasons.
17285         * dwarf2out.c (output_loc_operands, output_die): Cast
17286         v.val_vec.array to unsigned char *.
17288 2017-03-06  John David Anglin  <danglin@gcc.gnu.org>
17290         PR target/77850
17291         * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
17292         vector types.
17294 2017-03-06  Vladimir Makarov  <vmakarov@redhat.com>
17296         PR rtl-optimization/79571
17297         * lra-constraints.c (process_alt_operands): Calculate static
17298         reject and subtract it from overall when only addresses will be
17299         reloaded.
17301 2017-03-06  Julia Koval  <julia.koval@intel.com>
17303         PR target/79793
17304         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
17305         incoming stack boundary to 128 for 64-bit targets.
17307 2017-03-06  Richard Biener  <rguenther@suse.de>
17309         PR tree-optimization/79894
17310         * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
17311         to NULL after folding it.
17313 2017-03-06  Richard Biener  <rguenther@suse.de>
17315         PR tree-optimization/79824
17316         * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
17317         check disabling peeling for gaps.
17319 2017-03-06  Toma Tabacu  <toma.tabacu@imgtec.com>
17321         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
17322         attributes): Document gettimeofday.
17324 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
17326         * config/s390/s390.c (s390_option_override_internal): Set
17327         PARAM_MIN_VECT_LOOP_BOUND
17329 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
17331         * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
17332         * config/s390/s390.md: Likewise.
17334 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
17336         PR target/79812
17337         * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
17338         (<avx2_avx512>_perm<mode>): Rename to ...
17339         (avx2_perm<mode>): ... this.  Use VI8F_256 iterator instead
17340         of VI8F_256_512.
17341         (<avx512>_perm<mode>_mask): Rename to ...
17342         (avx512vl_perm<mode>_mask): ... this.  Use VI8F_256 iterator instead
17343         of VI8F_256_512.
17344         (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
17345         (avx2_perm<mode>_1<mask_name): ... this.  Use VI8F_256 iterator
17346         instead of VI8F_256_512.
17347         (avx512f_perm<mode>): New define_expand.
17348         (avx512f_perm<mode>_mask): Likewise.
17349         (avx512f_perm<mode>_1<mask_name>): New define_insn.
17350         (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
17352 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
17354         * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
17355         msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
17356         if_then_else.
17357         (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
17359 2017-03-06  Martin Liska  <mliska@suse.cz>
17361         PR sanitize/79783
17362         * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
17363         when having a SSA NAME w/o VAR_DECL assigned to it.
17365 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
17367         * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
17368         msa_dpsub_<su>_d): Fix MODE for vec_select.
17370 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
17372         * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
17373         argument.
17374         * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
17376 2017-03-06  Richard Biener  <rguenther@suse.de>
17378         * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
17379         * plugin.c (register_plugin_info): Likewise.
17380         * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
17382 2017-03-05  Jakub Jelinek  <jakub@redhat.com>
17384         * config/i386/sse.md (sse_storehps, sse_storelps,
17385         avx_<castmode><avxsizesuffix>_<castmode>,
17386         avx512f_<castmode><avxsizesuffix>_<castmode>,
17387         avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
17388         in condition that at least one operand is not a MEM.
17390 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
17392         PR middle-end/79805
17393         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
17394         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
17395         ECF_NOTHROW.
17396         * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
17397         gimple_call_nothrow_p flag based on whether original builtin can throw.
17398         If it can, emit following stmts on the fallthrough edge.
17399         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
17400         don't create new bb if inserting just debug stmts on the edge, try to
17401         insert them on the fallthru bb or just reset debug stmts.
17403 2017-03-03  Segher Boesssenkool  <segher@kernel.crashing.org>
17405         PR target/43763
17406         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
17407         restore recog_data (including the operand rtxes inside it) around
17408         the call to get_insn_template.
17410 2017-03-03  Martin Sebor  <msebor@redhat.com>
17412         PR tree-optimization/79699
17413         * context.c (context::~context): Free MPFR caches to avoid
17414         a memory leak on program exit.
17416 2017-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17418         * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
17419         Use wide_int::ulow () instead of .elt (0).
17421 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
17423         * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
17424         (*pushxf): Limit oF constraint to 32bit targets and add oC
17425         constraint for 64bit targets.
17426         (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
17427         (*pushdf): Change rmF constraint to rmC.
17429 2017-03-03  Martin Liska  <mliska@suse.cz>
17431         * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
17432         Remove unused variable.
17434 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
17436         PR target/79807
17437         * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
17438         is a memory operand, increase num_memory.
17439         (ix86_expand_args_builtin): Likewise.
17441 2017-03-03  Jan Hubicka  <jh@suse.cz>
17443         PR lto/79760
17444         * ipa-devirt.c (maybe_record_node): Properly handle
17445         __cxa_pure_virtual visibility.
17447 2017-03-03  Martin Liska  <mliska@suse.cz>
17449         PR tree-optimization/79803
17450         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
17451         assert.
17452         (pass_loop_prefetch::execute): Disabled optimization if an
17453         assumption about L1 cache size is not met.
17455 2017-03-03  Martin Liska  <mliska@suse.cz>
17457         PR rtl-optimization/79574
17458         * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
17459         (hash_scan_set): Likewise.
17460         (dump_hash_table): Likewise.
17461         (hoist_code): Likewise.
17463 2017-03-03  Richard Biener  <rguenther@suse.de>
17465         * fixed-value.c (fixed_from_string): Restore use of elt (1)
17466         in place of uhigh ().
17467         (fixed_convert_from_real): Likewise.
17469 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
17471         PR target/79514
17472         * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
17474 2017-03-03  Richard Biener  <rguenther@suse.de>
17476         PR middle-end/79818
17477         * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
17478         TYPE_OVERFLOW_UNDEFINED check.
17480 2017-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17482         * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
17483         numbers.
17484         (vector_ae_<mode>_p): Likewise.
17485         (vector_nez_<mode>_p): Likewise.
17486         (vector_ne_v2di_p): Likewise.
17487         (vector_ae_v2di_p): Likewise.
17488         (vector_ne_<mode>_p): Likewise.
17489         * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
17490         numbers.
17491         (vsx_tsqrt<mode>2_fe): Likewise.
17493 2017-03-02  Uros Bizjak  <ubizjak@gmail.com>
17495         PR target/79514
17496         * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
17498 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
17500         PR rtl-optimization/79780
17501         * cprop.c (one_cprop_pass): When second and further conditional trap
17502         in a single basic block is turned into an unconditional trap, turn it
17503         into a deleted note to avoid RTL verification failures.
17505 2017-03-02  Richard Biener  <rguenther@suse.de>
17507         * fold-const.c (const_binop): Use ulow () instead of elt (0).
17509 2017-03-02  Richard Biener  <rguenther@suse.de>
17511         PR tree-optimization/79345
17512         PR c++/42000
17513         * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
17514         param and abort the walk, returning -1 if it is hit.
17515         (walk_aliased_vdefs): Take a limit param and pass it on.
17516         * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
17517         defaulting to 0 and return a signed int.
17518         * tree-ssa-uninit.c (struct check_defs_data): New struct.
17519         (check_defs): New helper.
17520         (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
17521         about uninitialized memory.
17522         * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
17523         bogus uninitialized warning.
17524         (fixed_convert_from_real): Likewise.
17526 2017-03-02  Bin Cheng  <bin.cheng@arm.com>
17528         PR tree-optimization/66768
17529         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
17530         iv_use if base object can't be determined.
17532 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
17534         PR tree-optimization/79345
17535         * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
17536         * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
17537         (get_pattern_stats): Initialize it.
17538         * genemit.c (gen_expand): Verify match_scratch numbers come after
17539         match_operand/match_dup numbers.
17540         * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
17541         match_scratch numbers.
17542         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
17543         Likewise.
17544         * config/s390/s390.md (trunctdsd2): Likewise.
17546 2017-03-02  Richard Biener  <rguenther@suse.de>
17548         * wide-int.h (wide_int_storage::operator=): Implement in terms
17549         of wi::copy.
17551 2017-03-02  Richard Biener  <rguenther@suse.de>
17553         PR tree-optimization/79777
17554         * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
17555         the to insert expression to sth existing.
17557 2017-03-01  Martin Sebor  <msebor@redhat.com>
17559         PR middle-end/79692
17560         * gimple-ssa-sprintf.c
17561         (directive::known_width_and_precision): New function.
17562         (format_integer): Use it.
17563         (get_mpfr_format_length): Consider the full range of precision
17564         when computing %g output with the # flag.  Set the likely byte
17565         count to 3 rather than 1 when precision is indeterminate.
17566         (format_floating): Correct the lower bound of precision.
17568 2017-03-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17570         * doc/invoke.texi: Document default code model for 64-bit Linux.
17572 2017-03-01  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
17574         PR target/79752
17575         * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
17576         udiv rather than div since input pattern is unsigned.
17578 2017-03-01  Uros Bizjak  <ubizjak@gmail.com>
17580         * config/i386/i386.c (print_reg): Warn for values of
17581         unsupported size in integer register.
17583 2017-03-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
17585         PR target/79439
17586         * config/rs6000/predicates.md (current_file_function_operand): Do
17587         not allow self calls to be local if the function is replaceable.
17589 2017-03-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
17591         PR target/79395
17592         * config/rs6000/altivec.h (vec_ctz and others): Change the
17593         preprocessor macro that controls conditional compilation from
17594         _ARCH_PWR9 to __POWER9_VECTOR__.
17595         (vec_all_ne): Change parameterization of __altivec_scalar_pred
17596         macro expansion under preprocessor #ifdef __POWER9_VECTOR__
17597         control (instead of _ARCH_PWR9 control) so that template
17598         definition uses power9-specific function.
17599         (vec_any_eq): Likewise.
17600         (vec_all_ne): Change macro definition to use a power9-specific
17601         expansion under #ifdef __POWER9_VECTOR__ control (instead of
17602         _ARCH_PWR9 control).
17603         (vec_any_eq) Likewise.
17604         * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
17605         expansion for CMPNEF to remove support for xvcmpnesp instruction.
17606         (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
17607         support for xvcmpnedp instruction.
17608         (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
17609         macro expansion so that Power9 implementation of vec_all_ne does
17610         not use the AltiVec predicate framework.
17611         (VCMPNEH_P): Likewise.
17612         (VCMPNEW_P): Likewise.
17613         (VCMPNED_P): Likewise.
17614         (VCMPNEFP_P): Likewise.
17615         (VCMPNEDP_P): Likewise.
17616         (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
17617         implementation of vec_any_eq to not use AltiVec predicate
17618         framework.
17619         (VCMPAEH_P): Likewise.
17620         (VCMPAEW_P): Likewise.
17621         (VCMPAED_P): Likewise.
17622         (VCMPAEFP_P): Likewise.
17623         (VCMPAEDP_P): Likewise.
17624         (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
17625         BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
17626         not use the AltiVec predicate framework.
17627         (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
17628         of vec_any_eq to not use AltiVec predicate framework.
17629         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
17630         support for predefined __POWER9_VECTOR__ macro to indicate that
17631         Power9 instruction selection is enabled.
17632         (altivec_overloaded_builtins): Remove extraneous
17633         ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
17634         function argument types RS6000_BTI_bool_V16QI and
17635         RS6000_BTI_bool_V16QI.  Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
17636         entry for overloaded function argument types RS6000_BTI_bool_V4SI
17637         andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB.  Remove
17638         two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
17639         P9V_BUILTIN_CMPNEF to force use of instructions not specific to
17640         Power9 for implementations of vec_cmpne.  Change the signature for
17641         all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
17642         (representing vec_all_ne) to remove the previously described first
17643         argument of type RS6000_BTI_INTSI, as this was an artifact of
17644         reliance on the AltiVec predicate framework, which is no longer
17645         used in the implementation of these functions.  Add
17646         P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
17647         function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
17648         since, unlike the AltiVec predicate framework implementation, we
17649         do not share function descriptors between vec_alle and vec_anyeq.
17650         (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
17651         set of modes that receive special treatment even when
17652         TARGET_P9_VECTOR is true.  The special treatment emits code that
17653         does not depend on Power9 instructions.
17654         * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
17655         define_expand to not rely on AltiVec predicate framework.
17656         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
17657         function.
17658         (vector_ne_v2di_p): Change this define_expand to not rely on
17659         AltiVec predicate framework.
17660         (vector_ae_v2di_p): New define_expand to represent vec_any_eq
17661         function.
17662         (vector_ne_<mode>_p): Change this define_expand to not rely on
17663         AltiVec predicate framework.
17664         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
17665         function.
17666         * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
17667         (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
17668         define_insn pattern.
17669         (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
17670         define_insn pattern because the xvcmpne<VSs>. instruction is not
17671         supported.
17672         (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
17673         instruction is not supported.
17675 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
17677         * config/nvptx/nvptx.c: Include intl.h.
17679 2017-03-01  Martin Jambor  <mjambor@suse.cz>
17681         PR lto/78140
17682         * ipa-prop.h (ipa_bits): Removed field known.
17683         (ipa_jump_func): Removed field vr_known.  Changed fields bits and m_vr
17684         to pointers.  Adjusted their comments to warn about their sharing.
17685         (ipcp_transformation_summary): Change bits to a vector of pointers.
17686         (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
17687         (ipa_get_ipa_bits_for_value): Declare.
17688         * tree-vrp.h (value_range): Mark as GTY((for_user)).
17689         * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
17690         (ipa_bits_hash_table): Likewise.
17691         (ipa_vr_ggc_hash_traits): Likewise.
17692         (ipa_vr_hash_table): Likewise.
17693         (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
17694         being pointers and vr_known being removed.
17695         (ipa_set_jf_unknown): Likewise.
17696         (ipa_get_ipa_bits_for_value): New function.
17697         (ipa_set_jfunc_bits): Likewise.
17698         (ipa_get_value_range): New overloaded functions.
17699         (ipa_set_jfunc_vr): Likewise.
17700         (ipa_compute_jump_functions_for_edge): Use the above functions to
17701         construct bits and vr parts of jump functions.
17702         (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
17703         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
17704         exist.
17705         (ipcp_grow_transformations_if_necessary): Also allocate
17706         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
17707         exist.
17708         (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
17709         them.  Fix too long lines.
17710         (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
17711         vr_known being removed.
17712         (ipa_read_jump_function): Use new setter functions to construct bits
17713         and vr parts of jump functions or set them to NULL.
17714         (write_ipcp_transformation_info): Adjust for bits being pointers.
17715         (read_ipcp_transformation_info): Likewise.
17716         (ipcp_update_bits): Likewise.  Fix excessively long lines a trailing
17717         space.
17718         Include gt-ipa-prop.h.
17719         * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
17720         being pointers.
17721         (ipcp_store_bits_results): Likewise.
17722         (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
17723         Do not write to existing jump functions but use a temporary instead.
17725 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
17727         PR c++/79681
17728         * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
17729         attempt to use its first operand as BIT_FIELD_REF base.
17731 2017-03-01  Richard Biener  <rguenther@suse.de>
17733         PR middle-end/79721
17734         * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
17735         interpolating formula in wrapping arithmetic.
17736         (chrec_apply): Convert chrec_evaluate return value to wanted type.
17738 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
17740         PR tree-optimization/79734
17741         * tree-vect-generic.c (expand_vector_condition): Optimize
17742         AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
17743         Handle VEC_COND_EXPR where comparison has different inner width from
17744         type's inner width.
17746 2017-02-28  Sandra Loosemore  <sandra@codesourcery.com>
17748         * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
17749         markup, and similar issues.  Remove @opindex entries for things
17750         that aren't options.  Add missing -mmpy-option entries.
17752 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
17754         PR tree-optimization/79737
17755         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
17756         a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
17757         tmpbuf[byte_size - 1].  Call natice_encode_expr with byte_size - 1
17758         instead of byte_size.  Formatting fix.
17759         (shift_bytes_in_array_right): Formatting fix.
17761 2017-02-28  Eric Botcazou  <ebotcazou@adacore.com>
17763         PR target/79749
17764         * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
17765         condition on optimize for the leaf function test.
17767 2017-02-28  Martin Liska  <mliska@suse.cz>
17769         PR lto/79625
17770         * read-rtl-function.c (function_reader::handle_unknown_directive):
17771         Bail out when one uses -flto.
17773 2017-02-28  Martin Liska  <mliska@suse.cz>
17775         * common.opt: Replace space with tabular for options of <number>
17776         type.
17777         * config/i386/i386.opt: Show <number> value for
17778         -mlarge-data-threshold.
17779         * opts.c (print_filtered_help): Do not display number in hexadecimal
17780         format.
17782 2017-02-28  Martin Liska  <mliska@suse.cz>
17784         * common.opt: Fix --help=option -Q for options which are of
17785         an enum type.
17787 2017-02-28  Uros Bizjak  <ubizjak@gmail.com>
17789         * config/i386/i386.c (print_reg): Error out for values
17790         of 8-bit size in invalid integer register.
17792 2017-02-28  Martin Sebor  <msebor@redhat.com>
17794         PR tree-optimization/79691
17795         * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
17797 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
17799         PR target/79729
17800         * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
17801         gcc_unreachable with output_operand_lossage.
17803 2017-02-28  Richard Biener  <rguenther@suse.de>
17805         PR tree-optimization/79740
17806         * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
17807         inserts.
17808         (visit_nary_op): Insert the nary into the hashtable if we
17809         pattern-matched sth.
17810         * tree-ssa-pre.c (eliminate_insert): Robustify.
17812 2017-02-28  Richard Biener  <rguenther@suse.de>
17814         PR middle-end/79731
17815         * fold-const.c (decode_field_reference): Reject out-of-bound
17816         accesses.
17818 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
17820         * config/i386/i386.c: Include intl.h.
17821         (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
17822         instead of just cond ? "..." : "...".
17823         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
17824         * coverage.c (read_counts_file): Likewise.
17825         * omp-offload.c: Include intl.h.
17826         (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
17827         of just cond ? "..." : "...".
17828         * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
17829         of just cond ? "..." : "...".
17831 2017-02-28  Richard Earnshaw  <rearnsha@arm.com>
17833         PR target/79742
17834         * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
17835         entry, if present.
17836         * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
17837         'tune for' CPU name.
17838         * config/arm/arm-cpu-data.h: Regenerated.
17840 2017-02-28  Richard Biener  <rguenther@suse.de>
17842         PR tree-optimization/79732
17843         * tree-inline.c (expand_call_inline): Do not shadow var.
17845 2017-02-28  Richard Biener  <rguenther@suse.de>
17847         PR tree-optimization/79723
17848         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
17849         address-space properly.
17851 2017-02-28  Thomas Schwinge  <thomas@codesourcery.com>
17853         * doc/optinfo.texi (Optimization groups): Fix option used for
17854         OPTGROUP_ALL.
17855         * doc/invoke.texi (-fopt-info): Document "omp".
17856         * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
17857         (OPTGROUP_ALL): Add OPTGROUP_OMP.
17858         * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
17859         * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
17860         * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
17862         * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP.  Adjust
17863         all users.
17864         * dumpfile.c (optgroup_options): Instead of "openmp", associate
17865         OPTGROUP_OMP with "omp".
17867 2017-02-27  Pat Haugen  <pthaugen@us.ibm.com>
17869         PR target/79544
17870         * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
17871         for arithmetic shift of unsigned V2DI.
17873 2017-02-27  Claudiu Zissulescu  <claziss@synopsys.com>
17875         * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
17876         arc/linux.h headers.
17877         * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
17878         (LINK_SPEC): Likewise.
17879         (ARC_TLS_EXTRA_START_SPEC): Likewise.
17880         (EXTRA_SPECS): Likewise.
17881         (STARTFILE_SPEC): Likewise.
17882         (ENDFILE_SPEC): Likewise.
17883         (LIB_SPEC): Likewise.
17884         (TARGET_SDATA_DEFAULT): Likewise.
17885         (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
17886         (MULTILIB_DEFAULTS): Likewise.
17887         (DWARF2_UNWIND_INFO): Likewise.
17888         * config/arc/big.h: New file.
17889         * config/arc/elf.h: Likewise.
17890         * config/arc/linux.h: Likewise.
17891         * config/arc/t-uClibc: Remove.
17893 2017-02-27  Bin Cheng  <bin.cheng@arm.com>
17895         PR tree-optimization/77536
17896         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
17897         (tree_transform_and_unroll_loop): Use above function to compute the
17898         estimated niter of unrolled loop and use it when scaling profile.
17899         Also use count info rather than frequency if it's non-zero.
17900         * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
17901         * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
17902         (vect_transform_loop): Call above function.
17904 2017-02-27  Richard Biener  <rguenther@suse.de>
17906         PR tree-optimization/45397
17907         * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
17908         * tree-ssa-sccvn.c (valueized_wider_op): New helper.
17909         (visit_nary_op): Add pattern matching for CSEing sign-changed
17910         or truncated operations with wider ones.
17912 2017-02-27  Richard Biener  <rguenther@suse.de>
17914         PR tree-optimization/79690
17915         * tree-vect-stmts.c (vectorizable_store): Use vector type
17916         built from the DR with address-space.
17918 2017-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
17920         * doc/invoke.texi (Optimize Options): Refine the description
17921         of asan-use-after-return.
17923 2017-02-25  Alan Modra  <amodra@gmail.com>
17925         PR rtl-optimization/79584
17926         * lra-constraints.c (base_to_reg): Reload ad->base, the entire
17927         base, not ad->base_term, the reg within base.  Remove assertion
17928         that ad->base == ad->base_term.  Replace gen_int_mode using
17929         bogus mode with const0_rtx.
17931 2017-02-25  Jakub Jelinek  <jakub@redhat.com>
17933         PR middle-end/79396
17934         * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
17935         FMA_EXPR like tcc_binary or tcc_unary.
17937         * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
17939         PR debug/77589
17940         * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
17941         bitfield.
17942         (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
17943         (output_loc_operands): Handle DW_OP_call_ref and
17944         DW_OP_GNU_variable_value.
17945         (struct variable_value_struct): New type.
17946         (struct variable_value_hasher): Likewise.
17947         (variable_value_hash): New variable.
17948         (string_types): Remove.
17949         (copy_loc_descr): New function.
17950         (add_loc_descr_to_each): Clarify comment.  Use copy_loc_descr.
17951         (prepend_loc_descr_to_each): New function.
17952         (add_loc_list): Fix comment typo.  Use prepend_loc_descr_to_each
17953         instead of add_loc_descr_to_each if the first argument is single
17954         location list and the second has multiple.
17955         (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
17956         (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
17957         when looking for variable value which doesn't have other location info.
17958         (loc_list_from_tree): Formatting fix.
17959         (gen_array_type_die): Simplify DW_AT_string_length handling.
17960         (adjust_string_types): Remove.
17961         (gen_subprogram_die): Don't call adjust_string_types nor test/set
17962         string_types.  Call resolve_variable_values.
17963         (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
17964         (resolve_addr_in_expr): Likewise.  Add A argument.
17965         (copy_deref_exprloc): Remove deref argument.  Adjust for the
17966         original expression being DW_OP_GNU_variable_value with optionally
17967         DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
17968         optionally after it.
17969         (optimize_string_length): Rework for DW_OP_GNU_variable_value.
17970         (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
17971         callers.  Set remove_AT_byte_size if removing DW_AT_string_length.
17972         (variable_value_hasher::hash, variable_value_hasher::equal): New
17973         methods.
17974         (resolve_variable_value_in_expr, resolve_variable_value,
17975         resolve_variable_values, note_variable_value_in_expr,
17976         note_variable_value): New functions.
17977         (dwarf2out_early_finish): Call note_variable_value on all toplevel
17978         DIEs.
17980 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
17982         PR c/79677
17983         * opts.h (handle_generated_option): Add GENERATED_P argument.
17984         * opts-common.c (handle_option): Adjust function comment.
17985         (handle_generated_option): Add GENERATED_P argument, pass it to
17986         handle_option.
17987         (control_warning_option): Pass false to handle_generated_option
17988         GENERATED_P.
17989         * opts.c (maybe_default_option): Pass true to handle_generated_option
17990         GENERATED_P.
17991         * optc-gen.awk: Likewise.
17993 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
17995         * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
17996         a REG, look at the REG it is a SUBREG of.
17997         (splitter for cmpeqsi_t): Ditto.
17999 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
18001         * config/pa/pa.c (pa_combine_instructions): Do not share RTL.  Make
18002         the special USEs with the pattern of the insn, not the insn itself.
18004 2017-02-24  Matthew Fortune  <matthew.fortune@imgtec.com>
18006         PR target/79473
18007         * doc/invoke.texi: Document -mload-store-pairs.
18009 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
18010             Sandra Loosemore  <sandra@codesourcery.com>
18012         * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
18013         argument isn't a CONST_INT.
18014         (nios2_alternate_compare_const): Assert op is a CONST_INT.
18015         (nios2_valid_compare_const_p): Assert op is a CONST_INT.
18016         (nios2_validate_compare): Bypass alternate compare logic if *op2
18017         is not a CONST_INT.
18018         (ldstwm_operation_p): Return false if first_base is not a REG or
18019         if first_offset is not a CONST_INT.
18021 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
18023         * config/cris/cris.md: Use correct operand in a define_peephole2.
18025 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
18027         * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
18029 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
18031         * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
18032         this_insn if it is an INSN or JUMP_INSN.
18033         (force_offsettable): Look at base, not at addr.
18034         * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
18035         on things that aren't necessarily CONST_INTs.
18037 2017-02-24  Uros Bizjak  <ubizjak@gmail.com>
18039         * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
18040         -mfpmath=sse is the default also for x86-32 targets with SSE2
18041         instruction set when @option{-ffast-math} is enabled
18043 2017-02-24  Jeff Law  <law@redhat.com>
18045         PR rtl-optimizatoin/79286
18046         * ira.c (update_equiv_regs): Drop may_trap_p exception to
18047         dominance test.
18049 2017-02-24  Richard Biener  <rguenther@suse.de>
18051         PR tree-optimization/79389
18052         * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
18053         debug insns.
18055 2017-02-24  Aldy Hernandez  <aldyh@redhat.com>
18057         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
18058         function comment to reflect reality.
18059         (loop_exits_before_overflow): Fix typo in function description.
18061 2017-02-24  Richard Biener  <rguenther@suse.de>
18063         PR tree-optimization/79389
18064         * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
18065         properly that a threading opportunity exists.  Detect conditional
18066         copy/constant propagation opportunities.
18068 2017-02-23  Eric Botcazou  <ebotcazou@adacore.com>
18070         * config/visium/visium.md (type): Add trap.
18071         (b): New mode attribute.
18072         (*btst): Rename into...
18073         (*btst<mode>): ...this and adjust.
18074         (*cbranchsi4_btst_insn): Rename into...
18075         (*cbranch<mode>4_btst_insn): ...this and adjust.
18076         (trap): New define_insn.
18078 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
18080         PR tree-optimization/79389
18081         * ifcvt.c (struct noce_if_info): Add rev_cond field.
18082         (noce_reversed_cond_code): New function.
18083         (noce_emit_store_flag): Use rev_cond if non-NULL instead of
18084         reversed_comparison_code.  Formatting fix.
18085         (noce_try_store_flag): Test rev_cond != NULL in addition to
18086         reversed_comparison_code.
18087         (noce_try_store_flag_constants): Likewise.
18088         (noce_try_store_flag_mask): Likewise.
18089         (noce_try_addcc): Use rev_cond if non-NULL instead of
18090         reversed_comparison_code.
18091         (noce_try_cmove_arith): Likewise.  Formatting fixes.
18092         (noce_try_minmax, noce_try_abs): Clear rev_cond.
18093         (noce_find_if_block): Initialize rev_cond.
18094         (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
18095         instead of false as last argument never attempt to reverse it
18096         afterwards.
18098 2017-02-23  Bin Cheng  <bin.cheng@arm.com>
18100         PR tree-optimization/79663
18101         * tree-predcom.c (combine_chains): Process refs in reverse order
18102         only for ZERO length chains, and add explaining comment.
18104 2017-02-23  Jeff Law  <law@redhat.com>
18106         PR tree-optimization/79578
18107         * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
18108         in call to operand_equal_p.
18110 2017-01-23  Dominique d'Humieres  <dominiq@lps.ens.fr>
18112         PR target/71017
18113         * config/i386/cpuid.h: Fix another undefined behavior.
18115 2017-02-23  Richard Biener  <rguenther@suse.de>
18117         PR tree-optimization/79683
18118         * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
18119         vector types for data-refs.
18121 2017-02-23  Martin Liska  <mliska@suse.cz>
18123         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
18125 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
18127         PR middle-end/79665
18128         * internal-fn.c (get_range_pos_neg): Moved to ...
18129         * tree.c (get_range_pos_neg): ... here.  No longer static.
18130         * tree.h (get_range_pos_neg): New prototype.
18131         * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
18132         are known to be in between 0 and signed maximum inclusive, try to
18133         expand both unsigned and signed divmod and use the cheaper one from
18134         those.
18136 2017-02-22  Jeff Law  <law@redhat.com>
18138         PR tree-optimization/79578
18139         * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
18140         to compare base operands.
18142 2017-02-22  Segher Boessenkool  <segher@kernel.crashing.org>
18144         PR target/79211
18145         * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
18146         gpc_reg_operand instead of fpr_reg_operand.
18148 2017-02-22  Sameera Deshpande  <sameera.deshpande@imgtec.com>
18150         * config/mips/mips.c (mips_return_in_memory): Force FP
18151         vector types to be returned in memory for o32 ABI.
18153 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
18155         * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
18156         instead of DW_TAG_member for static data member declarations and don't
18157         set no_linkage_name for static inline data members.
18158         (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
18159         to DW_TAG_member.
18161 2017-02-22  Martin Liska  <mliska@suse.cz>
18163         * doc/invoke.texi: Replace inequality signs with square brackets
18164         for -Wnormalized.
18166 2017-02-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18168         PR tree-optimization/68644
18169         * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
18171 2017-02-22  Matthew Fortune  <matthew.fortune@imgtec.com>
18173         PR target/78660
18174         * lra-constraints.c (simplify_operand_subreg): Handle
18175         WORD_REGISTER_OPERATIONS targets.
18177 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
18179         PR target/70465
18180         * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
18181         and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
18182         elimination by swapping fld*.
18184 2017-02-22  Richard Biener  <rguenther@suse.de>
18186         PR tree-optimization/79673
18187         * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
18188         convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
18189         irrelevant address-space qualifiers and avoiding a
18190         ADDR_SPACE_CONVERT_EXPR from fold_convert.
18192 2017-02-22  Richard Biener  <rguenther@suse.de>
18194         PR tree-optimization/79666
18195         * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
18196         to not symbolically negate if that may introduce undefined
18197         overflow.
18199 2017-02-22  Martin Liska  <mliska@suse.cz>
18201         PR lto/79587
18202         * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
18203         * data-streamer-out.c (streamer_write_gcov_count_stream):
18204         Likewise.
18205         * value-prof.c (stream_out_histogram_value): Make assert more
18206         precise based on type of counter.
18208 2017-02-21  Uros Bizjak  <ubizjak@gmail.com>
18210         PR target/79593
18211         * config/i386/i386.md (standard_x87sse_constant_load splitter):
18212         Use nonimmediate_operand instead of memory_operand for operand 1.
18213         (float-extend standard_x87sse_constant_load splitter): Ditto.
18215 2017-02-21  Jeff Law  <law@redhat.com>
18217         PR tree-optimization/79621
18218         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
18219         blocks with edges to themselves.
18221 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
18223         PR target/79633
18224         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
18225         is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
18226         Use gimple_call_builtin_p.
18228         PR target/79570
18229         * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
18230         on temporarily removed DEBUG_INSNs.
18232         PR tree-optimization/79649
18233         * tree-loop-distribution.c (classify_partition): Give up on
18234         non-generic address space loads/stores.
18236 2017-02-21  Aldy Hernandez  <aldyh@redhat.com>
18238         * doc/loop.texi (Loop manipulation): Remove nonexistent
18239         tree_ssa_loop_version from the documentation.
18240         * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
18242 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
18244         PR target/79494
18245         * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
18246         make_reg_eh_region_note_nothrow_nononlocal on call_insn.
18247         * config/rs6000/rs6000.c: Include except.h.
18248         (rs6000_expand_split_stack_prologue): Call
18249         make_reg_eh_region_note_nothrow_nononlocal on the call insn.
18251 2017-02-21  Martin Jambor  <mjambor@suse.cz>
18253         PR lto/79579
18254         * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
18255         have been analyzed.
18257 2017-02-21  Martin Jambor  <mjambor@suse.cz>
18259         * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
18260         for backward compatibility only.
18261         * doc/invoke.texi (Option Summary): Remove all references to
18262         -fipa-cp-alignment.
18264 2017-02-21  Matthew Fortune  <matthew.fortune@imgtec.com>
18266         PR target/78660
18267         Revert:
18268         2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
18270         * lra-constraints.c (curr_insn_transform): Handle
18271         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
18273 2017-02-21  Martin Liska  <mliska@suse.cz>
18275         * config/i386/i386.opt: Replace -masm-dialect with -masm.
18277 2017-02-21  Thomas Schwinge  <thomas@codesourcery.com>
18279         PR translation/79638
18280         * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
18282 2017-02-21  Eric Botcazou  <ebotcazou@adacore.com>
18284         PR ada/67205
18285         * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
18286         (arm_function_ok_for_sibcall): Return false for an indirect call by
18287         descriptor if all the argument registers are used.
18288         (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
18289         alignment of the function.
18291 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
18293         PR tree-optimization/61441
18294         * simplify-rtx.c (simplify_const_unary_operation): For
18295         -fsignaling-nans and sNaN operand, return NULL_RTX rather than
18296         the sNaN unmodified.
18298 2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18300         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
18301         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
18302         instead of SYSTEM_HEADER_DIR.
18304 2017-02-20  Gerald Pfeifer  <gerald@pfeifer.com>
18305             Martin LiÅ¡ka  <mliska@suse.cz>
18307         * doc/invoke.texi (use-after-scope-direct-emission-threshold):
18308         Fix typos and grammar, use active voice, and clarify.
18310 2017-02-20  Marek Polacek  <polacek@redhat.com>
18312         PR middle-end/79537
18313         * gimplify.c (gimplify_expr): Handle unused *&&L;.
18315         PR sanitizer/79558
18316         * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
18318 2017-02-20  Jakub Jelinek  <jakub@redhat.com>
18320         PR target/79568
18321         * config/i386/i386.c (ix86_expand_builtin): Handle
18322         OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
18323         ix86_builtins_isa[fcode].isa as a requirement of those
18324         flags and any other flag in the bitmask.
18325         (ix86_init_mmx_sse_builtins): Use 0 instead of
18326         ~OPTION_MASK_ISA_64BIT as mask.
18327         * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
18328         __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
18329         __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
18330         __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
18332 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
18334         PR target/78012
18335         * lra-constraints.c (split_reg): Check requested split mode
18336         is supported by the register.
18338 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
18340         * lra-constraints.c (simplify_operand_subreg): Remove early
18341         return false.
18343 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
18345         PR target/78660
18346         * lra-constraints.c (curr_insn_transform): Tighten condition
18347         for converting SUBREG reloads from OP_OUT to OP_INOUT.
18349 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
18351         PR target/78660
18352         * lra-constraints.c (curr_insn_transform): Handle
18353         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
18355 2017-02-19  Uros Bizjak  <ubizjak@gmail.com>
18357         Revert:
18358         2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
18360         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
18362 2017-02-19  Jonathan Wakely  <jwakely@redhat.com>
18364         PR c++/69523
18365         * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
18366         description.
18368 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18370         * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
18371         for FMA_EXPR.
18373 2017-02-18  Jakub Jelinek  <jakub@redhat.com>
18375         * final.c (last_columnnum, override_columnnum): New variables.
18376         (final_start_function): Set last_columnnum, pass it to begin_prologue
18377         hook and pass 0 to dwarf2out_begin_prologue.
18378         (final_scan_insn): Update override_columnnum.  Pass last_columnnum
18379         to source_line debug hook.
18380         (notice_source_line): Compute last_columnnum and for debug_column_info
18381         return true on column changes.
18382         * debug.h (struct gcc_debug_hooks): Add column argument to
18383         source_line and begin_prologue hooks.
18384         (debug_nothing_int_charstar_int_bool): Remove prototype.
18385         (debug_nothing_int_int_charstar,
18386         debug_nothing_int_int_charstar_int_bool): New prototypes.
18387         (dwarf2out_begin_prologue): Add column argument.
18388         * debug.c (do_nothing_debug_hooks): Adjust source_line and
18389         begin_prologue hooks.
18390         (debug_nothing_int_charstar_int_bool): Remove.
18391         (debug_nothing_int_int_charstar,
18392         debug_nothing_int_int_charstar_int_bool): New functions.
18393         * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
18394         through to dwarf2out_source_line.
18395         (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
18396         (dwarf2out_source_line): Add column argument, emit it if requested.
18397         * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
18398         arguments.
18399         * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
18400         * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
18401         * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
18402         through to dwarf2out_begin_prologue.
18403         (vmsdbgout_source_line): Add column argument, pass it through to
18404         dwarf2out_source_line.
18405         * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
18406         dbxout_source_line caller.
18407         (dbxout_source_line): Add column argument.
18409         * common.opt (gno-column-info, gcolumn-info): New options.
18410         * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
18411         (check_die): Also test for multiple DW_AT_decl_column attributes.
18412         (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
18413         DW_AT_decl_column if requested.
18414         (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
18415         if requested.
18416         (gen_variable_die): Likewise.
18417         (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
18418         * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
18420         PR target/79569
18421         * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
18422         * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
18423         (ix86_handle_option): Handle OPT_m3dnowa.
18424         * doc/invoke.texi (-m3dnowa): Document.
18425         * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
18426         -m3dnowa instead of -m3dnow -march=athlon.
18428         PR target/79559
18429         * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
18430         instead of gcc_assert for K, r and R code checks.  Formatting fixes.
18432 2017-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18434         PR target/79261
18435         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
18436         support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
18437         * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
18438         generator for vsx_xxpermdi_<mode>_be.
18439         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
18440         force big-endian semantics.
18441         (vsx_xxpermdi_<mode>_be): New define_expand with same
18442         implementation as previous version of vsx_xxpermdi_<mode>.
18444 2017-02-17  Jakub Jelinek  <jakub@redhat.com>
18446         PR tree-optimization/79327
18447         * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
18448         variable, its initialization and use.
18450 2017-02-17  Julia Koval  <julia.koval@intel.com>
18452         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
18453         (OPTION_MASK_ISA_PKU_UNSET): New.
18454         (ix86_handle_option): Handle -mrdpid.
18455         * config/i386/cpuid.h (bit_RDPID): New.
18456         * config/i386/driver-i386.c (host_detect_local_cpu):
18457         Detect RDPID feature.
18458         * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
18459         * config/i386/i386-c.c (ix86_target_macros_internal):
18460         Handle RDPID flag.
18461         * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
18462         (ix86_valid_target_attribute_inner_p): Add "rdpid".
18463         (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
18464         * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
18465         * config/i386/i386.md (define_insn "rdpid"): New.
18466         * config/i386/i386.opt Add -mrdpid.
18467         * config/i386/immintrin.h (_rdpid_u32): New.
18469 2017-02-17  Vladimir Makarov  <vmakarov@redhat.com>
18471         PR rtl-optimization/79541
18472         * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
18473         instead of transforming it into USE.
18475 2017-02-17  Segher Boessenkool  <segher@kernel.crashing.org>
18477         * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
18478         If HONOR_SNANS (SFmode) force the input to a register.
18479         (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
18480         (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
18481         an frsp or similar insn.
18483 2017-02-17  Martin Liska  <mliska@suse.cz>
18485         PR rtl-optimization/79577
18486         * params.def (selsched-max-sched-times): Increase minimum to 1.
18488 2017-02-17  Martin Liska  <mliska@suse.cz>
18490         PR rtl-optimization/79574
18491         * gcse.c (want_to_gcse_p): Prevent integer overflow.
18493 2017-02-17  Martin Liska  <mliska@suse.cz>
18495         PR tree-optimization/79529
18496         * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
18497         ssa_defined_default_def_p to handle cases which are implicitly
18498         defined.
18499         * tree-ssa.c (ssa_defined_default_def_p): New function.
18500         (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
18501         which are implicitly defined.
18502         * tree-ssa.h (ssa_defined_default_def_p): Declare.
18504 2017-02-17  Richard Biener  <rguenther@suse.de>
18506         PR middle-end/79576
18507         * params.def (max-ssa-name-query-depth): Limit to 10.
18509 2017-02-17  Richard Biener  <rguenther@suse.de>
18511         PR tree-optimization/79552
18512         * tree-ssa-structalias.c (visit_loadstore): Properly verify
18513         default defs.
18515 2017-02-17  Richard Biener  <rguenther@suse.de>
18517         PR bootstrap/79567
18518         * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
18520 2017-02-17  Marek Polacek  <polacek@redhat.com>
18522         PR middle-end/79536
18523         * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
18524         (fold_negate_expr): New wrapper.
18526 2017-02-16  Sandra Loosemore  <sandra@codesourcery.com>
18528         * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]: 
18529         Correct terminology and de-emphasize pre-standard behavior.
18531 2017-02-16  Alan Modra  <amodra@gmail.com>
18533         PR rtl-optimization/79286
18534         * ira.c (def_dominates_uses): New function.
18535         (update_equiv_regs): Don't create an equivalence for insns that
18536         may trap where the register def does not dominate the use.
18538 2017-02-16  Vladimir Makarov  <vmakarov@redhat.com>
18540         PR rtl-optimization/78127
18541         * lra.c (lra): Call lra_eliminate before finish the loop after
18542         lra_constraint.
18544 2017-02-16  Richard Biener  <rguenther@suse.de>
18546         * graphite.h: Do not include isl/isl_val_gmp.h, instead include
18547         isl/isl_val.h.
18548         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
18549         (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
18550         * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
18551         (isl_val_int_from_wi): New function.
18552         (extract_affine_gmp): Rename to ...
18553         (extract_affine_wi): ... this, take a widest_int.
18554         (extract_affine_int): Just wrap extract_affine_wi.
18555         (add_param_constraints): Use isl_val_int_from_wi.
18556         (add_loop_constraints): Likewise, and extract_affine_wi.
18558 2017-02-15  Jeff Law  <law@redhat.com>
18560         PR middle-end/79521
18561         * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
18562         ira_init_register_move_cost_if_necessary.
18564 2017-02-15  Martin Sebor  <msebor@redhat.com>
18566         PR middle-end/32003
18567         * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
18568         removed in a prior commit.
18570 2017-02-15  Bin Cheng  <bin.cheng@arm.com>
18572         PR tree-optimization/79347
18573         * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
18574         counters during peeling.
18576 2017-02-15  Thomas Schwinge  <thomas@codesourcery.com>
18578         * Makefile.in (site.exp): Remove "set ISLVER".
18580 2017-02-15  Jakub Jelinek  <jakub@redhat.com>
18582         PR target/79487
18583         * real.c (real_from_integer): Call real_convert even for decimal.
18585 2017-02-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18587         PR target/79421
18588         * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
18590 2017-02-14  Andrew Pinski  <apinski@cavium.com>
18592         * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
18593         cores and change the partno/implementer to be correct.
18594         (thunderx2t99p1): New core which replaces thunderx2t99 and still has
18595         the 'B" as the implementer.
18596         * config/aarch64/aarch64-tune.md: Regenerate.
18598 2017-02-14  Carl Love  <cel@us.ibm.com>
18600         * config/rs6000/rs6000.c: Add case statement entry to make the
18601         xvcvuxdsp built-in argument unsigned.
18602         * config/rs6000/vsx.md: Fix the source and return operand types so they
18603         match the instruction definitions from the ISA document.  Fix typo
18604         in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
18605         statement.
18607 2017-02-14  Vladimir Makarov  <vmakarov@redhat.com>
18609         PR target/79282
18610         * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
18611         member early_clobber_alts.
18612         * lra-lives.c (reg_early_clobber_p): New.
18613         (process_bb_lives): Use it.
18614         * lra.c (new_insn_reg): New arg early_clobber_alts.  Use it.
18615         (debug_operand_data): Initialize early_clobber_alts.
18616         (setup_operand_alternative): Set up early_clobber_alts.
18617         (collect_non_operand_hard_regs): Ditto.  Pass early clobber
18618         alternatives to new_insn_reg.
18619         (add_regs_to_insn_regno_info): Add arg early_clobber_alts.  Use
18620         it.
18621         (lra_update_insn_regno_info): Pass the new arg.
18623 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
18625         PR middle-end/79505
18626         * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
18627         (new_oacc_loop_raw): Don't clear already cleared fields.
18629         PR target/79481
18630         * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
18631         _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
18632         _mm512_prefetch_i64gather_ps): New inline functions and macros.
18634 2017-02-14  Uros Bizjak  <ubizjak@gmail.com>
18636         PR target/79495
18637         * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
18639 2017-02-14  H.J. Lu  <hongjiu.lu@intel.com>
18641         PR target/79498
18642         * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
18643         the extra instruction to the right place to store 128-bit constant
18644         when needed.
18646 2017-02-14  Martin Sebor  <msebor@redhat.com>
18648         PR middle-end/79448
18649         * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
18650           warning for strings of unknown length.
18652 2017-02-13  Segher Boessenkool  <segher@kernel.crashing.org>
18654         * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
18656 2017-02-14  Jeff Law  <law@redhat.com>
18658         PR target/79404
18659         * ira-costs.c (scan_one_insn): Initialize register move costs
18660         for pseudos seen in USE/CLOBBER insns.
18662         PR tree-optimization/79095
18663         * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
18664         if the numerator has the range ~[0,0] make the resultant range ~[0,0].
18665         (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
18666         if the operands are known to be not equal, then the resulting range
18667         is ~[0,0].
18668         (intersect_ranges): If the new range is ~[0,0] and the old range is
18669         wide, then prefer ~[0,0].
18670         * tree-vrp.c (overflow_comparison_p_1): New function.
18671         (overflow_comparison_p): New function.
18672         * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
18673         if NAME is used in an overflow test.
18674         (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
18675         overflow check that can be expressed as an equality test, then adjust
18676         ops to be that equality test.
18678 2017-02-14  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18680         * config/s390/s390-builtin-types.def: Remove flags argument.
18681         * config/s390/s390.c (s390_init_builtins): Likewise.
18683 2017-02-14  Martin Liska  <mliska@suse.cz>
18685         * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
18686         vector.  Fix trailing white spaces.
18688 2017-02-14  James Greenhalgh  <james.greenhalgh@arm.com>
18690         * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
18691         HFmode.
18693 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18695         PR rtl-optimization/68664
18696         * config/arm/arm.c (arm_sched_can_speculate_insn):
18697         New function.  Declare prototype.
18698         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
18700 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18702         PR rtl-optimization/68664
18703         * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
18704         New function.
18705         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
18707 2017-02-14  Amit Pawar  <amit.pawar@amd.com>
18709         * config/i386/i386.c (znver1_cost): Fix the alignment for function and
18710         max skip bytes for function, loop and jump.
18712 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18714         * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
18715         ABS_EXPR for gimple dump.
18717 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
18719         PR target/79462
18720         * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
18722         PR tree-optimization/79408
18723         * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
18724         case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
18725         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
18726         also if rhs1 is INTEGER_CST.
18728 2017-02-14  Richard Biener  <rguenther@suse.de>
18730         PR middle-end/79432
18731         * tree-into-ssa.c (insert_phi_nodes): When the function can
18732         have abnormal edges rewrite SSA names with broken use-def
18733         dominance out of SSA and register them for PHI insertion.
18735 2017-02-13  Martin Sebor  <msebor@redhat.com>
18737         PR middle-end/79496
18738         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
18739         clearing info.nowrite flag when snprintf size argument is a range.
18741 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
18743         * cprop.c (cprop_jump): Add missing space in string literal.
18744         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
18745         (get_constraint_for_component_ref): Likewise.
18746         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
18747         * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
18748         * lra-constraints.c (process_alt_operands): Likewise.
18749         * ipa-inline.c (inline_small_functions): Likewise.
18750         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
18751         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
18752         * trans-mem.c (diagnose_tm_1_op): Likewise.
18753         * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
18754         (grid_parallel_clauses_gridifiable): Likewise.
18756         * config/nvptx/mkoffload.c (process): Add space in between
18757         , and %d.
18759         * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
18760         "MOD4_SSE_REGS" and "ALL_REGS".
18762         * spellcheck.c (test_data): Add , in between "foo" and "food".
18764 2017-02-13  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
18766         PR target/79449
18767         * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
18768         boundary crossing check and subsequent code generation agree.
18770 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18772         * config/aarch64/aarch64.c (has_memory_op): Delete.
18773         (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
18774         has_memory_op.
18776 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
18778         PR rtl-optimization/79388
18779         PR rtl-optimization/79450
18780         * combine.c (distribute_notes): When removing TEM_INSN for which
18781         corresponding dest has last value recorded, invalidate that last
18782         value.
18784 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18786         * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
18787         of explicit '@'.  Add missing assembly comment marker on branch costs
18788         printout.
18790 2017-02-13  Nathan Sidwell  <nathan@acm.org>
18792         * gengtype-lex.l (<in_struct>): Add '/'.
18794 2017-02-13  Martin Liska  <mliska@suse.cz>
18796         PR c/79471
18797         * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
18799 2017-02-13  Richard Biener  <rguenther@suse.de>
18801         * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
18802         Remove.
18803         * configure: Re-generate.
18804         * config.in: Likewise.
18805         * graphite-dependences.c: Simplify as if
18806         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
18807         * graphite-isl-ast-to-gimple.c: Likewise.
18808         * graphite-optimize-isl.c: Likewise.
18809         * graphite-poly.c: Likewise.
18810         * graphite-sese-to-poly.c: Likewise.
18811         * graphite.h: Likewise.
18812         * toplev.c: Include isl/version.h and use isl_version () for
18813         printing the ISL version.
18814         * doc/install.texi: Update ISL requirement.
18816 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
18818         * doc/standards.texi (Standards): Update reference to
18819         Objective-C 2.0.
18821 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
18823         * doc/extend.texi (Named Address Spaces): sourceware.org now
18824         defaults to https.
18825         * doc/install.texi (Binaries): Ditto.
18826         (Specific): Ditto.
18828 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
18830         * doc/cpp.texi: Replace "stringify"/"stringification" with C
18831         standard terminology "stringize"/"stringizing" throughout.
18832         * doc/cppinternals.texi: Likewise.
18834 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
18836         * doc/extend.texi: Fix some spelling mistakes and typos.
18837         * doc/invoke.texi: Likewise.
18839 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
18841         PR ipa/79224
18842         * params.def (inline-min-speedup) Change from 10 to 8.
18844 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
18846         * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
18847         4.5.
18849 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
18851         PR ipa/79224
18852         * ipa-inline-analysis.c (get_minimal_bb): New function.
18853         (record_modified): Use it.
18854         (remap_edge_change_prob): Handle also ancestor functions.
18856 2017-02-11  Gerald Pfeifer  <gerald@pfeifer.com>
18858         * doc/contrib.texi (Contributors): Remove broken link into
18859         the Mauve CVS repository.
18861 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
18863         PR middle-end/79454
18864         * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
18865         result computation whenever lhs doesn't have vector mode, not
18866         just when it has BLKmode.
18868 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
18870         * doc/makefile.texi (profiledbootstrap): Refer to the
18871         installation instructions only in textual form.
18873 2017-02-10  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
18875         PR target/79295
18876         * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
18878 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
18880         * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
18881         (Specific): Update mingw-w64 reference.
18882         (Binaries): Ditto.
18883         (Specific): Remove broken link to Renesas RX processor.
18885 2017-02-10  Richard Biener  <rguenther@suse.de>
18887         * toplev.c (process_options): Do not mention obsolete graphite
18888         options when printing sorry message about missing graphite support.
18889         Mention -floop-nest-optimize.
18891 2017-02-10  Christophe Lyon  <christophe.lyon@linaro.org>
18893         * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
18894         (vtst_p16): Likewise.
18895         (vtstq_p8): Likewise.
18896         (vtstq_p16): Likewise.
18897         (vtst_p64): New.
18898         (vtstq_p64): Likewise.
18899         * config/arm/arm_neon.h (vgetq_lane_p64): New.
18900         (vset_lane_p64): New.
18901         (vsetq_lane_p64): New.
18903 2017-02-10  Jakub Jelinek  <jakub@redhat.com>
18905         PR tree-optimization/79411
18906         * tree-ssa-reassoc.c (is_reassociable_op): Return false if
18907         stmt operands are SSA_NAMEs used in abnormal phis.
18908         (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
18909         phis.
18911 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
18913         PR ipa/70795
18914         * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
18915         flag if needed.
18917 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
18919         * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
18921 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
18923         * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
18924         to avoid warning.
18926         PR c/79413
18927         * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
18928         not arbitrary TREE_CONSTANT.
18930         PR c/79431
18931         * gimplify.c (gimplify_adjust_omp_clauses): Ignore
18932         "omp declare target link" attribute unless is_global_var.
18933         * omp-offload.c (find_link_var_op): Likewise.
18935 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
18936             Chung-Lin Tang  <cltang@codesourcery.com>
18938         * gimplify.c (gimplify_scan_omp_clauses): No special handling for
18939         OMP_CLAUSE_TILE.
18940         (gimplify_adjust_omp_clauses): Don't delete TILE.
18941         (gimplify_omp_for): Deal with TILE.
18942         * internal-fn.c (expand_GOACC_TILE): New function.
18943         * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
18944         (GOACC_TILE): New.
18945         * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
18946         (expand_oacc_collapse_init): Add LOC paramter.  Initialize tile
18947         element fields.
18948         (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
18949         avoid DIV for outermost collapse var.
18950         (expand_oacc_for): Insert tile element loop as needed.  Adjust.
18951         Remove out of date comments, fix whitespace.
18952         * omp-general.c (omp_extract_for_data): Deal with tiling.
18953         * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
18954         adjust OLF_DIM_BASE value.
18955         (struct omp_for_data): Add tiling field.
18956         * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
18957         (lower_oacc_head_mark): Add OLF_TILE as appropriate.  Ensure 2 levels
18958         for auto loops.  Remove default auto determining, moved to
18959         oacc_loop_fixed_partitions.
18960         * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
18961         stmts, add e_mask field.
18962         (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
18963         (oacc_thread_numbers): Use oacc_dim_call.
18964         (oacc_xform_tile): New.
18965         (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
18966         (finish_oacc_loop): Adjust for ifns vector.
18967         (oacc_loop_discover_walk): Append loop abstraction sites to list,
18968         add case for GOACC_TILE fns.
18969         (oacc_loop_xform_loop): Delete.
18970         (oacc_loop_process): Iterate over call list directly, and add
18971         handling for GOACC_TILE fns.
18972         (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
18973         dump partitioning.
18974         (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
18975         vector partitioning to outer loops.  Assign 2 partitions to loops
18976         when available. Add TILE handling.
18977         (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
18978         (execite_oacc_device_lower): Process GOACC_TILE fns,
18979         ignore unknown specs.
18980         * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
18981         * tree.c (omp_clause_num_ops): Adjust TILE ops.
18982         * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
18984 2017-02-09  Gerald Pfeifer  <gerald@pfeifer.com>
18986         * configure.ac (ACX_BUGURL): Update.
18987         * configure: Regenerate.
18989 2017-02-09  Richard Biener  <rguenther@suse.de>
18991         PR tree-optimization/69823
18992         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
18993         Properly enumerate all BBs in the region.  Use auto_vec/auto_bitmap.
18995 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
18997         * config/arc/arc-c.def: Add __NPS400__ definition.
18998         * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
18999         (TARGET_NPS400): Define.
19001 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
19003         * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
19004         file.
19005         (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
19006         pointer, arch_info.
19007         (arc_cpu_types): Fill the arch_info field with a pointer into the
19008         arc_arch_types table.
19009         (arc_selected_cpu): Declare.
19010         * config/arc/arc.c (arc_selected_cpu): Make global.
19011         (arc_selected_arch): Delete.
19012         (arc_base_cpu): Delete.
19013         (arc_override_options): Remove references to deleted variables,
19014         update access to arch information.
19015         (ARC_OPT): Update access to arch information.
19016         (ARC_OPTX): Likewise.
19017         * config/arc/arc.h (arc_base_cpu): Remove declaration.
19018         (TARGET_ARC600): Update access to arch information.
19019         (TARGET_ARC601): Likewise.
19020         (TARGET_ARC700): Likewise.
19021         (TARGET_EM): Likewise.
19022         (TARGET_HS): Likewise.
19023         * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
19024         information.
19026 2017-02-08  Pat Haugen  <pthaugen@us.ibm.com>
19028         PR target/78604
19029         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
19030         condition/operands for integer GE/LE/GEU/LEU operations.
19032 2017-02-08  Segher Boessenkool  <segher@kernel.crashing.org>
19034         PR translation/79397
19035         * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
19036         of AltiVec.
19038 2017-02-08  Martin Jambor  <mjambor@suse.cz>
19040         PR ipa/79375
19041         * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
19042         whether allocation happened.
19043         (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
19044         nothing was allocated.
19046 2017-02-08  Jakub Jelinek  <jakub@redhat.com>
19048         PR tree-optimization/79408
19049         * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
19050         constant, but SSA_NAME with a known integer range, use the minimum
19051         of that range instead of op1 to determine if modulo can be replaced
19052         with its first operand.
19054 2016-02-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19056         * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
19058 2017-02-08  Richard Biener  <rguenther@suse.de>
19060         PR tree-optimization/71824
19061         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
19062         Check all loops contained in the merged region.
19064 2017-02-07  Andrew Pinski  <apinski@cavium.com>
19066         * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
19068 2017-02-07  Andrew Pinski  <apinski@cavium.com>
19070         * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
19071         (thunderxt88): Likewise.
19072         (thunderxt81): Disable LSE and change v8.1 to v8.
19073         (thunderxt83): Likewise.
19075 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
19076             Richard Biener  <rguenther@suse.de>
19078         PR middle-end/79399
19079         * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
19080         type from int to size_t.
19081         * ira-costs.c (struct_costs_size): Change type from int to size_t.
19083 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
19085         PR rtl-optimization/79386
19086         * cprop.c (bypass_conditional_jumps): Initialize
19087         bypass_last_basic_block already before splitting bbs after
19088         unconditional traps...
19089         (bypass_conditional_jumps): ... rather than here.
19091         PR target/79299
19092         * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
19093         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
19094         *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
19095         fix -masm=intel patterns.
19097 2017-02-07  Richard Biener  <rguenther@suse.de>
19099         PR tree-optimization/79256
19100         PR middle-end/79278
19101         * builtins.c (get_object_alignment_2): Use min_align_of_type
19102         to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
19103         and ADJUST_FIELD_ALIGN.
19105         * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
19106         type parameter.
19107         * doc/tm.texi: Regenerate.
19108         * stor-layout.c (layout_decl): Adjust.
19109         (update_alignment_for_field): Likewise.
19110         (place_field): Likewise.
19111         (min_align_of_type): Likewise.
19112         * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
19113         * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
19114         * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
19115         * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
19116         * config/frv/frv.c (frv_adjust_field_align): Likewise.
19117         * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
19118         * config/i386/i386.c (x86_field_alignment): Likewise.
19119         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
19120         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
19121         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
19122         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
19123         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
19124         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
19125          Likewise.
19127         Revert
19128         2017-01-30  Richard Biener  <rguenther@suse.de>
19130         PR tree-optimization/79256
19131         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
19132         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
19133         alignment on TYPE.
19135 2017-02-07  Toma Tabacu  <toma.tabacu@imgtec.com>
19137         * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
19138         argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
19139         builtins to SImode and emit a zero-extend, if necessary.
19141 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
19143         * docs/invoke.texi (RISC-V Options): Alphabetize.
19145 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
19147         * doc/invoke.texi (RISC-V Options): Use two spaces to separate
19148         options.
19150 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
19152         * config/riscv/riscv.c: New file.
19153         * common/config/riscv/riscv-common.c: Likewise.
19154         * config.gcc: Likewise.
19155         * config/riscv/constraints.md: Likewise.
19156         * config/riscv/elf.h: Likewise.
19157         * config/riscv/generic.md: Likewise.
19158         * config/riscv/linux.h: Likewise.
19159         * config/riscv/multilib-generator: Likewise.
19160         * config/riscv/peephole.md: Likewise.
19161         * config/riscv/pic.md: Likewise.
19162         * config/riscv/predicates.md: Likewise.
19163         * config/riscv/riscv-builtins.c: Likewise.
19164         * config/riscv/riscv-c.c: Likewise.
19165         * config/riscv/riscv-ftypes.def: Likewise.
19166         * config/riscv/riscv-modes.def: Likewise.
19167         * config/riscv/riscv-opts.h: Likewise.
19168         * config/riscv/riscv-protos.h: Likewise.
19169         * config/riscv/riscv.h: Likewise.
19170         * config/riscv/riscv.md: Likewise.
19171         * config/riscv/riscv.opt: Likewise.
19172         * config/riscv/sync.md: Likewise.
19173         * config/riscv/t-elf-multilib: Likewise.
19174         * config/riscv/t-linux: Likewise.
19175         * config/riscv/t-linux-multilib: Likewise.
19176         * config/riscv/t-riscv: Likewise.
19177         * configure.ac: Likewise.
19178         * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
19179         Waterman as RISC-V maintainers.
19180         * doc/install.texi: Add RISC-V entries.
19181         * doc/invoke.texi: Add RISC-V options section.
19182         * doc/md.texi: Add RISC-V constraints section.
19183         * configure: Regenerated.
19185 2017-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
19187         PR target/66144
19188         * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
19189         false values to be constant vectors with all 0 or all 1 bits set.
19190         (vcondu<mode><mode>): Likewise.
19191         * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
19192         predicate.
19193         (fpmask_comparison_operator): Update comment.
19194         (vecint_comparison_operator): New predicate.
19195         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
19196         vector conditionals when the true and false values are constant
19197         vectors with all 0 bits or all 1 bits set.
19199 2017-02-06  Martin Sebor  <msebor@redhat.com>
19201         PR  tree-optimization/79376
19202         * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
19204 2017-02-06  Uros Bizjak  <ubizjak@gmail.com>
19206         * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
19207         explicit subreg RTX with operand 1.  Use VECTOR_MODE_P predicate
19208         to simplify split condition.
19210 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
19212         * omp-expand.c (oxpand_omp_atomic_fetch_op,
19213         expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
19214         false.
19216 2017-02-06  Segher Boessenkool  <segher@kernel.crashing.org>
19218         PR rtl-optimization/68664
19219         * target.def (can_speculate_insn): New hook.
19220         * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
19221         * doc/tm.texi: Regenerate.
19222         * sched-rgn.c (can_schedule_ready_p): Use the new hook.
19223         * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
19224         (rs6000_sched_can_speculate_insn): New function.
19226 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
19228         PR tree-optimization/79284
19229         * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
19230         * tree-vect-stmts.c (vect_get_vec_def_for_operand,
19231         vectorizable_mask_load_store, vectorizable_operation,
19232         vect_is_simple_cond, get_same_sized_vectype): Use it instead
19233         of comparing TREE_CODE of a type against BOOLEAN_TYPE.
19234         * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
19235         vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
19236         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
19237         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
19238         Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
19239         is_gimple_assign (stmt).  Replace another such test with
19240         is_gimple_assign (stmt).
19242 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
19244         PR target/78883
19245         * config/avr/avr.c (rtl-iter.h): Include it.
19246         (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
19247         (avr_legitimate_combined_insn): ...and implementation.
19249 2017-02-06  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19251         * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
19252         * config/s390/s390.c (s390_const_operand_ok)
19253         (s390_canonicalize_comparison, s390_extract_part)
19254         (s390_single_part, s390_contiguous_bitmask_nowrap_p)
19255         (s390_contiguous_bitmask_p, s390_rtx_costs)
19256         (legitimize_pic_address): Likewise.
19257         * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
19258         * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
19259         ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
19260         ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
19261         * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
19263 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
19265         * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
19266         REGNO($0) == REGNO($1).
19268 2017-02-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19270         * config/s390/linux.h(SIZE_TYPE): Add comment.
19272 2017-02-06  Julian Brown  <julian@codesourcery.com>
19273             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
19274             Virendra Pathak  <virendra.pathak@broadcom.com>
19276         * config/aarch64/aarch64-cores.def: Change the scheduler
19277         to Thunderx2t99.
19278         * config/aarch64/aarch64.md: Include thunderx2t99.md.
19279         * config/aarch64/thunderx2t99.md: New file.
19281 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
19283         * doc/standards.texi (Go Language): Update link to language
19284         standard.
19286 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
19288         * tree-eh.c (lower_resx): Sanitize profile.
19289         (cleanup_empty_eh_move_lp): Likewise.
19291 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
19293         PR tree-ssa/79347
19294         * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
19295         ELSE_PROB.
19296         * cfgloopmanip.h (loop_version): Update prototype.
19297         * modulo-sched.c (sms_schedule): Update call of loop_version.
19298         * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
19299         * tree-parloops.c (gen_parallel_loop): Likewise.
19300         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
19301         * tree-ssa-loop-split.c (split_loop): Likewise.
19302         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
19303         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
19305 2017-02-05  Martin Liska  <mliska@suse.cz>
19307         PR bootstrap/78985
19308         * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
19309         variable to NULL.
19310         (print_operand_address): Initialize a struct to zero.
19312 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
19314         * doc/contrib.texi (Contributors): Refer to Hans Boehm's
19315         garbage collector only in textual form.
19317 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
19319         * doc/extend.texi (x86 specific memory model extensions for
19320         transactional memory): Simplify a phrase.
19322 2017-02-05  Eric Botcazou  <ebotcazou@adacore.com>
19324         PR target/79353
19325         * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
19326         'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
19327         (atomic_storedi_1): Likewise.
19329 2017-02-04  Jakub Jelinek  <jakub@redhat.com>
19331         PR tree-optimization/79338
19332         * tree-parloops.c (gather_scalar_reductions): Don't call
19333         vect_analyze_loop_form for loop->inner before destroying loop's
19334         loop_vinfo.
19336 2017-02-03  Martin Sebor  <msebor@redhat.com>
19338         PR tree-optimization/79327
19339         * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
19340         when precision has resulted in leading zeros.
19341         (format_integer): Adjust the likely counter to assume an unknown
19342         argument that may be zero is non-zero.
19344 2017-02-03  Jason Merrill  <jason@redhat.com>
19346         PR c++/78689
19347         * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
19348         avoid copying non-taken branch.
19350 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
19352         PR tree-optimization/79340
19353         * tree-vect-loop.c (vectorizable_reduction): Release
19354         vec_defs elements after safe_splicing them into other vectors.
19355         Formatting fixes.
19357         PR tree-optimization/79327
19358         * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
19359         true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
19360         dirtype.
19361         (format_integer): Use wide_int_to_tree instead of build_int_cst
19362         + to_?hwi.  If argmin is NULL, just set argmin and argmax to
19363         TYPE_{MIN,MAX}_VALUE of argtype.  Simplify and fix computation
19364         of shortest and longest sequence.
19366 2017-02-03  Uros Bizjak  <ubizjak@gmail.com>
19368         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
19369         Use pextrd for TARGET_SSE4_1 when creating scalar copy.
19371 2017-02-03  Walter Lee  <walt@tilera.com>
19373         PR target/78862
19374         * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
19375         after initial stackframe link reg save.
19376         * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
19378 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
19380         PR target/79354
19381         * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
19382         wu for stxssp alternative.
19384 2017-02-03  Martin Sebor  <msebor@redhat.com>
19386         PR tree-optimization/79352
19387         * gimple-fold.c (get_range_strlen): Add argument.
19388         (get_range_strlen): Change return type to bool.
19389         (get_maxval_strlen): Pass in a dummy argument.
19390         * gimple-fold.h (get_range_strlen): Change return type to bool.
19391         * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
19392         * tree.h (array_at_struct_end_p): Add argument.
19393         * tree.c (array_at_struct_end_p): Handle it.
19395 2017-02-03  Martin Liska  <mliska@suse.cz>
19397         PR lto/66295
19398         * multiple_target.c (create_dispatcher_calls): Redirect edge
19399         from a caller of a dispatcher.
19400         (expand_target_clones): Make the clones local.
19401         (ipa_target_clone): Do both target clones and resolvers.
19402         (ipa_dispatcher_calls): Remove the pass.
19403         (pass_dispatcher_calls::gate): Likewise.
19404         (make_pass_dispatcher_calls): Likewise.
19405         * passes.def (pass_target_clone): Put as very first IPA early
19406         pass.
19408 2017-02-03  Martin Liska  <mliska@suse.cz>
19410         * symtab.c (symtab_node::binds_to_current_def_p): Bail out
19411         in case of a function with ifunc attribute.
19413 2017-02-03  Martin Liska  <mliska@suse.cz>
19415         * cgraph.c (cgraph_node::dump): Dump function version info.
19416         * symtab.c (symtab_node::dump_base): Add missing new line.
19418 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
19420         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
19421         (ifcombine_ifandif): Use it.
19423 2017-02-03  Martin Liska  <mliska@suse.cz>
19425         * doc/invoke.texi: Document default value for
19426         use-after-scope-direct-emission-threshold.
19428 2017-02-03  Martin Liska  <mliska@suse.cz>
19430         PR tree-optimization/79339
19431         * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
19432         (format_floating): Likewise.
19434 2017-02-03  Martin Liska  <mliska@suse.cz>
19436         PR ipa/79337
19437         * ipa-prop.c (ipa_node_params_t::insert): Remove current
19438         implementation.
19439         (ipa_node_params_t::remove): Likewise.
19440         * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
19441         initialization from removed ipa_node_params_t::insert.
19442         (ipa_node_params::~ipa_node_params): Move from removed
19443         ipa_node_params_t::release.
19444         * symbol-summary.h (symbol_summary::m_released): New member.
19445         Do not release a summary twice.  Do not allow to call finalizer
19446         for types of a summary that live in GGC memory.
19448 2017-02-02  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
19450         * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
19451         cmp_branch fusion.
19453 2017-02-02  Martin Sebor  <msebor@redhat.com>
19455         PR middle-end/79275
19456         * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
19457         (format_string): Tighten up the range of output for non-constant
19458         strings and correct the expected range for wide non-constant strings.
19460 2017-02-02  Martin Sebor  <msebor@redhat.com>
19462         * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
19464         PR middle-end/32003
19465         * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
19466         index.
19467         (-fdump-tree-@var): Add to index and document how to come up
19468         with pass-specific option and dump file names.
19469         (-fdump-passes): Clarify where to look for output.
19471 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
19473         PR middle-end/77445
19474         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
19475         statistics of the analyzed path; allow threading for speed when
19476         any of BBs along the path are optimized for speed.
19478 2017-02-02  Eric Botcazou  <ebotcazou@adacore.com>
19480         PR middle-end/78468
19481         * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
19482         settings of the virtual registers.
19484         Revert again
19485         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19487         * explow.c (get_dynamic_stack_size): Take known alignment of stack
19488         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
19489         needed.
19491 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19493         * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
19494         ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
19496 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19498         * config/s390/s390.md: Add missing comments with the expanded
19499         mnemonics.
19500         * config/s390/vector.md: Likewise.
19501         * config/s390/vx-builtins.md: Likewise.
19503 2017-02-02  Jakub Jelinek  <jakub@redhat.com>
19505         PR target/79197
19506         * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
19507         (fixuns_trunc<mode>di2): ... this, remove previous expander.  Put all
19508         conditions on a single line.
19510 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19512         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
19513         __S390_VX__ to __VX__.
19515 2017-02-01  Andrew Pinski  <apinski@cavium.com>
19517         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
19518         stmt_info to record_stmt_cost.
19519         (vect_get_known_peeling_cost): Pass stmt_info if known to
19520         record_stmt_cost.
19521         * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
19522         cpu_vector_cost field into
19523         scalar_int_stmt_cost and scalar_fp_stmt_cost.  Split vec_stmt_cost
19524         field into vec_int_stmt_cost and vec_fp_stmt_cost.
19525         * config/aarch64/aarch64.c (generic_vector_cost): Update for the
19526         splitting of scalar_stmt_cost and vec_stmt_cost.
19527         (thunderx_vector_cost): Likewise.
19528         (cortexa57_vector_cost): LIkewise.
19529         (exynosm1_vector_cost): Likewise.
19530         (xgene1_vector_cost): Likewise.
19531         (thunderx2t99_vector_cost): Improve after the splitting of the two
19532         fields.
19533         (aarch64_builtin_vectorization_cost): Update for the splitting of
19534         scalar_stmt_cost and vec_stmt_cost.
19536 2017-02-01  Torvald Riegel  <triegel@redhat.com>
19537             Richard Henderson  <rth@redhat.com>
19539         * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
19540         conditional on existance of a fast atomic load.
19541         * optabs-query.c (can_atomic_load_p): New function.
19542         * optabs-query.h (can_atomic_load_p): Declare it.
19543         * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
19544         no fast atomic load is available for the particular size of access.
19545         (expand_atomic_compare_and_swap): Likewise.
19546         (expand_atomic_load): Likewise.
19547         (expand_atomic_store): Likewise.
19548         (expand_atomic_fetch_op): Likewise.
19549         * testsuite/lib/target-supports.exp
19550         (check_effective_target_sync_int_128): Remove x86 because it provides
19551         no fast atomic load.
19552         (check_effective_target_sync_int_128_runtime): Likewise.
19554 2017-02-01  Richard Biener  <rguenther@suse.de>
19556         * graphite.c: Include tree-vectorizer.h for find_loop_location.
19557         (graphite_transform_loops): Provide opt-info for optimized nests.
19558         * tree-parloop.c (parallelize_loops): Provide opt-info for
19559         parallelized loops.
19561 2017-02-01  Richard Biener  <rguenther@suse.de>
19563         PR middle-end/79315
19564         * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
19565         was not set before.
19567 2017-02-01  Richard Biener  <rguenther@suse.de>
19569         PR tree-optimization/71824
19570         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
19571         Verify the loops are valid in the merged SESE region.
19572         (scop_detection::can_represent_loop_1): Check analyzing the
19573         evolution of the number of iterations in the region succeeds.
19575 2017-01-31  Ian Lance Taylor  <iant@golang.org>
19577         * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
19578         REG_ARGS_SIZE note to 32-bit push insns and call insn.
19580 2017-01-31  David Malcolm  <dmalcolm@redhat.com>
19582         PR preprocessor/79210
19583         * input.c (get_substring_ranges_for_loc): Replace line_width
19584         assertion with error-handling.
19586 2017-01-31  Richard Biener  <rguenther@suse.de>
19588         PR tree-optimization/77318
19589         * graphite-sese-to-poly.c (extract_affine): Fix assert.
19590         (create_pw_aff_from_tree): Take loop parameter.
19591         (add_condition_to_pbb): Pass loop of the condition to
19592         create_pw_aff_from_tree.
19594 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
19596         * config/s390/s390.c (s390_asan_shadow_offset): New function.
19597         (TARGET_ASAN_SHADOW_OFFSET): Redefine.
19599 2017-01-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
19601         PR target/78597
19602         PR target/79038
19603         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
19604         no longer used.
19605         (convert_int_to_float128): Likewise.
19606         * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
19607         (convert_int_to_float128): Likewise.
19608         * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
19609         (UNSPEC_IEEE128_CONVERT): Likewise.
19610         (floatsi<mode>2, FLOAT128 iterator): Bypass calling
19611         rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
19612         Use local variables for IBM extended format.
19613         (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
19614         (fix_trunc<mode>si2_fprs): Likewise.
19615         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
19616         (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
19617         (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
19618         to know that we can now have integers of all sizes in vector
19619         registers.
19620         (fix<uns>_<mode>di2_hw): Likewise.
19621         (float<uns>_<mode>si2_hw): Likewise.
19622         (fix_<mode>si2_hw): Likewise.
19623         (fixuns_<mode>si2_hw): Likewise.
19624         (float<uns>_<mode>di2_hw): Likewise.
19625         (float_<mode>di2_hw): Likewise.
19626         (float_<mode>si2_hw): Likewise.
19627         (floatuns_<mode>di2_hw): Likewise.
19628         (floatuns_<mode>si2_hw): Likewise.
19629         (xscvqp<su>wz_<mode>): Delete, no longer used.
19630         (xscvqp<su>dz_<mode>): Likewise.
19631         (xscv<su>dqp_<mode>): Likewise.
19632         (ieee128_mfvsrd_64bit): Likewise.
19633         (ieee128_mfvsrd_32bit): Likewise.
19634         (ieee128_mfvsrwz): Likewise.
19635         (ieee128_mtvsrw): Likewise.
19636         (ieee128_mtvsrd_64bit): Likewise.
19637         (ieee128_mtvsrd_32bit): Likewise.
19639 2017-01-31  Martin Liska  <mliska@suse.cz>
19641         PR ipa/79285
19642         * ipa-prop.c (ipa_free_all_node_params): Call release method
19643         instead of ~sumbol_summary to not to trigger double times
19644         dtor of hash_map.
19646 2017-01-31  Aldy Hernandez  <aldyh@redhat.com>
19648         PR tree-optimization/71691
19649         * bitmap.h (class auto_bitmap): New.
19650         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
19651         is_maybe_undefined instead of ssa_undefined_value_p.
19653 2017-01-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19655         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
19656         __S390_ARCH_LEVEL__ to __ARCH__.
19658 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
19660         PR tree-optimization/79267
19661         * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
19662         if should_remove_lhs_p is true.
19664 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
19666         PR debug/63238
19667         * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
19668         (add_alignment_attribute): New.
19669         (base_type_die): Add alignment attribute.
19670         (subrange_type_die): Likewise.
19671         (modified_type_die): Likewise.
19672         (gen_array_type_die): Likewise.
19673         (gen_descr_array_type_die: Likewise.
19674         (gen_enumeration_type_die): Likewise.
19675         (gen_subprogram_die): Likewise.
19676         (gen_variable_die): Likewise.
19677         (gen_field_die): Likewise.
19678         (gen_ptr_to_mbr_type_die): Likewise.
19679         (gen_struct_or_union_type_die): Likewise.
19680         (gen_subroutine_type_die): Likewise.
19681         (gen_typedef_die): Likewise.
19682         (base_type_cmp): Compare alignment attribute.
19684 2017-01-30  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
19686         PR target/79170
19687         * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
19688         (setb_unsigned) New pattern for setb with CCUNS.
19689         * config/rs6000/rs6000.c (expand_block_compare): Use a different
19690         subfc./subfe sequence to avoid overflow problems.  Generate a
19691         shorter sequence with cmpld/setb for power9.
19692         * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
19693         for generating subfc. instruction.
19694         (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
19695         now uses this instruction.
19697 2017-01-30  Ian Lance Taylor  <iant@google.com>
19699         PR debug/79289
19700         * dwarf2out.c (gen_type_die_with_usage): When picking a variant
19701         for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
19703 2017-01-30  Martin Sebor  <msebor@redhat.com>
19705         * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
19706         Move constant to the right of a relational operator.
19707         (get_mpfr_format_length, format_character, format_string): Ditto.
19708         (should_warn_p, maybe_warn): Same.
19710         * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
19712 2017-01-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
19714         PR lto/79061
19715         * asan.c (get_translation_unit_decl): Remove function.
19716         (asan_add_global): Force has_dynamic_init to zero in LTO mode.
19718 2017-01-30  Martin Liska  <mliska@suse.cz>
19720         PR gcov-profile/79259
19721         * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
19722         -fprofile-generate.
19724 2017-01-30  Martin Liska  <mliska@suse.cz>
19726         PR bootstrap/78985
19727         * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
19728         Initialize variables with NULL value.
19730 2017-01-30  Richard Earnshaw  <rearnsh@arm.com>
19732         PR target/79260
19733         * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
19734         tm_p_file.
19735         * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
19737 2017-01-30  Richard Biener  <rguenther@suse.de>
19739         PR tree-optimization/79276
19740         * tree-vrp.c (process_assert_insertions): Properly adjust common
19741         when removing a duplicate.
19743         * gcc.dg/torture/pr79276.c: New testcase.
19745 2017-01-30  Richard Biener  <rguenther@suse.de>
19747         PR tree-optimization/79256
19748         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
19749         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
19750         alignment on TYPE.
19751         * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
19753 2017-01-30  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19755         PR target/79240
19756         * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
19757         ("*r<noxa>sbg_<mode>_sll_bitmask")
19758         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
19759         ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
19760         Use contiguous_bitmask_nowrap_operand.
19762 2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19764         PR target/79268
19765         * config/rs6000/altivec.h (vec_xl): Revise #define.
19766         (vec_xst): Likewise.
19768 2017-01-27  Uros Bizjak  <ubizjak@gmail.com>
19770         * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
19772 2017-01-27  Bernd Schmidt  <bschmidt@redhat.com>
19774         PR rtl-optimization/79194
19775         * cprop.c (one_cprop_pass): Move deletion of code after unconditional
19776         traps before call to bypass_conditional_jumps.
19778 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
19780         PR tree-optimization/71374
19781         * lra-constraints.c (check_conflict_input_operands): New.
19782         (match_reload): Use it.
19784 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
19786         PR target/79131
19787         * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
19788         account to calculate conflict_set.
19790 2017-01-27  Bin Cheng  <bin.cheng@arm.com>
19792         PR rtl-optimization/78559
19793         * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
19794         other_insn in combine.
19796 2017-01-27  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
19798         * builtin-types.def: Use unsigned_char_type_node for BT_UINT8.  Use
19799         uint16_type_node for BT_UINT16.
19801 2017-01-27  David Malcolm  <dmalcolm@redhat.com>
19803         * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
19804         "RTL Tests" to menu.
19805         (GIMPLE Tests): New node.
19806         (RTL Tests): New node.
19808 2017-01-27  Richard Biener  <rguenther@suse.de>
19810         PR tree-optimization/79245
19811         * tree-loop-distribution.c (distribute_loop): Apply cost
19812         modeling also to detected patterns.
19814 2017-01-27  Richard Biener  <rguenther@suse.de>
19816         PR tree-optimization/71433
19817         * tree-vrp.c (register_new_assert_for): Revert earlier changes.
19818         (compare_assert_loc): New function.
19819         (process_assert_insertions): Sort and optimize assert locations
19820         to remove duplicates and push down identical assertions on
19821         edges to their destination block.
19823 2017-01-27  Richard Biener  <rguenther@suse.de>
19825         PR tree-optimization/79244
19826         * tree-vrp.c (remove_range_assertions): Forcefully propagate
19827         out SSA names even if abnormal.
19829 2017-01-27  Jakub Jelinek  <jakub@redhat.com>
19831         * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
19832         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
19833         instead of MPFR_RNDN.
19835 2017-01-27  Richard Earnshaw  <rearnsha@arm.com>
19837         PR target/79239
19838         * arm.c (arm_option_override): Don't call build_target_option_node
19839         until after doing all option overrides.
19840         (arm_valid_target_attribute_tree): Likewise.
19842 2017-01-27  Martin Liska  <mliska@suse.cz>
19844         * doc/invoke.texi (-fprofile-arcs): Document profiling support
19845         for {cd}tors and C++ {cd}tors.
19847 2017-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19849         * config/s390/s390.md ("*setmem_long_and")
19850         ("*setmem_long_and_31z"): Use zero_extend instead of and.
19852 2017-01-26  Martin Sebor  <msebor@redhat.com>
19854         * gimple-ssa-sprintf.c (format_floating): Simplify the computation
19855         of precision.
19857 2017-01-26  Martin Sebor  <msebor@redhat.com>
19859         * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
19860         HAVE_DFmode before using XFmode or DFmode.
19861         (parse_directive): Avoid using the z length modifier to avoid
19862         the ISO C++98 does not support the â€˜z’ gnu_printf length modifier.
19864         PR middle-end/78703
19865         * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
19866         to accept adjustment as an array.
19867         (get_int_range): New function.
19868         (struct directive): Make width and prec arrays.
19869         (directive::set_width, directive::set_precision): Call get_int_range.
19870         (format_integer, format_floating): Handle width and precision ranges.
19871         (format_string, parse_directive): Same.
19873 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
19875         PR debug/79129
19876         * dwarf2out.c (generate_skeleton_bottom_up): For children with
19877         comdat_type_p set, just clone them, but keep the children in the
19878         original DIE.
19880         PR debug/78835
19881         * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
19882         which have direct callers with -fvar-tracking-assignments enabled
19883         in the current TU.
19884         (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
19885         inside of type units.
19887 2017-01-26  Martin Sebor  <msebor@redhat.com>
19889         PR middle-end/78703
19890         * gimple-ssa-sprintf.c (struct result_range): Add likely and
19891         unlikely counters.
19892         (struct format_result): Replace number_chars, number_chars_min,
19893         and number_chars_max with a single member of struct result_range.
19894         Remove bounded.
19895         (format_result::operator+=): Adjust.
19896         (struct fmtresult): Remove bounded.  Handle likely and unlikely
19897         counters.
19898         (fmtresult::adjust_for_width_or_precision): New function.
19899         (fmtresult:type_max_digits): New function.
19900         (bytes_remaining): Handle likely and unlikely counters.
19901         (min_bytes_remaining): Remove.
19902         (format_percent): Simplify.
19903         (format_integer, format_floating): Set likely and unlikely counters.
19904         (get_string_length, format_character, format_string): Same.
19905         (format_plain, should_warn_p): New function.
19906         (maybe_warn): Call should_warn_p.  Update diagnostic messages
19907         and handle those for all directives, including plain strings.
19908         (format_directive): Handle likely and unlikely counters.
19909         Remove unnecessary quoting from diagnostics.  Add an informational
19910         note.
19911         (add_bytes): Remove.
19912         (pass_sprintf_length::compute_format_length): Simplify.
19913         (try_substitute_return_value): Handle likely and unlikely counters.
19915 2017-01-26  Carl Love  <cel@us.ibm.com>
19917         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
19918         bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
19920 2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>
19922         PR target/79131
19923         * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
19924         endianess for subregs into account.
19925         * lra-constraints.c (lra_constraints): Do risky transformations
19926         always on the first iteration.
19927         * lra-lives.c (check_pseudos_live_through_calls): Add arg
19928         last_call_used_reg_set.
19929         (process_bb_lives): Define and use last_call_used_reg_set.
19930         * lra.c (lra): Always continue after lra_constraints on the first
19931         iteration.
19933 2017-01-26  Kirill Yukhin  <kirill.yukhin@gmail.com>
19935         * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
19936         constant.
19937         * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
19939 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
19941         * config/i386/avx512fintrin.h (_ktest_mask16_u8,
19942         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
19943         * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
19944         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
19945         * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
19946         __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
19947         OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
19948         * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
19949         (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
19951 2017-01-26  Marek Polacek  <polacek@redhat.com>
19953         PR c/79199
19954         * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
19955         for the third operand.
19957 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
19959         PR middle-end/79236
19960         * omp-low.c (struct omp_context): Add simt_stmt field.
19961         (scan_omp_for): Return omp_context *.
19962         (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
19963         context to the _simt_ SIMD stmt.
19964         (lower_omp_for): For combined SIMD with sibling _simt_
19965         SIMD, make sure to use the same decls in _looptemp_
19966         clauses as in the sibling.
19968 2017-01-26  David Sherwood  <david.sherwood@arm.com>
19970         PR middle-end/79212
19971         * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
19972         all contexts.
19974 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
19976         PR target/70465
19977         * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
19978         emit fld b; fld a; if possible.
19980         * brig-builtins.def: Update copyright years.
19981         * config/arm/arm_acle_builtins.def: Update copyright years.
19983 2017-01-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
19985         PR target/79179
19986         * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
19987         constraint instead of o for the stxsd instruction.
19989 2017-01-25  Carl Love  <cel@us.ibm.com>
19991         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
19992         of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
19994 2017-01-25  Jonathan Wakely  <jwakely@redhat.com>
19996         * doc/invoke.texi (C++ Dialect Options): Fix typo.
19998 2017-01-25  Richard Biener  <rguenther@suse.de>
20000         PR tree-optimization/69264
20001         * target.def (vector_alignment_reachable): Improve documentation.
20002         * doc/tm.texi: Regenerate.
20003         * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
20004         and add a comment.
20005         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
20006         earlier changes with respect to TYPE_USER_ALIGN.
20007         (vector_alignment_reachable_p): Likewise.  Improve dumping.
20009 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20011         PR target/79145
20012         * config/arm/arm.md (xordi3): Force constant operand into a register
20013         for TARGET_IWMMXT.
20015 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20017         * doc/invoke.texi (-fstore-merging): Correct default optimization
20018         levels at which it is enabled.
20019         (-O): Move -fstore-merging from list to...
20020         (-O2): ... Here.
20022 2017-01-25  Richard Biener  <rguenther@suse.de>
20024         PR debug/78363
20025         * omp-expand.c: Include debug.h.
20026         (expand_omp_taskreg): Make sure to generate early debug before
20027         outlining anything from a function.
20028         (expand_omp_target): Likewise.
20029         (grid_expand_target_grid_body): Likewise.
20031 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
20033         PR lto/79061
20034         * asan.c (get_translation_unit_decl): New function.
20035         (asan_add_global): Extract modules file name from globals
20036         TRANSLATION_UNIT_DECL name.
20038 2017-01-24  Eric Botcazou  <ebotcazou@adacore.com>
20040         PR target/77439
20041         * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
20042         for long calls with APCS frame and VFP.
20044 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
20046         * cfg.c (original_copy_tables_initialized_p): New function.
20047         * cfg.h (original_copy_tables_initialized_p): New decl.
20048         * cfgrtl.c (relink_block_chain): Guard the call to
20049         free_original_copy_tables with a call to
20050         original_copy_tables_initialized_p.
20051         * cgraph.h (symtab_node::native_rtl_p): New decl.
20052         * cgraphunit.c (symtab_node::native_rtl_p): New function.
20053         (symtab_node::needed_p): Don't assert for early assembly output
20054         for __RTL functions.
20055         (cgraph_node::finalize_function): Set "force_output" for __RTL
20056         functions.
20057         (cgraph_node::analyze): Bail out early for __RTL functions.
20058         (analyze_functions): Update assertion to support __RTL functions.
20059         (cgraph_node::expand): Bail out early for __RTL functions.
20060         * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
20061         __RTL functions.
20062         * function.h (struct function): Update comment for field
20063         "pass_startwith".
20064         * gimple-expr.c: Include "tree-pass.h".
20065         (gimple_has_body_p): Return false for __RTL functions.
20066         * Makefile.in (OBJS): Add run-rtl-passes.o.
20067         * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
20068         accessor.
20069         (gcc::pass_manager::get_clean_slate): New accessor.
20070         * passes.c: Include "insn-addr.h".
20071         (should_skip_pass_p): Add logging.  Update logic for running
20072         "expand" to be compatible with both __GIMPLE and __RTL.  Guard
20073         property-provider override so it is only done for gimple passes.
20074         Don't skip dfinit.
20075         (skip_pass): New function.
20076         (execute_one_pass): Call skip_pass when skipping passes.
20077         * read-md.c (md_reader::read_char): Support filtering
20078         the input to a subset of line numbers.
20079         (md_reader::md_reader): Initialize fields
20080         m_first_line and m_last_line.
20081         (md_reader::read_file_fragment): New function.
20082         * read-md.h (md_reader::read_file_fragment): New decl.
20083         (md_reader::m_first_line): New field.
20084         (md_reader::m_last_line): New field.
20085         * read-rtl-function.c (function_reader::create_function): Only
20086         create cfun if it doesn't already exist.  Set PROP_rtl on cfun's
20087         curr_properties.  Set DECL_INITIAL to a dummy block.
20088         (read_rtl_function_body_from_file_range): New function.
20089         * read-rtl-function.h (read_rtl_function_body_from_file_range):
20090         New decl.
20091         * run-rtl-passes.c: New file.
20092         * run-rtl-passes.h: New file.
20094 2017-01-24  Jeff Law  <law@redhat.com>
20096         * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
20097         buffer size.
20099 2017-01-24  Bin Cheng  <bin.cheng@arm.com>
20101         PR tree-optimization/79159
20102         * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
20103         (record_nonwrapping_iv): Improve boundary using above function if no
20104         value range information.
20106 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
20107             Martin Jambor  <mjambor@suse.cz>
20109         * brig-builtins.def: New file.
20110         * builtins.def (DEF_HSAIL_BUILTIN): New macro.
20111         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
20112         (DEF_HSAIL_SAT_BUILTIN): Likewise.
20113         (DEF_HSAIL_INTR_BUILTIN): Likewise.
20114         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
20115         * builtin-types.def (BT_INT8): New.
20116         (BT_INT16): Likewise.
20117         (BT_UINT8): Likewise.
20118         (BT_UINT16): Likewise.
20119         (BT_FN_ULONG): Likewise.
20120         (BT_FN_UINT_INT): Likewise.
20121         (BT_FN_UINT_ULONG): Likewise.
20122         (BT_FN_UINT_LONG): Likewise.
20123         (BT_FN_UINT_PTR): Likewise.
20124         (BT_FN_ULONG_PTR): Likewise.
20125         (BT_FN_INT8_FLOAT): Likewise.
20126         (BT_FN_INT16_FLOAT): Likewise.
20127         (BT_FN_UINT32_FLOAT): Likewise.
20128         (BT_FN_UINT16_FLOAT): Likewise.
20129         (BT_FN_UINT8_FLOAT): Likewise.
20130         (BT_FN_UINT64_FLOAT): Likewise.
20131         (BT_FN_UINT16_UINT32): Likewise.
20132         (BT_FN_UINT32_UINT16): Likewise.
20133         (BT_FN_UINT16_UINT16_UINT16): Likewise.
20134         (BT_FN_INT_PTR_INT): Likewise.
20135         (BT_FN_UINT_PTR_UINT): Likewise.
20136         (BT_FN_LONG_PTR_LONG): Likewise.
20137         (BT_FN_ULONG_PTR_ULONG): Likewise.
20138         (BT_FN_VOID_UINT64_UINT64): Likewise.
20139         (BT_FN_UINT8_UINT8_UINT8): Likewise.
20140         (BT_FN_INT8_INT8_INT8): Likewise.
20141         (BT_FN_INT16_INT16_INT16): Likewise.
20142         (BT_FN_INT_INT_INT): Likewise.
20143         (BT_FN_UINT_FLOAT_UINT): Likewise.
20144         (BT_FN_FLOAT_UINT_UINT): Likewise.
20145         (BT_FN_ULONG_UINT_UINT): Likewise.
20146         (BT_FN_ULONG_UINT_PTR): Likewise.
20147         (BT_FN_ULONG_ULONG_ULONG): Likewise.
20148         (BT_FN_UINT_UINT_UINT): Likewise.
20149         (BT_FN_VOID_UINT_PTR): Likewise.
20150         (BT_FN_UINT_UINT_PTR: Likewise.
20151         (BT_FN_UINT32_UINT64_PTR): Likewise.
20152         (BT_FN_INT_INT_UINT_UINT): Likewise.
20153         (BT_FN_UINT_UINT_UINT_UINT): Likewise.
20154         (BT_FN_UINT_UINT_UINT_PTR): Likewise.
20155         (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
20156         (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
20157         (BT_FN_LONG_LONG_UINT_UINT): Likewise.
20158         (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
20159         (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
20160         (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
20161         (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
20162         (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
20163         (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
20164         * doc/frontends.texi: List BRIG FE.
20165         * doc/install.texi (Testing): Add BRIG tesring requirements.
20166         * doc/invoke.texi (Overall Options): Mention BRIG.
20167         * doc/standards.texi (Standards): Doucment BRIG HSA version.
20169 2017-01-24  Richard Biener  <rguenther@suse.de>
20171         PR translation/79208
20172         * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
20174 2017-01-24  Martin Jambor  <mjambor@suse.cz>
20176         PR bootstrap/79198
20177         * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
20178         * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
20179         and known_contexts.
20181 2017-01-24  Aldy Hernandez  <aldyh@redhat.com>
20183         PR middle-end/79123
20184         * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
20185         casts from signed to unsigned really don't have a range.
20187 2017-01-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
20189         * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
20190         GMP_RNDx for compatiblity.
20192 2017-01-24  Martin Liska  <mliska@suse.cz>
20194         PR bootstrap/79132
20195         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
20196         that would prevent us to call alloca with -1 as argument.
20198 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
20200         * dwarf2out.c (output_compilation_unit_header, output_file_names):
20201         Avoid -Wformat-security warning.
20203 2017-01-23  Andrew Pinski  <apinski@cavium.com>
20205         * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
20206         cost table.
20208 2017-01-23  Martin Sebor  <msebor@redhat.com>
20210         PR middle-end/78703
20211         * gimple-ssa-sprintf.c (warn_level): New global.
20212         (format_integer): Use it here and throughout the rest of the file.
20213         Use the same switch to compute sign as base.
20214         (maybe_warn): New function.
20215         (format_directive): Factor out warnings into maybe_warn.
20216         Add debugging output.  Use warn_level.
20217         (add_bytes): Use warn_level.
20218         (pass_sprintf_length::compute_format_length): Add debugging output.
20219         (try_substitute_return_value): Same.
20220         (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
20222         PR middle-end/78703
20223         * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
20224         (struct fmtresult, format_integer, format_floating): Adjust.
20225         (fmtresult::fmtresult): Set max correctly in two argument ctor.
20226         (get_string_length, format_string,format_directive): Same.
20227         (pass_sprintf_length::compute_format_length): Same.
20228         (try_substitute_return_value): Simplify slightly.
20230         PR middle-end/78703
20231         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
20232         (fmtresult::operator+=): Outlined.
20233         (struct fmtresult): Add ctors.
20234         (struct conversion_spec): Rename...
20235         (struct directive): ...to this.  Add and remove data members.
20236         (directive::set_width, directive::set_precision): New functions.
20237         (format_percent): Use fmtresult ctor.
20238         (get_width_and_precision): Remove.
20239         (format_integer): Make naming changes.  Avoid computing width and
20240         precision.
20241         (format_floating): Same.  Adjust indentation.
20242         (format_character, format_none): New functions.
20243         (format_string): Moved character handling to format_character.
20244         (format_directive): Remove arguments, change return type.
20245         (parse_directive): New function.
20246         (pass_sprintf_length::compute_format_length): Move directive
20247         parsing to parse_directive.
20249 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
20251         * tree.h (assign_assembler_name_if_neeeded): Rename to ...
20252         (assign_assembler_name_if_needed): ... this.
20253         * tree.c (assign_assembler_name_if_neeeded): Rename to ...
20254         (assign_assembler_name_if_needed): ... this.
20255         (free_lang_data_in_cgraph): Adjust callers.
20256         * cgraphunit.c (cgraph_node::analyze): Likewise.
20257         * omp-expand.c (expand_omp_taskreg, expand_omp_target):
20258         Likewise.
20260 2017-01-23  Richard Biener  <rguenther@suse.de>
20262         PR tree-optimization/79088
20263         PR tree-optimization/79188
20264         * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
20265         resetting loop bounds after last path deletion.  Reset loop
20266         bounds of the target loop, make code match the comments.
20267         * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
20268         Make sure loops need no fixups.
20270 2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
20272         * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
20273         exponent support with double type for first argument.
20274         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
20275         type returned by __builtin_vec_extract_sig,
20276         __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
20277         functions from "vector int" to "vector unsigned int" or from
20278         "vector long long int" to "vector unsigned long long int".
20279         Changed type returned by __builtin_vec_extract_exp,
20280         __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
20281         functions from "vector int" to "vector unsigned int" or from
20282         "vector long long int" to "vector unsigned long long int".
20283         Changed return type of __builtin_vec_test_data_class,
20284         __builtin_vec_test_data_class_sp, and
20285         __builtin_vec_test_data_class_dp from "vector int" to
20286         "vector bool int" or from "vector long long int" to "vector bool
20287         long long int" and changed second argument type from "unsigned
20288         int" to "int".  Added new overloaded function forms "vector float
20289         __builtin_vec_insert_exp (vector float, vector unsigned int)" and
20290         "vector float __builtin_vec_insert_exp_sp (vector float, vector
20291         unsigned int)" and "vector double __builtin_vec_insert_exp (vector
20292         double, vector unsigned long long int)" and "vector double
20293         __builtin_vec_insert_exp_dp (vector double, vector unsigned long
20294         long int)".  Changed return type of
20295         __builtin_scalar_test_data_class and
20296         __builtin_scalar_test_data_class_sp and
20297         __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
20298         int" and changed second argument from "unsigned int" to "int".
20299         Changed type returned by __builtin_scalar_test_neg,
20300         __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
20301         from "int" to "bool int".  Added new overloaded function form
20302         "double __builtin_scalar_insert_exp (double, unsigned long long int)".
20303         * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
20304         exponent double-precision with floating point first argument.
20305         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
20306         documentation of scalar_test_data_class, scalar_test_neg,
20307         scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
20308         vector_extract_exp, vec_extract_sig, vec_insert_exp, and
20309         vec_test_data_class built-in functions to reflect refinements in
20310         their type signatures.
20312 2017-01-23  Andreas Tobler  <andreast@gcc.gnu.org>
20314         * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
20315         size of buf.
20316         (aarch64_elf_asm_destructor): Likewise.
20318 2017-01-23  Bernd Schmidt  <bschmidt@redhat.com>
20320         PR rtl-optimization/78634
20321         * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
20322         (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
20323         * ifcvt.c (noce_try_cmove): Add missing cost check.
20325         PR rtl-optimization/71724
20326         * combine.c (if_then_else_cond): Look for situations where it is
20327         beneficial to undo the work of one of the recursive calls.
20329 2017-01-23  Bin Cheng  <bin.cheng@arm.com>
20331         PR tree-optimization/70754
20332         * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
20333         (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE.  Insert
20334         combined stmt before it if not NULL.
20335         (combine_chains): Process refs reversely and compute dominance point
20336         for root ref.
20338 2017-01-23  Martin Liska  <mliska@suse.cz>
20340         PR tree-optimization/79196
20341         * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
20342         (fold_strstr_to_strncmp): ... this.  Fold the pattern to strncmp
20343         instead of memcmp.
20344         (strlen_optimize_stmt): Call the renamed function.
20346 2017-01-23  Michael Matz  <matz@suse.de>
20348         PR tree-optimization/78384
20349         * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
20351 2017-01-23  Richard Biener  <rguenther@suse.de>
20353         PR tree-optimization/79186
20354         * tree-vrp.c (register_new_assert_for): Make sure we've seen
20355         both incoming edges before moving an assert.
20357 2017-01-23  Martin Jambor  <mjambor@suse.cz>
20359         * ipa-prop.c (load_from_param_1): Removed.
20360         (load_from_unmodified_param): Bits from load_from_param_1 put back
20361         here.
20362         (load_from_param): Removed.
20363         (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
20364         with stmt.  Reverted back to use of load_from_unmodified_param.
20366 2017-01-23  Martin Jambor  <mjambor@suse.cz>
20368         PR ipa/79108
20369         * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
20370         (ipa_node_params): Annotate with GTY((for_user)).  Make descriptors
20371         field a pointer to garbage collected vector, mark lattices and
20372         ipcp_orig_node with GTY((skip)).
20373         (ipa_get_param_count): Adjust to descriptors being a pointer.
20374         (ipa_get_param): Likewise.
20375         (ipa_get_type): Likewise.
20376         (ipa_get_param_move_cost): Likewise.
20377         (ipa_set_param_used): Likewise.
20378         (ipa_get_controlled_uses): Likewise.
20379         (ipa_set_controlled_uses): Likewise.
20380         (ipa_is_param_used): Likewise.
20381         (ipa_node_params_t): Move into garbage collector.  New methods insert
20382         and remove.
20383         (ipa_node_params_sum): Annotate wth GTY(()).
20384         (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
20385         garbage collected.
20386         (ipa_load_from_parm_agg): Adjust declaration.
20387         * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
20388         * ipa-profile.c (ipa_profile): Likewise.
20389         * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
20390         (ipa_populate_param_decls): Make descriptors parameter garbage
20391         collected.
20392         (ipa_dump_param): Adjust to descriptors being a pointer.
20393         (ipa_alloc_node_params): Likewise.
20394         (ipa_initialize_node_params): Likewise.
20395         (load_from_param_1): Make descriptors parameter garbage collected.
20396         (load_from_unmodified_param): Likewise.
20397         (load_from_param): Likewise.
20398         (ipa_load_from_parm_agg): Likewise.
20399         (ipa_node_params::~ipa_node_params): Removed.
20400         (ipa_free_all_node_params): Remove call to delete operator.
20401         (ipa_node_params_t::insert): New.
20402         (ipa_node_params_t::remove): Likewise.
20403         (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
20404         copy known_csts and known_contexts vectors.
20405         (ipa_read_node_info): Adjust to descriptors being a pointer.
20406         (ipcp_modif_dom_walker): Make m_descriptors field garbage
20407         collected.
20408         (ipcp_transform_function): Make descriptors variable garbage
20409         collected.
20411 2017-01-23  Andrew Senkevich  <andrew.senkevich@intel.com>
20413         * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
20414         * config/i386/avx512dqintrin.h: Ditto.
20415         * config/i386/avx512fintrin.h: Ditto.
20416         * config/i386/i386.c: Handle new builtins.
20417         * config/i386/i386-builtin.def: Add new builtins.
20418         * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
20419         (UNSPEC_KORTEST, UNSPEC_KTEST): New.
20421 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
20422             Martin Liska  <mliska@suse.cz>
20424         * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
20425         * asan.c (asan_expand_poison_ifn): Support stores and use
20426         appropriate ASAN report function.
20427         * internal-fn.c (expand_ASAN_POISON_USE): New function.
20428         * internal-fn.def (ASAN_POISON_USE): Declare.
20429         * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
20430         (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
20431         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
20432         ASAN_POISON calls w/o LHS.
20433         * tree-ssa.c (execute_update_addresses_taken): Create clobber
20434         for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
20435         from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
20436         * gimplify.c (asan_poison_variables): Add attribute
20437         use_after_scope_memory to variables that really needs to live
20438         in memory.
20439         * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
20440         having the attribute.
20442 2017-01-23  Martin Liska  <mliska@suse.cz>
20444         * asan.c (create_asan_shadow_var): New function.
20445         (asan_expand_poison_ifn): Likewise.
20446         * asan.h (asan_expand_poison_ifn): New declaration.
20447         * internal-fn.c (expand_ASAN_POISON): Likewise.
20448         * internal-fn.def (ASAN_POISON): New builtin.
20449         * sanopt.c (pass_sanopt::execute): Expand
20450         asan_expand_poison_ifn.
20451         * tree-inline.c (copy_decl_for_dup_finish): Make function
20452         external.
20453         * tree-inline.h (copy_decl_for_dup_finish): Likewise.
20454         * tree-ssa.c (is_asan_mark_p): New function.
20455         (execute_update_addresses_taken): Rewrite local variables
20456         (identified just by use-after-scope as addressable) into SSA.
20458 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
20460         * doc/install.texi (Specific): opensource.apple.com uses https
20461         now. Remove trailing slash.
20463 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
20465         * README.Portability: Remove note on an Irix compatibility issue.
20467 2017-01-22  Dimitry Andric <dim@FreeBSD.org>
20469         * gcov.c (INCLUDE_ALGORITHM): Define.
20470         (INCLUDE_VECTOR): Define.
20471         No longer include <vector> and <algorithm> directly.
20473 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
20475         * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
20476         to https.
20477         * doc/invoke.texi (Code Gen Options): Ditto.
20479 2017-01-21  Jan Hubicka  <hubicka@ucw.cz>
20481         PR lto/78407
20482         * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
20484 2017-01-21  Bernd Schmidt  <bschmidt@redhat.com>
20486         rtl-optimization/79125
20487         * cprop.c (local_cprop_pass): Handle cases where we make an
20488         unconditional trap.
20490 2017-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
20492         PR target/61729
20493         PR target/77850
20494         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
20495         read from, for big endian.
20497 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
20499         * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
20500         register pauth builtins for LP64 only.
20502 2017-01-20  Marek Polacek  <polacek@redhat.com>
20504         PR c/79152
20505         * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
20506         non-case labels.
20508 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
20510         * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
20511         of safelen status.
20512         * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
20513         * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
20514         * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
20516 2017-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20518         PR target/71270
20519         * config/arm/arm.c (neon_valid_immediate): Reject vector constants
20520         in big-endian mode when they are not a single duplicated value.
20522 2017-01-20  Richard Biener  <rguenther@suse.de>
20524         * BASE-VER: Bump to 7.0.1.
20526 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
20528         * omp-low.c (omplow_simd_context): New struct.  Use it...
20529         (lower_rec_simd_input_clauses): ...here and...
20530         (lower_rec_input_clauses): ...here to hold common data.  Adjust all
20531         references to idx, lane, max_vf, is_simt.
20533 2017-01-20  Graham Markall  <graham.markall@embecosm.com>
20535         * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
20536         mcpu=nps400.
20538 2017-01-20  Martin Jambor  <mjambor@suse.cz>
20540         * hsa.h: Renaed to hsa-common.h.  Adjusted a comment.
20541         * hsa.c: Renaed to hsa-common.c.  Change include of gt-hsa.h to
20542         gt-hsa-common.h.
20543         * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
20544         (GTFILES): Rename hsa.c to hsa-common.c.
20545         * hsa-brig.c: Change include of hsa.h to hsa-common.h.
20546         * hsa-dump.c: Likewise.
20547         * hsa-gen.c: Likewise.
20548         * hsa-regalloc.c: Likewise.
20549         * ipa-hsa.c: Likewise.
20550         * omp-expand.c: Likewise.
20551         * omp-low.c: Likewise.
20552         * toplev.c: Likewise.
20554 2017-01-20  Marek Polacek  <polacek@redhat.com>
20556         PR c/64279
20557         * doc/invoke.texi: Document -Wduplicated-branches.
20558         * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
20559         COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
20560         POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
20561         STATEMENT_LIST, and RETURN_EXPR.  For non-pure non-const functions
20562         return 0 only when not OEP_LEXICOGRAPHIC.
20563         (fold_build_cleanup_point_expr): Use the expression
20564         location when building CLEANUP_POINT_EXPR.
20565         * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
20566         * tree.c (add_expr): Handle error_mark_node.
20568 2017-01-20  Martin Liska  <mliska@suse.cz>
20570         PR lto/69188
20571         * tree-profile.c (init_ic_make_global_vars): Do not call
20572         finalize_decl.
20573         (gimple_init_gcov_profiler): Likewise.
20575 2017-01-20  Martin Liska  <mliska@suse.cz>
20577         PR ipa/71190
20578         * cgraph.h (maybe_create_reference): Remove argument and
20579         update comment.
20580         * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
20581         argument.
20582         * ipa-cp.c (create_specialized_node): Likewise.
20583         * symtab.c (symtab_node::maybe_create_reference): Handle
20584         VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
20586 2017-01-20  Martin Liska  <mliska@suse.cz>
20588         * read-rtl-function.c (function_reader::create_function): Use
20589         build_decl instread of build_decl_stat.
20591 2017-01-20  Andrew Senkevich  <andrew.senkevich@intel.com>
20593         * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
20594         * config/i386/avx512dqintrin.h: Ditto.
20595         * config/i386/avx512fintrin.h: Ditto.
20596         * config/i386/i386-builtin-types.def: Add new types.
20597         * config/i386/i386.c: Handle new types.
20598         * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
20599         (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
20600         (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
20601         (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
20602         (__builtin_ia32_kshiftridi): New.
20603         * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
20605 2017-01-19  Segher Boessenkool  <segher@kernel.crashing.org>
20607         PR target/78875
20608         PR target/79140
20609         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
20610         define to rs6000_init_stack_protect_guard.
20611         (rs6000_init_stack_protect_guard): New function.
20613 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
20614             Yunqiang Su  <yunqiang.su@imgtec.com>
20616         * config.gcc (supported_defaults): Add madd4.
20617         (with_madd4): Add validation.
20618         (all_defaults): Add madd4.
20619         * config/mips/mips.opt (mmadd4): New option.
20620         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
20621         mmadd4.
20622         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
20623         __mips_no_madd4.
20624         (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
20625         (ISA_HAS_FUSED_MADD4): Likewise.
20626         * doc/invoke.texi (-mmadd4): Document the new option.
20627         * doc/install.texi (--with-madd4): Document the new option.
20629 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
20631         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
20632         entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
20633         AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
20634         (aarch64_init_pauth_hint_builtins): New.
20635         (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
20636         (aarch64_expand_builtin): Expand new builtins.
20638 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
20640         * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
20641         * combine-stack-adj.c (no_unhandled_cfa): Handle
20642         REG_CFA_TOGGLE_RA_MANGLE.
20643         * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
20644         * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
20645         info for return address signing.
20646         (aarch64_expand_epilogue): Likewise.
20648 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
20650         * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
20651         * config/aarch64/aarch64-protos.h
20652         (aarch64_return_address_signing_enabled): New declaration.
20653         * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
20654         New function.
20655         (aarch64_expand_prologue): Sign return address before it's pushed onto
20656         stack.
20657         (aarch64_expand_epilogue): Authenticate return address fetched from
20658         stack.
20659         (aarch64_override_options): Sanity check for ILP32 and ISA level.
20660         (aarch64_attributes): New function attributes for "sign-return-address".
20661         * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
20662         UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
20663         ("*do_return"): Generate combined instructions according to key index.
20664         ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
20665         * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
20666         iterators.
20667         (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
20668         * config/aarch64/aarch64.opt (msign-return-address=): New.
20669         * doc/extend.texi (AArch64 Function Attributes): Documents
20670         "sign-return-address=".
20671         * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
20673 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
20675         * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
20676         overall option summary.
20678 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
20680         * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
20681         * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
20682         AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
20683         * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
20685 2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
20687         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
20688         -mpower9-minmax by default for -mcpu=power9.
20689         (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
20690         128-bit floating point.
20692 2017-01-20  Alan Modra  <amodra@gmail.com>
20694         * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
20695         optimizing for size.
20697 2017-01-20  Alan Modra  <amodra@gmail.com>
20699         PR target/79144
20700         * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
20701         for strcmp and strncmp from corresponding builtin decl.
20703 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
20705         * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
20706         instead of i386/rtems-64.h.
20707         * config/i386/rtems-64.h: Remove.
20709 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
20711         PR target/78478
20712         Revert:
20713         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
20715         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
20717 2017-01-19  Tamar Christina  <tamar.christina@arm.com>
20719         * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
20720         Change int to HOST_WIDE_INT.
20721         * config/aarch64/aarch64-protos.h
20722         (aarch64_simd_gen_const_vector_dup): Likewise.
20723         * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
20725 2017-01-19  David Malcolm  <dmalcolm@redhat.com>
20727         * langhooks-def.h (lhd_type_for_size): New decl.
20728         (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
20729         * langhooks.c (lhd_type_for_size): New function, taken from
20730         lto_type_for_size.
20732 2017-01-19  Pat Haugen  <pthaugen@us.ibm.com>
20734         * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
20735         define_bypass for CR latency.
20736         (power9-cracked-alu): Update bypass latency and remove power9-branch.
20737         (power9-alu2): Add define_bypass for CR latency.
20738         (power9-cmp): New.
20739         (power9-mul): Update insn latency.
20740         (power9-mul-compare): Update insn latency, bypass latency and remove
20741         power9-branch.
20743 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20745         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
20746         Delete.
20747         * config/aarch64/aarch64.md
20748         (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
20749         aarch64_nopcrelative_literal_loads.
20750         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
20752 2017-01-19  Chenghua Xu  <paul.hua.gm@gmail.com>
20754         * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
20755         TARGET_LOONGSON_3A.
20756         (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
20758 2017-01-19  Doug Gilmore  <doug.gilmore@imgtec.com>
20760         PR target/78176
20761         * config.gcc (supported_defaults): Add lxc1-sxc1.
20762         (with_lxc1_sxc1): Add validation.
20763         (all_defaults): Add lxc1-sxc1.
20764         * config/mips/mips.opt (mlxc1-sxc1): New option.
20765         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
20766         mlxc1-sxc1.
20767         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
20768         __mips_no_lxc1_sxc1.
20769         (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
20770         * doc/invoke.texi (-mlxc1-sxc1): Document the new option.
20771         * doc/install.texi (--with-lxc1-sxc1): Document the new option.
20773 2017-01-19  Richard Biener  <rguenther@suse.de>
20775         PR tree-optimization/72488
20776         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
20777         sure to restore SSA info.
20778         * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
20780 2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
20782         PR rtl-optimization/79121
20783         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
20784         of the inner type when shifting an extended value.
20786 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
20788         PR lto/78407
20789         * symtab.c (symtab_node::equal_address_to): Fix comparing of
20790         interposable aliases.
20792 2017-01-18  Peter Bergner  <bergner@vnet.ibm.com>
20794         PR target/78516
20795         * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
20796         Use the evmergelohi instruction.
20797         (mov_si<mode>_e500_subreg4_2_le): Likewise.
20798         (mov_sitf_e500_subreg8_2_be): Likewise.
20799         (mov_sitf_e500_subreg12_2_le): Likewise.
20800         (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
20801         (mov_si<mode>_e500_subreg4_2_be): Likewise.
20802         (mov_sitf_e500_subreg8_2_le): Likewise.
20803         (mov_sitf_e500_subreg12_2_be): Likewise.
20805 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20807         * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
20808         attribute from vecsimple to vecperm.
20809         (altivec_vbpermq2): Likewise.
20811 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20813         PR target/79040
20814         * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
20816 2017-01-18  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
20817         * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
20818         * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
20819         strcmp. Fix bug where comparison didn't stop with zero byte. Fix
20820         case where N arg is SIZE_MAX.
20821         * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
20822         (cmpstrsi): Add pattern.
20824 2017-01-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
20826         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20827         __builtin_vec_revb builtins.
20828         * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
20829         built-in functions to support generation of the ISA 3.0 XXBR<x>
20830         vector byte reverse instructions.
20831         (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
20832         (P9V_BUILTIN_XXBRD_V2DI): Likewise.
20833         (P9V_BUILTIN_XXBRD_V2DF): Likewise.
20834         (P9V_BUILTIN_XXBGW_V4SI): Likewise.
20835         (P9V_BUILTIN_XXBGW_V4SF): Likewise.
20836         (P9V_BUILTIN_XXBGH_V8HI): Likewise.
20837         (P9V_BUILTIN_VEC_REVB): Likewise.
20838         * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
20839         generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
20840         (p9_xxbrq_v16qi): Likewise.
20841         (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
20842         (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
20843         (p9_xxbrh_v8hi): Likewise.
20844         * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
20845         * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
20846         vec_revb built-in functions.
20848 2017-01-18  Uros Bizjak  <ubizjak@gmail.com>
20850         PR rtl-optimization/78952
20851         * config/i386/i386.md (any_extract): New code iterator.
20852         (*insvqi_2): Use any_extract for source operand.
20853         (*insvqi_3): Use any_shiftrt for source operand.
20855 2017-01-18  Wilco Dijkstra  <wdijkstr@arm.com>
20857         * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
20858         New function.
20859         (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
20861 2017-01-18  Matthias Klose  <doko@ubuntu.com>
20863         * doc/install.texi: Allow default for --with-target-bdw-gc-include.
20865 2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20867         * config/rs6000/altivec.h (vec_bperm): Change #define.
20868         * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
20869         (altivec_vbpermq2): New define_insn.
20870         (altivec_vbpermd): Likewise.
20871         * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
20872         function interface.
20873         (VBPERMD): Likewise.
20874         (VBPERM): New polymorphic function interface.
20875         * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
20876         Add entries for P9V_BUILTIN_VEC_VBPERM.
20877         * doc/extend.texi: Add interfaces for vec_bperm.
20879 2017-01-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20881         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
20882         first letter of error messages.
20883         (s390_resolve_overloaded_builtin): Likewise.
20884         * config/s390/s390.c (s390_expand_builtin): Likewise.
20885         (s390_invalid_arg_for_unprototyped_fn): Likewise.
20886         (s390_valid_target_attribute_inner_p): Likewise.
20887         * config/s390/s390.md ("tabort"): Likewise.
20889 2017-01-18  Toma Tabacu  <toma.tabacu@imgtec.com>
20891         * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
20892         (ISA_AVOID_DIV_HILO): New macro.
20893         (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
20894         (ISA_HAS_DDIV): Likewise.
20896 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
20898         * doc/invoke.texi (fabi-version): Correct number of occurrences.
20900 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
20902         * doc/invoke.texi (fabi-version): Spelling fix.
20904 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
20906         PR c++/70182
20907         * doc/invoke.texi (fabi-version): Mention mangling fix for
20908         operator names.
20910 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
20912         PR c++/77489
20913         * doc/invoke.texi (fabi-version): Document discriminator mangling.
20915 2017-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
20917         PR target/78875
20918         * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
20919         * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
20920         the new options.
20921         * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
20922         flexible settings.
20923         (stack_protect_test): Ditto.
20924         * config/rs6000/rs6000.opt (mstack-protector-guard=,
20925         mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
20926         options.
20927         * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
20928         Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
20929         -mstack-protector-guard-offset=.
20930         (RS/6000 and PowerPC Options): Ditto.
20932 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
20934         * config/i386/i386.h (MASK_CLASS_P): New define.
20935         * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
20936         there are no registers from different register sets also when
20937         mask registers are used.  Update function comment.
20938         * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
20939         to (*k/*r) and (*k/*km) alternatives.
20941 2017-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
20943         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
20944         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
20945         (EH_RETURN_HANDLER_RTX): New define.
20946         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
20947         Force frame pointer in EH return functions.
20948         (aarch64_expand_epilogue): Add barrier for eh_return.
20949         (aarch64_final_eh_return_addr): Remove.
20950         (aarch64_eh_return_handler_rtx): New function.
20951         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
20952         Remove.
20953         (aarch64_eh_return_handler_rtx): New prototype.
20955 2017-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20957         * config/rs6000/altivec.h (vec_rlmi): New #define.
20958         (vec_vrlnm): Likewise.
20959         (vec_rlnm): Likewise.
20960         * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
20961         (UNSPEC_VRLNM): Likewise.
20962         (VIlong): New mode iterator.
20963         (altivec_vrl<VI_char>mi): New define_insn.
20964         (altivec_vrl<VI_char>nm): Likewise.
20965         * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
20966         function entry.
20967         (VRLDNM): Likewise.
20968         (RLNM): New polymorphic function entry.
20969         (VRLWMI): New monomorphic function entry.
20970         (VRLDMI): Likewise.
20971         (RLMI): New polymorphic function entry.
20972         * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
20973         new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
20974         * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
20975         vec_vrlnm.
20977 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
20979         PR debug/78839
20980         * dwarf2out.c (field_byte_offset): Restore the
20981         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
20982         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
20983         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
20984         of build2 + fold.
20986 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
20988         PR ada/67205
20989         * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
20991 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
20993         PR debug/71669
20994         * dwarf2out.c (add_data_member_location_attribute): For constant
20995         offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
20996         instead of DW_AT_data_member_location, DW_AT_bit_offset and
20997         DW_AT_byte_size attributes.
20999 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
21001         * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
21002         after forcing to constant memory when the code model is medium.
21004 2017-01-17  Julia Koval  <julia.koval@intel.com>
21006         PR target/76731
21007         * config/i386/avx512fintrin.h
21008         (_mm512_i32gather_ps): Change __addr type to void const*.
21009         (_mm512_mask_i32gather_ps): Ditto.
21010         (_mm512_i32gather_pd): Ditto.
21011         (_mm512_mask_i32gather_pd): Ditto.
21012         (_mm512_i64gather_ps): Ditto.
21013         (_mm512_mask_i64gather_ps): Ditto.
21014         (_mm512_i64gather_pd): Ditto.
21015         (_mm512_mask_i64gather_pd): Ditto.
21016         (_mm512_i32gather_epi32): Ditto.
21017         (_mm512_mask_i32gather_epi32): Ditto.
21018         (_mm512_i32gather_epi64): Ditto.
21019         (_mm512_mask_i32gather_epi64): Ditto.
21020         (_mm512_i64gather_epi32): Ditto.
21021         (_mm512_mask_i64gather_epi32): Ditto.
21022         (_mm512_i64gather_epi64): Ditto.
21023         (_mm512_mask_i64gather_epi64): Ditto.
21024         (_mm512_i32scatter_ps): Change __addr type to void*.
21025         (_mm512_mask_i32scatter_ps): Ditto.
21026         (_mm512_i32scatter_pd): Ditto.
21027         (_mm512_mask_i32scatter_pd): Ditto.
21028         (_mm512_i64scatter_ps): Ditto.
21029         (_mm512_mask_i64scatter_ps): Ditto.
21030         (_mm512_i64scatter_pd): Ditto.
21031         (_mm512_mask_i64scatter_pd): Ditto.
21032         (_mm512_i32scatter_epi32): Ditto.
21033         (_mm512_mask_i32scatter_epi32): Ditto.
21034         (_mm512_i32scatter_epi64): Ditto.
21035         (_mm512_mask_i32scatter_epi64): Ditto.
21036         (_mm512_i64scatter_epi32): Ditto.
21037         (_mm512_mask_i64scatter_epi32): Ditto.
21038         (_mm512_i64scatter_epi64): Ditto.
21039         (_mm512_mask_i64scatter_epi64): Ditto.
21040         * config/i386/avx512pfintrin.h
21041         (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
21042         (_mm512_mask_prefetch_i32gather_ps): Ditto.
21043         (_mm512_mask_prefetch_i64gather_pd): Ditto.
21044         (_mm512_mask_prefetch_i64gather_ps): Ditto.
21045         (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
21046         (_mm512_prefetch_i32scatter_ps): Ditto.
21047         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
21048         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
21049         (_mm512_prefetch_i64scatter_pd): Ditto.
21050         (_mm512_prefetch_i64scatter_ps): Ditto.
21051         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
21052         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
21053         * config/i386/avx512vlintrin.h
21054         (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
21055         (_mm_mmask_i32gather_ps): Ditto.
21056         (_mm256_mmask_i32gather_pd): Ditto.
21057         (_mm_mmask_i32gather_pd): Ditto.
21058         (_mm256_mmask_i64gather_ps): Ditto.
21059         (_mm_mmask_i64gather_ps): Ditto.
21060         (_mm256_mmask_i64gather_pd): Ditto.
21061         (_mm_mmask_i64gather_pd): Ditto.
21062         (_mm256_mmask_i32gather_epi32): Ditto.
21063         (_mm_mmask_i32gather_epi32): Ditto.
21064         (_mm256_mmask_i32gather_epi64): Ditto.
21065         (_mm_mmask_i32gather_epi64): Ditto.
21066         (_mm256_mmask_i64gather_epi32): Ditto.
21067         (_mm_mmask_i64gather_epi32): Ditto.
21068         (_mm256_mmask_i64gather_epi64): Ditto.
21069         (_mm_mmask_i64gather_epi64): Ditto.
21070         (_mm256_i32scatter_ps): Change __addr type to void*.
21071         (_mm256_mask_i32scatter_ps): Ditto.
21072         (_mm_i32scatter_ps): Ditto.
21073         (_mm_mask_i32scatter_ps): Ditto.
21074         (_mm256_i32scatter_pd): Ditto.
21075         (_mm256_mask_i32scatter_pd): Ditto.
21076         (_mm_i32scatter_pd): Ditto.
21077         (_mm_mask_i32scatter_pd): Ditto.
21078         (_mm256_i64scatter_ps): Ditto.
21079         (_mm256_mask_i64scatter_ps): Ditto.
21080         (_mm_i64scatter_ps): Ditto.
21081         (_mm_mask_i64scatter_ps): Ditto.
21082         (_mm256_i64scatter_pd): Ditto.
21083         (_mm256_mask_i64scatter_pd): Ditto.
21084         (_mm_i64scatter_pd): Ditto.
21085         (_mm_mask_i64scatter_pd): Ditto.
21086         (_mm256_i32scatter_epi32): Ditto.
21087         (_mm256_mask_i32scatter_epi32): Ditto.
21088         (_mm_i32scatter_epi32): Ditto.
21089         (_mm_mask_i32scatter_epi32): Ditto.
21090         (_mm256_i32scatter_epi64): Ditto.
21091         (_mm256_mask_i32scatter_epi64): Ditto.
21092         (_mm_i32scatter_epi64): Ditto.
21093         (_mm_mask_i32scatter_epi64): Ditto.
21094         (_mm256_i64scatter_epi32): Ditto.
21095         (_mm256_mask_i64scatter_epi32): Ditto.
21096         (_mm_i64scatter_epi32): Ditto.
21097         (_mm_mask_i64scatter_epi32): Ditto.
21098         (_mm256_i64scatter_epi64): Ditto.
21099         (_mm256_mask_i64scatter_epi64): Ditto.
21100         (_mm_i64scatter_epi64): Ditto.
21101         (_mm_mask_i64scatter_epi64): Ditto.
21102         * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
21103         (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
21104         (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
21105         (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
21106         (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
21107         (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
21108         (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
21109         (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
21110         (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
21111         (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
21112         (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
21113         (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
21114         (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
21115         (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
21116         (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
21117         (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
21118         (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
21119         (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
21120         (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
21121         (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
21122         (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
21123         (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
21124         (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
21125         (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
21126         (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
21127         (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
21128         (VOID_QI_V8DI_PCINT_INT_INT): Remove.
21129         (V16SF_V16SF_PCVOID_V16SI_HI_INT,  V8DF_V8DF_PCVOID_V8SI_QI_INT)
21130         (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
21131         (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
21132         (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
21133         (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
21134         (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
21135         (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
21136         (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
21137         (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
21138         (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
21139         (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
21140         (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
21141         (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
21142         (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
21143         (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
21144         (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
21145         (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
21146         (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
21147         (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
21148         (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
21149         (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
21150         (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
21151         (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
21152         (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
21153         (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
21154         (VOID_QI_V8DI_PCVOID_INT_INT): Add.
21155         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
21156         definitions accordingly.
21158 2017-01-17  Kito Cheng  <kito.cheng@gmail.com>
21159             Kuan-Lin Chen  <kuanlinchentw@gmail.com>
21161         PR target/79079
21162         * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
21163         gen_lowpart.
21165 2017-01-17  Vladimir Makarov  <vmakarov@redhat.com>
21167         PR target/79058
21168         * ira-conflicts.c (ira_build_conflicts): Update total conflict
21169         hard regs for inner regno.
21171 2017-01-17  Martin Liska  <mliska@suse.cz>
21173         PR ipa/71207
21174         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
21175         assumption and add comment.
21177 2017-01-17  Nathan Sidwell  <nathan@acm.org>
21179         * ipa-visibility.c (localize_node): New function, broken out of ...
21180         (function_and_variable_visibility): ... here. Call it.
21182 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
21184         PR middle-end/77445
21185         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
21186         correctly set frequency of oudgoing edge.
21187         (duplicate_thread_path): Fix profile updating.
21189 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
21191         PR other/79046
21192         * configure.ac: Add GCC_BASE_VER.
21193         * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
21194         version from BASE-VER file.
21195         (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
21196         (gcc.o): Depend on $(BASEVER).
21197         * common.opt (dumpfullversion): New option.
21198         * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
21199         * doc/invoke.texi: Document -dumpfullversion.
21200         * doc/install.texi: Document --with-gcc-major-version-only.
21201         * configure: Regenerated.
21203 2017-01-17  Richard Biener  <rguenther@suse.de>
21205         PR tree-optimization/71433
21206         * tree-vrp.c (register_new_assert_for): Merge same asserts
21207         on all incoming edges.
21208         (process_assert_insertions_for): Handle insertions at the
21209         beginning of BBs.
21211 2017-01-17  Gerald Pfeifer  <gerald@pfeifer.com>
21213         * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
21214         * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
21216 2017-01-17  Kaz Kojima  <kkojima@gcc.gnu.org>
21218         PR target/78633
21219         * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
21220         RTL sharing.
21222 2017-01-17  Alan Modra  <amodra@gmail.com>
21224         PR target/79066
21225         * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
21226         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
21227         symbolic stack limit when pic.
21229 2017-01-16  Martin Sebor  <msebor@redhat.com>
21231         PR tree-optimization/78608
21232         * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
21234 2017-01-16  Jeff Law  <law@redhat.com>
21236         Revert:
21237         2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
21238         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
21239         for several include directories that may be relative to sysroot.
21240         * config/i386/x-mingw32 (gplus_includedir): Define.
21241         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
21242         (native_system_includedir): Likewise.
21243         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
21244         override if TARGET_SYSTEM_ROOT is defined.
21245         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
21247         PR tree-optimization/79090
21248         PR tree-optimization/33562
21249         PR tree-optimization/61912
21250         PR tree-optimization/77485
21251         * tree-ssa-dse.c (compute_trims): Accept STMT argument.  Dump STMT
21252         and computed trims into the dump file.
21254 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
21256         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
21258 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
21260         PR c/79089
21261         * gimplify.c (gimplify_init_constructor): If want_value and
21262         object == lhs, unshare lhs to avoid invalid tree sharing.  Formatting
21263         fix.
21265         PR target/79080
21266         * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
21267         sequence.  Formatting fixes.
21268         (doloop_optimize): Formatting fixes.
21270         PR driver/49726
21271         * gcc.c (debug_level_greater_than_spec_func): New function.
21272         (static_spec_functions): Add debug-level-gt spec function.
21273         (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
21274         !g0.
21275         * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
21276         * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
21277         * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
21278         gpubnames, ggnu-pubnames, gno-record-gcc-switches,
21279         grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
21280         gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
21282 2017-01-16  Uros Bizjak  <ubizjak@gmail.com>
21284         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
21285         QImode fixups to general and mask registers only.
21287 2017-01-16  Carl Love  <cel@us.ibm.com>
21289         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
21290         for built-in functions
21291         vector signed char vec_nabs (vector signed char)
21292         vector signed short vec_nabs (vector signed short)
21293         vector signed int vec_nabs (vector signed int)
21294         vector signed long long vec_nabs (vector signed long long)
21295         vector float vec_nabs (vector float)
21296         vector double vec_nabs (vector double)
21297         * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
21298         and NABS overload.
21299         * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
21300         * config/rs6000/altivec.h: New define for vec_nabs built-in function.
21301         * doc/extend.texi: Update the documentation file for the new built-in
21302         functions.
21304 2017-01-16  Martin Sebor  <msebor@redhat.com>
21306         * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
21307         message.
21309 2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21311         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
21312         UNSPEC_VSX__XXSPLTD to require special splat handling.
21314 2017-01-16  David Malcolm  <dmalcolm@redhat.com>
21316         PR bootstrap/78616
21317         * system.h: Poison strndup.
21319 2017-01-16  Alan Modra  <amodra@gmail.com>
21321         PR target/79098
21322         * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
21323         use a switch.
21325 2017-01-16  Georg-Johann Lay  <avr@gjlay.de>
21327         * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
21329 2017-01-15  Uros Bizjak  <ubizjak@gmail.com>
21331         * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
21332         call recog here.  Assert that INSN_CODE (insn) is non-negative.
21334 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
21336         PR target/72749
21337         * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
21338         fallthrough.
21339         * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
21340         in the currently scheduled RTL fragment.
21342 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
21344         PR rtl-optimization/78751
21345         * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
21346         give up.
21348 2017-01-14  Jeff Law  <law@redhat.com>
21350         PR tree-optimization/79090
21351         * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
21352         variable length stores.
21353         (compute_trims): Delete dead assignment to *trim_tail.
21354         (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
21355         zero length.
21357 2017-01-14  Bernd Schmidt  <bschmidt@redhat.com>
21359         PR rtl-optimization/78626
21360         PR rtl-optimization/78727
21361         * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
21362         of a block, and split such blocks after everything else is finished.
21364 2017-01-14  Alan Modra  <amodra@gmail.com>
21366         PR target/72749
21367         * combine.c (recog_for_combine_1): Set INSN_CODE before calling
21368         target legitimate_combined_insn.
21369         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
21370         (rs6000_legitimate_combined_insn): New function.
21371         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
21372         all uses.
21373         (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
21374         (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
21375         (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
21377 2017-01-14  Gerald Pfeifer  <gerald@pfeifer.com>
21379         * doc/frontends.texi (G++ and GCC): Remove references to Java.
21381 2017-01-13  Jeff Law  <law@redhat.com>
21383         PR tree-optimization/33562
21384         PR tree-optimization/61912
21385         PR tree-optimization/77485
21386         * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
21387         a statement.
21388         (delete_dead_assignment): Likewise.
21389         (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
21390         statement to delete_dead_call and delete_dead_assignment.
21392 2017-01-13  David Malcolm  <dmalcolm@redhat.com>
21394         PR c/78304
21395         * substring-locations.c (format_warning_va): Strengthen case 1 so
21396         that both endpoints of the substring must be within the format
21397         range for just the substring to be printed.
21399 2017-01-13  Uros Bizjak  <ubizjak@gmail.com>
21401         * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
21402         * config/i386/i386.c (ix86_target_string): Add missing options
21403         to isa_opts and reorder options by implied ISAs.  Rename isa_opts2 to
21404         isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
21405         flags_other and ix86_target_other to flags2_other.  Display unknown
21406         isa2 options.
21407         (ix86_valid_target_attribute_inner_p): Add missing options and
21408         reorder options by implied ISAs, as in ix86_target_string.
21410 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
21412         * hash-table.h (hash_table::too_empty_p): New function.
21413         (hash_table::expand): Use it.
21414         (hash_table::traverse): Likewise.
21415         (hash_table::empty_slot): Use sizeof (value_type) instead of
21416         sizeof (PTR) to convert bytes to elements.  Shrink the table
21417         if the current size is excessive for the current number of
21418         elements.
21420 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
21422         * ira-costs.c (record_reg_classes): Break from the inner loop
21423         early once alt_fail is known to be true.  Update outer loop
21424         handling accordingly.
21426 2017-01-13  Jeff Law  <law@redhat.com>
21428         * tree-ssa-dse.c (decrement_count): New function.
21429         (increment_start_addr, maybe_trim_memstar_call): Likewise.
21430         (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
21431         when we know the partially dead statement is a mem* function.
21433         PR tree-optimization/61912
21434         PR tree-optimization/77485
21435         * tree-ssa-dse.c: Include expr.h.
21436         (maybe_trim_constructor_store): New function.
21437         (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
21439         PR tree-optimization/33562
21440         PR tree-optimization/61912
21441         PR tree-optimization/77485
21442         * doc/invoke.texi: Document new dse-max-object-size param.
21443         * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
21444         * tree-ssa-dse.c: Include params.h.
21445         (dse_store_status): New enum.
21446         (initialize_ao_ref_for_dse): New, partially extracted from
21447         dse_optimize_stmt.
21448         (valid_ao_ref_for_dse, normalize_ref): New.
21449         (setup_live_bytes_from_ref, compute_trims): Likewise.
21450         (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
21451         (maybe_trim_partially_dead_store): Likewise.
21452         (maybe_trim_complex_store): Likewise.
21453         (dse_classify_store): Renamed from dse_possibly_dead_store_p.
21454         Track what bytes live from the original store.  Return tri-state
21455         for dead, partially dead or live.
21456         (dse_dom_walker): Add constructor, destructor and new private members.
21457         (delete_dead_call, delete_dead_assignment): New extracted from
21458         dse_optimize_stmt.
21459         (dse_optimize_stmt): Make a member of dse_dom_walker.
21460         Use initialize_ao_ref_for_dse.
21462         PR tree-optimization/33562
21463         PR tree-optimization/61912
21464         PR tree-optimization/77485
21465         * sbitmap.h (bitmap_count_bits): Prototype.
21466         (bitmap_clear_range, bitmap_set_range): Likewise.
21467         * sbitmap.c (bitmap_clear_range): New function.
21468         (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
21470 2017-01-13  Martin Liska  <mliska@suse.cz>
21472         PR ipa/79043
21473         * function.c (set_cfun): Add new argument force.
21474         * function.h (set_cfun): Likewise.
21475         * ipa-inline-transform.c (inline_call): Use the function when
21476         strict alising from is dropped for function we inline to.
21478 2017-01-13  Richard Biener  <rguenther@suse.de>
21480         * tree-pretty-print.c (dump_generic_node): Fix inverted condition
21481         for dumping GIMPLE INTEGER_CSTs.
21483 2017-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21485         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
21486         to 201112L since C++17.
21488 2017-01-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
21490         PR sanitizer/78887
21491         * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
21492         if -fsanitize=kernel-address is present.
21494 2017-01-13  Richard Biener  <rguenther@suse.de>
21496         * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
21497         as _Literal ( type ) number in case usual suffixes do not
21498         preserve all information.
21500 2017-01-13  Richard Biener  <rguenther@suse.de>
21502         PR tree-optimization/77283
21503         * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
21504         and ssa-iterators.h.
21505         (is_feasible_trace): Implement a cost model based on joiner
21506         PHI node uses.
21508 2017-01-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
21510         PR target/79004
21511         * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
21512         char or short to __float128/_Float128 directly.
21514 2017-01-12  Martin Sebor  <msebor@redhat.com>
21516         to -Wformat-overflow.
21517         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
21518         (min_bytes_remaining): Same.
21519         (get_string_length): Same.
21520         (format_string): Same.
21521         (format_directive): Same.
21522         (add_bytes): Same.
21523         (pass_sprintf_length::handle_gimple_call): Same.
21525 2017-01-12  Jakub Jelinek  <jakub@redhat.com>
21527         * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
21528         info.nowrite calls with no lhs that can't throw.  Return bool
21529         whether gsi_remove has been called or not.
21530         (pass_sprintf_length::handle_gimple_call): Return bool whether
21531         try_substitute_return_value called gsi_remove.  Formatting fix.
21532         (pass_sprintf_length::execute): Don't use gsi_remove if
21533         handle_gimple_call returned true.
21535         PR bootstrap/79069
21536         * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
21537         be removed due to side-effects, don't remove following barrier nor
21538         turn the successor edge into fallthru edge.
21540 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21542         PR target/79044
21543         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
21544         element-reversing loads and stores as not swappable.
21546 2017-01-12  Nathan Sidwell  <nathan@acm.org>
21547             Nicolai Stange  <nicstange@gmail.com>
21549         * combine.c (try_combine): Don't ignore result of overlap checking
21550         loop.  Combine overlap & asm check into single loop.
21552 2017-01-12  Richard Biener  <rguenther@suse.de>
21554         * tree-pretty-print.c (dump_generic_node): Provide -gimple
21555         variant for MEM_REF.  Sanitize INTEGER_CST for -gimple.
21557 2017-01-12  Richard Biener  <rguenther@suse.de>
21559         * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
21560         and TS_TARGET_OPTION directly derive from TS_BASE.
21561         * tree-core.h (tree_optimization_option): Derive from tree_base.
21562         (tree_target_option): Likewise.
21564 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
21566         * config/i386/i386.c (memory_address_length): Increase len
21567         only when rip_relative_addr_p returns false.
21569 2017-01-11  Julia Koval  <julia.koval@intel.com>
21571         * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
21572         (OPTION_MASK_ISA_SGX_SET): New.
21573         (ix86_handle_option): Handle OPT_msgx.
21574         * config.gcc: Added sgxintrin.h.
21575         * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
21576         * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
21577         * config/i386/i386.c (ix86_target_string): Add -msgx.
21578         (PTA_SGX): New.
21579         (ix86_option_override_internal): Handle new options.
21580         (ix86_valid_target_attribute_inner_p): Add sgx.
21581         * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
21582         * config/i386/i386.opt: Add msgx.
21583         * config/i386/sgxintrin.h: New file.
21584         * config/i386/x86intrin.h: Add sgxintrin.h.
21586 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
21588         PR c++/71537
21589         * fold-const.c (maybe_nonzero_address): Return 1 for function
21590         local objects.
21591         (tree_single_nonzero_warnv_p): Don't handle function local objects
21592         here.
21594         PR c++/72813
21595         * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
21596         of c-header.
21598 2017-01-11  David Malcolm  <dmalcolm@redhat.com>
21600         PR driver/78877
21601         * opts.c: Include "spellcheck.h"
21602         (struct string_fragment): New struct.
21603         (struct edit_distance_traits<const string_fragment &>): New
21604         struct.
21605         (get_closest_sanitizer_option): New function.
21606         (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
21608 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
21610         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
21611         by 12.
21612         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
21613         DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
21614         (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
21615         (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
21616         for initial die_offset if dwarf_split_debug_info.
21617         (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
21618         initial next_die_offset if dwo_id is non-NULL.  Don't emit padding
21619         fields.
21620         (output_skeleton_debug_sections): Formatting fix.  Use
21621         DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
21622         DWARF_COMPILE_UNIT_HEADER_SIZE.  Don't emit padding.
21624 2017-01-11  Wilco Dijkstra  <wdijkstr@arm.com>
21626         * config/arm/cortex-a53.md: Add bypasses for
21627         cortex_a53_r2f_cvt.
21628         (cortex_a53_r2f): Only use for transfers.
21629         (cortex_a53_f2r): Likewise.
21630         (cortex_a53_r2f_cvt): Add reservation for conversions.
21631         (cortex_a53_f2r_cvt): Likewise.
21633 2017-01-11  Tamar Christina  <tamar.christina@arm.com>
21635         * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
21636         to all inlined functions, change static to extern.
21638 2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
21640         PR target/78253
21641         * config/arm/arm.c (legitimize_pic_address): Handle reference to
21642         weak symbol.
21643         (arm_assemble_integer): Likewise.
21645 2017-01-11  Richard Earnshaw  <rearnsha@arm.com>
21647         * config.gcc: Use new awk script to check CPU, FPU and architecture
21648         parameters for --with-... options.
21649         * config/arm/parsecpu.awk: New file
21650         * config/arm/arm-cpus.in: New file.
21651         * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
21652         files.
21653         * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
21654         files.
21655         * config/arm/t-arm: Update dependency rules.
21656         * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
21657         of processing .def files.
21658         * config/arm/genopt.sh: Deleted.
21659         * config/arm/gentune.sh: Deleted.
21660         * config/arm/arm-cores.def: Deleted.
21661         * config/arm/arm-arches.def: Deleted.
21662         * config/arm/arm-fpus.def: Deleted.
21663         * config/arm/arm-tune.md: Regenerated.
21664         * config/arm/arm-tables.opt: Regenerated.
21665         * config/arm/arm-cpu.h: New generated file.
21666         * config/arm/arm-cpu-data.h: New generated file.
21667         * config/arm/arm-cpu-cdata.h: New generated file.
21669 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
21671         PR lto/79042
21672         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
21673         bit.
21674         (input_varpool_node): Unpack dynamically_initialized bit.
21676 2017-01-11  Eric Botcazou  <ebotcazou@adacore.com>
21678         PR rtl-optimization/79032
21679         * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
21680         the alignment of the adjusted memory reference against that of MODE,
21681         instead of the alignment of the original memory reference.
21683 2017-01-11  Martin Jambor  <mjambor@suse.cz>
21685         * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
21686         test.
21687         * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
21688         decorated functions.
21690 2017-01-11  Richard Biener  <rguenther@suse.de>
21692         * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
21693         set range/nonnull info for PHI results.  Do not set it on
21694         stmts marked for removal.
21696 2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
21698         * expr.c (store_field): In the bitfield case, fetch the return value
21699         from the registers before applying a single big-endian adjustment.
21700         Always do a final load for a BLKmode value not larger than a word.
21702 2017-01-10  David Malcolm  <dmalcolm@redhat.com>
21704         PR c++/77949
21705         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
21706         that we correctly handle column numbers greater than
21707         LINE_MAP_MAX_COLUMN_NUMBER.
21709 2017-01-10  Martin Sebor  <msebor@redhat.com>
21711         PR middle-end/78245
21712         * gimple-ssa-sprintf.c (get_destination_size): Call
21713         {init,fini}object_sizes.
21714         * tree-object-size.c (addr_object_size): Adjust.
21715         (pass_through_call): Adjust.
21716         (pass_object_sizes::execute): Adjust.
21717         * tree-object-size.h (fini_object_sizes): Declare.
21719 2017-01-10  Martin Sebor  <msebor@redhat.com>
21721         PR tree-optimization/78775
21722         * builtins.c (get_size_range): Move...
21723         * calls.c: ...to here.
21724         (alloc_max_size): Accept zero argument.
21725         (operand_signed_p): Remove.
21726         (maybe_warn_alloc_args_overflow): Call get_size_range.
21727         * calls.h (get_size_range): Declare.
21729 2017-01-10  Joe Seymour  <joe.s@somniumtech.com>
21731         * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
21732         from TI's devices.csv file as of September 2016.
21733         * config/msp430/msp430.c (msp430_mcu_data): Likewise.
21735 2017-01-10  Sandra Loosemore  <sandra@codesourcery.com>
21737         * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
21738         * doc/invoke.texi: Likewise.
21739         * doc/md.texi: Likewise.
21740         * doc/objc.texi: Likewise.
21742 2017-01-10  Joshua Conner  <joshconner@google.com>
21744         * config/arm/fuchsia-elf.h: New file.
21745         * config/fuchsia.h: New file.
21746         * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
21747         (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
21748         targets.
21749         * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
21751 2016-01-10  Richard Biener  <rguenther@suse.de>
21753         PR tree-optimization/79034
21754         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
21755         Propagate out degenerate PHIs in the joiner.
21757 2017-01-10  Martin Liska  <mliska@suse.cz>
21759         * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
21760         (sort_congruence_classes_by_decl_uid): Likewise.
21761         (sort_congruence_class_groups_by_decl_uid): Likewise.
21762         (sem_item_optimizer::merge_classes): Sort class, groups in these
21763         classes and members in the groups by DECL_UID of declarations.
21764         This would make merge operations stable.
21766 2017-01-10  Martin Liska  <mliska@suse.cz>
21768         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
21769         usage of m_classes_vec.
21770         (sem_item_optimizer::~sem_item_optimizer):  Likewise.
21771         (sem_item_optimizer::get_group_by_hash): Likewise.
21772         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
21773         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
21774         (sem_item_optimizer::verify_classes): Likewise.
21775         (sem_item_optimizer::process_cong_reduction): Likewise.
21776         (sem_item_optimizer::dump_cong_classes): Likewise.
21777         (sem_item_optimizer::merge_classes): Likewise.
21778         * ipa-icf.h (congruence_class_hash): Rename from
21779         congruence_class_group_hash.  Remove declaration of m_classes_vec.
21781 2017-01-10  Andrew Senkevich  <andrew.senkevich@intel.com>
21783         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
21784         OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
21785         * config.gcc: Add avx512vpopcntdqintrin.h.
21786         * config/i386/avx512vpopcntdqintrin.h: New.
21787         * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
21788         * config/i386/i386-builtin-types.def: Add new types.
21789         * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
21790         __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
21791         __builtin_ia32_vpopcountq_v8di_mask): New.
21792         * config/i386/i386-c.c (ix86_target_macros_internal): Define
21793         __AVX512VPOPCNTDQ__.
21794         * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
21795         (PTA_AVX512VPOPCNTDQ): Define.
21796         * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
21797         TARGET_AVX512VPOPCNTDQ_P): Define.
21798         * config/i386/i386.opt: Add mavx512vpopcntdq.
21799         * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
21800         * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
21802 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
21804         PR middle-end/77484
21805         * predict.def (PRED_CALL): Set to 67.
21807 2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
21809         * expr.c (store_field): In the bitfield case, if the value comes from
21810         a function call and is of an aggregate type returned in registers, do
21811         not modify the field mode; extract the value in all cases if the mode
21812         is BLKmode and the size is not larger than a word.
21814 2017-01-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
21816         PR target/71017
21817         * config/i386/cpuid.h: Fix undefined behavior.
21819 2017-01-04  Jeff Law  <law@redhat.com>
21821         PR tree-optimization/79007
21822         PR tree-optimization/67955
21823         * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
21824         conservative for pt.null when flag_non_call_exceptions is on.
21826 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
21828         PR translation/79019
21829         PR translation/79020
21830         * params.def (PARAM_INLINE_MIN_SPEEDUP,
21831         PARAM_IPA_CP_SINGLE_CALL_PENALTY,
21832         PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
21833         in descriptions.
21834         * config/avr/avr.opt (maccumulate-args): Likewise.
21835         * config/msp430/msp430.opt (mwarn-mcu): Likewise.
21836         * common.opt (freport-bug): Likewise.
21837         * cif-code.def (CIF_FINAL_ERROR): Likewise.
21838         * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
21839         * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
21840         translatable string.
21841         * config/i386/i386.c (function_value_32): Likewise.
21842         * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
21843         * config/msp430/msp430.c (msp430_option_override, msp430_attr):
21844         Likewise.
21845         * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
21846         * common/config/msp430/msp430-common.c (msp430_handle_option):
21847         Likewise.
21848         * symtab.c (symtab_node::verify_base): Likewise.
21849         * opts.c (set_debug_level): Likewise.
21850         * tree.c (verify_type_variant): Likewise.  Fix typo in comment.
21851         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
21852         missing whitespace to translatable strings.
21853         * config/avr/avr.md (bswapsi2): Fix typo in comment.
21854         * config/sh/superh.h: Likewise.
21855         * config/i386/xopintrin.h: Likewise.
21856         * config/i386/znver1.md: Likewise.
21857         * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
21858         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
21859         * double-int.h (struct double_int): Likewise.
21860         * double-int.c (div_and_round_double): Likewise.
21861         * wide-int.cc: Likewise.
21862         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
21863         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
21864         * cfgcleanup.c (crossjumps_occured): Renamed to ...
21865         (crossjumps_occurred): ... this.
21866         (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
21867         Adjust all uses.
21869         PR tree-optimization/78899
21870         * tree-if-conv.c (version_loop_for_if_conversion): Instead of
21871         returning bool return struct loop *, NULL for failure and the new
21872         loop on success.
21873         (versionable_outer_loop_p): Don't version outer loop if it has
21874         dont_vectorized bit set.
21875         (tree_if_conversion): When versioning outer loop, ensure
21876         tree_if_conversion is performed also on the inner loop of the
21877         non-vectorizable outer loop copy.
21878         * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix.  Fold
21879         LOOP_VECTORIZED in inner loop of the scalar outer loop and
21880         prevent vectorization of it.
21881         (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
21882         the outer loop vectorization of the non-scalar version is attempted
21883         before vectorization of the inner loop in scalar version.  If
21884         outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
21885         vectorization of its inner loop.
21886         * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
21887         has 2 inner loops, rename also on edges from bb whose single pred
21888         is outer_loop->header.  Fix typo in function comment.
21890 2017-01-09  Martin Sebor  <msebor@redhat.com>
21892         PR bootstrap/79033
21893         * asan.c (asan_emit_stack_protection): Increase local buffer size
21894         to avoid snprintf truncation warning.
21896 2017-01-09  Andrew Pinski  <apinski@cavium.com>
21898         * config/aarch64/aarch64-cores.def: Add thunderx2t99.  Change vulcan
21899         to reference thunderx2t99 for the tuning structure
21900         * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
21901         Rename to ...
21902         (thunderx2t99_extra_costs): This.
21903         * config/aarch64/aarch64-tune.md: Regenerate.
21904         * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
21905         (vulcan_addrcost_table): This.
21906         (vulcan_regmove_cost): Rename to ...
21907         (thunderx2t99_regmove_cost): This.
21908         (vulcan_vector_cost): Rename to ...
21909         (thunderx2t99_vector_cost): this.
21910         (vulcan_branch_cost): Rename to ...
21911         (thunderx2t99_branch_cost): This.
21912         (vulcan_tunings): Rename to ...
21913         (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
21914         * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
21916 2017-01-09  Martin Jambor  <mjambor@suse.cz>
21918         PR ipa/78365
21919         PR ipa/78599
21920         * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
21921         * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
21922         (propagate_vr_accross_jump_function): Use the above function for all
21923         value range computations for pass-through jump functions and type
21924         converasion from explicit value range values.
21925         (ipcp_propagate_stage): Do not attempt to deduce types of formal
21926         parameters from TYPE_ARG_TYPES.
21927         * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
21928         (ipa_write_node_info): Stream type of the actual argument.
21929         (ipa_read_node_info): Likewise. Also remove trailing whitespace.
21931 2017-01-09  Martin Liska  <mliska@suse.cz>
21933         PR pch/78970
21934         * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
21935         (lookup_compiler): Do not show error message with have_E.
21937 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
21939         PR tree-optimization/78938
21940         * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
21941         where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
21942         BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
21943         {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR.  Formatting
21944         fixes.
21946 2017-01-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21948         * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
21949         is const0_rtx.
21951 2017-01-09  Richard Biener  <rguenther@suse.de>
21953         PR tree-optimization/78997
21954         * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
21955         name condition properly.
21957 2017-01-09  Richard Biener  <rguenther@suse.de>
21959         PR debug/79000
21960         * dwarf2out.c (is_cxx): New overload with context.
21961         (is_naming_typedef_decl): Use it.
21963 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
21965         * invoke.texi (Option Summary): Correct spacing in option lists
21966         and add line breaks to fix over-long lines.
21968 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
21970         PR middle-end/17660
21972         * extend.texi (Common Variable Attributes): Add xref to GCC
21973         Internals manual to explain mode attribute keywords.
21975 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
21977         PR other/16519
21978         * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
21979         and Preprocessor Options.
21980         (Options for Linking): Document -pthread here....
21981         (RS/6000 and PowerPC Options): ...not here.
21982         (Solaris 2 Options): ...or here.
21983         * doc/cppopts.texi: Document -pthread.
21985 2017-01-08  Martin Sebor  <msebor@redhat.com>
21987         PR middle-end/77708
21988         * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
21989         * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
21990         New member functions.
21991         (format_directive): Used them.
21992         (add_bytes): Same.
21993         (pass_sprintf_length::handle_gimple_call): Same.
21994         * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
21995         to avoid truncation for any argument.
21996         (extract_affine_mul): Same.
21997         * tree.c (get_file_function_name): Same.
21999 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
22001         PR middle-end/77484
22002         * predict.def (PRED_INDIR_CALL): Set to 86.
22004 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
22006         PR preprocessor/54124
22007         * doc/cppopts.texi: Reformat -d subtable to list the full name
22008         of the options.  Add cross-reference to the docs for the general
22009         compiler -d options.
22010         * doc/invoke.texi (Developer Options): Add cross-reference to the
22011         preprocessor-specific -d option documentation.
22013 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
22015         PR preprocessor/13498
22016         * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
22017         redudant material, and reflect new command-line options.
22018         (System Headers): Likewise.
22020 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
22022         * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
22023         -isystem, and -idirafter.  Copy-edit.
22024         * doc/cppopts.texi: Copy-edit.  Remove contradiction about
22025         default for -ftrack-macro-expansion.  Delete obsolete and
22026         badly-formatted implementation details about -fdebug-cpp output.
22027         * doc/cppwarnopts.texi: Copy-edit.
22029 2017-01-07  David Malcolm  <dmalcolm@redhat.com>
22031         PR c++/72803
22032         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
22033         that the transition from a max line width >= 1<<10 to narrower
22034         lines works correctly.
22036 2017-01-07  Alexandre Oliva <aoliva@redhat.com>
22038         * doc/options.texi (PerFunction): New.
22039         * opt-functions.awk (switch_flags): Map both Optimization and
22040         PerFunction to CL_OPTIMIZATION.
22041         * opth-gen.awk: Test for PerFunction flag along with
22042         Optimization.
22043         * optc-save-gen.awk: Likewise.  Introduce var_opt_hash and set
22044         it only when the latter is present.  Skip those that don't in
22045         the hash function generator.
22046         * common.opt (fvar-tracking): Mark as PerFunction instead of
22047         Optimization.
22048         (fvar-tracking-assignments): Likewise.
22049         (fvar-tracking-assignments-toggle): Likewise.
22050         (fvar-tracking-uninit): Likewise.
22052 2017-01-07  Jakub Jelinek  <jakub@redhat.com>
22054         PR translation/79018
22055         * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
22056         the and store.
22058 2017-01-06  Mikael Pettersson  <mikpelinux@gmail.com>
22060         PR target/57583
22061         * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
22062         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
22063         TARGET_LONG_JUMP_TABLE_OFFSETS.
22064         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
22065         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
22066         * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
22067         (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
22068         * config/m68k/m68k.md (tablejump expander): Likewise.
22069         (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
22070         TARGET_LONG_JUMP_TABLE_OFFSETS.
22071         (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
22072         * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
22074 2017-01-06  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
22075             David Holsgrove <david.holsgrove@xilinx.com>
22077         * common/config/microblaze/microblaze-common.c
22078         (TARGET_EXCEPT_UNWIND_INFO): Remove.
22079         * config/microblaze/microblaze-protos.h (microblaze_eh_return):
22080         New prototype.
22081         * config/microblaze/microblaze.c (microblaze_must_save_register)
22082         (microblaze_expand_epilogue, microblaze_return_addr): Handle
22083         calls_eh_return.
22084         (microblaze_eh_return): New function.
22085         * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
22086         (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
22087         (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
22088         * config/microblaze/microblaze.md (eh_return): New pattern.
22090 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
22092         * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
22093         GCC_DIAGNOSTIC_STRINGIFY): Define.
22095         * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
22097 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22099         * config/arm/arm.md (<mcrr>): New.
22100         (<mrrc>): New.
22101         * config/arm/arm.c (arm_arch5te): New.
22102         (arm_option_override): Set arm_arch5te.
22103         (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
22104         and mrrc2.
22105         * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
22106         (arm_mcrr_qualifiers): ... this. New.
22107         (MRRC_QUALIFIERS): Define to...
22108         (arm_mrrc_qualifiers): ... this. New.
22109         * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
22110         __arm_mrrc2): New.
22111         * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
22112         * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
22113         (MRRCI, mrrc, MRRC): New.
22114         * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
22115         VUNSPEC_MRRC2): New.
22117 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22119         * config/arm/arm.md (<mcr>): New.
22120         (<mrc>): New.
22121         * config/arm/arm.c (arm_coproc_builtin_available): Add
22122         support for mcr, mrc, mcr2 and mrc2.
22123         * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
22124         (arm_mcr_qualifiers): ... this. New.
22125         (MRC_QUALIFIERS): Define to ...
22126         (arm_mrc_qualifiers): ... this. New.
22127         (MCR_QUALIFIERS): Define to ...
22128         (arm_mcr_qualifiers): ... this. New.
22129         * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
22130         __arm_mrc2): New.
22131         * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
22132         * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
22133         * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
22134         VUNSPEC_MRC2): New.
22136 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22138         * config/arm/arm.md (*ldc): New.
22139         (*stc): New.
22140         (<ldc>): New.
22141         (<stc>): New.
22142         * config/arm/arm.c (arm_coproc_builtin_available): Add
22143         support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
22144         (arm_coproc_ldc_stc_legitimate_address): New.
22145         * config/arm/arm-builtins.c (arm_type_qualifiers): Add
22146         'qualifier_const_pointer'.
22147         (LDC_QUALIFIERS): Define to...
22148         (arm_ldc_qualifiers): ... this. New.
22149         (STC_QUALIFIERS): Define to...
22150         (arm_stc_qualifiers): ... this. New.
22151         * config/arm/arm-protos.h
22152         (arm_coproc_ldc_stc_legitimate_address): New.
22153         * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
22154         __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
22155         * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
22156         stc2, stcl, stc2l): New.
22157         * config/arm/constraints.md (Uz): New.
22158         * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
22159         * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
22160         VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
22161         VUNSPEC_STC2L): New.
22163 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22165         * config/arm/arm.md (<cdp>): New.
22166         * config/arm/arm.c (neon_const_bounds): Rename this ...
22167         (arm_const_bounds): ... this.
22168         (arm_coproc_builtin_available): New.
22169         * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
22170         (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
22171         (CDP_QUALIFIERS): Define to...
22172         (arm_cdp_qualifiers): ... this. New.
22173         (void_UP): Define.
22174         (arm_expand_builtin_args): Add case for 6 arguments.
22175         * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
22176         (arm_const_bounds): ... this.
22177         (arm_coproc_builtin_available): New.
22178         * config/arm/arm_acle.h (__arm_cdp): New.
22179         (__arm_cdp2): New.
22180         * config/arm/arm_acle_builtins.def (cdp): New.
22181         (cdp2): New.
22182         * config/arm/iterators.md (CDPI,CDP,cdp): New.
22183         * config/arm/neon.md: Rename all 'neon_const_bounds' to
22184         'arm_const_bounds'.
22185         * config/arm/types.md (coproc): New.
22186         * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
22187         * doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
22188         * doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
22189         arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
22191 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22193         * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
22194         (UBINOP_QUALIFIERS): New.
22195         (si_UP): Define.
22196         (acle_builtin_data): New. Change comment.
22197         (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
22198         ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
22199         ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
22200         arm_acle_builtins.def.
22201         (ARM_BUILTIN_ACLE_PATTERN_START): Define.
22202         (arm_init_acle_builtins): New.
22203         (CRC32_BUILTIN): Remove.
22204         (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
22205         crc32cb, crc32ch and crc32cw.
22206         (arm_init_crc32_builtins): Remove.
22207         (arm_init_builtins): Use arm_init_acle_builtins rather
22208         than arm_init_crc32_builtins.
22209         (arm_expand_acle_builtin): New.
22210         (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
22211         * config/arm/arm_acle_builtins.def: New.
22213 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22215         * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
22216         (arm_builtin_datum): ... this.
22217         (arm_init_neon_builtin): Rename to ...
22218         (arm_init_builtin): ... this. Add a new parameters PREFIX
22219         and USE_SIG_IN_NAME.
22220         (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
22221         'arm_init_builtin'. Replace type 'neon_builtin_datum' with
22222         'arm_builtin_datum'.
22223         (arm_init_vfp_builtins): Likewise.
22224         (builtin_arg): Rename enum's replacing 'NEON_ARG' with
22225         'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
22226         (arm_expand_neon_args): Rename to ...
22227         (arm_expand_builtin_args): ... this. Rename builtin_arg
22228         enum values and differentiate between ARG_BUILTIN_MEMORY
22229         and ARG_BUILTIN_NEON_MEMORY.
22230         (arm_expand_neon_builtin_1): Rename to ...
22231         (arm_expand_builtin_1): ... this. Rename builtin_arg enum
22232         values, arm_expand_builtin_args and add bool parameter NEON.
22233         (arm_expand_neon_builtin): Use arm_expand_builtin_1.
22234         (arm_expand_vfp_builtin): Likewise.
22235         (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
22237 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
22239         PR middle-end/77484
22240         * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
22241         * predict.c (tree_estimate_probability_bb): Reverse direction of
22242         polymorphic call predictor.
22244 2017-01-06  David Malcolm  <dmalcolm@redhat.com>
22246         * passes.c (execute_one_pass): Split out pass-skipping logic into...
22247         (determine_pass_name_match): ...this new function and...
22248         (should_skip_pass_p): ...this new function.
22250 2017-01-06  Nathan Sidwell  <nathan@acm.org>
22252         * ipa-visibility.c (function_and_variable_visibility): Reformat
22253         comments and long lines.  Remove extrneous if.
22254         * symtab.c (symtab_node::make_decl_local): Fix code format.
22255         (symtab_node::set_section_for_node): Fix comment typo.
22257 2017-01-06  Martin Liska  <mliska@suse.cz>
22259         PR bootstrap/79003
22260         * lra-constraints.c: Rename invariant to lra_invariant.
22261         * predict.c (set_even_probabilities): Initialize e to NULL.
22263 2017-01-05  Martin Sebor  <msebor@redhat.com>
22265         PR tree-optimization/78910
22266         * gimple-ssa-sprintf.c (tree_digits): Add an argument.
22267         (format_integer): Correct off-by-one error in the handling
22268         of precision with negative numbers in signed conversions..
22270 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
22272         * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
22274 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
22276         PR tree-optimization/71016
22277         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
22278         factor_out_conditional_conversion.  Formatting fix.
22279         (factor_out_conditional_conversion): Add cond_stmt argument.
22280         If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
22281         cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
22282         Formatting fix.
22284 2017-01-05  David Malcolm  <dmalcolm@redhat.com>
22286         * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
22287         read-rtl-function.o, and selftest-rtl.o.
22288         * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
22289         (selftest::aarch64_test_loading_full_dump): New function.
22290         (selftest::aarch64_run_selftests): New function.
22291         (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
22292         selftest::aarch64_run_selftests.
22293         * config/i386/i386.c
22294         (selftest::ix86_test_loading_dump_fragment_1): New function.
22295         (selftest::ix86_test_loading_call_insn): New function.
22296         (selftest::ix86_test_loading_full_dump): New function.
22297         (selftest::ix86_test_loading_unspec): New function.
22298         (selftest::ix86_run_selftests): Call the new functions.
22299         * emit-rtl.c (maybe_set_max_label_num): New function.
22300         * emit-rtl.h (maybe_set_max_label_num): New decl.
22301         * function.c (instantiate_decls): Guard call to
22302         instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
22303         * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
22304         "static".
22305         * gensupport.c (gen_reader::gen_reader): Pass "false"
22306         for new "compact" param of rtx_reader.
22307         * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
22308         rather than an empty string for NULL strings.
22309         * read-md.c: Potentially include config.h rather than bconfig.h.
22310         Wrap include of errors.h with #ifdef GENERATOR_FILE.
22311         (have_error): New global, copied from errors.c.
22312         (md_reader::read_name): Rename to...
22313         (md_reader::read_name_1): ...this, adding "out_loc" param,
22314         and converting "missing name or number" to returning false, rather
22315         than failing.
22316         (md_reader::read_name): Reimplement in terms of read_name_1.
22317         (md_reader::read_name_or_nil): New function.
22318         (md_reader::read_string): Handle "(nil)" by returning NULL.
22319         (md_reader::md_reader): Add new param "compact".
22320         (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
22321         (md_reader::read_file): New method.
22322         * read-md.h (md_reader::md_reader): Add new param "compact".
22323         (md_reader::read_file): New method.
22324         (md_reader::is_compact): New accessor.
22325         (md_reader::read_name): Convert return type from void to file_location.
22326         (md_reader::read_name_or_nil): New decl.
22327         (md_reader::read_name_1): New decl.
22328         (md_reader::m_compact): New field.
22329         (noop_reader::noop_reader): Pass "false" for new "compact" param
22330         of rtx_reader.
22331         (rtx_reader::rtx_reader): Add new "compact" param.
22332         (rtx_reader::read_rtx_operand): Make virtual and convert return
22333         type from void to rtx.
22334         (rtx_reader::read_until): New decl.
22335         (rtx_reader::handle_any_trailing_information): New virtual function.
22336         (rtx_reader::postprocess): New virtual function.
22337         (rtx_reader::finalize_string): New virtual function.
22338         (rtx_reader::m_in_call_function_usage): New field.
22339         (rtx_reader::m_reuse_rtx_by_id): New field.
22340         * read-rtl-function.c: New file.
22341         * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
22342         * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
22343         (selftest::verify_three_block_rtl_cfg): New decl.
22344         * read-rtl-function.h: New file.
22345         * read-rtl.c: Potentially include config.h rather than bconfig.h.
22346         For host, include function.h, memmodel.h, and emit-rtl.h.
22347         (one_time_initialization): New function.
22348         (struct compact_insn_name): New struct.
22349         (compact_insn_names): New array.
22350         (find_code): Handle insn codes in compact dumps.
22351         (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
22352         (bind_subst_iter_and_attr): Likewise.
22353         (add_condition_to_string): Likewise.
22354         (add_condition_to_rtx): Likewise.
22355         (apply_attribute_uses): Likewise.
22356         (add_current_iterators): Likewise.
22357         (apply_iterators): Likewise.
22358         (initialize_iterators): Guard usage of apply_subst_iterator with
22359         #ifdef GENERATOR_FILE.
22360         (read_conditions): Wrap with #ifdef GENERATOR_FILE.
22361         (md_reader::read_mapping): Likewise.
22362         (add_define_attr_for_define_subst): Likewise.
22363         (add_define_subst_attr): Likewise.
22364         (read_subst_mapping): Likewise.
22365         (check_code_iterator): Likewise.
22366         (rtx_reader::read_rtx): Likewise.  Move one-time initialization
22367         logic to...
22368         (one_time_initialization): New function.
22369         (rtx_reader::read_until): New method.
22370         (read_flags): New function.
22371         (parse_reg_note_name): New function.
22372         (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
22373         Handle reuse_rtx ids.
22374         Wrap iterator lookup within #ifdef GENERATOR_FILE.
22375         Add parsing support for RTL dumps, mirroring the special-cases in
22376         print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
22377         values, and calling handle_any_trailing_information.
22378         (rtx_reader::read_rtx_operand): Convert return type from void
22379         to rtx, returning return_rtx.  Handle case 'e'.  Call
22380         finalize_string on XSTR and XTMPL fields.
22381         (rtx_reader::read_nested_rtx):  Handle dumps in which trailing
22382          "(nil)" values were omitted.  Call the postprocess vfunc on the
22383         return_rtx.
22384         (rtx_reader::rtx_reader): Add new "compact" param and pass to base
22385         class ctor.  Initialize m_in_call_function_usage.  Call
22386         one_time_initialization.
22387         * rtl-tests.c (selftest::test_uncond_jump): Call
22388         set_new_first_and_last_insn.
22389         * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
22390         * selftest-rtl.c: New file.
22391         * selftest-rtl.h (class selftest::rtl_dump_test): New class.
22392         (selftest::get_insn_by_uid): New decl.
22393         * selftest-run-tests.c (selftest::run_tests): Call
22394         read_rtl_function_c_tests.
22395         * selftest.h  (selftest::read_rtl_function_c_tests): New decl.
22396         * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
22397         dumps.
22399 2017-01-05  Uros Bizjak  <ubizjak@gmail.com>
22401         * config/i386/i386.md (*testqi_ext_3): No need to handle memory
22402         operands in a special way.  Assert that pos+len <= mode precision.
22404 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
22406         * common.opt (fvect-cost-model): Remove RejectNegative flag, use
22407         3 argument Alias with unlimited for the negative form.
22408         (fno-vect-cost-model): Removed.
22410 2017-01-05  Martin Liska  <mliska@suse.cz>
22412         * hsa-gen.c (gen_hsa_divmod): New function.
22413         (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
22415 2017-01-05  Martin Liska  <mliska@suse.cz>
22417         PR pch/78970
22418         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
22419         header.
22421 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22423         * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
22424         small constant length operands.
22426 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22428         * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
22429         between loop iterations.
22431 2017-01-05  Martin Liska  <mliska@suse.cz>
22433         PR sanitizer/78815
22434         * gimplify.c (gimplify_decl_expr): Compare to
22435         asan_poisoned_variables instread of checking flags.
22436         (gimplify_target_expr): Likewise.
22437         (gimplify_expr): Likewise.
22438         (gimplify_function_tree): Conditionally initialize
22439         asan_poisoned_variables.
22441 2017-01-04  Jeff Law  <law@redhat.com>
22443         PR tree-optimizatin/78812
22444         * rtl.h (contains_mem_rtx_p): Prototype.
22445         * ifcvt.c (containts_mem_rtx_p): Move from here to...
22446         * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
22447         * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
22448         and prune MEMs that are not at the toplevel of a SET_SRC rtx.  Look
22449         through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
22451 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
22453         * input.c (assert_char_at_range): Default-initialize actual_range.
22455 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
22457         * df-scan.c (df_ref_create_structure): Make regno unsigned,
22458         to match the caller.
22460 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
22462         * cfgexpand.c (expand_gimple_basic_block): Disregard debug
22463         insns after final jump in test to emit dummy move.
22465 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
22467         * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
22468         * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
22470 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
22472         * multiple_target.c (create_dispatcher_calls): Init e_next.
22473         * tree-ssa-loop-split.c (split_loop): Init border.
22474         * tree-vect-loop.c (vect_determine_vectorization_factor): Init
22475         scalar_type.
22477 2017-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
22479         PR target/71977
22480         PR target/70568
22481         PR target/78823
22482         * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
22483         (altivec_register_operand): Do not return true if the operand
22484         contains a SUBREG mixing SImode and SFmode.
22485         (vsx_register_operand): Likewise.
22486         (vsx_reg_sfsubreg_ok): New predicate.
22487         (vfloat_operand): Do not return true if the operand contains a
22488         SUBREG mixing SImode and SFmode.
22489         (vint_operand): Likewise.
22490         (vlogical_operand): Likewise.
22491         (gpc_reg_operand): Likewise.
22492         (int_reg_operand): Likewise.
22493         * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
22494         * config/rs6000/rs6000.c (valid_sf_si_move): New function to
22495         determine if a MOVSI or MOVSF operation contains SUBREGs that mix
22496         SImode and SFmode.
22497         (rs6000_emit_move_si_sf_subreg): New helper function.
22498         (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
22499         fixup SUBREGs involving SImode and SFmode.
22500         * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
22501         numbers for the new peephole2 optimization.
22502         (peephole2 for SFmode unions): New peephole2 to optimize cases in
22503         the GLIBC math library that do AND/IOR/XOR operations on single
22504         precision floating point.
22505         * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
22506         target macros to say whether we need to avoid SUBREGs mixing
22507         SImode and SFmode.
22508         (TARGET_ALLOW_SF_SUBREG): Likewise.
22509         * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
22510         (UNSPEC_SI_FROM_SF): Likewise.
22511         (iorxor): Change spacing.
22512         (and_ior_xor): New iterator for AND, IOR, and XOR.
22513         (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
22514         (movdi_from_sf_zero_ext): Likewise.
22515         (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
22516         instead of gpc_reg_operand.  Add SImode/SFmode SUBREG support.
22517         (movsf_from_si): New insn for SImode/SFmode SUBREG support.
22518         (fma<mode>4): Use gpc_reg_operand instead of register_operand.
22519         (fms<mode>4): Likewise.
22520         (fnma<mode>4): Likewise.
22521         (fnms<mode>4): Likewise.
22522         (nfma<mode>4): Likewise.
22523         (nfms<mode>4): Likewise.
22525 2017-01-04  Marek Polacek  <polacek@redhat.com>
22527         PR c++/64767
22528         * doc/invoke.texi: Document -Wpointer-compare.
22530 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
22532         * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
22533         RejectNegative.
22535         * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
22536         descriptions for -gdwarf-5 and emit them as uleb128 instead of
22537         2-byte data.
22539 2017-01-04  Kelvin Nilsen  <kelvin@gcc.gnu.org>
22541         PR target/78056
22542         * doc/sourcebuild.texi (PowerPC-specific attributes): Add
22543         documentation of the powerpc_popcntb_ok attribute.
22544         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
22545         code to issue warning messages if a requested CPU configuration is
22546         not supported by the binary (assembler and loader) toolchain.
22547         (spe_init_builtins): Add two assertions to prevent ICE if attempt is
22548         made to define a built-in function that has been disabled.
22549         (paired_init_builtins): Add assertion to prevent ICE if attempt is
22550         made to define a built-in function that has been disabled.
22551         (altivec_init_builtins): Add comment explaining why definition
22552         of the DST built-in functions is not preceded by an assertion
22553         check.  Add assertions to prevent ICE if attempts are made to
22554         define an altivec predicate or an abs* built-in function that has
22555         been disabled.
22556         (htm_init_builtins): Add comment explaining why definition of the
22557         htm built-in functions is not preceded by an assertion check.
22559 2017-01-04  Jeff Law  <law@redhat.com>
22561         PR tree-optimizatin/67955
22562         * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
22563         Allow any SSA_VAR_P as the base objects.  Use integer_zerop.  Verify
22564         the points-to solution does not include pt_null.  Use DECL_PT_UID
22565         unconditionally.
22567 2017-01-04  Uros Bizjak  <ubizjak@gmail.com>
22569         * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
22570         Use gen_int_mode instead of gen_lopwart for const_int operands.
22572 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
22574         PR tree-optimization/71563
22575         * match.pd: Simplify X << Y into X if Y is known to be 0 or
22576         out of range value - has low bits known to be zero.
22578 2017-01-04  Alan Modra  <amodra@gmail.com>
22580         * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
22581         * configure: Regenerate.
22582         * config.in: Regenerate.
22584 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
22586         PR bootstrap/77569
22587         * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
22588         a substring of the message, but strcmp with the whole message.  Ifdef
22589         ENABLE_NLS, translate the message first using dgettext.
22591 2017-01-03  Jeff Law  <law@redhat.com>
22593         PR tree-optimizatin/78856
22594         * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
22595         (mark_threaded_blocks): Remove code to truncate thread paths that
22596         cross multiple loop headers.  Instead invalidate the cached loop
22597         iteration information and handle case of a thread path walking
22598         into an irreducible region.
22600 2017-01-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
22602         PR target/78900
22603         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
22604         assertions.  Add support for doing the signbit if the IEEE 128-bit
22605         floating point value is in a GPR.
22606         * config/rs6000/rs6000.md (Fsignbit): Delete.
22607         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
22608         Update the length attribute if the value is in a GPR.
22609         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
22610         the sign or zero extension instruction, since the value is always 0/1.
22611         (signbit<mode>2_dm2): Delete using <Fsignbit>.
22613         PR target/78953
22614         * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
22615         extracting SImode to a GPR register so that we can generate a
22616         store, limit the vector to be in a traditional Altivec register
22617         for the vextuwrx instruction.
22619 2017-01-03  Ian Lance Taylor  <iant@google.com>
22621         * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
22623 2017-01-03  Martin Sebor  <msebor@redhat.com>
22625         PR tree-optimization/78696
22626         * gimple-ssa-sprintf.c (format_floating): Correct handling of
22627         precision.  Use MPFR for %f for greater fidelity.  Correct handling
22628         of %g.
22629         (pass_sprintf_length::compute_format_length): Set width and precision
22630         specified by asrerisk to void_node for vararg functions.
22631         (try_substitute_return_value): Adjust dump output.
22633 2017-01-03  David Edelsohn  <dje.gcc@gmail.com>
22635         * doc/invoke.texi (RS6000 options): LRA is enabled by default.
22637 2017-01-03  Eric Botcazou  <ebotcazou@adacore.com>
22639         * doc/invoke.texi (SPARC options): Document -mlra as the default.
22640         * config/sparc/sparc.c (sparc_option_override): Force LRA unless
22641         -mlra/-mno-lra was passed to the compiler.
22643 2017-01-03  James Cowgill  <James.Cowgill@imgtec.com>
22645         PR rtl-optimization/65618
22646         * emit-rtl.c (try_split): Move initialization of "before" and
22647         "after" to just before the call to emit_insn_after_setloc.
22649 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
22651         * doc/md.texi (Standard Names): Remove reference to Java frontend.
22653 2017-01-03  Pierre-Marie de Rodat  <derodat@adacore.com>
22655         * dwarf2out.c (gen_enumeration_type_die): When
22656         -gno-strict-dwarf, add a DW_AT_encoding attribute.
22658 2017-01-03  Jakub Jelinek  <jakub@redhat.com>
22660         PR tree-optimization/78965
22661         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
22662         Change first argument from const call_info & to call_info &.  For %n
22663         set info.nowrite to false.
22665         PR middle-end/78901
22666         * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
22667         possibly throwing calls.
22669         * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
22670         and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
22671         and fns handling, rather than in a separate case SSA_NAME.
22673 2017-01-02  Jeff Law  <law@redhat.com>
22675         * config/darwin-driver.c (darwin_driver_init): Const-correctness
22676         fixes for first_period and second_period variables.
22678 2017-01-02  Uros Bizjak  <ubizjak@gmail.com>
22680         PR target/78967
22681         * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
22682         (*insvqi_1): New insn pattern.
22683         (*insvqi_1_mem_rex64): Ditto.
22684         (*insvqi_2): Ditto.
22685         (*insvqi_3): Rename from *insvqi.
22687         (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
22689 2017-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
22691         * doc/cfg.texi (Edges): Remove reference to Java.
22692         (Maintaining the CFG): Ditto.
22694 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
22696         PR middle-end/77674
22697         * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
22698         transparent aliases.
22700 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
22702         PR middle-end/77484
22703         * predict.def (PRED_CALL): Update hitrate.
22704         (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
22705         * predict.c (tree_estimate_probability_bb): Split CALL predictor
22706         into direct/indirect/polymorphic variants.
22708 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
22710         Update copyright years.
22712         * gcc.c (process_command): Update copyright notice dates.
22713         * gcov-dump.c (print_version): Ditto.
22714         * gcov.c (print_version): Ditto.
22715         * gcov-tool.c (print_version): Ditto.
22716         * gengtype.c (create_file): Ditto.
22717         * doc/cpp.texi: Bump @copying's copyright year.
22718         * doc/cppinternals.texi: Ditto.
22719         * doc/gcc.texi: Ditto.
22720         * doc/gccint.texi: Ditto.
22721         * doc/gcov.texi: Ditto.
22722         * doc/install.texi: Ditto.
22723         * doc/invoke.texi: Ditto.
22725 Copyright (C) 2017 Free Software Foundation, Inc.
22727 Copying and distribution of this file, with or without modification,
22728 are permitted in any medium without royalty provided the copyright
22729 notice and this notice are preserved.