[48/77] Make subroutines of num_sign_bit_copies operate on scalar_int_mode
[official-gcc.git] / gcc / ChangeLog
blobca176fc5e393c1c4afe44d8f29a9b8663d09158a
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         * rtlanal.c (num_sign_bit_copies): Handle VOIDmode here rather
6         than in subroutines.  Return 1 for non-integer modes.
7         (cached_num_sign_bit_copies): Change the type of the mode parameter
8         to scalar_int_mode.
9         (num_sign_bit_copies1): Likewise.  Remove early exit for other mode
10         classes.  Handle CONST_INT_P first and then check whether X also
11         has a scalar integer mode.  Check the same thing for inner registers
12         of a SUBREG and for values that are being extended or truncated.
14 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
15             Alan Hayward  <alan.hayward@arm.com>
16             David Sherwood  <david.sherwood@arm.com>
18         * rtlanal.c (nonzero_bits): Handle VOIDmode here rather than
19         in subroutines.  Return the mode mask for non-integer modes.
20         (cached_nonzero_bits): Change the type of the mode parameter
21         to scalar_int_mode.
22         (nonzero_bits1): Likewise.  Remove early exit for other mode
23         classes.  Handle CONST_INT_P first and then check whether X
24         also has a scalar integer mode.
26 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
27             Alan Hayward  <alan.hayward@arm.com>
28             David Sherwood  <david.sherwood@arm.com>
30         * combine.c (extract_left_shift): Add a mode argument and update
31         recursive calls.
32         (make_compound_operation_int): Change the type of the mode parameter
33         to scalar_int_mode and update the call to extract_left_shift.
35 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
36             Alan Hayward  <alan.hayward@arm.com>
37             David Sherwood  <david.sherwood@arm.com>
39         * combine.c (simplify_and_const_int): Change the type of the mode
40         parameter to scalar_int_mode.
41         (simplify_and_const_int_1): Likewise.  Update recursive call.
43 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
44             Alan Hayward  <alan.hayward@arm.com>
45             David Sherwood  <david.sherwood@arm.com>
47         * combine.c (simplify_compare_const): Check that the mode is a
48         scalar_int_mode (rather than VOIDmode) before testing its
49         precision.
50         (simplify_comparison): Move COMPARISON_P handling out of the
51         loop and restrict the latter part of the loop to scalar_int_modes.
52         Check is_a <scalar_int_mode> before calling HWI_COMPUTABLE_MODE_P
53         and when considering SUBREG_REGs.  Use is_int_mode instead of
54         checking GET_MODE_CLASS against MODE_INT.
56 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
57             Alan Hayward  <alan.hayward@arm.com>
58             David Sherwood  <david.sherwood@arm.com>
60         * combine.c (try_widen_shift_mode): Move check for equal modes to...
61         (simplify_shift_const_1): ...here.  Use scalar_int_mode for
62         shift_unit_mode and for modes involved in scalar shifts.
64 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
65             Alan Hayward  <alan.hayward@arm.com>
66             David Sherwood  <david.sherwood@arm.com>
68         * combine.c (force_int_to_mode): New function, split out from...
69         (force_to_mode): ...here.  Keep xmode up-to-date and use it
70         instead of GET_MODE (x).
72 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
73             Alan Hayward  <alan.hayward@arm.com>
74             David Sherwood  <david.sherwood@arm.com>
76         * optabs-query.h (extraction_insn::struct_mode): Change type to
77         opt_scalar_int_mode and update comment.
78         (extraction_insn::field_mode): Change type to scalar_int_mode.
79         (extraction_insn::pos_mode): Likewise.
80         * combine.c (make_extraction): Update accordingly.
81         * optabs-query.c (get_traditional_extraction_insn): Likewise.
82         (get_optab_extraction_insn): Likewise.
83         * recog.c (simplify_while_replacing): Likewise.
84         * expmed.c (narrow_bit_field_mem): Change the type of the mode
85         parameter to opt_scalar_int_mode.
87 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
88             Alan Hayward  <alan.hayward@arm.com>
89             David Sherwood  <david.sherwood@arm.com>
91         * machmode.h (bit_field_mode_iterator::next_mode): Take a pointer
92         to a scalar_int_mode instead of a machine_mode.
93         (bit_field_mode_iterator::m_mode): Change type to opt_scalar_int_mode.
94         (get_best_mode): Return a boolean and use a pointer argument to store
95         the selected mode.  Replace the limit mode parameter with a bit limit.
96         * expmed.c (adjust_bit_field_mem_for_reg): Use scalar_int_mode
97         for the values returned by bit_field_mode_iterator::next_mode.
98         (store_bit_field): Update call to get_best_mode.
99         (store_fixed_bit_field): Likewise.
100         (extract_fixed_bit_field): Likewise.
101         * expr.c (optimize_bitfield_assignment_op): Likewise.
102         * fold-const.c (optimize_bit_field_compare): Likewise.
103         (fold_truth_andor_1): Likewise.
104         * stor-layout.c (bit_field_mode_iterator::next_mode): As above.
105         Update for new type of m_mode.
106         (get_best_mode): As above.
108 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
109             Alan Hayward  <alan.hayward@arm.com>
110             David Sherwood  <david.sherwood@arm.com>
112         * expmed.c (strict_volatile_bitfield_p): Change the type of fieldmode
113         to scalar_int_mode.  Remove check for SCALAR_INT_MODE_P.
114         (store_bit_field): Check is_a <scalar_int_mode> before calling
115         strict_volatile_bitfield_p.
116         (extract_bit_field): Likewise.
118 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
119             Alan Hayward  <alan.hayward@arm.com>
120             David Sherwood  <david.sherwood@arm.com>
122         * target.def (cstore_mode): Return a scalar_int_mode.
123         * doc/tm.texi: Regenerate.
124         * config/sparc/sparc.c (sparc_cstore_mode): Return a scalar_int_mode.
125         * targhooks.h (default_cstore_mode): Likewise.
126         * targhooks.c (default_cstore_mode): Likewise, using a forced
127         conversion.
128         * expmed.c (emit_cstore): Expect the target of the cstore to be
129         a scalar_int_mode.
131 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
132             Alan Hayward  <alan.hayward@arm.com>
133             David Sherwood  <david.sherwood@arm.com>
135         * tree.h (SCALAR_INT_TYPE_MODE): New macro.
136         * builtins.c (expand_builtin_signbit): Use it.
137         * cfgexpand.c (expand_debug_expr): Likewise.
138         * dojump.c (do_jump): Likewise.
139         (do_compare_and_jump): Likewise.
140         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Likewise.
141         * expmed.c (make_tree): Likewise.
142         * expr.c (expand_expr_real_2): Likewise.
143         (expand_expr_real_1): Likewise.
144         (try_casesi): Likewise.
145         * fold-const-call.c (fold_const_call_ss): Likewise.
146         * fold-const.c (unextend): Likewise.
147         (extract_muldiv_1): Likewise.
148         (fold_single_bit_test): Likewise.
149         (native_encode_int): Likewise.
150         (native_encode_string): Likewise.
151         (native_interpret_int): Likewise.
152         * gimple-fold.c (gimple_fold_builtin_memset): Likewise.
153         * internal-fn.c (expand_addsub_overflow): Likewise.
154         (expand_neg_overflow): Likewise.
155         (expand_mul_overflow): Likewise.
156         (expand_arith_overflow): Likewise.
157         * match.pd: Likewise.
158         * stor-layout.c (layout_type): Likewise.
159         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
160         * tree-ssa-math-opts.c (convert_mult_to_widen): Likewise.
161         * tree-ssanames.c (get_range_info): Likewise.
162         * tree-switch-conversion.c (array_value_type) Likewise.
163         * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
164         (vect_recog_divmod_pattern): Likewise.
165         (vect_recog_mixed_size_cond_pattern): Likewise.
166         * tree-vrp.c (extract_range_basic): Likewise.
167         (simplify_float_conversion_using_ranges): Likewise.
168         * tree.c (int_fits_type_p): Likewise.
169         * ubsan.c (instrument_bool_enum_load): Likewise.
170         * varasm.c (mergeable_string_section): Likewise.
171         (narrowing_initializer_constant_valid_p): Likewise.
172         (output_constant): Likewise.
174 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
175             Alan Hayward  <alan.hayward@arm.com>
176             David Sherwood  <david.sherwood@arm.com>
178         * machmode.h (NARROWEST_INT_MODE): New macro.
179         * expr.c (alignment_for_piecewise_move): Use it instead of
180         GET_CLASS_NARROWEST_MODE (MODE_INT).
181         (push_block): Likewise.
182         * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
183         Likewise.
184         * tree-vrp.c (simplify_float_conversion_using_ranges): Likewise.
186 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
187             Alan Hayward  <alan.hayward@arm.com>
188             David Sherwood  <david.sherwood@arm.com>
190         * expr.c (expand_expr_real_2): Use scalar_int_mode for the
191         double-word mode.
192         * lower-subreg.c (resolve_shift_zext): Use is_a <scalar_int_mode>.
193         * optabs.c (expand_unop): Likewise.
195 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
196             Alan Hayward  <alan.hayward@arm.com>
197             David Sherwood  <david.sherwood@arm.com>
199         * dwarf2out.c (typed_binop): Change mode parameter to scalar_int_mode.
200         (clz_loc_descriptor): Likewise.  Remove SCALAR_INT_MODE_P check.
201         (popcount_loc_descriptor): Likewise.
202         (bswap_loc_descriptor): Likewise.
203         (rotate_loc_descriptor): Likewise.
204         (mem_loc_descriptor): Add is_a <scalar_int_mode> checks before
205         calling the functions above.
207 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
208             Alan Hayward  <alan.hayward@arm.com>
209             David Sherwood  <david.sherwood@arm.com>
211         * combine.c (sign_extend_short_imm): Add is_a <scalar_int_mode>
212         checks.
213         (try_combine): Likewise.
214         (simplify_if_then_else): Likewise.
215         * cse.c (cse_insn): Likewise.
216         * dwarf2out.c (mem_loc_descriptor): Likewise.
217         * emit-rtl.c (gen_lowpart_common): Likewise.
218         * simplify-rtx.c (simplify_truncation): Likewise.
219         (simplify_binary_operation_1): Likewise.
220         (simplify_const_relational_operation): Likewise.
221         (simplify_ternary_operation): Likewise.
222         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
224 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
225             Alan Hayward  <alan.hayward@arm.com>
226             David Sherwood  <david.sherwood@arm.com>
228         * cse.c (cse_insn): Add is_a <scalar_int_mode> checks.
229         * reload.c (push_reload): Likewise.
230         (find_reloads): Likewise.
232 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
233             Alan Hayward  <alan.hayward@arm.com>
234             David Sherwood  <david.sherwood@arm.com>
236         * combine.c (find_split_point): Add is_a <scalar_int_mode> checks.
237         (make_compound_operation_int): Likewise.
238         (change_zero_ext): Likewise.
239         * expr.c (convert_move): Likewise.
240         (convert_modes): Likewise.
241         * fwprop.c (forward_propagate_subreg): Likewise.
242         * loop-iv.c (get_biv_step_1): Likewise.
243         * optabs.c (widen_operand): Likewise.
244         * postreload.c (move2add_valid_value_p): Likewise.
245         * recog.c (simplify_while_replacing): Likewise.
246         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
247         (simplify_binary_operation_1): Likewise.  Remove redundant
248         mode equality check.
250 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
251             Alan Hayward  <alan.hayward@arm.com>
252             David Sherwood  <david.sherwood@arm.com>
254         * combine.c (combine_simplify_rtx): Add checks for
255         is_a <scalar_int_mode>.
256         (simplify_if_then_else): Likewise.
257         (make_field_assignment): Likewise.
258         (simplify_comparison): Likewise.
259         * ifcvt.c (noce_try_bitop): Likewise.
260         * loop-invariant.c (canonicalize_address_mult): Likewise.
261         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
263 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
264             Alan Hayward  <alan.hayward@arm.com>
265             David Sherwood  <david.sherwood@arm.com>
267         * simplify-rtx.c (simplify_binary_operation_1): Use
268         is_a <scalar_int_mode> instead of !VECTOR_MODE_P.
270 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
271             Alan Hayward  <alan.hayward@arm.com>
272             David Sherwood  <david.sherwood@arm.com>
274         * wide-int.h (int_traits<unsigned char>) New class.
275         (int_traits<unsigned short>) Likewise.
276         * cfgexpand.c (expand_debug_expr): Use is_a <scalar_int_mode>.
277         Use GET_MODE_UNIT_PRECISION and remove redundant test for
278         SCALAR_INT_MODE_P.
279         * combine.c (set_nonzero_bits_and_sign_copies): Use
280         is_a <scalar_int_mode>.
281         (find_split_point): Likewise.
282         (combine_simplify_rtx): Likewise.
283         (simplify_logical): Likewise.
284         (expand_compound_operation): Likewise.
285         (expand_field_assignment): Likewise.
286         (make_compound_operation): Likewise.
287         (extended_count): Likewise.
288         (change_zero_ext): Likewise.
289         (simplify_comparison): Likewise.
290         * dwarf2out.c (scompare_loc_descriptor): Likewise.
291         (ucompare_loc_descriptor): Likewise.
292         (minmax_loc_descriptor): Likewise.
293         (mem_loc_descriptor): Likewise.
294         (loc_descriptor): Likewise.
295         * expmed.c (init_expmed_one_mode): Likewise.
296         * lra-constraints.c (lra_constraint_offset): Likewise.
297         * optabs.c (prepare_libcall_arg): Likewise.
298         * postreload.c (move2add_note_store): Likewise.
299         * reload.c (operands_match_p): Likewise.
300         * rtl.h (load_extend_op): Likewise.
301         * rtlhooks.c (gen_lowpart_general): Likewise.
302         * simplify-rtx.c (simplify_truncation): Likewise.
303         (simplify_unary_operation_1): Likewise.
304         (simplify_binary_operation_1): Likewise.
305         (simplify_const_binary_operation): Likewise.
306         (simplify_const_relational_operation): Likewise.
307         (simplify_subreg): Likewise.
308         * stor-layout.c (bitwise_mode_for_mode): Likewise.
309         * var-tracking.c (adjust_mems): Likewise.
310         (prepare_call_arguments): Likewise.
312 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
313             Alan Hayward  <alan.hayward@arm.com>
314             David Sherwood  <david.sherwood@arm.com>
316         * machmode.h (is_int_mode): New fuction.
317         * combine.c (find_split_point): Use it.
318         (combine_simplify_rtx): Likewise.
319         (simplify_if_then_else): Likewise.
320         (simplify_set): Likewise.
321         (simplify_shift_const_1): Likewise.
322         (simplify_comparison): Likewise.
323         * config/aarch64/aarch64.c (aarch64_rtx_costs): Likewise.
324         * cse.c (notreg_cost): Likewise.
325         (cse_insn): Likewise.
326         * cselib.c (cselib_lookup_1): Likewise.
327         * dojump.c (do_jump_1): Likewise.
328         (do_compare_rtx_and_jump): Likewise.
329         * dse.c (get_call_args): Likewise.
330         * dwarf2out.c (rtl_for_decl_init): Likewise.
331         (native_encode_initializer): Likewise.
332         * expmed.c (emit_store_flag_1): Likewise.
333         (emit_store_flag): Likewise.
334         * expr.c (convert_modes): Likewise.
335         (store_field): Likewise.
336         (expand_expr_real_1): Likewise.
337         * fold-const.c (fold_read_from_constant_string): Likewise.
338         * gimple-ssa-sprintf.c (get_format_string): Likewise.
339         * optabs-libfuncs.c (gen_int_libfunc): Likewise.
340         * optabs.c (expand_binop): Likewise.
341         (expand_unop): Likewise.
342         (expand_abs_nojump): Likewise.
343         (expand_one_cmpl_abs_nojump): Likewise.
344         * simplify-rtx.c (mode_signbit_p): Likewise.
345         (val_signbit_p): Likewise.
346         (val_signbit_known_set_p): Likewise.
347         (val_signbit_known_clear_p): Likewise.
348         (simplify_relational_operation_1): Likewise.
349         * tree.c (vector_type_mode): Likewise.
351 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
352             Alan Hayward  <alan.hayward@arm.com>
353             David Sherwood  <david.sherwood@arm.com>
355         * machmode.h (smallest_mode_for_size): Fix formatting.
356         (smallest_int_mode_for_size): New function.
357         * cfgexpand.c (expand_debug_expr): Use smallest_int_mode_for_size
358         instead of smallest_mode_for_size.
359         * combine.c (make_extraction): Likewise.
360         * config/arc/arc.c (arc_expand_movmem): Likewise.
361         * config/arm/arm.c (arm_expand_divmod_libfunc): Likewise.
362         * config/i386/i386.c (ix86_get_mask_mode): Likewise.
363         * config/s390/s390.c (s390_expand_insv): Likewise.
364         * config/sparc/sparc.c (assign_int_registers): Likewise.
365         * config/spu/spu.c (spu_function_value): Likewise.
366         (spu_function_arg): Likewise.
367         * coverage.c (get_gcov_type): Likewise.
368         (get_gcov_unsigned_t): Likewise.
369         * dse.c (find_shift_sequence): Likewise.
370         * expmed.c (store_bit_field_1): Likewise.
371         * expr.c (convert_move): Likewise.
372         (store_field): Likewise.
373         * internal-fn.c (expand_arith_overflow): Likewise.
374         * optabs-query.c (get_best_extraction_insn): Likewise.
375         * optabs.c (expand_twoval_binop_libfunc): Likewise.
376         * stor-layout.c (layout_type): Likewise.
377         (initialize_sizetypes): Likewise.
378         * targhooks.c (default_get_mask_mode): Likewise.
379         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Likewise.
381 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
382             Alan Hayward  <alan.hayward@arm.com>
383             David Sherwood  <david.sherwood@arm.com>
385         * machmode.h (opt_mode::else_blk): New function.
386         (int_mode_for_mode): Declare.
387         * stor-layout.c (int_mode_for_mode): Return an opt_scalar_int_mode.
388         * builtins.c (expand_builtin_signbit): Adjust for new int_mode_for_mode
389         return type.
390         * cfgexpand.c (expand_debug_expr): Likewise.
391         * combine.c (gen_lowpart_or_truncate): Likewise.
392         (gen_lowpart_for_combine): Likewise.
393         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
394         * config/avr/avr.c (avr_to_int_mode): Likewise.
395         (avr_out_plus_1): Likewise.
396         (avr_out_plus): Likewise.
397         (avr_out_round): Likewise.
398         * config/i386/i386.c (ix86_split_to_parts): Likewise.
399         * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
400         (s390_expand_vcond): Likewise.
401         * config/spu/spu.c (spu_split_immediate): Likewise.
402         (spu_expand_mov): Likewise.
403         * dse.c (get_stored_val): Likewise.
404         * expmed.c (store_bit_field_1): Likewise.
405         (convert_extracted_bit_field): Use int_mode_for_mode instead of
406         int_mode_for_size.
407         (extract_bit_field_1): Adjust for new int_mode_for_mode return type.
408         (extract_low_bits): Likewise.
409         * expr.c (emit_group_load_1): Likewise.  Separate out the BLKmode
410         handling rather than repeating the check.
411         (emit_group_store): Likewise.
412         (emit_move_via_integer): Adjust for new int_mode_for_mode return type.
413         * optabs.c (expand_absneg_bit): Likewise.
414         (expand_copysign_absneg): Likewise.
415         (expand_copysign_bit): Likewise.
416         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
417         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
418         * tree-vect-stmts.c (vect_gen_perm_mask_any): Likewise.
419         * var-tracking.c (prepare_call_arguments):  Likewise.
420         * config/powerpcspe/powerpcspe.c (rs6000_do_expand_vec_perm): Use
421         int_mode_for_mode instead of mode_for_size.
422         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
424 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
425             Alan Hayward  <alan.hayward@arm.com>
426             David Sherwood  <david.sherwood@arm.com>
428         * machmode.h (int_mode_for_size): New function.
429         * builtins.c (set_builtin_user_assembler_name): Use int_mode_for_size
430         instead of mode_for_size.
431         * calls.c (save_fixed_argument_area): Likewise.  Make use of BLKmode
432         explicit.
433         * combine.c (expand_field_assignment): Use int_mode_for_size
434         instead of mode_for_size.
435         (make_extraction): Likewise.
436         (simplify_shift_const_1): Likewise.
437         (simplify_comparison): Likewise.
438         * dojump.c (do_jump): Likewise.
439         * dwarf2out.c (mem_loc_descriptor): Likewise.
440         * emit-rtl.c (init_derived_machine_modes): Likewise.
441         * expmed.c (flip_storage_order): Likewise.
442         (convert_extracted_bit_field): Likewise.
443         * expr.c (copy_blkmode_from_reg): Likewise.
444         * graphite-isl-ast-to-gimple.c (max_mode_int_precision): Likewise.
445         * internal-fn.c (expand_mul_overflow): Likewise.
446         * lower-subreg.c (simple_move): Likewise.
447         * optabs-libfuncs.c (init_optabs): Likewise.
448         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
449         * tree.c (vector_type_mode): Likewise.
450         * tree-ssa-strlen.c (handle_builtin_memcmp): Likewise.
451         * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Likewise.
452         * tree-vect-generic.c (expand_vector_parallel): Likewise.
453         * tree-vect-stmts.c (vectorizable_load): Likewise.
454         (vectorizable_store): Likewise.
456 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
457             Alan Hayward  <alan.hayward@arm.com>
458             David Sherwood  <david.sherwood@arm.com>
460         * coretypes.h (pod_mode): New type.
461         (scalar_int_mode_pod): New typedef.
462         * machmode.h (pod_mode): New class.
463         (int_n_data_t::m): Change type to scalar_int_mode_pod.
464         * genmodes.c (emit_mode_int_n): Update accordingly.
465         * lower-subreg.h (target_lower_subreg): Change type to
466         scalar_int_mode_pod.
467         * gdbhooks.py (build_pretty_printer): Handle pod_mode and
468         scalar_int_mode_pod.
470 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
471             Alan Hayward  <alan.hayward@arm.com>
472             David Sherwood  <david.sherwood@arm.com>
474         * config/powerpcspe/powerpcspe.h (rs6000_pmode): Change type from
475         machine_mode to scalar_int_mode.
476         * config/powerpcspe/powerpcspe.c (rs6000_pmode): Likewise.
477         (rs6000_option_override_internal): Remove cast to int.
478         * config/rs6000/rs6000.h (rs6000_pmode): Change type from
479         machine_mode to scalar_int_mode.
480         * config/rs6000/rs6000.c (rs6000_pmode): Likewise.
481         (rs6000_option_override_internal): Remove cast to int.
482         * config/s390/s390.h (Pmode): Remove cast to machine_mode.
483         * config/epiphany/epiphany.h (RTX_OK_FOR_OFFSET_P): Add cast
484         to machine_mode.
485         * config/s390/s390.c (s390_expand_builtin): Likewise.
486         * coretypes.h (scalar_int_mode): New type.
487         (opt_scalar_int_mode): New typedef.
488         * machmode.h (scalar_int_mode): New class.
489         (scalar_int_mode::includes_p): New function.
490         (byte_mode): Change type to scalar_int_mode.
491         (word_mode): Likewise.
492         (ptr_mode): Likewise.
493         * emit-rtl.c (byte_mode): Likewise.
494         (word_mode): Likewise.
495         (ptr_mode): Likewise.
496         (init_derived_machine_modes): Update accordingly.
497         * genmodes.c (get_mode_class): Return scalar_int_mode for MODE_INT
498         and MODE_PARTIAL_INT.
499         * gdbhooks.py (build_pretty_printer): Handle scalar_int_mode and
500         opt_scalar_int_mode.
502 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
503             Alan Hayward  <alan.hayward@arm.com>
504             David Sherwood  <david.sherwood@arm.com>
506         * target.def (libgcc_floating_mode_supported_p): Take a
507         scalar_float_mode.
508         * doc/tm.texi: Regenerate.
509         * targhooks.h (default_libgcc_floating_mode_supported_p): Take a
510         scalar_float_mode.
511         * targhooks.c (default_libgcc_floating_mode_supported_p): Likewise.
512         * config/aarch64/aarch64.c (aarch64_libgcc_floating_mode_supported_p):
513         Likewise.
515 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
516             Alan Hayward  <alan.hayward@arm.com>
517             David Sherwood  <david.sherwood@arm.com>
519         * target.def (default_floatn_mode): Return an opt_scalar_float_mode.
520         * doc/tm.texi: Regenerate.
521         * config/arm/arm.c (arm_floatn_mode): Return an opt_scalar_float_mode.
522         * config/powerpcspe/powerpcspe.c (rs6000_floatn_mode): Likewise.
523         * config/rs6000/rs6000.c (rs6000_floatn_mode): Likewise.
524         * targhooks.h (default_floatn_mode): Likewise.
525         * targhooks.c (default_floatn_mode): Likewise.
526         * tree.c (build_common_tree_nodes): Update accordingly.
528 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
529             Alan Hayward  <alan.hayward@arm.com>
530             David Sherwood  <david.sherwood@arm.com>
532         * machmode.h (mode_iterator::start): Provide overload for opt_modes.
533         (mode_iterator::iterate_p): Likewise.
534         (mode_iterator::get_wider): Likewise.
535         * expr.c (init_expr_target): Use opt_scalar_float_mode.
537 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
538             Alan Hayward  <alan.hayward@arm.com>
539             David Sherwood  <david.sherwood@arm.com>
541         * coretypes.h (opt_scalar_float_mode): New typedef.
542         * machmode.h (float_mode_for_size): New function.
543         * emit-rtl.c (double_mode): Delete.
544         (init_emit_once): Use float_mode_for_size.
545         * stor-layout.c (layout_type): Likewise.
546         * gdbhooks.py (build_pretty_printer): Handle opt_scalar_float_mode.
548 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
549             Alan Hayward  <alan.hayward@arm.com>
550             David Sherwood  <david.sherwood@arm.com>
552         * output.h (assemble_real): Take a scalar_float_mode.
553         * config/arm/arm.c (arm_assemble_integer): Update accordingly.
554         * config/arm/arm.md (consttable_4): Likewise.
555         (consttable_8): Likewise.
556         (consttable_16): Likewise.
557         * config/mips/mips.md (consttable_float): Likewise.
558         * config/s390/s390.c (s390_output_pool_entry): Likewise.
559         * varasm.c (assemble_real): Take a scalar_float_mode.
560         (output_constant_pool_2): Update accordingly.
561         (output_constant): Likewise.
563 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
564             Alan Hayward  <alan.hayward@arm.com>
565             David Sherwood  <david.sherwood@arm.com>
567         * tree.h (SCALAR_FLOAT_TYPE_MODE): New macro.
568         * builtins.c (expand_builtin_signbit): Use it instead of TYPE_MODE.
569         * fold-const.c (fold_convert_const_real_from_fixed): Likewise.
570         (native_encode_real): Likewise.
571         (native_interpret_real): Likewise.
572         * hsa-brig.c (emit_immediate_scalar_to_buffer): Likewise.
573         * tree-vrp.c (simplify_float_conversion_using_ranges): Likewise.
575 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
576             Alan Hayward  <alan.hayward@arm.com>
577             David Sherwood  <david.sherwood@arm.com>
579         * optabs-libfuncs.c (gen_trunc_conv_libfunc): Use is_a
580         <scalar_float_mode>.  Simplify.
581         (gen_extend_conv_libfunc): Likewise.
583 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
584             Alan Hayward  <alan.hayward@arm.com>
585             David Sherwood  <david.sherwood@arm.com>
587         * coretypes.h (scalar_float_mode): New type.
588         * machmode.h (mode_traits::from_int): Use machine_mode if
589         USE_ENUM_MODES is defined.
590         (is_a): New function.
591         (as_a): Likewise.
592         (dyn_cast): Likewise.
593         (scalar_float_mode): New class.
594         (scalar_float_mode::includes_p): New function.
595         (is_float_mode): Likewise.
596         * gdbhooks.py (MachineModePrinter): New class.
597         (build_pretty_printer): Use it for scalar_float_mode.
598         * real.h (FLOAT_MODE_FORMAT): Use as_a <scalar_float_mode>.
599         (format_helper::format_helper): Turn into a template.
600         * genmodes.c (get_mode_class): New function.
601         (emit_insn_modes_h): Give modes the class returned by get_mode_class,
602         or machine_mode if none.
603         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Use
604         as_a <scalar_float_mode>.
605         * dwarf2out.c (mem_loc_descriptor): Likewise.
606         (insert_float): Likewise.
607         (add_const_value_attribute): Likewise.
608         * simplify-rtx.c (simplify_immed_subreg): Likewise.
609         * optabs.c (expand_absneg_bit): Take a scalar_float_mode.
610         (expand_unop): Update accordingly.
611         (expand_abs_nojump): Likewise.
612         (expand_copysign_absneg): Take a scalar_float_mode.
613         (expand_copysign_bit): Likewise.
614         (expand_copysign): Update accordingly.
616 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
617             Alan Hayward  <alan.hayward@arm.com>
618             David Sherwood  <david.sherwood@arm.com>
620         * coretypes.h (opt_mode): New class.
621         * machmode.h (opt_mode): Likewise.
622         (opt_mode::else_void): New function.
623         (opt_mode::require): Likewise.
624         (opt_mode::exists): Likewise.
625         (GET_MODE_WIDER_MODE): Turn into a function and return an opt_mode.
626         (GET_MODE_2XWIDER_MODE): Likewise.
627         (mode_iterator::get_wider): Update accordingly.
628         (mode_iterator::get_2xwider): Likewise.
629         (mode_iterator::get_known_wider): Likewise, turning into a template.
630         * combine.c (make_extraction): Update use of GET_MODE_WIDER_MODE,
631         forcing a wider mode to exist.
632         * config/cr16/cr16.h (LONG_REG_P): Likewise.
633         * rtlanal.c (init_num_sign_bit_copies_in_rep): Likewise.
634         * config/c6x/c6x.c (c6x_rtx_costs): Update use of
635         GET_MODE_2XWIDER_MODE, forcing a wider mode to exist.
636         * lower-subreg.c (init_lower_subreg): Likewise.
637         * optabs-libfuncs.c (init_sync_libfuncs_1): Likewise, but not
638         on the final iteration.
639         * config/i386/i386.c (ix86_expand_set_or_movmem): Check whether
640         a wider mode exists before asking for a move pattern.
641         (get_mode_wider_vector): Update use of GET_MODE_WIDER_MODE,
642         forcing a wider mode to exist.
643         (expand_vselect_vconcat): Update use of GET_MODE_2XWIDER_MODE,
644         returning false if no such mode exists.
645         * config/ia64/ia64.c (expand_vselect_vconcat): Likewise.
646         * config/mips/mips.c (mips_expand_vselect_vconcat): Likewise.
647         * expmed.c (init_expmed_one_mode): Update use of GET_MODE_WIDER_MODE.
648         Avoid checking for a MODE_INT if we already know the mode is not a
649         SCALAR_INT_MODE_P.
650         (extract_high_half): Update use of GET_MODE_WIDER_MODE,
651         forcing a wider mode to exist.
652         (expmed_mult_highpart_optab): Likewise.
653         (expmed_mult_highpart): Likewise.
654         * expr.c (expand_expr_real_2): Update use of GET_MODE_WIDER_MODE,
655         using else_void.
656         * lto-streamer-in.c (lto_input_mode_table): Likewise.
657         * optabs-query.c (find_widening_optab_handler_and_mode): Likewise.
658         * stor-layout.c (bit_field_mode_iterator::next_mode): Likewise.
659         * internal-fn.c (expand_mul_overflow): Update use of
660         GET_MODE_2XWIDER_MODE.
661         * omp-low.c (omp_clause_aligned_alignment): Likewise.
662         * tree-ssa-math-opts.c (convert_mult_to_widen): Update use of
663         GET_MODE_WIDER_MODE.
664         (convert_plusminus_to_widen): Likewise.
665         * tree-switch-conversion.c (array_value_type): Likewise.
666         * var-tracking.c (emit_note_insn_var_location): Likewise.
667         * tree-vrp.c (simplify_float_conversion_using_ranges): Likewise.
668         Return false inside rather than outside the loop if no wider mode
669         exists
670         * optabs.c (expand_binop): Update use of GET_MODE_WIDER_MODE
671         and GET_MODE_2XWIDER_MODE
672         (can_compare_p): Use else_void.
673         * gdbhooks.py (OptMachineModePrinter): New class.
674         (build_pretty_printer): Use it for opt_mode.
676 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
677             Alan Hayward  <alan.hayward@arm.com>
678             David Sherwood  <david.sherwood@arm.com>
680         * tree-switch-conversion.c (array_value_type): Only read TYPE_MODE
681         once.  Use get_narrowest_mode instead of GET_CLASS_NARROWEST_MODE.
683 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
684             Alan Hayward  <alan.hayward@arm.com>
685             David Sherwood  <david.sherwood@arm.com>
687         * machmode.h (mode_traits): New structure.
688         (get_narrowest_mode): New function.
689         (mode_iterator::start): Likewise.
690         (mode_iterator::iterate_p): Likewise.
691         (mode_iterator::get_wider): Likewise.
692         (mode_iterator::get_known_wider): Likewise.
693         (mode_iterator::get_2xwider): Likewise.
694         (FOR_EACH_MODE_IN_CLASS): New mode iterator.
695         (FOR_EACH_MODE): Likewise.
696         (FOR_EACH_MODE_FROM): Likewise.
697         (FOR_EACH_MODE_UNTIL): Likewise.
698         (FOR_EACH_WIDER_MODE): Likewise.
699         (FOR_EACH_2XWIDER_MODE): Likewise.
700         * builtins.c (expand_builtin_strlen): Use new mode iterators.
701         * combine.c (simplify_comparison): Likewise
702         * config/i386/i386.c (type_natural_mode): Likewise.
703         * cse.c (cse_insn): Likewise.
704         * dse.c (find_shift_sequence): Likewise.
705         * emit-rtl.c (init_derived_machine_modes): Likewise.
706         (init_emit_once): Likewise.
707         * explow.c (hard_function_value): Likewise.
708         * expmed.c (extract_fixed_bit_field_1): Likewise.
709         (extract_bit_field_1): Likewise.
710         (expand_divmod): Likewise.
711         (emit_store_flag_1): Likewise.
712         * expr.c (init_expr_target): Likewise.
713         (convert_move): Likewise.
714         (alignment_for_piecewise_move): Likewise.
715         (widest_int_mode_for_size): Likewise.
716         (emit_block_move_via_movmem): Likewise.
717         (copy_blkmode_to_reg): Likewise.
718         (set_storage_via_setmem): Likewise.
719         (compress_float_constant): Likewise.
720         * omp-low.c (omp_clause_aligned_alignment): Likewise.
721         * optabs-query.c (get_best_extraction_insn): Likewise.
722         * optabs.c (expand_binop): Likewise.
723         (expand_twoval_unop): Likewise.
724         (expand_twoval_binop): Likewise.
725         (widen_leading): Likewise.
726         (widen_bswap): Likewise.
727         (expand_parity): Likewise.
728         (expand_unop): Likewise.
729         (prepare_cmp_insn): Likewise.
730         (prepare_float_lib_cmp): Likewise.
731         (expand_float): Likewise.
732         (expand_fix): Likewise.
733         (expand_sfix_optab): Likewise.
734         * postreload.c (move2add_use_add2_insn): Likewise.
735         * reg-stack.c (reg_to_stack): Likewise.
736         * reginfo.c (choose_hard_reg_mode): Likewise.
737         * rtlanal.c (init_num_sign_bit_copies_in_rep): Likewise.
738         * stor-layout.c (mode_for_size): Likewise.
739         (smallest_mode_for_size): Likewise.
740         (mode_for_vector): Likewise.
741         (finish_bitfield_representative): Likewise.
742         * tree-ssa-math-opts.c (target_supports_divmod_p): Likewise.
743         * tree-vect-generic.c (type_for_widest_vector_mode): Likewise.
744         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
745         * var-tracking.c (prepare_call_arguments): Likewise.
747 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
748             Alan Hayward  <alan.hayward@arm.com>
749             David Sherwood  <david.sherwood@arm.com>
751         * genconditions.c (write_header): Add a "#define USE_ENUM_MODES".
752         * genmodes.c (emit_insn_modes_h): Define FOOmode to E_FOOmode if
753         USE_ENUM_MODES is defined and to ((void) 0, E_FOOmode) otherwise.
754         * machmode.h (mode_size): Move earlier in file.
755         (mode_precision): Likewise.
756         (mode_inner): Likewise.
757         (mode_nunits): Likewise.
758         (mode_unit_size): Likewise.
759         (unit_unit_precision): Likewise.
760         (mode_wider): Likewise.
761         (mode_2xwider): Likewise.
762         (machine_mode): New class.
763         (mode_to_bytes): New function.
764         (mode_to_bits): Likewise.
765         (mode_to_precision): Likewise.
766         (mode_to_inner): Likewise.
767         (mode_to_unit_size): Likewise.
768         (mode_to_unit_precision): Likewise.
769         (mode_to_nunits): Likewise.
770         (GET_MODE_SIZE): Use mode_to_bytes.
771         (GET_MODE_BITSIZE): Use mode_to_bits.
772         (GET_MODE_PRECISION): Use mode_to_precision.
773         (GET_MODE_INNER): Use mode_to_inner.
774         (GET_MODE_UNIT_SIZE): Use mode_to_unit_size.
775         (GET_MODE_UNIT_PRECISION): Use mode_to_unit_precision.
776         (GET_MODE_NUNITS): Use mode_to_nunits.
777         * system.h (ALWAYS_INLINE): New macro.
778         * config/powerpcspe/powerpcspe-c.c
779         (altivec_resolve_overloaded_builtin): Use machine_mode instead of
780         int for arg1_mode and arg2_mode.
782 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
783             Alan Hayward  <alan.hayward@arm.com>
784             David Sherwood  <david.sherwood@arm.com>
786         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_std_type):
787         Prefix mode names with E_ in case statements.
788         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
789         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Likewise.
790         (aarch64_split_simd_move): Likewise.
791         (aarch64_gen_storewb_pair): Likewise.
792         (aarch64_gen_loadwb_pair): Likewise.
793         (aarch64_gen_store_pair): Likewise.
794         (aarch64_gen_load_pair): Likewise.
795         (aarch64_get_condition_code_1): Likewise.
796         (aarch64_constant_pool_reload_icode): Likewise.
797         (get_rsqrte_type): Likewise.
798         (get_rsqrts_type): Likewise.
799         (get_recpe_type): Likewise.
800         (get_recps_type): Likewise.
801         (aarch64_gimplify_va_arg_expr): Likewise.
802         (aarch64_simd_container_mode): Likewise.
803         (aarch64_emit_load_exclusive): Likewise.
804         (aarch64_emit_store_exclusive): Likewise.
805         (aarch64_expand_compare_and_swap): Likewise.
806         (aarch64_gen_atomic_cas): Likewise.
807         (aarch64_emit_bic): Likewise.
808         (aarch64_emit_atomic_swap): Likewise.
809         (aarch64_emit_atomic_load_op): Likewise.
810         (aarch64_evpc_trn): Likewise.
811         (aarch64_evpc_uzp): Likewise.
812         (aarch64_evpc_zip): Likewise.
813         (aarch64_evpc_ext): Likewise.
814         (aarch64_evpc_rev): Likewise.
815         (aarch64_evpc_dup): Likewise.
816         (aarch64_gen_ccmp_first): Likewise.
817         (aarch64_gen_ccmp_next): Likewise.
818         * config/alpha/alpha.c (alpha_scalar_mode_supported_p): Likewise.
819         (alpha_emit_xfloating_libcall): Likewise.
820         (emit_insxl): Likewise.
821         (alpha_arg_type): Likewise.
822         * config/arc/arc.c (arc_vector_mode_supported_p): Likewise.
823         (arc_preferred_simd_mode): Likewise.
824         (arc_secondary_reload): Likewise.
825         (get_arc_condition_code): Likewise.
826         (arc_print_operand): Likewise.
827         (arc_legitimate_constant_p): Likewise.
828         * config/arc/arc.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
829         * config/arc/arc.md (casesi_load): Likewise.
830         (casesi_compact_jump): Likewise.
831         * config/arc/predicates.md (proper_comparison_operator): Likewise.
832         (cc_use_register): Likewise.
833         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
834         * config/arm/arm-builtins.c (arm_simd_builtin_std_type): Likewise.
835         (arm_init_iwmmxt_builtins): Likewise.
836         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
837         (neon_expand_vector_init): Likewise.
838         (arm_attr_length_move_neon): Likewise.
839         (maybe_get_arm_condition_code): Likewise.
840         (arm_emit_vector_const): Likewise.
841         (arm_preferred_simd_mode): Likewise.
842         (arm_output_iwmmxt_tinsr): Likewise.
843         (thumb1_output_casesi): Likewise.
844         (thumb2_output_casesi): Likewise.
845         (arm_emit_load_exclusive): Likewise.
846         (arm_emit_store_exclusive): Likewise.
847         (arm_expand_compare_and_swap): Likewise.
848         (arm_evpc_neon_vuzp): Likewise.
849         (arm_evpc_neon_vzip): Likewise.
850         (arm_evpc_neon_vrev): Likewise.
851         (arm_evpc_neon_vtrn): Likewise.
852         (arm_evpc_neon_vext): Likewise.
853         (arm_validize_comparison): Likewise.
854         * config/arm/neon.md (neon_vc<cmp_op><mode>): Likewise.
855         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
856         * config/avr/avr.c (avr_rtx_costs_1): Likewise.
857         * config/c6x/c6x.c (c6x_vector_mode_supported_p): Likewise.
858         (c6x_preferred_simd_mode): Likewise.
859         * config/epiphany/epiphany.c (get_epiphany_condition_code): Likewise.
860         (epiphany_rtx_costs): Likewise.
861         * config/epiphany/predicates.md (proper_comparison_operator):
862         Likewise.
863         * config/frv/frv.c (condexec_memory_operand): Likewise.
864         (frv_emit_move): Likewise.
865         (output_move_single): Likewise.
866         (output_condmove_single): Likewise.
867         (frv_hard_regno_mode_ok): Likewise.
868         (frv_matching_accg_mode): Likewise.
869         * config/h8300/h8300.c (split_adds_subs): Likewise.
870         (h8300_rtx_costs): Likewise.
871         (h8300_print_operand): Likewise.
872         (compute_mov_length): Likewise.
873         (output_logical_op): Likewise.
874         (compute_logical_op_length): Likewise.
875         (compute_logical_op_cc): Likewise.
876         (h8300_shift_needs_scratch_p): Likewise.
877         (output_a_shift): Likewise.
878         (compute_a_shift_length): Likewise.
879         (compute_a_shift_cc): Likewise.
880         (expand_a_rotate): Likewise.
881         (output_a_rotate): Likewise.
882         * config/i386/i386.c (classify_argument): Likewise.
883         (function_arg_advance_32): Likewise.
884         (function_arg_32): Likewise.
885         (function_arg_64): Likewise.
886         (function_value_64): Likewise.
887         (ix86_gimplify_va_arg): Likewise.
888         (ix86_legitimate_constant_p): Likewise.
889         (put_condition_code): Likewise.
890         (split_double_mode): Likewise.
891         (ix86_avx256_split_vector_move_misalign): Likewise.
892         (ix86_expand_vector_logical_operator): Likewise.
893         (ix86_split_idivmod): Likewise.
894         (ix86_expand_adjust_ufix_to_sfix_si): Likewise.
895         (ix86_build_const_vector): Likewise.
896         (ix86_build_signbit_mask): Likewise.
897         (ix86_match_ccmode): Likewise.
898         (ix86_cc_modes_compatible): Likewise.
899         (ix86_expand_branch): Likewise.
900         (ix86_expand_sse_cmp): Likewise.
901         (ix86_expand_sse_movcc): Likewise.
902         (ix86_expand_int_sse_cmp): Likewise.
903         (ix86_expand_vec_perm_vpermi2): Likewise.
904         (ix86_expand_vec_perm): Likewise.
905         (ix86_expand_sse_unpack): Likewise.
906         (ix86_expand_int_addcc): Likewise.
907         (ix86_split_to_parts): Likewise.
908         (ix86_vectorize_builtin_gather): Likewise.
909         (ix86_vectorize_builtin_scatter): Likewise.
910         (avx_vpermilp_parallel): Likewise.
911         (inline_memory_move_cost): Likewise.
912         (ix86_tieable_integer_mode_p): Likewise.
913         (x86_maybe_negate_const_int): Likewise.
914         (ix86_expand_vector_init_duplicate): Likewise.
915         (ix86_expand_vector_init_one_nonzero): Likewise.
916         (ix86_expand_vector_init_one_var): Likewise.
917         (ix86_expand_vector_init_concat): Likewise.
918         (ix86_expand_vector_init_interleave): Likewise.
919         (ix86_expand_vector_init_general): Likewise.
920         (ix86_expand_vector_set): Likewise.
921         (ix86_expand_vector_extract): Likewise.
922         (emit_reduc_half): Likewise.
923         (ix86_emit_i387_round): Likewise.
924         (ix86_mangle_type): Likewise.
925         (ix86_expand_round_sse4): Likewise.
926         (expand_vec_perm_blend): Likewise.
927         (canonicalize_vector_int_perm): Likewise.
928         (ix86_expand_vec_one_operand_perm_avx512): Likewise.
929         (expand_vec_perm_1): Likewise.
930         (expand_vec_perm_interleave3): Likewise.
931         (expand_vec_perm_even_odd_pack): Likewise.
932         (expand_vec_perm_even_odd_1): Likewise.
933         (expand_vec_perm_broadcast_1): Likewise.
934         (ix86_vectorize_vec_perm_const_ok): Likewise.
935         (ix86_expand_vecop_qihi): Likewise.
936         (ix86_expand_mul_widen_hilo): Likewise.
937         (ix86_expand_sse2_abs): Likewise.
938         (ix86_expand_pextr): Likewise.
939         (ix86_expand_pinsr): Likewise.
940         (ix86_preferred_simd_mode): Likewise.
941         (ix86_simd_clone_compute_vecsize_and_simdlen): Likewise.
942         * config/i386/sse.md (*andnot<mode>3): Likewise.
943         (<mask_codefor><code><mode>3<mask_name>): Likewise.
944         (*<code><mode>3): Likewise.
945         * config/ia64/ia64.c (ia64_expand_vecint_compare): Likewise.
946         (ia64_expand_atomic_op): Likewise.
947         (ia64_arg_type): Likewise.
948         (ia64_mode_to_int): Likewise.
949         (ia64_scalar_mode_supported_p): Likewise.
950         (ia64_vector_mode_supported_p): Likewise.
951         (expand_vec_perm_broadcast): Likewise.
952         * config/iq2000/iq2000.c (iq2000_move_1word): Likewise.
953         (iq2000_function_arg_advance): Likewise.
954         (iq2000_function_arg): Likewise.
955         * config/m32c/m32c.c (m32c_preferred_reload_class): Likewise.
956         * config/m68k/m68k.c (output_dbcc_and_branch): Likewise.
957         (m68k_libcall_value): Likewise.
958         (m68k_function_value): Likewise.
959         (sched_attr_op_type): Likewise.
960         * config/mcore/mcore.c (mcore_output_move): Likewise.
961         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
962         Likewise.
963         (microblaze_function_arg): Likewise.
964         * config/mips/mips.c (mips16_build_call_stub): Likewise.
965         (mips_print_operand): Likewise.
966         (mips_mode_ok_for_mov_fmt_p): Likewise.
967         (mips_vector_mode_supported_p): Likewise.
968         (mips_preferred_simd_mode): Likewise.
969         (mips_expand_vpc_loongson_even_odd): Likewise.
970         (mips_expand_vec_unpack): Likewise.
971         (mips_expand_vi_broadcast): Likewise.
972         (mips_expand_vector_init): Likewise.
973         (mips_expand_vec_reduc): Likewise.
974         (mips_expand_msa_cmp): Likewise.
975         * config/mips/mips.md (casesi_internal_mips16_<mode>): Likewise.
976         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
977         (cc_flags_for_mode): Likewise.
978         * config/msp430/msp430.c (msp430_print_operand): Likewise.
979         * config/nds32/nds32-md-auxiliary.c (nds32_mem_format): Likewise.
980         (nds32_output_casesi_pc_relative): Likewise.
981         * config/nds32/nds32.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
982         * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Likewise.
983         (nvptx_gen_unpack): Likewise.
984         (nvptx_gen_pack): Likewise.
985         (nvptx_gen_shuffle): Likewise.
986         (nvptx_gen_wcast): Likewise.
987         (nvptx_preferred_simd_mode): Likewise.
988         * config/pa/pa.c (pa_secondary_reload): Likewise.
989         * config/pa/predicates.md (base14_operand): Likewise.
990         * config/powerpcspe/powerpcspe-c.c
991         (altivec_resolve_overloaded_builtin): Likewise.
992         * config/powerpcspe/powerpcspe.c (rs6000_setup_reg_addr_masks):
993         Likewise.
994         (rs6000_preferred_simd_mode): Likewise.
995         (output_vec_const_move): Likewise.
996         (rs6000_expand_vector_extract): Likewise.
997         (rs6000_split_vec_extract_var): Likewise.
998         (reg_offset_addressing_ok_p): Likewise.
999         (rs6000_legitimate_offset_address_p): Likewise.
1000         (rs6000_legitimize_address): Likewise.
1001         (rs6000_emit_set_const): Likewise.
1002         (rs6000_const_vec): Likewise.
1003         (rs6000_emit_move): Likewise.
1004         (spe_build_register_parallel): Likewise.
1005         (rs6000_darwin64_record_arg_recurse): Likewise.
1006         (swap_selector_for_mode): Likewise.
1007         (spe_init_builtins): Likewise.
1008         (paired_init_builtins): Likewise.
1009         (altivec_init_builtins): Likewise.
1010         (do_load_for_compare): Likewise.
1011         (rs6000_generate_compare): Likewise.
1012         (rs6000_expand_float128_convert): Likewise.
1013         (emit_load_locked): Likewise.
1014         (emit_store_conditional): Likewise.
1015         (rs6000_output_function_epilogue): Likewise.
1016         (rs6000_handle_altivec_attribute): Likewise.
1017         (rs6000_function_value): Likewise.
1018         (emit_fusion_gpr_load): Likewise.
1019         (emit_fusion_p9_load): Likewise.
1020         (emit_fusion_p9_store): Likewise.
1021         * config/powerpcspe/predicates.md (easy_fp_constant): Likewise.
1022         (fusion_gpr_mem_load): Likewise.
1023         (fusion_addis_mem_combo_load): Likewise.
1024         (fusion_addis_mem_combo_store): Likewise.
1025         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
1026         (fusion_gpr_mem_load): Likewise.
1027         (fusion_addis_mem_combo_load): Likewise.
1028         (fusion_addis_mem_combo_store): Likewise.
1029         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1030         Likewise.
1031         * config/rs6000/rs6000-string.c (do_load_for_compare): Likewise.
1032         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Likewise.
1033         (rs6000_preferred_simd_mode): Likewise.
1034         (output_vec_const_move): Likewise.
1035         (rs6000_expand_vector_extract): Likewise.
1036         (rs6000_split_vec_extract_var): Likewise.
1037         (reg_offset_addressing_ok_p): Likewise.
1038         (rs6000_legitimate_offset_address_p): Likewise.
1039         (rs6000_legitimize_address): Likewise.
1040         (rs6000_emit_set_const): Likewise.
1041         (rs6000_const_vec): Likewise.
1042         (rs6000_emit_move): Likewise.
1043         (rs6000_darwin64_record_arg_recurse): Likewise.
1044         (swap_selector_for_mode): Likewise.
1045         (paired_init_builtins): Likewise.
1046         (altivec_init_builtins): Likewise.
1047         (rs6000_expand_float128_convert): Likewise.
1048         (emit_load_locked): Likewise.
1049         (emit_store_conditional): Likewise.
1050         (rs6000_output_function_epilogue): Likewise.
1051         (rs6000_handle_altivec_attribute): Likewise.
1052         (rs6000_function_value): Likewise.
1053         (emit_fusion_gpr_load): Likewise.
1054         (emit_fusion_p9_load): Likewise.
1055         (emit_fusion_p9_store): Likewise.
1056         * config/rx/rx.c (rx_gen_move_template): Likewise.
1057         (flags_from_mode): Likewise.
1058         * config/s390/predicates.md (s390_alc_comparison): Likewise.
1059         (s390_slb_comparison): Likewise.
1060         * config/s390/s390.c (s390_handle_vectorbool_attribute): Likewise.
1061         (s390_vector_mode_supported_p): Likewise.
1062         (s390_cc_modes_compatible): Likewise.
1063         (s390_match_ccmode_set): Likewise.
1064         (s390_canonicalize_comparison): Likewise.
1065         (s390_emit_compare_and_swap): Likewise.
1066         (s390_branch_condition_mask): Likewise.
1067         (s390_rtx_costs): Likewise.
1068         (s390_secondary_reload): Likewise.
1069         (__SECONDARY_RELOAD_CASE): Likewise.
1070         (s390_expand_cs): Likewise.
1071         (s390_preferred_simd_mode): Likewise.
1072         * config/s390/vx-builtins.md (vec_packsu_u<mode>): Likewise.
1073         * config/sh/sh.c (sh_print_operand): Likewise.
1074         (dump_table): Likewise.
1075         (sh_secondary_reload): Likewise.
1076         * config/sh/sh.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
1077         * config/sh/sh.md (casesi_worker_1): Likewise.
1078         (casesi_worker_2): Likewise.
1079         * config/sparc/predicates.md (icc_comparison_operator): Likewise.
1080         (fcc_comparison_operator): Likewise.
1081         * config/sparc/sparc.c (sparc_expand_move): Likewise.
1082         (emit_soft_tfmode_cvt): Likewise.
1083         (sparc_preferred_simd_mode): Likewise.
1084         (output_cbranch): Likewise.
1085         (sparc_print_operand): Likewise.
1086         (sparc_expand_vec_perm_bmask): Likewise.
1087         (vector_init_bshuffle): Likewise.
1088         * config/spu/spu.c (spu_scalar_mode_supported_p): Likewise.
1089         (spu_vector_mode_supported_p): Likewise.
1090         (spu_expand_insv): Likewise.
1091         (spu_emit_branch_or_set): Likewise.
1092         (spu_handle_vector_attribute): Likewise.
1093         (spu_builtin_splats): Likewise.
1094         (spu_builtin_extract): Likewise.
1095         (spu_builtin_promote): Likewise.
1096         (spu_expand_sign_extend): Likewise.
1097         * config/tilegx/tilegx.c (tilegx_scalar_mode_supported_p): Likewise.
1098         (tilegx_simd_int): Likewise.
1099         * config/tilepro/tilepro.c (tilepro_scalar_mode_supported_p): Likewise.
1100         (tilepro_simd_int): Likewise.
1101         * config/v850/v850.c (const_double_split): Likewise.
1102         (v850_print_operand): Likewise.
1103         (ep_memory_offset): Likewise.
1104         * config/vax/vax.c (vax_rtx_costs): Likewise.
1105         (vax_output_int_move): Likewise.
1106         (vax_output_int_add): Likewise.
1107         (vax_output_int_subtract): Likewise.
1108         * config/visium/predicates.md (visium_branch_operator): Likewise.
1109         * config/visium/visium.c (rtx_ok_for_offset_p): Likewise.
1110         (visium_print_operand_address): Likewise.
1111         * config/visium/visium.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
1112         * config/xtensa/xtensa.c (xtensa_mem_offset): Likewise.
1113         (xtensa_expand_conditional_branch): Likewise.
1114         (xtensa_copy_incoming_a7): Likewise.
1115         (xtensa_output_literal): Likewise.
1116         * dfp.c (decimal_real_maxval): Likewise.
1117         * targhooks.c (default_libgcc_floating_mode_supported_p): Likewise.
1119 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
1120             Alan Hayward  <alan.hayward@arm.com>
1121             David Sherwood  <david.sherwood@arm.com>
1123         * genmodes.c (mode_size_inline): Add an E_ prefix to mode names.
1124         (mode_nunits_inline): Likewise.
1125         (mode_inner_inline): Likewise.
1126         (mode_unit_size_inline): Likewise.
1127         (mode_unit_precision_inline): Likewise.
1128         (emit_insn_modes_h): Likewise.  Also emit a #define of the
1129         unprefixed name.
1130         (emit_mode_wider): Add an E_ prefix to mode names.
1131         (emit_mode_complex): Likewise.
1132         (emit_mode_inner): Likewise.
1133         (emit_mode_adjustments): Likewise.
1134         (emit_mode_int_n): Likewise.
1135         * config/aarch64/aarch64-builtins.c (v8qi_UP, v4hi_UP, v4hf_UP)
1136         (v2si_UP, v2sf_UP, v1df_UP, di_UP, df_UP, v16qi_UP, v8hi_UP, v8hf_UP)
1137         (v4si_UP, v4sf_UP, v2di_UP, v2df_UP, ti_UP, oi_UP, ci_UP, xi_UP)
1138         (si_UP, sf_UP, hi_UP, hf_UP, qi_UP): Likewise.
1139         (CRC32_BUILTIN, ENTRY): Likewise.
1140         * config/aarch64/aarch64.c (aarch64_push_regs): Likewise.
1141         (aarch64_pop_regs): Likewise.
1142         (aarch64_process_components): Likewise.
1143         * config/alpha/alpha.c (alpha_emit_conditional_move): Likewise.
1144         * config/arm/arm-builtins.c (v8qi_UP, v4hi_UP, v4hf_UP, v2si_UP)
1145         (v2sf_UP, di_UP, v16qi_UP, v8hi_UP, v8hf_UP, v4si_UP, v4sf_UP)
1146         (v2di_UP, ti_UP, ei_UP, oi_UP, hf_UP, si_UP, void_UP): Likewise.
1147         * config/arm/arm.c (arm_init_libfuncs): Likewise.
1148         * config/i386/i386-builtin-types.awk (ix86_builtin_type_vect_mode):
1149         Likewise.
1150         * config/i386/i386-builtin.def (pcmpestr): Likewise.
1151         (pcmpistr): Likewise.
1152         * config/microblaze/microblaze.c (double_memory_operand): Likewise.
1153         * config/mmix/mmix.c (mmix_output_condition): Likewise.
1154         * config/powerpcspe/powerpcspe.c (rs6000_init_hard_regno_mode_ok):
1155         Likewise.
1156         * config/rl78/rl78.c (mduc_regs): Likewise.
1157         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
1158         (htm_expand_builtin): Likewise.
1159         * config/sh/sh.h (REGISTER_NATURAL_MODE): Likewise.
1160         * config/sparc/sparc.c (emit_save_or_restore_regs): Likewise.
1161         * config/xtensa/xtensa.c (print_operand): Likewise.
1162         * expmed.h (NUM_MODE_PARTIAL_INT): Likewise.
1163         (NUM_MODE_VECTOR_INT): Likewise.
1164         * genoutput.c (null_operand): Likewise.
1165         (output_operand_data): Likewise.
1166         * genrecog.c (print_parameter_value): Likewise.
1167         * lra.c (debug_operand_data): Likewise.
1169 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
1171         * dwarf2out.c (scompare_loc_descriptor_wide)
1172         (scompare_loc_descriptor_narrow): New functions, split out from...
1173         (scompare_loc_descriptor): ...here.
1174         * expmed.c (emit_store_flag_int): New function, split out from...
1175         (emit_store_flag): ...here.
1177 2017-08-30  Richard Biener  <rguenther@suse.de>
1179         * dwarf2out.c (dwarf2out_finish): Remove setting AT_pubnames.
1180         (dwarf2out_early_finish): Move setting of AT_pubnames from
1181         early debug output to early finish.
1183 2017-08-30  Jozef Lawrynowicz  <jozef.l@somniumtech.com>
1185         * gcc/config/msp430/msp430.h: Pass -mcode/data-region to the linker
1186         and -mdata-region to the assembler.
1188 2017-08-30  Richard Biener  <rguenther@suse.de>
1190         * dwarf2out.c (add_dwarf_attr): Check we don't add duplicate
1191         attributes.
1192         (gen_subprogram_die): Add DW_AT_object_pointer only early.
1193         (dwarf2out_early_global_decl): Only generate a DIE for the
1194         abstract origin if it doesn't already exist or is a declaration DIE.
1195         (resolve_addr): Do not add the linkage name twice when
1196         generating a stub DIE for the DW_TAG_GNU_call_site target.
1198 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
1200         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1201         Use machine_mode rather than int for arg1_mode.
1203 2017-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
1205         PR target/82015
1206         * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Insure
1207         that the second argument of the built-in functions to unpack
1208         128-bit scalar types to 64-bit values is 0 or 1.  Change to use a
1209         switch statement instead a lot of if statements.
1210         * config/rs6000/rs6000.md (unpack<mode>, FMOVE128_VSX iterator):
1211         Allow 64-bit values to be in Altivec registers as well as
1212         traditional floating point registers.
1213         (pack<mode>, FMOVE128_VSX iterator): Likewise.
1215 2017-08-29  Alexander Monakov  <amonakov@ispras.ru>
1217         * ira-costs.c (record_address_regs): Handle both operands of PLUS for
1218         MAX_REGS_PER_ADDRESS == 1.
1220 2017-08-29  Uros Bizjak  <ubizjak@gmail.com>
1222         * config/i386/i386.opt (flag_fentry): Do not init to -1.
1223         * config/i386/i386.c (ix86_option_override_internal): Simplify
1224         setting of opts->x_flag_entry.
1226 2017-08-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1227             Jakub Jelinek  <jakub@redhat.com>
1228             Richard Biener  <rguenther@suse.de>
1230         PR tree-optimization/81503
1231         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Ensure
1232         folded constant fits in the target type; reorder tests for clarity.
1234 2017-08-29  Martin Liska  <mliska@suse.cz>
1236         * passes.def: Include pass_lower_switch.
1237         * stmt.c (dump_case_nodes): Remove and move to
1238         tree-switch-conversion.
1239         (case_values_threshold): Likewise.
1240         (expand_switch_as_decision_tree_p): Likewise.
1241         (emit_case_decision_tree): Likewise.
1242         (expand_case): Likewise.
1243         (balance_case_nodes): Likewise.
1244         (node_has_low_bound): Likewise.
1245         (node_has_high_bound): Likewise.
1246         (node_is_bounded): Likewise.
1247         (emit_case_nodes): Likewise.
1248         (struct simple_case_node): New struct.
1249         (add_case_node): Remove.
1250         (emit_case_dispatch_table): Use vector instead of case_list.
1251         (reset_out_edges_aux): Remove.
1252         (compute_cases_per_edge): Likewise.
1253         (expand_case): Build list of simple_case_node.
1254         (expand_sjlj_dispatch_table): Use it.
1255         * tree-switch-conversion.c (struct case_node): Moved from
1256         stmt.c and adjusted.
1257         (emit_case_nodes): Likewise.
1258         (node_has_low_bound): Likewise.
1259         (node_has_high_bound): Likewise.
1260         (node_is_bounded): Likewise.
1261         (case_values_threshold): Likewise.
1262         (reset_out_edges_aux): Likewise.
1263         (compute_cases_per_edge): Likewise.
1264         (add_case_node): Likewise.
1265         (dump_case_nodes): Likewise.
1266         (balance_case_nodes): Likewise.
1267         (expand_switch_as_decision_tree_p): Likewise.
1268         (emit_jump): Likewise.
1269         (emit_case_decision_tree): Likewise.
1270         (try_switch_expansion): Likewise.
1271         (do_jump_if_equal): Likewise.
1272         (emit_cmp_and_jump_insns): Likewise.
1273         (fix_phi_operands_for_edge): New function.
1274         (record_phi_operand_mapping): Likewise.
1275         (class pass_lower_switch): New pass.
1276         (pass_lower_switch::execute): New function.
1277         (make_pass_lower_switch): Likewise.
1278         (conditional_probability):
1279         * timevar.def: Add TV_TREE_SWITCH_LOWERING.
1280         * tree-pass.h: Add make_pass_lower_switch.
1282 2017-08-29  Jozef Lawrynowicz  <jozef.l@somniumtech.com>
1284         PR target/80993
1285         * gcc/config/msp430/msp430.c (msp430_attr): Mark interrupt
1286         handlers as used.
1288 2017-08-29  Richard Biener  <rguenther@suse.de>
1290         * dwarf2out.c (add_dwarf_attr): When checking is enabled verify
1291         we do not add a DW_AT_inline attribute twice.
1292         (gen_subprogram_die): Remove code setting DW_AT_inline on
1293         DECL_ABSTRACT_P nodes.
1295 2017-08-29  Richard Sandiford  <richard.sandiford@linaro.org>
1297         * gimplify.c (gimplify_call_expr): Copy the nothrow flag to
1298         calls to internal functions.
1299         (gimplify_modify_expr): Likewise.
1300         * tree-call-cdce.c (use_internal_fn): Likewise.
1301         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
1302         (convert_to_divmod): Set the nothrow flag.
1303         * tree-if-conv.c (predicate_mem_writes):  Likewise.
1304         * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
1305         (vectorizable_call): Likewise.
1306         (vectorizable_store): Likewise.
1307         (vectorizable_load): Likewise.
1308         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
1309         (vect_recog_mask_conversion_pattern): Likewise.
1311 2017-08-29  Martin Liska  <mliska@suse.cz>
1313         PR other/39851
1314         * gcc.c (driver_handle_option): Add new argument.
1315         * opts-common.c (handle_option): Pass
1316         target_option_override_hook.
1317         * opts-global.c (lang_handle_option): Add new option.
1318         (set_default_handlers):  Add new argument.
1319         (decode_options): Likewise.
1320         * opts.c (target_handle_option): Likewise.
1321         (common_handle_option): Call target_option_override_hook.
1322         * opts.h (struct cl_option_handler_func): Add hook for
1323         target option override.
1324         (struct cl_option_handlers): Likewise.
1325         (set_default_handlers): Add new argument.
1326         (decode_options): Likewise.
1327         (common_handle_option): Likewise.
1328         (target_handle_option): Likewise.
1329         * toplev.c (toplev::main): Pass targetm.target_option.override
1330         hook.
1332 2017-08-29  Richard Biener  <rguenther@suse.de>
1333         Dominik Infuehr <dominik.infuehr@theobroma-systems.com>
1335         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Properly confine
1336         life to the active subtree.
1338 2017-08-28  Jeff Law  <law@redhat.com>
1340         * tree-ssa-dom.c (edge_info::record_simple_equiv): Call
1341         derive_equivalences.
1342         (derive_equivalences_from_bit_ior, record_temporary_equivalences):
1343         Code moved into....
1344         (edge_info::derive_equivalences): New private member function
1346         * tree-ssa-dom.c (class edge_info): Changed from a struct
1347         to a class.  Add ctor/dtor, methods and data members.
1348         (edge_info::edge_info): Renamed from allocate_edge_info.
1349         Initialize additional members.
1350         (edge_info::~edge_info): New.
1351         (free_dom_edge_info): Delete the edge info.
1352         (record_edge_info): Use new class & associated member functions.
1353         Tighten forms for testing for edge equivalences.
1354         (record_temporary_equivalences): Iterate over the simple
1355         equivalences rather than assuming there's only one per edge.
1356         (cprop_into_successor_phis): Iterate over the simple
1357         equivalences rather than assuming there's only one per edge.
1358         (optimize_stmt): Use operand_equal_p rather than pointer
1359         equality for mini-DSE code.
1361 2017-08-28  Nathan Sidwell  <nathan@acm.org>
1363         * gcc.c (execute): Fold SIGPIPE handling into switch
1364         statement.  Adjust internal error message.
1366 2017-08-28  Richard Biener  <rguenther@suse.de>
1368         PR debug/81993
1369         * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
1370         Do nothing for removed DIEs.
1372 2017-08-28  Richard Biener  <rguenther@suse.de>
1374         PR tree-optimization/81977
1375         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix look through
1376         memcpy.
1378 2017-08-28  Alexander Monakov  <amonakov@ispras.ru>
1380         PR target/80640
1381         * doc/md.texi (mem_thread_fence): Remove mention of mode.  Rewrite.
1382         * optabs.c (expand_mem_thread_fence): Emit a compiler barrier when
1383         using targetm.gen_mem_thread_fence.
1385 2017-08-27  Uros Bizjak  <ubizjak@gmail.com>
1387         PR target/81995
1388         * config/i386/i386.md (*<btsc><mode>): Change operand 2
1389         predicate to register_operand.  Reorder operands.
1390         (*btr<mode>): Ditto.
1391         (*<btsc><mode>_mask): Change operand 3 predicate to register_operand.
1392         (*btr<mode>_mask): Ditto.
1394 2017-08-25  Steven Munroe  <munroesj@gcc.gnu.org>
1396         * config.gcc (powerpc*-*-*): Add xmmintrin.h and mm_malloc.h.
1397         * config/rs6000/xmmintrin.h: New file.
1398         * config/rs6000/x86intrin.h [__ALTIVEC__]: Include xmmintrin.h.
1400 2017-08-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1402         PR target/81504
1403         * config/rs6000/rs6000-p8swap.c (find_alignment_op): Add reference
1404         parameter and_insn and return it.
1405         (recombine_lvx_pattern): Insert a copy to ensure availability of
1406         the base register of the copied masking operation at the point of
1407         the instruction replacement.
1408         (recombine_stvx_pattern): Likewise.
1410 2017-08-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
1412         * config/rs6000/rs6000.opt (-mpower9-dform-scalar): Delete
1413         undocumented switches.
1414         (-mpower9-dform-vector): Likewise.
1415         (-mpower9-dform): Likewise.
1416         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Update
1417         comments to delete references to -mpower9-dform* switches.
1418         * config/rs6000/predicates.md (vsx_quad_dform_memory_operand):
1419         Delete reference to -mpower9-dform* switches, test for
1420         -mpower9-vector instead.
1421         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Likewise.
1422         (OTHER_P9_VECTOR_MASKS): Likewise.
1423         (POWERPC_MASKS): Likewise.
1424         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Change
1425         tests against -mpower9-dform* to -mpower9-vector.  Delete code
1426         that checked for -mpower9-dform* consistancy with other options.
1427         Add test for -mpower9-misc to enable other power9 switches.
1428         (rs6000_init_hard_regno_mode_ok): Likewise.
1429         (rs6000_option_override_internal): Likewise.
1430         (rs6000_emit_prologue): Likewise.
1431         (rs6000_emit_epilogue): Likewise.
1432         (rs6000_opt_masks): Delete -mpower9-dform-{scalar,vector}.
1433         (rs6000_disable_incompatiable_switches): Delete -mpower9-dform.
1434         (emit_fusion_p9_load): Change tests for -mpower9-dform-scalar
1435         -mpower9-vector.
1436         (emit_fusion_p9_store): Likewise.
1437         * config/rs6000/rs6000.h (TARGET_P9_DFORM_SCALAR): Delete
1438         resetting these macros if the assembler does not support ISA 3.0
1439         instructions.
1440         (TARGET_P9_DFORM_VECTOR): Likewise.
1441         * config/rs6000/rs6000.md (peepholes to optimize altivec memory):
1442         Change to use -mpower9-vector instead of -mpower9-dform-scalar.
1444 2017-08-25  Alan Modra  <amodra@gmail.com>
1446         PR rtl-optimization/81747
1447         * cse.c (cse_extended_basic_block): Don't attempt to record
1448         equivalences for degenerate conditional branches that branch
1449         to their fall-through.
1451 2017-08-24  Martin Sebor  <msebor@redhat.com>
1453         PR middle-end/81908
1454         * gimple-fold.c (size_must_be_zero_p): New function.
1455         (gimple_fold_builtin_memory_op): Call it.
1457 2017-08-24  Steven Munroe  <munroesj@gcc.gnu.org>
1459         * config/rs6000/mm_malloc.h: New file.
1461 2017-08-24  Bin Cheng  <bin.cheng@arm.com>
1463         PR tree-optimization/81913
1464         * tree-ssa-loop-niter.c (number_of_iterations_cond): Skip niter
1465         analysis when either IVs in condition can wrap.
1467 2017-08-24  Uros Bizjak  <ubizjak@gmail.com>
1469         * dwarf2out.c (MAX_ARTIFICIAL_LABEL_BYTES): Increase to 40.
1470         * dwarf2cfi.c (MAX_ARTIFICIAL_LABEL_BYTES): Remove.
1472 2017-08-24  Richard Biener  <rguenther@suse.de>
1474         PR target/81921
1475         * targhooks.c (default_target_can_inline_p): Properly
1476         use target_option_default_node when no DECL_FUNCTION_SPECIFIC_TARGET
1477         is present and always compare.
1478         * config/i386/i386.c (ix86_valid_target_attribute_tree): Do not
1479         infer -mfpmath=sse from TARGET_SSE_P.
1480         (ix86_can_inline_p): Properly use target_option_default_node when
1481         no DECL_FUNCTION_SPECIFIC_TARGET is present and always compare.
1483 2017-08-24  Richard Biener  <rguenther@suse.de>
1485         PR debug/81936
1486         * dwarf2out.c (output_die): Handle flag_generate_offload like
1487         flag_generate_lto.
1488         (output_comp_unit): Likewise.
1489         (gen_array_type_die): Likewise.
1490         (dwarf2out_early_finish): Likewise.
1491         (note_variable_value_in_expr): Likewise.
1492         (dwarf2out_finish): Likewise.  Adjust assert.
1493         * cgraphunit.c (symbol_table::compile): Move setting of
1494         flag_generate_offload earlier ...
1495         (symbol_table::finalize_compilation_unit): ... here, before
1496         early debug finalization.
1498 2017-08-24  Richard Biener  <rguenther@suse.de>
1500         * config/i386/i386.c: Include symbol-summary.h, ipa-prop.h
1501         and ipa-fnsummary.h.
1502         (ix86_can_inline_p): When ix86_fpmath flags do not match
1503         check whether the callee uses FP math at all.
1505 2017-08-24  Aldy Hernandez  <aldyh@redhat.com>
1507         PR middle-end/81931
1508         * tree-ssanames.c (get_nonzero_bits): Use element_precision
1509         instead of TYPE_PRECISION.
1511 2017-08-24  Richard Sandiford  <richard.sandiford@linaro.org>
1512             Alan Hayward  <alan.hayward@arm.com>
1513             David Sherwood  <david.sherwood@arm.com>
1515         * combine.c (make_extraction): Use subreg_offset_from_lsb.
1517 2017-08-23  Daniel Santos  <daniel.santos@pobox.com>
1519         * config/i386/i386.h (ix86_frame::stack_realign_allocate_offset):
1520         Remove field.
1521         (ix86_frame::stack_realign_allocate): New field.
1522         (struct machine_frame_state): Modify comments.
1523         (machine_frame_state::sp_realigned_fp_end): New field.
1524         * config/i386/i386.c (ix86_compute_frame_layout): Rework stack frame
1525         layout calculation.
1526         (sp_valid_at): Add assertion to assure no attempt to access invalid
1527         offset of a realigned stack.
1528         (fp_valid_at): Likewise.
1529         (choose_baseaddr): Modify comments.
1530         (ix86_emit_outlined_ms2sysv_save): Adjust to changes in
1531         ix86_expand_prologue.
1532         (ix86_expand_prologue): Modify stack realignment and allocation.
1533         (ix86_expand_epilogue): Modify comments.
1534         * doc/sourcebuild.texi: Add documentation for target selectors avx2,
1535         avx2_runtime, avx512f, and avx512f_runtime.
1537 2017-08-23  Uros Bizjak  <ubizjak@gmail.com>
1539         * config/i386/i386.opt: Remove unneeded Init(0) initializations.
1540         (mstackrealign): Do not init to -1.
1541         * config/i386/i386.c (ix86_option_override_internal):
1542         Check opts_set, not opts when setting default value of
1543         opts->x_ix86_force_align_arg_pointer.
1545 2017-08-23  Richard Biener  <rguenther@suse.de>
1547         * function.c (fndecl_name): Use verbosity 1 (no arguments) for
1548         lang_hooks.decl_printable_name.
1549         * print-rtl-function.c (print_rtx_function): Likewise.
1550         * tree-pretty-print.c (dump_function_header): Likewise.
1552 2017-08-23  Richard Biener  <rguenther@suse.de>
1554         PR lto/81940
1555         * dwarf2out.c (dwarf2out_abstract_function): Handle LTO with
1556         -g0 at compile-time.
1558 2017-08-23  Tamar Christina  <tamar.christina@arm.com>
1560         PR middle-end/19706
1561         * doc/sourcebuild.texi (Other hardware attributes):
1562         Document xorsign.
1564 2017-08-23  Tamar Christina  <tamar.christina@arm.com>
1566         PR middle-end/19706
1567         * tree-ssa-math-opts.c (convert_expand_mult_copysign):
1568         Fix single-use check.
1570 2017-08-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1572         * gcc.c (execute): Only test for SIGKILL and SIGQUIT if available.
1574 2017-08-22  Daniel Santos  <daniel.santos@pobox.com>
1576         * doc/install.texi: Modify to add more details on running selected
1577         tests.
1579 2017-08-22  Daniel Santos  <daniel.santos@pobox.com>
1581         * config/i386/i386.c (ix86_option_override_internal): Error when -mx32
1582         is combined with -mabi=ms.
1583         (ix86_function_type_abi): Limit errors for mixing -mx32 with attribute
1584         ms_abi.
1586 2017-08-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1588         PR tree-optimization/81488
1589         * gimple-ssa-strength-reduction (struct slsr_cand_d): Add visited
1590         and cached_basis fields.
1591         (MAX_SPREAD): New constant.
1592         (alloc_cand_and_find_basis): Initialize new fields.
1593         (clear_visited): New function.
1594         (create_phi_basis_1): Rename from create_phi_basis, set visited
1595         and cached_basis fields.
1596         (create_phi_basis): New wrapper function.
1597         (phi_add_costs_1): Rename from phi_add_costs, add spread
1598         parameter, set visited field, short-circuit when limits reached.
1599         (phi_add_costs): New wrapper function.
1600         (record_phi_increments_1): Rename from record_phi_increments, set
1601         visited field.
1602         (record_phi_increments): New wrapper function.
1603         (phi_incr_cost_1): Rename from phi_incr_cost, set visited field.
1604         (phi_incr_cost): New wrapper function.
1605         (all_phi_incrs_profitable_1): Rename from
1606         all_phi_incrs_profitable, set visited field.
1607         (all_phi_incrs_profitable): New wrapper function.
1609 2017-08-22  Richard Sandiford  <richard.sandiford@linaro.org>
1610             Alan Hayward  <alan.hayward@arm.com>
1611             David Sherwood  <david.sherwood@arm.com>
1613         * rtl.h (paradoxical_subreg_p): Define inline, and add a version
1614         that takes the outer and inner modes.
1615         * doc/rtl.texi: Use paradoxical_subreg_p instead of a GET_MODE_SIZE
1616         comparison as the canonical test for a paradoxical subreg.
1617         * combine.c (simplify_set): Use paradoxical_subreg_p.
1618         (make_extraction): Likewise.
1619         (force_to_mode): Likewise.
1620         (rtx_equal_for_field_assignment_p): Likewise.
1621         (gen_lowpart_for_combine): Likewise.
1622         (simplify_comparison): Likewise.
1623         * cse.c (equiv_constant): Likewise.
1624         * expmed.c (store_bit_field_1): Likewise.
1625         * final.c (alter_subreg): Likewise.
1626         * fwprop.c (propagate_rtx): Likewise.
1627         (forward_propagate_subreg): Likewise.
1628         * ira-conflicts.c (ira_build_conflicts): Likewise.
1629         * lower-subreg.c (simplify_gen_subreg_concatn): Likewise.
1630         * lra-constraints.c (curr_insn_transform): Likewise.
1631         (split_reg): Likewise.
1632         * lra-eliminations.c (move_plus_up): Likewise.
1633         (lra_eliminate_regs_1): Likewise.
1634         * recog.c (general_operand): Likewise.
1635         * ree.c (combine_reaching_defs): Likewise.
1636         * reload.c (push_reload): Likewise.
1637         (find_reloads): Likewise.
1638         * reload1.c (elimination_effects): Likewise.
1639         (compute_reload_subreg_offset): Likewise.
1640         (choose_reload_regs): Likewise.
1641         * rtlanal.c (subreg_lsb_1): Likewise.
1642         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
1643         (simplify_subreg): Likewise.
1644         * var-tracking.c (track_loc_p): Likewise.
1645         * emit-rtl.c (byte_lowpart_offset): Likewise.
1646         (paradoxical_subreg_p): Delete out-of-line definition.
1648 2017-08-22  Jeff Law  <law@redhat.com>
1650         PR tree-optimization/81741
1651         PR tree-optimization/71947
1652         * tree-ssa-dom.c: Include tree-inline.h.
1653         (record_temporary_equivalences): Only record SSA_NAME = SSA_NAME
1654         equivalences if one is more expensive to compute than the other.
1655         * tree-ssa-scopedtables.h (class const_or_copies): Make
1656         record_const_or_copy_raw method private.
1657         (class avail_exprs_stack): New method simplify_binary_operation.
1658         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Call
1659         avail_exprs_stack::simplify_binary_operation as needed.
1660         (avail_exprs_stack::simplify_binary_operation): New function.
1662 2017-08-22  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1664         * config.gcc (powerpc-*-rtems*): Add rs6000/linux64.opt.
1665         * config/rs6000/rtems.h (ASM_PREFERRED_EH_DATA_FORMAT): New define.
1666         (DOT_SYMBOLS): Likewise.
1667         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
1668         (RELOCATABLE_NEEDS_FIXUP): Likewise.
1669         (RS6000_ABI_NAME): Likewise.
1670         (TARGET_CMODEL): Likewise.
1671         (TOC_SECTION_ASM_OP): Likewise.
1672         (SET_CMODEL): New macro.
1673         (SUBSUBTARGET_OVERRIDE_OPTIONS): Evaluate cmodel options.
1675 2017-08-22  Richard Biener  <rguenther@suse.de>
1677         * tree-inline.c (remap_type_1): Change asserts on TYPE_SIZE[_UNIT]
1678         to allow for free-lang-data replacements similar to verify_type_variant.
1680 2017-08-22  Richard Sandiford  <richard.sandiford@linaro.org>
1681             Alan Hayward  <alan.hayward@arm.com>
1682             David Sherwood  <david.sherwood@arm.com>
1684         * config/aarch64/aarch64.md (casesi): Use DImode rather than
1685         VOIDmode for the LABEL_REF.
1687 2017-08-22  Richard Biener  <rguenther@suse.de>
1689         * tree-cfg.c (gimple_split_edge): Avoid reallocating target PHI nodes.
1691 2017-08-22  Richard Biener  <rguenther@suse.de>
1693         * common.opt (feliminate-dwarf2-dups): Ignore.
1694         * doc/invoke.texi (feliminate-dwarf2-dups): Remove documentation.
1695         * dwarf2out.c (push_new_compile_unit, pop_compile_unit,
1696         same_die_p_wrap, compute_section_prefix,
1697         is_symbol_die, assign_symbol_names, break_out_includes): Remove.
1698         (comdat_symbol_id, comdat_symbol_number): Likewise.
1699         (cu_hash_table_entry, cu_hash_table_entry_hasher, cu_hash_type):
1700         Likewise.
1701         (check_duplicate_cu, record_comdat_symbol_number): Likewise.
1702         (output_die): Mark unreachable path unreachable.
1703         (dwarf2out_start_source_file): Do not create DW_TAG_GNU_BINCL.
1704         (dwarf2out_end_source_file): Do not create DW_TAG_GNU_EINCL.
1705         (dwarf2out_init): Remove code handling flag_eliminate_dwarf2_dups.
1706         (dwarf2out_early_finish): Likewise.
1708 2017-08-22  Aldy Hernandez  <aldyh@redhat.com>
1710         * wide-int.h (hwi_with_prec::hwi_with_prec): Sign extend.
1712 2017-08-22  Georg-Johann Lay  <avr@gjlay.de>
1714         PR target/81910
1715         * config/avr/avr.c (avr_handle_addr_attribute): Early return if
1716         not VAR_P. Filter attribute warnings with OPT_Wattributes.
1717         (avr_attribute_table) <io, io_low, address>: Initialize
1718         .decl_required with true.
1720 2017-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
1722         * config/rs6000/rs6000-cpus.def (-mvsx-scalar-float): Delete
1723         undocumented debugging options.
1724         (-mvsx-scalar-double): Likewise.
1725         (-mallow-df-permute): Likewise.
1726         (-mvectorize-builtins): Likewise.
1727         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
1728         (rs6000_builtin_vectorized_function): Likewise.
1729         (rs6000_builtin_md_vectorized_function): Likewise.
1730         (rs6000_opt_vars): Likewise.
1732 2017-08-21  Uros Bizjak  <ubizjak@gmail.com>
1734         PR target/46091
1735         * config/i386/i386.md (*btsq_imm): Rename from *btsq.
1736         (*btrq_imm): Rename from *btrq.
1737         (*btcq_imm): Rename from *btcq.
1738         (btsc): New code attribute.
1739         (*<btsc><mode>): New insn pattern.
1740         (*btr<mode>): Ditto.
1741         (*<btsc><mode>_mask): New insn_and_split pattern.
1742         (*btr<mode>_mask): Ditto.
1744 2017-08-21  Richard Sandiford  <richard.sandiford@linaro.org>
1745             Alan Hayward  <alan.hayward@arm.com>
1746             David Sherwood  <david.sherwood@arm.com>
1748         * function.c (pad_below): Simplify padding calculation.
1750 2017-08-21  Richard Sandiford  <richard.sandiford@linaro.org>
1751             Alan Hayward  <alan.hayward@arm.com>
1752             David Sherwood  <david.sherwood@arm.com>
1754         * target.def (function_prologue): Remove frame size argument.
1755         (function_epilogue): Likewise.
1756         * doc/tm.texi: Regenerate.
1757         * final.c (final_start_function): Update call to function_prologue.
1758         (final_end_function): Update call to function_epilogue.
1759         (default_function_pro_epilogue): Remove frame size argument.
1760         * output.h (default_function_pro_epilogue): Likewise.
1761         * config/arm/arm.c (arm_output_function_epilogue): Likewise.
1762         (arm_output_function_prologue): Likewise.
1763         * config/frv/frv.c (frv_function_prologue): Likewise.
1764         (frv_function_epilogue): Likewise.
1765         * config/i386/i386.c (ix86_output_function_epilogue): Likewise.
1766         * config/ia64/ia64.c (ia64_output_function_prologue): Likewise.
1767         (ia64_output_function_epilogue): Likewise.
1768         * config/m32r/m32r.c (m32r_output_function_prologue): Likewise.
1769         (m32r_output_function_epilogue): Likewise.
1770         * config/microblaze/microblaze.c (microblaze_function_prologue)
1771         (microblaze_function_epilogue): Likewise.
1772         * config/mips/mips.c (mips_output_function_prologue): Likewise.
1773         (mips_output_function_epilogue): Likewise.
1774         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Likewise.
1775         (mmix_target_asm_function_epilogue): Likewise.
1776         * config/msp430/msp430.c (msp430_start_function): Likewise.
1777         * config/nds32/nds32.c (nds32_asm_function_prologue): Likewise.
1778         (nds32_asm_function_epilogue): Likewise.
1779         * config/nios2/nios2.c (nios2_asm_function_prologue): Likewise.
1780         * config/pa/pa.c (pa_output_function_prologue): Likewise.
1781         (pa_output_function_epilogue): Likewise.
1782         * config/powerpcspe/powerpcspe.c (rs6000_output_function_prologue)
1783         (rs6000_output_function_epilogue): Likewise.
1784         * config/rl78/rl78.c (rl78_start_function): Likewise.
1785         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Likewise.
1786         (rs6000_output_function_epilogue): Likewise.
1787         * config/rx/rx.c (rx_output_function_prologue): Likewise.
1788         * config/sh/sh.c (sh_output_function_epilogue): Likewise.
1789         * config/sparc/sparc.c (sparc_asm_function_prologue): Likewise.
1790         (sparc_asm_function_epilogue): Likewise.
1792 2017-08-21  Richard Sandiford  <richard.sandiford@linaro.org>
1794         * tree.h (type_has_mode_precision_p): New function.
1795         * convert.c (convert_to_integer_1): Use it.
1796         * expr.c (expand_expr_real_2): Likewise.
1797         (expand_expr_real_1): Likewise.
1798         * fold-const.c (fold_single_bit_test_into_sign_test): Likewise.
1799         * match.pd: Likewise.
1800         * tree-ssa-forwprop.c (simplify_rotate): Likewise.
1801         * tree-ssa-math-opts.c (convert_mult_to_fma): Likewise.
1802         * tree-tailcall.c (process_assignment): Likewise.
1803         * tree-vect-loop.c (vectorizable_reduction): Likewise.
1804         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern)
1805         (vect_recog_mult_pattern, vect_recog_divmod_pattern): Likewise.
1806         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
1807         (vectorizable_assignment): Likewise.
1808         (vectorizable_shift): Likewise.
1809         (vectorizable_operation): Likewise.
1810         * tree-vrp.c (register_edge_assert_for_2): Likewise.
1812 2017-08-21  Wilco Dijkstra  <wdijkstr@arm.com>
1814         * match.pd: Add pow (C, x) simplification.
1816 2017-08-21  Richard Biener  <rguenther@suse.de>
1818         PR tree-optimization/81900
1819         * tree-ssa-pre.c (compute_antic_aux): Properly compute changed
1820         for blocks with abnormal predecessors.
1821         (compute_antic): Do not set visited flag prematurely.
1823 2017-08-21  Georg-Johann Lay  <avr@gjlay.de>
1825         PR target/79883
1826         * config/avr/avr.c (avr_set_current_function): Typo in diagnostic.
1828 2017-08-21  Richard Sandiford  <richard.sandiford@linaro.org>
1830         * stor-layout.h (vector_type_mode): Move to...
1831         * tree.h (vector_type_mode): ...here.
1832         * stor-layout.c (vector_type_mode): Move to...
1833         * tree.c (vector_type_mode): ...here.  Include rtl.h and regs.h.
1835 2017-08-21  Richard Biener  <rguenther@suse.de>
1837         * debug.h (struct gcc_debug_hooks): Add die_ref_for_decl and
1838         register_external_die hooks.
1839         (debug_false_tree_charstarstar_uhwistar): Declare.
1840         (debug_nothing_tree_charstar_uhwi): Likewise.
1841         * debug.c (do_nothing_debug_hooks): Adjust.
1842         (debug_false_tree_charstarstar_uhwistar): New do nothing.
1843         (debug_nothing_tree_charstar_uhwi): Likewise.
1844         * dbxout.c (dbx_debug_hooks): Adjust.
1845         (xcoff_debug_hooks): Likewise.
1846         * sdbout.c (sdb_debug_hooks): Likewise.
1847         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1848         * dwarf2out.c (macinfo_label_base): New global.
1849         (dwarf2out_register_external_die): New function for the
1850         register_external_die hook.
1851         (dwarf2out_die_ref_for_decl): Likewise for die_ref_for_decl.
1852         (dwarf2_debug_hooks): Use them.
1853         (dwarf2_lineno_debug_hooks): Adjust.
1854         (struct die_struct): Add with_offset flag.
1855         (DEBUG_LTO_DWO_INFO_SECTION, DEBUG_LTO_INFO_SECTION,
1856         DEBUG_LTO_DWO_ABBREV_SECTION, DEBUG_LTO_ABBREV_SECTION,
1857         DEBUG_LTO_DWO_MACINFO_SECTION, DEBUG_LTO_MACINFO_SECTION,
1858         DEBUG_LTO_DWO_MACRO_SECTION, DEBUG_LTO_MACRO_SECTION,
1859         DEBUG_LTO_LINE_SECTION, DEBUG_LTO_DWO_STR_OFFSETS_SECTION,
1860         DEBUG_LTO_STR_DWO_SECTION, DEBUG_STR_LTO_SECTION): New macros
1861         defining section names for the early LTO debug variants.
1862         (reset_indirect_string): New helper.
1863         (add_AT_external_die_ref): Helper for dwarf2out_register_external_die.
1864         (print_dw_val): Add support for offsetted symbol references.
1865         (get_ultimate_context): Split out from is_cxx.
1866         (is_cxx): Use get_ultimate_context.
1867         (is_fortran): Add decl overload.
1868         (compute_comp_unit_symbol): Split out worker from
1869         compute_section_prefix.
1870         (compute_section_prefix): Call compute_comp_unit_symbol and
1871         set comdat_type_p here.
1872         (output_die): Skip DIE symbol output for the LTO added one.
1873         Handle DIE symbol references with offset.
1874         (output_comp_unit): Guard section name mangling properly.
1875         For LTO debug sections emit a symbol at the section beginning
1876         which we use to refer to its DIEs.
1877         (add_abstract_origin_attribute): For DIEs registered via
1878         dwarf2out_register_external_die directly refer to the early
1879         DIE rather than indirectly through the shadow one we created.
1880         Remove obsolete call to dwarf2out_abstract_function for
1881         non-function/block origins.
1882         (gen_array_type_die): When generating early LTO debug do
1883         not emit DW_AT_string_length.
1884         (gen_formal_parameter_die): Do not re-create DIEs for PARM_DECLs
1885         late when in LTO.  As suggested place a gcc_unreachable for
1886         the DECL_ABSTRACT_P case.
1887         (gen_subprogram_die): Avoid another specification DIE
1888         for early built declarations/definitions for the late LTO case.
1889         (gen_variable_die): Add type references for late duplicated VLA dies
1890         when in late LTO.
1891         (gen_inlined_subroutine_die): Do not call dwarf2out_abstract_function,
1892         we have the abstract instance already.
1893         (process_scope_var): Adjust decl DIE contexts in LTO which
1894         first puts them in limbo.
1895         (gen_decl_die): Do not generate type DIEs late apart from
1896         types for VLAs or for decls we do not yet have a DIE.  Do not
1897         call dwarf2out_abstract_function late.
1898         (dwarf2out_early_global_decl): Make sure to create DIEs
1899         for abstract instances of a decl first.
1900         (dwarf2out_late_global_decl): Adjust comment.
1901         (output_macinfo_op): With multiple macro sections use
1902         macinfo_label_base to distinguish labels.
1903         (output_macinfo): Likewise.  Update macinfo_label_base.
1904         Pass in the line info label.
1905         (note_variable_value_in_expr): When generating LTO resolve
1906         all variable values here by generating DIEs as needed.
1907         (init_sections_and_labels): Add early LTO debug flag parameter
1908         and generate different sections and names if set.  Add generation
1909         counter for the labels so we can have multiple of them.
1910         (reset_dies): Helper to allow DIEs to be output multiple times.
1911         (dwarf2out_finish): When outputting DIEs to the fat part of an
1912         LTO object first reset DIEs.
1913         (dwarf2out_early_finish): Output early DIEs when generating LTO.
1914         (modified_type_die): Check for decl_ultimate_origin being self
1915         before recursing.
1916         (gen_type_die_with_usage): Likewise.
1917         (gen_typedef_die): Allow decl_ultimate_origin being self.
1918         (set_decl_abstract_flags): Remove.
1919         (set_block_abstract_flags): Likewise.
1920         (dwarf2out_abstract_function): Treat the early generated DIEs
1921         as the abstract copy and only add DW_AT_inline and
1922         DW_AT_artificial here and call set_decl_origin_self.
1923         If the DIE has an abstract origin don't do anything.
1924         * tree.c (free_lang_data): Build a dummy TRANSLATION_UNIT_DECL
1925         if we have none yet (Go fails to build one, PR78628).
1926         (variably_modified_type_p): Prevent endless recursion for Ada
1927         cyclic pointer types.
1928         * lto-streamer-in.c: Include debug.h.
1929         (dref_queue): New global.
1930         (lto_read_tree_1): Stream in DIE references.
1931         (lto_input_tree): Register DIE references.
1932         (input_function): Stream DECL_DEBUG_ARGS.
1933         * lto-streamer-out.c: Include debug.h.
1934         (lto_write_tree_1): Output DIE references.
1935         (DFS::DFS_write_tree_body): Follow DECL_ABSTRACT_ORIGIN.
1936         Force a TRANSLATION_UNIT_DECL DECL_CONTEXT for file-scope decls.
1937         (output_function): Stream DECL_DEBUG_ARGS.
1938         * tree-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
1939         Stream DECL_ABSTRACT_ORIGIN.
1940         * tree-streamer-out.c (write_ts_decl_common_tree_pointers): Likewise.
1941         (write_ts_decl_minimal_tree_pointers): Force a TRANSLATION_UNIT_DECL
1942         DECL_CONTEXT for file-scope decls.
1943         * lto-streamer.h (struct dref_entry): Declare.
1944         (dref_queue): Likewise.
1945         * cfgexpand.c (pass_expand::execute): Do not call the
1946         outlining_inline_function hook here.
1947         * lto-wrapper.c (debug_obj): New global.
1948         (tool_cleanup): Unlink it if required.
1949         (debug_objcopy): New function.
1950         (run_gcc): Handle early debug sections in the IL files by
1951         extracting them to separate files, partially linkin them and
1952         feeding the result back as result to the linker.
1953         * config/darwin.h (DEBUG_LTO_INFO_SECTION, DEBUG_LTO_ABBREV_SECTION,
1954         DEBUG_LTO_MACINFO_SECTION, DEBUG_LTO_LINE_SECTION,
1955         DEBUG_STR_LTO_SECTION, DEBUG_LTO_MACRO_SECTION): Put early debug
1956         sections into a separate segment.
1957         * config/darwin.c (darwin_asm_named_section): Handle __GNU_DWARF_LTO
1958         segments.
1959         (darwin_asm_dwarf_section): Likewise.
1960         (darwin_asm_output_dwarf_offset): Likewise.
1961         * config/i386/i386.c (make_resolver_func): Set DECL_IGNORED_P.
1963 2017-08-21  Richard Sandiford  <richard.sandiford@linaro.org>
1964             Alan Hayward  <alan.hayward@arm.com>
1965             David Sherwood  <david.sherwood@arm.com>
1967         * read-md.h (md_reader::record_potential_iterator_use): Replace
1968         pointer argument with an rtx and an index.
1969         * read-rtl.c (iterator_group::apply_iterator): Likewise.
1970         (apply_mode_iterator): Likewise.
1971         (apply_code_iterator): Likewise.
1972         (apply_int_iterator): Likewise.
1973         (apply_subst_iterator): Likewise.
1974         (record_iterator_use): Likewise.
1975         (record_attribute_use): Likewise.
1976         (md_reader::record_potential_iterator_use): Likewise.  Update calls
1977         to record_iterator_use and apply_iterator.
1978         (iterator_use): Replace ptr with x and index.
1979         (attribute_use): Likewise.
1980         (apply_attribute_uses): Update calls to apply_iterator.
1981         (apply_iterators): Likewise.  Update initialization of iterator_use.
1982         (rtx_reader::read_rtx_code): Update calls to record_iterator_use
1983         and record_potential_iterator_use.
1984         (rtx_reader::read_rtx_operand): Likewise.
1986 2017-08-21  Richard Sandiford  <richard.sandiford@linaro.org>
1987             Alan Hayward  <alan.hayward@arm.com>
1988             David Sherwood  <david.sherwood@arm.com>
1990         * varasm.c (const_rtx_hash_1): Don't hash in the mode of a
1991         CONST_WIDE_INT.
1993 2017-08-21  Richard Biener  <rguenther@suse.de>
1995         PR middle-end/81884
1996         * tree-ssa-alias.c (stmt_kills_ref_p): Handle array accesses
1997         at struct end conservatively when comparing common bases.
1999 2017-08-21  Richard Biener  <rguenther@suse.de>
2001         * tree-ssa-loop-im.c (struct lim_aux_data): Add ref index member.
2002         (mem_ref_in_stmt): Remove.
2003         (determine_max_movement): Use ref index to get at the reference.
2004         (invariantness_dom_walker::before_dom_children): Deal with
2005         lim data already initialized.
2006         (gather_mem_refs_stmt): Initialize lim data and record ref index.
2008 2017-08-19  Uros Bizjak  <ubizjak@gmail.com>
2010         * config/i386/i386.h (OPTION_MASK_ISA_ROUND): Remove.
2011         (TARGET_ISA_ROUND): Ditto.
2012         (TARGET_ROUND): Ditto.
2013         * config/i386/i386.c: Substitute TARGET_ROUND with TARGET_SSE4_1.
2014         * config/i386/i386.md: Ditto.
2015         * config/i386/sse.md: Ditto.
2016         * config/i386/i386-builtin.def: Substitute OPTION_MASK_ISA_ROUND
2017         with OPTION_MASK_ISA_SSE4_1.
2019 2017-08-19  Uros Bizjak  <ubizjak@gmail.com>
2021         PR target/81894
2022         * doc/extend.texi (x86 Built-in Functions): Correct the name of
2023         __builtin_ia32_lzcnt_u16.
2025 2017-08-18  Peter Bergner  <bergner@vnet.ibm.com>
2027         PR target/80210
2028         * config/rs6000/rs6000.c (rs6000_activate_target_options): New function.
2029         (rs6000_set_current_function): Rewrite function to use it.
2031 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
2033         PR c/53037
2034         * print-tree.c (print_node): Support DECL_WARN_IF_NOT_ALIGN
2035         and TYPE_WARN_IF_NOT_ALIGN.
2036         * stor-layout.c (do_type_align): Merge DECL_WARN_IF_NOT_ALIGN.
2037         (handle_warn_if_not_align): New.
2038         (place_union_field): Call handle_warn_if_not_align.
2039         (place_field): Call handle_warn_if_not_align.
2040         Copy TYPE_WARN_IF_NOT_ALIGN.
2041         (finish_builtin_struct): Copy TYPE_WARN_IF_NOT_ALIGN.
2042         (layout_type): Likewise.
2043         * tree-core.h (tree_type_common): Add warn_if_not_align.  Set
2044         spare to 18.
2045         (tree_decl_common): Add warn_if_not_align.
2046         * tree.c (build_range_type_1): Copy TYPE_WARN_IF_NOT_ALIGN.
2047         * tree.h (TYPE_WARN_IF_NOT_ALIGN): New.
2048         (SET_TYPE_WARN_IF_NOT_ALIGN): Likewise.
2049         (DECL_WARN_IF_NOT_ALIGN): Likewise.
2050         (SET_DECL_WARN_IF_NOT_ALIGN): Likewise.
2051         * doc/extend.texi: Document warn_if_not_aligned attribute.
2052         * doc/invoke.texi: Document -Wif-not-aligned and -Wpacked-not-aligned.
2054 2017-08-17  Martin Liska  <mliska@suse.cz>
2056         PR bootstrap/81864
2057         * tree-loop-distribution.c (ddrs_table): Change type to pointer type.
2058         (get_data_dependence): Use it as pointer type.
2059         (distribute_loop): Likewise.
2061 2017-08-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2063         * config/rs6000/altivec.md (UNSPEC_VMRGOW_DIRECT): New constant.
2064         (p8_vmrgew_v4sf_direct): Generalize to p8_vmrgew_<mode>_direct.
2065         (p8_vmrgow_<mode>_direct): New define_insn.
2066         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Properly
2067         handle endianness for vmrgew and vmrgow permute patterns.
2069 2017-08-17  Peter Bergner  <bergner@vnet.ibm.com>
2071         * config/rs6000/altivec.md (VParity): Remove TARGET_VSX_TIMODE.
2072         * config/rs6000/rs6000-cpus.def: Remove comment.
2073         (ISA_2_7_MASKS_SERVER): Delete OPTION_MASK_VSX_TIMODE;
2074         (POWERPC_MASKS): Likewise.
2075         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Remove unneeded
2076         use of TARGET_VSX_TIMODE.
2077         (rs6000_setup_reg_addr_masks): Change TARGET_VSX_TIMODE to TARGET_VSX.
2078         (rs6000_init_hard_regno_mode_ok): Remove unneeded uses of
2079         TARGET_VSX_TIMODE.  Change use of TARGET_VSX_TIMODE to TARGET_VSX.
2080         (rs6000_option_override_internal): Remove dead code.
2081         (rs6000_legitimize_address): Change TARGET_VSX_TIMODE to TARGET_VSX.
2082         (rs6000_legitimize_reload_address): Likewise.
2083         (rs6000_legitimate_address_p): Likewise.
2084         (rs6000_opt_masks): Delete "vsx-timode".
2085         (rs6000_disable_incompatible_switches): Remove mention of -mvsx-timode
2086         from function comment.
2087         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Delete.
2088         * config/rs6000/rs6000.md (FMOVE128_GPR): Remove TARGET_VSX_TIMODE.
2089         (V16QI, V8HI, V4SI, V4SF, V2DI, V2DF, V1TI): Remove useless empty
2090         condition.
2091         * config/rs6000/rs6000.opt (mvsx-timode): Replace with stub.
2092         * config/rs6000/vector.md (VEC_IP): Remove TARGET_VSX_TIMODE.
2093         * config/rs6000/vsx.md (VSX_LE_128): Likewise.
2094         (VSX_TI): Likewise.
2095         (VSX_M): Likewise.
2096         (define_peephole2): Likewise.
2098 2017-08-17  Martin Sebor  <msebor@redhat.com>
2100         PR c/81859
2101         * pretty-print.c (pp_format): Use strnlen in %.*s to avoid reading
2102         past the end of an array.
2103         (test_pp_format): Add test cases.
2105 2017-08-17  Richard Sandiford  <richard.sandiford@linaro.org>
2107         * internal-fn.def (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): Add
2108         missing ECF_NOTHROW flags.
2110 2017-08-17  Peter Bergner  <bergner@vnet.ibm.com>
2112         PR target/72804
2113         * config/rs6000/vsx.md (*vsx_le_permute_<mode>): Add support for
2114         operands residing in integer registers.
2115         (*vsx_le_perm_load_<mode>): Likewise.
2116         (*vsx_le_perm_store_<mode>): Likewise.
2117         (define_peephole2): Add peepholes to optimize the above.
2119 2017-08-17  Marek Polacek  <polacek@redhat.com>
2121         PR middle-end/81814
2122         * fold-const.c (operand_equal_for_comparison_p): Remove code that used
2123         to mimic what shorten_compare did.  Change the return type to bool.
2124         (fold_cond_expr_with_comparison): Update call to
2125         operand_equal_for_comparison_p.
2126         (fold_ternary_loc): Likewise.
2128 2017-08-17  Jackson Woodruff  <jackson.woodruff@arm.com>
2130         * aarch64-simd.md (mov<mode>): No longer force zero immediate into
2131         register.
2132         (*aarch64_simd_mov<mode>): Add new case for stp using zero immediate.
2134 2017-08-17  Richard Biener  <rguenther@suse.de>
2136         * tree-ssa-structalias.c (solve_graph): When propagating
2137         to successors update the graphs succ edges and avoid duplicate work.
2139 2017-08-17  Maxim Ostapenko  <m.ostapenko@samsung.com>
2141         PR target/81861
2142         * config/i386/i386.c (ix86_option_override_internal): Save target
2143         specific options after ix86_stack_protector_guard_reg was changed.
2145 2017-08-17  Richard Biener  <rguenther@suse.de>
2147         PR tree-optimization/81827
2148         * tree-ssa-structalias.c (struct variable_info): Add is_reg_var flag.
2149         (new_var_info): Initialize it conservatively.
2150         (get_call_vi): Mark register vars.
2151         (new_scalar_tmp_constraint_exp): Likewise.
2152         (handle_rhs_call): Likewise.
2153         (handle_const_call): Likewise.
2154         (create_function_info_for): Likewise.
2155         (solve_constraints): Sort varinfos to separate register from
2156         non-register vars to pack points-to solution bitmaps during
2157         iteration.
2159 2017-08-17  Marek Polacek  <polacek@redhat.com>
2161         * gimplify.c (gimplify_adjust_omp_clauses): Compare with 0 instead of 1.
2163 2017-08-17  Richard Biener  <rguenther@suse.de>
2165         * tree-vrp.c (vrp_int_const_binop): Do not set *overflow_p
2166         to true when overflow is undefined and we saturated the result.
2168 2017-08-17  Alan Modra  <amodra@gmail.com>
2170         PR target/80938
2171         * config/rs6000/rs6000.c (rs6000_savres_strategy): Revert 2017-08-09.
2172         Don't use store multiple if only one reg needs saving.
2173         (interesting_frame_related_regno): New function.
2174         (rs6000_frame_related): Don't emit frame info for regs that
2175         don't need saving.
2176         (rs6000_emit_epilogue): Likewise.
2178 2017-08-16  Nathan Sidwell  <nathan@acm.org>
2180         * tree-core.h (tree_type_non_common): Rename binfo to lang_1.
2181         * tree.h (TYPE_BINFO): Use type_non_common.maxval.
2182         (TYPE_LANG_SLOT_1): Use type_non_common.lang_1, for any type.
2183         * tree.c (free_lang_data_in_type): Use else-if chain.  Always
2184         clear TYPE_LANG_1.  Remove obsolete member-function stripping.
2185         (find_decls_types_r): Comment about TYPE_MAX_VALUES_RAW.
2186         (verify_type): Adjust for TYPE_BINFO move.
2187         * lto-streamer-out.c (DFS::DFS_write_tree_body): No need to
2188         process TYPE_BINFO directly.
2189         (hash_tree): Likewise.
2190         * tree-streamer-in.c (lto_input_ts_type_non_common_tree_pointers):
2191         Likewise.
2192         * tree-streamer-out.c (write_ts_type_non_common_tree_pointers):
2193         Likewise.
2195 2017-08-16  David Malcolm  <dmalcolm@redhat.com>
2197         * diagnostic-show-locus.c (colorizer::m_caret): Remove unused field.
2199 2017-08-16  Uros Bizjak  <ubizjak@gmail.com>
2201         PR target/46091
2202         * config/i386/i386.md (*anddi_1_btr): Change predicates of
2203         operand 0 and operand 1 to nomimmediate_operand. Add "m" constraint.
2204         Add ix86_binary_operator_ok to insn constraint.
2205         (*iordi_1_bts): Ditto.
2206         (*xordi_1_btc): Ditto.
2207         (*btsq): Change predicate of operand 0 to nonimmediate_operand.
2208         Update corresponding peephole2 pattern.
2209         (*btrq): Ditto.
2210         (*btcq): Ditto.
2212 2017-08-16  Bin Cheng  <bin.cheng@arm.com>
2214         PR tree-optimization/81832
2215         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Don't
2216         copy loop header which has IFN_LOOP_DIST_ALIAS call.
2218 2017-08-16  Marek Polacek  <polacek@redhat.com>
2220         PR middle/81695
2221         * fold-const.c (fold_indirect_ref_1): Restore original behavior
2222         regarding size_zero_node.
2224 2017-08-16  Martin Liska  <mliska@suse.cz>
2226         PR target/81753
2227         * config.gcc: Respect previously set extra_objs in case
2228         of darwin target.
2230 2017-08-16  Richard Sandiford  <richard.sandiford@linaro.org>
2232         PR tree-optimization/81835
2233         * tree-vect-loop.c (vect_is_simple_reduction): Simply checks for
2234         the phi SSA_NAME.  Check that the condition in a COND_EXPR does
2235         not depend on the phi.
2237 2017-08-16  Alan Modra  <amodra@gmail.com>
2239         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Delete
2240         dead code.
2242 2017-08-16  Alan Modra  <amodra@gmail.com>
2244         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Merge..
2245         (save_reg_p): ..into this.  Update all callers.
2246         (first_reg_to_save): Simplify.
2248 2017-08-16  Alan Modra  <amodra@gmail.com>
2250         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't restore
2251         fixed regs.
2253 2017-08-15  Joseph Myers  <joseph@codesourcery.com>
2255         PR target/78460
2256         PR target/67712
2257         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Only unroll for
2258         constant count if that count is less than 32.
2260 2017-08-15  Nathan Sidwell  <nathan@acm.org>
2262         * gcc.c (execute): Emit friendlier message if inferior is killed
2263         by an external cause.
2265 2017-08-15  Richard Biener  <rguenther@suse.de>
2267         PR tree-optimization/81790
2268         * tree-ssa-sccvn.c (vn_lookup_simplify_result): Handle both
2269         CONSTRUCTORs from simplifying and VN.
2271 2017-08-14  Martin Sebor  <msebor@redhat.com>
2273         * builtin-attrs.def: Add comments.
2275 2017-08-14  Martin Sebor  <msebor@redhat.com>
2277         PR c/81117
2278         * doc/extend.texi (attribute nonstring): Document new attribute.
2280 2017-08-14  Martin Sebor  <msebor@redhat.com>
2282         PR c/81117
2283         * tree-diagnostic.c (default_tree_printer): Handle %G.
2284         * gimple-pretty-print.h (percent_G_format): Declare new function.
2285         * gimple-pretty-print.c (percent_G_format): Define.
2286         * tree-pretty-print.c (percent_K_format): Add argument.
2288 2017-08-14  Martin Sebor  <msebor@redhat.com>
2290         PR translation/79998
2291         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
2292         Remove a stray space.
2294 2017-08-14  Uros Bizjak  <ubizjak@gmail.com>
2296         PR target/46091
2297         * config/i386/i386.md (*anddi_1_btr): New insn_and_split pattern.
2298         (*iordi_1_bts): Ditto.
2299         (*xordi_1_btc): Ditto.
2301 2017-08-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2303         PR target/79845
2304         * config/rs6000/linux64.h (INVALID_64BIT): Use quoted strings.
2305         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2306         Likewise.
2307         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Use
2308         quoted strings, and make more translator-friendly.
2309         (darwin_rs6000_override_options): Likewise.
2310         (rs6000_option_override_internal): Likewise.
2311         (rs6000_return_in_memory): Fix overlong line.
2312         (init_cmulative_args): Use quoted strings, and make more
2313         translator-friendly.
2314         (rs6000_pass_by_reference): Fix overlong line.
2315         (def_builtin): Use quoted strings.
2316         (altivec_expand_predicate_builtin): Use quoted strings, and make
2317         more translator-friendly.
2318         (htm_expand_builtin): Use quoted strings.
2319         (cpu_expand_builtin): Use quoted strings, and make more
2320         translator-friendly.
2321         (altivec_expand_builtin): Likewise.
2322         (paired_expand_predicate_builtin): Likewise.
2323         (rs6000_invalid_builtin): Likewise.
2324         (builtin_function_type): Use quoted strings.
2325         (rs6000_expand_split_stack_prologue): Use quoted strings, and make
2326         more translator-friendly.
2327         (rs6000_trampoline_init): Likewise.
2328         (rs6000_handle_altivec_attribute): Likewise.
2329         (rs6000_inner_target_options): Use quoted strings.
2330         (rs6000_disable_incompatible_switches): Likewise.
2331         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Use quoted
2332         strings, and make more translator-friendly.
2333         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use quoted strings.
2335 2017-08-14  Bin Cheng  <bin.cheng@arm.com>
2337         PR tree-optimization/81799
2338         * tree-loop-distribution.c (version_loop_by_alias_check): Force
2339         cond_expr to simple gimple operand.
2341 2017-08-14  Wilco Dijkstra  <wdijkstr@arm.com>
2343         PR middle-end/46932
2344         * doc/sourcebuild.texi (autoincdec): Add autoincdec description.
2346 2017-08-14  Georg-Johann Lay  <avr@gjlay.de>
2348         PR target/81754
2349         PR target/81268
2350         * config/avr/avr.opt (mgas-isr-prologues): New Var avr_gasisr_prologues.
2351         * config/avr/avr.md (gasisr, *gasisr): Use it instead of
2352         TARGET_GASISR_PROLOGUES.
2353         * config/avr/avr.c (avr_option_override): Same.
2354         (avr_pass_pre_proep::execute): Same.
2356 2017-08-13  H.J. Lu  <hongjiu.lu@intel.com>
2358         PR target/81820
2359         * config/i386/i386.c (ix86_finalize_stack_frame_flags): Replace
2360         frame pointer with stack pointer - UNITS_PER_WORD in debug insns.
2362 2017-08-13  Uros Bizjak  <ubizjak@gmail.com>
2364         * config/i386/i386.md (*load_tp_<mode>): Redefine as
2365         define_insn_and_split.  Split to a memory load from 0 in
2366         DEFAULT_TLS_SEG_REG address space.  Merge with *load_tp_x32
2367         using PTR mode iterator.
2368         (*load_tp_x32_zext"): Redefine as define_insn_and_split.
2369         Split to a memory load from 0 in DEFAULT_TLS_SEG_REG address space.
2370         (*add_tp_<mode>): Redefine as define_insn_and_split.
2371         Split to an add with a memory load from 0 in DEFAULT_TLS_SEG_REG
2372         address space.  Merge with *add_tp_x32 using PTR mode iterator.
2373         (*add_tp_x32_zext"): Redefine as define_insn_and_split.
2374         Split to an add with a  memory load from 0 in
2375         DEFAULT_TLS_SEG_REG address space.
2377 2017-08-12  Andrew Pinski  <apinski@cavium.com>
2379         * config/aarch64/aarch64-option-extensions.def (rdma):
2380         Fix feature string to what Linux prints out in /proc/cpuinfo.
2382 2017-08-12  Pierre-Marie de Rodat  <derodat@adacore.com>
2384         PR ada/79542
2385         * dwarf2out.c (modified_type_die): For C typedef types that have
2386         an ultimate origin, process the ultimate origin instead of the
2387         input type.
2388         (gen_typedef_die): Assert that input DECLs have no ultimate
2389         origin.
2390         (gen_type_die_with_usage): For typedef variants that have an
2391         ultimate origin, just call gen_decl_die on the original DECL.
2392         (process_scope_var): Avoid creating DIEs for local typedefs and
2393         concrete static variables.
2395 2017-08-12  Alan Modra  <amodra@gmail.com>
2397         PR target/81170
2398         PR target/81295
2399         * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Upgrade to
2400         match gnu-user.h startfile.
2401         (ENDFILE_LINUX_SPEC): Similarly.
2403 2017-08-11  Thomas Schwinge  <thomas@codesourcery.com>
2405         PR lto/81430
2406         * config/nvptx/nvptx.c (nvptx_override_options_after_change):
2407         Remove function.
2408         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Remove definition.
2410 2017-08-11  Tamar Christina  <tamar.christina@arm.com>
2411         * config/aarch64/aarch64.md (mov<mode>): Change.
2412         (*movhf_aarch64, *movsf_aarch64, *movdf_aarch64):
2413         aarch64_reg_or_fp_float into aarch64_reg_or_fp_zero.
2414         * config/aarch64/predicates.md (aarch64_reg_or_fp_float): Removed.
2416 2017-08-11  Eric Botcazou  <ebotcazou@adacore.com>
2418         * tree-sra.c (build_access_from_expr_1): Use more precise diagnostics
2419         for storage order barriers.
2421 2017-08-11  Martin Liska  <mliska@suse.cz>
2423         PR tree-opt/79987
2424         * tree-chkp.c (chkp_get_bounds_for_decl_addr): Do not instrument
2425         variables of void type.
2427 2017-08-11  Martin Liska  <mliska@suse.cz>
2429         * asan.c (asan_protect_global): Replace ASM_OUTPUT_DEF with
2430         TARGET_SUPPORTS_ALIASES.
2431         * cgraph.c (cgraph_node::create_same_body_alias): Likewise.
2432         * ipa-visibility.c (can_replace_by_local_alias): Likewise.
2433         (optimize_weakref): Likewise.
2434         * symtab.c (symtab_node::noninterposable_alias): Likewise.
2435         * varpool.c (varpool_node::create_extra_name_alias): Likewise.
2436         * defaults.h: Introduce TARGET_SUPPORTS_ALIASES.
2438 2017-08-11  Martin Liska  <mliska@suse.cz>
2440         PR ipa/81213
2441         * config/i386/i386.c (make_resolver_func): Do complete
2442         refactoring of the function.
2444 2017-08-10  Uros Bizjak  <ubizjak@gmail.com>
2446         PR target/81708
2447         * config/i386/i386.opt (mstack-protector-guard-symbol=): New option
2448         * config/i386/i386.c (ix86_stack_protect_guard): Use
2449         ix86_stack_protect_guard_symbol_str to generate varible declaration.
2450         * doc/invoke.texi (x86 Options): Document
2451         -mstack-protector-guard-symbol= option.
2453 2017-08-10  Uros Bizjak  <ubizjak@gmail.com>
2455         * config/i386/i386-protos.h (ix86_split_stack_guard): New prototype.
2456         * config/i386/i386.c (ix86_split_stack_guard): New function.
2457         (ix86_xpand_split_stack_prologue): Call ix86_split_stack_guard.
2458         (ix86_legitimate_address_p) <case UNSPEC_STACK_CHECK>: Remove.
2459         (i386_asm_output_addr_const_extra) <case UNSPEC_STACK_CHECK>: Ditto.
2460         (optput_pic_addr_const): Remove UNSPEC_STACK_CHECK handling.
2461         * config/i386/i386.md (unspec): Remove UNSPEC_STACK_CHECK.
2462         (split_stack_space_check): Call ix86_split_stack_guard.
2464 2017-08-10  Martin Sebor  <msebor@redhat.com>
2466         * print-tree.c (print_node): Print location using the established
2467         format %s:%i%i.
2468         Replace spaces with colons.
2469         (debug_raw, debug): Ditto.
2471 2017-08-10  Martin Sebor  <msebor@redhat.com>
2473         PR c++/81586
2474         * pretty-print.c (pp_format): Correct the handling of %s precision.
2476 2017-08-10  H.J. Lu  <hongjiu.lu@intel.com>
2478         PR target/81736
2479         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Renamed
2480         to ...
2481         (ix86_finalize_stack_frame_flags): This.  Also clear
2482         frame_pointer_needed if -fno-omit-frame-pointer is used without
2483         stack access.
2484         (ix86_expand_prologue): Replace ix86_finalize_stack_realign_flags
2485         with ix86_finalize_stack_frame_flags.
2486         (ix86_expand_epilogue): Likewise.
2487         (ix86_expand_split_stack_prologue): Likewise.
2488         * doc/invoke.texi: Add a note for -fno-omit-frame-pointer.
2490 2017-08-10  Martin Liska  <mliska@suse.cz>
2492         PR c++/81355
2493         * c-attribs.c (handle_target_attribute):
2494         Report warning for an empty string argument of target attribute.
2496 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
2498         PR c/81687
2499         * omp-low.c (omp_copy_decl): Don't remap FORCED_LABEL or DECL_NONLOCAL
2500         LABEL_DECLs.
2501         * tree-cfg.c (move_stmt_op): Don't adjust DECL_CONTEXT of FORCED_LABEL
2502         or DECL_NONLOCAL labels.
2503         (move_stmt_r) <case GIMPLE_LABEL>: Adjust DECL_CONTEXT of FORCED_LABEL
2504         or DECL_NONLOCAL labels here.
2506 2017-08-09  Will Schmidt  <will_schmidt@vnet.ibm.com>
2508         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add blurb
2509         to indicate when early gimple folding has been disabled.
2510         (rs6000_gimple_fold_builtin): Add debug content.
2511         (rs6000_invalid_builtin): Fix whitespace.
2512         (rs6000_expand_builtin): Fix whitespace.
2513         * config/rs6000/rs6000.opt: Add option for -mfold-gimple.
2515 2017-08-09  Segher Boessenkool  <segher@kernel.crashing.org>
2517         PR target/80938
2518         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
2519         SAVE_MULTIPLE if not all the registers that saves, should be saved.
2521 2017-08-09  Jim Wilson  <jim.wilson@linaro.org>
2523         * config/aarch64/aarch64-cores.def (falkor): Use falkor pipeline.
2524         (qdf24xx): Likewise.
2525         * config/aarch64/aarch64.md: Include falkor.md.
2526         * config/aarch64/falkor.md: New.
2528 2017-08-09  Marek Polacek  <polacek@redhat.com>
2530         PR c/81233
2531         * diagnostic-core.h (emit_diagnostic_valist): Add declaration.
2532         * diagnostic.c (emit_diagnostic): Add a comment.
2533         (emit_diagnostic_valist): New function.
2535 2017-08-09  Marek Polacek  <polacek@redhat.com>
2537         PR c/81417
2538         * input.c (make_location): New overload.
2539         * input.h (make_location): Declare.
2541 2017-08-08  Alan Modra  <amodra@gmail.com>
2542             H.J. Lu  <hongjiu.lu@intel.com>
2544         PR driver/81523
2545         * gcc.c (NO_PIE_SPEC): Delete.
2546         (PIE_SPEC): Define as !no-pie/pie.  Move static|shared|r
2547         exclusion..
2548         (LINK_PIE_SPEC): ..to here.
2549         (LINK_COMMAND_SPEC): Support -no-pie.
2550         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Correct
2551         chain of crtbegin*.o selection, update for PIE_SPEC changes and
2552         format.
2553         (GNU_USER_TARGET_ENDFILE_SPEC): Similarly.
2554         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Similarly.
2555         (ENDFILE_CRTEND_SPEC): Similarly.
2557 2017-08-08  Uros Bizjak  <ubizjak@gmail.com>
2559         PR target/81708
2560         * config/i386/i386.opt (mstack-protector-guard-reg=): New option
2561         (mstack-protector-guard-offset=): Ditto.
2562         * config/i386/i386.c (ix86_option_override): Handle
2563         -mstack-protector-guard-reg= and -mstack-protector-guard-offset=
2564         options.
2565         (ix86_stack_protect_guard): Use ix86_stack_protect_guard_reg and
2566         ix86_stack_protect_guard_offset variables.
2567         (TARGET_STACK_PROTECT_GUARD): Always define.
2568         * doc/invoke.texi (x86 Options): Document -mstack-protector-guard-reg=
2569         and -mstack-protector-guard-offset= options.
2571 2017-08-08  Bin Cheng  <bin.cheng@arm.com>
2573         * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): Handle
2574         boundary case for the last candidate.
2576 2017-08-08  Bin Cheng  <bin.cheng@arm.com>
2578         * doc/invoke.texi: Document -ftree-loop-distribution for O3.
2579         * opts.c (default_options_table): Add OPT_ftree_loop_distribution.
2581 2017-08-08  Tamar Christina  <tamar.christina@arm.com>
2583         PR middle-end/19706
2584         * config/aarch64/aarch64.md (xorsign<mode>3): New optabs.
2585         * config/aarch64/aarch64-builtins.c
2586         (aarch64_builtin_vectorized_function): Added CASE_CFN_XORSIGN.
2587         * config/aarch64/aarch64-simd-builtins.def: Added xorsign BINOP.
2588         * config/aarch64/aarch64-simd.md: Added xorsign<mode>3
2590 2017-08-08  Tamar Christina  <tamar.christina@arm.com>
2591             Andrew Pinski <pinskia@gmail.com>
2593         PR middle-end/19706
2594         * internal-fn.def (XORSIGN): New.
2595         * optabs.def (xorsign_optab): New.
2596         * tree-ssa-math-opts.c (is_copysign_call_with_1): New.
2597         (convert_expand_mult_copysign): New.
2598         (pass_optimize_widening_mul::execute): Call
2599         convert_expand_mult_copysign.
2601 2017-08-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2603         PR tree-optimization/81354
2604         * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
2605         Insert on edges rather than explicitly creating landing pads.
2606         (analyze_candidates_and_replace): Commit edge inserts.
2608 2017-08-08  Richard Biener  <rguenther@suse.de>
2610         PR middle-end/81719
2611         * tree-ssa-loop-niter.c: Include tree-dfa.h.
2612         (expand_simple_operations): Also look through ADDR_EXPRs with
2613         MEM_REF bases treating them as POINTER_PLUS_EXPR.
2615 2017-08-08  Richard Biener  <rguenther@suse.de>
2617         PR tree-optimization/81723
2618         * tree-vect-slp.c (struct bst_traits): New hash traits.
2619         (bst_fail): New global.
2620         (vect_build_slp_tree_2): New worker, split out from ...
2621         (vect_build_slp_tree): ... this now wrapping it with using
2622         bst_fail set to cache SLP tree build fails.  Properly handle
2623         max_tree_size.
2624         (vect_analyze_slp_instance): Allocate and free bst_fail.
2626 2017-08-08  Martin Liska  <mliska@suse.cz>
2628         PR tree-opt/81696
2629         * ipa-icf-gimple.c (func_checker::compare_cst_or_decl): Consider
2630         LABEL_DECLs that can be from a different function.
2632 2017-08-08  Bin Cheng  <bin.cheng@arm.com>
2634         PR tree-optimization/81744
2635         * tree-predcom.c (prepare_finalizers_chain): Deep copy expr of
2636         loop's number of iterations.
2638 2017-08-08  Martin Liska  <mliska@suse.cz>
2640         * asan.c: Include header files.
2641         * attribs.c (build_decl_attribute_variant): New function moved
2642         from tree.[ch].
2643         (build_type_attribute_qual_variant): Likewise.
2644         (cmp_attrib_identifiers): Likewise.
2645         (simple_cst_list_equal): Likewise.
2646         (omp_declare_simd_clauses_equal): Likewise.
2647         (attribute_value_equal): Likewise.
2648         (comp_type_attributes): Likewise.
2649         (build_type_attribute_variant): Likewise.
2650         (lookup_ident_attribute): Likewise.
2651         (remove_attribute): Likewise.
2652         (merge_attributes): Likewise.
2653         (merge_type_attributes): Likewise.
2654         (merge_decl_attributes): Likewise.
2655         (merge_dllimport_decl_attributes): Likewise.
2656         (handle_dll_attribute): Likewise.
2657         (attribute_list_equal): Likewise.
2658         (attribute_list_contained): Likewise.
2659         * attribs.h (lookup_attribute): New function moved from tree.[ch].
2660         (lookup_attribute_by_prefix): Likewise.
2661         * bb-reorder.c: Include header files.
2662         * builtins.c: Likewise.
2663         * calls.c: Likewise.
2664         * cfgexpand.c: Likewise.
2665         * cgraph.c: Likewise.
2666         * cgraphunit.c: Likewise.
2667         * convert.c: Likewise.
2668         * dwarf2out.c: Likewise.
2669         * final.c: Likewise.
2670         * fold-const.c: Likewise.
2671         * function.c: Likewise.
2672         * gimple-expr.c: Likewise.
2673         * gimple-fold.c: Likewise.
2674         * gimple-pretty-print.c: Likewise.
2675         * gimple.c: Likewise.
2676         * gimplify.c: Likewise.
2677         * hsa-common.c: Likewise.
2678         * hsa-gen.c: Likewise.
2679         * internal-fn.c: Likewise.
2680         * ipa-chkp.c: Likewise.
2681         * ipa-cp.c: Likewise.
2682         * ipa-devirt.c: Likewise.
2683         * ipa-fnsummary.c: Likewise.
2684         * ipa-inline.c: Likewise.
2685         * ipa-visibility.c: Likewise.
2686         * ipa.c: Likewise.
2687         * lto-cgraph.c: Likewise.
2688         * omp-expand.c: Likewise.
2689         * omp-general.c: Likewise.
2690         * omp-low.c: Likewise.
2691         * omp-offload.c: Likewise.
2692         * omp-simd-clone.c: Likewise.
2693         * opts-global.c: Likewise.
2694         * passes.c: Likewise.
2695         * predict.c: Likewise.
2696         * sancov.c: Likewise.
2697         * sanopt.c: Likewise.
2698         * symtab.c: Likewise.
2699         * toplev.c: Likewise.
2700         * trans-mem.c: Likewise.
2701         * tree-chkp.c: Likewise.
2702         * tree-eh.c: Likewise.
2703         * tree-into-ssa.c: Likewise.
2704         * tree-object-size.c: Likewise.
2705         * tree-parloops.c: Likewise.
2706         * tree-profile.c: Likewise.
2707         * tree-ssa-ccp.c: Likewise.
2708         * tree-ssa-live.c: Likewise.
2709         * tree-ssa-loop.c: Likewise.
2710         * tree-ssa-sccvn.c: Likewise.
2711         * tree-ssa-structalias.c: Likewise.
2712         * tree-ssa.c: Likewise.
2713         * tree-streamer-in.c: Likewise.
2714         * tree-vectorizer.c: Likewise.
2715         * tree-vrp.c: Likewise.
2716         * tsan.c: Likewise.
2717         * ubsan.c: Likewise.
2718         * varasm.c: Likewise.
2719         * varpool.c: Likewise.
2720         * tree.c: Remove functions moved to attribs.[ch].
2721         * tree.h: Likewise.
2722         * config/aarch64/aarch64.c: Add attrs.h header file.
2723         * config/alpha/alpha.c: Likewise.
2724         * config/arc/arc.c: Likewise.
2725         * config/arm/arm.c: Likewise.
2726         * config/avr/avr.c: Likewise.
2727         * config/bfin/bfin.c: Likewise.
2728         * config/c6x/c6x.c: Likewise.
2729         * config/cr16/cr16.c: Likewise.
2730         * config/cris/cris.c: Likewise.
2731         * config/darwin.c: Likewise.
2732         * config/epiphany/epiphany.c: Likewise.
2733         * config/fr30/fr30.c: Likewise.
2734         * config/frv/frv.c: Likewise.
2735         * config/ft32/ft32.c: Likewise.
2736         * config/h8300/h8300.c: Likewise.
2737         * config/i386/winnt.c: Likewise.
2738         * config/ia64/ia64.c: Likewise.
2739         * config/iq2000/iq2000.c: Likewise.
2740         * config/lm32/lm32.c: Likewise.
2741         * config/m32c/m32c.c: Likewise.
2742         * config/m32r/m32r.c: Likewise.
2743         * config/m68k/m68k.c: Likewise.
2744         * config/mcore/mcore.c: Likewise.
2745         * config/microblaze/microblaze.c: Likewise.
2746         * config/mips/mips.c: Likewise.
2747         * config/mmix/mmix.c: Likewise.
2748         * config/mn10300/mn10300.c: Likewise.
2749         * config/moxie/moxie.c: Likewise.
2750         * config/msp430/msp430.c: Likewise.
2751         * config/nds32/nds32-isr.c: Likewise.
2752         * config/nds32/nds32.c: Likewise.
2753         * config/nios2/nios2.c: Likewise.
2754         * config/nvptx/nvptx.c: Likewise.
2755         * config/pa/pa.c: Likewise.
2756         * config/pdp11/pdp11.c: Likewise.
2757         * config/powerpcspe/powerpcspe.c: Likewise.
2758         * config/riscv/riscv.c: Likewise.
2759         * config/rl78/rl78.c: Likewise.
2760         * config/rx/rx.c: Likewise.
2761         * config/s390/s390.c: Likewise.
2762         * config/sh/sh.c: Likewise.
2763         * config/sol2.c: Likewise.
2764         * config/sparc/sparc.c: Likewise.
2765         * config/spu/spu.c: Likewise.
2766         * config/stormy16/stormy16.c: Likewise.
2767         * config/tilegx/tilegx.c: Likewise.
2768         * config/tilepro/tilepro.c: Likewise.
2769         * config/v850/v850.c: Likewise.
2770         * config/vax/vax.c: Likewise.
2771         * config/visium/visium.c: Likewise.
2772         * config/xtensa/xtensa.c: Likewise.
2774 2017-08-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
2776         PR target/81593
2777         * config/rs6000/vsx.md (vsx_concat_<mode>, VSX_D): Cleanup
2778         constraints since the -mupper-regs-* switches have been
2779         eliminated.
2780         (vsx_concat_<mode>_1): New combiner insns to recognize inserting
2781         into a vector from a double word element that was extracted from
2782         another vector, and eliminate extra XXPERMDI instructions.
2783         (vsx_concat_<mode>_2): Likewise.
2784         (vsx_concat_<mode>_3): Likewise.
2785         (vsx_set_<mode>, VSX_D): Rewrite vector set in terms of vector
2786         concat to allow optimizing inserts from previous extracts.
2788 2017-08-07  Uros Bizjak  <ubizjak@gmail.com>
2790         * config/i386/i386.c (ix86_stack_protect_guard): Generate
2791         memory reference to a SSP offset in TLS address space.
2792         (ix86_print_operand) <case '@'>: Remove.
2793         (ix86_print_operand_punct_valid_p): Remove '@' code.
2794         * config/i386/i386.md (unspec): Remove UNSPEC_SP_TLS_SET and
2795         UNSPEC_SP_TLS_TEST.
2796         (stack_tls_protect_set_<mode>): Remove.
2797         (stack_protect_set): Do not call gen_stack_tls_protect_set_<mode>.
2798         (stack_tls_protect_test_<mode>): Remove.
2799         (stack_protect_test): Do not call gen_stack_tls_protect_test_<mode>.
2801 2017-08-07  Olivier Hainque  <hainque@adacore.com>
2803         PR target/81755
2804         * config/vxworksae.h (VXWORKS_HAVE_TLS): Define.
2806 2017-08-07  Douglas Rupp  <rupp@adacore.com>
2808         * Makefile.in (install-mkheaders): Fix typo, where the multi_dir
2809         variable was referenced as multidir in command.
2811 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
2813         PR c/69389
2814         * gimplify.c (goa_stabilize_expr): Handle BIT_INSERT_EXPR and
2815         BIT_FIELD_REF.
2817 2017-08-07  Martin Liska  <mliska@suse.cz>
2819         * config/m32c/m32c.c: Add include of stringpool.h and attribs.h.
2820         * config/rl78/rl78.c: Add include of attribs.h.
2821         * config/sh/sh.c: Likewise.
2822         * config/v850/v850.c: Likewise.
2824 2017-08-07  Tom de Vries  <tom@codesourcery.com>
2826         PR middle-end/78266
2827         * omp-expand.c (expand_oacc_for): Ensure diff_type is large enough.
2829 2017-08-07  Martin Liska  <mliska@suse.cz>
2831         * config/mips/mips.c: Include attribs.h.
2833 2017-08-07  Thomas Koenig  <tkoenig@gcc.gnu.org>
2835         PR fortran/68829
2836         * doc/invoke.texi: Document change in behvaior for -Ofast for
2837         Fortran.
2839 2017-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
2841         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg):
2842         Use gen_frame_mem.
2843         (aarch64_pop_regs): Likewise.
2844         (aarch64_gen_load_pair): Likewise.
2845         (aarch64_save_callee_saves): Likewise.
2846         (aarch64_restore_callee_saves): Likewise.
2848 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2850         * config/i386/i386.c: Revert the last change.
2852 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2854         PR target/81736
2855         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Renamed
2856         to ...
2857         (ix86_finalize_stack_frame_flags): This.  Also clear
2858         frame_pointer_needed if -fno-omit-frame-pointer is used without
2859         stack access.
2860         (ix86_expand_prologue): Replace ix86_finalize_stack_realign_flags
2861         with ix86_finalize_stack_frame_flags.
2862         (ix86_expand_epilogue): Likewise.
2863         (ix86_expand_split_stack_prologue): Likewise.
2865 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2867         PR target/81743
2868         * config/i386/i386.c (get_builtin_code_for_version): Set priority
2869         to P_AES for Westmere.
2871 2017-08-07  Jonathan Yong  <10walls@gmail.com>
2873         * config/i386/mingw.opt (fset-stack-executable): Removed.
2874         * config/i386/cygming.opt (fset-stack-executable): Moved
2875         from mingw.opt.
2876         * config/i386/cygwin.h: Define CHECK_EXECUTE_STACK_ENABLED.
2878 2017-08-07  Segher Boessenkool  <segher@kernel.crashing.org>
2880         * print-rtl.c (print_exp): Print NOT as "~" instead of as "!".
2882 2017-08-07  Marek Polacek  <polacek@redhat.com>
2884         PR middle-end/81737
2885         * fold-const.c (fold_indirect_ref_1): Check type_domain.
2887 2017-08-07  Martin Liska  <mliska@suse.cz>
2889         * attribs.h (canonicalize_attr_name): New function.
2890         (cmp_attribs): Move from c-format.c and adjusted.
2891         (is_attribute_p): Moved from tree.h.
2892         * tree-inline.c: Add new includes.
2893         * tree.c (cmp_attrib_identifiers): Use cmp_attribs.
2894         (private_is_attribute_p): Remove.
2895         (private_lookup_attribute): Likewise.
2896         (private_lookup_attribute_by_prefix): Simplify.
2897         (remove_attribute): Use is_attribute_p.
2898         * tree.h: Remove removed declarations.
2900 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
2902         PR middle-end/81698
2903         * stmt.c (emit_case_dispatch_table): Add DEFAULT_EDGE argument,
2904         instead of computing it in the function.  Formatting fix.
2905         (expand_case): Don't rely on default_edge being the first edge,
2906         clear it if removing it, pass default_edge to
2907         emit_case_dispatch_table.
2908         (expand_sjlj_dispatch_table): Pass NULL as DEFAULT_EDGE, formatting
2909         fix.
2911 2017-08-06  Uros Bizjak  <ubizjak@gmail.com>
2913         * config/alpha/alpha.c (alpha_reorg): If trap is the last active
2914         insn in the function, emit NOP after the insn.
2916 2017-08-06  Tom de Vries  <tom@codesourcery.com>
2918         * omp-expand.c (expand_oacc_for): Add missing edge probability for tile
2919         and element loops.
2921 2017-08-06  Tom de Vries  <tom@codesourcery.com>
2923         * omp-expand.c (expand_oacc_for): Add missing edge probability for chunk
2924         loop.
2926 2017-08-04  Yury Gribov  <tetra2005@gmail.com>
2928         PR tree-optimization/57371
2929         * match.pd: New pattern.
2931 2017-08-04  Marek Polacek  <polacek@redhat.com>
2933         PR middle-end/81695
2934         * fold-const.c (fold_indirect_ref_1): For ((int *)&a + 4 -> a[1],
2935         perform the computation in offset_int.
2937 2017-08-04  Richard Sandiford  <richard.sandiford@linaro.org>
2939         PR tree-optimization/81136
2940         * tree-vectorizer.h: Include tree-hash-traits.h.
2941         (vec_base_alignments): New typedef.
2942         (vec_info): Add a base_alignments field.
2943         (vect_record_base_alignments): Declare.
2944         * tree-data-ref.h (data_reference): Add an is_conditional_in_stmt
2945         field.
2946         (DR_IS_CONDITIONAL_IN_STMT): New macro.
2947         (create_data_ref): Add an is_conditional_in_stmt argument.
2948         * tree-data-ref.c (create_data_ref): Likewise.  Use it to initialize
2949         the is_conditional_in_stmt field.
2950         (data_ref_loc): Add an is_conditional_in_stmt field.
2951         (get_references_in_stmt): Set the is_conditional_in_stmt field.
2952         (find_data_references_in_stmt): Update call to create_data_ref.
2953         (graphite_find_data_references_in_stmt): Likewise.
2954         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
2955         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
2956         (vect_record_base_alignment): New function.
2957         (vect_record_base_alignments): Likewise.
2958         (vect_compute_data_ref_alignment): Adjust base_addr and aligned_to
2959         for nested statements even if we fail to compute a misalignment.
2960         Use pooled base alignments for unconditional references.
2961         (vect_find_same_alignment_drs): Compare base addresses instead
2962         of base objects.
2963         (vect_analyze_data_refs_alignment): Call vect_record_base_alignments.
2964         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
2966 2017-08-04  Richard Sandiford  <richard.sandiford@linaro.org>
2968         * tree-vectorizer.h (vec_info): Add a constructor and destructor.
2969         Add an explicit name for the enum.  Use auto_vec for slp_instances
2970         and grouped_stores.
2971         (_loop_vec_info): Add a constructor and destructor.  Use auto_vec
2972         for all vectors.
2973         (_bb_vec_info): Add a constructor and destructor.
2974         (vinfo_for_stmt): Return NULL for uids of -1 as well.
2975         (destroy_loop_vec_info): Delete.
2976         (vect_destroy_datarefs): Likewise.
2977         * tree-vectorizer.c (vect_destroy_datarefs): Delete.
2978         (vec_info::vec_info): New function.
2979         (vec_info::~vec_info): Likewise.
2980         (vectorize_loops): Use delete instead of destroy_loop_vec_info.
2981         * tree-parloops.c (gather_scalar_reductions): Use delete instead of
2982         destroy_loop_vec_info.
2983         * tree-vect-loop.c (new_loop_vec_info): Replace with...
2984         (_loop_vec_info::_loop_vec_info): ...this.
2985         (destroy_loop_vec_info): Replace with...
2986         (_loop_vec_info::~_loop_vec_info): ...this.  Unconditionally delete
2987         the stmt_vec_infos.  Leave handling of vec_info information to its
2988         destructor.  Remove explicit vector releases.
2989         (vect_analyze_loop_form): Use new instead of new_loop_vec_info.
2990         (vect_analyze_loop): Use delete instead of destroy_loop_vec_info.
2991         * tree-vect-slp.c (new_bb_vec_info): Replace with...
2992         (_bb_vec_info::_bb_vec_info): ...this.  Don't reserve space in
2993         BB_VINFO_GROUPED_STORES or BB_VINFO_SLP_INSTANCES.
2994         (destroy_bb_vec_info): Replace with...
2995         (_bb_vec_info::~_bb_vec_info): ...this.  Leave handling of vec_info
2996         information to its destructor.
2997         (vect_slp_analyze_bb_1): Use new and delete instead of
2998         new_bb_vec_info and destroy_bb_vec_info.
2999         (vect_slp_bb): Replace 2 calls to destroy_bb_vec_info with a
3000         single delete.
3002 2017-08-04  Richard Sandiford  <richard.sandiford@linaro.org>
3004         * tree-data-ref.h (subscript): Add access_fn field.
3005         (data_dependence_relation): Add could_be_independent_p.
3006         (SUB_ACCESS_FN, DDR_COULD_BE_INDEPENDENT_P): New macros.
3007         (same_access_functions): Move to tree-data-ref.c.
3008         * tree-data-ref.c (ref_contains_union_access_p): New function.
3009         (access_fn_component_p): Likewise.
3010         (access_fn_components_comparable_p): Likewise.
3011         (dr_analyze_indices): Add a reference to access_fn_component_p.
3012         (dump_data_dependence_relation): Use SUB_ACCESS_FN instead of
3013         DR_ACCESS_FN.
3014         (constant_access_functions): Likewise.
3015         (add_other_self_distances): Likewise.
3016         (same_access_functions): Likewise.  (Moved from tree-data-ref.h.)
3017         (initialize_data_dependence_relation): Use XCNEW and remove
3018         explicit zeroing of DDR_REVERSED_P.  Look for a subsequence
3019         of access functions that have the same type.  Allow the
3020         subsequence to end with different bases in some circumstances.
3021         Record the chosen access functions in SUB_ACCESS_FN.
3022         (build_classic_dist_vector_1): Replace ddr_a and ddr_b with
3023         a_index and b_index.  Use SUB_ACCESS_FN instead of DR_ACCESS_FN.
3024         (subscript_dependence_tester_1): Likewise dra and drb.
3025         (build_classic_dist_vector): Update calls accordingly.
3026         (subscript_dependence_tester): Likewise.
3027         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Check
3028         DDR_COULD_BE_INDEPENDENT_P.
3029         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Test
3030         comp_alias_ddrs instead of may_alias_ddrs.
3031         * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
3032         New function.
3033         (vect_analyze_data_ref_dependence): Use it if
3034         DDR_COULD_BE_INDEPENDENT_P, but fall back to using the recorded
3035         distance vectors if that fails.
3036         (dependence_distance_ge_vf): New function.
3037         (vect_prune_runtime_alias_test_list): Use it.  Don't clear
3038         LOOP_VINFO_MAY_ALIAS_DDRS.
3040 2017-08-04  Richard Biener  <rguenther@suse.de>
3042         PR middle-end/81705
3043         * fold-const.c (fold_binary_loc): Properly restrict
3044         minus_var0 && minus_var1 case when associating undefined overflow
3045         entities.
3047 2017-08-04  Tom de Vries  <tom@codesourcery.com>
3049         * omp-simd-clone.c (simd_clone_adjust): Add missing edge probability.
3051 2017-08-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3053         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3054         Don't start diagnostic messages with a capital letter.
3055         * config/rs6000/rs6000.c (rs6000_option_override_internal):
3056         Likewise.
3057         (rs6000_invalid_builtin): Likewise.
3058         (rs6000_trampoline_init): Likewise.
3060 2017-08-03  Jakub Jelinek  <jakub@redhat.com>
3062         PR target/81621
3063         * bb-reorder.c (pass_partition_blocks::execute): Return TODO_df_finish
3064         after setting changeable df flags.
3066 2017-08-03  Richard Biener  <rguenther@suse.de>
3068         * tree-ssa-reassoc.c (should_break_up_subtract): Also break
3069         up if the use is in USE - X.
3071 2017-08-03  Alexander Monakov  <amonakov@ispras.ru>
3073         * toplev.c (dumpfile.h): New include.
3074         (internal_error_reentered): New static function.  Use it...
3075         (internal_error_function): ...here to handle reentered internal_error.
3077 2017-08-03  Richard Biener  <rguenther@suse.de>
3079         PR middle-end/81148
3080         * fold-const.c (split_tree): Add minus_var and minus_con
3081         arguments, remove unused loc arg.  Never generate NEGATE_EXPRs
3082         here but always use minus_*.
3083         (associate_trees): Assert we never associate with MINUS_EXPR
3084         and NULL first operand.  Do not recurse for PLUS_EXPR operands
3085         when associating as MINUS_EXPR either.
3086         (fold_binary_loc): Track minus_var and minus_con.
3088 2017-08-03  Tom de Vries  <tom@codesourcery.com>
3090         PR lto/81430
3091         * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers): If
3092         ACCEL_COMPILER, apply finish_options on
3093         DECL_FUNCTION_SPECIFIC_OPTIMIZATION.
3095 2017-08-03  Tom de Vries  <tom@codesourcery.com>
3097         PR target/81662
3098         * config/nvptx/nvptx.c (nvptx_option_override): Emit sorry if
3099         function_entry_patch_area_size > 0.
3101 2017-08-03  Jakub Jelinek  <jakub@redhat.com>
3103         PR driver/81650
3104         * calls.c (alloc_max_size): Use HOST_WIDE_INT_UC (10??)
3105         instead of 10??LU, perform unit multiplication in wide_int,
3106         don't change alloc_object_size_limit if the limit is larger
3107         than SSIZE_MAX.
3109         PR tree-optimization/81655
3110         PR tree-optimization/81588
3111         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle also
3112         the case when ranges[i].low and high are 1 for unsigned type with
3113         precision 1.
3115         PR middle-end/81052
3116         * omp-low.c (diagnose_sb_0): Handle flag_openmp_simd like flag_openmp.
3117         (pass_diagnose_omp_blocks::gate): Enable also for flag_openmp_simd.
3119 2017-08-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3121         * tree-vrp.h: Add include guard.
3123 2017-08-02  Uros Bizjak  <ubizjak@gmail.com>
3125         PR target/81644
3126         * config/i386/i386.md (unspecv): Add UNSPECV_UD2.
3127         (ud2): New insn pattern.
3128         * config/i386/i386.c (ix86_expand_epilogue):
3129         For naked functions, generate ud2 instead of trap insn.
3131 2017-08-02  Marek Polacek  <polacek@redhat.com>
3133         PR other/81667
3134         * alloc-pool.h (base_pool_allocator): Initialize m_elt_size.
3136 2017-08-02  Tom de Vries  <tom@codesourcery.com>
3137             Cesar Philippidis  <cesar@codesourcery.com>
3139         * config/nvptx/nvptx.c (nvptx_lockless_update, nvptx_lockfull_update):
3140         Add missing edge probabilities.
3142 2017-08-02  Tamar Christina  <tamar.christina@arm.com>
3144         * config/aarch64/aarch64.c (aarch64_reinterpret_float_as_int):
3145         Correct endianness.
3147 2017-08-02  Jakub Jelinek  <jakub@redhat.com>
3149         PR middle-end/79499
3150         * function.c (thread_prologue_and_epilogue_insns): Determine blocks
3151         for find_many_sub_basic_blocks bitmap by looking up BLOCK_FOR_INSN
3152         of first NONDEBUG_INSN_P in each of the split_prologue_seq and
3153         prologue_seq sequences - if any.
3155 2017-08-02  Richard Biener  <rguenther@suse.de>
3157         * tree-vect-stmts.c (vectorizable_store): Perform vector extracts
3158         via vectors if supported, integer extracts via punning if supported
3159         or otherwise vector extracts.
3161 2017-08-02  Richard Biener  <rguenther@suse.de>
3163         * tree-ssa-pre.c (bitmap_insert_into_set_1): Remove and inline
3164         into ...
3165         (bitmap_insert_into_set): ... this.
3167 2017-08-02  Richard Biener  <rguenther@suse.de>
3169         PR tree-optimization/81633
3170         Revert
3171         2015-08-17  Alan Hayward  <alan.hayward@arm.com>
3173         PR tree-optimization/71752
3174         * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
3176 2017-08-01  Daniel Santos  <daniel.santos@pobox.com>
3178         * config/i386/i386.h (ix86_frame::outlined_save_offset): Remove field.
3179         (machine_function::call_ms2sysv_pad_out): Remove field.
3180         * config/i386/i386.c (xlogue_layout::get_stack_space_used): Modify.
3181         (ix86_compute_frame_layout): Likewise.
3183 2017-08-01  H.J. Lu  <hongjiu.lu@intel.com>
3185         PR target/81654
3186         * config/i386/i386.c (ix86_set_func_type): Disallow naked
3187         attribute with interrupt attribute.
3189 2017-08-01  Andrew Pinski  <apinski@cavium.com>
3191         * tree-ssa-scopedtables.c (hashable_expr_equal_p): Check
3192         BIT_INSERT_EXPR's operand 1
3193         to see if the types precision matches.
3195 2017-08-01  Martin Liska  <mliska@suse.cz>
3197         PR middle-end/70140
3198         * builtins.c (expand_builtin_memcpy_args): Remove.
3199         (expand_builtin_memcpy): Call newly added function
3200         expand_builtin_memory_copy_args.
3201         (expand_builtin_memcpy_with_bounds): Likewise.
3202         (expand_builtin_mempcpy): Remove last argument.
3203         (expand_builtin_mempcpy_with_bounds): Likewise.
3204         (expand_builtin_memory_copy_args): New function created from
3205         expand_builtin_mempcpy_args with small modifications.
3206         (expand_builtin_mempcpy_args): Remove.
3207         (expand_builtin_stpcpy): Remove unused argument.
3208         (expand_builtin): Likewise.
3209         (expand_builtin_with_bounds): Likewise.
3211 2017-08-01  Martin Liska  <mliska@suse.cz>
3213         Revert r250771
3214         Make mempcpy more optimal (PR middle-end/70140).
3216 2017-08-01  Jakub Jelinek  <jakub@redhat.com>
3218         PR target/81622
3219         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): For
3220         __builtin_vec_cmpne verify both arguments are compatible vectors
3221         before looking at TYPE_MODE on the element type.  For __builtin_vec_ld
3222         verify arg1_type is a pointer or array type.  For __builtin_vec_st,
3223         move computation of aligned to after checking the argument types.
3224         Formatting fixes.
3226         PR target/80846
3227         * config/rs6000/vsx.md (vextract_fp_from_shorth,
3228         vextract_fp_from_shortl): Add element mode after mode in gen_vec_init*
3229         calls.
3231 2017-08-01  Jerome Lambourg  <lambourg@adacore.com>
3232             Doug Rupp  <rupp@adacore.com>
3233             Olivier Hainque  <hainque@adacore.com>
3235         * config.gcc (arm-wrs-vxworks*): Rework to handle arm-wrs-vxworks7 as
3236         well as arm-wrs-vxworks. Update target_cpu_name from arm6 (arch v3) to
3237         arm8 (arch v4).
3238         * config/arm/vxworks.h (MAYBE_TARGET_BPABI_CPP_BUILTINS): New, helper
3239         for TARGET_OS_CPP_BUILTIN.
3240         (TARGET_OS_CPP_BUILTIN): Invoke MAYBE_TARGET_BPABI_CPP_BUILTINS(),
3241         refine CPU definitions for arm_arch5 and add those for arm_arch6 and
3242         arm_arch7.
3243         (MAYBE_ASM_ABI_SPEC): New, helper for SUBTARGET_EXTRA_ASM_SPEC,
3244         passing required abi options to the assembler for EABI configurations.
3245         (EXTRA_CC1_SPEC): New macro, to help prevent the implicit production
3246         of .text.hot and .text.unlikely sections for kernel modules when
3247         using ARM style exceptions.
3248         (CC1_SPEC): Remove obsolete attempt at mimicking Diab toolchain
3249         options. Add EXTRA_CC1_SPEC.
3250         (VXWORKS_ENDIAN_SPEC): Adjust comment and remove handling of Diab
3251         toolchain options.
3252         (DWARF2_UNWIND_INFO): Redefine to handle the pre/post VxWorks 7
3253         transition.
3254         (ARM_TARGET2_DWARF_FORMAT): Define.
3255         * config/arm/t-vxworks: Adjust multilib control to removal of the
3256         Diab command line options.
3258 2017-08-01  Martin Liska  <mliska@suse.cz>
3260         PR gcov-profile/81561
3261         * gcov.c (unblock): Make unblocking safe as we need to preserve
3262         index correspondence of blocks and block_lists.
3264 2017-08-01  Richard Biener  <rguenther@suse.de>
3266         PR tree-optimization/81181
3267         * tree-ssa-pre.c (compute_antic_aux): Defer clean() to ...
3268         (compute_antic): ... end of iteration here.
3270 2017-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
3272         * common.opt (ftree-vectorize): No longer set flag_tree_vectorize.
3273         (ftree-loop-vectorize): Set as EnabledBy ftree-vectorize.
3274         (ftree-slp-vectorize): Likewise.
3275         * omp-expand (expand_omp_simd): Remove flag_tree_vectorize, as it
3276         can no longer be set independent of flag_tree_loop_vectorize.
3277         * omp-general.c (emp_max_vf): Likewise.
3278         * opts.c (enable_fdo_optimizations): Remove references to
3279         flag_tree_vectorize, these are now implicit.
3280         (common_handle_option): Remove handling for OPT_ftree_vectorize,
3281         and leave it for the options machinery.
3283 2017-08-01  Martin Liska  <mliska@suse.cz>
3285         PR middle-end/70140
3286         * builtins.c (expand_builtin_memcpy_args): Remove.
3287         (expand_builtin_memcpy): Call newly added function
3288         expand_builtin_memory_copy_args.
3289         (expand_builtin_memcpy_with_bounds): Likewise.
3290         (expand_builtin_mempcpy): Remove last argument.
3291         (expand_builtin_mempcpy_with_bounds): Likewise.
3292         (expand_builtin_memory_copy_args): New function created from
3293         expand_builtin_mempcpy_args with small modifications.
3294         (expand_builtin_mempcpy_args): Remove.
3295         (expand_builtin_stpcpy): Remove unused argument.
3296         (expand_builtin): Likewise.
3297         (expand_builtin_with_bounds): Likewise.
3299 2017-08-01  Uros Bizjak  <ubizjak@gmail.com>
3301         PR target/81641
3302         * config/i386/i386.c (ix86_print_operand_address_as): For -masm=intel
3303         print "ds:" only for immediates in generic address space.
3305 2017-08-01  Uros Bizjak  <ubizjak@gmail.com>
3307         PR target/81639
3308         * config/i386/i386.c (ix86_funciton_naked): New prototype.
3309         (ix86_function_ok_for_sibcall): Return false for naked functions.
3311 2017-08-01  Richard Biener  <rguenther@suse.de>
3313         * tree-ssa-pre.c (print_pre_expr): Handle NULL expr.
3314         (compute_antic): Seed worklist with exit block predecessors.
3315         * cfganal.c (dfs_find_deadend): For a cycle return the source
3316         of the edge closing it.
3318 2017-08-01  Tamar Christina  <tamar.christina@arm.com>
3320         * config/aarch64/aarch64.c
3321         (aarch64_can_const_movi_rtx_p): Move 0 check.
3323 2017-08-01  Bin Cheng  <bin.cheng@arm.com>
3325         * tree.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Delete.
3326         * fold-const.c (fold_comparison, fold_binary_loc): Delete use of
3327         above macro.
3328         * match.pd: Ditto in address comparison pattern.
3330 2017-08-01  Bin Cheng  <bin.cheng@arm.com>
3332         PR tree-optimization/81627
3333         * tree-predcom.c (prepare_finalizers): Always rewrite into loop
3334         closed ssa form for store-store chain.
3336 2017-08-01  Bin Cheng  <bin.cheng@arm.com>
3338         PR tree-optimization/81620
3339         * tree-predcom.c (add_ref_to_chain): Don't set has_max_use_after
3340         for store-store chain.
3342 2017-08-01  Jakub Jelinek  <jakub@redhat.com>
3344         PR tree-optimization/81588
3345         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): If
3346         ranges[i].in_p, invert comparison code ccode.  For >/>=,
3347         swap rhs1 and rhs2 and comparison code unconditionally,
3348         for </<= don't do that.  Don't swap rhs1/rhs2 again if
3349         ranges[i].in_p, instead invert comparison code ccode if
3350         opcode or oe->rank is BIT_IOR_EXPR.
3352         PR target/80846
3353         * optabs.def (vec_extract_optab, vec_init_optab): Change from
3354         a direct optab to conversion optab.
3355         * optabs.c (expand_vector_broadcast): Use convert_optab_handler
3356         with GET_MODE_INNER as last argument instead of optab_handler.
3357         * expmed.c (extract_bit_field_1): Likewise.  Use vector from
3358         vector extraction if possible and optab is available.
3359         * expr.c (store_constructor): Use convert_optab_handler instead
3360         of optab_handler.  Use vector initialization from smaller
3361         vectors if possible and optab is available.
3362         * tree-vect-stmts.c (vectorizable_load): Likewise.
3363         * doc/md.texi (vec_extract, vec_init): Document that the optabs
3364         now have two modes.
3365         * config/i386/i386.c (ix86_expand_vector_init): Handle expansion
3366         of vec_init from half-sized vectors with the same element mode.
3367         * config/i386/sse.md (ssehalfvecmode): Add V4TI case.
3368         (ssehalfvecmodelower, ssescalarmodelower): New mode attributes.
3369         (reduc_plus_scal_v8df, reduc_plus_scal_v4df, reduc_plus_scal_v2df,
3370         reduc_plus_scal_v16sf, reduc_plus_scal_v8sf, reduc_plus_scal_v4sf,
3371         reduc_<code>_scal_<mode>, reduc_umin_scal_v8hi): Add element mode
3372         after mode in gen_vec_extract* calls.
3373         (vec_extract<mode>): Renamed to ...
3374         (vec_extract<mode><ssescalarmodelower>): ... this.
3375         (vec_extract<mode><ssehalfvecmodelower>): New expander.
3376         (rotl<mode>3, rotr<mode>3, <shift_insn><mode>3, ashrv2di3): Add
3377         element mode after mode in gen_vec_init* calls.
3378         (VEC_INIT_HALF_MODE): New mode iterator.
3379         (vec_init<mode>): Renamed to ...
3380         (vec_init<mode><ssescalarmodelower>): ... this.
3381         (vec_init<mode><ssehalfvecmodelower>): New expander.
3382         * config/i386/mmx.md (vec_extractv2sf): Renamed to ...
3383         (vec_extractv2sfsf): ... this.
3384         (vec_initv2sf): Renamed to ...
3385         (vec_initv2sfsf): ... this.
3386         (vec_extractv2si): Renamed to ...
3387         (vec_extractv2sisi): ... this.
3388         (vec_initv2si): Renamed to ...
3389         (vec_initv2sisi): ... this.
3390         (vec_extractv4hi): Renamed to ...
3391         (vec_extractv4hihi): ... this.
3392         (vec_initv4hi): Renamed to ...
3393         (vec_initv4hihi): ... this.
3394         (vec_extractv8qi): Renamed to ...
3395         (vec_extractv8qiqi): ... this.
3396         (vec_initv8qi): Renamed to ...
3397         (vec_initv8qiqi): ... this.
3398         * config/rs6000/vector.md (VEC_base_l): New mode attribute.
3399         (vec_init<mode>): Renamed to ...
3400         (vec_init<mode><VEC_base_l>): ... this.
3401         (vec_extract<mode>): Renamed to ...
3402         (vec_extract<mode><VEC_base_l>): ... this.
3403         * config/rs6000/paired.md (vec_initv2sf): Renamed to ...
3404         (vec_initv2sfsf): ... this.
3405         * config/rs6000/altivec.md (splitter, altivec_copysign_v4sf3,
3406         vec_unpacku_hi_v16qi, vec_unpacku_hi_v8hi, vec_unpacku_lo_v16qi,
3407         vec_unpacku_lo_v8hi, mulv16qi3, altivec_vreve<mode>2): Add
3408         element mode after mode in gen_vec_init* calls.
3409         * config/aarch64/aarch64-simd.md (vec_init<mode>): Renamed to ...
3410         (vec_init<mode><Vel>): ... this.
3411         (vec_extract<mode>): Renamed to ...
3412         (vec_extract<mode><Vel>): ... this.
3413         * config/aarch64/iterators.md (Vel): New mode attribute.
3414         * config/s390/s390.c (s390_expand_vec_strlen, s390_expand_vec_movstr):
3415         Add element mode after mode in gen_vec_extract* calls.
3416         * config/s390/vector.md (non_vec_l): New mode attribute.
3417         (vec_extract<mode>): Renamed to ...
3418         (vec_extract<mode><non_vec_l>): ... this.
3419         (vec_init<mode>): Renamed to ...
3420         (vec_init<mode><non_vec_l>): ... this.
3421         * config/s390/s390-builtins.def (s390_vlgvb, s390_vlgvh, s390_vlgvf,
3422         s390_vlgvf_flt, s390_vlgvg, s390_vlgvg_dbl): Add element mode after
3423         vec_extract mode.
3424         * config/arm/iterators.md (V_elem_l): New mode attribute.
3425         * config/arm/neon.md (vec_extract<mode>): Renamed to ...
3426         (vec_extract<mode><V_elem_l>): ... this.
3427         (vec_extractv2di): Renamed to ...
3428         (vec_extractv2didi): ... this.
3429         (vec_init<mode>): Renamed to ...
3430         (vec_init<mode><V_elem_l>): ... this.
3431         (reduc_plus_scal_<mode>, reduc_plus_scal_v2di, reduc_smin_scal_<mode>,
3432         reduc_smax_scal_<mode>, reduc_umin_scal_<mode>,
3433         reduc_umax_scal_<mode>, neon_vget_lane<mode>, neon_vget_laneu<mode>):
3434         Add element mode after gen_vec_extract* calls.
3435         * config/mips/mips-msa.md (vec_init<mode>): Renamed to ...
3436         (vec_init<mode><unitmode>): ... this.
3437         (vec_extract<mode>): Renamed to ...
3438         (vec_extract<mode><unitmode>): ... this.
3439         * config/mips/loongson.md (vec_init<mode>): Renamed to ...
3440         (vec_init<mode><unitmode>): ... this.
3441         * config/mips/mips-ps-3d.md (vec_initv2sf): Renamed to ...
3442         (vec_initv2sfsf): ... this.
3443         (vec_extractv2sf): Renamed to ...
3444         (vec_extractv2sfsf): ... this.
3445         (reduc_plus_scal_v2sf, reduc_smin_scal_v2sf, reduc_smax_scal_v2sf):
3446         Add element mode after gen_vec_extract* calls.
3447         * config/mips/mips.md (unitmode): New mode iterator.
3448         * config/spu/spu.c (spu_expand_prologue, spu_allocate_stack,
3449         spu_builtin_extract): Add element mode after gen_vec_extract* calls.
3450         * config/spu/spu.md (inner_l): New mode attribute.
3451         (vec_init<mode>): Renamed to ...
3452         (vec_init<mode><inner_l>): ... this.
3453         (vec_extract<mode>): Renamed to ...
3454         (vec_extract<mode><inner_l>): ... this.
3455         * config/sparc/sparc.md (veltmode): New mode iterator.
3456         (vec_init<VMALL:mode>): Renamed to ...
3457         (vec_init<VMALL:mode><VMALL:veltmode>): ... this.
3458         * config/ia64/vect.md (vec_initv2si): Renamed to ...
3459         (vec_initv2sisi): ... this.
3460         (vec_initv2sf): Renamed to ...
3461         (vec_initv2sfsf): ... this.
3462         (vec_extractv2sf): Renamed to ...
3463         (vec_extractv2sfsf): ... this.
3464         * config/powerpcspe/vector.md (VEC_base_l): New mode attribute.
3465         (vec_init<mode>): Renamed to ...
3466         (vec_init<mode><VEC_base_l>): ... this.
3467         (vec_extract<mode>): Renamed to ...
3468         (vec_extract<mode><VEC_base_l>): ... this.
3469         * config/powerpcspe/paired.md (vec_initv2sf): Renamed to ...
3470         (vec_initv2sfsf): ... this.
3471         * config/powerpcspe/altivec.md (splitter, altivec_copysign_v4sf3,
3472         vec_unpacku_hi_v16qi, vec_unpacku_hi_v8hi, vec_unpacku_lo_v16qi,
3473         vec_unpacku_lo_v8hi, mulv16qi3): Add element mode after mode in
3474         gen_vec_init* calls.
3476 2017-08-01  Richard Biener  <rguenther@suse.de>
3478         PR tree-optimization/81297
3479         * tree-vrp.c (get_single_symbol): Remove assert, instead drop
3480         TREE_OVERFLOW from INTEGER_CSTs.
3482 2017-07-31  Segher Boessenkool  <segher@kernel.crashing.org>
3484         * config/rs6000/rs6000.c (enum rs6000_reg_type): Delete trailing comma.
3486 2017-07-31  Carl Love  <cel@us.ibm.com>
3488         * config/rs6000/rs6000-c: Add support for built-in functions
3489         vector signed char vec_xl_be (signed long long, signed char *);
3490         vector unsigned char vec_xl_be (signed long long, unsigned char *);
3491         vector signed int vec_xl_be (signed long long, signed int *);
3492         vector unsigned int vec_xl_be (signed long long, unsigned int *);
3493         vector signed long long vec_xl_be (signed long long, signed long long *);
3494         vector unsigned long long vec_xl_be (signed long long, unsigned long long *);
3495         vector signed short vec_xl_be (signed long long, signed short *);
3496         vector unsigned short vec_xl_be (signed long long, unsigned short *);
3497         vector double vec_xl_be (signed long long, double *);
3498         vector float vec_xl_be (signed long long, float *);
3499         * config/rs6000/altivec.h (vec_xl_be): Add #define.
3500         * config/rs6000/rs6000-builtin.def (XL_BE_V16QI, XL_BE_V8HI, XL_BE_V4SI)
3501         XL_BE_V2DI, XL_BE_V4SF, XL_BE_V2DF, XL_BE): Add definitions
3502         for the builtins.
3503         * config/rs6000/rs6000.c (altivec_expand_xl_be_builtin): Add function.
3504         (altivec_expand_builtin): Add switch statement to call
3505         altivec_expand_xl_be for each builtin.
3506         (altivec_init_builtins): Add def_builtin for _builtin_vsx_le_be_v8hi,
3507         __builtin_vsx_le_be_v4si, __builtin_vsx_le_be_v2di,
3508         __builtin_vsx_le_be_v4sf, __builtin_vsx_le_be_v2df,
3509         __builtin_vsx_le_be_v16qi.
3510         * doc/extend.texi: Update the built-in documentation file for the
3511         new built-in functions.
3513 2017-07-31  Uros Bizjak  <ubizjak@gmail.com>
3515         PR target/25967
3516         * config/i386/i386.c (ix86_allocate_stack_slots_for_args):
3517         New function.
3518         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
3520 2017-07-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3522         * config.gcc: Add z14.
3523         * config/s390/driver-native.c (s390_host_detect_local_cpu): Add
3524         CPU model numbers for z13s and z14.
3525         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Replace
3526         arch12 with z14.
3527         * config/s390/s390-opts.h (enum processor_type): Rename
3528         PROCESSOR_ARCH12 to PROCESSOR_3906_Z14.
3529         * config/s390/s390.c (processor_table): Add field for CPU name to
3530         be passed to Binutils.
3531         (s390_asm_output_machine_for_arch): Use the new field in
3532         processor_table for Binutils.
3533         (s390_expand_builtin): Replace arch12 with z14.
3534         (s390_issue_rate): Rename PROCESSOR_ARCH12 to PROCESSOR_3906_Z14.
3535         (s390_get_sched_attrmask): Likewise.
3536         (s390_get_unit_mask): Likewise.
3537         * config/s390/s390.opt: Add z14 to processor_type enum.
3539 2017-07-31  Martin Jambor  <mjambor@suse.cz>
3541         PR hsa/81477
3542         * ipa-fnsummary.c (ipa_fn_summary_generate): Set versionable
3543         regardless of optimization level.
3545 2017-07-31  Jan Hubicka <hubicka@ucw.cz>
3546             Martin Liska  <mliska@suse.cz>
3548         * predict.def: Remove old comment and adjust probability.
3549         * gimplify.c (should_warn_for_implicit_fallthrough): Ignore
3550         PREDICT statements.
3552 2017-07-31  Uros Bizjak  <ubizjak@gmail.com>
3554         PR target/25967
3555         * config/i386/i386.c (ix86_function_naked): New function.
3556         (ix86_can_use_return_insn_p): Return false for naked functions.
3557         (ix86_expand_prologue): Skip prologue for naked functions.
3558         (ix86_expand_epilogue): Skip epilogue for naked functions
3559         and emit trap instruction.
3560         (ix86_warn_func_return): New function.
3561         (ix86_attribute_table): Add "naked" attribute specification.
3562         (TARGET_WARN_FUNC_RETURN): Define.
3563         * doc/extend.texi (x86 Function Attributes) <naked>: Document it.
3565 2017-07-31  Martin Liska  <mliska@suse.cz>
3567         * gimple-pretty-print.c (dump_gimple_label): Never dump BB info.
3568         (dump_gimple_bb_header): Always dump BB info.
3569         (pp_cfg_jump): Do not append info about BB when dumping a jump.
3571 2017-07-31  Martin Liska  <mliska@suse.cz>
3573         PR sanitize/81530
3574         * convert.c (convert_to_integer_1): Guard condition with flag_sanitize_p
3575         also with current_function_decl non-null equality.
3577 2017-07-31  Jakub Jelinek  <jakub@redhat.com>
3579         PR sanitizer/81604
3580         * ubsan.c (ubsan_type_descriptor): For UBSAN_PRINT_ARRAY don't
3581         change type to the element type, instead add eltype variable and
3582         use it where we are interested in the element type.
3584         PR tree-optimization/81603
3585         * ipa-polymorphic-call.c
3586         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Perform
3587         offset arithmetic in offset_int, bail out if the resulting bit offset
3588         doesn't fit into shwi.
3590 2017-07-31  Martin Liska  <mliska@suse.cz>
3592         * gimplify.c (mostly_copy_tree_r): Remove Java specific hunk.
3593         (gimplify_save_expr): Fix comment.
3595 2017-07-30  H.J. Lu  <hongjiu.lu@intel.com>
3597         PR target/79793
3598         * config/i386/i386.c (ix86_function_arg): Update arguments for
3599         exception handler.
3600         (ix86_compute_frame_layout): Set the initial stack offset to
3601         INCOMING_FRAME_SP_OFFSET.  Update red-zone offset with
3602         INCOMING_FRAME_SP_OFFSET.
3603         (ix86_expand_epilogue): Don't pop the 'ERROR_CODE' off the
3604         stack before exception handler returns.
3605         * config/i386/i386.h (INCOMING_FRAME_SP_OFFSET): Add the
3606         the 'ERROR_CODE' for exception handler.
3608 2017-07-30  Uros Bizjak  <ubizjak@gmail.com>
3610         * config/i386/i386.h (ASM_PRINTF_EXTENSIONS): New macro.
3611         (ASM_OUTPUT_REG_PUSH): Rewrite with new operand modifiers.
3612         (ASM_OUTPUT_REG_POP): Ditto.
3613         * config/i386/i386.c (ix86_asm_output_function_label): Use fputs
3614         instead of asm_fprintf to output pure string.
3616 2017-07-29  Jakub Jelinek  <jakub@redhat.com>
3618         * debug.h (struct gcc_debug_hooks): Add IMPLICIT argument
3619         to imported_module_or_decl hook.
3620         (debug_nothing_tree_tree_tree_bool): Remove.
3621         (debug_nothing_tree_tree_tree_bool_bool): New declaration.
3622         * debug.c (do_nothing_debug_hooks): Use
3623         debug_nothing_tree_tree_tree_bool_bool instead of
3624         debug_nothing_tree_tree_tree_bool.
3625         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3626         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
3627         * sdbout.c (sdb_debug_hooks): Likewise.
3628         * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
3629         (gen_namespace_die): Add DW_AT_export_symbols attribute if
3630         langhook wants it.
3631         (dwarf2out_imported_module_or_decl): Add IMPLICIT argument,
3632         if true, -gdwarf-5 and decl will have DW_AT_export_symbols
3633         attribute, don't add anything.
3635 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3637         * fold-const.c (fold_build1_stat_loc): Remove _stat from name.
3638         (fold_build2_stat_loc): Likewise.
3639         (fold_build3_stat_loc): Likewise.
3640         * fold-const.h (fold_build1, fold_build2, fold_build3): Adjust.
3641         (fold_build1_loc): Remove macro.
3642         (fold_build2_loc): Likewise.
3643         (fold_build3_loc): Likewise.
3645 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3647         * gimple.c (gimple_build_debug_bind_stat): Remove _stat from name.
3648         (gimple_build_debug_bind_source_stat): Likewise.
3649         * gimple.h (gimple_build_debug_bind): Remove macro.
3650         (gimple_build_debug_bind_source): Likewise.
3652 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3654         * bitmap.c (bitmap_alloc): Adjust.
3655         (bitmap_gc_alloc): Likewise.
3656         * bitmap.h (bitmap_initialize_stat): Remove _stat from name.
3658 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3660         * bitmap.c (bitmap_obstack_alloc_stat): Rename to bitmap_alloc.
3661         (bitmap_gc_alloc_stat): Rename to bitmap_gc_alloc.
3662         * bitmap.h (bitmap_obstack_alloc_stat): Adjust prototype.
3663         (bitmap_gc_alloc_stat): Likewise.
3664         (BITMAP_ALLOC, BITMAP_GGC_ALLOC): Adjust.
3666 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3668         * rtl.c (shallow_copy_rtx_stat): Remove _stat from name.
3669         * rtl.h (shallow_copy_rtx): Remove macro.
3671 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3673         * emit-rtl.c (gen_raw_REG): Adjust.
3674         * gengenrtl.c (gendef): Likewise.
3675         * rtl.c (rtx_alloc_stat): Remove _stat from name.
3676         * rtl.h (rtx_alloc): Remove macro.
3678 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3680         * tree.c (build_tree_list_vec_stat): Remove _stat from name.
3681         (build_tree_list_stat): Likewise.
3682         * tree.h (build_tree_list): Remove macro.
3683         (build_tree_list_vec): Likewise.
3685 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3687         * tree.c (make_vector_stat): Remove _stat from name.
3688         (build_vector_stat): Likewise.
3689         * tree.h (make_vector_stat): Remove macro.
3690         (build_vector_stat): Likewise.
3692 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3694         * tree.h (build_var_debug_value): Remove prototype.
3696 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3698         * tree.c (tree_cons_stat): Remove _stat from name.
3699         * tree.h (tree_cons): Remove macro.
3701 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3703         * tree.c (build_vl_exp_stat): Remove _stat from name.
3704         * tree.h (build_vl_exp): Remove macro.
3706 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3708         * tree.c (build_decl_stat): Remove _stat from name.
3709         * tree.h (build_decl): Remove macro.
3711 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3713         * gimple.c (gimple_build_with_ops_stat): Adjust.
3714         (gimple_alloc_stat): Remove _stat from name.
3715         * gimple.h (gimple_alloc): Remove macro.
3717 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3719         * tree.c (make_tree_vec_stat): Remove _stat from name.
3720         (grow_tree_vec_stat): Likewise.
3721         * tree.h (make_tree_vec_stat): Adjust prototype.
3722         (grow_tree_vec_stat): Likewise.
3723         (make_tree_vec): Remove macro.
3724         (grow_tree_vec): Likewise.
3726 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3728         * fold-const.c (fold_build1_stat_loc): Adjust.
3729         (fold_build2_stat_loc): Likewise.
3730         (fold_build3_stat_loc): Likewise.
3731         * tree.c (build0_stat): Remove _stat from name.
3732         (build1_stat): Likewise.
3733         (build2_stat): Likewise.
3734         (build3_stat): Likewise.
3735         (build4_stat): Likewise.
3736         (build5_stat): Likewise.
3737         * tree.h (build1_loc): Remove macro, and rename _stat function
3738         to this.
3739         (build2_loc): Likewise.
3740         (build3_loc): Likewise.
3741         (build4_loc): Likewise.
3742         (build5_loc): Likewise.
3744 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3746         * tree.c (make_int_cst_stat): Remove _stat from name.
3747         * tree.h (make_int_cst_stat): Adjust prototype.
3748         (make_int_cst): Remove macro.
3750 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3752         * tree.c (make_tre_binfo_stat): Remove _stat from name.
3753         * tree.h (make_tree_binfo_stat): Adjust prototype.
3754         (make_tree_binfo): Remove.
3756 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3758         * tree.c (copy_node_stat): Rename to copy_node.
3759         (build_distinct_type_copy): Adjust.
3760         * tree.h (copy_node_stat): Adjust prototype.
3761         (copy_node): Remove macro.
3763 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3765         * tree.c (make_node_stat): rename to make_node.
3766         (build_tree_list_stat): Adjust.
3767         (build0_stat): Likewise.
3768         (build2_stat): Likewise.
3769         (build3_stat): Likewise.
3770         (build4_stat): Likewise.
3771         (build5_stat): Likewise.
3772         (build_decl_stat): Likewise.
3773         * tree.h (make_node_stat): Adjust prototype.
3774         (make_node): remove macro.
3776 2017-07-28  Peter Bergner  <bergner@vnet.ibm.com>
3778         * config/rs6000/ppc-auxv.h (PPC_FEATURE2_DARN): New define.
3779         (PPC_FEATURE2_SCV): Likewise.
3780         * config/rs6000/rs6000.c (cpu_supports_info): Use them.
3782 2017-07-28  Tamar Christina  <tamar.christina@arm.com>
3784         * config/aarch64/aarch64.c
3785         (aarch64_internal_mov_immediate): Add new special pattern.
3786         * config/aarch64/aarch64.md (*movdi_aarch64):
3787         Add reg/32bit const mov case.
3789 2017-07-28  Tamar Christina  <tamar.christina@arm.com>
3790             Richard Sandiford <richard.sandiford@linaro.org>
3792         * config/aarch64/aarch64.md (mov<mode>): Generalize.
3793         (*movhf_aarch64, *movsf_aarch64, *movdf_aarch64):
3794         Add integer and movi cases.
3795         (movi-split-hf-df-sf split, fp16): New.
3796         (enabled): Added TARGET_FP_F16INST.
3797         * config/aarch64/iterators.md (GPF_HF): New.
3798         * config/aarch64/predicates.md (aarch64_reg_or_fp_float): New.
3800 2017-07-28  Tamar Christina  <tamar.christina@arm.com>
3802         * config/aarch64/aarch64.c
3803         (aarch64_simd_container_mode): Add prototype.
3804         (aarch64_expand_mov_immediate): Add HI support.
3805         (aarch64_reinterpret_float_as_int, aarch64_float_const_rtx_p: New.
3806         (aarch64_can_const_movi_rtx_p): New.
3807         (aarch64_preferred_reload_class):
3808         Remove restrictions of using FP registers for certain SIMD operations.
3809         (aarch64_rtx_costs): Added new cost for CONST_DOUBLE moves.
3810         (aarch64_valid_floating_const): Add integer move validation.
3811         (aarch64_simd_imm_scalar_p): Remove.
3812         (aarch64_output_scalar_simd_mov_immediate): Generalize function.
3813         (aarch64_legitimate_constant_p): Expand list of supported cases.
3814         * config/aarch64/aarch64-protos.h
3815         (aarch64_float_const_rtx_p, aarch64_can_const_movi_rtx_p): New.
3816         (aarch64_reinterpret_float_as_int): New.
3817         (aarch64_simd_imm_scalar_p): Remove.
3818         * config/aarch64/constraints.md (Uvi): New.
3819         (Dd): Split into Ds and new Dd.
3820         * config/aarch64/aarch64.md (*movsi_aarch64):
3821         Add SIMD mov case.
3822         (*movdi_aarch64): Add SIMD mov case.
3824 2017-07-28  Bin Cheng  <bin.cheng@arm.com>
3826         * tree-predcom.c: (struct chain): Handle store-store chain in which
3827         stores for elimination only store loop invariant values.
3828         (execute_pred_commoning_chain): Ditto.
3829         (prepare_initializers_chain_store_elim): Ditto.
3830         (prepare_finalizers): Ditto.
3831         (is_inv_store_elimination_chain): New function.
3832         (initialize_root_vars_store_elim_1): New function.
3834 2017-07-28  Bin Cheng  <bin.cheng@arm.com>
3836         * tree-predcom.c: Revise general description of the pass.
3837         (enum chain_type): New enum type for store elimination.
3838         (struct chain): New field supporting store elimination.
3839         (struct component): Ditto.
3840         (dump_chain): Dump store-stores chain.
3841         (release_chain): Release resources.
3842         (split_data_refs_to_components): Compute and create component
3843         contains only stores for elimination.
3844         (get_chain_last_ref_at): New function.
3845         (make_invariant_chain): Initialization.
3846         (make_rooted_chain): Specify chain type in parameter and record it.
3847         (add_looparound_copies): Skip for store-stores chain.
3848         (determine_roots_comp): Compute type of chain and pass it to
3849         make_rooted_chain.
3850         (initialize_root_vars_store_elim_2): New function.
3851         (finalize_eliminated_stores): New function.
3852         (remove_stmt): Handle store for elimination.
3853         (execute_pred_commoning_chain): Execute predictive commoning on
3854         store-store chains.
3855         (determine_unroll_factor): Skip unroll for store-stores chain.
3856         (prepare_initializers_chain_store_elim): New function.
3857         (prepare_initializers_chain): Hanlde store-store chain.
3858         (prepare_finalizers_chain, prepare_finalizers): New function.
3859         (tree_predictive_commoning_loop): Return integer value indicating
3860         if loop is unrolled or lcssa form is corrupted.
3861         (tree_predictive_commoning): Rewrite for lcssa form if necessary.
3863 2017-07-28  Bin Cheng  <bin.cheng@arm.com>
3865         * tree-predcom.c (initialize_root): Delete.
3866         (execute_pred_commoning_chain): Initialize root vars and replace
3867         reference of non-combined chain directly, rather than call above
3868         function.
3870 2017-07-28  Bin Cheng  <bin.cheng@arm.com>
3872         * tree-predcom.c (ref_at_iteration): Add parameter NITERS.  Compute
3873         memory reference to DR at (NITERS + ITERS)-th iteration of loop.
3875 2017-07-28  Bin Cheng  <bin.cheng@arm.com>
3877         * tree-predcom.c (struct chain): New field init_seq.
3878         (release_chain): Release init_seq.
3879         (prepare_initializers_chain): Record intialization stmts in above
3880         field.
3881         (insert_init_seqs): New function.
3882         (tree_predictive_commoning_loop): Call insert_init_seqs.
3884 2017-07-28  Bin Cheng  <bin.cheng@arm.com>
3886         * tree-predcom.c (determine_roots_comp): Skip trivial components.
3888 2017-07-28  Richard Biener  <rguenther@suse.de>
3890         * match.pd: Remove superfluous :c.
3891         * genmatch.c (simplify::id): Add member.
3892         (lower_commutative, lower_opt_convert, lower_cond, lower_for):
3893         Copy id.
3894         (current_id): New global.
3895         (dt_node::parent): Move from ...
3896         (dt_operand::parent): ... here.  Add for_id member.
3897         (is_a_helper <dt_operand *>::test): DT_TRUE is also a dt_operand.
3898         (decision_tree::find_node): Relax order requirement when
3899         merging DT_TRUE nodes to ones inbetween the current simplify
3900         and the one we try to merge with.  Add diagnostic whenever
3901         we need to enforce pattern order by not merging.
3902         (decision_tree::insert): Set current_id.
3903         (decision_tree::print_node): Dump parent node and for_id.
3904         (parser::last_id): Add member.
3905         (parser::push_simplify): Assign unique id.
3906         (parser::parser): Initialize last_id.
3908 2017-07-28  Martin Liska  <mliska@suse.cz>
3910         PR sanitizer/81340
3911         * sanopt.c (sanitize_rewrite_addressable_params): Set VALUE_EXPR after
3912         gimple_build_debug_bind.
3914 2017-07-28  Richard Biener  <rguenther@suse.de>
3916         PR tree-optimization/81502
3917         * match.pd: Add pattern combining BIT_INSERT_EXPR with
3918         BIT_FIELD_REF.
3919         * tree-cfg.c (verify_expr): Verify types of BIT_FIELD_REF
3920         size/pos operands.
3921         (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR pos.
3922         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Use bitsizetype
3923         for BIT_FIELD_REF args.
3924         * fold-const.c (make_bit_field_ref): Likewise.
3925         * tree-vect-stmts.c (vectorizable_simd_clone_call): Likewise.
3927 2017-07-28  Jakub Jelinek  <jakub@redhat.com>
3929         PR sanitizer/80998
3930         * sanopt.c (pass_sanopt::execute): Handle IFN_UBSAN_PTR.
3931         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.
3932         * flag-types.h (enum sanitize_code): Add SANITIZER_POINTER_OVERFLOW.
3933         Or it into SANITIZER_UNDEFINED.
3934         * ubsan.c: Include gimple-fold.h and varasm.h.
3935         (ubsan_expand_ptr_ifn): New function.
3936         (instrument_pointer_overflow): New function.
3937         (maybe_instrument_pointer_overflow): New function.
3938         (instrument_object_size): Formatting fix.
3939         (pass_ubsan::execute): Call instrument_pointer_overflow
3940         and maybe_instrument_pointer_overflow.
3941         * internal-fn.c (expand_UBSAN_PTR): New function.
3942         * ubsan.h (ubsan_expand_ptr_ifn): Declare.
3943         * sanitizer.def (__ubsan_handle_pointer_overflow,
3944         __ubsan_handle_pointer_overflow_abort): New builtins.
3945         * tree-ssa-tail-merge.c (merge_stmts_p): Handle IFN_UBSAN_PTR.
3946         * internal-fn.def (UBSAN_PTR): New internal function.
3947         * opts.c (sanitizer_opts): Add pointer-overflow.
3948         * lto-streamer-in.c (input_function): Handle IFN_UBSAN_PTR.
3949         * fold-const.c (build_range_check): Compute pointer range check in
3950         integral type if pointer arithmetics would be needed.  Formatting
3951         fixes.
3953 2017-07-28  Martin Liska  <mliska@suse.cz>
3955         PR sanitizer/81460
3956         * sanopt.c (sanitize_rewrite_addressable_params): Do not rewrite
3957         parameters that are of a variable-length.
3959 2017-07-28  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3961         * config.gcc (powerpc-*-rtems*): Remove rs6000/eabi.h.  Add
3962         rs6000/biarch64.h.
3963         * config/rs6000/rtems.h (ASM_DECLARE_FUNCTION_SIZE): New macro.
3964         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3965         (CRT_CALL_STATIC_FUNCTION): Likewise.
3966         (ASM_DEFAULT_SPEC): New define.
3967         (ASM_SPEC32): Likewise.
3968         (ASM_SPEC64): Likewise.
3969         (ASM_SPEC_COMMON): Likewise.
3970         (ASM_SPEC): Likewise.
3971         (INVALID_64BIT): Likewise.
3972         (LINK_OS_DEFAULT_SPEC): Likewise.
3973         (LINK_OS_SPEC32): Likewise.
3974         (LINK_OS_SPEC64): Likewise.
3975         (POWERPC_LINUX): Likewise.
3976         (PTRDIFF_TYPE): Likewise.
3977         (RESTORE_FP_PREFIX): Likewise.
3978         (RESTORE_FP_SUFFIX): Likewise.
3979         (SAVE_FP_PREFIX): Likewise.
3980         (SAVE_FP_SUFFIX): Likewise.
3981         (SIZE_TYPE): Likewise.
3982         (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
3983         (TARGET_64BIT): Likewise.
3984         (TARGET_64BIT): Likewise.
3985         (TARGET_AIX): Likewise.
3986         (WCHAR_TYPE_SIZE): Likewise.
3987         (WCHAR_TYPE): Undefine.
3988         (TARGET_OS_CPP_BUILTINS): Add 64-bit PowerPC defines.
3989         (CPP_OS_DEFAULT_SPEC): Use previous CPP_OS_RTEMS_SPEC.
3990         (CPP_OS_RTEMS_SPEC): Delete.
3991         (SUBSUBTARGET_EXTRA_SPECS): Remove cpp_os_rtems.  Add
3992         asm_spec_common, asm_spec32, asm_spec64, link_os_spec32, and
3993         link_os_spec64.
3994         * config/rs6000/t-rtems: Add mcpu=e6500/m64 multilibs.
3996 2017-07-28  Jakub Jelinek  <jakub@redhat.com>
3998         PR tree-optimization/81578
3999         * tree-parloops.c (build_new_reduction): Bail out if
4000         reduction_code isn't one of the standard OpenMP reductions.
4001         Move the details printing after that decision.
4003 2017-07-27  Peter Bergner  <bergner@vnet.ibm.com>
4005         * config/rs6000/predicates.md (volatile_mem_operand): Remove code
4006         related to reload_in_progress.
4007         (splat_input_operand): Likewise.
4008         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
4009         Delete prototype.
4010         * config/rs6000/rs6000.c (machine_function): Remove sdmode_stack_slot
4011         field.
4012         (TARGET_EXPAND_TO_RTL_HOOK): Delete.
4013         (TARGET_INSTANTIATE_DECLS): Likewise.
4014         (legitimate_indexed_address_p): Delete reload_in_progress code.
4015         (rs6000_debug_legitimate_address_p): Likewise.
4016         (rs6000_eliminate_indexed_memrefs): Likewise.
4017         (rs6000_emit_le_vsx_store): Likewise.
4018         (rs6000_emit_move_si_sf_subreg): Likewise.
4019         (rs6000_emit_move): Likewise.
4020         (register_to_reg_type): Likewise.
4021         (rs6000_pre_atomic_barrier): Likewise.
4022         (rs6000_machopic_legitimize_pic_address): Likewise.
4023         (rs6000_allocate_stack_temp): Likewise.
4024         (rs6000_address_for_fpconvert): Likewise.
4025         (rs6000_address_for_altivec): Likewise.
4026         (rs6000_secondary_memory_needed_rtx): Delete function.
4027         (rs6000_check_sdmode): Likewise.
4028         (rs6000_alloc_sdmode_stack_slot): Likewise.
4029         (rs6000_instantiate_decls): Likewise.
4030         * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
4031         * config/rs6000/rs6000.md (splitter for *movsi_got_internal):
4032         Delete reload_in_progress.
4033         (*vec_reload_and_plus_<mptrsize>): Likewise.
4034         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
4035         (vsx_div_v2di): Likewise.
4036         (vsx_udiv_v2di): Likewise.
4038 2017-07-27  Peter Bergner  <bergner@vnet.ibm.com>
4040         * config/rs6000/rs6000.opt (mlra): Replace with stub.
4041         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Delete OPTION_MASK_LRA.
4042         * config/rs6000/rs6000.c (TARGET_LRA_P): Delete.
4043         (rs6000_debug_reg_global): Delete print of LRA status.
4044         (rs6000_option_override_internal): Delete dead LRA related code.
4045         (rs6000_lra_p): Delete function.
4046         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mlra.
4048 2017-07-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4050         * config.gcc (riscv*-*-elf*): Add (riscv*-*-rtems*).
4051         * config/riscv/rtems.h: New file.
4053 2017-07-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4054             Sudakshina Das  <sudi.das@arm.com>
4056         * config/aarch64/aarch64.md
4057         (define_split for and<mode>3nr_compare): Move
4058         non aarch64_logical_operand to a register.
4059         (define_split for and_<SHIFT:optab><mode>3nr_compare0): Move non
4060         register immediate operand to a register.
4061         * config/aarch64/predicates.md (aarch64_mov_imm_operand): New.
4063 2017-07-27  Peter Bergner  <bergner@vnet.ibm.com>
4065         PR middle-end/81564
4066         * tree-cfg.c (group_case_labels_stmt): Handle already deleted blocks.
4068 2017-07-27  Richard Biener  <rguenther@suse.de>
4070         PR tree-optimization/81573
4071         PR tree-optimization/81494
4072         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
4073         multi defuse cycle case.
4075 2017-07-27  Richard Biener  <rguenther@suse.de>
4077         PR tree-optimization/81571
4078         * tree-vect-slp.c (vect_build_slp_tree): Properly verify reduction
4079         PHIs.
4081 2017-07-27  Eric Botcazou  <ebotcazou@adacore.com>
4083         * config/sparc/sparc.c (sparc_option_override): Set MASK_FSMULD flag
4084         earlier and only if MASK_FPU is set.  Adjust formatting.
4086 2017-07-27  Martin Liska  <mliska@suse.cz>
4088         * opt-functions.awk: Add validation of value of Init.
4089         * optc-gen.awk: Pass new argument.
4091 2017-07-27  Martin Liska  <mliska@suse.cz>
4093         * auto-profile.c (autofdo_source_profile::update_inlined_ind_target):
4094         Fix wrong condition.
4096 2017-07-27  Martin Liska  <mliska@suse.cz>
4098         * auto-profile.c (afdo_annotate_cfg): Assign zero counts to
4099         BBs and edges seen by autoFDO.
4101 2017-07-27  Richard Biener  <rguenther@suse.de>
4103         PR tree-optimization/81502
4104         * tree-ssa.c (non_rewritable_lvalue_p): Handle BIT_INSERT_EXPR
4105         with incompatible but same sized type.
4106         (execute_update_addresses_taken): Likewise.
4108 2017-07-27  James Greenhalgh  <james.greenhalgh@arm.com>
4110         * tree-ssa-loop-ch.c (pass_ch::process_loop_p): Guard on
4111         flag_tree_loop_vectorize rather than flag_tree_vectorize.
4113 2017-07-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4115         PR target/81534
4116         * config/s390/s390.md ("*atomic_compare_and_swap<mode>_1")
4117         ("*atomic_compare_and_swapdi_2", "*atomic_compare_and_swapsi_3"):
4118         Change s_operand to memory_operand.
4120 2017-07-27  Richard Sandiford  <richard.sandiford@linaro.org>
4122         * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_permute): Declare.
4123         * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Replace with...
4124         (rs6000_emit_le_vsx_permute): ...this.  Take the destination as input.
4125         Emit instructions rather than returning an expression.  Handle TFmode
4126         and KFmode by casting to TImode.
4127         (rs6000_emit_le_vsx_load): Update to use rs6000_emit_le_vsx_permute.
4128         (rs6000_emit_le_vsx_store): Likewise.
4129         * config/rs6000/vsx.md (VSX_TI): New iterator.
4130         (*vsx_le_permute_<mode>): Use it instead of VSX_LE_128.
4131         (*vsx_le_undo_permute_<mode>): Likewise.
4132         (*vsx_le_perm_load_<mode>): Use rs6000_emit_le_vsx_permute to
4133         emit the split sequence.
4134         (*vsx_le_perm_store_<mode>): Likewise.
4136 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
4138         PR tree-optimization/81555
4139         PR tree-optimization/81556
4140         * tree-ssa-reassoc.c (rewrite_expr_tree): Add NEXT_CHANGED argument,
4141         if true, force CHANGED for the recursive invocation.
4142         (reassociate_bb): Remember original length of ops array, pass
4143         len != orig_len as NEXT_CHANGED in rewrite_expr_tree call.
4145         * attribs.c (decl_attributes): Imply noinline, noclone and no_icf
4146         attributes for noipa attribute.  For naked attribute use
4147         lookup_attribute first before lookup_attribute_spec.
4148         * final.c (rest_of_handle_final): Disable IPA RA for functions with
4149         noipa attribute.
4150         * ipa-visibility.c (non_local_p): Fix comment typos.  Return true
4151         for functions with noipa attribute.
4152         (cgraph_externally_visible_p): Return true for functions with noipa
4153         attribute.
4154         * cgraph.c (cgraph_node::get_availability): Return AVAIL_INTERPOSABLE
4155         for functions with noipa attribute.
4156         * doc/extend.texi: Document noipa function attribute.
4157         * tree-ssa-structalias.c (refered_from_nonlocal_fn): Set *nonlocal_p
4158         also for functions with noipa attribute.
4159         (ipa_pta_execute): Set nonlocal_p also for nodes with noipa attribute.
4161 2017-07-26  Andrew Pinski  <apinski@cavium.com>
4163         * config/aarch64/aarch64.c (thunderx_vector_cost): Decrease cost of
4164         vec_unalign_load_cost and vec_unalign_store_cost.
4166 2017-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
4168         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Delete
4169         -mvsx-small-integer option.
4170         (ISA_3_0_MASKS_IEEE): Likewise.
4171         (OTHER_VSX_VECTOR_MASKS): Likewise.
4172         (POWERPC_MASKS): Likewise.
4173         * config/rs6000/rs6000.opt (-mvsx-small-integer): Likewise.
4174         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Simplify
4175         code, only testing for DImode being allowed in non-VSX floating
4176         point registers.
4177         (rs6000_init_hard_regno_mode_ok): Change TARGET_VSX_SMALL_INTEGER
4178         to TARGET_P8_VECTOR test.  Remove redundant VSX test inside of
4179         another VSX test.
4180         (rs6000_option_override_internal): Delete -mvsx-small-integer.
4181         (rs6000_expand_vector_set): Change TARGET_VSX_SMALL_INTEGER to
4182         TARGET_P8_VECTOR test.
4183         (rs6000_secondary_reload_simple_move): Likewise.
4184         (rs6000_preferred_reload_class): Delete TARGET_VSX_SMALL_INTEGER,
4185         since TARGET_P9_VECTOR was already tested.
4186         (rs6000_opt_masks): Remove -mvsx-small-integer.
4187         * config/rs6000/vsx.md (vsx_extract_<mode>): Delete
4188         TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
4189         used.
4190         (vsx_extract_<mode>_p9): Delete TARGET_VSX_SMALL_INTEGER, since a
4191         test for TARGET_VEXTRACTUB was used, and that uses
4192         TARGET_P9_VECTOR.
4193         (p9 extract splitter): Likewise.
4194         (vsx_extract_<mode>_di_p9): Likewise.
4195         (vsx_extract_<mode>_store_p9): Likewise.
4196         (vsx_extract_si): Delete TARGET_VSX_SMALL_INTEGER, since a test
4197         for TARGET_P9_VECTOR was used.  Delete code that is now dead with
4198         the elimination of TARGET_VSX_SMALL_INTEGER.
4199         (vsx_extract_<mode>_p8): Likewise.
4200         (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>): Likewise.
4201         (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Likewise.
4202         (vsx_set_<mode>_p9): Likewise.
4203         (vsx_set_v4sf_p9): Likewise.
4204         (vsx_set_v4sf_p9_zero): Likewise.
4205         (vsx_insert_extract_v4sf_p9): Likewise.
4206         (vsx_insert_extract_v4sf_p9_2): Likewise.
4207         * config/rs6000/rs6000.md (sign extend splitter): Change
4208         TARGET_VSX_SMALL_INTEGER to TARGET_P8_VECTOR test.
4209         (floatsi<mode>2_lfiwax_mem): Likewise.
4210         (floatunssi<mode>2_lfiwzx_mem): Likewise.
4211         (float<QHI:mode><FP_ISA3:mode>2): Delete TARGET_VSX_SMALL_INTEGER,
4212         since a test for TARGET_P9_VECTOR was used.
4213         (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
4214         (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
4215         (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
4216         (fix_trunc<mode>si2): Change TARGET_VSX_SMALL_INTEGER to
4217         TARGET_P8_VECTOR test.
4218         (fix_trunc<mode>si2_stfiwx): Likewise.
4219         (fix_trunc<mode>si2_internal): Likewise.
4220         (fix_trunc<SFDF:mode><QHI:mode>2): Delete
4221         TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
4222         used.
4223         (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
4224         (fixuns_trunc<mode>si2): Change TARGET_VSX_SMALL_INTEGER to
4225         TARGET_P8_VECTOR test.
4226         (fixuns_trunc<mode>si2_stfiwx): Likewise.
4227         (fixuns_trunc<SFDF:mode><QHI:mode>2): Delete
4228         TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
4229         used.
4230         (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
4231         (fctiw<u>z_<mode>_smallint): Delete TARGET_VSX_SMALL_INTEGER,
4232         since a test for TARGET_P9_VECTOR was used.
4233         (splitter for loading small constants): Likewise.
4235 2017-07-26  Andrew Pinski  <apinski@cavium.com>
4237         * config/aarch64/aarch64.c (thunderx_vector_cost): Fix
4238         vec_fp_stmt_cost.
4240 2017-07-26  H.J. Lu  <hongjiu.lu@intel.com>
4242         PR target/81563
4243         * config/i386/i386.c (sp_valid_at): Properly check CFA offset.
4244         (fp_valid_at): Likewise.
4246 2017-07-26  James Greenhalgh  <james.greenhalgh@arm.com>
4248         * config/aarch64/aarch64.c (cortexa57_addrcost_table): Remove.
4249         (qdf24xx_addrcost_table): Likewise.
4250         (cortexa57_tunings): Update to use generic_branch_cost.
4251         (cortexa72_tunings): Likewise.
4252         (cortexa73_tunings): Likewise.
4253         (qdf24xx_tunings): Likewise.
4255 2017-07-26  James Greenhalgh  <james.greenhalgh@arm.com>
4257         * config/aarch64/aarch64.c (cortexa57_branch_cost): Remove.
4258         (thunderx2t99_branch_cost): Likewise.
4259         (cortexa35_tunings): Update to use generic_branch_cost.
4260         (cortexa53_tunings): Likewise.
4261         (cortexa57_tunings): Likewise.
4262         (cortexa72_tunings): Likewise.
4263         (cortexa73_tunings): Likewise.
4264         (thunderx2t99_tunings): Likewise.
4266 2017-07-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4268         * config/sparc/sparc.c (dump_target_flag_bits): Dump MASK_FSMULD.
4269         (sparc_option_override): Honour MASK_FSMULD.
4270         * config/sparc/sparc.h (MASK_FEATURES): Add MASK_FSMULD.
4271         * config/sparc/sparc.md (muldf3_extend): Use TARGET_FSMULD.
4272         * config/sparc/sparc.opt (mfsmuld): New option.
4273         * doc/invoke.texi (mfsmuld): Document option.
4275 2017-07-26  Marek Polacek  <polacek@redhat.com>
4277         PR middle-end/70992
4278         * tree.c (build2_stat): Don't set TREE_CONSTANT on divisions by zero.
4280 2017-07-26  Richard Biener  <rguenther@suse.de>
4282         * gimple-match-head.c (do_valueize): Return OP if valueize
4283         returns NULL_TREE.
4284         (get_def): New helper to get at the def stmt of a SSA name
4285         if valueize allows.
4286         * genmatch.c (dt_node::gen_kids_1): Use get_def instead of
4287         do_valueize to get at the def stmt.
4288         (dt_operand::gen_gimple_expr): Simplify do_valueize calls.
4290 2017-07-26  Wilco Dijkstra  <wdijkstr@arm.com>
4292         PR middle-end/46932
4293         * auto-inc-dec.c (parse_add_or_inc): Block autoinc on sfp.
4295 2017-07-26  Martin Liska  <mliska@suse.cz>
4297         PR sanitize/81186
4298         * function.c (expand_function_start): Make expansion of
4299         nonlocal_goto_save_area after parm_birth_insn.
4301 2017-07-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4303         * config/sparc/sparc.c (sparc_option_override): Remove MASK_FPU
4304         from all CPU target flags enable members.
4306 2017-07-26  Richard Biener  <rguenther@suse.de>
4308         * genmatch.c (dt_simplify::gen): Make iterator vars const.
4309         (decision_tree::gen): Make 'type' const.
4310         (write_predicate): Likewise.
4312 2017-07-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
4314         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok):
4315         Eliminate TARGET_UPPER_REGS_{DF,DI,SF} usage.
4316         (rs6000_option_override_internal): Likewise.
4317         (rs6000_expand_vector_set): Likewise.
4318         * config/rs6000/rs6000.h (TARGET_UPPER_REGS_DF): Delete.
4319         (TARGET_UPPER_REGS_SF): Likewise.
4320         (TARGET_UPPER_REGS_DI): Likewise.
4321         (TARGET_VEXTRACTUB): Eliminate TARGET_UPPER_REGS_{DF,DI,SF}.
4322         (TARGET_DIRECT_MOVE_64BIT): Likewise.
4323         * config/rs6000/rs6000.md (ALTIVEC_DFORM): Likewise.
4324         (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
4325         (Splitters for DI constants in Altivec registers): Likewise.
4326         * config/rs6000/vsx.md (vsx_set_<mode>_p9): Likewise.
4327         (vsx_set_v4sf_p9): Likewise.
4328         (vsx_set_v4sf_p9_zero): Likewise.
4329         (vsx_insert_extract_v4sf_p9): Likewise.
4330         (vsx_insert_extract_v4sf_p9_2): Likewise.
4332 2017-07-25  Carl Love  <cel@us.ibm.com>
4334         * doc/extend.texi: Update the built-in documentation file for the
4335         existing built-in functions
4336         vector signed char vec_cnttz (vector signed char);
4337         vector unsigned char vec_cnttz (vector unsigned char);
4338         vector signed short vec_cnttz (vector signed short);
4339         vector unsigned short vec_cnttz (vector unsigned short);
4340         vector signed int vec_cnttz (vector signed int);
4341         vector unsigned int vec_cnttz (vector unsigned int);
4342         vector signed long long vec_cnttz (vector signed long long);
4343         vector unsigned long long vec_cnttz (vector unsigned long long);
4345 2017-07-25  Andrew Pinski  <apinski@cavium.com>
4347         * tree-ssa-uninit.c (warn_uninitialized_vars): Don't warn about memory
4348         accesses where the use is for the first operand of a BIT_INSERT.
4350 2017-07-25  Jim Wilson  <jim.wilson@linaro.org>
4352         PR bootstrap/81521
4353         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition): Look
4354         for FUNCTION_DECLs in TYPE_FIELDS rather than TYPE_METHODS.
4356 2017-07-25  Jim Wilson  <jim.wilson@linaro.org>
4358         * config/i386/gstabs.h: Delete.
4359         * config/i386/openbsd.h, config/i386/t-openbsd: Likewise.
4361 2017-07-25  Uros Bizjak  <ubizjak@gmail.com>
4363         * config/i386/i386.c (ix86_decompose_address): Do not check for
4364         register RTX when looking at index_reg or base_reg.
4365         * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use stack_pointer_rtx.
4367 2017-07-25  Eric Botcazou  <ebotcazou@adacore.com>
4369         * gimple.c (gimple_assign_set_rhs_with_ops): Do not ask gsi_replace
4370         to update EH info here.
4372 2017-07-25  Alexander Monakov  <amonakov@ispras.ru>
4374         * match.pd ((X * CST1) * CST2): Simplify to X * (CST1 * CST2).
4376 2017-07-25  Alexander Monakov  <amonakov@ispras.ru>
4378         * match.pd ((X * CST) * Y): Reassociate to (X * Y) * CST.
4380 2017-07-25  Torsten Duwe  <duwe@suse.de>
4382         * common.opt: Introduce -fpatchable-function-entry
4383         command line option, and its variables function_entry_patch_area_size
4384         and function_entry_patch_area_start.
4385         * opts.c (common_handle_option): Add -fpatchable_function_entry_ case,
4386         including a two-value parser.
4387         * target.def (print_patchable_function_entry): New target hook.
4388         * targhooks.h (default_print_patchable_function_entry): New function.
4389         * targhooks.c (default_print_patchable_function_entry): Likewise.
4390         * toplev.c (process_options): Switch off IPA-RA if
4391         patchable function entries are being generated.
4392         * varasm.c (assemble_start_function): Look at the
4393         patchable-function-entry command line switch and current
4394         function attributes and maybe generate NOP instructions by
4395         calling the print_patchable_function_entry hook.
4396         * doc/extend.texi: Document patchable_function_entry attribute.
4397         * doc/invoke.texi: Document -fpatchable_function_entry
4398         command line option.
4399         * doc/tm.texi.in (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
4400         New target hook.
4401         * doc/tm.texi: Re-generate.
4403 2017-07-25  Jakub Jelinek  <jakub@redhat.com>
4405         PR target/81532
4406         * config/i386/constraints.md (Yd, Ye): Use ALL_SSE_REGS for
4407         TARGET_AVX512DQ rather than TARGET_AVX512BW.
4409 2017-07-25  Tamar Christina  <tamar.christina@arm.com>
4411         * config/arm/parsecpu.awk (all_cores): Remove duplicates.
4413 2017-07-25  Richard Biener  <rguenther@suse.de>
4415         PR tree-optimization/81455
4416         * tree-ssa-loop-unswitch.c (find_loop_guard): Make sure to
4417         not walk in cycles when looking for guards.
4419 2017-07-25  Richard Biener  <rguenther@suse.de>
4421         PR tree-optimization/81529
4422         * tree-vect-stmts.c (process_use): Disregard live induction PHIs
4423         when optimizing backedge uses.
4425 2017-07-25  David Edelsohn  <dje.gcc@gmail.com>
4427         * dwarf2asm.c (dw2_asm_output_nstring): Encode double quote
4428         character for AIX.
4429         * dwarf2out.c (output_macinfo): Copy debug_line_section_label
4430         to dl_section_ref.  On AIX, append an expression to subtract
4431         the size of the section length to dl_section_ref.
4433 2017-07-25  Segher Boessenkool  <segher@kernel.crashing.org>
4435         * configure.ac: If any of the config.* scripts fail, exit 1.
4436         * configure: Regenerate.
4438 2017-07-25  Richard Biener  <rguenther@suse.de>
4440         PR middle-end/81546
4441         * tree-ssa-operands.c (verify_imm_links): Remove cap on number
4442         of immediate uses, be more verbose on errors.
4444 2017-07-25  Richard Biener  <rguenther@suse.de>
4446         PR tree-optimization/81510
4447         * tree-vect-loop.c (vect_is_simple_reduction): When the
4448         reduction stmt is not inside the loop bail out.
4450 2017-07-25  Richard Biener  <rguenther@suse.de>
4452         PR tree-optimization/81303
4453         * tree-vect-loop-manip.c (vect_loop_versioning): Build
4454         profitability check against LOOP_VINFO_NITERSM1.
4456 2017-07-25  Alexander Monakov  <amonakov@ispras.ru>
4458         * domwalk.c (cmp_bb_postorder): Simplify.
4459         (sort_bbs_postorder): New function.  Use it...
4460         (dom_walker::walk): ...here to optimize common cases.
4462 2017-07-25  Martin Liska  <mliska@suse.cz>
4464         PR ipa/81520
4465         * ipa-visibility.c (function_and_variable_visibility): Make the
4466         redirection just on target that supports aliasing.
4467         Fix GNU coding style.
4469 2017-07-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4471         PR libgcc/61152
4472         * config/aarch64/rtems.h: Add GCC Runtime Library Exception.
4473         Format changes.
4474         * config/arm/rtems.h: Likewise.
4475         * config/bfin/rtems.h: Likewise.
4476         * config/i386/rtemself.h: Likewise.
4477         * config/lm32/rtems.h: Likewise.
4478         * config/m32c/rtems.h: Likewise.
4479         * config/m68k/rtemself.h: Likewise.
4480         * config/microblaze/rtems.h: Likewise.
4481         * config/mips/rtems.h: Likewise.
4482         * config/moxie/rtems.h: Likewise.
4483         * config/nios2/rtems.h: Likewise.
4484         * config/powerpcspe/rtems.h: Likewise.
4485         * config/rs6000/rtems.h: Likewise.
4486         * config/rtems.h: Likewise.
4487         * config/sh/rtems.h: Likewise.
4488         * config/sh/rtemself.h: Likewise.
4489         * config/sparc/rtemself.h: Likewise.
4491 2017-07-25  Georg-Johann Lay  <avr@gjlay.de>
4493         PR 81487
4494         * hsa-brig.c (brig_init): Use xasprintf instead of asprintf.
4495         * gimple-pretty-print.c (dump_profile, dump_probability): Same.
4496         * tree-ssa-structalias.c (alias_get_name): Same.
4498 2017-07-25  Bin Cheng  <bin.cheng@arm.com>
4500         PR target/81414
4501         * config/aarch64/cortex-a57-fma-steering.c (analyze): Skip fmul/fmac
4502         instructions if no du chain is found.
4504 2017-07-25  Georg-Johann Lay  <avr@gjlay.de>
4506         * config/avr/avr-log.c (avr_log_vadump) ['T']: Print NULL-TREE.
4508 2017-07-25  Richard Biener  <rguenther@suse.de>
4510         PR middle-end/81505
4511         * fold-const.c (fold_negate_const): TREE_OVERFLOW should be
4512         sticky.
4514 2017-07-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
4516         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Delete
4517         upper-regs options.
4518         (ISA_2_7_MASKS_SERVER): Likewise.
4519         (ISA_3_0_MASKS_IEEE): Likewise.
4520         (OTHER_P8_VECTOR_MASKS): Likewise.
4521         (OTHER_VSX_VECTOR_MASKS): Likewise.
4522         (POWERPC_MASKS): Likewise.
4523         (power7 cpu): Use ISA_2_6_MASKS_SERVER instead of using a
4524         duplicate list of options.
4525         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Remove
4526         explicit -mupper-regs options.
4527         * config/rs6000/rs6000.opt (-mvsx-scalar-memory): Delete
4528         -mupper-regs* options.  Delete -mvsx-scalar-memory, which was an
4529         alias for -mupper-regs-df.
4530         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Likewise.
4531         (rs6000_init_hard_regno_mode_ok): Likewise.
4532         (rs6000_option_override_internal): Likewise.
4533         (rs6000_opt_masks): Likewise.
4534         * config/rs6000/rs6000.h (TARGET_UPPER_REGS_DF): Define upper regs
4535         options in terms of whether -mvsx or -mpower8-vector was used.
4536         (TARGET_UPPER_REGS_DI): Likewise.
4537         (TARGET_UPPER_REGS_SF): Likewise.
4538         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete the
4539         -mupper-regs-* options.
4541 2017-07-24  Segher Boessenkool  <segher@kernel.crashing.org>
4543         * passes.c (emergency_dump_function): Print some empty lines and a
4544         header before the RTL dump.
4546 2017-07-24  Segher Boessenkool  <segher@kernel.crashing.org>
4548         * cfgrtl.c (rtl_dump_bb): Don't call NEXT_INSN on NULL.
4550 2017-07-24  Wilco Dijkstra  <wdijkstr@arm.com>
4552         PR target/79041
4553         * config/aarch64/aarch64.c (aarch64_classify_symbol):
4554         Avoid SYMBOL_SMALL_ABSOLUTE for literals with pc-relative literals.
4556 2017-07-24  Carl Love  <cel@us.ibm.com>
4558         * config/rs6000/rs6000-c.c: Add support for built-in functions
4559         vector float vec_extract_fp32_from_shorth (vector unsigned short);
4560         vector float vec_extract_fp32_from_shortl (vector unsigned short);
4561         * config/rs6000/altivec.h (vec_extract_fp_from_shorth,
4562         vec_extract_fp_from_shortl): Add defines for the two builtins.
4563         * config/rs6000/rs6000-builtin.def (VEXTRACT_FP_FROM_SHORTH,
4564         VEXTRACT_FP_FROM_SHORTL): Add BU_P9V_OVERLOAD_1 and BU_P9V_VSX_1
4565         new builtins.
4566         * config/rs6000/vsx.md vsx_xvcvhpsp): Add define_insn.
4567         (vextract_fp_from_shorth, vextract_fp_from_shortl): Add define_expands.
4568         * doc/extend.texi: Update the built-in documentation file for the
4569         new built-in function.
4571 2017-07-24  Jakub Jelinek  <jakub@redhat.com>
4573         PR bootstrap/81521
4574         * tree.def: Remove TYPE_METHODS documentation, adjust TYPE_FIELDS
4575         documentation.
4576         * doc/generic.texi: Likewise.
4577         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition): Look
4578         for FUNCTION_DECLs in TYPE_FIELDS rather than TYPE_METHODS.
4580 2017-07-24  Jackson Woodruff  <jackson.woodruff@arm.com>
4582         * config/aarch64/aarch64-simd.md (aarch64_mla_elt_merge<mode>): New.
4583         (aarch64_mls_elt_merge<mode>): Likewise.
4585 2017-07-23  Krister Walfridsson  <krister.walfridsson@gmail.com>
4587         * config.gcc (*-*-netbsd*): Remove check for NetBSD versions not
4588         having __cxa_atexit.
4590 2017-07-23  Michael Collison  <michael.collison@arm.com>
4592         * config/arm/arm.c (arm_option_override): Deprecate
4593         use of -mstructure-size-boundary.
4594         * config/arm/arm.opt: Deprecate -mstructure-size-boundary.
4595         * doc/invoke.texi: Deprecate -mstructure-size-boundary.
4597 2017-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4599         PR target/80695
4600         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4601         Reduce cost estimate for direct moves.
4603 2017-07-23  Uros Bizjak  <ubizjak@gmail.com>
4605         PR target/80569
4606         * config/i386/i386.c (ix86_option_override_internal): Disable
4607         BMI, BMI2 and TBM instructions for -m16.
4609 2017-07-21  Carl Love  <cel@us.ibm.com>
4611         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4612         ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
4613         ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
4614         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
4615         builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
4616         * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
4617         VMULOSW): New enum "unspec" values.
4618         (altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
4619         altivec_vmulosw): New patterns.
4620         * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
4621         VMULOSW): Add definitions.
4623 2017-07-21  Jim Wilson  <jim.wilson@linaro.org>
4625         * config/aarch64/aarch64-cores.def (falkor): Add AARCH64_FL_RDMA.
4626         (qdf24xx): Likewise.
4627         * config/aarch64/aarch64-options-extensions.def (rdma); New.
4628         * config/aarch64/aarch64.h (AARCH64_FL_RDMA): New.
4629         (AARCH64_FL_V8_1): Renumber.
4630         (AARCH64_FL_FOR_ARCH8_1): Add AARCH64_FL_RDMA.
4631         (AARCH64_ISA_RDMA): Use AARCH64_FL_RDMA.
4632         * config/aarch64/arm_neon.h: Use +rdma instead of arch=armv8.1-a.
4633         * doc/invoke.texi (AArch64 Options): Mention +rmda in -march docs.  Add
4634         rdma to feature modifiers list.
4636 2017-07-21  Yury Gribov  <tetra2005@gmail.com>
4638         PR middle-end/56727
4639         * ipa-visibility (function_and_variable_visibility): Convert
4640         recursive PLT call to direct call if appropriate.
4642 2017-07-21  Andrew Pinski  <apinski@cavium.com>
4644         * tree-ssa-sccvn.c (vn_nary_op_eq): Check BIT_INSERT_EXPR's
4645         operand 1 to see if the types precision matches.
4646         * fold-const.c (operand_equal_p): Likewise.
4648 2017-07-21  Richard Biener  <rguenther@suse.de>
4650         PR tree-optimization/81303
4651         * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs): Pass
4652         in datarefs vector.  Allow NULL dr0 for no peeling cost estimate.
4653         (vect_peeling_hash_get_lowest_cost): Adjust.
4654         (vect_enhance_data_refs_alignment): Likewise.  Use
4655         vect_get_peeling_costs_all_drs to compute the penalty for no
4656         peeling to match up costs.
4658 2017-07-21  Richard Biener  <rguenther@suse.de>
4660         PR tree-optimization/81500
4661         * tree-vect-loop.c (vect_is_simple_reduction): Properly fail if
4662         we didn't identify a reduction path.
4664 2017-07-21  Tom de Vries  <tom@codesourcery.com>
4665             Cesar Philippidis  <cesar@codesourcery.com>
4667         PR gcov-profile/81442
4668         * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Add missing edge
4669         probabilities.
4671 2017-07-21  Tom de Vries  <tom@codesourcery.com>
4673         PR lto/81430
4674         * config/nvptx/nvptx.c (nvptx_override_options_after_change): New
4675         function.
4676         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define to
4677         nvptx_override_options_after_change.
4679 2017-07-21  Ulrich Drepper  <drepper@redhat.com>
4681         * dwarf2out.c (output_file_names): Avoid double testing for
4682         dwarf_version >= 5.
4684 2017-07-21  Georg-Johann Lay  <avr@gjlay.de>
4686         * doc/invoke.texi (AVR Built-in Functions): Re-layout section.
4688 2016-07-21  Jan Hubicka  <hubicka@ucw.cz>
4690         * cfgcleanup.c (flow_find_cross_jump): Do not crossjump across
4691         hot/cold regions.
4692         (try_crossjump_to_edge): Do not punt on partitioned functions.
4694 2016-07-21  Jan Hubicka  <hubicka@ucw.cz>
4696         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
4697         Put all BBs reachable only via paths crossing cold region to cold
4698         region.
4699         * cfgrtl.c (find_bbs_reachable_by_hot_paths): New function.
4701 2016-07-21  Richard Biener  <rguenther@suse.de>
4703         PR tree-optimization/81303
4704         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Take
4705         into account prologue and epilogue iterations when raising
4706         min_profitable_iters to sth at least covering one vector iteration.
4708 2017-07-21  Tamar Christina  <tamar.christina@arm.com>
4710         * config/arm/arm.c (arm_test_cpu_arch_dat):
4711         Check for overlap.
4713 2017-07-20  Nathan Sidwell  <nathan@acm.org>
4715         Remove TYPE_METHODS.
4716         * tree.h (TYPE_METHODS): Delete.
4717         * dwarf2out.c (gen_member_die): Member fns are on TYPE_FIELDS.
4718         * dbxout.c (dbxout_type_fields): Ignore FUNCTION_DECLs.
4719         (dbxout_type_methods): Scan TYPE_FIELDS.
4720         (dbxout_type): Don't check TYPE_METHODS here.
4721         * function.c (use_register_for_decl): Always ignore register for
4722         class types when not optimizing.
4723         * ipa-devirt.c (odr_types_equivalent_p): Delete TYPE_METHODS scan.
4724         * tree.c (free_lang_data_in_type): Stitch out member functions and
4725         templates from TYPE_FIELDS.
4726         (build_distinct_type_copy, verify_type_variant,
4727         verify_type): Member fns are on TYPE_FIELDS.
4728         * tree-dump.c (dequeue_and_dump): No TYPE_METHODS.
4729         * tree-pretty-print.c (dump_generic_node): Likewise.
4731 2017-07-20  Jakub Jelinek  <jakub@redhat.com>
4733         PR target/80846
4734         * config/i386/i386.c (ix86_expand_vector_init_general): Handle
4735         V2TImode and V4TImode.
4736         (ix86_expand_vector_extract): Likewise.
4737         * config/i386/sse.md (VMOVE): Enable V4TImode even for just
4738         TARGET_AVX512F, instead of only for TARGET_AVX512BW.
4739         (ssescalarmode): Handle V4TImode and V2TImode.
4740         (VEC_EXTRACT_MODE): Add V4TImode and V2TImode.
4741         (*vec_extractv2ti, *vec_extractv4ti): New insns.
4742         (VEXTRACTI128_MODE): New mode iterator.
4743         (splitter for *vec_extractv?ti first element): New.
4744         (VEC_INIT_MODE): New mode iterator.
4745         (vec_init<mode>): Consolidate 3 expanders into one using
4746         VEC_INIT_MODE mode iterator.
4748 2017-07-20  Alexander Monakov  <amonakov@ispras.ru>
4750         * lra-assigns.c (pseudo_compare_func): Fix comparison step based on
4751         non_spilled_static_chain_regno_p.
4753 2017-07-20  Alexander Monakov  <amonakov@ispras.ru>
4755         * gimple-ssa-store-merging.c (sort_by_bitpos): Return 0 on equal bitpos.
4757 2017-07-20  Jan Hubicka  <hubicka@ucw.cz>
4759         * bb-reorder.c (connect_traces): Allow copying of blocks within
4760         single partition.
4762 2017-07-20  Richard Biener  <rguenther@suse.de>
4764         * gimple.h (gimple_phi_result): Add gphi * overload.
4765         (gimple_phi_result_ptr): Likewise.
4766         (gimple_phi_arg): Likewise.  Adjust index assert to only
4767         allow actual argument accesses rather than all slots available
4768         by capacity.
4769         (gimple_phi_arg_def): Add gphi * overload.
4770         * tree-phinodes.c (make_phi_node): Initialize only actual
4771         arguments.
4772         (resize_phi_node): Clear memory not covered by old node,
4773         do not initialize excess argument slots.
4774         (reserve_phi_args_for_new_edge): Initialize new argument slot
4775         completely.
4777 2017-07-20  Bin Cheng  <bin.cheng@arm.com>
4779         PR tree-optimization/81388
4780         Revert r238585:
4781         2016-07-21  Bin Cheng  <bin.cheng@arm.com>
4783         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
4784         by removing computation of may_be_zero.
4786 2017-07-18  Jan Hubicka  <hubicka@ucw.cz>
4787             Tom de Vries  <tom@codesourcery.com>
4789         PR middle-end/81030
4790         * cfgbuild.c (find_many_sub_basic_blocks): Update REG_BR_PROB note
4791         when gimple level profile disagrees with what RTL expander did.
4793 2017-07-20  Richard Biener  <rguenther@suse.de>
4795         PR tree-optimization/61171
4796         * tree-vectorizer.h (slp_instance): Add reduc_phis member.
4797         (vect_analyze_stmt): Add slp instance parameter.
4798         (vectorizable_reduction): Likewise.
4799         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust.
4800         (vect_is_simple_reduction): Deal with chains not detected
4801         as SLP reduction chain, specifically not properly associated
4802         chains containing a mix of plus/minus.
4803         (get_reduction_op): Remove.
4804         (get_initial_defs_for_reduction): Simplify, pass in whether
4805         this is a reduction chain, pass in the SLP node for the PHIs.
4806         (vect_create_epilog_for_reduction): Get the SLP instance as
4807         arg and adjust.
4808         (vectorizable_reduction): Get the SLP instance as arg.
4809         During analysis remember the SLP node with the PHIs in the
4810         instance.  Simplify getting at the vectorized reduction PHIs.
4811         * tree-vect-slp.c (vect_slp_analyze_node_operations): Pass
4812         through SLP instance.
4813         (vect_slp_analyze_operations): Likewise.
4814         * tree-vect-stms.c (vect_analyze_stmt): Likewise.
4815         (vect_transform_stmt): Likewise.
4817 2017-07-20  Tom de Vries  <tom@codesourcery.com>
4819         PR tree-optimization/81489
4820         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Move
4821         read of phi arg location to before loop that modifies phi.
4823 2017-07-20  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
4825         * match.pd (((m1 >/</>=/<= m2) * d -> (m1 >/</>=/<= m2) ? d : 0):
4826         New pattern.
4828 2017-07-19  Jan Hubicka  <hubicka@ucw.cz>
4830         PR middle-end/81331
4831         * except.c (execute): Fix ordering issue.
4833 2018-07-19  Segher Boessenkool  <segher@kernel.crashing.org>
4835         PR rtl-optimization/81423
4836         * combine.c (make_compound_operation_int): Don't try to optimize
4837         the AND of a SUBREG of an LSHIFTRT if that SUBREG is paradoxical.
4839 2017-07-19  Segher Boessenkool  <segher@kernel.crashing.org>
4841         PR rtl-optimization/81423
4842         * simplify-rtx.c (simplify_truncation): Handle truncating an IOR
4843         with a constant that is -1 in the truncated to mode.
4845 2017-07-19  Jan Hubicka  <hubicka@ucw.cz>
4847         * predict.c (propagate_unlikely_bbs_forward): Break out from ...
4848         (determine_unlikely_bbs): ... here.
4849         * predict.h (propagate_unlikely_bbs_forward): Declare.
4850         * cfgexpand.c (pass_expand::execute): Use it.
4851         * bb-reorder.c (sanitize_hot_paths): Do not consider known to be
4852         unlikely edges.
4853         (find_rarely_executed_basic_blocks_and_crossing_edges): Use
4854         propagate_unlikely_bbs_forward.
4856 2017-07-19  Jan Hubicka  <hubicka@ucw.cz>
4858         PR middle-end/81331
4859         * except.c (maybe_add_nop_after_section_switch): New function.
4860         (execute): Use it.
4862 2017-07-19  Tom de Vries  <tom@codesourcery.com>
4864         * gimple.h (gimple_phi_set_arg): Make assert more strict.
4866 2017-07-19  Tom de Vries  <tom@codesourcery.com>
4868         * gimple.h (gimple_phi_arg): Make assert more strict.
4870 2017-07-19  Steven Munroe  <munroesj@gcc.gnu.org>
4872         * config.gcc (powerpc*-*-*): Add mmintrin.h.
4873         * config/rs6000/mmintrin.h: New file.
4874         * config/rs6000/x86intrin.h [__ALTIVEC__]: Include mmintrin.h.
4876 2017-07-19  Jakub Jelinek  <jakub@redhat.com>
4878         PR tree-optimization/81346
4879         * match.pd: Optimize (X - 1U) <= INT_MAX-1U into (int) X > 0.
4881 2017-07-19  Tom de Vries  <tom@codesourcery.com>
4883         * config/nvptx/nvptx.md (VECIM): Add V2DI.
4885 2017-07-19  Tom de Vries  <tom@codesourcery.com>
4887         * config/nvptx/nvptx-modes.def: Add V2DImode.
4888         * config/nvptx/nvptx-protos.h (nvptx_data_alignment): Declare.
4889         * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Handle V2DImode.
4890         (nvptx_output_mov_insn): Handle lack of mov.b128.
4891         (nvptx_print_operand): Handle 'H' and 'L' codes.
4892         (nvptx_vector_mode_supported): Allow V2DImode.
4893         (nvptx_preferred_simd_mode): New function.
4894         (nvptx_data_alignment): New function.
4895         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Redefine to
4896         nvptx_preferred_simd_mode.
4897         * config/nvptx/nvptx.h (STACK_BOUNDARY, BIGGEST_ALIGNMENT): Change from
4898         64 to 128 bits.
4899         (DATA_ALIGNMENT): Define.  Set to nvptx_data_alignment.
4901 2017-07-19  Tom de Vries  <tom@codesourcery.com>
4903         * config/nvptx/nvptx-modes.def: New file.  Add V2SImode.
4904         * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Handle V2SImode.
4905         (nvptx_vector_mode_supported): New function.  Allow V2SImode.
4906         (TARGET_VECTOR_MODE_SUPPORTED_P): Redefine to nvptx_vector_mode_supported.
4907         * config/nvptx/nvptx.md (VECIM): New mode iterator. Add V2SI.
4908         (mov<VECIM>_insn): New define_insn.
4909         (define_expand "mov<VECIM>): New define_expand.
4911 2017-07-19  Tom de Vries  <tom@codesourcery.com>
4913         * config/nvptx/nvptx.c (nvptx_print_operand): Handle v2 vector mode.
4915 2017-07-19  Jakub Jelinek  <jakub@redhat.com>
4917         PR tree-optimization/81346
4918         * fold-const.h (fold_div_compare, range_check_type): Declare.
4919         * fold-const.c (range_check_type): New function.
4920         (build_range_check): Use range_check_type.
4921         (fold_div_compare): No longer static, rewritten into
4922         a match.pd helper function.
4923         (fold_comparison): Don't call fold_div_compare here.
4924         * match.pd (X / C1 op C2): New optimization using fold_div_compare
4925         as helper function.
4927 2017-07-19  Nathan Sidwell  <nathan@acm.org>
4929         * tree.h (TYPE_MINVAL, TYPE_MAXVAL): Rename to ...
4930         (TYPE_MIN_VALUE_RAW, TYPE_MAX_VALUE_RAW): ... these.
4931         * tree.c (find_decls_types_r, verify_type): Use
4932         TYPE_{MIN,MAX}_VALUE_RAW.
4933         * lto-streamer-out.c (DFS::DFS_write_tree_body): Likewise.
4934         (hash_tree): Likewise.
4935         * tree-streamer-in.c (lto_input_ts_type_non_common_tree_pointers):
4936         Likewise.
4937         * tree-streamer-out.c (write_ts_type_non_common_tree_pointers):
4938         Likewise.
4940 2017-07-18  Tom de Vries  <tom@codesourcery.com>
4942         PR middle-end/81464
4943         * omp-expand.c (expand_omp_for_static_chunk): Handle
4944         equal-argument loop exit phi.
4946 2017-07-18  Uros Bizjak  <ubizjak@gmail.com>
4948         PR target/81471
4949         * config/i386/i386.md (rorx_immediate_operand): New mode attribute.
4950         (*bmi2_rorx<mode>3_1): Use rorx_immediate_operand as
4951         operand 2 predicate.
4952         (*bmi2_rorxsi3_1_zext): Use const_0_to_31_operand as
4953         operand 2 predicate.
4954         (ror,rol -> rorx splitters): Use const_int_operand as
4955         operand 2 predicate.
4957 2017-06-18  Richard Biener  <rguenther@suse.de>
4959         PR tree-optimization/81410
4960         * tree-vect-stmts.c (vectorizable_load): Properly adjust for
4961         the gap in the ! slp_perm SLP case after each group.
4963 2017-07-18  Jan Hubicka  <hubicka@ucw.cz>
4965         PR middle-end/81463
4966         * cfgloopmanip.c (scale_loop_profile): Watch out for zero frequency
4967         again.
4969 2017-07-18  Jan Hubicka  <hubicka@ucw.cz>
4971         PR middle-end/81462
4972         * predict.c (set_even_probabilities): Cleanup; do not affect
4973         probabilities that are already known.
4974         (combine_predictions_for_bb): Call even when count is set.
4976 2017-07-18  Nathan Sidwell  <nathan@acm.org>
4978         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
4979         TYPE_MAX_VALUE.
4981 2017-07-18  Bin Cheng  <bin.cheng@arm.com>
4983         PR target/81408
4984         * tree-ssa-loop-niter.c (number_of_iterations_exit): Dump missed
4985         optimization for loop niter analysis.
4987 2017-07-18  Georg-Johann Lay  <avr@gjlay.de>
4989         PR target/81473
4990         * config/avr/avr.c (avr_optimize_casesi): Don't use
4991         INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX.
4993 2017-07-18  Robin Dapp  <rdapp@linux.vnet.ibm.com>
4995         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Remove
4996         body_cost_vec from _vect_peel_extended_info.
4997         (vect_peeling_hash_get_lowest_cost): Do not set body_cost_vec.
4998         (vect_peeling_hash_choose_best_peeling): Remove body_cost_vec and
4999         npeel.
5001 2017-07-18  Bin Cheng  <bin.cheng@arm.com>
5003         * config/arm/arm.c (emit_unlikely_jump): Remove unused var.
5005 2017-07-18  Richard Biener  <rguenther@suse.de>
5007         PR tree-optimization/80620
5008         PR tree-optimization/81403
5009         * tree-ssa-pre.c (phi_translate_1): Clear range and points-to
5010         info when re-using a VN table entry.
5012 2017-07-18  Richard Biener  <rguenther@suse.de>
5014         PR tree-optimization/81418
5015         * tree-vect-loop.c (vectorizable_reduction): Properly compute
5016         vectype_in.  Verify that with lane-reducing reduction operations
5017         we have a single def-use cycle.
5019 2017-07-17  Carl Love  <cel@us.ibm.com>
5021         Revert commit r249424   2017-06-20  Carl Love  <cel@us.ibm.com>
5023         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5024         ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
5025         ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
5026         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
5027         builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
5028         * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
5029         VMULOSW): New enum "unspec" values.
5030         (vec_widen_umult_even_v4si, vec_widen_smult_even_v4si,
5031         vec_widen_umult_odd_v4si, vec_widen_smult_odd_v4si,
5032         altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
5033         altivec_vmulosw): New patterns.
5034         * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
5035         VMULOSW): Add definitions.
5036 2017-07-17  Uros Bizjak  <ubizjak@gmail.com>
5038         * config/alpha/alpha.c: Include predict.h.
5040 2017-07-17  Yury Gribov  <tetra2005@gmail.com>
5042         * tree-vrp.c (compare_assert_loc): Fix comparison function
5043         to return predictable results.
5045 2017-07-17  Claudiu Zissulescu  <claziss@synopsys.com>
5047         * config/arc/arc.md (adddi3): Remove support for mexpand-adddi
5048         option.
5049         (subdi3): Likewise.
5050         * config/arc/arc.opt (mexpand-adddi): Deprecate it.
5051         * doc/invoke.texi (mexpand-adddi): Update text.
5053 2017-07-17  Claudiu Zissulescu  <claziss@synopsys.com>
5055         * config/arc/arc.md (clzsi2): Expand to an arc_clzsi2 instruction
5056         that also clobbers the CC register. The old expand code is moved
5057         to ...
5058         (*arc_clzsi2): ... here.
5059         (ctzsi2): Expand to an arc_ctzsi2 instruction that also clobbers
5060         the CC register. The old expand code is moved to ...
5061         (arc_ctzsi2): ... here.
5063 2017-07-17  Claudiu Zissulescu  <claziss@synopsys.com>
5065         * config/arc/arc.opt (mindexed-loads): Use initial value
5066         TARGET_INDEXED_LOADS_DEFAULT.
5067         (mauto-modify-reg): Use initial value
5068         TARGET_AUTO_MODIFY_REG_DEFAULT.
5069         * config/arc/elf.h (TARGET_INDEXED_LOADS_DEFAULT): Define.
5070         (TARGET_AUTO_MODIFY_REG_DEFAULT): Likewise.
5071         * config/arc/linux.h (TARGET_INDEXED_LOADS_DEFAULT): Define.
5072         (TARGET_AUTO_MODIFY_REG_DEFAULT): Likewise.
5074 2017-07-17  Martin Liska  <mliska@suse.cz>
5076         PR sanitizer/81302
5077         * opts.c (finish_options): Do not allow -fgnu-tm
5078         w/ -fsanitize={kernel-,}address.  Say sorry.
5080 2017-07-17  Bin Cheng  <bin.cheng@arm.com>
5082         PR target/81369
5083         * tree-loop-distribution.c (classify_partition): Only assert on
5084         numer of iterations.
5085         (merge_dep_scc_partitions): Delete prameter.  Update function call.
5086         (distribute_loop): Remove code handling loop with unknown niters.
5087         (pass_loop_distribution::execute): Skip loop with unknown niters.
5089 2017-07-17  Bin Cheng  <bin.cheng@arm.com>
5091         PR target/81369
5092         * tree-loop-distribution.c (merge_dep_scc_partitions): Sink call to
5093         function sort_partitions_by_post_order.
5095 2017-07-17  Bin Cheng  <bin.cheng@arm.com>
5097         PR tree-optimization/81374
5098         * tree-loop-distribution.c (pass_loop_distribution::execute): Record
5099         the max index of basic blocks, rather than number of basic blocks.
5101 2017-07-17  Claudiu Zissulescu  <claziss@synopsys.com>
5103         * config/arc/arc-protos.h (arc_legitimate_pc_offset_p): Remove
5104         proto.
5105         (arc_legitimate_pic_operand_p): Likewise.
5106         * config/arc/arc.c (arc_legitimate_pic_operand_p): Remove
5107         function.
5108         (arc_needs_pcl_p): Likewise.
5109         (arc_legitimate_pc_offset_p): Likewise.
5110         (arc_legitimate_pic_addr_p): Remove LABEL_REF case, as this
5111         function is also used in constrains.md.
5112         (arc_legitimate_constant_p): Use arc_legitimate_pic_addr_p to
5113         validate pic constants. Handle CONST_INT, CONST_DOUBLE, MINUS and
5114         PLUS.  Only return true/false in known cases, otherwise assert.
5115         (arc_legitimate_address_p): Remove arc_legitimate_pic_addr_p as it
5116         is already called in arc_legitimate_constant_p.
5117         * config/arc/arc.h (CONSTANT_ADDRESS_P): Consider also LABEL for
5118         pic addresses.
5119         (LEGITIMATE_PIC_OPERAND_P): Use
5120         arc_raw_symbolic_reference_mentioned_p function.
5121         * config/arc/constraints.md (Cpc): Use arc_legitimate_pic_addr_p
5122         function.
5123         (Cal): Likewise.
5124         (C32): Likewise.
5126 2017-07-17  Claudiu Zissulescu  <claziss@synopsys.com>
5127         Andrew Burgess  <andrew.burgess@embecosm.com>
5129         * config/arc/arc-protos.h (arc_compute_function_type): Change prototype.
5130         (arc_return_address_register): New function.
5131         * config/arc/arc.c (arc_handle_fndecl_attribute): New function.
5132         (arc_handle_fndecl_attribute): Add naked attribute.
5133         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
5134         (TARGET_WARN_FUNC_RETURN): Likewise.
5135         (arc_allocate_stack_slots_for_args): New function.
5136         (arc_warn_func_return): Likewise.
5137         (machine_function): Change type fn_type.
5138         (arc_compute_function_type): Consider new naked function type,
5139         change function return type.
5140         (arc_must_save_register): Adapt to handle new
5141         arc_compute_function_type's return type.
5142         (arc_expand_prologue): Likewise.
5143         (arc_expand_epilogue): Likewise.
5144         (arc_return_address_regs): Delete.
5145         (arc_return_address_register): New function.
5146         (arc_epilogue_uses): Use above function.
5147         * config/arc/arc.h (arc_return_address_regs): Delete prototype.
5148         (arc_function_type): Change encoding, add naked type.
5149         (ARC_INTERRUPT_P): Change to handle the new encoding.
5150         (ARC_FAST_INTERRUPT_P): Likewise.
5151         (ARC_NORMAL_P): Define.
5152         (ARC_NAKED_P): Likewise.
5153         (arc_compute_function_type): Delete prototype.
5154         * config/arc/arc.md (in_ret_delay_slot): Use
5155         arc_return_address_register function.
5156         (simple_return): Likewise.
5157         (p_return_i): Likewise.
5159 2017-07-17  Jakub Jelinek  <jakub@redhat.com>
5161         PR tree-optimization/81428
5162         * match.pd (X / X -> one): Don't optimize _Fract divisions, as 1
5163         can't be built for those types.
5165 2017-07-17  Georg-Johann Lay  <avr@gjlay.de>
5167         Remove stuff dead since r239246.
5169         * config/avr/avr-arch.h (avr_inform_devices): Remove dead proto.
5170         * config/avr/avr-devices.c (mcu_name, comparator, avr_mcus_str)
5171         (avr_inform_devices): Remove dead stuff.
5173 2017-07-17  Tamar Christina  <tamar.christina@arm.com>
5175         * config/arm/arm_neon.h: Fix softp typo.
5177 2017-07-17  Jakub Jelinek  <jakub@redhat.com>
5179         PR tree-optimization/81365
5180         * tree-ssa-phiprop.c (propagate_with_phi): When considering hoisting
5181         aggregate moves onto bb predecessor edges, make sure there are no
5182         loads that could alias the lhs in between the start of bb and the
5183         loads from *phi.
5185 2017-07-17  Georg-Johann Lay  <avr@gjlay.de>
5187         PR 80929
5188         * config/avr/avr.c (avr_mul_highpart_cost): New static function.
5189         (avr_rtx_costs_1) [TRUNCATE]: Use it to compute mul_highpart cost.
5190         [LSHIFTRT, outer_code = TRUNCATE]: Same.
5192 2017-07-17  Jakub Jelinek  <jakub@redhat.com>
5194         PR tree-optimization/81396
5195         * tree-ssa-math-opts.c (struct symbolic_number): Add n_ops field.
5196         (init_symbolic_number): Initialize it to 1.
5197         (perform_symbolic_merge): Add n_ops from both operands into the new
5198         n_ops.
5199         (find_bswap_or_nop): Don't consider n->n == cmpnop computations
5200         without base_addr as useless if they need more than one operation.
5201         (bswap_replace): Handle !bswap case for NULL base_addr.
5203 2017-07-17  Tom de Vries  <tom@codesourcery.com>
5205         PR target/81069
5206         * config/nvptx/nvptx.c (nvptx_single): Insert diverging branch as late
5207         as possible.
5209 2017-07-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5211         * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
5212         conditional builtin define __FIX_LEON3FT_B2BST.
5214 2017-07-17  Daniel Cederman  <cederman@gaisler.com>
5216         * config/sparc/t-rtems: Add mfix-gr712rc multilibs. Replace
5217         MULTILIB_EXCEPTIONS with MULTILIB_REQUIRED. Match -mfix-gr712rc
5218         with -mfix-ut700.
5220 2017-07-16  Eric Botcazou  <ebotcazou@adacore.com>
5222         PR rtl-optimization/81424
5223         * optabs.c (prepare_cmp_insn): Use copy_to_reg instead of force_reg
5224         to remove potential trapping from operands if -fnon-call-exceptions.
5226 2017-07-16  Jan Hubicka  <hubicka@ucw.cz>
5228         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Use
5229         profile_proability for scalling.
5230         * scale_profile_for_vect_loop.c (scale_profile_for_vect_loop): Likewise.
5232 2017-07-16  Jan Hubicka  <hubicka@ucw.cz>
5234         * cgraph.c (cgraph_edge::redirect_call_stmt_to_caller): Cleanup.
5236 2017-07-16  Jan Hubicka  <hubicka@ucw.cz>
5238         * cfgloopmanip.c (scale_loop_profile): Avoid use of REG_BR_PROB_BASE
5239         fixpoint arithmetics.
5241 2017-07-16  Jan Hubicka  <hubicka@ucw.cz>
5243         * tree-ssa-loop-unswitch.c (hoist_guard): Avoid use of REG_BR_PROB_BASE
5244         fixpoint arithmetics.
5246 2017-07-16  Jan Hubicka  <hubicka@ucw.cz>
5248         * asan.c (create_cond_insert_point): Avoid use of REG_BR_PROB_BASE
5249         fixpoint arithmetics.
5251 2017-07-16  Jan Hubicka  <hubicka@ucw.cz>
5253         * profile-count.h (profile_probability::from_reg_br_prob_note,
5254         profile_probability::to_reg_br_prob_note): New functions.
5255         * doc/rtl.texi (REG_BR_PROB_NOTE): Update documentation.
5256         * reg-notes.h (REG_BR_PROB, REG_BR_PRED): Update docs.
5257         * predict.c (probability_reliable_p): Update.
5258         (edge_probability_reliable_p): Update.
5259         (br_prob_note_reliable_p): Update.
5260         (invert_br_probabilities): Update.
5261         (add_reg_br_prob_note): New function.
5262         (combine_predictions_for_insn): Update.
5263         * asan.c (asan_clear_shadow): Update.
5264         * cfgbuild.c (compute_outgoing_frequencies): Update.
5265         * cfgrtl.c (force_nonfallthru_and_redirect): Update.
5266         (update_br_prob_note): Update.
5267         (rtl_verify_edges): Update.
5268         (purge_dead_edges): Update.
5269         (fixup_reorder_chain): Update.
5270         * emit-rtl.c (try_split): Update.
5271         * ifcvt.c (cond_exec_process_insns): Update.
5272         (cond_exec_process_if_block): Update.
5273         (dead_or_predicable): Update.
5274         * internal-fn.c (expand_addsub_overflow): Update.
5275         (expand_neg_overflow): Update.
5276         (expand_mul_overflow): Update.
5277         * loop-doloop.c (doloop_modify): Update.
5278         * loop-unroll.c (compare_and_jump_seq): Update.
5279         * optabs.c (emit_cmp_and_jump_insn_1): Update.
5280         * predict.h: Update.
5281         * reorg.c (mostly_true_jump): Update.
5282         * rtl.h: Update.
5283         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Update.
5284         * config/alpha/alpha.c (emit_unlikely_jump): Update.
5285         * config/arc/arc.c: (emit_unlikely_jump): Update.
5286         * config/arm/arm.c: (emit_unlikely_jump): Update.
5287         * config/bfin/bfin.c (cbranch_predicted_taken_p): Update.
5288         * config/frv/frv.c (frv_print_operand_jump_hint): Update.
5289         * config/i386/i386.c (ix86_expand_split_stack_prologue): Update.
5290         (ix86_print_operand): Update.
5291         (ix86_split_fp_branch): Update.
5292         (predict_jump): Update.
5293         * config/ia64/ia64.c (ia64_print_operand): Update.
5294         * config/mmix/mmix.c (mmix_print_operand): Update.
5295         * config/powerpcspe/powerpcspe.c (output_cbranch): Update.
5296         (rs6000_expand_split_stack_prologue): Update.
5297         * config/rs6000/rs6000.c: Update.
5298         * config/s390/s390.c (s390_expand_vec_strlen): Update.
5299         (s390_expand_vec_movstr): Update.
5300         (s390_expand_cs_tdsi): Update.
5301         (s390_expand_split_stack_prologue): Update.
5302         * config/sh/sh.c (sh_print_operand): Update.
5303         (expand_cbranchsi4): Update.
5304         (expand_cbranchdi4): Update.
5305         * config/sparc/sparc.c (output_v9branch): Update.
5306         * config/spu/spu.c (get_branch_target): Update.
5307         (ea_load_store_inline): Update.
5308         * config/tilegx/tilegx.c (cbranch_predicted_p): Update.
5309         * config/tilepro/tilepro.c: Update.
5311 2017-07-16  Eric Botcazou  <ebotcazou@adacore.com>
5313         * gimplify.c (mostly_copy_tree_r): Revert latest change.
5314         (gimplify_save_expr): Likewise.
5316 2017-07-07  Jan Hubicka  <hubicka@ucw.cz>
5318         * ipa-visibility.c (function_and_variable_visibility): Fix pasto.
5320 2017-07-07  Jan Hubicka  <hubicka@ucw.cz>
5322         * ipa-fnsummary.c (pass_data_ipa_fn_summary): Use
5323         TV_IPA_FNSUMMARY.
5324         * timevar.def (TV_IPA_FNSUMMARY): Define.
5326 2017-07-16  Daniel Cederman  <cederman@gaisler.com>
5328         * config/sparc/sparc.md (divdf3_fix): Add NOP to prevent back
5329         to back store errata sensitive sequence from being generated.
5330         (sqrtdf2_fix): Likewise.
5332 2017-07-07  Jan Hubicka  <hubicka@ucw.cz>
5334         * tree-ssa-threadupdate.c (compute_path_counts,
5335         update_joiner_offpath_counts): Use profile_probability.
5337 2017-07-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5339         Revert:
5340         2017-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5342         * config/arm/arm-c.c (arm_cpu_builtins): Define
5343         __ARM_FEATURE_NUMERIC_MAXMIN solely based on TARGET_VFP5.
5345 2017-07-14  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5347         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5348         array entries to represent __ieee128 versions of the
5349         scalar_test_data_class, scalar_test_neg, scalar_extract_exp,
5350         scalar_extract_sig, and scalar_insert_exp built-in functions.
5351         (altivec_resolve_overloaded_builtin): Add special case handling
5352         for the __builtin_scalar_insert_exp function, as represented by
5353         the P9V_BUILTIN_VEC_VSIEDP constant.
5354         * config/rs6000/rs6000-builtin.def (VSEEQP): Add scalar extract
5355         exponent support for __ieee128 argument.
5356         (VSESQP): Add scalar extract signature support for __ieee128
5357         argument.
5358         (VSTDCNQP): Add scalar test negative support for __ieee128
5359         argument.
5360         (VSIEQP): Add scalar insert exponent support for __int128 argument
5361         with __ieee128 result.
5362         (VSIEQPF): Add scalar insert exponent support for __ieee128
5363         argument with __ieee128 result.
5364         (VSTDCQP): Add scalar test data class support for __ieee128
5365         argument.
5366         (VSTDCNQP): Add overload support for scalar test negative with
5367         __ieee128 argument.
5368         (VSTDCQP): Add overload support for scalar test data class
5369         __ieee128 argument.
5370         * config/rs6000/vsx.md (UNSPEC_VSX_SXSIG) Replace
5371         UNSPEC_VSX_SXSIGDP.
5372         (UNSPEC_VSX_SIEXPQP): New constant.
5373         (xsxexpqp): New insn for VSX scalar extract exponent quad
5374         precision.
5375         (xsxsigqp): New insn for VSX scalar extract significand quad
5376         precision.
5377         (xsiexpqpf): New insn for VSX scalar insert exponent quad
5378         precision with floating point argument.
5379         (xststdcqp): New expand for VSX scalar test data class quad
5380         precision.
5381         (xststdcnegqp): New expand for VSX scalar test negative quad
5382         precision.
5383         (xststdcqp): New insn to match expansions for VSX scalar test data
5384         class quad precision and VSX scalar test negative quad precision.
5385         * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
5386         special case operand checking to enforce that second operand of
5387         VSX scalar test data class with quad precision argument is a 7-bit
5388         unsigned literal.
5389         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
5390         prototypes and descriptions of __ieee128 versions of
5391         scalar_extract_exp, scalar_extract_sig, scalar_insert_exp,
5392         scalar_test_data_class, and scalar_test_neg built-in functions.
5394 2016-07-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5396         PR tree-optimization/81162
5397         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Don't
5398         replace a negate with an add.
5400 2017-07-14  James Greenhalgh  <james.greenhalgh@arm.com>
5402         * doc/invoke.texi (arm/-mcpu): Document +crypto.
5404 2017-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5406         * config/arm/arm-c.c (arm_cpu_builtins): Define
5407         __ARM_FEATURE_NUMERIC_MAXMIN solely based on TARGET_VFP5.
5409 2017-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5411         * config/arm/arm-cpus.in (cortex-r52): Add new entry.
5412         (armv8-r): Set ARM Cortex-R52 as default CPU.
5413         * config/arm/arm-tables.opt: Regenerate.
5414         * config/arm/arm-tune.md: Regenerate.
5415         * config/arm/driver-arm.c (arm_cpu_table): Add entry for ARM
5416         Cortex-R52.
5417         * doc/invoke.texi: Mention -mtune=cortex-r52 and availability of fp.dp
5418         extension for -mcpu=cortex-r52.
5420 2017-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5422         * config/arm/arm-isa.h (isa_bit_FP_ARMv8): Delete enumerator.
5423         (ISA_FP_ARMv8): Define as ISA_FPv5 and ISA_FP_D32.
5424         * config/arm/arm-cpus.in (armv8-r): Define fp.sp as enabling FPv5.
5425         (fp-armv8): Define it as FP_ARMv8 only.
5426         config/arm/arm.h (TARGET_FPU_ARMV8): Delete.
5427         (TARGET_VFP_FP16INST): Define using TARGET_VFP5 rather than
5428         TARGET_FPU_ARMV8.
5429         config/arm/arm.c (arm_rtx_costs_internal): Replace checks against
5430         TARGET_FPU_ARMV8 by checks against TARGET_VFP5.
5431         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Define
5432         first ARM_CHECK_BUILTIN_MODE definition using TARGET_VFP5 rather
5433         than TARGET_FPU_ARMV8.
5434         * config/arm/arm-c.c (arm_cpu_builtins): Likewise for
5435         __ARM_FEATURE_NUMERIC_MAXMIN macro definition.
5436         * config/arm/arm.md (cmov<mode>): Condition on TARGET_VFP5 rather than
5437         TARGET_FPU_ARMV8.
5438         * config/arm/neon.md (neon_vrint): Likewise.
5439         (neon_vcvt): Likewise.
5440         (neon_<fmaxmin_op><mode>): Likewise.
5441         (<fmaxmin><mode>3): Likewise.
5442         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Likewise.
5443         * config/arm/predicates.md (arm_cond_move_operator): Check against
5444         TARGET_VFP5 rather than TARGET_FPU_ARMV8 and fix spacing.
5446 2017-07-14  Jackson Woodruff  <jackson.woodruff@arm.com>
5448         * config/aarch64/aarch64.c (aarch64_print_operand): Move comments
5449         to top of function.
5451 2017-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5453         * gimple-ssa-store-merging.c (clear_bit_region): Replace reference to
5454         loop in comment with memset.
5456 2017-07-14  Martin Liska  <mliska@suse.cz>
5458         * cfgexpand.c (expand_gimple_basic_block): Remove dead comment.
5459         * dwarf2out.c (is_java): Remove the function.
5460         (output_pubname): Remove usage of the function.
5461         (lower_bound_default): Remove usage of DW_LANG_Java.
5462         (gen_compile_unit_die): Likewise.
5463         * gcc.c: Remove compiler defaults for .java and .zip files.
5464         * gimple-expr.c (remove_suffix): Change as there's no longer
5465         extension than 4-letter one.
5466         * gimplify.c (mostly_copy_tree_r): Remove Java-special part.
5467         (gimplify_save_expr): Likewise.
5468         * ipa-utils.h (polymorphic_type_binfo_p): Remove the comment
5469         as it's possible even for other languages than Java.
5470         * langhooks.h (struct lang_hooks): Remove Java from a comment.
5471         * lto-opts.c (lto_write_options): Remove reference to Java.
5472         * opts.c (strip_off_ending): Update file extension handling.
5473         * tree-cfg.c (verify_gimple_call): Remove comment with Java.
5474         * tree-eh.c (lower_resx): Likewise.
5475         * tree.c (free_lang_data_in_type): Remove dead code.
5476         (find_decls_types_r): Likewise.
5477         (build_common_builtin_nodes): Remove Java from a comment.
5478         (verify_type): Remove dead code.
5479         * varasm.c (assemble_external): Remove Java from a comment.
5481 2017-07-14  Martin Liska  <mliska@suse.cz>
5483         * opts.c (finish_options): Add quotes.
5484         (common_handle_option): Likewise.
5486 2017-07-14  Martin Liska  <mliska@suse.cz>
5488         * dbxout.c (get_lang_number): Do not handle GNU Pascal.
5489         * dbxout.h (extern void dbxout_stab_value_internal_label_diff):
5490         Remove N_SO_PASCAL.
5491         * dwarf2out.c (lower_bound_default): Do not handle
5492         DW_LANG_Pascal83.
5493         (gen_compile_unit_die): Likewise.
5494         * gcc.c: Remove default extension binding for GNU Pascal.
5495         * stmt.c: Remove Pascal language from a comment.
5496         * xcoffout.c: Likewise.
5498 2017-07-13  David Malcolm  <dmalcolm@redhat.com>
5500         PR c/81405
5501         * diagnostic-show-locus.c (fixit_cmp): New function.
5502         (layout::layout): Sort m_fixit_hints.
5503         (column_range::column_range): Assert that the values are valid.
5504         (struct char_span): New struct.
5505         (correction::overwrite): New method.
5506         (struct source_line): New struct.
5507         (line_corrections::add_hint): Add assertions.  Reimplement memcpy
5508         calls in terms of classes source_line and char_span, and
5509         correction::overwrite.
5510         (selftest::test_overlapped_fixit_printing_2): New function.
5511         (selftest::diagnostic_show_locus_c_tests): Call it.
5513 2017-07-13  Will Schmidt  <will_schmidt@vnet.ibm.com>
5515         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Return
5516         early if there is no lhs.
5518 2017-07-13  Martin Liska  <mliska@suse.cz>
5520         * dwarf2out.c (gen_pointer_type_die): Remove dead code.
5521         (gen_reference_type_die): Likewise.
5522         * stor-layout.c: Remove Pascal-related comment.
5524 2017-07-13  Martin Liska  <mliska@suse.cz>
5526         * opts.c (finish_options): Add quotes to error messages.
5527         (parse_sanitizer_options): Likewise.
5529 2017-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5531         * doc/invoke.texi (armv8-r): Document +fp.sp ARMv8-R extension.
5533 2017-07-13  Richard Earnshaw  <rearnsha@arm.com>
5535         * config/arm/vxworks.h (TARGET_ENDIAN_DEFAULT): Define.
5537 2017-07-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
5539         * asan.c (asan_emit_allocas_unpoison): Use ptr_mode for arguments
5540         during expansion.
5541         * builtins.c (expand_asan_emit_allocas_unpoison): Likewise.
5543 2017-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
5545         PR target/81193
5546         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): If GLIBC
5547         provides the hardware capability bits, define the macro
5548         __BUILTIN_CPU_SUPPORTS__.
5549         * config/rs6000/rs6000.c (cpu_expand_builtin): Generate a warning
5550         if GLIBC does not provide the hardware capability bits.  Add a
5551         gcc_unreachable call if the built-in cpu function is neither
5552         __builtin_cpu_is nor __builtin_cpu_supports.
5553         (rs6000_get_function_versions_dispatcher): Change the warning
5554         that an old GLIBC is used which does not export the capability
5555         bits to be an error.
5556         * doc/extend.texi (target_clones attribute): Document the
5557         restriction that GLIBC 2.23 or newer is needed on the PowerPC.
5558         (PowerPC built-in functions): Document that GLIBC 2.23 or newer is
5559         needed by __builtin_cpu_is and __builtin_cpu_supports.  Document
5560         the macros defined by GCC if the newer GLIBC is available.
5562 2017-07-12  Jeff Law  <law@redhat.com>
5564         * config/riscv/riscv.c: Remove unnecessary includes.  Reorder
5565         remaining includes slightly.
5566         * config/riscv/riscv-builtins.c: Include profile-count.h.
5568 2017-07-12  Georg-Johann Lay  <avr@gjlay.de>
5570         PR target/79883
5571         * config/avr/avr.c (avr_set_current_function): In diagnostic
5572         messages: Quote keywords and (parts of) identifiers.
5573         [WITH_AVRLIBC]: Warn for functions named "ISR", "SIGNAL" or
5574         "INTERUPT".
5576 2017-07-12  Carl Love  <cel@us.ibm.com>
5578         * config/rs6000/rs6000-c.c: Add support for built-in functions
5579         vector bool char vec_revb (vector bool char);
5580         vector bool short vec_revb (vector short char);
5581         vector bool int vec_revb (vector bool int);
5582         vector bool long long vec_revb (vector bool long long);
5583         * doc/extend.texi: Update the built-in documentation file for the
5584         new built-in functions.
5586 2017-07-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5588         * config/s390/s390.md: Remove movcc splitter.
5590 2017-07-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5592         * config/s390/s390.c (s390_rtx_costs): Return proper costs for
5593         load/store on condition.
5595 2017-07-12  Georg-Johann Lay  <avr@gjlay.de>
5597         PR target/81407
5598         * config/avr/avr.c (avr_encode_section_info)
5599         [progmem && !TREE_READONLY]: Error if progmem object needs
5600         constructing.
5602 2017-07-11  Michael Collison  <michael.collison@arm.com>
5604         * config/aarch64/aarch64-simd.md (aarch64_sub<mode>_compare0):
5605         New pattern.
5607 2017-07-11  Carl Love  <cel@us.ibm.com>
5609         * config/rs6000/rs6000-c.c: Add support for builtins
5610         vector unsigned int vec_parity_lsbb (vector signed int);
5611         vector unsigned int vec_parity_lsbb (vector unsigned int);
5612         vector unsigned __int128 vec_parity_lsbb (vector signed __int128);
5613         vector unsigned __int128 vec_parity_lsbb (vector unsigned __int128);
5614         vector unsigned long long vec_parity_lsbb (vector signed long long);
5615         vector unsigned long long vec_parity_lsbb (vector unsigned long long);
5616         * config/rs6000/rs6000-builtin.def (VPARITY_LSBB): Add BU_P9V_OVERLOAD1.
5617         * config/rs6000/altivec.h (vec_parity_lsbb): Add define.
5618         * doc/extend.texi: Update the built-in documentation file for the
5619         new built-in functions.
5621 2017-07-11  David Malcolm  <dmalcolm@redhat.com>
5623         * diagnostic-show-locus.c: Include "gcc-rich-location.h".
5624         (layout::m_primary_loc): New field.
5625         (layout::layout): Initialize new field.  Move location filtering
5626         logic from here to...
5627         (layout::maybe_add_location_range): ...this new method.  Add
5628         support for filtering to just the lines already specified by other
5629         locations.
5630         (layout::will_show_line_p): New method.
5631         (gcc_rich_location::add_location_if_nearby): New method.
5632         (selftest::test_add_location_if_nearby): New test function.
5633         (selftest::diagnostic_show_locus_c_tests): Call it.
5634         * gcc-rich-location.h (gcc_rich_location::add_location_if_nearby):
5635         New method.
5637 2017-07-11  Tom de Vries  <tom@codesourcery.com>
5639         * config/nvptx/nvptx.c (WORKAROUND_PTXJIT_BUG): New macro.
5640         (bb_first_real_insn): New function.
5641         (nvptx_single): Add extra initialization of broadcasted condition
5642         variables.
5644 2017-07-11  Nathan Sidwell  <nathan@acm.org>
5646         * dwarf2out.c (gen_member_die): Remove useless check for anon ctors.
5648 2017-07-11  Georg-Johann Lay  <avr@gjlay.de>
5650         * doc/extend.texi (AVR Function Attributes): Remove weblink to
5651         Binutils doc as TEXI will mess them up.
5652         * doc/invoke.texi (AVR Options): Same here.
5654 2017-07-11  Daniel Cederman  <cederman@gaisler.com>
5656         * config/sparc/sparc.opt (mfix-ut700): New option.
5657         (mfix-gr712rc): Likewise.
5658         (sparc_fix_b2bst): New variable.
5659         * doc/invoke.texi (SPARC options): Document them.
5660         (ARM options): Fix warnings.
5661         * config/sparc/sparc.c (sparc_do_work_around_errata): Insert NOP
5662         instructions to prevent sequences that can trigger the store-store
5663         errata for certain LEON3FT processors.
5664         (pass_work_around_errata::gate): Also test sparc_fix_b2bst.
5665         (sparc_option_override): Set sparc_fix_b2bst appropriately.
5666         * config/sparc/sparc.md (fix_b2bst): New attribute.
5667         (in_branch_delay): Prevent stores in delay slot if fix_b2bst.
5669 2017-07-10  Uros Bizjak  <ubizjak@gmail.com>
5671         PR target/81375
5672         * config/i386/i386.md (divsf3): Add TARGET_SSE to TARGET_SSE_MATH.
5673         (rcpps): Ditto.
5674         (*rsqrtsf2_sse): Ditto.
5675         (rsqrtsf2): Ditto.
5676         (div<mode>3): Macroize insn from divdf3 and divsf3
5677         using MODEF mode iterator.
5679 2017-07-10  Martin Sebor  <msebor@redhat.com>
5681         PR tree-optimization/80397
5682         * gimple-ssa-sprintf.c (format_integer): Use INTEGRAL_TYPE_P()
5683         instead of testing for equality to INTEGER_TYPE.
5685 2017-07-10  Vineet Gupta <vgupta@synopsys.com>
5687         * config.gcc: Remove uclibc from arc target spec.
5689 2017-07-10  Claudiu Zissulescu  <claziss@synopsys.com>
5691         * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Define.
5693 2017-07-07  Jan Hubicka  <hubicka@ucw.cz>
5695         PR lto/80838
5696         * lto-wrapper.c (remove_option): New function.
5697         (merge_and_complain): Merge PIC/PIE options more realistically.
5699 2017-07-10  Georg-Johann Lay  <avr@gjlay.de>
5701         Better ISR prologues by supporting GASes __gcc_isr pseudo insn.
5703         PR target/20296
5704         PR target/81268
5705         * configure.ac [target=avr]: Add GAS check for -mgcc-isr.
5706         (HAVE_AS_AVR_MGCCISR_OPTION):  If so, AC_DEFINE it.
5707         * config.in: Regenerate.
5708         * configure: Regenerate.
5709         * doc/extend.texi (AVR Function Attributes) <no_gccisr>: Document it.
5710         * doc/invoke.texi (AVR Options) <-mgas-isr-prologues>: Document it.
5711         * config/avr/avr.opt (-mgas-isr-prologues): New option and...
5712         (TARGET_GASISR_PROLOGUES): ...target mask.
5713         * common/config/avr/avr-common.c
5714         (avr_option_optimization_table) [OPT_LEVELS_1_PLUS_NOT_DEBUG]:
5715         Set -mgas-isr-prologues.
5716         * config/avr/avr-passes.def (avr_pass_pre_proep): Add
5717         INSERT_PASS_BEFORE for it.
5718         * config/avr/avr-protos.h (make_avr_pass_pre_proep): New proto.
5719         * config/avr/avr.c (avr_option_override)
5720         [!HAVE_AS_AVR_MGCCISR_OPTION]: Unset TARGET_GASISR_PROLOGUES.
5721         (avr_no_gccisr_function_p, avr_hregs_split_reg): New static functions.
5722         (avr_attribute_table) <no_gccisr>: Add new function attribute.
5723         (avr_set_current_function) <is_no_gccisr>: Init machine field.
5724         (avr_pass_data_pre_proep, avr_pass_pre_proep): New pass data
5725         and rtl_opt_pass.
5726         (make_avr_pass_pre_proep): New function.
5727         (emit_push_sfr) <treg>: Add argument to function and use it
5728         instead of TMP_REG.
5729         (avr_expand_prologue) [machine->gasisr.maybe]: Emit gasisr insn
5730         and set machine->gasisr.yes.
5731         (avr_expand_epilogue) [machine->gasisr.yes]: Similar.
5732         (avr_asm_function_end_prologue) [machine->gasisr.yes]: Add
5733         __gcc_isr.n_pushed to .L__stack_usage.
5734         (TARGET_ASM_FINAL_POSTSCAN_INSN): Define to...
5735         (avr_asm_final_postscan_insn): ...this new static function.
5736         * config/avr/avr.h (machine_function)
5737         <is_no_gccisr, use_L__stack_usage>: New fields.
5738         <gasisr, gasisr.yes, gasisr.maybe, gasisr.regno>: New fields.
5739         * config/avr/avr.md (UNSPECV_GASISR): Add unspecv enum.
5740         (GASISR_Prologue, GASISR_Epilogue, GASISR_Done): New define_constants.
5741         (gasisr, *gasisr): New expander and insn.
5742         * config/avr/gen-avr-mmcu-specs.c (print_mcu)
5743         [HAVE_AS_AVR_MGCCISR_OPTION]: Print asm_gccisr spec.
5744         * config/avr/specs.h (ASM_SPEC) <asm_gccisr>: Add sub spec.
5746 2017-07-10  Richard Earnshaw  <rearnsha@arm.com>
5748         * config/arm/parsecpu.awk (gen_comm_data): Do not escape single quotes
5749         in quoted strings.
5751 2017-07-10  Georg-Johann Lay  <avr@gjlay.de>
5753         Move jump-tables out of .text again.
5755         PR target/81075
5756         * config/avr/avr.c (ASM_OUTPUT_ADDR_VEC_ELT): Remove function.
5757         (ASM_OUTPUT_ADDR_VEC): New function.
5758         (avr_adjust_insn_length) [JUMP_TABLE_DATA_P]: Return 0.
5759         (avr_final_prescan_insn) [avr_log.insn_addresses]: Dump
5760         INSN_ADDRESSes as asm comment.
5761         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION): Adjust comment.
5762         (ASM_OUTPUT_ADDR_VEC_ELT): Remove define.
5763         (ASM_OUTPUT_ADDR_VEC): Define to avr_output_addr_vec.
5764         * config/avr/avr.md (*tablejump): Adjust comment.
5765         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
5766         * config/avr/avr-log.c (avr_log_set_avr_log) <insn_addresses>:
5767         New detail.
5768         * config/avr/avr-protos.h (avr_output_addr_vec_elt): Remove proto.
5769         (avr_output_addr_vec): New proto.
5770         (avr_log_t) <insn_addresses>: New field.
5772 2017-07-09  H.J. Lu  <hongjiu.lu@intel.com>
5774         PR target/81313
5775         * config/i386/i386.c (ix86_function_arg_advance): Set
5776         outgoing_args_on_stack to true if there are outgoing arguments
5777         on stack.
5778         (ix86_function_arg): Likewise.
5779         (ix86_get_drap_rtx): Use DRAP only if there are outgoing
5780         arguments on stack and ACCUMULATE_OUTGOING_ARGS is false.
5781         * config/i386/i386.h (machine_function): Add
5782         outgoing_args_on_stack.
5784 2017-07-09  Krister Walfridsson  <krister.walfridsson@gmail.com>
5786         * config.gcc (*-*-netbsd*): Remove check for NetBSD versions not
5787         supporting pthreds.
5788         * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always enable pthreads.
5790 2017-07-08  Richard Sandiford  <richard.sandiford@linaro.org>
5792         * Makefile.in (HOOKS_H, RTL_BASE_H, FUNCTION_H, EXPR_H, REGS_H)
5793         (REAL_H): Remove $(MACHMODE_H).
5794         (FIXED_VALUE_H, TREE_CORE_H, CFGLOOP_H): Remove $(MACHMODE_H) and
5795         double-int.h.
5796         (CORETYPES_H): Add signop.h, wide-int.h, wide-int-print.h,
5797         $(MACHMODE_H) and double-int.h.
5798         (build/min-insn-modes.o): Depend on $(CORETYPES_H) rather than
5799         $(MACHMODE_H).
5800         (gengtype-state.o, gengtype.o, build/gengtype.o): Don't depend on
5801         double-int.h.
5803 2017-07-07  Andrew Pinski  <apinski@cavium.com>
5805         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Check
5806         prev_set and curr_set for AARCH64_FUSE_ALU_BRANCH.
5808 2017-07-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
5810         * config/rs6000/rs6000.c (rs6000_get_function_versions_dispatcher):
5811         Add warning if GCC was not configured to link against a GLIBC that
5812         exports the hardware capability bits.
5813         (make_resolver_func): Make resolver function private and not a
5814         COMDAT function.  Create the name with clone_function_name instead
5815         of make_unique_name.
5817         PR target/81348
5818         * config/rs6000/rs6000.md (HI sign_extend splitter): Use the
5819         correct operand in doing the split.
5821 2017-07-07 Carl Love  <cel@us.ibm.com>
5823         * config/rs6000/rs6000-c: Add support for built-in function
5824         vector unsigned short vec_pack_to_short_fp32 (vector float,
5825                                                       vector float).
5826         * config/rs6000/rs6000-builtin.def (CONVERT_4F32_8I16): Add
5827         BU_P9V_AV_2 and BU_P9V_OVERLOAD_2 definitions.
5828         * config/rs6000/altivec.h (vec_pack_to_short_fp32): Add define.
5829         * config/rs6000/altivec.md(UNSPEC_CONVERT_4F32_8I16): Add UNSPEC.
5830         (convert_4f32_8i16): Add define_expand.
5831         * doc/extend.texi: Update the built-in documentation file for the
5832         new built-in function.
5834 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
5836         * config/sparc/m8.md: New file.
5837         * config/sparc/sparc.md: Include m8.md.
5839 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
5841         * config/sparc/sparc.opt: New option -mvis4b.
5842         * config/sparc/sparc.c (dump_target_flag_bits): Handle MASK_VIS4B.
5843         (sparc_option_override): Handle VIS4B.
5844         (enum sparc_builtins): Define
5845         SPARC_BUILTIN_DICTUNPACK{8,16,32},
5846         SPARC_BUILTIN_FPCMP{LE,GT,EQ,NE}{8,16,32}SHL,
5847         SPARC_BUILTIN_FPCMPU{LE,GT}{8,16,32}SHL,
5848         SPARC_BUILTIN_FPCMPDE{8,16,32}SHL and
5849         SPARC_BUILTIN_FPCMPUR{8,16,32}SHL.
5850         (check_constant_argument): New function.
5851         (sparc_vis_init_builtins): Define builtins
5852         __builtin_vis_dictunpack{8,16,32},
5853         __builtin_vis_fpcmp{le,gt,eq,ne}{8,16,32}shl,
5854         __builtin_vis_fpcmpu{le,gt}{8,16,32}shl,
5855         __builtin_vis_fpcmpde{8,16,32}shl and
5856         __builtin_vis_fpcmpur{8,16,32}shl.
5857         (sparc_expand_builtin): Check that the constant operands to
5858         __builtin_vis_fpcmp*shl and _builtin_vis_dictunpack* are indeed
5859         constant and in range.
5860         * config/sparc/sparc-c.c (sparc_target_macros): Handle
5861         TARGET_VIS4B.
5862         * config/sparc/sparc.h (SPARC_IMM2_P): Define.
5863         (SPARC_IMM5_P): Likewise.
5864         * config/sparc/sparc.md (cpu_feature): Add new feagure "vis4b".
5865         (enabled): Handle vis4b.
5866         (UNSPEC_DICTUNPACK): New unspec.
5867         (UNSPEC_FPCMPSHL): Likewise.
5868         (UNSPEC_FPUCMPSHL): Likewise.
5869         (UNSPEC_FPCMPDESHL): Likewise.
5870         (UNSPEC_FPCMPURSHL): Likewise.
5871         (cpu_feature): New CPU feature `vis4b'.
5872         (dictunpack{8,16,32}): New insns.
5873         (FPCSMODE): New mode iterator.
5874         (fpcscond): New code iterator.
5875         (fpcsucond): Likewise.
5876         (fpcmp{le,gt,eq,ne}{8,16,32}{si,di}shl): New insns.
5877         (fpcmpu{le,gt}{8,16,32}{si,di}shl): Likewise.
5878         (fpcmpde{8,16,32}{si,di}shl): Likewise.
5879         (fpcmpur{8,16,32}{si,di}shl): Likewise.
5880         * config/sparc/constraints.md: Define constraints `q' for unsigned
5881         2-bit integer constants and `t' for unsigned 5-bit integer
5882         constants.
5883         * config/sparc/predicates.md (imm5_operand_dictunpack8): New
5884         predicate.
5885         (imm5_operand_dictunpack16): Likewise.
5886         (imm5_operand_dictunpack32): Likewise.
5887         (imm2_operand): Likewise.
5888         * doc/invoke.texi (SPARC Options): Document -mvis4b.
5889         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
5890         ditunpack* and fpcmp*shl builtins.
5892 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
5894         * config.gcc: Handle m8 in --with-{cpu,tune} options.
5895         * config.in: Add HAVE_AS_SPARC6 define.
5896         * config/sparc/driver-sparc.c (cpu_names): Add entry for the SPARC
5897         M8.
5898         * config/sparc/sol2.h (CPP_CPU64_DEFAULT_SPEC): Define for
5899         TARGET_CPU_m8.
5900         (ASM_CPU32_DEFAUILT_SPEC): Likewise.
5901         (CPP_CPU_SPEC): Handle m8.
5902         (ASM_CPU_SPEC): Likewise.
5903         * config/sparc/sparc-opts.h (enum processor_type): Add
5904         PROCESSOR_M8.
5905         * config/sparc/sparc.c (m8_costs): New struct.
5906         (sparc_option_override): Handle TARGET_CPU_m8.
5907         (sparc32_initialize_trampoline): Likewise.
5908         (sparc64_initialize_trampoline): Likewise.
5909         (sparc_issue_rate): Likewise.
5910         (sparc_register_move_cost): Likewise.
5911         * config/sparc/sparc.h (TARGET_CPU_m8): Define.
5912         (CPP_CPU64_DEFAULT_SPEC): Define for M8.
5913         (ASM_CPU64_DEFAULT_SPEC): Likewise.
5914         (CPP_CPU_SPEC): Handle M8.
5915         (ASM_CPU_SPEC): Likewise.
5916         (AS_M8_FLAG): Define.
5917         * config/sparc/sparc.md: Add m8 to the cpu attribute.
5918         * config/sparc/sparc.opt: New option -mcpu=m8 for sparc targets.
5919         * configure.ac (HAVE_AS_SPARC6): Check for assembler support for
5920         M8 instructions.
5921         * configure: Regenerate.
5922         * doc/invoke.texi (SPARC Options): Document -mcpu=m8 and
5923         -mtune=m8.
5925 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
5927         * config/sparc/niagara7.md: Rework the DFA scheduler to use insn
5928         subtypes.
5929         * config/sparc/sparc.md: Remove the `v3pipe' insn attribute.
5930         ("*movdi_insn_sp32"): Do not set v3pipe.
5931         ("*movsi_insn"): Likewise.
5932         ("*movdi_insn_sp64"): Likewise.
5933         ("*movsf_insn"): Likewise.
5934         ("*movdf_insn_sp32"): Likewise.
5935         ("*movdf_insn_sp64"): Likewise.
5936         ("*zero_extendsidi2_insn_sp64"): Likewise.
5937         ("*sign_extendsidi2_insn"): Likewise.
5938         ("*mov<VM32:mode>_insn"): Likewise.
5939         ("*mov<VM64:mode>_insn_sp64"): Likewise.
5940         ("*mov<VM64:mode>_insn_sp32"): Likewise.
5941         ("<plusminus_insn><VADDSUB:mode>3"): Likewise.
5942         ("<vlop:code><VL:mode>3"): Likewise.
5943         ("*not_<vlop:code><VL:mode>3"): Likewise.
5944         ("*nand<VL:mode>_vis"): Likewise.
5945         ("*<vlnotop:code>_not1<VL:mode>_vis"): Likewise.
5946         ("*<vlnotop:code>_not2<VL:mode>_vis"): Likewise.
5947         ("one_cmpl<VL:mode>2"): Likewise.
5948         ("faligndata<VM64:mode>_vis"): Likewise.
5949         ("alignaddrsi_vis"): Likewise.
5950         ("alignaddrdi_vis"): Likweise.
5951         ("alignaddrlsi_vis"): Likewise.
5952         ("alignaddrldi_vis"): Likewise.
5953         ("fcmp<gcond:code><GCM:gcm_name><P:mode>_vis"): Likewise.
5954         ("bmaskdi_vis"): Likewise.
5955         ("bmasksi_vis"): Likewise.
5956         ("bshuffle<VM64:mode>_vis"): Likewise.
5957         ("cmask8<P:mode>_vis"): Likewise.
5958         ("cmask16<P:mode>_vis"): Likewise.
5959         ("cmask32<P:mode>_vis"): Likewise.
5960         ("pdistn<P:mode>_vis"): Likewise.
5961         ("<vis3_addsub_ss_patname><VASS:mode>3"): Likewise.
5963 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
5965         * config/sparc/sparc.md ("subtype"): New insn attribute.
5966         ("*wrgsr_sp64"): Set insn subtype.
5967         ("*rdgsr_sp64"): Likewise.
5968         ("alignaddrsi_vis"): Likewise.
5969         ("alignaddrdi_vis"): Likewise.
5970         ("alignaddrlsi_vis"): Likewise.
5971         ("alignaddrldi_vis"): Likewise.
5972         ("<plusminus_insn><VADDSUB:mode>3"): Likewise.
5973         ("fexpand_vis"): Likewise.
5974         ("fpmerge_vis"): Likewise.
5975         ("faligndata<VM64:mode>_vis"): Likewise.
5976         ("bshuffle<VM64:mode>_vis"): Likewise.
5977         ("cmask8<P:mode>_vis"): Likewise.
5978         ("cmask16<P:mode>_vis"): Likewise.
5979         ("cmask32<P:mode>_vis"): Likewise.
5980         ("fchksm16_vis"): Likewise.
5981         ("v<vis3_shift_patname><GCM:mode>3"): Likewise.
5982         ("fmean16_vis"): Likewise.
5983         ("fp<plusminus_insn>64_vis"): Likewise.
5984         ("<plusminus_insn>v8qi3"): Likewise.
5985         ("<vis3_addsub_ss_patname><VASS:mode>3"): Likewise.
5986         ("<vis4_minmax_patname><VMMAX:mode>3"): Likewise.
5987         ("<vis4_uminmax_patname><VMMAX:mode>3"): Likewise.
5988         ("<vis3_addsub_ss_patname>v8qi3"): Likewise.
5989         ("<vis4_addsub_us_patname><VAUS:mode>3"): Likewise.
5990         ("*movqi_insn"): Likewise.
5991         ("*movhi_insn"): Likewise.
5992         ("*movsi_insn"): Likewise.
5993         ("movsi_pic_gotdata_op"): Likewise.
5994         ("*movdi_insn_sp32"): Likewise.
5995         ("*movdi_insn_sp64"): Likewise.
5996         ("movdi_pic_gotdata_op"): Likewise.
5997         ("*movsf_insn"): Likewise.
5998         ("*movdf_insn_sp32"): Likewise.
5999         ("*movdf_insn_sp64"): Likewise.
6000         ("*zero_extendhisi2_insn"): Likewise.
6001         ("*zero_extendqihi2_insn"): Likewise.
6002         ("*zero_extendqisi2_insn"): Likewise.
6003         ("*zero_extendqidi2_insn"): Likewise.
6004         ("*zero_extendhidi2_insn"): Likewise.
6005         ("*zero_extendsidi2_insn_sp64"): Likewise.
6006         ("ldfsr"): Likewise.
6007         ("prefetch_64"): Likewise.
6008         ("prefetch_32"): Likewise.
6009         ("tie_ld32"): Likewise.
6010         ("tie_ld64"): Likewise.
6011         ("*tldo_ldub_sp32"): Likewise.
6012         ("*tldo_ldub1_sp32"): Likewise.
6013         ("*tldo_ldub2_sp32"): Likewise.
6014         ("*tldo_ldub_sp64"): Likewise.
6015         ("*tldo_ldub1_sp64"): Likewise.
6016         ("*tldo_ldub2_sp64"): Likewise.
6017         ("*tldo_ldub3_sp64"): Likewise.
6018         ("*tldo_lduh_sp32"): Likewise.
6019         ("*tldo_lduh1_sp32"): Likewise.
6020         ("*tldo_lduh_sp64"): Likewise.
6021         ("*tldo_lduh1_sp64"): Likewise.
6022         ("*tldo_lduh2_sp64"): Likewise.
6023         ("*tldo_lduw_sp32"): Likewise.
6024         ("*tldo_lduw_sp64"): Likewise.
6025         ("*tldo_lduw1_sp64"): Likewise.
6026         ("*tldo_ldx_sp64"): Likewise.
6027         ("*mov<VM32:mode>_insn"): Likewise.
6028         ("*mov<VM64:mode>_insn_sp64"): Likewise.
6029         ("*mov<VM64:mode>_insn_sp32"): Likewise.
6031 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
6033         * config/sparc/sparc.md ("type"): New insn type viscmp.
6034         ("fcmp<gcond:code><GCM:gcm_name><P:mode>_vis"): Set insn type to
6035         viscmp.
6036         ("fpcmp<gcond:code>8<P:mode>_vis"): Likewise.
6037         ("fucmp<gcond:code>8<P:mode>_vis"): Likewise.
6038         ("fpcmpu<gcond:code><GCM:gcm_name><P:mode>_vis"): Likewise.
6039         * config/sparc/niagara7.md ("n7_vis_logical_v3pipe"): Handle
6040         viscmp.
6041         ("n7_vis_logical_11cycle"): Likewise.
6042         * config/sparc/niagara4.md ("n4_vis_logical"): Likewise.
6043         * config/sparc/niagara2.md ("niag3_vis": Likewise.
6044         * config/sparc/niagara.md ("niag_vis"): Likewise.
6045         * config/sparc/ultra3.md ("us3_fga"): Likewise.
6046         * config/sparc/ultra1_2.md ("us1_fga_double"): Likewise.
6048 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
6050         * config/sparc/sparc.md: New instruction type `bmask'.
6051         (bmaskdi_vis): Use the `bmask' type.
6052         (bmasksi_vis): Likewise.
6053         * config/sparc/ultra3.md (us3_array): Likewise.
6054         * config/sparc/niagara7.md (n7_array): Likewise.
6055         * config/sparc/niagara4.md (n4_array): Likewise.
6056         * config/sparc/niagara2.md (niag2_vis): Likewise.
6057         (niag3_vis): Likewise.
6058         * config/sparc/niagara.md (niag_vis): Likewise.
6060 2017-07-06  Jan Hubicka  <hubicka@ucw.cz>
6062         * ipa-comdats.c: Remove optimize check from gate.
6063         * ipa-fnsummary.c (ipa_fn_summary_generate): do not generate summary
6064         for functions not optimized.
6065         (ipa_fn_summary_read): Skip optimize check.
6066         (ipa_fn_summary_write): Likewise.
6067         * ipa-inline-analysis.c (do_estimate_growth_1): Check that caller
6068         is optimized.
6069         * ipa-inline.c (can_inline_edge_p): Not optimized functions are
6070         uninlinable.
6071         (can_inline_edge_p): Check flag_pcc_struct_return for match.
6072         (check_callers): Give up on caller which is not optimized.
6073         (inline_small_functions): Likewise.
6074         (ipa_inline): Do not give up when not optimizing.
6075         * ipa-visbility.c (function_and_variable_visibility): Do not optimize
6076         away unoptimizes cdtors.
6077         (whole_program_function_and_variable_visibility): Do
6078         ipa_discover_readonly_nonaddressable_vars in LTO mode.
6079         * ipa.c (process_references): Do not check optimize.
6080         (symbol_table::remove_unreachable_nodes): Update optimize check.
6081         (set_writeonly_bit): Update optimize check.
6082         (pass_ipa_cdtor_merge::gate): Do not check optimize.
6083         (pass_ipa_single_use::gate): Remove.
6085 2017-07-06  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
6087         * config/rs6000/rs6000.c (union_defs, union_uses, insn_is_load_p,
6088         insn_is_store_p, insn_is_swap_p, const_load_sequence_p, v2df_reduction_p,
6089         rtx_is_swappable_p, insn_is_swappable_p, chain_contains_only_swaps,
6090         mark_swaps_for_removal, swap_const_vector_halves, adjust_subreg_index,
6091         permute_load, permute_store, adjust_extract, adjust_splat,
6092         adjust_xxpermdi, adjust_concat, adjust_vperm, handle_special_swappables,
6093         replace_swap_with_copy, dump_swap_insn_table,
6094         alignment_with_canonical_addr, alignment_mask, find_alignment_op,
6095         recombine_lvx_pattern, recombine_stvx_pattern,
6096         recombine_lvx_stvx_patterns, rs6000_analyze_swaps,
6097         make_pass_analyze_swaps): Move all code related to p8 swap optimizations
6098         to file rs6000-p8swap.c.
6099         * config/rs6000/rs6000-p8swap.c: New file.
6100         * config/rs6000/t-rs6000: Add rule to build rs6000-p8swap.o.
6101         * config.gcc: Add rs6000-p8swap.o to extra_objs for powerpc*-*-*
6102         and rs6000*-*-* targets.
6104 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
6106         * Makefile.in (selftest): Remove dependency on s-selftest-c++.
6108 2017-07-06  Jan Hubicka  <hubicka@ucw.cz>
6110         * lto-wrapper.c (merge_and_complain): Do not merge
6111         fexceptions, fnon_call_exceptions, ftrapv, ffp_contract_, fmath_errno,
6112         fsigned_zeros, ftrapping_math, fwrapv.
6113         (append_compiler_options): Do not track these options.
6114         (append_linker_options): Likewie
6116 2017-07-06  Jan Hubicka  <hubicka@ucw.cz>
6118         * cgraphunit.c (cgraph_node::finalize_function): When
6119         !flag_toplevel_reorde set no_reorder flag.
6120         (varpool_node::finalize_decl): Likewise.
6121         (symbol_table::compile): Drop no toplevel reorder path.
6123 2017-07-06  Jan Hubicka  <hubicka@ucw.cz>
6125         * bb-reorder.c (better_edge_p): Do not build traces across abnormal/eh
6126         edges; zero probability is not better than uninitialized.
6128 2017-07-06  Maxim Ostapenko  <m.ostapenko@samsung.com>
6130         * asan.h (asan_sanitize_allocas_p): Declare.
6131         * asan.c (asan_sanitize_allocas_p): New function.
6132         (handle_builtin_stack_restore): Bail out if !asan_sanitize_allocas_p.
6133         (handle_builtin_alloca): Likewise.
6134         * cfgexpand.c (expand_used_vars): Do not add allocas unpoisoning stuff
6135         if !asan_sanitize_allocas_p.
6136         * params.def (asan-instrument-allocas): Add new option.
6137         * params.h (ASAN_PROTECT_ALLOCAS): Define.
6138         * opts.c (common_handle_option): Disable allocas sanitization for
6139         KASan by default.
6141 2017-07-06  Maxim Ostapenko  <m.ostapenko@samsung.com>
6143         * asan.c: Include gimple-fold.h.
6144         (get_last_alloca_addr): New function.
6145         (handle_builtin_stackrestore): Likewise.
6146         (handle_builtin_alloca): Likewise.
6147         (asan_emit_allocas_unpoison): Likewise.
6148         (get_mem_refs_of_builtin_call): Add new parameter, remove const
6149         quallifier from first paramerer. Handle BUILT_IN_ALLOCA,
6150         BUILT_IN_ALLOCA_WITH_ALIGN and BUILT_IN_STACK_RESTORE builtins.
6151         (instrument_builtin_call): Pass gimple iterator to
6152         get_mem_refs_of_builtin_call.
6153         (last_alloca_addr): New global.
6154         * asan.h (asan_emit_allocas_unpoison): Declare.
6155         * builtins.c (expand_asan_emit_allocas_unpoison): New function.
6156         (expand_builtin): Handle BUILT_IN_ASAN_ALLOCAS_UNPOISON.
6157         * cfgexpand.c (expand_used_vars): Call asan_emit_allocas_unpoison
6158         if function calls alloca.
6159         * gimple-fold.c (replace_call_with_value): Remove static keyword.
6160         * gimple-fold.h (replace_call_with_value): Declare.
6161         * internal-fn.c: Include asan.h.
6162         * sanitizer.def (BUILT_IN_ASAN_ALLOCA_POISON,
6163         BUILT_IN_ASAN_ALLOCAS_UNPOISON): New builtins.
6165 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
6167         * Makefile.in (SELFTEST_FLAGS): Drop "-x c", moving it to...
6168         (C_SELFTEST_FLAGS): New.
6169         (CPP_SELFTEST_FLAGS): New.
6170         (SELFTEST_DEPS): New, from deps of s-selftest.
6171         (C_SELFTEST_DEPS): New, from deps of s-selftest.
6172         (CPP_SELFTEST_DEPS): New.
6173         (selftest): Add dependency on s-selftest-c++.
6174         (s-selftest): Rename to...
6175         (s-selftest-c): ...this, moving deps to SELFTEST_DEPS
6176         and C_SELFTEST_DEPS, and using C_SELFTEST_FLAGS rather
6177         than SELFTEST_FLAGS.
6178         (selftest-gdb): Rename to...
6179         (selftest-c-gdb): ...this, using C_SELFTEST_DEPS and
6180         C_SELFTEST_FLAGS.
6181         (selftest-gdb): Reintroduce as an alias for selftest-c-gdb.
6182         (selftest-valgrind): Rename to...
6183         (selftest-c-valgrind): ...this, using C_SELFTEST_DEPS and
6184         C_SELFTEST_FLAGS.
6185         (selftest-valgrind): Reintroduce as an alias for
6186         selftest-c-valgrind.
6187         (s-selftest-c++): New.
6188         (selftest-c++-gdb): New.
6189         (selftest-c++-valgrind): New.
6191 2017-07-06  Olivier Hainque  <hainque@adacore.com>
6193         * gcc.c (process_command): When deciding if undefined variables
6194         should be ignored when processing specs, accept "gcc -v" as well.
6196 2017-07-06  Jan Hubicka  <hubicka@ucw.cz>
6198         * auto-profile.c (afdo_set_bb_count, afdo_propagate_edge,
6199         afdo_annotate_cfg): Set counts/probabilities as determined by afdo.
6201 2017-07-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6203         * config/arm/arm-cpus.in (armv8-r): Add new entry.
6204         * config/arm/arm-isa.h (ISA_ARMv8r): Define macro.
6205         * config/arm/arm-tables.opt: Regenerate.
6206         * config/arm/arm.h (enum base_architecture): Add BASE_ARCH_8R
6207         enumerator.
6208         * doc/invoke.texi: Mention -march=armv8-r and its extensions.
6210 2017-07-06  Carl Love  <cel@us.ibm.com>
6212         * ChangeLog: Clean up from mid air collision
6214 2017-07-06  Carl Love  <cel@us.ibm.com>
6216         * config/rs6000/rs6000-c.c: Add support for built-in functions
6217         vector signed int vec_subc (vector signed int, vector signed int);
6218         vector signed __int128 vec_subc (vector signed __int128,
6219                                          vector signed __int128);
6220         vector unsigned __int128 vec_subc (vector unsigned __int128,
6221                                            vector unsigned __int128);
6222         vector signed int vec_sube (vector signed int, vector signed int,
6223                                     vector signed int);
6224         vector unsigned int vec_sube (vector unsigned int,
6225                                       vector unsigned int,
6226                                       vector unsigned int);
6227         vector signed __int128 vec_sube (vector signed __int128,
6228                                          vector signed __int128,
6229                                          vector signed__int128);
6230         vector unsigned __int128 vec_sube (vector unsigned __int128,
6231                                            vector unsigned __int128,
6232                                            vector unsigned __int128);
6233         vector signed int vec_subec (vector signed int, vector signed int,
6234                                      vector signed int);
6235         vector unsigned int vec_subec (vector unsigned int,
6236                                        vector unsigned int,
6237                                        vector unsigned int);
6238         vector signed __int128 vec_subec (vector signed __int128,
6239                                           vector signed __int128,
6240                                           vector signed__int128);
6241         vector unsigned __int128 vec_subec (vector unsigned __int128,
6242                                             vector unsigned __int128,
6243                                             vector unsigned __int128);
6244         * config/rs6000/rs6000.c (ALTIVEC_BUILTIN_VEC_SUBE,
6245         ALTIVEC_BUILTIN_VEC_SUBEC): Add ef_builtins.
6246         * config/rs6000/rs6000-builtin.def (SUBE, SUBEC): Add
6247         BU_ALTIVEC_OVERLOAD_X definitions.
6248         * config/rs6000/altivec.h (vec_sube, vec_subec): Add builtin defines.
6249         * doc/extend.texi: Update the built-in documentation file for the new
6250         built-in functions.
6252 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
6254         PR c++/79300
6255         * diagnostic-show-locus.c (layout::layout): Use start and finish
6256         spelling location for the start and finish of each range.
6257         * genmatch.c (linemap_client_expand_location_to_spelling_point):
6258         Add unused aspect param.
6259         * input.c (expand_location_1): Add "aspect" param, and use it
6260         to access the correct part of the location.
6261         (expand_location): Pass LOCATION_ASPECT_CARET to new param of
6262         expand_location_1.
6263         (expand_location_to_spelling_point): Likewise.
6264         (linemap_client_expand_location_to_spelling_point): Add "aspect"
6265         param, and pass it to expand_location_1.
6267 2017-07-06  Sebastian Peryt  <sebastian.peryt@intel.com>
6269         * config/i386/avx512fintrin.h (_mm_mask_getexp_round_ss,
6270         _mm_maskz_getexp_round_ss, _mm_mask_getexp_round_sd,
6271         _mm_maskz_getexp_round_sd, _mm_mask_getmant_round_sd,
6272         _mm_maskz_getmant_round_sd, _mm_mask_getmant_round_ss,
6273         _mm_maskz_getmant_round_ss, _mm_mask_getexp_ss, _mm_maskz_getexp_ss,
6274         _mm_mask_getexp_sd, _mm_maskz_getexp_sd, _mm_mask_getmant_sd,
6275         _mm_maskz_getmant_sd, _mm_mask_getmant_ss,
6276         _mm_maskz_getmant_ss): New intrinsics.
6277         (__builtin_ia32_getexpss128_mask): Changed to ...
6278         __builtin_ia32_getexpss128_round ... this.
6279         (__builtin_ia32_getexpsd128_mask): Changed to ...
6280         __builtin_ia32_getexpsd128_round ... this.
6281         * config/i386/i386-builtin-types.def
6282         ((V2DF, V2DF, V2DF, INT, V2DF, UQI, INT),
6283         (V4SF, V4SF, V4SF, INT, V4SF, UQI, INT)): New function type aliases.
6284         * config/i386/i386-builtin.def (__builtin_ia32_getexpsd_mask_round,
6285         __builtin_ia32_getexpss_mask_round,     __builtin_ia32_getmantsd_mask_round,
6286         __builtin_ia32_getmantss_mask_round): New builtins.
6287         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_UQI_INT,
6288         V4SF_FTYPE_V4SF_V4SF_INT_V4SF_UQI_INT): Handle new types.
6289         (CODE_FOR_avx512f_vgetmantv2df_mask_round,
6290         CODE_FOR_avx512f_vgetmantv4sf_mask_round): New cases.
6291         * config/i386/sse.md
6292         (avx512f_sgetexp<mode><round_saeonly_name>): Changed to ...
6293         avx512f_sgetexp<mode><mask_scalar_name>
6294         <round_saeonly_scalar_name> ... this.
6295         (vgetexp<ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|
6296         %0, %1, %2<round_saeonly_op3>}): Changed to ...
6297         vgetexp<ssescalarmodesuffix>
6298         \t{<round_saeonly_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
6299         %0<mask_scalar_operand3>, %1, %2<round_saeonly_scalar_mask_op3>} ... this.
6300         (avx512f_vgetmant<mode><round_saeonly_name>): Changed to ...
6301         avx512f_vgetmant<mode><mask_scalar_name>
6302         <round_saeonly_scalar_name> ... this.
6303         (vgetmant<ssescalarmodesuffix>\t{%3, <round_saeonly_op4>%2, %1, %0|
6304         %0, %1, %2<round_saeonly_op4>, %3}): Changed to ...
6305         vgetmant<ssescalarmodesuffix>
6306         \t{%3, <round_saeonly_scalar_mask_op4>%2, %1, %0<mask_scalar_operand4>|
6307         %0<mask_scalar_operand4>, %1, %2
6308         <round_saeonly_scalar_mask_op4>, %3} ... this.
6309         * config/i386/subst.md (mask_scalar_operand4,
6310         round_saeonly_scalar_mask_operand4,     round_saeonly_scalar_mask_op4,
6311         round_saeonly_scalar_nimm_predicate): New subst attributes.
6313 2017-07-06  Julia Koval  <julia.koval@intel.com>
6315         * config/i386/i386.c (ix86_erase_embedded_rounding):
6316         Remove code for old rounding pattern.
6318 2017-07-06  Richard Earnshaw  <rearnsha@arm.com>
6320         * config/arm/t-arm (GTM_H): Add arm-cpu.h.
6322 2017-07-06  Christophe Lyon  <christophe.lyon@linaro.org>
6324         * doc/sourcebuild.texi (Test Directives, Variants of
6325         dg-require-support): Add documentation for dg-require-stack-check.
6327 2017-07-05  Sebastian Peryt  <sebastian.peryt@intel.com>
6329         * config/i386/subst.md (mask_scalar, round_scalar,
6330         round_saeonly_scalar): New meta-templates.
6331         (mask_scalar_name, mask_scalar_operand3, round_scalar_name,
6332         round_scalar_mask_operand3, round_scalar_mask_op3,
6333         round_scalar_constraint, round_scalar_prefix, round_saeonly_scalar_name,
6334         round_saeonly_scalar_mask_operand3, round_saeonly_scalar_mask_op3,
6335         round_saeonly_scalar_constraint,
6336         round_saeonly_scalar_prefix): New subst attribute.
6337         * config/i386/sse.md
6338         (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): Renamed to ...
6339         <sse>_vm<plusminus_insn><mode>3<mask_scalar_name>
6340         <round_scalar_name> ... this.
6341         (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): Renamed to ...
6342         <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name>
6343         <round_scalar_name> ... this.
6344         (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): Renamed to ...
6345         <sse>_vm<code><mode>3<mask_scalar_name>
6346         <round_saeonly_scalar_name> ... this.
6347         (v<plusminus_mnemonic><ssescalarmodesuffix>
6348         \t{<round_mask_op3>%2, %1, %0<mask_operand3>|
6349         %0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}): Changed to ...
6350         v<plusminus_mnemonic><ssescalarmodesuffix>
6351         \t{<round_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
6352         %0<mask_scalar_operand3>, %1, %<iptr>2<round_scalar_mask_op3>} ... this.
6353         (v<multdiv_mnemonic><ssescalarmodesuffix>
6354         \t{<round_mask_op3>%2, %1, %0<mask_operand3>|
6355         %0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}): Changed to ...
6356         v<multdiv_mnemonic><ssescalarmodesuffix>
6357         \t{<round_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
6358         %0<mask_scalar_operand3>, %1, %<iptr>2<round_scalar_mask_op3>} ... this.
6359         (v<maxmin_float><ssescalarmodesuffix>
6360         \t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|
6361         %0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}): Changed to ...
6362         v<maxmin_float><ssescalarmodesuffix>
6363         \t{<round_saeonly_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
6364         %0<mask_scalar_operand3>, %1, %<iptr>2
6365         <round_saeonly_scalar_mask_op3>} ... this.
6367 2017-07-05  Richard Earnshaw  <rearnsha@arm.com>
6369         * config/arm/arm.c (arm_fixed_condition_code_regs): New function.
6370         (TARGET_FIXED_CONDITION_CODE_REGS): Redefine.
6372 2017-07-05  Richard Sandiford  <richard.sandiford@linaro.org>
6373             Alan Hayward  <alan.hayward@arm.com>
6374             David Sherwood  <david.sherwood@arm.com>
6376         * combine.c (simplify_if_then_else): Remove "enum" before
6377         "machine_mode".
6378         * compare-elim.c (can_eliminate_compare): Likewise.
6379         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_std_type):
6380         Likewise.
6381         (aarch64_lookup_simd_builtin_type): Likewise.
6382         (aarch64_simd_builtin_type): Likewise.
6383         (aarch64_init_simd_builtin_types): Likewise.
6384         (aarch64_simd_expand_args): Likewise.
6385         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist):
6386         Likewise.
6387         (aarch64_reverse_mask): Likewise.
6388         (aarch64_simd_emit_reg_reg_move): Likewise.
6389         (aarch64_gen_adjusted_ldpstp): Likewise.
6390         (aarch64_ccmp_mode_to_code): Likewise.
6391         (aarch64_operands_ok_for_ldpstp): Likewise.
6392         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
6393         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class):
6394         Likewise.
6395         (aarch64_min_divisions_for_recip_mul): Likewise.
6396         (aarch64_reassociation_width): Likewise.
6397         (aarch64_get_condition_code_1): Likewise.
6398         (aarch64_simd_emit_reg_reg_move): Likewise.
6399         (aarch64_simd_attr_length_rglist): Likewise.
6400         (aarch64_reverse_mask): Likewise.
6401         (aarch64_operands_ok_for_ldpstp): Likewise.
6402         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
6403         (aarch64_gen_adjusted_ldpstp): Likewise.
6404         * config/aarch64/cortex-a57-fma-steering.c (fma_node::rename):
6405         Likewise.
6406         * config/arc/arc.c (legitimate_offset_address_p): Likewise.
6407         * config/arm/arm-builtins.c (arm_simd_builtin_std_type): Likewise.
6408         (arm_lookup_simd_builtin_type): Likewise.
6409         (arm_simd_builtin_type): Likewise.
6410         (arm_init_simd_builtin_types): Likewise.
6411         (arm_expand_builtin_args): Likewise.
6412         * config/arm/arm-protos.h (arm_expand_builtin): Likewise.
6413         * config/ft32/ft32.c (ft32_libcall_value): Likewise.
6414         (ft32_setup_incoming_varargs): Likewise.
6415         (ft32_function_arg): Likewise.
6416         (ft32_function_arg_advance): Likewise.
6417         (ft32_pass_by_reference): Likewise.
6418         (ft32_arg_partial_bytes): Likewise.
6419         (ft32_valid_pointer_mode): Likewise.
6420         (ft32_addr_space_pointer_mode): Likewise.
6421         (ft32_addr_space_legitimate_address_p): Likewise.
6422         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple):
6423         Likewise.
6424         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
6425         (ix86_emit_outlined_ms2sysv_restore): Likewise.
6426         (iamcu_alignment): Likewise.
6427         (canonicalize_vector_int_perm): Likewise.
6428         (ix86_noce_conversion_profitable_p): Likewise.
6429         (ix86_mpx_bound_mode): Likewise.
6430         (ix86_operands_ok_for_move_multiple): Likewise.
6431         * config/microblaze/microblaze-protos.h
6432         (microblaze_expand_conditional_branch_reg): Likewise.
6433         * config/microblaze/microblaze.c
6434         (microblaze_expand_conditional_branch_reg): Likewise.
6435         * config/powerpcspe/powerpcspe.c (rs6000_init_hard_regno_mode_ok):
6436         Likewise.
6437         (rs6000_reassociation_width): Likewise.
6438         (rs6000_invalid_binary_op): Likewise.
6439         (fusion_p9_p): Likewise.
6440         (emit_fusion_p9_load): Likewise.
6441         (emit_fusion_p9_store): Likewise.
6442         * config/riscv/riscv-protos.h (riscv_regno_mode_ok_for_base_p):
6443         Likewise.
6444         (riscv_hard_regno_mode_ok_p): Likewise.
6445         (riscv_address_insns): Likewise.
6446         (riscv_split_symbol): Likewise.
6447         (riscv_legitimize_move): Likewise.
6448         (riscv_function_value): Likewise.
6449         (riscv_hard_regno_nregs): Likewise.
6450         (riscv_expand_builtin): Likewise.
6451         * config/riscv/riscv.c (riscv_build_integer_1): Likewise.
6452         (riscv_build_integer): Likewise.
6453         (riscv_split_integer): Likewise.
6454         (riscv_legitimate_constant_p): Likewise.
6455         (riscv_cannot_force_const_mem): Likewise.
6456         (riscv_regno_mode_ok_for_base_p): Likewise.
6457         (riscv_valid_base_register_p): Likewise.
6458         (riscv_valid_offset_p): Likewise.
6459         (riscv_valid_lo_sum_p): Likewise.
6460         (riscv_classify_address): Likewise.
6461         (riscv_legitimate_address_p): Likewise.
6462         (riscv_address_insns): Likewise.
6463         (riscv_load_store_insns): Likewise.
6464         (riscv_force_binary): Likewise.
6465         (riscv_split_symbol): Likewise.
6466         (riscv_force_address): Likewise.
6467         (riscv_legitimize_address): Likewise.
6468         (riscv_move_integer): Likewise.
6469         (riscv_legitimize_const_move): Likewise.
6470         (riscv_legitimize_move): Likewise.
6471         (riscv_address_cost): Likewise.
6472         (riscv_subword): Likewise.
6473         (riscv_output_move): Likewise.
6474         (riscv_canonicalize_int_order_test): Likewise.
6475         (riscv_emit_int_order_test): Likewise.
6476         (riscv_function_arg_boundary): Likewise.
6477         (riscv_pass_mode_in_fpr_p): Likewise.
6478         (riscv_pass_fpr_single): Likewise.
6479         (riscv_pass_fpr_pair): Likewise.
6480         (riscv_get_arg_info): Likewise.
6481         (riscv_function_arg): Likewise.
6482         (riscv_function_arg_advance): Likewise.
6483         (riscv_arg_partial_bytes): Likewise.
6484         (riscv_function_value): Likewise.
6485         (riscv_pass_by_reference): Likewise.
6486         (riscv_setup_incoming_varargs): Likewise.
6487         (riscv_print_operand): Likewise.
6488         (riscv_elf_select_rtx_section): Likewise.
6489         (riscv_save_restore_reg): Likewise.
6490         (riscv_for_each_saved_reg): Likewise.
6491         (riscv_register_move_cost): Likewise.
6492         (riscv_hard_regno_mode_ok_p): Likewise.
6493         (riscv_hard_regno_nregs): Likewise.
6494         (riscv_class_max_nregs): Likewise.
6495         (riscv_memory_move_cost): Likewise.
6496         * config/rl78/rl78-protos.h (rl78_split_movsi): Likewise.
6497         * config/rl78/rl78.c (rl78_split_movsi): Likewise.
6498         (rl78_addr_space_address_mode): Likewise.
6499         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6500         Likewise.
6501         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
6502         (rs6000_reassociation_width): Likewise.
6503         (rs6000_invalid_binary_op): Likewise.
6504         (fusion_p9_p): Likewise.
6505         (emit_fusion_p9_load): Likewise.
6506         (emit_fusion_p9_store): Likewise.
6507         * config/visium/visium-protos.h (prepare_move_operands): Likewise.
6508         (ok_for_simple_move_operands): Likewise.
6509         (ok_for_simple_move_strict_operands): Likewise.
6510         (ok_for_simple_arith_logic_operands): Likewise.
6511         (visium_legitimize_reload_address): Likewise.
6512         (visium_select_cc_mode): Likewise.
6513         (output_cbranch): Likewise.
6514         (visium_split_double_move): Likewise.
6515         (visium_expand_copysign): Likewise.
6516         (visium_expand_int_cstore): Likewise.
6517         (visium_expand_fp_cstore): Likewise.
6518         * config/visium/visium.c (visium_pass_by_reference): Likewise.
6519         (visium_function_arg): Likewise.
6520         (visium_function_arg_advance): Likewise.
6521         (visium_libcall_value): Likewise.
6522         (visium_setup_incoming_varargs): Likewise.
6523         (visium_legitimate_constant_p): Likewise.
6524         (visium_legitimate_address_p): Likewise.
6525         (visium_legitimize_address): Likewise.
6526         (visium_secondary_reload): Likewise.
6527         (visium_register_move_cost): Likewise.
6528         (visium_memory_move_cost): Likewise.
6529         (prepare_move_operands): Likewise.
6530         (ok_for_simple_move_operands): Likewise.
6531         (ok_for_simple_move_strict_operands): Likewise.
6532         (ok_for_simple_arith_logic_operands): Likewise.
6533         (visium_function_value_1): Likewise.
6534         (rtx_ok_for_offset_p): Likewise.
6535         (visium_legitimize_reload_address): Likewise.
6536         (visium_split_double_move): Likewise.
6537         (visium_expand_copysign): Likewise.
6538         (visium_expand_int_cstore): Likewise.
6539         (visium_expand_fp_cstore): Likewise.
6540         (visium_split_cstore): Likewise.
6541         (visium_select_cc_mode): Likewise.
6542         (visium_split_cbranch): Likewise.
6543         (output_cbranch): Likewise.
6544         (visium_print_operand_address): Likewise.
6545         * expmed.c (flip_storage_order): Likewise.
6546         * expmed.h (emit_cstore): Likewise.
6547         (flip_storage_order): Likewise.
6548         * genrecog.c (validate_pattern): Likewise.
6549         * hsa-gen.c (gen_hsa_addr): Likewise.
6550         * internal-fn.c (expand_arith_overflow): Likewise.
6551         * ira-color.c (allocno_copy_cost_saving): Likewise.
6552         * lra-assigns.c (find_hard_regno_for_1): Likewise.
6553         * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
6554         (process_invariant_for_inheritance): Likewise.
6555         * lra-eliminations.c (move_plus_up): Likewise.
6556         * omp-low.c (lower_oacc_reductions): Likewise.
6557         * simplify-rtx.c (simplify_subreg): Likewise.
6558         * target.def (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
6559         (TARGET_CHKP_BOUND_MODE): Likewise..
6560         * targhooks.c (default_chkp_bound_mode): Likewise.
6561         (default_setup_incoming_vararg_bounds): Likewise.
6562         * targhooks.h (default_chkp_bound_mode): Likewise.
6563         (default_setup_incoming_vararg_bounds): Likewise.
6564         * tree-ssa-math-opts.c (divmod_candidate_p): Likewise.
6565         * tree-vect-loop.c (calc_vec_perm_mask_for_shift): Likewise.
6566         (have_whole_vector_shift): Likewise.
6567         * tree-vect-stmts.c (vectorizable_load): Likewise.
6568         * doc/tm.texi: Regenerate.
6570 2017-07-05  Georg-Johann Lay  <avr@gjlay.de>
6572         Graceful degrade if Binutils PR21472 is not available.
6574         PR target/81072
6575         * configure.ac [target=avr]: WARN instead of ERROR if avrxmega3
6576         .rodata in flash test fails.
6577         (HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH): Define it if test passes.
6578         * confgure: Regenerate.
6579         * config.in: Regenerate.
6580         * config/avr/avr.c (avr_asm_named_section)
6581         [HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH]: Only trigger
6582         __do_copy_data for stuff in .rodata if flash_pm_offset = 0.
6583         (avr_asm_init_sections): Same.
6585 2017-07-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6587         * config/arm/neon.md (fma<VCVTF:mode>4): Remove %?.
6588         (fma<VH:mode>4_intrinsic): Likewise.
6589         (*fmsub<VCVTF:mode>4): Likewise.
6590         (*fmsub<VH:mode>4_intrinsic): Likewise.
6592 2017-07-05  Georg-Johann Lay  <avr@gjlay.de>
6594         PR target/81305
6595         * config/avr/avr.c (avr_out_movhi_mr_r_xmega) [CONSTANT_ADDRESS_P]:
6596         Don't depend on "optimize > 0".
6597         (out_movhi_r_mr, out_movqi_mr_r): Same.
6598         (out_movhi_mr_r, out_movqi_r_mr): Same.
6599         (avr_address_cost) [CONSTANT_ADDRESS_P]: Don't depend cost for
6600         io_address_operand on "optimize > 0".
6602 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
6604         * tree-loop-distribution.c: Add general explanantion on the pass.
6605         (generate_loops_for_partition): Mark distributed loop.
6606         (pg_add_dependence_edges): New parameter.  Handle alias data
6607         dependence specially and record it in the parameter if asked.
6608         (struct pg_vdata, pg_edata, pg_edge_callback_data): New structs.
6609         (init_partition_graph_vertices, add_partition_graph_edge): New.
6610         (pg_skip_alias_edge, free_partition_graph_edata_cb): New.
6611         (free_partition_graph_vdata, build_partition_graph): New.
6612         (sort_partitions_by_post_order, merge_dep_scc_partitions): New.
6613         (pg_collect_alias_ddrs, break_alias_scc_partitions): New.
6614         (data_ref_segment_size, latch_dominated_by_data_ref): New.
6615         (compute_alias_check_pairs, version_loop_by_alias_check): New.
6616         (version_for_distribution_p, finalize_partitions): New.
6617         (distribute_loop): Handle alias data dependence specially.  Factor
6618         out loop fusion code as functions and call these functions.
6620 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
6622         * tree-loop-distribution.c (classify_partition): New parameter and
6623         better handle reduction statement.
6624         (rdg_build_partitions): Revise comment.
6625         (distribute_loop): Compute statements in all partitions and pass it
6626         to classify_partition.
6628 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
6630         * tree-loop-distribution.c (enum partition_type): New.
6631         (struct partition): New field type.
6632         (partition_merge_into): Add parameter.  Update partition type.
6633         (data_dep_in_cycle_p, update_type_for_merge): New functions.
6634         (build_rdg_partition_for_vertex): Compute partition type.
6635         (rdg_build_partitions): Dump partition type.
6636         (distribute_loop): Update calls to partition_merge_into.
6638 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
6640         * tree-loop-distribution.c (struct ddr_hasher): New.
6641         (ddr_hasher::hash, ::equal, get_data_dependence): New function.
6642         (ddrs_table): New.
6643         (classify_partition): Call get_data_dependence.
6644         (pg_add_dependence_edges): Ditto.
6645         (distribute_loop): Release data dependence hash table.
6647 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
6649         * tree-loop-distribution.c (ref_base_address): Delete.
6650         (similar_memory_accesses): Rename ...
6651         (share_memory_accesses): ... to this.  Check if partitions access
6652         the same memory reference.
6653         (distribute_loop): Call share_memory_accesses.
6655 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
6657         * tree-loop-distribution.c (struct partition): New field recording
6658         its data reference.
6659         (partition_alloc, partition_free): Init and release data refs.
6660         (partition_merge_into): Merge data refs.
6661         (build_rdg_partition_for_vertex): Collect data refs for partition.
6662         (pg_add_dependence_edges): Change parameters from vector to bitmap.
6663         Update uses.
6664         (distribute_loop): Remve data refs from vertice data of partition
6665         graph.
6667 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
6669         * tree-loop-distribution.c (params.h): Include header file.
6670         (MAX_DATAREFS_NUM, DR_INDEX): New macro.
6671         (datarefs_vec): New global var.
6672         (create_rdg_vertices): Use datarefs_vec directly.
6673         (free_rdg): Don't free data references.
6674         (build_rdg): Update use.  Don't free data references.
6675         (distribute_loop): Compute global variable for data references.
6676         Bail out if there are too many data references.
6678 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
6680         * tree-loop-distribution.c (loop_nest): New global var.
6681         (build_rdg): Use loop directly, rather than loop nest.
6682         (pg_add_dependence_edges): Remove loop nest parameter.  Use global
6683         variable directly.
6684         (distribute_loop): Compute global variable loop nest.  Update use.
6686 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
6688         * tree-loop-distribution.c (enum fuse_type, fuse_message): New.
6689         (partition_merge_into): New parameter.  Dump reason for fusion.
6690         (distribute_loop): Update use of partition_merge_into.
6692 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
6694         * tree-loop-distribution.c (bb_top_order_index): New.
6695         (bb_top_order_index_size, bb_top_order_cmp): New.
6696         (stmts_from_loop): Use topological order.
6697         (pass_loop_distribution::execute): Compute and release topological
6698         order for basic blocks.
6700 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
6702         * tree-loop-distribution.c (pass_loop_distribution::execute): Skip
6703         if no loops.
6705 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
6707         * cfgloop.h (struct loop): Add comment.  New field orig_loop_num.
6708         * cfgloopmanip.c (lv_adjust_loop_entry_edge): Comment change.
6709         * internal-fn.c (expand_LOOP_DIST_ALIAS): New function.
6710         * internal-fn.def (LOOP_DIST_ALIAS): New.
6711         * tree-vectorizer.c (fold_loop_vectorized_call): Rename to ...
6712         (fold_loop_internal_call): ... this.
6713         (vect_loop_dist_alias_call): New function.
6714         (set_uid_loop_bbs): Call fold_loop_internal_call.
6715         (vectorize_loops): Fold IFN_LOOP_VECTORIZED and IFN_LOOP_DIST_ALIAS
6716         internal calls.
6718 2017-07-04  Uros Bizjak  <ubizjak@gmail.com>
6720         PR target/81300
6721         * config/i386/i386.md (setcc + movzbl/and to xor + setcc peepholes):
6722         Require dead FLAGS_REG at the beginning of a peephole.
6724 2017-07-04  Uros Bizjak  <ubizjak@gmail.com>
6726         PR target/81294
6727         * config/i386/adxintrin.h (_subborrow_u32): Swap _X and _Y
6728         arguments in the call to __builtin_ia32_sbb_u32.
6729         (_subborrow_u64): Swap _X and _Y arguments in the call to
6730         __builtin_ia32_sbb_u64.
6732 2017-07-04  Jakub Jelinek  <jakub@redhat.com>
6734         PR debug/81278
6735         * tree-vrp.c (compare_assert_loc): Turn into a function template
6736         with stable template parameter.  Only test if a->e is NULL,
6737         !a->e == !b->e has been verified already.  Use e == NULL or
6738         e != NULL instead of e or ! e tests.  If stable is true, don't use
6739         iterative_hash_expr, on the other side allow a or b or both NULL
6740         and sort the NULLs last.
6741         (process_assert_insertions): Sort using compare_assert_loc<false>
6742         instead of compare_assert_loc, later sort using
6743         compare_assert_loc<true> before calling process_assert_insertions_for
6744         in a loop.  Use break instead of continue once seen NULL pointer.
6746 2017-07-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6748         * config/arm/driver-arm.c (arm_cpu_table): Add entry for ARM
6749         Cortex-R7 and Cortex-R8 processors.
6751 2017-07-04  Jan Hubicka  <hubicka@ucw.cz>
6753         * ipa-utils.c (ipa_merge_profiles): Fix merging when dst is
6754         uninitialized while src is not.
6756 2017-07-04  Richard Earnshaw  <rearnsha@arm.com>
6758         * common/config/arm/arm-common.c: Adjust include path for
6759         arm-cpu-cdata.h
6760         * config/arm/t-arm (TM_H): Adjust path for arm-cpu.h.
6761         (arm-cpu.h): Create in build directory.  Adjust dependency rules.
6762         (arm-cpu-data.h): Likewise.
6763         (arm-cpu-cdata.h): Likewise.
6764         * config/arm/arm-cpu.h: Delete.
6765         * config/arm/arm-cpu-cdata.h: Delete.
6766         * config/arm/arm-cpu-data.h: Delete.
6768 2017-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
6770         * config/arm/arm-cpus.in (cortex-a55): New.
6771         (cortex-a75): Likewise.
6772         (cortex-a75.cortex-a55): Likewise.
6773         * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a55 and
6774         cortex-a75.
6775         * doc/invoke.texi (-mcpu): Document cortex-a55 and cortex-a75.
6776         * config/arm/arm-cpu-cdata.h: Regenerate.
6777         * config/arm/arm-cpu-data.h: Regenerate.
6778         * config/arm/arm-cpu.h: Regenerate.
6779         * config/arm/arm-tables.opt: Regenerate.
6780         * config/arm/arm-tune.md: Regenerate.
6782 2017-07-04  Jan Hubicka  <hubicka@ucw.cz>
6784         * haifa-sched.c (sched_create_recovery_edges): Update profile.
6786 2017-07-04  Jan Hubicka  <hubicka@ucw.cz>
6788         * bb-reorder.c (better_edge_p): Fix handling of uninitialized
6789         probability.
6791 2017-07-04  Richard Sandiford  <richard.sandiford@linaro.org>
6793         PR tree-optimization/81292
6794         * tree-ssa-strlen.c (handle_builtin_strlen): When setting
6795         full_string_p, also call adjust_related_strinfos if the adjustment
6796         is simple, otherwise invalidate related strinfos.
6798 2017-07-04  Martin Liska  <mliska@suse.cz>
6800         PR sanitizer/81040
6801         * sanopt.c (sanitize_rewrite_addressable_params): Mark the
6802         newly created variable as DECL_IGNORED_P.
6804 2017-07-04  Martin Liska  <mliska@suse.cz>
6806         PR ipa/81293
6807         * ipa-inline.c (inline_small_functions):
6808         Use xstrdup_for_dump.
6810 2017-07-04  Tom de Vries  <tom@codesourcery.com>
6812         * graph.c (draw_cfg_edges): Save and restore EDGE_DFS_BACK.
6814 2017-07-03  Dominique d'Humieres  <dominiq@lps.ens.fr>
6816         PR target/81033
6817         * config/darwin.c (darwin_function_switched_text_sections):
6818         Fix spaces.
6820 2017-07-03  Jan Hubicka  <hubicka@ucw.cz>
6822         * tree-vect-loop-manip.c (vect_do_peeling): Fix scaling up.
6824 2017-07-03  Richard Earnshaw  <rearnsha@arm.com>
6826         * doc/invoke.texi (ARM Options): Add -mbe8 and -mbe32 to option summary.
6828 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
6830         * tree-vect-loop.c (vect_analyze_loop_2): Treat min_scalar_loop_bound,
6831         min_profitable_iters, and th as inclusive lower bounds.
6832         Fix LOOP_VINFO_PEELING_FOR_GAPS condition.
6833         (vect_estimate_min_profitable_iters): Return inclusive lower bounds
6834         for min_profitable_iters and min_profitable_estimate.
6835         (vect_transform_loop): Treat th as an inclusive lower bound.
6836         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
6838 2017-07-03  Dominique d'Humieres  <dominiq@lps.ens.fr>
6840         PR target/81033
6841         * config/darwin.c (darwin_function_switched_text_sections):
6842         Replace DECL_NAME with DECL_ASSEMBLER_NAME, split assemble_name_raw
6843         in two pieces, and suppress the use of buf.
6845 2017-07-03  Nathan Sidwell  <nathan@acm.org>
6847         * hash-table.h (hash_table_mod1): Fix indentation.
6849 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
6851         PR middle-end/81290
6852         * predict.c (force_edge_cold): Be more careful about propagation
6853         backward.
6854         * profile-count.h (profile_probability::guessed,
6855         profile_probability::fdo, profile_count::guessed, profile_count::fdo):
6856         New.
6857         * tree-ssa-threadupdate.c (recompute_probabilities): Result is guessed.
6859 2017-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
6861         * doc/invoke.texi (rcpc architecture extension): Document it.
6863 2017-07-03  Richard Biener  <rguenther@suse.de>
6865         PR tree-optimization/60510
6866         * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass in
6867         the scalar reduction PHI and use it.
6868         (vectorizable_reduction): Properly guard the single_defuse_cycle
6869         path for non-SLP reduction chains where we cannot use it.
6870         Rework reduc_def/index and vector type deduction.  Rework
6871         vector operand gathering during reduction op code-gen.
6872         * tree-vect-slp.c (vect_analyze_slp): For failed SLP reduction
6873         chains dissolve the chain and leave it to non-SLP reduction
6874         handling.
6876 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
6878         * tree-data-ref.h (dr_alignment): Declare.
6879         * tree-data-ref.c (dr_alignment): New function.
6880         * tree-vectorizer.h (dataref_aux): Remove base_element_aligned.
6881         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Don't
6882         set it.
6883         * tree-vect-stmts.c (vectorizable_store): Use dr_alignment.
6885 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
6887         * tree-data-ref.h (innermost_loop_behavior): Add base_alignment
6888         and base_misalignment fields.
6889         (DR_BASE_ALIGNMENT, DR_BASE_MISALIGNMENT): New macros.
6890         * tree-data-ref.c: Include builtins.h.
6891         (dr_analyze_innermost): Set up the new innmost_loop_behavior fields.
6892         * tree-vectorizer.h (STMT_VINFO_DR_BASE_ALIGNMENT): New macro.
6893         (STMT_VINFO_DR_BASE_MISALIGNMENT): Likewise.
6894         * tree-vect-data-refs.c: Include tree-cfg.h.
6895         (vect_compute_data_ref_alignment): Use the new innermost_loop_behavior
6896         fields instead of calculating an alignment here.
6897         (vect_analyze_data_refs): Use dr_analyze_innermost.  Dump the new
6898         innermost_loop_behavior fields.
6900 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
6902         * tree-data-ref.h (innermost_loop_behavior): Add a step_alignment
6903         field.
6904         (DR_STEP_ALIGNMENT): New macro.
6905         * tree-vectorizer.h (STMT_VINFO_DR_STEP_ALIGNMENT): Likewise.
6906         * tree-data-ref.c (dr_analyze_innermost): Initalize step_alignment.
6907         (create_data_ref): Print it.
6908         * tree-vect-stmts.c (vectorizable_load): Use the step alignment
6909         to tell whether the step preserves vector (mis)alignment.
6910         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
6911         Move the check for an integer step and generalise to all INTEGER_CST.
6912         (vect_analyze_data_refs): Set DR_STEP_ALIGNMENT when setting DR_STEP.
6913         Print the outer step alignment.
6915 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
6917         * tree-data-ref.h (innermost_loop_behavior): Replace aligned_to
6918         with offset_alignment.
6919         (DR_ALIGNED_TO): Delete.
6920         (DR_OFFSET_ALIGNMENT): New macro.
6921         * tree-vectorizer.h (STMT_VINFO_DR_ALIGNED_TO): Delete.
6922         (STMT_VINFO_DR_OFFSET_ALIGNMENT): New macro.
6923         * tree-data-ref.c (dr_analyze_innermost): Update after above changes.
6924         (create_data_ref): Likewise.
6925         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
6926         (vect_analyze_data_refs): Likewise.
6927         * tree-if-conv.c (if_convertible_loop_p_1): Use memset before
6928         creating dummy innermost behavior.
6930 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
6932         * tree-data-ref.h (dr_analyze_innermost): Replace the dr argument
6933         with a "innermost_loop_behavior *" and refeence tree.
6934         * tree-data-ref.c (dr_analyze_innermost): Likewise.
6935         (create_data_ref): Update call accordingly.
6936         * tree-predcom.c (find_looparound_phi): Likewise.
6938 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
6940         * tree-vectorizer.h (_stmt_vec_info): Replace individual dr_*
6941         fields with dr_wrt_vec_loop.
6942         (STMT_VINFO_DR_BASE_ADDRESS, STMT_VINFO_DR_INIT, STMT_VINFO_DR_OFFSET)
6943         (STMT_VINFO_DR_STEP, STMT_VINFO_DR_ALIGNED_TO): Update accordingly.
6944         (STMT_VINFO_DR_WRT_VEC_LOOP): New macro.
6945         (vect_dr_behavior): New function.
6946         (vect_create_addr_base_for_vector_ref): Remove loop parameter.
6947         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
6948         vect_dr_behavior.  Use a step_preserves_misalignment_p boolean to
6949         track whether the step preserves the misalignment.
6950         (vect_create_addr_base_for_vector_ref): Remove loop parameter.
6951         Use vect_dr_behavior.
6952         (vect_setup_realignment): Update call accordingly.
6953         (vect_create_data_ref_ptr): Likewise.  Use vect_dr_behavior.
6954         * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Update
6955         call to vect_create_addr_base_for_vector_ref.
6956         (vect_create_cond_for_align_checks): Likewise.
6957         * tree-vect-patterns.c (vect_recog_bool_pattern): Copy
6958         STMT_VINFO_DR_WRT_VEC_LOOP as a block.
6959         (vect_recog_mask_conversion_pattern): Likewise.
6960         * tree-vect-stmts.c (compare_step_with_zero): Use vect_dr_behavior.
6961         (new_stmt_vec_info): Remove redundant zeroing.
6963 2017-07-03  Richard Earnshaw  <rearnsha@arm.com>
6965         * common/config/arm/arm-common.c (arm_be8_option): New function.
6966         * config/arm/arm-isa.h (isa_feature): Add new feature bit isa_bit_be8.
6967         (ISA_ARMv6): Add isa_bit_be8.
6968         * config/arm/arm.h (arm_be8_option): Add prototype.
6969         (BE8_SPEC_FUNCTION): New define.
6970         (EXTRA_SPEC_FUNCTIONS): Add BE8_SPEC_FUNCTION.
6971         * config/arm/arm.opt (mbig-endian): Mark as Negative of mlittle-endian.
6972         (mlittle-endian): Similarly.
6973         (mbe8, mbe32): New options.
6974         * config/arm/bpabi.h (BE8_LINK_SPEC): Call arm_be8_option.
6975         * doc/invoke.texi (ARM Options): Document -mbe8 and -mbe32.
6977 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
6979         * tree-cfg.c (gimple_find_sub_bbs): Fix profile updating.
6981 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
6983         * tree-cfgcleanup.c (want_merge_blocks_p): New function.
6984         (cleanup_tree_cfg_bb): Use it.
6985         * profile-count.h (profile_count::of_for_merging, profile_count::merge):
6986         New functions.
6987         * tree-cfg.c (gimple_merge_blocks): Use profile_count::merge.
6989 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
6991         PR bootstrap/81285
6992         * loop-doloop.c (add_test): Update profile.
6994 2017-07-03  Martin Liska  <mliska@suse.cz>
6996         PR sanitize/81040
6997         * sanopt.c (rewrite_usage_of_param): New function.
6998         (sanitize_rewrite_addressable_params): Likewise.
6999         (pass_sanopt::execute): Call rewrite_usage_of_param.
7001 2017-07-03  Richard Biener  <rguenther@suse.de>
7003         * tree-vect-loop.c (vect_create_epilog_for_reduction): Revert
7004         back to using VIEW_CONVERT_EXPR.
7006 2017-07-03  Martin Liska  <mliska@suse.cz>
7008         PR other/78366
7009         * doc/extend.texi: Document when a resolver function is
7010         generated for target_clones.
7012 2017-07-03  Martin Liska  <mliska@suse.cz>
7014         * asan.c (asan_emit_stack_protection): Unpoison just red zones
7015         and shadow memory of auto variables which are subject of
7016         use-after-scope sanitization.
7017         (asan_expand_mark_ifn): Add do set only when is_poison.
7019 2016-07-03  Richard Biener  <rguenther@suse.de>
7021         * tree-vect-loop.c (vect_analyze_loop_operations): Also analyze
7022         reduction PHIs.
7023         (vect_force_simple_reduction): Record reduction def -> phi mapping.
7024         (vectorizable_reduction): Perform reduction PHI creation when
7025         visiting a reduction PHI and adjust and simplify code generation
7026         phase of the reduction op.  Cache dts, use fold_binary, not fold_build2.
7027         (vect_transform_loop): Visit reduction PHIs.
7028         * tree-vect-slp.c (vect_get_and_check_slp_defs): Record reduction
7029         defs into the SLP tree.
7030         (vect_build_slp_tree): Reduction defs terminate the recursion.
7031         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): Allow lookup
7032         of reduction defs.
7033         (vect_get_vec_defs_for_stmt_copy): Export.
7034         (vect_get_vec_defs): Likewise.
7035         * tree-vectorizer.h (struct _stmt_vec_info): Amend reduc_def
7036         purpose.
7037         (vect_get_vec_defs_for_stmt_copy): Declare.
7038         (vect_get_vec_defs): Likewise.
7040 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
7042         * tree-data-ref.c (dr_analyze_innermost): Replace the "nest"
7043         parameter with a "loop" parameter and use it instead of the
7044         loop containing DR_STMT.  Don't check simple_iv when doing
7045         BB analysis.  Describe the two analysis modes in the comment.
7047 2017-07-03  Tom de Vries  <tom@codesourcery.com>
7049         PR tree-optimization/69468
7050         * tree-ssa-tail-merge.c (ignore_edge_flags): New constant.
7051         (find_same_succ_bb): Handle ignore_edge_flags.
7053 2017-07-03  Tom de Vries  <tom@codesourcery.com>
7055         PR tree-optimization/81192
7056         * tree-ssa-tail-merge.c (same_succ_hash): Use bb->loop_father->num in
7057         hash.
7058         (same_succ::equal): Don't find bbs to be equal if bb->loop_father
7059         differs.
7060         (find_same_succ_bb): Remove obsolete test on bb->loop_father->latch.
7062 2017-07-03  Tom de Vries  <tom@codesourcery.com>
7064         PR tree-optimization/81192
7065         * tree-ssa-tail-merge.c (same_succ_flush_bb): Handle
7066         BB_SAME_SUCC (bb) == NULL.
7068 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
7070         * cfgrtl.c (rtl_verify_edges): Enable checking of profile_probability
7071         consistency.
7073 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
7075         * dumpfile.c: Include profile-count.h
7076         * tree-cfg.c (gimple_duplicate_sese_tail): Drop UNUSED attributes;
7077         update profile.
7078         (insert_cond_bb): Update profile.
7079         * tree-cfg.h (insert_cond_bb): Update prototype.
7080         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Update.
7081         * tree-dump.c: Do not include tree-cfg.
7083 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
7085         * bb-reorder.c (fix_up_crossing_landing_pad): Update profile.
7087 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
7089         * expect.c (dw2_build_landing_pads): Update profile of the landing pad
7090         bb.
7092 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
7094         * tree-complex.c (expand_complex_div_wide): update profile.
7096 2017-07-02  Richard Sandiford  <richard.sandiford@linaro.org>
7097             Alan Hayward  <alan.hayward@arm.com>
7098             David Sherwood  <david.sherwood@arm.com>
7100         * Makefile.in (MACHMODE_H): Remove insn-modes.h
7101         (CORETYPES_H): New define.
7102         (MOSTLYCLEANFILES): Add insn-modes-inline.h.
7103         (insn-modes-inline.h, s-modes-inline-h): New rules.
7104         (generated_files): Add insn-modes-inline.h.
7105         (RTL_BASE_H, TREE_CORE_H): Use CORETYPES_H instead of coretypes.h.
7106         (build/gensupport.o, build/ggc-none.o, build/print-rtl.o): Likewise.
7107         (build/read-md.o, build/read-rtl.o, build/rtl.o): Likewise.
7108         (build/vec.o, build/hash-table.o, build/inchash.o): Likewise.
7109         (build/gencondmd.o, build/genattr.o, build/genattr-common.o): Likewise.
7110         (build/genattrtab.o, build/genautomata.o, build/gencheck.o): Likewise.
7111         (build/gencodes.o, build/genconditions.o): Likewise.
7112         (build/genconfig.o, build/genconstants.o, build/genemit.o): Likewise.
7113         (build/genenums.o, build/genextract.o, build/genflags.o): Likewise.
7114         (build/gentarget-def.o, build/genmddeps.o, build/genopinit.o)
7115         (build/genoutput.o, build/genpeep.o, build/genpreds.o): Likewise.
7116         (build/genrecog.o, build/genmddump.o, build/genmatch.o): Likewise.
7117         (build/gencfn-macros.o, build/gcov-iov.o): Likewise.
7118         * coretypes.h: Include everything up to real.h for generators.
7119         Include insn-modes.h first.  Include wide-int-print.h after
7120         wide-int.h.  Include insn-modes-inline.h and then machmode.h.
7121         * machmode.h: Don't include insn-modes.h here.
7122         * function-tests.c: Remove includes of signop.h, machmode.h,
7123         double-int.h and wide-int.h.
7124         * rtl.h: Likewise.
7125         * gcc-rich-location.c: Remove includes of machmode.h, double-int.h
7126         and wide-int.h.
7127         * optc-save-gen.awk: Likewise.
7128         * gencheck.c (BITS_PER_UNIT): Delete dummy definition.
7129         * godump.c: Remove include of wide-int-print.h.
7130         * pretty-print.h: Likewise.
7131         * wide-int-print.cc: Likewise.
7132         * wide-int.cc: Likewise.
7133         * hash-map-tests.c: Remove include of signop.h.
7134         * hash-set-tests.c: Likewise.
7135         * rtl-tests.c: Likewise.
7136         * mkconfig.sh: Remove include of machmode.h.
7137         * genmodes.c (emit_insn_modes_h): Split emission of inline functions
7138         into...
7139         (emit_insn_modes_inline_h): ...this new function.  Emit the code
7140         into an insn-modes-inline.h header file, adding appropriate
7141         include guards and end comments.
7142         (emit_insn_modes_c_header): Remove include of machmode.h.
7143         (emit_min_insn_modes_c_header): Include coretypes.h rather than
7144         machmode.h.
7145         (main): Handle -i flag and call emit_insn_modes_inline_h when
7146         it is passed.
7148 2017-07-02  Richard Sandiford  <richard.sandiford@linaro.org>
7150         * tree-ssa-strlen.c (strinfo): Rename the length field to
7151         nonzero_chars.  Add a full_string_p field.
7152         (compare_nonzero_chars, zero_length_string_p): New functions.
7153         (get_addr_stridx): Add an offset_out parameter.
7154         Use compare_nonzero_chars.
7155         (get_stridx): Update accordingly.  Use compare_nonzero_chars.
7156         (new_strinfo): Update after above changes to strinfo.
7157         (set_endptr_and_length): Set full_string_p.
7158         (get_string_length): Update after above changes to strinfo.
7159         (unshare_strinfo): Update call to new_strinfo.
7160         (maybe_invalidate): Likewise.
7161         (get_stridx_plus_constant): Change off to unsigned HOST_WIDE_INT.
7162         Use compare_nonzero_chars and zero_string_p.  Treat nonzero_chars
7163         as a uhwi instead of an shwi.  Update after above changes to
7164         strinfo and new_strinfo.
7165         (zero_length_string): Assert that chainsi contains full strings.
7166         Use zero_length_string_p.  Update call to new_strinfo.
7167         (adjust_related_strinfos): Update after above changes to strinfo.
7168         Copy full_string_p from origsi.
7169         (adjust_last_stmt): Use zero_length_string_p.
7170         (handle_builtin_strlen): Update after above changes to strinfo and
7171         new_strinfo.  Install the lhs as the string length if the previous
7172         entry didn't describe a full string.
7173         (handle_builtin_strchr): Update after above changes to strinfo
7174         and new_strinfo.
7175         (handle_builtin_strcpy): Likewise.
7176         (handle_builtin_strcat): Likewise.
7177         (handle_builtin_malloc): Likewise.
7178         (handle_pointer_plus): Likewise.
7179         (handle_builtin_memcpy): Likewise.  Track nonzero characters
7180         that aren't necessarily followed by a nul terminator.
7181         (handle_char_store): Likewise.
7183 2017-07-02  Richard Sandiford  <richard.sandiford@linaro.org>
7185         PR tree-optimization/80769
7186         * tree-ssa-strlen.c (strinfo): Document that "stmt" is also used
7187         for malloc and calloc.  Document the new invariant that all related
7188         strinfos have delayed lengths or none do.
7189         (verify_related_strinfos): Move earlier in file.
7190         (set_endptr_and_length): New function, split out from...
7191         (get_string_length): ...here.  Also set the lengths of related
7192         strinfos.
7193         (zero_length_string): Assert that chainsi has known (rather than
7194         delayed) lengths.
7195         (adjust_related_strinfos): Likewise.
7197 2017-07-02  Richard Sandiford  <richard.sandiford@linaro.org>
7199         PR tree-optimization/81136
7200         * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Only
7201         assert that two references with the same misalignment have the same
7202         compile-time misalignment if those compile-time misalignments
7203         are known.
7205 2017-07-01  Andi Kleen  <ak@linux.intel.com>
7207         * print-tree.c (print_node): Print all attributes.
7209 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
7211         * cfg.c (scale_bbs_frequencies): New function.
7212         * cfg.h (scale_bbs_frequencies): Declare it.
7213         * cfgloopanal.c (single_likely_exit): Cleanup.
7214         * cfgloopmanip.c (scale_loop_frequencies): Take profile_probability
7215         as parameter.
7216         (scale_loop_profile): Likewise.
7217         (loop_version): Likewise.
7218         (create_empty_loop_on_edge): Update.
7219         * cfgloopmanip.h (scale_loop_frequencies, scale_loop_profile,
7220         scale_loop_frequencies, scale_loop_profile, loopify,
7221         loop_version): Update prototypes.
7222         * modulo-sched.c (sms_schedule): Update.
7223         * predict.c (unlikely_executed_edge_p): Also check probability.
7224         (probably_never_executed_edge_p): Fix typo.
7225         * tree-if-conv.c (version_loop_for_if_conversion): Update.
7226         * tree-parloops.c (gen_parallel_loop): Update.
7227         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update.
7228         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
7229         * tree-ssa-loop-split.c (split_loop): Update.
7230         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
7231         * tree-vect-loop-manip.c (vect_do_peeling): Update.
7232         (vect_loop_versioning): Update.
7233         * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
7235 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
7237         * trans-mem.c (split_bb_make_tm_edge): Update profile.
7239 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
7241         * tree-if-conv.c (combine_blocks): Use make_single_succ_edge
7242         to keep profile consistent.
7244 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
7246         * cfgrtl.c (rtl_flow_call_edges_add): Update profile.
7247         * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
7248         * profile-count.h (max_safe_multiplier): Make unsigned.
7249         (profile_count::guessed_zero): New.
7251 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
7253         * bb-reorder.c (fix_up_crossing_landing_pad,
7254         fix_crossing_conditional_branches): Use make_single_succ_edge
7255         to keep profile consistent.
7257 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
7259         * tree-vect-loop.c (optimize_mask_stores): Use make_single_succ_edge
7260         to update profile.
7262 2017-07-01  Jakub Jelinek  <jakub@redhat.com>
7264         PR sanitizer/81262
7265         * bb-reorder.c (fix_up_fall_thru_edges): Move variable declarations to
7266         the right scopes, make sure cond_jump isn't preserved between multiple
7267         iterations.  Search for fallthru edge whenever there are 3+ edges and
7268         use find_fallthru_edge for it.
7270 2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
7272         Patch by Alexander Monakov <amonakov@ispras.ru>
7273         * sel-sched-ir.c (compute_succs_info): Handle uninitialized
7274         probabilities consistently.
7276 2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
7278         * pa.c (pa_expand_compare_and_swap_loop): Update call of
7279         emit_cmp_and_jump_insns.
7281 2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
7283         PR ipa/81261
7284         * tree-inline.c (expand_call_inline): Combine profile statuses.
7286 2017-06-30  Andrew Pinski  <apinski@cavium.com>
7288         * tree-if-conv.c (predicate_scalar_phi): Update new_stmt if
7289         fold_stmt returned true.
7291 2017-06-30  Nathan Sidwell  <nathan@acm.org>
7293         * ggc.h (empty_string): Delete.
7294         * cfgexpand.c (expand_asm_stmt): Use plain "".
7295         * optabs.c (expand_asm_memory_barrier): Likewise.
7296         * stringpool.c (empty_string): Delete.
7297         (digit_vector, digit_string): Delete.
7298         (ggc_alloc_string): Use plain "", don't optimize single digit
7299         strings.  Use ggc_alloc_atomic.
7301 2017-06-30  Richard Earnshaw  <rearnsha@arm.com>
7303         * rtlanal.c (insn_rtx_cost): If a parallel contains exactly one
7304         comparison set and one other set, use the cost of the non-comparison
7305         set.
7307 2017-06-30  Nathan Sidwell  <nathan@acm.org>
7309         * ggc.h: Replace all 'static inline' with plain 'inline'.  Fix
7310         some formatting.
7312 2017-06-30  Peter Bergner  <bergner@vnet.ibm.com>
7314         * tree-cfg.c (group_case_labels_stmt): Merge scanning and compressing
7315         loops.  Remove now unneeded calls to gimple_switch_set_label() that
7316         just set removed labels to NULL_TREE.
7318 2017-06-30  Aldy Hernandez  <aldyh@redhat.com>
7320         * tree-ssanames.c (set_range_info_raw): Abstract from ...
7321         (set_range_info): ...here.  Only call set_range_info_raw if domain
7322         is useful.
7323         (set_nonzero_bits): Call set_range_info_raw.
7324         * tree-ssanames.h (set_range_info_raw): New.
7326 2017-06-30  Jakub Jelinek  <jakub@redhat.com>
7328         PR target/81225
7329         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): For V8FI,
7330         V16FI and VI8F_256 iterators, use <store_mask_predicate> instead
7331         of nonimmediate_operand and <store_mask_constraint> instead of m
7332         for the input operand.  For V8FI iterator, always split if input
7333         is a MEM.  For V16FI and V8SF_256 iterators, don't test if both
7334         operands are MEM if <mask_applied>.  For VI4F_256 iterator, use
7335         <store_mask_predicate> instead of register_operand and
7336         <store_mask_constraint> instead of v for the input operand.  Make
7337         sure both operands aren't MEMs for if not <mask_applied>.
7339 2017-06-30  Sylvestre Ledru  <sylvestre@debian.org>
7341         * lto-wrapper.c (copy_file) Close both file descriptors before
7342         exiting normally.
7344 2017-06-30  Martin Liska  <mliska@suse.cz>
7346         PR ipa/81214
7347         * multiple_target.c (create_dispatcher_calls): Make ifunc
7348         also for function that don't have calls or are not referenced.
7350 2017-06-30  Richard Biener  <rguenther@suse.de>
7352         * tree-vect-slp.c (vect_slp_analyze_node_operations): Only
7353         analyze the first scalar stmt.  Move vector type computation
7354         for the BB case here from ...
7355         * tree-vect-stmts.c (vect_analyze_stmt): ... here.  Guard
7356         live operation processing in the SLP case properly.
7358 2017-06-30  Richard Biener  <rguenther@suse.de>
7360         * graph.c (draw_cfg_node_succ_edges): Fix broken dot syntax.
7362 2017-06-30  Martin Liska  <mliska@suse.cz>
7364         PR sanitizer/81021
7365         * tree-eh.c (lower_resx): Call BUILT_IN_ASAN_HANDLE_NO_RETURN
7366         before BUILT_IN_UNWIND_RESUME when ASAN is used.
7368 2017-06-30  Yvan Roux  <yvan.roux@linaro.org>
7370         * doc/invoke.texi (AArch64): Add missing options and remove redundant
7371         ones.
7373 2017-06-30  Richard Biener  <rguenther@suse.de>
7375         PR tree-optimization/81249
7376         * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
7377         condition reduction result to original scalar type.
7379 2017-06-30  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7381         * profile-count.h (enum profile_quality): Fix typos and whitespace
7382         issues.
7384 2017-06-30  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7386         * config/s390/s390.c (s390_expand_setmem): Adjust to the new data
7387         type for branch probabilities.
7389 2017-06-29  Julian Brown  <julian@codesourcery.com>
7390             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
7392         * config/aarch64/aarch64-fusion-pairs.def: Add ALU_BRANCH entry.
7393         * config/aarch64/aarch64.c (AARCH64_FUSE_ALU_BRANCH): New fusion type.
7394         (thunderx2t99_tunings): Set AARCH64_FUSE_ALU_BRANCH flag.
7395         (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_ALU_BRANCH.
7397 2017-06-29  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
7399         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Push the
7400         check for CC usage into AARCH64_FUSE_CMP_BRANCH.
7401         * config/i386/i386.c (ix86_macro_fusion_pair_p): Push the check for
7402         CC usage from generic code to here.
7403         * sched-deps.c (sched_macro_fuse_insns): Move the condition for
7404         CC usage into the target macros.
7406 2017-06-29  Maya Rashish  <coypu@sdf.org>
7408         * config/netbsd.h (NETBSD_LIB_SPEC): Add -lc when creating shared
7409         objects.
7411 2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
7413         * arm/arm-builtins.c: Include profile-count.h
7414         * except.c (sjlj_emit_function_enter): Use
7415         profile_probability::unlikely.
7417 2017-06-29  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
7419         * config/rs6000/rs6000.c (toc_relative_expr_p): Make tocrel_base
7420         and tocrel_offset be pointer args rather than implicitly using
7421         static versions.
7422         (legitimate_constant_pool_address_p, rs6000_emit_move,
7423         const_load_sequence_p, adjust_vperm): Add local tocrel_base and
7424         tocrel_offset and use in toc_relative_expr_p call.
7425         (print_operand, print_operand_address): Use static tocrel_base_oac
7426         and tocrel_offset_oac.
7427         (rs6000_output_addr_const_extra): Use static tocrel_base_oac and
7428         tocrel_offset_oac.
7430 2017-06-29  Maya Rashish  <coypu@sdf.org>
7432         * config/vax/builtins.md (ffssi2_internal): Correct constraint.
7434 2017-06-29  Eric Botcazou  <ebotcazou@adacore.com>
7436         * expr.c (expand_expr) <normal_inner_ref>: When testing for unaligned
7437         objects, take into account only the alignment of 'op0' and 'mode1' if
7438         'op0' is a MEM.
7440 2017-06-29  Steve Ellcey  <sellcey@cavium.com>
7442         * ccmp.c (ccmp_tree_comparison_p): New function.
7443         (ccmp_candidate_p): Update to use above function.
7444         (get_compare_parts): New function.
7445         (expand_ccmp_next): Update to use new functions.
7446         (expand_ccmp_expr_1): Take tree arg instead of gimple, update to use
7447         new functions.
7448         (expand_ccmp_expr): Pass tree instead of gimple to expand_ccmp_expr_1,
7449         take mode as argument.
7450         * ccmp.h (expand_ccmp_expr): Add mode as argument.
7451         * expr.c (expand_expr_real_1): Pass mode as argument.
7453 2017-06-29  Segher Boessenkool  <segher@kernel.crashing.org>
7455         * combine.c (combine_instructions): Print insns to dump_file, together
7456         with their costs.
7458 2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
7460         * asan.c (asan_emit_stack_protection): Update.
7461         (create_cond_insert_point): Update.
7462         * auto-profile.c (afdo_propagate_circuit): Update.
7463         * basic-block.h (struct edge_def): Turn probability to
7464         profile_probability.
7465         (EDGE_FREQUENCY): Update.
7466         * bb-reorder.c (find_traces_1_round): Update.
7467         (better_edge_p): Update.
7468         (sanitize_hot_paths): Update.
7469         * cfg.c (unchecked_make_edge): Initialize probability to uninitialized.
7470         (make_single_succ_edge): Update.
7471         (check_bb_profile): Update.
7472         (dump_edge_info): Update.
7473         (update_bb_profile_for_threading): Update.
7474         * cfganal.c (connect_infinite_loops_to_exit): Initialize new edge
7475         probabilitycount to 0.
7476         * cfgbuild.c (compute_outgoing_frequencies): Update.
7477         * cfgcleanup.c (try_forward_edges): Update.
7478         (outgoing_edges_match): Update.
7479         (try_crossjump_to_edge): Update.
7480         * cfgexpand.c (expand_gimple_cond): Update make_single_succ_edge.
7481         (expand_gimple_tailcall): Update.
7482         (construct_init_block): Use make_single_succ_edge.
7483         (construct_exit_block): Use make_single_succ_edge.
7484         * cfghooks.c (verify_flow_info): Update.
7485         (redirect_edge_succ_nodup): Update.
7486         (split_edge): Update.
7487         (account_profile_record): Update.
7488         * cfgloopanal.c (single_likely_exit): Update.
7489         * cfgloopmanip.c (scale_loop_profile): Update.
7490         (set_zero_probability): Remove.
7491         (duplicate_loop_to_header_edge): Update.
7492         * cfgloopmanip.h (loop_version): Update prototype.
7493         * cfgrtl.c (try_redirect_by_replacing_jump): Update.
7494         (force_nonfallthru_and_redirect): Update.
7495         (update_br_prob_note): Update.
7496         (rtl_verify_edges): Update.
7497         (purge_dead_edges): Update.
7498         (rtl_lv_add_condition_to_bb): Update.
7499         * cgraph.c: (cgraph_edge::redirect_call_stmt_to_calle): Update.
7500         * cgraphunit.c (init_lowered_empty_function): Update.
7501         (cgraph_node::expand_thunk): Update.
7502         * cilk-common.c: Include profile-count.h
7503         * dojump.c (inv): Remove.
7504         (jumpifnot): Update.
7505         (jumpifnot_1): Update.
7506         (do_jump_1): Update.
7507         (do_jump): Update.
7508         (do_jump_by_parts_greater_rtx): Update.
7509         (do_compare_rtx_and_jump): Update.
7510         * dojump.h (jumpifnot, jumpifnot_1, jumpif_1, jumpif, do_jump,
7511         do_jump_1. do_compare_rtx_and_jump): Update prototype.
7512         * dwarf2cfi.c: Include profile-count.h
7513         * except.c (dw2_build_landing_pads): Use make_single_succ_edge.
7514         (sjlj_emit_dispatch_table): Likewise.
7515         * explow.c: Include profile-count.h
7516         * expmed.c (emit_store_flag_force): Update.
7517         (do_cmp_and_jump): Update.
7518         * expr.c (compare_by_pieces_d::generate): Update.
7519         (compare_by_pieces_d::finish_mode): Update.
7520         (emit_block_move_via_loop): Update.
7521         (store_expr_with_bounds): Update.
7522         (store_constructor): Update.
7523         (expand_expr_real_2): Update.
7524         (expand_expr_real_1): Update.
7525         * expr.h (try_casesi, try_tablejump): Update prototypes.
7526         * gimple-pretty-print.c (dump_probability): Update.
7527         (dump_profile): New.
7528         (dump_gimple_label): Update.
7529         (dump_gimple_bb_header): Update.
7530         * graph.c (draw_cfg_node_succ_edges): Update.
7531         * hsa-gen.c (convert_switch_statements): Update.
7532         * ifcvt.c (cheap_bb_rtx_cost_p): Update.
7533         (find_if_case_1): Update.
7534         (find_if_case_2): Update.
7535         * internal-fn.c (expand_arith_overflow_result_store): Update.
7536         (expand_addsub_overflow): Update.
7537         (expand_neg_overflow): Update.
7538         (expand_mul_overflow): Update.
7539         (expand_vector_ubsan_overflow): Update.
7540         * ipa-cp.c (good_cloning_opportunity_p): Update.
7541         * ipa-split.c (split_function): Use make_single_succ_edge.
7542         * ipa-utils.c (ipa_merge_profiles): Update.
7543         * loop-doloop.c (add_test): Update.
7544         (doloop_modify): Update.
7545         * loop-unroll.c (compare_and_jump_seq): Update.
7546         (unroll_loop_runtime_iterations): Update.
7547         * lra-constraints.c (lra_inheritance): Update.
7548         * lto-streamer-in.c (input_cfg): Update.
7549         * lto-streamer-out.c (output_cfg): Update.
7550         * mcf.c (adjust_cfg_counts): Update.
7551         * modulo-sched.c (sms_schedule): Update.
7552         * omp-expand.c (expand_omp_for_init_counts): Update.
7553         (extract_omp_for_update_vars): Update.
7554         (expand_omp_ordered_sink): Update.
7555         (expand_omp_for_ordered_loops): Update.
7556         (expand_omp_for_generic): Update.
7557         (expand_omp_for_static_nochunk): Update.
7558         (expand_omp_for_static_chunk): Update.
7559         (expand_cilk_for): Update.
7560         (expand_omp_simd): Update.
7561         (expand_omp_taskloop_for_outer): Update.
7562         (expand_omp_taskloop_for_inner): Update.
7563         * omp-simd-clone.c (simd_clone_adjust): Update.
7564         * optabs.c (expand_doubleword_shift): Update.
7565         (expand_abs): Update.
7566         (emit_cmp_and_jump_insn_1): Update.
7567         (expand_compare_and_swap_loop): Update.
7568         * optabs.h (emit_cmp_and_jump_insns): Update prototype.
7569         * predict.c (predictable_edge_p): Update.
7570         (edge_probability_reliable_p): Update.
7571         (set_even_probabilities): Update.
7572         (combine_predictions_for_insn): Update.
7573         (combine_predictions_for_bb): Update.
7574         (propagate_freq): Update.
7575         (estimate_bb_frequencies): Update.
7576         (force_edge_cold): Update.
7577         * profile-count.c (profile_count::dump): Add missing space into dump.
7578         (profile_count::debug): Add newline.
7579         (profile_count::differs_from_p): Explicitly convert to unsigned.
7580         (profile_count::stream_in): Update.
7581         (profile_probability::dump): New member function.
7582         (profile_probability::debug): New member function.
7583         (profile_probability::differs_from_p): New member function.
7584         (profile_probability::differs_lot_from_p): New member function.
7585         (profile_probability::stream_in): New member function.
7586         (profile_probability::stream_out): New member function.
7587         * profile-count.h (profile_count_quality): Rename to ...
7588         (profile_quality): ... this one.
7589         (profile_probability): New.
7590         (profile_count): Update.
7591         * profile.c (compute_branch_probabilities): Update.
7592         * recog.c (peep2_attempt): Update.
7593         * sched-ebb.c (schedule_ebbs): Update.
7594         * sched-rgn.c (find_single_block_region): Update.
7595         (compute_dom_prob_ps): Update.
7596         (schedule_region): Update.
7597         * sel-sched-ir.c (compute_succs_info): Update.
7598         * stmt.c (struct case_node): Update.
7599         (do_jump_if_equal): Update.
7600         (get_outgoing_edge_probs): Update.
7601         (conditional_probability): Update.
7602         (emit_case_dispatch_table): Update.
7603         (expand_case): Update.
7604         (expand_sjlj_dispatch_table): Update.
7605         (emit_case_nodes): Update.
7606         * targhooks.c: Update.
7607         * tracer.c (better_p): Update.
7608         (find_best_successor): Update.
7609         * trans-mem.c (expand_transaction): Update.
7610         * tree-call-cdce.c: Update.
7611         * tree-cfg.c (gimple_split_edge): Upate.
7612         (move_sese_region_to_fn): Upate.
7613         * tree-cfgcleanup.c (cleanup_control_expr_graph): Upate.
7614         * tree-eh.c (lower_resx): Upate.
7615         (cleanup_empty_eh_move_lp): Upate.
7616         * tree-if-conv.c (version_loop_for_if_conversion): Update.
7617         * tree-inline.c (copy_edges_for_bb): Update.
7618         (copy_cfg_body): Update.
7619         * tree-parloops.c (gen_parallel_loop): Update.
7620         * tree-profile.c (gimple_gen_ic_func_profiler): Update.
7621         (gimple_gen_time_profiler): Update.
7622         * tree-ssa-dce.c (remove_dead_stmt): Update.
7623         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
7624         * tree-ssa-loop-im.c (execute_sm_if_changed): Update.
7625         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update.
7626         (unloop_loops): Update.
7627         (try_peel_loop): Update.
7628         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
7629         * tree-ssa-loop-split.c (connect_loops): Update.
7630         (split_loop): Update.
7631         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
7632         (hoist_guard): Update.
7633         * tree-ssa-phionlycprop.c (propagate_rhs_into_lhs): Update.
7634         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update.
7635         (value_replacement): Update.
7636         * tree-ssa-reassoc.c (branch_fixup): Update.
7637         * tree-ssa-tail-merge.c (replace_block_by): Update.
7638         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Update.
7639         (create_edge_and_update_destination_phis): Update.
7640         (compute_path_counts): Update.
7641         (recompute_probabilities): Update.
7642         (update_joiner_offpath_counts): Update.
7643         (freqs_to_counts_path): Update.
7644         (duplicate_thread_path): Update.
7645         * tree-switch-conversion.c (hoist_edge_and_branch_if_true): Update.
7646         (struct switch_conv_info): Update.
7647         (gen_inbound_check): Update.
7648         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
7649         (vect_do_peeling): Update.
7650         (vect_loop_versioning): Update.
7651         * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
7652         (optimize_mask_stores): Update.
7653         * ubsan.c (ubsan_expand_null_ifn): Update.
7654         * value-prof.c (gimple_divmod_fixed_value): Update.
7655         (gimple_divmod_fixed_value_transform): Update.
7656         (gimple_mod_pow2): Update.
7657         (gimple_mod_pow2_value_transform): Update.
7658         (gimple_mod_subtract): Update.
7659         (gimple_mod_subtract_transform): Update.
7660         (gimple_ic): Update.
7661         (gimple_stringop_fixed_value): Update.
7662         (gimple_stringops_transform): Update.
7663         * value-prof.h: Update.
7665 2017-06-29  Carl Love  <cel@us.ibm.com>
7667         * config/rs6000/rs6000-c.c: Add support for built-in functions
7668         vector signed int vec_signed (vector float);
7669         vector signed long long vec_signed (vector double);
7670         vector signed int vec_signed2 (vector double, vector double);
7671         vector signed int vec_signede (vector double);
7672         vector signed int vec_signedo (vector double);
7673         * config/rs6000/rs6000.c (rs6000_generate_vsigned2_code): Add
7674         instruction generator.
7675         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
7676         UNSPEC_VSX_VSIGNED2): Add UNSPECS.
7677         (vsx_xvcvspsxws, vsx_xvcvdpuxds_scale, vsx_xvcvspuxws, vsigned2_v2df):
7678         Add define_insn.
7679         (vsignedo_v2df, vsignede_v2df, vunsigned2_v2df, vunsignedo_v2df,
7680         vunsignede_v2df): Add define_expands.
7681         * config/rs6000/rs6000-builtin.def (VEC_SIGNED, VEC_UNSIGNED,
7682         VEC_SIGNED2, VEC_UNSIGNED2, VEC_SIGNEDE, VEC_UNSIGNEDE, VEC_SIGNEDO,
7683         VEC_UNSIGNEDO): Add definitions.
7684         * config/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
7685         UNSPEC_VSX_VSIGNED2): Add UNSPECs.
7686         (vsx_xvcvspsxws, vsx_xvcvspuxws): Add define_insn.
7687         (vsigned2_v2df, vsigendo_v2df, vsignede_v2df,
7688         vunsigned2_v2df, vunsignedo_v2df, vunsignede_v2df): Add define_expands.
7689         * config/rs6000/altivec.h (vec_signed, vec_signed2,
7690         vec_signede and vec_signedo, vec_unsigned, vec_unsigned2,
7691         vec_unsignede, vec_unsignedo): Add builtin defines.
7692         * config/rs6000-protos.h (rs6000_generate_vsigned2_code): Add extern
7693         declaration.
7694         * doc/extend.texi: Update the built-in documentation file for the
7695         new built-in functions.
7697 2017-06-29  Richard Biener  <rguenther@suse.de>
7699         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Do not add
7700         reduction chains to LOOP_VINFO_REDUCTIONS.
7701         * tree-vect-slp.c (vect_analyze_slp): Continue looking for
7702         SLP reductions after processing reduction chains.
7704 2017-06-29  Nathan Sidwell  <nathan@acm.org>
7706         * builtins.c (fold_builtin_FUNCTION): Use
7707         lang_hooks.decl_printable_name.
7709 2017-06-29  Peter Bergner  <bergner@vnet.ibm.com>
7711         PR middle-end/81194
7712         * cfgexpand.c (expand_gimple_stmt_1): Handle switch statements
7713         with only one label.
7714         * stmt.c (expand_case): Assert NCASES is greater than one.
7716 2017-06-29  Richard Biener  <rguenther@suse.de>
7718         * tree-cfg.c (group_case_labels_stmt): Return whether we changed
7719         anything.
7720         (group_case_labels): Likewise.
7721         (find_taken_edge): Push sanity checking on val to workers...
7722         (find_taken_edge_cond_expr): ... here
7723         (find_taken_edge_switch_expr): ... and here, handle cases
7724         with just a default label.
7725         * tree-cfg.h (group_case_labels_stmt): Adjust prototype.
7726         (group_case_labels): Likewise.
7727         * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing): When
7728         group_case_labels does anything cleanup the CFG again.
7730 2017-06-29  Bin Cheng  <bin.cheng@arm.com>
7732         PR tree-optimization/81196
7733         * tree-ssa-loop-niter.c (number_of_iterations_cond): Handle loop
7734         exit condition comparing two IVs.
7736 2017-06-29  Richard Earnshaw  <rearnsha@arm.com>
7738         * config/arm/parsecpu.awk (gen_comm_data): Add initializer for
7739         profile to the dummy entry at the end of the list of architectures.
7740         * config/arm/arm-cpu-cdata.h: Regenerated.
7742 2017-06-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7743             Michael Collison <michael.collison@arm.com>
7745         PR target/70119
7746         * config/aarch64/aarch64.md (*aarch64_<optab>_reg_<mode>3_mask1):
7747         New pattern.
7748         (*aarch64_reg_<mode>3_neg_mask2): New pattern.
7749         (*aarch64_reg_<mode>3_minus_mask): New pattern.
7750         (*aarch64_<optab>_reg_di3_mask2): New pattern.
7751         * config/aarch64/aarch64.c (aarch64_rtx_costs): Account for cost
7752         of shift when the shift amount is masked with constant equal to
7753         the size of the mode.
7754         * config/aarch64/predicates.md (subreg_lowpart_operator): New
7755         predicate.
7757 2017-06-29  Martin Liska  <mliska@suse.cz>
7759         * config/i386/i386.opt: Change range from [1,5] to [0,5].
7761 2017-06-29  Yury Gribov  <tetra2005@gmail.com>
7763         PR bootstrap/80565
7764         * ipa-cp.c (allocate_and_init_ipcp_value): Add initialization
7765         code.
7766         * ipa-inline.h
7767         (edge_growth_cache_entry::edge_growth_cache_entry): New
7768         function.
7769         (reset_edge_growth_cache): Update to use constructor.
7771 2017-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7773         * config/aarch64/aarch64.h (AARCH64_EXPAND_ALIGNMENT): New.
7774         (DATA_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
7775         (LOCAL_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
7777 2017-06-28  Sebastian Peryt  <sebastian.peryt@intel.com>
7779         * config/i386/avx512vlintrin.h (_mm256_permutexvar_epi64)
7780         (_mm256_permutexvar_epi32, _mm256_permutex_epi64): New intrinsics.
7782 2017-06-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7784         * config.gcc (*-linux-musl*): Add t-musl tmake_file.
7785         (*-linux-uclibc*): Add t-uclibc tmake_file.
7786         * config/t-musl: New.
7787         * config/t-uclibc: New.
7789 2017-06-28  Richard Earnshaw  <rearnsha@arm.com>
7791         * config/arm/parsecpu.awk (profile): Parse new keyword in an arch
7792         context.
7793         (gen_comm_data): Emit architectural setting of arch_prof.
7794         * config/arm/arm-cpus.in (armv6-m, armv6s-m, armv7-a, armv7ve): Set the
7795         profile.
7796         (armv7-r, armv7-m, armv7e-m, armv8-a, armv8.1-a, armv8.2-a): Likewise.
7797         (armv8-m.base, armv8-m.main): Likewise.
7798         * arm-protos.h (arm_build_target): Add profile field.
7799         (arch_option): Likewise.
7800         * config/arm/arm.c (arm_configure_build_target): Copy the profile to
7801         the active target.
7802         * config/arm/arm.h (TARGET_ARM_ARCH_PROFILE): Use
7803         arm_active_target.profile.
7805 2017-06-28  Richard Biener  <rguenther@suse.de>
7807         PR middle-end/81227
7808         * fold-const.c (negate_expr_p): Use TYPE_UNSIGNED, not
7809         TYPE_OVERFLOW_WRAPS.
7810         * match.pd (negate_expr_p): Likewise.
7811         * tree-ssa-reassoc.c (optimize_range_tests_diff): Use
7812         fold_build2, not fold_binary.
7814 2017-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
7816         * config/aarch64/aarch64 (aarch64_expand_mov_immediate):
7817         Convert memory address to Pmode.
7818         (aarch64_print_operand): Assert MEM operands are always Pmode.
7820 2017-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
7822         PR target/79665
7823         * config/arm/aarch-common.c (arm_no_early_alu_shift_dep):
7824         Remove redundant if.
7825         (aarch_forward_to_shift_is_not_shifted_reg): Remove.
7826         * config/arm/aarch-common-protos.h
7827         (aarch_forward_to_shift_is_not_shifted_re): Remove.
7828         * config/arm/cortex-a53.md: Use arm_no_early_alu_shift_dep in bypass.
7830 2017-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
7832         PR ipa/81238
7833         * multiple_target.c (create_dispatcher_calls): Set the default
7834         clone to be static, not public.
7836 2017-06-28  Richard Biener  <rguenther@suse.de>
7838         * tree-vect-loop.c (vectorizable_reduction): Move special
7839         cond reduction IV var creation ...
7840         (vect_create_epilog_for_reduction): ... here.  Remove induction_index
7841         parameter.  Use STMT_VINFO_VECTYPE.
7842         * tree-vect-slp.c (vect_get_constant_vectors): Properly reset
7843         constant_p.
7845 2017-06-28  Martin Liska  <mliska@suse.cz>
7847         PR ipa/81128
7848         * ipa-visibility.c (non_local_p): Handle visibility.
7850 2017-06-28  Martin Liska  <mliska@suse.cz>
7852         PR driver/79659
7853         * common.opt: Add IntegerRange to various options.
7854         * opt-functions.awk (integer_range_info): New function.
7855         * optc-gen.awk: Add integer_range_info to cl_options struct.
7856         * opts-common.c (decode_cmdline_option): Handle
7857         CL_ERR_INT_RANGE_ARG.
7858         (cmdline_handle_error): Likewise.
7859         * opts.c (print_filtered_help): Show valid interval in
7860         when --help is provided.
7861         * opts.h (struct cl_option): Add range_min and range_max fields.
7862         * config/i386/i386.opt: Add IntegerRange for -mbranch-cost.
7864 2017-06-28  Marc Glisse  <marc.glisse@inria.fr>
7866         * match.pd ((X & ~Y) | (~X & Y)): Generalize to + and ^.
7867         (x * C EQ/NE y * C): New transformation.
7869 2017-06-28  Christophe Lyon  <christophe.lyon@linaro.org>
7871         * genmultilib (combination_space): Accept '+' in option names.
7873 2017-06-28  Martin Liska  <mliska@suse.cz>
7875         PR sanitizer/81224
7876         * asan.c (instrument_derefs): Bail out inner references
7877         that are hard register variables.
7879 2017-06-28  Jakub Jelinek  <jakub@redhat.com>
7881         PR target/81175
7882         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use def_builtin
7883         rather than def_builtin_pure for __builtin_ia32_gatherpf*.
7885 2017-06-28  Richard Biener  <rguenther@suse.de>
7887         * tree-vectorizer.h (vect_get_vec_defs): Remove.
7888         (vect_get_slp_defs): Adjust.
7889         * tree-vect-loop.c (get_initial_defs_for_reduction): Split
7890         out from ...
7891         * tree-vect-slp.c (vect_get_constant_vectors): ... here and
7892         simplify.
7893         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7894         get_initial_defs_for_reduction instead of vect_get_vec_defs.
7895         (vectorizable_reduction): Adjust.
7896         * tree-vect-slp.c (vect_get_constant_vectors): Remove reduction
7897         handling.
7898         (vect_get_slp_defs): Likewise.
7899         * tree-vect-stmts.c (vect_get_vec_defs): Make static and adjust.
7900         (vectorizable_bswap): Adjust.
7901         (vectorizable_call): Likewise.
7902         (vectorizable_conversion): Likewise.
7903         (vectorizable_assignment): Likewise.
7904         (vectorizable_shift): Likewise.
7905         (vectorizable_operation): Likewise.
7906         (vectorizable_store): Likewise.
7907         (vectorizable_condition): Likewise.
7908         (vectorizable_comparison): Likewise.
7910 2017-06-28  Michael Collison  <michael.collison@arm.com>
7912         PR target/68535
7913         * config/arm/arm.c (gen_ldm_seq): Remove last unnecessary
7914         set of base_reg
7915         (arm_gen_movmemqi): Removed unused variable 'i'.
7916         Convert 'for' loop into 'while' loop.
7917         (arm_expand_prologue): Remove last unnecessary set of insn.
7918         (thumb_pop): Remove unused variable 'pushed_words'.
7919         (thumb_exit): Remove last unnecessary set of regs_to_pop.
7921 2017-06-28  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7923         * config/s390/predicates.md: Use s390_rel_address_ok_p.
7924         * config/s390/s390-protos.h: Add prototype of
7925         s390_rel_address_ok_p.
7926         * config/s390/s390.c (s390_got_symbol): New function.
7927         (s390_rel_address_ok_p): New function.
7928         (legitimize_pic_address): Use s390_rel_address_ok_p.
7929         (s390_load_got): Use s390_got_symbol.
7930         (s390_option_override): Issue error if
7931         -mno-pic-data-is-text-relative is used without -fpic/-fPIC.
7932         * config/s390/s390.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
7933         New macro.
7934         * config/s390/s390.opt: New option mpic-data-is-text-relative.
7936 2017-06-27  Andrew Pinski  <apinski@cavium.com>
7938         * match.pd (X >/>=/</<= 0 ? 1.0 : -1.0): New patterns.
7939         (X * copysign (1.0, X)): New pattern.
7940         (X * copysign (1.0, -X)): New pattern.
7941         (copysign (-1.0, CST)): New pattern.
7943 2017-06-27  Joseph Myers  <joseph@codesourcery.com>
7945         * genmultilib (combination_space): Remove variable.
7946         Validate reuse rules against regular expression for any sequence
7947         of multilib options in any order.
7949 2017-06-27  Michael Collison  <michael.collison@arm.com>
7951         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Directly
7952         call aarch64_split_simd_combine.
7953         * (aarch64_combine_internal<mode>): Delete pattern.
7954         * config/aarch64/aarch64.c (aarch64_split_simd_combine):
7955         Allow register and subreg operands.
7957 2017-06-27  Jerome Lambourg  <lambourg@adacore.com>
7959         * config/i386/vxworks.h (ASM_SPEC): Remove definition. No target
7960         specific need, just fallback on defaults.
7961         (ASM_OUTPUT_ALIGNED_BSS): Add #undef before #define.
7963 2017-06-27  Jerome Lambourg  <lambourg@adacore.com>
7964             Olivier Hainque  <hainque@adacore.com>
7966         * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Pick distinct
7967         map for 64bits.
7968         (TARGET_OS_CPP_BUILTINS): builtin_define CPU to X86_64 for 64bit
7969         targets. Pick a default if no particular attempt applied.
7970         (STACK_CHECK_PROTECT): Double for 64bit targets, which have
7971         larger contexts.
7973 2017-06-27  Jerome Lambourg  <lambourg@adacore.com>
7975         * config.gcc (i*86-wrs-vxworks7): Handle new acceptable triplet.
7976         (x86_64-wrs-vxworks7): Likewise.
7978 2017-06-27  Marek Polacek  <polacek@redhat.com>
7980         PR sanitizer/81223
7981         * ubsan.c (instrument_null): Check get_base_address's result for null.
7983 2017-06-27  Marc Glisse  <marc.glisse@inria.fr>
7985         * match.pd ((A+-B)+(C-A), (A+B)-(A-C)): New transformations.
7987 2017-06-27  Marc Glisse  <marc.glisse@inria.fr>
7989         * builtin-types.def (BT_FENV_T_PTR, BT_CONST_FENV_T_PTR,
7990         BT_FEXCEPT_T_PTR, BT_CONST_FEXCEPT_T_PTR): New primitive types.
7991         (BT_FN_INT_FENV_T_PTR, BT_FN_INT_CONST_FENV_T_PTR,
7992         BT_FN_INT_FEXCEPT_T_PTR_INT, BT_FN_INT_CONST_FEXCEPT_T_PTR_INT):
7993         New function types.
7994         * builtins.def (BUILT_IN_FECLEAREXCEPT, BUILT_IN_FEGETENV,
7995         BUILT_IN_FEGETEXCEPTFLAG, BUILT_IN_FEGETROUND,
7996         BUILT_IN_FEHOLDEXCEPT, BUILT_IN_FERAISEEXCEPT,
7997         BUILT_IN_FESETENV, BUILT_IN_FESETEXCEPTFLAG,
7998         BUILT_IN_FESETROUND, BUILT_IN_FETESTEXCEPT,
7999         BUILT_IN_FEUPDATEENV): New builtins.
8000         * tree-core.h (TI_FENV_T_PTR_TYPE, TI_CONST_FENV_T_PTR_TYPE,
8001         TI_FEXCEPT_T_PTR_TYPE, TI_CONST_FEXCEPT_T_PTR_TYPE): New entries.
8002         * tree.h (fenv_t_ptr_type_node, const_fenv_t_ptr_type_node,
8003         fexcept_t_ptr_type_node, const_fexcept_t_ptr_type_node): New
8004         macros.
8005         (builtin_structptr_types): Adjust size.
8006         * tree.c (builtin_structptr_types): Add four entries.
8008 2017-06-27  Jerome Lambourg  <lambourg@adacore.com>
8009             Olivier Hainque  <hainque@adacore.com>
8011         * config/vxworks.h (VXWORKS_LIB_SPEC): Incorporate ...
8012         (TLS_SYM): New local macro, forcing reference to __tls__ on
8013         link command lines for VxWorks 7 RTPs, triggering initialization
8014         of tlsLib.
8015         (VXWORKS_HAVE_TLS): New macro. State whether the target VxWorks
8016         OS features TLS support, true for RTPs on VxWorks 7.
8017         * config/vxworks.c (vxworks_override_options): Setup emutls
8018         accordingly.
8020 2017-06-27  Jakub Jelinek  <jakub@redhat.com>
8022         * predict.c (test_prediction_value_range): Use -1U instead of -1
8023         to avoid narrowing conversion warning.
8024         * dumpfile.c (dump_options): Wrap all value into dump_flags_t cast
8025         to avoid narrowing conversion warning.
8026         * opt-functions.awk (var_ref): Return (unsigned short) -1 instead of
8027         -1.
8028         * optc-gen.awk (END): Expect (unsigned short) -1 instead of -1.
8030 2017-06-27  Jerome Lambourg  <lambourg@adacore.com>
8032         * config/vxworks.h (VXWORKS_LIBS_RTP): Alternative definition for
8033         64bit configurations.
8034         (PTR_DIFF_TYPE): Alternative definition for TARGET_LP64.
8035         (SIZE_TYPE): Likewise.
8036         * config/vxworks.c (vxworks_emutls_var_fields): Use
8037         long_unsigned_type_node instead of unsigned_type_node as the offset
8038         field type, which is "pointer" mode in emutls.c.
8040 2017-06-27  Jakub Jelinek  <jakub@redhat.com>
8042         PR sanitizer/81209
8043         * ubsan.c (ubsan_encode_value): Initialize DECL_CONTEXT on var.
8045         PR middle-end/81207
8046         * gimple-fold.c (replace_call_with_call_and_fold): Handle
8047         gimple_vuse copying separately from gimple_vdef copying.
8049 2017-06-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8051         * value-prof.c (free_hist): Remove call to memset and the enclosing if
8052         condition.
8054 2017-06-26  Jerome Lambourg  <lambourg@adacore.com>
8055             Olivier Hainque  <hainque@adacore.com>
8057         * config.gcc (*-*-vxworks*): Add TARGET_VXWORKS7=1 to tm_defines
8058         for all vxworks7 targets.
8059         * config/vxworks.h (TARGET_VXWORKS7): If not defined, define to 0.
8060         (VXWORKS_ADDITIONAL_CPP_SPEC): Alternative definition for VXWORKS7.
8061         (VXWORKS_LIBS_RTP, VXWORKS_LIBS_RTP_DIR): New macros, allowing
8062         variations for VX6/VX7 and 32/64bits later on in ...
8063         (VXWORKS_LIB_SPEC): Leverage new macros.
8064         (VXWORKS_OS_CPP_BUILTINS): Define _VSB_CONFIG_FILE for VXWORKS7,
8065         as well as _ALLOW_KEYWORD_MACROS when "inline" is not a keyword.
8067 2017-06-26  Jerome Lambourg  <lambourg@adacore.com>
8069         * config/vxworks.h (VXWORKS_OS_CPP_BUILTINS): builtin_define
8070         _VX_TOOL_FAMILY and _VX_TOOL to gnu.
8072 2017-06-26  Carl Love  <cel@us.ibm.com>
8074         * config/rs6000/rs6000-c.c: Add support for built-in functions
8075         vector bool char vec_reve (vector bool char);
8076         vector signed char vec_reve (vector signed char);
8077         vector unsigned char vec_reve (vector unsigned char);
8078         vector bool int vec_reve (vector bool int);
8079         vector signed int vec_reve (vector signed int);
8080         vector unsigned int vec_reve (vector unsigned int);
8081         vector bool long long vec_reve (vector bool long long);
8082         vector signed long long vec_reve (vector signed long long);
8083         vector unsigned long long vec_reve (vector unsigned long long);
8084         vector bool short vec_reve (vector bool short);
8085         vector signed short vec_reve (vector signed short);
8086         vector double vec_reve (vector double);
8087         vector float vec_reve (vector float);
8088         * config/rs6000/rs6000-builtin.def (VREVE_V2DI, VREVE_V4SI,
8089         VREVE_V8HI, VREVE_V16QI, VREVE_V2DF, VREVE_V4SF, VREVE): New builtin.
8090         * config/rs6000/altivec.md (UNSPEC_VREVEV): New UNSPEC.
8091         (altivec_vreve): New pattern.
8092         * config/rs6000/altivec.h (vec_reve): New define.
8093         * doc/extend.texi (vec_rev): Update the built-in documentation file
8094         for the new built-in functions.
8096 2016-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8098         PR tree-optimization/71815
8099         * gimple-ssa-strength-reduction.c (uses_consumed_by_stmt): New
8100         function.
8101         (find_basis_for_candidate): Call uses_consumed_by_stmt rather than
8102         has_single_use.
8103         (slsr_process_phi): Likewise.
8104         (replace_uncond_cands_and_profitable_phis): Don't replace a
8105         multiply candidate with a stride of 1 (copy or cast).
8106         (phi_incr_cost): Call uses_consumed_by_stmt rather than
8107         has_single_use.
8108         (lowest_cost_path): Likewise.
8109         (total_savings): Likewise.
8111 2017-06-26  Richard Biener  <rguenther@suse.de>
8113         PR target/81175
8114         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
8115         Use def_builtin_pure for all gather builtins.
8117 2017-06-26  Richard Biener  <rguenther@suse.de>
8119         PR tree-optimization/81203
8120         * tree-tailcall.c (find_tail_calls): Do not move stmts into
8121         non-dominating BBs.
8123 2017-06-26  Marek Polacek  <polacek@redhat.com>
8125         PR c/80116
8126         * doc/invoke.texi: Document -Wmultistatement-macros.
8128 2017-06-26  Christophe Lyon  <christophe.lyon@linaro.org>
8130         * doc/sourcebuild.texi (ARM-specific attributes): Document new
8131         arm_neon_ok_no_float_abi effective target.
8133 2017-06-26  Richard Biener  <rguenther@suse.de>
8135         PR tree-optimization/80928
8136         * cfghooks.c (duplicate_block): Do not copy BB_DUPLICATED flag.
8137         (copy_bbs): Set BB_DUPLICATED flag early.
8138         (execute_on_growing_pred): Do not execute for BB_DUPLICATED
8139         marked blocks.
8140         (execute_on_shrinking_pred): Likewise.
8141         * tree-ssa.c (ssa_redirect_edge): Do not look for PHI args in
8142         BB_DUPLICATED blocks.
8143         * tree-ssa-phionlycoprop.c (eliminate_degenerate_phis_1): Properly
8144         iterate over all PHIs considering removal of *gsi.
8146 2017-06-23  Jim Wilson  <jim.wilson@linaro.org>
8148         * doc/invoke.texi (AArch64 Options, -mtune): Re-add falkor and
8149         qdf24xx.
8151 2017-06-23  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
8153         * config/rs6000/rs6000-string.c: (expand_block_clear,
8154         do_load_for_compare, select_block_compare_mode,
8155         compute_current_alignment, expand_block_compare,
8156         expand_strncmp_align_check, expand_strn_compare,
8157         expand_block_move, rs6000_output_load_multiple)
8158         Move functions related to string/block move/compare
8159         to a separate file.
8160         * config/rs6000/rs6000.c: Move above functions to rs6000-string.c.
8161         * config/rs6000/rs6000-protos.h (rs6000_emit_dot_insn): Add prototype
8162         for this function which is now used in two files.
8163         * config/rs6000/t-rs6000: Add rule to compile rs6000-string.o.
8164         * config.gcc: Add rs6000-string.o to extra_objs for
8165         targets powerpc*-*-* and rs6000*-*-*.
8167 2017-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
8169         PR target/80510
8170         * config/rs6000/rs6000.md (ALTIVEC_DFORM): Do not allow DImode in
8171         32-bit, since indexed is not valid for DImode.
8172         (mov<mode>_hardfloat32): Reorder ISA 2.07 load/stores before ISA
8173         3.0 d-form load/stores to be the same as mov<mode>_hardfloat64.
8174         (define_peephole2 for Altivec d-form load): Add 32-bit support.
8175         (define_peephole2 for Altivec d-form store): Likewise.
8177         PR ipa/81185
8178         * multiple_target.c (create_dispatcher_calls): Only create the
8179         dispatcher call if the function is the default clone of a
8180         versioned function.
8182 2017-06-23  Segher Boessenkool  <segher@kernel.crashing.org>
8184         PR middle-end/80902
8185         * builtins.c (expand_builtin_atomic_fetch_op): If emitting code after
8186         a call, force the call to not be a tail call.
8188 2017-06-23  Jeff Law  <law@redhat.com>
8190         * doc/contrib.texi: Add entry for Steven Pemberton's work on
8191         enquire.
8193 2017-06-23  Will Schmidt  <will_schmidt@vnet.ibm.com>
8195         * config/rs6000/rs6000.c: Add include of ssa-propagate.h for
8196         update_call_from_tree().  (rs6000_gimple_fold_builtin): Add
8197         handling for early expansion of vector shifts (sl,sr,sra,rl).
8198         (builtin_function_type): Add vector shift right instructions
8199         to the unsigned argument list.
8201 2017-06-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8203         rtl-optimizatoin/79286
8204         * ira.c (update_equiv_regs): Revert to using may_trap_or_fault_p again.
8205         * rtlanal.c (rtx_addr_can_trap_p_1): SYMBOL_REF_FUNCTION_P can never
8206         trap.  PIC register plus a const unspec without offset can never trap.
8208 2017-06-23  Marc Glisse  <marc.glisse@inria.fr>
8210         * tree.h (builtin_structptr_type): New type.
8211         (builtin_structptr_types): Declare new array.
8212         * tree.c (builtin_structptr_types): New array.
8213         (free_lang_data, build_common_tree_nodes): Use it.
8215 2017-06-23  Jonathan Wakely  <jwakely@redhat.com>
8217         PR c++/81187
8218         * doc/invoke.texi (-Wnoexcept-type): Fix name of option, from
8219         -Wnoexcept.
8221 2017-06-22  Matt Turner  <mattst88@gmail.com>
8223         * config/i386/driver-i386.c (host_detect_local_cpu): Add Kaby
8224         Lake models to skylake case.  Assume skylake for unknown
8225         models with clflushopt.
8227 2017-06-22  Jeff Law  <law@redhat.com>
8229         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Handle
8230         frame sizes that do not satisfy aarch64_uimm12_shift.
8232 2017-06-22  Jan Hubicka <hubicka@ucw.cz>
8234         * profile-count.h (apply_probability,
8235         apply_scale, probability_in): Fix checks for zero.
8237 2017-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8239         * incpath.c (add_sysroot_to_chain): Allow for $SYSROOT prefix.
8240         * doc/cppdiropts.texi (-I @var{dir}): Document it.
8242 2016-06-22  Richard Biener  <rguenther@suse.de>
8244         * tree-vect-loop.c (vect_model_reduction_cost): Handle
8245         COND_REDUCTION and INTEGER_INDUC_COND_REDUCTION without
8246         REDUC_MAX_EXPR support.
8247         (vectorizable_reduction): Likewise.
8248         (vect_create_epilog_for_reduction): Likewise.
8250 2017-06-22  James Greenhalgh  <james.greenhalgh@arm.com>
8252         * match.pd (A / (1 << B) -> A >> B): New.
8253         * generic-match-head.c: Include optabs-tree.h.
8254         * gimple-match-head.c: Likewise.
8255         * optabs-tree.h (target_supports_op_p): New.
8256         * optabs-tree.c (target_supports_op_p): New.
8258 2017-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8260         * configure.ac (gcc_cv_ld_static_dynamic): Also check stderr for
8261         $gcc_cv_ld --help output.
8262         (gcc_cv_ld_demangle): Likewise.
8263         (gcc_cv_ld_eh_frame_hdr): Likewise.
8264         (gcc_cv_ld_pie): Likewise.
8265         (gcc_cv_ld_as_needed): Likewise.  Prefer native forms unless $gnu_ld.
8266         (gcc_cv_ld_buildid): Likewise.
8267         (gcc_cv_ld_sysroot): Likewise.
8268         (ld_bndplt_support): Likewise.
8269         (ld_pushpopstate_support): Likewise.
8270         * configure: Regenerate.
8271         * config/sol2.h [!USE_GLD] (SYSROOT_SPEC): Define.
8273 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
8275         PR target/81151
8276         * config/i386/sse.md (round<mode>2): Renumber match_dup and
8277         operands indexes to avoid gap between operands and match_dups.
8279 2017-06-21  Andrew Pinski  <apinski@cavium.com>
8281         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
8282         Increment Arith_shift and Arith_shift_reg by 1.
8283         * config/aarch64/aarch64-tuning-flags.def (cheap_shift_extend):
8284         New tuning flag.
8285         * config/aarch64/aarch64.c (thunderx_tunings): Enable
8286         AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
8287         (aarch64_strip_extend): Add new argument and test for it.
8288         (aarch64_cheap_mult_shift_p): New function.
8289         (aarch64_rtx_mult_cost): Call aarch64_cheap_mult_shift_p and don't
8290         add a cost if it is true.
8291         Update calls to aarch64_strip_extend.
8292         (aarch64_rtx_costs): Update calls to aarch64_strip_extend.
8294 2017-06-21  Andrew Pinski  <apinski@cavium.com>
8296         * config/aarch64/aarch64-cores.def (thunderxt88p1): Use thunderxt88
8297         tunings.
8298         (thunderxt88): Likewise.
8299         * config/aarch64/aarch64.c (thunderxt88_prefetch_tune): New variable.
8300         (thunderx_prefetch_tune): New variable.
8301         (thunderx2t99_prefetch_tune): Update for the correct values.
8302         (thunderxt88_tunings): New variable.
8303         (thunderx_tunings): Use thunderx_prefetch_tune instead of
8304         generic_prefetch_tune.
8305         (thunderx2t99_tunings): Use AUTOPREFETCHER_WEAK.
8307 2017-06-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8309         * config/aarch64/atomics.md (aarch64_compare_and_swap<mode>_lse,
8310         SHORT): Relax operand 3 to aarch64_reg_or_zero and constraint to Z.
8311         (aarch64_compare_and_swap<mode>_lse, GPI): Likewise.
8312         (aarch64_atomic_cas<mode>, SHORT): Likewise for operand 2.
8313         (aarch64_atomic_cas<mode>, GPI): Likewise.
8315 2017-06-21  Martin Liska  <mliska@suse.cz>
8317         * gimplify.c (gimplify_label_expr): Insert GIMPLE_PREDICT
8318         statements on cold and hot labels.
8319         * predict.c (tree_estimate_probability_bb): Remove the
8320         prediction from this place.
8322 2017-06-21  Martin Liska  <mliska@suse.cz>
8324         PR tree-optimization/79489
8325         * gimplify.c (maybe_add_early_return_predict_stmt): New
8326         function.
8327         (gimplify_return_expr): Call the function.
8328         * predict.c (tree_estimate_probability_bb): Remove handling
8329         of early return.
8330         * predict.def: Update comment about early return predictor.
8331         * gimple-predict.h (is_gimple_predict): New function.
8332         * predict.def: Change default value of early return to 66.
8333         * tree-tailcall.c (find_tail_calls): Skip GIMPLE_PREDICT
8334         statements.
8335         * passes.def: Put pass_strip_predict_hints to the beginning of
8336         IPA passes.
8338 2017-06-21  Pierre-Marie de Rodat  <derodat@adacore.com>
8340         * dwarf2out.c (gen_decl_die): Remove the guard to skip file-scope
8341         FUNCTION_DECL declarations.
8342         (dwarf2out_early_global_decl): Remove the guard to skip FUNCTION_DECL
8343         declarations.
8344         (dwaf2out_decl): Likewise.
8345         * godump.c (go_early_global_decl): Skip call to the real debug hook
8346         for FUNCTION_DECL declarations.
8347         * passes.c (rest_of_decl_compilation): Skip call to the
8348         early_global_decl debug hook for FUNCTION_DECL declarations, unless
8349         -fdump-go-spec is passed.
8351 2017-06-21  Marc Glisse  <marc.glisse@inria.fr>
8353         * config/i386/i386.c (struct builtin_isa): New field pure_p.
8354         Reorder for compactness.
8355         (def_builtin, def_builtin2, ix86_add_new_builtins): Handle pure_p.
8356         (def_builtin_pure, def_builtin_pure2): New functions.
8357         (ix86_init_mmx_sse_builtins) [__builtin_ia32_stmxcsr]: Mark as pure.
8359 2017-06-21  Marc Glisse  <marc.glisse@inria.fr>
8361         * match.pd (nop_convert): New predicate.
8362         ((A +- CST1) +- CST2): Allow some NOP conversions.
8364 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
8366         PR c++/81130
8367         * gimplify.c (omp_add_variable): Don't force GOVD_SEEN for types
8368         with ctors/dtors if GOVD_SHARED is set.
8370 2017-06-21  Wilco Dijkstra  <wdijkstr@arm.com>
8372         * config/aarch64/aarch64.md (movti_aarch64):
8373         Emit mov rather than orr.
8374         (movtf_aarch64): Likewise.
8375         * config/aarch64/aarch64-simd.md (aarch64_simd_mov):
8376         Emit mov rather than orr.
8378 2017-06-21  Wilco Dijkstra  <wdijkstr@arm.com>
8380         * config/aarch64/aarch64-simd.md (aarch64_simd_dup):
8381         Swap alternatives, make integer dup more expensive.
8383 2017-06-21  Wilco Dijkstra  <wdijkstr@arm.com>
8385         * config/aarch64/aarch64.c (aarch64_legitimate_constant_p):
8386         Return true for non-tls symbols.
8388 2017-06-21  James Greenhalgh  <james.greenhalgh@arm.com>
8390         * config/aarch64/aarch64-cores.def (cortex-a55): New.
8391         (cortex-a75): Likewise.
8392         (cortex-a75.cortex-a55): Likewise.
8393         * config/aarch64/aarch64-tune.md: Regenerate.
8394         * doc/invoke.texi (-mtune): Document new values for -mtune.
8396 2017-06-21  Tom de Vries  <tom@codesourcery.com>
8398         * doc/sourcebuild.texi (Add Options, Features for dg-add-options): Add
8399         stack_size feature.
8400         (Effective-Target Keywords, Other attributes): Suggest using
8401         dg-add-options stack_size feature to get stack limit in stack_size
8402         effective target documentation.
8404 2017-06-21  Julian Brown  <julian@codesourcery.com>
8405             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
8407         * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi)
8408         (aarch64_crypto_pmullv2di): Change type attribute to crypto_pmull.
8409         * config/aarch64/thunderx2t99.md (thunderx2t99_pmull): New
8410         reservation.
8411         * config/arm/cortex-a53.md (cortex_a53_advsimd_type): Add crypto_pmull to
8412         attribute type list for neon_multiply.
8413         * config/arm/cortex-a57.md (cortex_a57_neon_type): Add crypto_pmull to
8414         attribute type list for neon_multiply.
8415         * config/arm/crypto.md (crypto_vmullp64): Change type to crypto_pmull.
8416         * config/arm/exynos-m1.md (exynos_m1_neon_type): Add crypto_pmull to
8417         attribute type list for neon_multiply.
8418         * config/arm/types.md (crypto_pmull): Add.
8419         * config/arm/xgene1.md (xgene1_neon_pmull): Add crypto_pmull to
8420         attribute type list.
8422 2017-06-20  Andreas Tobler  <andreast@gcc.gnu.org>
8424         * config.gcc (armv6*-*-freebsd*): Change the target_cpu_cname to
8425         arm1176jzf-s.
8427 2017-06-20  Jakub Jelinek  <jakub@redhat.com>
8429         * ira-costs.c (find_costs_and_classes): Initialize cost_classes later
8430         to make sure not to dereference a NULL cost_classes_ptr pointer.
8432 2017-06-20  Carl Love  <cel@us.ibm.com>
8434         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8435         ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
8436         ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
8437         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
8438         builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
8439         * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
8440         VMULOSW): New enum "unspec" values.
8441         (vec_widen_umult_even_v4si, vec_widen_smult_even_v4si,
8442         vec_widen_umult_odd_v4si, vec_widen_smult_odd_v4si,
8443         altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
8444         altivec_vmulosw): New patterns.
8445         * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
8446         VMULOSW): Add definitions.
8448 2017-06-20  Julia Koval  <julia.koval@intel.com>
8450         * config/i386/i386.c: Fix rounding expand for new pattern.
8451         * config/i386/subst.md: Fix pattern (parallel -> unspec).
8453 2017-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
8455         * config/aarch64/aarch64-option-extensions.def (rcpc): New.
8456         * config/aarch64/aarch64.h (AARCH64_FL_RCPC): New.
8458 2017-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
8460         * config/aarch64/aarch64-option-extensions.def (fp16): Fix expected
8461         feature string.
8463 2017-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
8465         * config/aarch64/aarch64-cores.def: Rearrange to sort by
8466         architecture, then by implementer ID.
8467         * config/aarch64/aarch64-tune.md: Regenerate.
8469 2017-06-20  Richard Biener  <rguenther@suse.de>
8471         PR middle-end/81097
8472         * fold-const.c (split_tree): Fold to type before negating.
8474 2017-06-20  David Malcolm  <dmalcolm@redhat.com>
8476         * diagnostic-show-locus.c
8477         (selftest::test_fixit_deletion_affecting_newline): New function.
8478         (selftest::diagnostic_show_locus_c_tests): Call it.
8480 2017-06-20  Andreas Schwab  <schwab@suse.de>
8482         PR target/80970
8483         * config/m68k/m68k.md (bsetdreg, bchgdreg, bclrdreg): Use "=d"
8484         instead of "+d".
8486 2017-06-20  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
8488         * config/arm/arm-c.c (arm_cpu_builtins): New block to define
8489         __ARM_FEATURE_COPROC according to support.
8491 2017-06-20  Jakub Jelinek  <jakub@redhat.com>
8493         * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
8494         Rewritten to avoid overflow for > 32-bit pointers.
8496         PR sanitizer/81125
8497         * ubsan.h (ubsan_encode_value): Workaround buggy clang++ parser
8498         by removing enum keyword.
8499         (ubsan_type_descriptor): Likewise.  Formatting fix.
8501         PR target/81121
8502         * config/i386/i386.md (TARGET_USE_VECTOR_CONVERTS float si->{sf,df}
8503         splitter): Require TARGET_SSE2 in the condition.
8505 2017-06-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
8507         PR target/79799
8508         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Add support
8509         for doing vector set of SFmode on ISA 3.0.
8510         * config/rs6000/vsx.md (vsx_set_v4sf_p9): Likewise.
8511         (vsx_set_v4sf_p9_zero): Special case setting 0.0f to a V4SF
8512         element.
8513         (vsx_insert_extract_v4sf_p9): Add an optimization for inserting a
8514         SFmode value into a V4SF variable that was extracted from another
8515         V4SF variable without converting the element to double precision
8516         and back to single precision vector format.
8517         (vsx_insert_extract_v4sf_p9_2): Likewise.
8519 2017-06-19  Jakub Jelinek  <jakub@redhat.com>
8521         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Multiply
8522         in UWHI to avoid undefined overflow.
8524         PR sanitizer/81125
8525         * ubsan.h (enum ubsan_encode_value_phase): New.
8526         (ubsan_encode_value): Change second argument to
8527         enum ubsan_encode_value_phase with default value of
8528         UBSAN_ENCODE_VALUE_GENERIC.
8529         * ubsan.c (ubsan_encode_value): Change second argument to
8530         enum ubsan_encode_value_phase PHASE from bool IN_EXPAND_P,
8531         adjust uses, for UBSAN_ENCODE_VALUE_GENERIC use just
8532         create_tmp_var_raw instead of create_tmp_var and use a
8533         TARGET_EXPR.
8534         (ubsan_expand_bounds_ifn, ubsan_build_overflow_builtin,
8535         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
8536         ubsan_encode_value callers.
8538         PR sanitizer/81111
8539         * ubsan.c (ubsan_encode_value): If current_function_decl is NULL,
8540         use create_tmp_var_raw instead of create_tmp_var, mark it addressable
8541         just by setting TREE_ADDRESSABLE on the result and use a TARGET_EXPR.
8543 2017-06-19  Richard Biener  <rguenther@suse.de>
8545         PR middle-end/81118
8546         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop): Clear niter
8547         estimates if we changed anything.
8549 2017-06-19  Richard Biener  <rguenther@suse.de>
8551         PR tree-optimization/80887
8552         * tree-ssa-sccvn.c (mprts_hook_cnt): New global.
8553         (vn_lookup_simplify_result): Allow only mprts_hook_cnt succesful
8554         simplified lookups, then reset mprts_hook.
8555         (vn_nary_build_or_lookup_1): Set mprts_hook_cnt to 9 before
8556         simplifying.
8557         (try_to_simplify): Likewise.
8559 2017-06-19  Martin Liska  <mliska@suse.cz>
8561         PR sanitizer/80879
8562         * gimplify.c (gimplify_switch_expr):
8563         Initialize live_switch_vars for SWITCH_BODY == STATEMENT_LIST.
8565 2017-06-19  Martin Liska  <mliska@suse.cz>
8567         * doc/install.texi: Document that PGO runs in 4 stages.
8569 2017-06-19  Martin Liska  <mliska@suse.cz>
8571         PR ipa/80732
8572         * attribs.c (make_dispatcher_decl): Do not append '.ifunc'
8573         to dispatcher function name.
8574         * multiple_target.c (replace_function_decl): New function.
8575         (create_dispatcher_calls): Redirect both edges and references.
8577 2017-06-19  Jan Hubicka <hubicka@ucw.cz>
8579         * profile-count.c (profile_count::dump): Dump quality.
8580         (profile_count::differs_from_p): Update for unsigned val.
8581         * profile-count.h (profile_count_quality): New enum.
8582         (profile_count): Turn m_val to 62bit unsigned, add quality tracking.
8584 2017-06-19  Richard Biener  <rguenther@suse.de>
8586         * tree-ssa-loop-niter.h (estimate_numbers_of_iterations): Take
8587         struct function as arg.
8588         (estimate_numbers_of_iterations): Export overload with loop arg.
8589         (free_numbers_of_iterations_estimates_loop): Use an overload of
8590         free_numbers_of_iterations_estimates instead.
8591         * tree-cfg.c (remove_bb): Adjust.
8592         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Likewise.
8593         * tree-parloops.c (gen_parallel_loop): Likewise.
8594         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
8595         Likewise.
8596         (tree_unroll_loops_completely): Likewise.
8597         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
8598         Use an overload instead and export.
8599         (estimated_loop_iterations): Adjust.
8600         (max_loop_iterations): Likewise.
8601         (likely_max_loop_iterations): Likewise.
8602         (estimate_numbers_of_iterations): Take struct function as arg
8603         and adjust.
8604         (loop_exits_before_overflow): Adjust.
8605         (free_numbers_of_iterations_estimates_loop): Use an overload.
8606         * tree-vect-loop.c (vect_analyze_loop_form): Adjust.
8607         * tree-vectorizer.c (vect_free_loop_info_assumptions): Likewise.
8609 2017-06-19  Richard Biener  <rguenther@suse.de>
8611         PR ipa/81112
8612         * ipa-prop.c (find_constructor_constant_at_offset): Handle
8613         RANGE_EXPR conservatively.
8615 2017-06-16  Carl Love  <cel@us.ibm.com>
8617         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8618         definitions for vec_float, vec_float2, vec_floato,
8619         vec_floate built-ins.
8620         * config/rs6000/vsx.md (define_c_enum "unspec"): Add RTL code
8621         for instructions vsx_xvcvsxws vsx_xvcvuxwsp, float2, floato and
8622         floate.
8623         * config/rs6000/rs6000-builtin.def (FLOAT2_V2DI, FLOATE_V2DF,
8624         FLOATE_2DI, FLOATO_V2DF, FLOATEE_V2DI, XVCVSXWSP_V4SF,
8625         UNS_FLOATO_V2DI, UNS_FLOATE_V2DI): Add definitions.
8626         * config/altivec.md (define_insn "p8_vmrgew_<mode>",
8627         define_mode_attr VF_sxddp): Add V4SF type to p8_vmrgew.
8628         * config/rs6000/altivec.h (vec_float, vec_float2, vec_floate,
8629         vec_floato): Add builtin defines.
8630         * doc/extend.texi (vec_float, vec_float2, vec_floate, vec_floato):
8631         Update the built-in documentation file for the new built-in
8632         functions.
8634 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8636         * config/arm/arm.opt (marm): Mark as the negative of of -mthumb.
8637         (mthumb): Mark as the negative of -marm.
8639 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8641         * doc/invoke.texi (ARM Options, -mcpu): Document supported
8642         extension options.
8643         (ARM Options, -mtune): Document that this accepts the same
8644         extension options as -mcpu.
8645         (ARM Options, -mfpu): Document addition of -mfpu=auto.
8647 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8649         * doc/invoke.texi (ARM Options, -march=): Document new syntax and
8650         permitted extensions.
8652 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8654         * config/arm/arm-cpus.in (armv7): Add extension +nofp.
8655         (armv7-r): Add aliases vfpv3xd and vfpv3-d16.
8656         (armv8-m.main): Add option +nodsp.
8657         * config/arm/arm-cpu-cdata.h: Regenerated.
8659 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8661         * config/arm/t-fuchsia: New file.
8662         * config.gcc (arm*-*-fuchsia*): Use it.
8664 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8666         * config/arm/t-symbian: Rewrite for new option infrastructure.
8668 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8670         * config/arm/t-phoenix (MULTILIB_REUSE): Clear variable.
8671         (MULTILIB_REQUIRED): Likewise.
8673 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8675         * config/arm/t-linux-eabi (MULTILIB_EXCEPTIONS): Set to empty.
8676         (MULTILIB_RESUE): Likewise.
8677         (MULTILIB_MATCHES): Likewise.
8678         (MULTLIB_REQUIRED): Likewise.
8680 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8682         * config/arm/t-rtems: Rewrite for new option framework.
8684 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8686         * config/arm/t-aprofile (v7_a_nosimd_variants, v7_a_simd_variants)
8687         (v7ve_nosimd_variatns, v7ve_vfpv3_simd_variants)
8688         (v7ve_vfpv4_simd_variants, v8_a_nosimd_variants, v8_a_simd_variants)
8689         (v8_1_a_simd_variants, v8_2_a_simd_variants): Move to ...
8690         * config/arm/t-multilib: ... here.
8691         (MULTILIB_OPTIONS): Add armv7 and armv7+fp architectures.
8692         (MULTILIB_MATCHES): Use armv7 libraries for armv7-r.  Also use for
8693         armv7-a and armv8*-a when A-profile libraries have not been built.
8694         * config/arm/t-rmprofile: Rewrite.
8696 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8698         * genmultilib (multilib_reuse): Allow an explicit period to be escaped
8699         with a backslash.  Remove the backslash after substituting unescaped
8700         periods.
8701         * doc/fragments.texi (MULTILIB_REUSE): Document it.
8703 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8705         * config.gcc: (arm*-*-*): When building a-profile libraries, force
8706         the driver to pass through the default setting of -mfloat-abi.
8707         * common/config/arm/arm-common.c (arm_target_thumb_only): Return -marm
8708         rather than NULL.
8709         * config/arm/t-multilib (MULTILIB_REUSE): Initialize to empty.
8710         (all_feat_combs): New rule.
8711         (MULTILIB_OPTIONS): Use explicit ARM and Thumb directories.  Rework
8712         default libraries.
8713         * config/arm/t-aprofile: Rewrite.
8715 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8717         * config/arm/arm.h (FPUTYPE_AUTO): Define.
8718         * config/arm/arm.c (arm_option_override): Use FPUTYPE_AUTO if the
8719         fpu is not specified by the user/command-line.
8720         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Delete.
8721         * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Delete.
8722         * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Delete.
8723         * config/arm/vxworks.h (FPUTYPE_DEFAULT): Delete.
8724         * common/config/arm/arm-common.c (arm_canon_arch_option): Use
8725         FPUTYPE_AUTO insted of FPUTYPE_DEFAULT.
8727 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8729         * config/arm/elf.h (MULTILIB_DEFAULTS): Delete.
8730         * config/arm/t-arm-elf: Rewritten.
8732 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8734         * config/arm/arm.h (TARGET_HARD_FLOAT): Also check that we
8735         have some floating-point instructions.
8736         (TARGET_SOFT_FLOAT): Define as inverse of TARGET_HARD_FLOAT.
8737         (TARGET_MAYBE_HARD_FLOAT): New macro.
8738         * config/arm/arm-builtins.c (arm_init_builtins): Use
8739         TARGET_MAYBE_HARD_FLOAT.
8740         * config/arm/arm.c (arm_option_override): Use TARGET_HARD_FLOAT_ABI.
8742 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8744         * common/config/arm/arm-common.c: Define INCLUDE_LIST.
8745         (configargs.h): Include it.
8746         (arm_print_hint_for_fpu_option): New function.
8747         (arm_parse_fpu_option): New function.
8748         (candidate_extension): New class.
8749         (arm_canon_for_multilib): New function.
8750         * config/arm/arm.h (CANON_ARCH_SPEC_FUNCTION): New macro.
8751         (EXTRA_SPEC_FUNCTIONS): Add CANON_ARCH_SPEC_FUNCTION.
8752         (ARCH_CANONICAL_SPECS): New macro.
8753         (DRIVER_SELF_SPECS): Add ARCH_CANONICAL_SPECS.
8755 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8757         * config.gcc (arm*-*-*): Ensure both target_cpu_cname and with_cpu
8758         are set after handling multilib fragments.  Set target_cpu_default2
8759         from with_cpu.
8761 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8763         * config.gcc (arm*-*-fucshia*): Set target_cpu_cname to the real
8764         cpu name.
8765         (arm*-*-*): Set target_cpu_default2 to a quoted string.
8766         * config/arm/parsecpu.awk (check_cpu): Validate any extension
8767         options.
8768         (check_arch): Likewise.
8769         * config/arm/arm.c (arm_configure_build_target): Handle
8770         TARGET_CPU_DEFAULT being a string constant.  Scan any feature
8771         options in the default.
8773 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8775         * config/arm/arm-protos.h (cpu_arch_extension): Add field to record
8776         when an option is an alias of another.
8777         * config/arm/parsecpu.awk (optalias): New parser token.
8778         (gen_comm_data): Mark non-alias options as such.  Emit entries
8779         for extension aliases.
8780         * config/arm/arm-cpus.in (armv5e): Make vfpv2 an alias.
8781         (armv5te, armv5tej, armv6, armv6j, armv6k, armv6z): Likewise.
8782         (armv6kz, armv6zk, armv6t2): Likewise.
8783         (armv7): Make vfpv3-d16 an alias.
8784         (armv7-a): Make vfpv3-d16, neon and neon-vfpv3 aliases.  Sort in
8785         canonical order.
8786         (armv7ve): Make vfpv4-d16, neon-vfpv3 and neon-vfpv4 aliases.
8787         Sort in canonical order.
8788         (armv8-a): Sort in canonical order.
8789         (armv8.1-a, armv8.2-a):  Likewise.
8790         (generic-armv7-a): Make neon and neon-vfpv3 aliases.  Sort in
8791         canonical order.
8792         (cortex-a9): Sort in canonical order.
8793         * config/arm/arm.c (selftests.h): Include it.
8794         (arm_test_cpu_arch_data): New function.
8795         (arm_run_self_tests): New function.
8796         (TARGET_RUN_TARGET_SELFTESTS): Redefine.
8797         (targetm): Move declaration to the end of the file.
8798         * arm-cpu-cdata.h: Regenerated.
8800 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8802         * config/arm/arm.h (TARGET_MODE_SPECS): Add additional parameter to
8803         call to target_mode_check describing the type of option passed.
8804         * common/config/arm/arm-common.c (arm_arch_core_flag): Delete.
8805         (arm_target_thumb_only): Use arm_parse_arch_option_name or
8806         arm_parse_cpu_option_name to match parameters against list of
8807         available targets.
8808         * config/arm/parsecpu.awk (gen_comm_data): Don't generate
8809         arm_arch_core_flags data structure.
8810         * config/arm/arm-cpu_cdata.h: Regenerated.
8812 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8814         * common/config/arm/arm-common.c (arm_initialize_isa): Moved here from
8815         config/arm/arm.c.
8816         (arm_print_hint_for_cpu_option): Likewise.
8817         (arm_print_hint_for_arch_option): Likewise.
8818         (arm_parse_cpu_option_name): Likewise.
8819         (arm_parse_arch_option_name): Likewise.
8820         * config/arm/arm.c (arm_identify_fpu_from_isa): Use the computed number
8821         of entries in the all_fpus list.
8822         * config/arm/arm-protos.h (all_architectures, all_cores): Declare.
8823         (arm_parse_cpu_option_name): Declare.
8824         (arm_parse_arch_option_name): Declare.
8825         (arm_parse_option_features): Declare.
8826         (arm_intialize_isa): Declare.
8827         * config/arm/parsecpu.awk (gen_data): Move CPU and architecture
8828         data tables to ...
8829         (gen_comm_data): ... here.  Make definitions non-static.
8830         * config/arm/arm-cpu-data.h: Regenerated.
8831         * config/arm/arm-cpu-cdata.h: Regenerated.
8833 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8835         * config/arm/arm-protos.h (arm_build_target): Remove arch_core.
8836         (cpu_arch_extension): New structure.
8837         (cpu_arch_option, arch_option, cpu_option): New structures.
8838         * config/arm/parsecpu.awk (gen_headers): Build an enumeration of
8839         architecture types.
8840         (gen_data): Generate new format data tables.
8841         * config/arm/arm.c (cpu_tune): New structure.
8842         (cpu_option, processors): Delete.
8843         (arm_print_hint_for_core_or_arch): Delete.  Replace with ...
8844         (arm_print_hint_for_cpu_option): ... this and ...
8845         (arm_print_hint_for_arch_option): ... this.
8846         (arm_parse_arch_cpu_name): Delete.  Replace with ...
8847         (arm_parse_cpu_option_name): ... this and ...
8848         (arm_parse_arch_option_name): ... this.
8849         (arm_unrecognized_feature): Change type of target parameter to
8850         cpu_arch_option.
8851         (arm_parse_arch_cpu_features): Delete.  Replace with ...
8852         (arm_parse_option_features): ... this.
8853         (arm_configure_build_target): Rework to use new configuration data
8854         tables.
8855         (arm_print_tune_info): Rework for new configuration data tables.
8856         * config/arm/arm-cpu-data.h: Regenerated.
8857         * config/arm/arm-cpu.h: Regenerated.
8859 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8861         * Makefile.in (OBJS): Move sbitmap.o from here ...
8862         (OBJS-libcommon): ... to here.
8864 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8866         * config/arm/arm-isa.h (ISA_ALL_FPU_INTERNAL): Renamed from ISA_ALL_FPU.
8867         (ISA_ALL_CRYPTO): New macro.
8868         (ISA_ALL_SIMD): New macro
8869         (ISA_ALL_FP): New macro.
8870         * config/arm/arm.c (fpu_bitlist): Update initializer.
8871         * config/arm/arm-cpus.in: Use new ISA_ALL macros to disable crypto,
8872         simd or fp.
8873         (arm9e): Add fpu.  Add option for nofp
8874         (arm946e-s, arm966e-s, arm968e-s, arm10e, arm1020e, arm1022e): Likewise.
8875         (arm926ej-s, arm1026ej-s): Likewise.
8876         (generic-armv7-a): Add fpu.  Add options for simd, vfpv3, vfpv3-d16,
8877         vfpv3-fp16, vfpv3-d16-fp16, vfpv4, vfpv4-d16, neon, neon-vfp3,
8878         neon-fp16, neon-vfpv4, nofp and nosimd.
8879         (cortex-a5, cortex-a7): Add fpu.  Add options for nosimd and nofp.
8880         (cortex-a8): Add fpu.  Add option for nofp.
8881         (cortex-a9): Add fpu.  Add options for nosimd and nofp.
8882         (cortex-a12, cortex-a15, cortex-a17): Add fpu.  Add option for nofp.
8883         (cortex-r4f): Add fpu.
8884         (cortex-r5): Add fpu.  Add options for nofp.dp and nofp.
8885         (cortex-r7): Use idiv option from architecture.  Add fpu.  Add option
8886         for nofp.
8887         (cortex-r8): Likewise.
8888         (cortex-m4): Add fpu.  Add option for nofp.
8889         (cortex-a15.cortex-a7): Add fpu.  Add option for nofp.
8890         (cortex-a17.cortex-a7): Likewise.
8891         (cortex-a32): Add fpu.  Add options for crypto and nofp.
8892         (cortex-a35, cortex-a53): Likewise.
8893         (cortex-a57): Add fpu.  Add option for crypto.
8894         (cortex-a72, cortex-a73): Likewise.
8895         (exynos-m1): Likewise.
8896         (cortex-a57.cortex-a53, cortex-a72.cortex-a53): Likewise.
8897         (cortex-a73.cortex-a35, cortex-a73.cortex-a53): Likewise.
8898         (cortex-m33): Add fpu.  Add option for nofp.
8899         * config/arm/arm-cpu-cdata.h: Regenerated
8900         * config/arm/arm-cpu-data.h: Regenerated.
8902 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8904         * arm-cpus.in (armv5e): Add options fp, vfpv2 and nofp.
8905         (armv5te, armv5tej): Likewise.
8906         (armv6, armv6j, armv6k, armv6z, armv6kz, armv6zk, armv6t2): Likewise.
8907         (armv7): Add options fp and vfpv3-d16.
8908         (armv7-a): Add options fp, simd, vfpv3, vfpv3-d16, vfpv3-d16-fp16,
8909         vfpv3-fp16, vfpv4, vfpv4-d16, neon, neon-vfpv3, neon-fp16, neon-vfpv4,
8910         nofp and nosimd.
8911         (armv7ve): Likewise.
8912         (armv7-r): Add options fp, fp.sp, idiv, nofp and noidiv.
8913         (armv7e-m): Add options fp, fpv5, fp.dp and nofp.
8914         (armv8-a): Add nocrypto option.
8915         (armv8.1-a, armv8.2-a): Likewise.
8916         (armv8-m.main): add options fp, fp.dp and nofp.
8918 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8920         * config/arm/arm-cpus.in (armv8-a): Add options crc, simd crypto and
8921         nofp.
8922         (armv8-a+crc): Delete.
8923         (armv8.1-a): Add options simd, crypto and nofp.
8924         (armv8.2-a): Add options fp16, simd, crypto and nofp.
8925         (armv8.2-a+fp16): Delete.
8926         (armv8-m.main): Add option dsp.
8927         (armv8-m.main+dsp): Delete.
8928         (cortex-a8): Add fpu.  Add nofp option.
8929         (cortex-a9): Add fpu.  Add nofp and nosimd options.
8930         * config/arm/parsecpu.awk (gen_data): Generate option tables and
8931         link to main cpu and architecture data structures.
8932         (gen_comm_data): Only put isa attributes from the main architecture
8933         in common tables.
8934         (option): New statement for architecture and CPU entries.
8935         * arm.c (struct cpu_option): New structure.
8936         (struct processors): Add entry for options.
8937         (arm_unrecognized_feature): New function.
8938         (arm_parse_arch_cpu_name): Ignore any characters after the first
8939         '+' character.
8940         (arm_parse_arch_cpu_feature): New function.
8941         (arm_configure_build_target): Separate out any CPU and architecture
8942         features and parse separately.  Don't error out if -mfpu=auto is
8943         used with only an architecture string.
8944         (arm_print_asm_arch_directives): New function.
8945         (arm_file_start): Call it.
8946         * config/arm/arm-cpu-cdata.h: Regenerated.
8947         * config/arm/arm-cpu-data.h: Likewise.
8948         * config/arm/arm-tables.opt: Likewise.
8950 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8952         * config/arm/elf.h (ASM_SPEC): Only pass -mfpu through to the
8953         assembler when it is not -mfpu=auto.
8955 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8957         * config/arm/arm.h (BIG_LITTLE_SPEC): Delete macro.
8958         (ASM_REWRITE_SPEC_FUNCTIONS): New macro.
8959         (BIG_LITTLE_CPU_SPEC_FUNCTIONS): Delete macro.
8960         (ASM_CPU_SPEC): Rewrite.
8961         (MCPU_MTUNE_NATIVE_FUNCTIONS): New macro.
8962         (EXTRA_SPEC_FUNCTIONS): Move outside of ifdef.  Use
8963         MCPU_MTUNE_NATIVE_FUNCTIONS and ASM_REWRITE_SPEC_FUNCTIONS.  Remove
8964         reference to BIG_LITTLE_CPU_SPEC_FUNCTIONS.
8965         * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): Ensure
8966         copied string is NUL-terminated.  Also strip any characters prefixed
8967         by '+'.
8968         (arm_rewrite_selected_arch): New function.
8969         (arm_rewrite_march): New function.
8971 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
8973         * config/arm/arm.opt (x_arm_arch_string): New TargetSave option.
8974         (x_arm_cpu_string, x_arm_tune_string): Likewise.
8975         (march, mcpu, mtune): Convert to string-based options.
8976         * config/arm/arm.c (arm_print_hint_for_core_or_arch): New function.
8977         (arm_parse_arch_cpu_name): New function.
8978         (arm_configure_build_target): Use arm_parse_arch_cpu_name to
8979         identify selected architecture or CPU.
8980         (arm_option_save): New function.
8981         (TARGET_OPTION_SAVE): Redefine.
8982         (arm_option_restore): Restore string options.
8983         (arm_option_print): Print string options.
8985 2017-06-16  Martin Sebor  <msebor@redhat.com>
8987         PR tree-optimization/80933
8988         PR tree-optimization/80934
8989         * builtins.c (fold_builtin_3): Do not handle bcmp here.
8990         * gimple-fold.c (gimple_fold_builtin_bcmp): New function.
8991         (gimple_fold_builtin_bcopy, gimple_fold_builtin_bzero): Likewise.
8992         (gimple_fold_builtin): Call them.
8994 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
8996         * gimple-ssa-isolate-paths.c (isolate_path): Set edge leading to path
8997         as unlikely; update profile.
8999 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
9001         * predict.c (force_edge_cold): Handle declaring edges impossible
9002         more aggresively.
9004 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
9006         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update
9007         profile.
9008         (try_unroll_loop_completely): Fix reporting.
9010 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
9012         * tree-ssa-tail-merge.c (replace_block_by): Fix profile updating.
9014 2017-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
9016         PR target/71778
9017         * config/arm/arm-builtins.c (arm_expand_builtin_args): Return TARGET
9018         if given a non-constant argument for an intrinsic which requires a
9019         constant.
9021 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
9023         * profile.c (compare_freqs): New function.
9024         (branch_prob): Sort edge list.
9025         (find_spanning_tree): Assume that the list is priority sorted.
9027 2017-06-16  Richard Biener  <rguenther@suse.de>
9029         PR tree-optimization/81090
9030         * passes.def (pass_record_bounds): Remove.
9031         * tree-pass.h (make_pass_record_bounds): Likewise.
9032         * tree-ssa-loop.c (pass_data_record_bounds, pass_record_bounds,
9033         make_pass_record_bounds): Likewise.
9034         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Do
9035         not free niter estimates at the beginning but at the end.
9036         * tree-scalar-evolution.c (scev_finalize): Free niter estimates.
9038 2017-06-16  Richard Biener  <rguenther@suse.de>
9040         * tree-switch-conversion.c (emit_case_bit_tests): Adjust
9041         initializer to workaround ICE in host GCC 4.8.
9043 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
9045         * ipa-inline-transform.c (update_noncloned_frequencies): Update also
9046         counts.
9047         (clone_inlined_nodes): Update.
9049 2017-06-16  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
9051         * config/aarch64/aarch64.c (qdf24xx_prefetch_tune): Update
9052         prefetch settings, and enable prefetching by default at -O3.
9054 2017-06-16  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
9056         * config/aarch64/aarch64.c (aarch64_override_options_internal):
9057         Set flag_prefetch_loop_arrays according to tuning data.
9059 2017-06-16  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
9061         * config/aarch64/aarch64-protos.h (struct cpu_prefetch_tune):
9062         New tune structure.
9063         (struct tune_params): Use cpu_prefetch_tune instead of cache_line_size.
9064         [Unrelated to main purpose of the patch] Place the pointer field last
9065         to enable type checking errors when tune structure are wrongly merged.
9066         * config/aarch64/aarch64.c (generic_prefetch_tune,)
9067         (exynosm1_prefetch_tune, qdf24xx_prefetch_tune,)
9068         (thunderx2t99_prefetch_tune): New tune constants.
9069         (tune_params *_tunings): Update all tunings (no functional change).
9070         (aarch64_override_options_internal): Set PARAM_SIMULTANEOUS_PREFETCHES,
9071         PARAM_L1_CACHE_SIZE, PARAM_L1_CACHE_LINE_SIZE, and PARAM_L2_CACHE_SIZE
9072         from tunings structures.
9074 2017-06-16  Jakub Jelinek  <jakub@redhat.com>
9076         PR sanitizer/81094
9077         * ubsan.c (instrument_null): Add T argument, use it instead
9078         of computing it based on IS_LHS.
9079         (instrument_object_size): Likewise.
9080         (pass_ubsan::execute): Adjust instrument_null and
9081         instrument_object_size callers to pass gimple_get_lhs or
9082         gimple_assign_rhs1 result to it.  Use instrument_null instead of
9083         calling get_base_address and instrument_mem_ref.  Handle
9084         aggregate call arguments for object-size sanitization.
9086 2017-06-16  Yury Gribov  <tetra2005@gmail.com>
9088         PR tree-optimization/81089
9089         * tree-vrp.c (is_masked_range_test): Validate operands of
9090         subexpression.
9092 2017-06-15  Martin Sebor  <msebor@redhat.com>
9094         PR c++/80560
9095         * dumpfile.c (dump_register): Avoid calling memset to initialize
9096         a class with a default ctor.
9097         * gcc.c (struct compiler): Remove const qualification.
9098         * genattrtab.c (gen_insn_reserv): Replace memset with initialization.
9099         * hash-table.h: Ditto.
9100         * ipa-cp.c (allocate_and_init_ipcp_value): Replace memset with
9101           assignment.
9102         * ipa-prop.c (ipa_free_edge_args_substructures): Ditto.
9103         * omp-low.c (lower_omp_ordered_clauses): Replace memset with
9104         default ctor.
9105         * params.h (struct param_info): Make struct members non-const.
9106         * tree-switch-conversion.c (emit_case_bit_tests): Replace memset
9107         with default initialization.
9108         * vec.h (vec_copy_construct, vec_default_construct): New helper
9109         functions.
9110         (vec<T>::copy, vec<T>::splice, vec<T>::reserve): Replace memcpy
9111         with vec_copy_construct.
9112         (vect<T>::quick_grow_cleared): Replace memset with default ctor.
9113         (vect<T>::vec_safe_grow_cleared, vec_safe_grow_cleared): Same.
9114         * doc/invoke.texi (-Wclass-memaccess): Document.
9116 2017-06-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9118         * emit-rtl.h (is_leaf): Update comment about local
9119         register allocator.
9121 2017-06-15  Jozef Lawrynowicz   <jozef.l@somniumtech.com>
9123         PR target/78818
9124         * config/msp430/msp430.c (msp430_data_attr): Check that it's possible
9125         for a variable to have a section before checking if the section has a
9126         name.
9127         Set section to.persistent if persistent attribute is set.
9128         Warn if .persistent attribute is used on an automatic variable.
9130 2017-06-15  Eric Botcazou  <ebotcazou@adacore.com>
9132         PR rtl-optimization/80474
9133         * reorg.c (update_block): Do not ignore instructions in a delay slot.
9135 2017-06-15  Segher Boessenkool  <segher@kernel.crashing.org>
9137         * config/rs6000/rs6000.md (add<mode>3): Use reg_or_subregno instead
9138         of REGNO.
9140 2017-06-14  Maciej W. Rozycki  <macro@imgtec.com>
9142         * config/mips/mips.md (MIPS16_T_REGNUM): Remove constant.
9143         (casesi): Emit bounds checking as RTL.
9144         (casesi_internal_mips16_<mode>): Remove bounds checking.
9146 2017-06-14  Max Filippov  <jcmvbkbc@gmail.com>
9148         * config/xtensa/xtensa.c (xtensa_option_override): Append
9149         MASK_CONST16 to target_flags in the absence of TARGET_L32R.
9150         (hwloop_optimize, hwloop_fail, hwloop_pattern_reg,
9151          xtensa_doloop_hooks): Define unconditionally.
9152         (xtensa_reorg_loops): Only call reorg_loops in the presence of
9153         TARGET_LOOPS.
9154         * config/xtensa/xtensa.h (TARGET_L32R): New definition.
9155         (TARGET_DEFAULT): Remove XCHAL_HAVE_L32R condition and account
9156         for it in xtensa_option_override.
9157         (HARD_FRAME_POINTER_IS_FRAME_POINTER,
9158          HARD_FRAME_POINTER_IS_ARG_POINTER): New definitions.
9160 2017-06-14  Boris Kolpackov  <boris@codesynthesis.com>
9162         * doc/cppopts.texi: Document '-' special value to -MF.
9164 2017-06-14  Wilco Dijkstra  <wdijkstr@arm.com>
9166         * config/arm/cortex-a53.md (cortex_a53_fpalu) Adjust latency.
9167         (cortex_a53_fconst): Likewise.
9168         (cortex_a53_fpmul): Likewise.
9169         (cortex_a53_f_load_64): Likewise.
9170         (cortex_a53_f_load_many): Likewise.
9171         (cortex_a53_advsimd_alu): Likewise.
9172         (cortex_a53_advsimd_alu_q): Likewise.
9173         (cortex_a53_advsimd_mul): Likewise.
9174         (cortex_a53_advsimd_mul_q): Likewise.
9175         (fpmac bypass): Add new bypass for fpmac-fpmac case.
9176         Add missing fmul, r2f_cvt and fconst cases.
9178 2017-06-14  Richard Biener  <rguenther@suse.de>
9180         PR middle-end/81088
9181         * fold-const.c (split_tree): Drop TREE_OVERFLOW flag from
9182         literal constants.
9183         (fold_binary_loc): When associating do not treat pre-existing
9184         TREE_OVERFLOW on literal constants as a reason to allow
9185         TREE_OVERFLOW on associated literal constants.
9187 2017-06-14  Eric Botcazou  <ebotcazou@adacore.com>
9189         * config/sparc/sparc.h (MASK_ISA): Add MASK_LEON and MASK_LEON3.
9190         (MASK_FEATURES): New macro.
9191         * config/sparc/sparc.c (sparc_option_override): Remove the special
9192         handling of -mfpu and generalize it to all MASK_FEATURES switches.
9194 2017-06-14  Eric Botcazou  <ebotcazou@adacore.com>
9196         * simplify-rtx.c (simplify_binary_operation_1) <UDIV>: Do not simplify
9197         a division of 0 if non-call exceptions are enabled.
9199 2017-06-14  Andrew Pinski  <apinski@cavium.com>
9200             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
9202         PR target/71663
9203         * config/aarch64/aarch64.c (aarch64_expand_vector_init):
9204         Improve vector initialization code gen for only variable case.
9206 2017-06-14  Eric Botcazou  <ebotcazou@adacore.com>
9208         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
9210 2017-06-14  Richard Biener  <rguenther@suse.de>
9212         PR tree-optimization/81083
9213         * tree-ssa-sccvn.c (vn_reference_lookup_3): Do not use abnormals
9214         as values.
9216 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
9218         * config/rs6000/rs6000.c: Update all comments that mentioned SPE.
9219         (rs6000_expand_builtin): Remove RS6000_BTC_EVSEL.
9220         * config/rs6000/rs6000.h (RS6000_BTC_EVSEL): Delete.
9221         * config/rs6000/vxworks.h (VXCPU_FOR_8548): Delete.  Adjust former use.
9222         * config/rs6000/vxworksae.h (VXCPU_FOR_8548): Delete.
9223         * config/rs6000/vxworksmils.h (VXCPU_FOR_8548): Delete.
9225 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
9227         * config/rs6000/rs6000-opts.h (enum rs6000_vector): Delete VECTOR_SPE.
9228         * config/rs6000/rs6000.c (rs6000_debug_vector_unit): Delete VECTOR_SPE.
9230 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
9232         * config/rs6000/rs6000.h (FIXED_SCRATCH): Delete.
9234 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
9236         * config/rs6000/t-rtems: Don't handle SPE.
9238 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
9240         * config/rs6000/t-linux: Don't handle SPE.
9242 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
9244         * config/rs6000/eabispe.h: Delete file.
9246 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
9248         * config/rs6000/t-spe: Delete file.
9250 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
9252         * config/rs6000/rs6000.c (SPE_CONST_OFFSET_OK): Delete.
9253         (rs6000_legitimate_offset_address_p): Return false for anything in
9254         V2SImode or V2SFmode.
9256 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
9258         * config/rs6000/rs6000-modes.def: Remove all 8-byte vector modes
9259         except V2SF and V2SI.  Rearrange the vector modes, and add comments.
9260         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Remove V8QImode
9261         and V4HImode.
9262         (reg_offset_addressing_ok_p): Remove V4HImode and V1DImode.
9263         (rs6000_legitimate_offset_address_p): Ditto.
9264         (rs6000_emit_move): Ditto.
9265         (rs6000_init_builtins): Remove V4HI_type_node.
9267 2017-06-13  Martin Liska  <mliska@suse.cz>
9269         PR sanitize/78204
9270         * asan.c (asan_sanitize_stack_p): Use sanitize_flags_p.
9271         (gate_asan): Likewise.
9272         * asan.h (asan_no_sanitize_address_p): Remove the function.
9273         (sanitize_flags_p): New function.
9274         * builtins.def: Fix coding style.
9275         * common.opt: Use renamed enum value.
9276         * convert.c (convert_to_integer_1): Use sanitize_flags_p.
9277         * doc/extend.texi: Document no_sanitize attribute.
9278         * flag-types.h (enum sanitize_code): Rename SANITIZE_NONDEFAULT
9279         to SANITIZE_UNDEFINED_NONDEFAULT.
9280         * gcc.c (sanitize_spec_function): Use the renamed enum value.
9281         * gimple-fold.c (optimize_atomic_compare_exchange_p):
9282         Use sanitize_flags_p.
9283         * gimplify.c (gimplify_function_tree): Likewise.
9284         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Likewise.
9285         * opts.c (parse_no_sanitize_attribute): New function.
9286         (common_handle_option): Use renamed enum value.
9287         * opts.h (parse_no_sanitize_attribute): Declare.
9288         * tree.c (sanitize_flags_p): New function.
9289         * tree.h: Declared here.
9290         * tsan.c: Use sanitize_flags_p.
9291         * ubsan.c (ubsan_expand_null_ifn): Likewise.
9292         (instrument_mem_ref): Likewise.
9293         (instrument_bool_enum_load): Likewise.
9294         (do_ubsan_in_current_function): Remove the function.
9295         (pass_ubsan::execute): Use sanitize_flags_p.
9296         * ubsan.h: Remove do_ubsan_in_current_function
9297         * tree-cfg.c (print_no_sanitize_attr_value): New function.
9298         (dump_function_to_file): Use it here.
9300 2017-06-13  Martin Jambor  <mjambor@suse.cz>
9302         PR tree-optimization/80803
9303         PR tree-optimization/81063
9304         * tree-sra.c (subtree_mark_written_and_enqueue): Move up in the file.
9305         (propagate_subaccesses_across_link): Enqueue subtree whenever
9306         necessary instead of relying on the caller.
9308 2017-06-13  Martin Jambor  <mjambor@suse.cz>
9310         * tree-sra.c (add_access_to_work_queue): Only enqueue accesses
9311         that have a first_link.
9312         (sort_and_splice_var_accesses): Do not check first_link before
9313         enquing.
9314         (subtree_mark_written_and_enqueue): Likewise.
9315         (propagate_all_subaccesses): Likewise and do not stop at first
9316         parent with a first_link.
9318 2017-06-13  Martin Jambor  <mjambor@suse.cz>
9320         * tree-sra.c (dump_access_tree_1): Fix accidental dumping to stderr
9321         instead of f.
9323 2017-06-13  Yury Gribov  <tetra2005@gmail.com>
9325         * match.pd: New pattern.
9327 2017-06-13  Yury Gribov  <tetra2005@gmail.com>
9329         * tree-vrp.c (is_masked_range_test): New function.
9330         (register_edge_assert_for): Determine ranges for
9331         some bit tests.
9333 2017-06-13  Yury Gribov  <tetra2005@gmail.com>
9335         PR tree-optimization/67328
9336         * fold-const.c (maskable_range_p): New function.
9337         (build_range_check): Generate bittests if possible.
9339 2017-06-13  Martin Liska  <mliska@suse.cz>
9341         * gimple-pretty-print.c (dump_probability): Add new argument.
9342         (dump_edge_probability): Dump both probability and count.
9343         (dump_gimple_label): Likewise.
9344         (dump_gimple_bb_header): Likewise.
9346 2017-06-13  Georg-Johann Lay  <avr@gjlay.de>
9348         PR target/81072
9349         * config/avr/avr-devices.c: Fix indentation.
9350         * config/avr/gen-avr-mmcu-specs.c: Dito.
9352 2017-06-13  Richard Biener  <rguenther@suse.de>
9354         * tree-vect-loop.c (vect_model_reduction_cost): Do not fail,
9355         instead get vector type from stmt_info.
9356         (vectorizable_reduction): Adjust.  Remove dead code.
9358 2017-06-13  Richard Biener  <rguenther@suse.de>
9360         PR middle-end/81065
9361         * fold-const.c (extract_muldiv_1): Remove bogus distribution
9362         case of C * (x * C2 + C3).
9363         (fold_addr_of_array_ref_difference): Properly fold index difference.
9365 2017-06-12  David S. Miller  <davem@davemloft.net>
9367         PR target/80968
9368         * config/sparc/sparc.md (return expander): Emit frame blockage if
9369         function uses alloca.
9371 2017-06-12  Richard Sandiford  <richard.sandiford@linaro.org>
9373         * combine.c (make_field_assignment): Check len rather than the mode
9374         precision when calling force_to_mode.
9376 2017-06-12  Georg-Johann Lay  <avr@gjlay.de>
9378         Support multilibs and devices that see flash in RAM address range.
9380         PR target/81072
9381         * config/avr/avr-arch.h (avr_arch_id) <ARCH_AVRXMEGA3>: New enum.
9382         (avr_mcu_t) <flash_pm_offset>: New field.
9383         (avr_device_specific_features) <AVR_ISA_RCALL>: New enum.
9384         * config/avr/avr.h (AVR_SHORT_CALLS): New define.
9385         (AVR_HAVE_JMP_CALL): Don't set if AVR_SHORT_CALLS.
9386         (AVR_TINY_PM_OFFSET): Remove macro.
9387         * config/avr/avr.opt (-mshort-calls): New option.
9388         * config/avr/gen-avr-mmcu-specs.c (print_mcu)
9389         [*self_spec]: Add / remove -mshort-calls depending on AVR_ISA_RCALL.
9390         * config/avr/avr-c.c (avr_cpu_cpp_builtins)
9391         <__AVR_SHORT_CALLS__>: Built-in define if AVR_SHORT_CALLS.
9392         <__AVR_HAVE_JMP_CALL__>: Use AVR_HAVE_JMP_CALL as condition
9393         instead of avr_arch->have_jmp_call.
9394         <__AVR_PM_BASE_ADDRESS__>: Built-in define if avr_arch->flash_pm_offset.
9395         [AVR_TINY] <__AVR_TINY_PM_BASE_ADDRESS__>: Use
9396         avr_arch->flash_pm_offset to define.
9397         * config/avr/avr-devices.c (avr_arch_types): Add initializers for
9398         new field flash_pm_offset.  Add entry for avrxmega3.
9399         (avr_texinfo): Add entry for avrxmega3.
9400         * config/avr/avr-mcus.def: Add entries for: avrxmega3,
9401         attiny212, attiny214,
9402         attiny412, attiny414, attiny416, attiny417,
9403         attiny814, attiny816, attiny817,
9404         attiny1614, attiny1616, attiny1617,
9405         attiny3214, attiny3216, attiny3217.
9406         * config/avr/avr.c (avr_assemble_integer)[AVR_TINY]: Use
9407         avr_arch->flash_pm_offset instead of AVR_TINY_PM_OFFSET.
9408         (avr_print_operand_address) [AVR_TINY]: Same.
9409         (avr_asm_init_sections) <readonly_data_section>: Only patch
9410         callback if avr_arch->flash_pm_offset = 0.
9411         (avr_asm_named_section) <avr_need_copy_data_p>: Skip setting it
9412         for rodata if avr_arch->flash_pm_offset != 0.
9413         (avr_encode_section_info) [AVR_TINY]: Adjust comment.
9414         * config/avr/genmultilib.awk (dir_rcall, opt_rcall): New vars.
9415         (opts) [AVR_ISA_RCALL]: Append opt_rcall.
9416         (m_options): Append opt_rcall.
9417         (m_dirnames): Append dir_rcall.
9418         * config/avr/t-multilib: Regenerate.
9420         * configure.ac [target=avr]: Check whether avrxmega3 default
9421         linker description file works as needed.
9422         * configure: Regenerate.
9423         * doc/avr-mmcu.texi: Regenerate.
9424         * doc/invoke.texi (AVR Options) <-mshort-calls>: Document it.
9425         <__AVR_ARCH__>: Document avrxmega3 and 103.
9426         <__AVR_HAVE_JMP_CALL__>: Adjust documentation.
9427         <__AVR_SHORT_CALLS__>: Document it.
9428         <__AVR_PM_BASE_ADDRESS__>: Document it.
9429         * doc/extend.texi (AVR Options) <-mshort-calls>: Document it.
9430         (AVR Variable Attributes) <progmem>: Document this is
9431         not needed for avrxmega3.
9432         (AVR Named Address Spaces) <__flash>: Dito.
9434 2017-06-12  Jan Hubicka  <hubicka@ucw.cz>
9436         * cgraph.c (cgraph_node::dump): Complain about profile insanities.
9438 2017-06-12  Doug Rupp  <rupp@adacore.com>
9440         * config.gcc (*-*-vxworks*): Set use_gcc_stdint to "provide".
9441         Append vxworks-stdint.h to the tm_file list.
9442         * config/vxworks-stdint.h: New file.
9444 2017-06-12  Martin Liska  <mliska@suse.cz>
9446         PR tree-optimization/81041
9447         * tree-profile.c (gimple_gen_ic_func_profiler):
9448         Create an extra BB in profile-generate
9449         (gimple_gen_time_profiler): Likewise.
9451 2017-06-12  Jakub Jelinek  <jakub@redhat.com>
9453         PR tree-optimization/81003
9454         * tree-ssa-reassoc.c (force_into_ssa_name): New function.
9455         (update_range_test): Use it instead of force_gimple_operand_gsi.
9457 2017-06-12  Richard Biener  <rguenther@suse.de>
9459         PR tree-optimization/81053
9460         * tree-vect-loop.c (vect_is_simple_reduction): Handle PHI
9461         with backedge value not defined in loop.  Simplify def stmt
9462         compute.
9464 2017-06-11  Tom de Vries  <tom@codesourcery.com>
9466         PR target/79939
9467         * config/nvptx/nvptx.c (nvptx_cannot_force_const_mem): New function.
9468         Return true.
9469         (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
9470         nvptx_cannot_force_const_mem.
9472 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
9474         * opts.c (finish_options): Move test for flag_split_stack after
9475         it has been initialized.
9477 2017-06-11  Jason Merrill  <jason@redhat.com>
9479         * tree.h (id_equal): New.
9480         * dwarf2out.c, hsa-gen.c, ipa-devirt.c, omp-expand.c,
9481         omp-simd-clone.c, read-rtl-function.c, tree-chkp.c, tree.c: Use it
9482         instead of strcmp of IDENTIFIER_POINTER.
9484 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
9486         * ipa-inline-transform.c: Include function.h, cfg.h and basic-block.h
9487         (mark_all_inlined_calls_cdtor): Fix formating.
9488         (inline_transform): Rescale profile before inlining.
9490 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
9492         * cgraph.h (cgraph_edge::clone): Update prototype.
9493         * cgraphclones.c (cgraph_edge::clone): Update profile scaling.
9494         (cgraph_node::create_clone): Update.
9495         (cgraph_node::create_version_clone): Update.
9496         * tree-inline.c (copy_bb): Update.
9497         (expand_call_inline): Update.
9499 2017-06-10  Segher Boessenkool  <segher@kernel.crashing.org>
9501         * config/rs6000/rs6000.c (emit_vrsave_prologue): New function,
9502         factored out from ...
9503         (rs6000_emit_prologue): ... here.
9505 2017-06-10  Segher Boessenkool  <segher@kernel.crashing.org>
9507         * config/rs6000/rs6000.c (emit_split_stack_prologue): New function,
9508         factored out from ...
9509         (rs6000_emit_prologue): ... here.
9511 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
9513         * predict.c (drop_profile): Also drop individual bb/edge and cgraph
9514         edge counts.
9515         (handle_missing_profiles): Fix computation of tp_first_run.
9516         (counts_to_freqs): Do not touch freqs when count is 0.
9518 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
9520         * cgraphbuild.c (cgraph_edge::rebuild_references): Do not touch
9521         profile.
9523 2017-06-10  Tom de Vries  <tom@codesourcery.com>
9525         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
9526         attributes): Document signal effective target.
9528 2017-06-10  Tom de Vries  <tom@codesourcery.com>
9530         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
9531         Document effective target stack_size.
9533 2017-06-09  David Malcolm  <dmalcolm@redhat.com>
9535         * diagnostic.c (diagnostic_report_diagnostic): Only add fixits
9536         to the edit_context if they can be auto-applied.
9538 2017-06-9  Ian Lance Taylor  <iant@golang.org>
9540         * opts.c (finish_options): If -fsplit-stack, disable implicit
9541         -forder-blocks-and-partition.
9542         * doc/invoke.texi (Optimize Options): Document that when using
9543         -fsplit-stack -forder-blocks-and-partition is not implicitly
9544         enabled.
9546 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
9548         * builtin-attrs.def (ATTR_NORETURN_NOTHROW_LEAF_COLD_LIST,
9549         ATTR_CONST_NORETURN_NOTHROW_LEAF_COLD_LIST,
9550         ATTR_TMPURE_NORETURN_NOTHROW_LEAF_COLD_LIST): New.
9551         * builtins.def (abort, trap, unreachable): Declare cold.
9552         * calls.c (flags_from_decl_or_type): Lookup ECF_COLD.
9553         * tree-core.h (ECF_COLD): New.
9554         * tree.c (set_call_expr_flags): Handle ECF_COLD.
9555         (build_common_builtin_nodes): Mark unreachable and abort as cold.
9557 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
9559         * predict.c (unlikely_executed_stmt_p): Cleanup.
9561 2017-06-09  Richard Biener  <rguenther@suse.de>
9563         * tree-ssa-loop-im.c (execute_sm): Do not force multi-threaded
9564         model if the ref is always written to.
9566 2017-06-09  Tamar Christina  <tamar.christina@arm.com>
9568         * config/aarch64/aarch64.md (lrint<GPF:mode><GPI:mode>2): New.
9570 2017-06-09  Tamar Christina  <tamar.christina@arm.com>
9572         * config/arm/arm.c (arm_rtx_costs_internal): Make sdiv more expensive
9573         than udiv.
9575 2017-06-09  Tom de Vries  <tom@codesourcery.com>
9577         PR target/80855
9578         * config/nvptx/nvptx.md (define_expand "mov<QHSDISDFM>"): Error out with
9579         "target cannot support label values" when encountering LABEL_REF.
9581 2017-06-09  Martin Liska  <mliska@suse.cz>
9583         * tree-profile.c (gimple_gen_ic_profiler): Update comment.
9584         (gimple_gen_ic_func_profiler): Emit direct comparison
9585         of __gcov_indirect_call_callee with NULL.
9586         (gimple_gen_time_profiler): Change probability from
9587         PROB_VERY_UNLIKELY to PROB_UNLIKELY.
9589 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
9591         * profile.c (edge_gcov_counts): Turn to pointer.
9592         (compute_branch_probabilities, compute_branch_probabilities): Update.
9593         (branch_prob): Do not clear edge_gcov_count.
9594         * profile.h (edge_gcov_counts): Turn to pointer.
9595         (edge_gcov_count): Update.
9597 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
9599         * gimple.h (gimple_check_failed): Mark cold.
9601 2017-06-09  Richard Biener  <rguenther@suse.de>
9603         PR tree-optimization/66623
9604         * tree-vect-loop.c (vect_is_simple_reduction): Cleanup,
9605         refactor check_reduction into two parts, properly computing
9606         whether we have to check reduction validity for outer loop
9607         vectorization.
9609 2017-06-09  Richard Biener  <rguenther@suse.de>
9611         PR tree-optimization/79483
9612         * graphite-scop-detection.c (order): New global.
9613         (get_order): Compute bb to order mapping that satisfies code
9614         generation constraints.
9615         (cmp_pbbs): New helper.
9616         (build_scops): Start domwalk at entry block, sort generated
9617         pbbs.
9619 2017-06-09  Richard Biener  <rguenther@suse.de>
9621         PR middle-end/81007
9622         * ipa-polymorphic-call.c
9623         (ipa_polymorphic_call_context::restrict_to_inner_class):
9624         Skip FIELD_DECLs with error_mark_node type.
9625         * passes.def (all_lowering_passes): Run pass_build_cgraph_edges
9626         last again.
9628 2017-06-09  Martin Liska  <mliska@suse.cz>
9630         * predict.c (struct branch_predictor): New struct.
9631         (test_prediction_value_range): New test.
9632         (predict_c_tests): New function.
9633         * selftest-run-tests.c (selftest::run_tests): Run the function.
9634         * selftest.h: Declare new tests.
9636 2017-06-09  Segher Boessenkool  <segher@kernel.crashing.org>
9638         PR target/80966
9639         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Assert that
9640         gen_add3_insn did not fail.
9641         * config/rs6000/rs6000.md (add<mode>3): If asked to add a constant to
9642         r0, construct that number in a temporary reg and add that reg to r0.
9643         If asked to put the result in r0 as well, fail.
9645 2017-06-08  Will Schmidt  <will_schmidt@vnet.ibm.com>
9647         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
9648         for early expansion of vec_eqv.
9650 2017-06-08  Jakub Jelinek  <jakub@redhat.com>
9652         PR middle-end/81005
9653         * ubsan.c (instrument_null): Avoid pointless code temporary.
9654         (pass_ubsan::execute): Instrument aggregate arguments of calls.
9656 2017-06-08  Uros Bizjak  <ubizjak@gmail.com>
9658         PR target/81015
9659         Revert:
9660         2016-12-14  Uros Bizjak  <ubizjak@gmail.com>
9662         PR target/59874
9663         * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
9664         (*clzhi2): Ditto.
9666 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
9668         * predict.c (unlikely_executed_edge_p): Move ahead.
9669         (probably_never_executed_edge_p): Use it.
9671 2017-06-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9673         PR middle-end/79988
9674         * tree-chkp.c (chkp_gimple_call_builtin_p): Remove
9675         gimple_call_builtin_p call.
9677 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
9679         * system.h (fancy_abort): Annotate by ATTRIBUTE_COLD.
9680         * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
9681         rtl_check_failed_type2, rtl_check_failed_code1,
9682         rtl_check_failed_code2, rtl_check_failed_code_mode,
9683         rtl_check_failed_block_symbol, cwi_check_failed_bounds,
9684         rtvec_check_failed_bounds, rtl_check_failed_flag,
9685         _fatal_insn_not_found, _fatal_insn): Likewise.
9686         * tree.h (tree_contains_struct_check_failed,
9687         tree_check_failed, tree_not_check_failed,
9688         tree_class_check_failed, tree_range_check_failed,
9689         tree_not_class_check_failed, tree_int_cst_elt_check_failed,
9690         tree_vec_elt_check_failed, phi_node_elt_check_failed,
9691         tree_operand_check_failed, omp_clause_check_failed,
9692         omp_clause_operand_check_failed, omp_clause_range_check_failed):
9693         Likewise.
9695 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
9697         * cgraph.c (cgraph_edge::maybe_hot_p): Do not check
9698         flag_branch_probabilities.
9699         * ipa-inline.c (edge_badness): Likewise.
9700         * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
9701         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
9702         * predict.c (maybe_hot_frequency_p): Likewise.
9703         (probably_never_executed): Likewise.
9704         * sched-ebb.c (schedule_ebbs): Likewise.
9705         * sched-rgn.c (find_single_block_region): Likewise.
9706         * tracer.c (tail_duplicate): Likewise.
9708 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
9710         * opts.c (finish_options): x_flag_reorder_blocks_and_partition no
9711         longer requires x_flag_profile_use.
9713 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
9715         * cfgrtl.c (cfg_layout_initialize): Check crtl->has_bb_partition
9716         instead of flag_reorder_blocks_and_partition.
9717         * dbxout.c (dbxout_function_end): Likewise.
9718         * dwarf2out.c (gen_subprogram_die): Likewise.
9719         * haifa-sched.c (sched_create_recovery_edges): Likewise.
9720         * hw-doloop.c (reorg_loops): Likewise.
9721         * varasm.c (assemble_start_function,
9722         assemble_end_function): Likewise.
9723         (decide_function_section): Do not check for
9724         flag_reorder_blocks_and_partition.
9726 2017-06-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9728         * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
9729         New function.
9730         (chkp_get_hard_register_fake_addr_expr): Ditto.
9731         (chkp_build_addr_expr): Add check for hard reg case.
9732         (chkp_parse_array_and_component_ref): Ditto.
9733         (chkp_find_bounds_1): Ditto.
9734         (chkp_process_stmt): Don't generate bounds store for
9735         hard reg case.
9737 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
9739         * predict.c (maybe_hot_bb_p): Do not check profile status.
9740         (maybe_hot_edge_p): Likewise.
9741         (probably_never_executed): Check for zero counts even if profile
9742         is not read.
9743         (unlikely_executed_edge_p): New function.
9744         (unlikely_executed_stmt_p): New function.
9745         (unlikely_executed_bb_p): New function.
9746         (set_even_probabilities): Use unlikely predicates.
9747         (combine_predictions_for_bb): Likewise.
9748         (predict_paths_for_bb): Likewise.
9749         (predict_paths_leading_to_edge): Likewise.
9750         (determine_unlikely_bbs): New function.
9751         (estimate_bb_frequencies): Use it.
9752         (compute_function_frequency): Use zero counts even if profile is
9753         not read.
9754         * profile-count.h: Fix typo.
9756 2017-08-08  Julia Koval  <julia.koval@intel.com>
9758         * config/i386/avx512bwintrin.h (_mm512_mask_cvtepi16_storeu_epi8,
9759         _mm512_mask_cvtsepi16_storeu_epi8,
9760         _mm512_mask_cvtusepi16_storeu_epi8): New intrinsics.
9761         * config/i386/avx512vlbwintrin.h (_mm256_mask_cvtepi16_storeu_epi8,
9762         _mm_mask_cvtsepi16_storeu_epi8, _mm256_mask_cvtsepi16_storeu_epi8,
9763         _mm_mask_cvtusepi16_storeu_epi8, _mm256_mask_cvtusepi16_storeu_epi8,
9764         _mm_mask_cvtepi16_storeu_epi8): New intrinsics.
9765         * config/i386/i386-builtin-types.def (PV8Q, V8QI): New pointer type.
9766         (VOID_FTYPE_PV32QI_V32HI_USI, VOID_FTYPE_PV8QI_V8HI_UQI,
9767         VOID_FTYPE_PV16QI_V16HI_UHI): New function types.
9768         * config/i386/i386-builtin.def (__builtin_ia32_pmovwb128mem_mask,
9769         __builtin_ia32_pmovwb256mem_mask, __builtin_ia32_pmovswb128mem_mask,
9770         __builtin_ia32_pmovswb256mem_mask, __builtin_ia32_pmovuswb128mem_mask,
9771         __builtin_ia32_pmovuswb256mem_mask,
9772         __builtin_ia32_pmovuswb512mem_mask, __builtin_ia32_pmovswb512mem_mask)
9773         __builtin_ia32_pmovwb512mem_mask): New builtins.
9775 2017-08-08  Julia Koval  <julia.koval@intel.com>
9777         PR target/73350,80862
9778         * config/i386/subst.md (round): Fix round pattern.
9779         * config/i386/i386.c (ix86_erase_embedded_rounding):
9780         Fix erasing rounding for the fixed pattern.
9782 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
9784         * cfgbuild.c (find_many_sub_basic_blocks): Fix thinko.
9786 2017-06-08  Martin Liska  <mliska@suse.cz>
9788         PR gcov-profile/80911
9789         * gcov.c (block_info::block_info): New constructor.
9791 2017-06-07  Carl Love  <cel@us.ibm.com>
9793         * config/rs6000/rs6000-c: The return type of the following
9794         built-in functions was implemented as int not long long.  Fix sign
9795         of return value for the unsigned version of vec_mulo and vec_mule.
9796         vector unsigned long long vec_bperm (vector unsigned long long,
9797                                              vector unsigned char)
9798         vector signed long long vec_mule (vector signed int,
9799                                           vector signed int)
9800         vector unsigned long long vec_mule (vector unsigned int,
9801                                             vector unsigned int)
9802         vector signed long long vec_mulo (vector signed int,
9803                                           vector signed int)
9804         vector unsigned long long vec_mulo (vector unsigned int,
9805                                             vector unsigned int)
9806         * doc/extend.texi: Fix the documentation for the built-in
9807         functions.
9809 2017-06-07  Carl Love  <cel@us.ibm.com>
9811         PR target/80982
9812         * config/rs6000/altivec.md (double<mode>2): Fix the implementation of
9813         for BE.
9815 2017-06-07  Carl Love  <cel@us.ibm.com>
9817         * config/rs6000/altivec.md: Fix argument swizzle in vec_doublel
9818         support, Generate       doublehv for signed int/float for BE case only.
9820 2017-06-07  Alexander Monakov  <amonakov@ispras.ru>
9822         * doc/invoke.texi (mcx16): Rewrite.
9824 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9826         * config/rs6000/predicates.md (rs6000_nonimmediate_operand): Delete.
9827         * config/rs6000/rs6000.md (*movsi_internal1, movsi_from_sf,
9828         *mov<mode>_softfloat, and an anonymous splitter): Use
9829         nonimmediate_operand instead of rs6000_nonimmediate_operand.
9831 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9833         * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE_ACC and
9834         SPEFSCR registers.
9835         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
9836         (enum rs6000_reg_type): Delete SPE_ACC_TYPE and SPEFSCR_REG_TYPE.
9837         (rs6000_debug_reg_global): Adjust.
9838         (rs6000_init_hard_regno_mode_ok): Adjust.
9839         (rs6000_dbx_register_number): Adjust.
9840         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change to 115.
9841         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
9842         Remove SPE_ACC and SPEFSCR.
9843         (REG_ALLOC_ORDER): Ditto.
9844         (FRAME_POINTER_REGNUM): Change to 111.
9845         (enum reg_class): Remove the SPE_ACC and SPEFSCR registers.
9846         (REG_CLASS_NAMES): Ditto.
9847         (REG_CLASS_CONTENTS): Delete the SPE_ACC and SPEFSCR registers.
9848         (REGISTER_NAMES): Ditto.
9849         (ADDITIONAL_REG_NAMES): Ditto.
9850         (rs6000_reg_names): Ditto.
9851         * config/rs6000/rs6000.md: Renumber some register number
9852         define_constants.
9854 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9856         * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE high
9857         registers.
9858         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
9859         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change from 149
9860         to 117.
9861         (DWARF_REG_TO_UNWIND_COLUMN): Do not define.
9862         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
9863         Delete the SPE high registers.
9864         (REG_ALLOC_ORDER): Ditto.
9865         (enum reg_class): Remove SPE_HIGH_REGS.
9866         (REG_CLASS_NAMES): Ditto.
9867         (REG_CLASS_CONTENTS): Delete the SPE high registers.
9868         (REGISTER_NAMES): Ditto.
9869         (rs6000_reg_names): Ditto.
9870         * doc/tm.texi.in: Remove SPE as example.
9871         * doc/tm.texi: Regenerate.
9873 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9875         * config/rs6000/8540.md (ppc8540_brinc): Delete.
9876         * config/rs6000/e500mc.md (e500mc_brinc): Delete.
9877         * config/rs6000/e500mc64.md (e500mc64_brinc): Delete.
9878         * config/rs6000/rs6000.md (type): Remove "brinc".
9880 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9882         * config.gcc (powerpc*-*-*): Don't add spe.h to extra_headers.
9883         (powerpc*-linux*spe*): Use ${cpu_type} instead of rs6000.
9884         * config/rs6000/linuxspe.h: Delete file.
9885         * config/rs6000/rs6000.md: Don't include spe.md.
9886         * config/rs6000/spe.h: Delete file.
9887         * config/rs6000/spe.md: Delete file.
9888         * config/rs6000/t-rs6000: Remove spe.md.
9890 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9892         * config/rs6000/predicates.md (reg_or_mem_operand): Reformat.
9893         (reg_or_none500mem_operand): Delete.
9894         * config/rs6000/rs6000.md (extendsfdf2): Use reg_or_mem_operand
9895         instead of reg_or_none500mem_operand.
9897 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9899         * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
9900         handling of SPE flags.
9901         * config/rs6000/rs6000.opt (-mspe, -mspe=no, -mspe=yes): Delete.
9903 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9905         * config/rs6000/rs6000-common.c (rs6000_handle_option): Remove
9906         SPE ABI handling.
9907         * config/rs6000/paired.md (paired_negv2sf2): Rename to negv2sf2.
9908         (paired_absv2sf2, paired_addv2sf3, paired_subv2sf3, paired_mulv2sf3,
9909         paired_divv2sf3): Similar.
9910         * config/rs6000/predicates.md: Replace TARGET_SPE, TARGET_SPE_ABI,
9911         SPE_VECTOR_MODE and SPE_HIGH_REGNO_P by 0; simplify.
9912         * config/rs6000/rs6000-builtin.def: Delete RS6000_BUILTIN_E and
9913         RS6000_BUILTIN_S.
9914         Delete BU_SPE_1, BU_SPE_2, BU_SPE_3, BU_SPE_E, BU_SPE_P, and BU_SPE_X.
9915         Rename the paired_* instruction patterns.
9916         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Do not
9917         define __SPE__.
9918         * config/rs6000/rs6000-protos.h (invalid_e500_subreg): Delete.
9919         * config/rs6000/rs6000.c: Delete RS6000_BUILTIN_E and RS6000_BUILTIN_S.
9920         (struct rs6000_stack): Delete fields spe_gp_save_offset, spe_gp_size,
9921         spe_padding_size, and spe_64bit_regs_used.  Replace TARGET_SPE and
9922         TARGET_SPE_ABI with 0, simplify.  Replace SPE_VECTOR_MODE with
9923         PAIRED_VECTOR_MODE.
9924         (struct machine_function): Delete field spe_insn_chain_scanned_p.
9925         (spe_func_has_64bit_regs_p): Delete.
9926         (spe_expand_predicate_builtin): Delete.
9927         (spe_expand_evsel_builtin): Delete.
9928         (TARGET_DWARF_REGISTER_SPAN): Do not define.
9929         (TARGET_MEMBER_TYPE_FORCES_BLK): Do not define.
9930         (invalid_e500_subreg): Delete.
9931         (rs6000_legitimize_address): Always force_reg op2 as well, for
9932         paired single memory accesses.
9933         (rs6000_member_type_forces_blk): Delete.
9934         (rs6000_spe_function_arg): Delete.
9935         (rs6000_expand_unop_builtin): Delete SPE handling.
9936         (rs6000_expand_binop_builtin): Ditto.
9937         (spe_expand_stv_builtin): Delete.
9938         (bdesc_2arg_spe): Delete.
9939         (spe_expand_builtin): Delete.
9940         (spe_expand_predicate_builtin): Delete.
9941         (spe_expand_evsel_builtin): Delete.
9942         (rs6000_invalid_builtin): Remove RS6000_BTM_SPE handling.
9943         (spe_init_builtins): Delete.
9944         (spe_func_has_64bit_regs_p): Delete.
9945         (savres_routine_name): Delete "info" parameter.  Adjust callers.
9946         (rs6000_emit_stack_reset): Ditto.
9947         (rs6000_dwarf_register_span): Delete.
9948         * config/rs6000/rs6000.h (TARGET_SPE_ABI, TARGET_SPE,
9949         UNITS_PER_SPE_WORD, SPE_HIGH_REGNO_P, SPE_SIMD_REGNO_P,
9950         SPE_VECTOR_MODE, RS6000_BTM_SPE, RS6000_BUILTIN_E, RS6000_BUILTIN_S):
9951         Delete.
9952         * config/rs6000/rs6000.md (FIRST_SPE_HIGH_REGNO, LAST_SPE_HIGH_REGNO):
9953         Delete.
9954         * config/rs6000/rs6000.opt (-mabi=spe, -mabi=no-spe): Delete.
9955         * config/rs6000/spe.md: Delete every pattern that uses TARGET_SPE.
9956         * config/rs6000/vector.md (absv2sf2, negv2sf2, addv2sf3, subv2sf3,
9957         mulv2sf3, divv2sf3): Delete expanders.
9959 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9961         config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Delete.
9963 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9965         * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit): Delete.
9966         * config/rs6000/rs6000.c: Ditto.
9968 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9970         * config/rs6000/predicated.md (rs6000_cbranch_operator): Delete.
9971         * config/rs6000/rs6000.md: Replace rs6000_cbranch_operator by
9972         comparison_operator.
9974 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9976         * config/rs6000/rs6000.c: Remove everything related to -mfloat-gprs.
9977         * config/rs6000/rs6000.opt: Ditto.
9978         * config/rs6000/t-rtems: Ditto.
9980 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9982         * config/rs6000/predicates.md: Replace TARGET_E500_DOUBLE and
9983         TARGET_E500_SINGLE by 0, simplify.
9984         * config/rs6000/rs6000.c: Ditto.
9985         (rs6000_option_override_internal): Delete CHECK_E500_OPTIONS.
9986         (spe_build_register_parallel): Delete.
9987         * config/rs6000/rs6000.h: Delete TARGET_E500_SINGLE,
9988         TARGET_E500_DOUBLE, and CHECK_E500_OPTIONS.
9989         * config/rs6000/rs6000.md: Replace TARGET_E500_DOUBLE,
9990         TARGET_E500_SINGLE, and <E500_CONVERT> by 0, simplify.
9991         (E500_CONVERT): Delete.
9992         * config/rs6000/spe.md: Remove many patterns and all define_constants.
9994 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
9996         * config/rs6000/darwin.md: Replace TARGET_FPRS by 1 and simplify.
9997         * config/rs6000/dfp.md: Ditto.
9998         (negdd2, *negdd2_fpr): Merge.
9999         (absdd2, *absdd2_fpr): Merge.
10000         (negtd2, *negtd2_fpr): Merge.
10001         (abstd2, *abstd2_fpr): Merge.
10002         * config/rs6000/e500.h: Delete file.
10003         * config/rs6000/predicates.md (rs6000_cbranch_operator): Replace
10004         TARGET_FPRS by 1 and simplify.
10005         * config/rs6000/rs6000-c.c: Ditto.
10006         * config/rs6000/rs6000.c: Ditto.  Also replace TARGET_SF_SPE and
10007         TARGET_DF_SPE by 0.
10008         * config/rs6000/rs6000.h: Ditto.  Delete TARGET_SF_SPE and
10009         TARGET_DF_SPE.
10010         * config/rs6000/rs6000.md: Ditto.
10011         (floatdidf2, *floatdidf2_fpr): Merge.
10012         (move_from_CR_gt_bit): Delete.
10013         * config/rs6000/spe.md: Replace TARGET_FPRS by 1 and simplify.
10014         (E500_CR_IOR_COMPARE): Delete.
10015         (All patterns that require !TARGET_FPRS): Delete.
10016         * config/rs6000/vsx.md: Replace TARGET_FPRS by 1 and simplify.
10018 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
10020         * passes.def (pass_iv_canon): Move before pass_loop_distribution.
10022 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
10024         * graphds.c (add_edge): Intitialize edge's attached data.
10025         (foll_in_subgraph, dfs_fst_edge, dfs_next_edge): New function
10026         pointer parameter.  Call pointed function on each edge during
10027         graph traversing.  Skip traversing the edge when the function
10028         returns true.
10029         (graphds_dfs, graphds_scc): Ditto.
10030         (for_each_edge): New parameter.  Pass the new parameter to callback
10031         function.
10032         * graphds.h (skip_edge_callback): New function pointer type.
10033         (graphds_dfs, graphds_scc): New function pointer parameter.
10034         (graphds_edge_callback, for_each_edge): New parameter.
10036 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
10038         * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Factor
10039         out code checking if runtime alias check is possible to below ...
10040         Call the new function.
10041         * tree-data-ref.c (runtime_alias_check_p): ... to new function.
10042         * tree-data-ref.h (runtime_alias_check_p): New decalaration.
10044 2017-06-07  Marek Polacek  <polacek@redhat.com>
10046         PR sanitizer/80932
10047         * fold-const.c (extract_muldiv_1) <case MINUS_EXPR>: Add
10048         TYPE_OVERFLOW_WRAPS check.
10050 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
10052         * tree-vect-loop-manip.c (vect_do_peeling): Don't skip vector loop
10053         if versioning is required.
10054         * tree-vect-loop.c (vect_analyze_loop_2): Merge niter check for loop
10055         peeling with the check for versioning.
10057 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
10059         * tree-vectorizer.h (vect_build_loop_niters): New parameter.
10060         * tree-vect-loop-manip.c (vect_build_loop_niters): New parameter.
10061         Set true to new parameter if new ssa variable is defined.
10062         (vect_gen_vector_loop_niters): Refactor.  Set range information
10063         for the new vector loop bound variable.
10064         (vect_do_peeling): Ditto.
10066 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
10068         * tree-affine.c (ssa.h): Include header file.
10069         (tree_to_aff_combination): Handle (T1)(X - CST) when inner type
10070         has wrapping overflow behavior.
10072 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
10074         * tree-affine.c (tree_to_aff_combination): Handle (T1)(X + X).
10076 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
10078         (aff_combination_expand): Move (T1)(X *+- CST) simplification to ...
10079         (tree_to_aff_combination): ... here.
10081 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
10083         * tree-ssa-loop-ivopts.c (ivopts_estimate_reg_pressure): New
10084         reg_pressure model function.
10085         (ivopts_global_cost_for_size): Delete.
10086         (determine_set_costs, iv_ca_recount_cost): Call new model function
10087         ivopts_estimate_reg_pressure.
10089 2017-06-07  Tamar Christina  <tamar.christina@arm.com>
10091         * config/aarch64/aarch64.c (aarch64_rtx_costs): Make sdiv more
10092         expensive than udiv.  Remove floating point cases from mod.
10094 2017-06-07  Tamar Christina  <tamar.christina@arm.com>
10096         * config/arm/aarch-cost-tables.h (cortexa53_extra_cost):
10097         Increase idiv cost.
10099 2017-06-07  Tamar Christina  <tamar.christina@arm.com>
10101         * config/aarch64/aarch64.md
10102         (copysignsf3): Fix mask generation.
10104 2017-06-07  Jakub Jelinek  <jakub@redhat.com>
10106         * dumpfile.h (enum tree_dump_index): Rename TDI_generic to
10107         TDI_gimple.
10108         (class dump_manager): Add register_dumps method.
10109         * dumpfile.c: Include langhooks.h.
10110         (dump_files): Use 0 instead of 3/4/5 for TDI_{original,gimple,nested}.
10111         (FIRST_AUTO_NUMBERED_DUMP): Decrease to 1.
10112         (FIRST_ME_AUTO_NUMBERED_DUMP): Define.
10113         (dump_manager::dump_register): Start with 512 entries instead of 32.
10114         (dump_manager::register_dumps): New method.
10115         * toplev.c (general_init): Instead of invoking register_dumps
10116         langhook, invoke register_dumps method on the dump manager.
10117         * gimplify.c (gimplify_function_tree): Use TDI_gimple instead of
10118         TDI_generic.
10120 2017-06-07  Richard Sandiford  <richard.sandiford@linaro.org>
10122         * doc/md.texi: Clarify the restrictions on a define_insn condition.
10123         Say that # requires an associated define_split to exist, and that
10124         the define_split must be suitable for use after register allocation.
10126 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
10128         * cfgbuild.c (find_bb_boundaries): Initialize profile of split blocks.
10129         (compute_outgoing_frequencies): Also initialize zero counts.
10130         (find_many_sub_basic_blocks): Do not produce uninitialized profile
10131         around loops; preserve more of profile when nothing changes.
10133 2017-06-06  Jim Wilson  <jim.wilson@linaro.org>
10135         * config/aarch64/aarch64-cost-tables.h (qdf24xx_extra_costs): Move to
10136         here.
10137         * config/arm/aarch-cost-tables.h (qdf24xx_extra_costs): From here.
10138         * config/arm/arm-cpu-cdata.h: Regenerate.
10139         * config/arm/arm-cpu-data.h, config/arm/arm-cpu.h: Likewise.
10140         * config/arm/arm-tables.opt, config/arm/arm-tune.md: Likewise.
10141         * config/arm/arm-cpus.in: Delete falkor and qdf24xx entries.
10142         * config/arm/arm.c (arm_qdf24xx_tune): Delete.
10143         * config/arm/bpabi.h (BE8_LINK_SPEC): Delete falkor and qdf24xx
10144         support.
10145         * config/arm/t-aprofile (MULTILIB_MATCHES): Delete falkor and qdf24xx
10146         support.
10147         * config/arm/t-rmprofile: Likewise.
10148         * doc/invoke.texi (ARM Options): Drop falkor and qdf24xx support.
10150 2017-06-06  David S. Miller  <davem@davemloft.net>
10152         PR target/80968
10153         * config/sparc/sparc.c (sparc_expand_prologue): Emit frame
10154         blockage if function uses alloca.
10156 2017-06-06  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
10158         * tree-ssa-loop-prefetch.c (struct mem_ref_group, struct mem_ref):
10159         New "uid" fields to hold pretty-print IDs of group and ref.
10160         Memory references are now identified as <group_id>:<ref_id>
10161         instead of using [random] addresses.
10162         (dump_mem_details): Simplify, no functional change.
10163         (dump_mem_ref): Simplify and make output more concise.
10164         Replace couple of fprintf's throughout code with calls to dump_mem_ref.
10165         (find_or_create_group): Initialize group uid.
10166         (record_ref): Initialize ref uid.  Improve debug output.
10167         (prune_group_by_reuse, should_issue_prefetch_p,)
10168         (should_issue_prefetch_p, schedule_prefetches, issue_prefetch_ref,)
10169         (mark_nontemporal_store, determine_loop_nest_reuse):
10170         Improve debug output.
10172 2017-06-06  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
10174         * dbgcnt.def (prefetch): New debug counter.
10175         * tree-ssa-loop-prefetch.c (dbgcnt.h): New include.
10176         (schedule_prefetches): Stop issueing prefetches if debug counter
10177         tripped.
10179 2017-06-06  Tom de Vries  <tom@codesourcery.com>
10181         * doc/sourcebuild.texi (Testsuites, C Language Testsuites,
10182         gcc.c-torture/compile): Remove mention of NO_LABEL_VALUES in fixme.
10184 2017-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10186         * config/aarch64/atomics.md (atomic_compare_and_swap<mode> expander):
10187         Use aarch64_reg_or_zero predicate for operand 4.
10188         (aarch64_compare_and_swap<mode> define_insn_and_split):
10189         Use aarch64_reg_or_zero predicate for operand 3.  Add 'Z' constraint.
10190         (aarch64_store_exclusive<mode>): Likewise for operand 2.
10192 2017-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10194         * config/arm/arm.c (arm_compute_save_reg_mask): Rename into ...
10195         (arm_compute_save_core_reg_mask): This.
10196         (thumb1_compute_save_reg_mask): Rename into ...
10197         (thumb1_compute_save_core_reg_mask): This.
10198         (arm_compute_save_reg0_reg12_mask): Adapt comment.
10199         (arm_compute_frame_layout): Likewise.
10201 2017-06-06  Richard Biener  <rguenther@suse.de>
10203         PR tree-optimization/80974
10204         * tree-ssa-sccvn.c (set_ssa_val_to): Do not change but only
10205         keep or clear leaders SSA info.
10207 2017-06-06  Tom de Vries  <tom@codesourcery.com>
10209         * config/nvptx/nvptx.c (split_mode_p): New function.
10210         (nvptx_declare_function_name, nvptx_print_operand): Use split_mode_p.
10212 2017-06-06  Tom de Vries  <tom@codesourcery.com>
10214         * config/nvptx/nvptx.c (nvptx_print_operand): Use maybe_split_mode.
10216 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
10218         PR bootstrap/80978
10219         * tree-cfg.c (execute_fixup_cfg): Fix condition on when to rescale
10220         profile.
10222 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
10224         * shrink-wrap.c (handle_simple_exit): Update profile.
10225         (try_shrink_wrapping): Upate profile.
10227 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
10229         * predict.c (tree_estimate_probability_bb): Add LOCAL_ONLY.
10230         (tree_guess_outgoing_edge_probabilities): New.
10231         * predict.h (tree_guess_outgoing_edge_probabilities): Declare.
10232         * tree-cfg.c (gimple_find_sub_bbs): Propagate profile.
10234 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
10236         * ipa-split.c (split_function): Initialize return bb profile.
10238 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
10240         * profile.c (compute_branch_probabilities): Also initialize
10241         EXIT_BLOCK profile.
10243 2017-06-06  Richard Biener  <rguenther@suse.de>
10245         PR tree-optimization/80928
10246         * tree-vect-loop.c (vect_update_vf_for_slp): Amend dumps.
10247         (vect_analyze_loop_operations): Properly guard analysis for
10248         pure SLP case.
10249         (vect_transform_loop): Likewise.
10250         (vect_analyze_loop_2): Also reset SLP type on PHIs.
10251         (vect_model_induction_cost): Do not cost for pure SLP.
10252         (vectorizable_induction): Pass in SLP node, implement SLP vectorization
10253         of induction in inner loop vectorization.
10254         * tree-vect-slp.c (vect_create_new_slp_node): Handle PHIs.
10255         (vect_get_and_check_slp_defs): Handle vect_induction_def.
10256         (vect_build_slp_tree): Likewise.  Handle PHIs as terminating the
10257         recursion.
10258         (vect_analyze_slp_cost_1): Cost induction.
10259         (vect_detect_hybrid_slp_stmts): Handle PHIs.
10260         (vect_get_slp_vect_defs): Likewise.
10261         * tree-vect-stmts.c (vect_analyze_stmt): Handle induction.
10262         (vect_transform_stmt): Handle SLP reductions.
10263         * tree-vectorizer.h (vectorizable_induction): Adjust.
10265 2017-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
10267         * config/rs6000/rs6000.c (make_resolver_func): Update
10268         init_lowered_empty_function call.
10270 2017-06-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10272         * doc/invoke.texi: Document the -fprofile-abs-path option.
10273         * common.opt (fprofile-abs-path): New option.
10274         * gcov-io.h (gcov_write_filename): Declare.
10275         * gcov-io.c (gcov_write_filename): New function.
10276         * coverage.c (coverage_begin_function): Use gcov_write_filename.
10277         * profile.c (output_location): Likewise.
10279 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
10281         * shring-wrap.c: Revert accidental commit.
10283 2017-06-05  Volker Reichelt  <v.reichelt@netcologne.de>
10285         * doc/invoke.texi (-Wduplicated-branches): Add to warning list.
10287 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
10289         * cfgexpand.c (expand_gimple_tailcall): Initialize profile of
10290         new edge.
10291         * ipa-inline.c (want_inline_self_recursive_call_p): Watch for missing
10292         profile in callgraph edge.
10293         * profile-count.h (apply_probability): If THIS is 0, then result is 0
10294         (apply_scale): Likewise.
10295         * tree-inline.c (copy_bb, copy_edges_for_bb, copy_cfg_body):
10296         Also scale profile when inlining function with zero profile.
10297         (initialize_cfun): Update exit block profile even when it is zero.
10298         * tree-ssa-threadupdate.c (clear_counts_path): Handle correctly case
10299         when profile is read.
10301 2017-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
10303         * config/rs6000/rs6000.c (toplevel): Include attribs.h.
10304         (CLONE_*): New constants to define the processors we can generate
10305         code for with the target_clone attribute.
10306         (rs6000_clone_map): New array to identify which clone processors
10307         the current program is running on.
10308         (TARGET_COMPARE_VERSION_PRIORITY): Define to enable the
10309         target_clone attribute.
10310         (TARGET_GENERATE_VERSION_DISPATCHER_BODY): Likewise.
10311         (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): Likewise.
10312         (TARGET_OPTION_FUNCTION_VERSIONS): Likewise.
10313         (cpu_expand_builtin): Add support for target_clone attribute.
10314         (rs6000_valid_attribute_p): Allow "default" attribute.
10315         (get_decl_name): New debug function to simplify printing the
10316         current function name in debugging statements.
10317         (rs6000_clone_priority): New functions to support the target_clone
10318         attribute, and be able to generate code to switch between ISA 2.05
10319         through ISA 3.0 (power6 through power9).
10320         (rs6000_compare_version_priority): Likewise.
10321         (rs6000_get_function_versions_dispatcher): Likewise.
10322         (make_resolver_func): Likewise.
10323         (add_condition_to_bb): Likewise.
10324         (dispatch_function_versions): Likewise.
10325         (rs6000_generate_version_dispatcher_body): Likewise.
10326         (rs6000_can_inline_p): Call get_decl_name for debugging usage.
10327         (fusion_gpr_load_p): Fix a spacing issue.
10328         * doc/extend.texi (Common Function Attributes): Document that the
10329         PowerPC supports the target_clone attribute.
10331 2017-06-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10333         * config/arm/arm.h: explain F symbol found in description of ARM
10334         register allocation in its legend.
10336 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
10338         * config/mips/frame-header-opt.c: Include profile-count.h.
10339         * config/riscv/riscv.c: Include profile-count.h
10341 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
10343         * tree-ssa-loop-im.c (execute_sm_if_changed): Add FLAG_BBS parameter;
10344         update profile.
10345         (sm_set_flag_if_changed): Add bbs field.
10346         (execute_sm_if_changed_flag_set): Pass BBS.
10347         (execute_sm): Update.
10349 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10351         * config/aarch64/aarch64-simd.md (aarch64_store_lane0<mode>):
10352         New pattern.
10354 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10356         * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): New define_insn.
10357         (peephole2): New peephole2 to emit the above.
10358         * config/aarch64/predicates.md (aarch64_sub_immediate): New predicate.
10360 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10362         * config/aarch64/aarch64.c (define_peephole2 above
10363         *sub_<shift>_<mode>): New peephole.
10365 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
10367         * config/i386/i386.c (make_resolver_func): Update.
10368         * Makefile.in: Add profile-count.h and profile-count.o
10369         * auto-profile.c (afdo_indirect_call): Update to new API.
10370         (afdo_set_bb_count): Update.
10371         (afdo_propagate_edge): Update.
10372         (afdo_propagate_circuit): Update.
10373         (afdo_calculate_branch_prob): Update.
10374         (afdo_annotate_cfg): Update.
10375         * basic-block.h: Include profile-count.h
10376         (struct edge_def): Turn count to profile_count.
10377         (struct basic_block_def): Likewie.
10378         (REG_BR_PROB_BASE): Move to profile-count.h
10379         (RDIV): Move to profile-count.h
10380         * bb-reorder.c (max_entry_count): Turn to profile_count.
10381         (find_traces): Update.
10382         (rotate_loop):Update.
10383         (connect_traces):Update.
10384         (sanitize_hot_paths):Update.
10385         * bt-load.c (migrate_btr_defs): Update.
10386         * cfg.c (RDIV): Remove.
10387         (init_flow): Use alloc_block.
10388         (alloc_block): Uninitialize count.
10389         (unchecked_make_edge): Uninitialize count.
10390         (check_bb_profile): Update.
10391         (dump_edge_info): Update.
10392         (dump_bb_info): Update.
10393         (update_bb_profile_for_threading): Update.
10394         (scale_bbs_frequencies_int): Update.
10395         (scale_bbs_frequencies_gcov_type): Update.
10396         (scale_bbs_frequencies_profile_count): New.
10397         * cfg.h (update_bb_profile_for_threading): Update.
10398         (scale_bbs_frequencies_profile_count): Declare.
10399         * cfgbuild.c (compute_outgoing_frequencies): Update.
10400         (find_many_sub_basic_blocks): Update.
10401         * cfgcleanup.c (try_forward_edges): Update.
10402         (try_crossjump_to_edge): Update.
10403         * cfgexpand.c (expand_gimple_tailcall): Update.
10404         (construct_exit_block): Update.
10405         * cfghooks.c (verify_flow_info): Update.
10406         (dump_bb_for_graph): Update.
10407         (split_edge): Update.
10408         (make_forwarder_block): Update.
10409         (duplicate_block): Update.
10410         (account_profile_record): Update.
10411         * cfgloop.c (find_subloop_latch_edge_by_profile): Update.
10412         (get_estimated_loop_iterations): Update.
10413         * cfgloopanal.c (expected_loop_iterations_unbounded): Update.
10414         (single_likely_exit): Update.
10415         * cfgloopmanip.c (scale_loop_profile): Update.
10416         (loopify): Update.
10417         (set_zero_probability): Update.
10418         (lv_adjust_loop_entry_edge): Update.
10419         * cfgrtl.c (force_nonfallthru_and_redirect): Update.
10420         (purge_dead_edges): Update.
10421         (rtl_account_profile_record): Update.
10422         * cgraph.c (cgraph_node::create): Uninitialize count.
10423         (symbol_table::create_edge): Uninitialize count.
10424         (cgraph_update_edges_for_call_stmt_node): Update.
10425         (cgraph_edge::dump_edge_flags): Update.
10426         (cgraph_node::dump): Update.
10427         (cgraph_edge::maybe_hot_p): Update.
10428         * cgraph.h: Include profile-count.h
10429         (create_clone), create_edge, create_indirect_edge): Update.
10430         (cgraph_node): Turn count to profile_count.
10431         (cgraph_edge0: Likewise.
10432         (make_speculative, clone): Update.
10433         (create_edge): Update.
10434         (init_lowered_empty_function): Update.
10435         * cgraphclones.c (cgraph_edge::clone): Update.
10436         (duplicate_thunk_for_node): Update.
10437         (cgraph_node::create_clone): Update.
10438         * cgraphunit.c (cgraph_node::analyze): Update.
10439         (cgraph_node::expand_thunk): Update.
10440         * final.c (dump_basic_block_info): Update.
10441         * gimple-streamer-in.c (input_bb): Update.
10442         * gimple-streamer-out.c (output_bb): Update.
10443         * graphite.c (print_global_statistics): Update.
10444         (print_graphite_scop_statistics): Update.
10445         * hsa-brig.c: Include basic-block.h.
10446         * hsa-dump.c: Include basic-block.h.
10447         * hsa-gen.c (T sum_slice): Update.
10448         (convert_switch_statements):Update.
10449         * hsa-regalloc.c: Include basic-block.h.
10450         * ipa-chkp.c (chkp_produce_thunks): Update.
10451         * ipa-cp.c (struct caller_statistics): Update.
10452         (init_caller_stats): Update.
10453         (gather_caller_stats): Update.
10454         (ipcp_cloning_candidate_p): Update.
10455         (good_cloning_opportunity_p): Update.
10456         (get_info_about_necessary_edges): Update.
10457         (dump_profile_updates): Update.
10458         (update_profiling_info): Update.
10459         (update_specialized_profile): Update.
10460         (perhaps_add_new_callers): Update.
10461         (decide_about_value): Update.
10462         (ipa_cp_c_finalize): Update.
10463         * ipa-devirt.c (struct odr_type_warn_count): Update.
10464         (struct decl_warn_count): Update.
10465         (struct final_warning_record): Update.
10466         (possible_polymorphic_call_targets): Update.
10467         (ipa_devirt): Update.
10468         * ipa-fnsummary.c (redirect_to_unreachable): Update.
10469         * ipa-icf.c (sem_function::merge): Update.
10470         * ipa-inline-analysis.c (do_estimate_edge_time): Update.
10471         * ipa-inline.c (compute_uninlined_call_time): Update.
10472         (compute_inlined_call_time): Update.
10473         (want_inline_small_function_p): Update.
10474         (want_inline_self_recursive_call_p): Update.
10475         (edge_badness): Update.
10476         (lookup_recursive_calls): Update.
10477         (recursive_inlining): Update.
10478         (inline_small_functions): Update.
10479         (dump_overall_stats): Update.
10480         (dump_inline_stats): Update.
10481         * ipa-profile.c (ipa_profile_generate_summary): Update.
10482         (ipa_propagate_frequency): Update.
10483         (ipa_profile): Update.
10484         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
10485         * ipa-utils.c (ipa_merge_profiles): Update.
10486         * loop-doloop.c (doloop_modify): Update.
10487         * loop-unroll.c (report_unroll): Update.
10488         (unroll_loop_runtime_iterations): Update.
10489         * lto-cgraph.c (lto_output_edge): Update.
10490         (lto_output_node): Update.
10491         (input_node): Update.
10492         (input_edge): Update.
10493         (merge_profile_summaries): Update.
10494         * lto-streamer-in.c (input_cfg): Update.
10495         * lto-streamer-out.c (output_cfg): Update.
10496         * mcf.c (create_fixup_graph): Update.
10497         (adjust_cfg_counts): Update.
10498         (sum_edge_counts): Update.
10499         * modulo-sched.c (sms_schedule): Update.
10500         * postreload-gcse.c (eliminate_partially_redundant_load): Update.
10501         * predict.c (maybe_hot_count_p): Update.
10502         (probably_never_executed): Update.
10503         (dump_prediction): Update.
10504         (combine_predictions_for_bb): Update.
10505         (propagate_freq): Update.
10506         (handle_missing_profiles): Update.
10507         (counts_to_freqs): Update.
10508         (rebuild_frequencies): Update.
10509         (force_edge_cold): Update.
10510         * predict.h: Include profile-count.h
10511         (maybe_hot_count_p, counts_to_freqs): UPdate.
10512         * print-rtl-function.c: Do not include cfg.h
10513         * print-rtl.c: Include basic-block.h
10514         * profile-count.c: New file.
10515         * profile-count.h: New file.
10516         * profile.c (is_edge_inconsistent): Update.
10517         (correct_negative_edge_counts): Update.
10518         (is_inconsistent): Update.
10519         (set_bb_counts): Update.
10520         (read_profile_edge_counts): Update.
10521         (compute_frequency_overlap): Update.
10522         (compute_branch_probabilities): Update; Initialize and deinitialize
10523         gcov_count tables.
10524         (branch_prob): Update.
10525         * profile.h (bb_gcov_counts, edge_gcov_counts): New.
10526         (edge_gcov_count): New.
10527         (bb_gcov_count): New.
10528         * shrink-wrap.c (try_shrink_wrapping): Update.
10529         * tracer.c (better_p): Update.
10530         * trans-mem.c (expand_transaction): Update.
10531         (ipa_tm_insert_irr_call): Update.
10532         (ipa_tm_insert_gettmclone_call): Update.
10533         * tree-call-cdce.c: Update.
10534         * tree-cfg.c (gimple_duplicate_sese_region): Update.
10535         (gimple_duplicate_sese_tail): Update.
10536         (gimple_account_profile_record): Update.
10537         (execute_fixup_cfg): Update.
10538         * tree-inline.c (copy_bb): Update.
10539         (copy_edges_for_bb): Update.
10540         (initialize_cfun): Update.
10541         (freqs_to_counts): Update.
10542         (copy_cfg_body): Update.
10543         (expand_call_inline): Update.
10544         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
10545         * tree-ssa-loop-ivcanon.c (unloop_loops): Update.
10546         (try_unroll_loop_completely): Update.
10547         (try_peel_loop): Update.
10548         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
10549         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Update.
10550         * tree-ssa-loop-split.c (connect_loops): Update.
10551         * tree-ssa-loop-unswitch.c (hoist_guard): Update.
10552         * tree-ssa-reassoc.c (branch_fixup): Update.
10553         * tree-ssa-tail-merge.c (replace_block_by): Update.
10554         * tree-ssa-threadupdate.c (create_block_for_threading): Update.
10555         (compute_path_counts): Update.
10556         (update_profile): Update.
10557         (recompute_probabilities): Update.
10558         (update_joiner_offpath_counts): Update.
10559         (estimated_freqs_path): Update.
10560         (freqs_to_counts_path): Update.
10561         (clear_counts_path): Update.
10562         (ssa_fix_duplicate_block_edges): Update.
10563         (duplicate_thread_path): Update.
10564         * tree-switch-conversion.c (case_bit_test_cmp): Update.
10565         (struct switch_conv_info): Update.
10566         * tree-tailcall.c (decrease_profile): Update.
10567         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
10568         * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
10569         * value-prof.c (check_counter): Update.
10570         (gimple_divmod_fixed_value): Update.
10571         (gimple_mod_pow2): Update.
10572         (gimple_mod_subtract): Update.
10573         (gimple_ic_transform): Update.
10574         (gimple_stringop_fixed_value): Update.
10575         * value-prof.h (gimple_ic): Update.
10577 2017-06-02  Carl Love  <cel@us.ibm.com>
10579         * config/rs6000/rs6000-c: Add support for built-in functions
10580         vector double vec_doublee (vector signed int);
10581         vector double vec_doublee (vector unsigned int);
10582         vector double vec_doublee (vector float);
10583         vector double vec_doubleh (vector signed int);
10584         vector double vec_doubleh (vector unsigned int);
10585         vector double vec_doubleh (vector float);
10586         vector double vec_doublel (vector signed int);
10587         vector double vec_doublel (vector unsigned int);
10588         vector double vec_doublel (vector float);
10589         vector double vec_doubleo (vector signed int);
10590         vector double vec_doubleo (vector unsigned int);
10591         vector double vec_doubleo (vector float);.
10592         * config/rs6000/rs6000-builtin.def: Add definitions for DOUBLEE,
10593         DOUBLEO, DOUBLEH, DOUBLEL, UNS_DOUBLEO, UNS_DOUBLEE, UNS_DOUBLEH,
10594         UNS_DOUBLEL.
10595         * config/rs6000/altivec.md: Add code generator for doublee<mode>2,
10596         unsdoubleev4si2, doubleo<mode>2, unsdoubleov4si2, doubleh<mode>2,
10597         unsdoublehv4si2, doublel<mode>2, unsdoublelv4si2, add mode attribute
10598         VS_sxwsp.
10599         * config/rs6000/altivec.h: Add define for vec_doublee, vec_doubleo,
10600         vec_doublel, vec_doubleh.
10601         * doc/extend.texi: Update the built-in documentation file for the
10602         new built-in functions.
10604 2017-06-02  David Malcolm  <dmalcolm@redhat.com>
10606         PR jit/80954
10607         * ipa-inline-analysis.c (free_growth_caches): Set
10608         edge_removal_hook_holder to NULL after removing it.
10610 2017-06-02  Sudakshina Das  <sudi.das@arm.com>
10612         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
10613         comparision with zero.
10615 2017-06-02  Will Schmidt  <will_schmidt@vnet.ibm.com>
10616         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
10617         for early expansion of vec_min and vec_max builtins.
10618         (builtin_function_type): Add min/max unsigned variants to those
10619         identified as having unsigned arguments.
10621 2017-06-02  Olivier Hainque  <hainque@adacore.com>
10623         * config/vx-common.h (DWARF_UNWIND_INFO): Switch #define to 1.
10625 2017-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10627         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
10628         Use VALL_F16 iterator rather than VALL.
10630 2017-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10632         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap):
10633         Emit CBNZ inside loop when doing a strong exchange and comparing
10634         against zero.  Generate the CC flags after the loop.
10636 2017-06-02  David Edelsohn  <dje.gcc@gmail.com>
10638         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE_STR): New.
10639         (dl_section_ref): New.
10640         (dwarf2out_finish): Copy debug_line_section_label to dl_section_ref.
10641         On AIX, append an expression to subtract the size of the
10642         section length to dl_section_ref.
10644 2017-06-02  Will Schmidt  <will_schmidt@vnet.ibm.com>
10646         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
10647         for early expansion of vector absolute builtins.
10649 2017-06-02  Richard Biener  <rguenther@suse.de>
10651         * tree-vect-slp.c (vect_detect_hybrid_slp_2): Match up
10652         what we consider a relevant use stmt with vect_detect_hybrid_slp_stmts.
10654 2017-06-02  Richard Biener  <rguenther@suse.de>
10656         PR tree-optimization/80948
10657         * tree-tailcall.c (find_tail_calls): Track stmts to move in
10658         stmt order as well.
10660 2017-06-02  Richard Biener  <rguenther@suse.de>
10662         * tree-vect-loop.c (vect_analyze_loop_operations): Not relevant
10663         PHIs are ok.
10664         * tree-vect-stmts.c (process_use): Do not mark backedge defs
10665         for inductions as relevant.
10667 2017-06-02  Richard Biener  <rguenther@suse.de>
10669         * tree-vect-loop.c (get_initial_def_for_induction): Inline into ...
10670         (vectorizable_induction): ... this.  Remove dead code.
10672 2017-06-02  Eric Botcazou  <ebotcazou@adacore.com>
10674         * builtins. (expand_builtin_alloca): Remove second parameter and
10675         infer its value from the first parameter instead.
10676         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust call to above.
10678 2017-06-02  Jakub Jelinek  <jakub@redhat.com>
10680         PR rtl-optimization/80903
10681         * loop-doloop.c (add_test): Unshare sequence.
10683 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10685         * doc/invoke.texi: Document the -Wsizeof-pointer-div warning.
10687 2017-06-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10689         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers): Make
10690         static.
10691         (xlogue_layout::get_stack_space_used, xlogue_layout::s_instances,
10692         xlogue_layout::get_instance, logue_layout::xlogue_layout,
10693         sp_valid_at, fp_valid_at, choose_basereg): Formatting.
10694         (xlogue_layout::get_stub_rtx): Make static.
10695         (xlogue_layout::get_stub_name): Avoid const-cast, make static.
10696         (xlogue_layout::compute_stub_managed_regs): Rename to...
10697         (xlogue_layout::count_stub_managed_regs): ...this.
10698         (xlogue_layout::is_stub_managed_reg): New function.
10699         (xlogue_layout::m_stub_names): Rename to...
10700         (xlogue_layout::s_stub_names): ...this, make static.
10701         (xlogue_layout::STUB_INDEX_OFFSET, xlogue_layout::MIN_REGS,
10702         xlogue_layout::MAX_REGS, xlogue_layout::MAX_EXTRA_REGS,
10703         xlogue_layout::VARIANT_COUNT, xlogue_layout::STUB_NAME_MAX_LEN,
10704         xlogue_layout::s_stub_names): Instantiate statics.
10705         (stub_managed_regs): Remove.
10706         (ix86_save_reg): Use xlogue_layout::compute_stub_managed_regs.
10707         (disable_call_ms2sysv_xlogues): Rename to...
10708         (warn_once_call_ms2sysv_xlogues): ...this, and warn only once.
10709         (ix86_initial_elimination_offset, ix86_expand_call): Fix call_ms2sysv
10710         warning logic.
10711         (ix86_static_chain): Make sure that ix86_static_chain_on_stack can't
10712         change after reload_completed.
10713         (ix86_can_use_return_insn_p): Use the ix86_frame data structure
10714         directly.
10715         (ix86_expand_prologue): Likewise.
10716         (ix86_expand_epilogue): Likewise.
10717         (ix86_expand_split_stack_prologue): Likewise.
10718         (ix86_compute_frame_layout): Remove frame parameter ...
10719         (TARGET_COMPUTE_FRAME_LAYOUT): ... and export it as a target hook.
10720         (ix86_finalize_stack_realign_flags): Call ix86_compute_frame_layout
10721         only if necessary.
10722         (ix86_init_machine_status): Don't set use_fast_prologue_epilogue_nregs.
10723         (ix86_frame): Move from here ...
10724         * config/i386/i386.h (ix86_frame): ... to here.
10725         (machine_function): Remove use_fast_prologue_epilogue_nregs, cache the
10726         complete ix86_frame data structure instead.  Remove some_ld_name.
10728 2017-06-01  Pierre-Marie de Rodat  <derodat@adacore.com>
10730         * dwarf2out.c (dwarf2out_late_global_decl): Add locations for
10731         symbols that hold a DECL_VALUE_EXPR.
10733 2017-06-01  Martin Jambor  <mjambor@suse.cz>
10735         PR tree-optimization/80898
10736         * tree-sra.c (process_subtree_disqualification): Removed.
10737         (disqualify_candidate): Do not acll
10738         process_subtree_disqualification.
10739         (subtree_mark_written_and_enqueue): New function.
10740         (propagate_all_subaccesses): Set grp_write of LHS subtree if the
10741         RHS has been disqualified and re-queue LHS if necessary.  Apart
10742         from that, ignore disqualified RHS.
10744 2017-06-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10746         * config/s390/s390.c (s390_emit_epilogue): Disable early return
10747         address fetch for z10 or later.
10749 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
10751         * config/arc/arc.md (tst_movb): Add guard when splitting.
10753 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
10755         * config/arc/arc.c (arc_can_eliminate): Test against
10756         arc_frame_pointer_needed.
10758 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
10760         * config/arc/arc.c (arc_expand_prologue): Emit a special barrier
10761         to prevent store reordering.
10762         * config/arc/arc.md (UNSPEC_ARC_STKTIE): Define.
10763         (type): Add block type.
10764         (stack_tie): Define special instruction to be used in
10765         expand_prologue.
10767 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
10769         * config/arc/arc.md (commutative_binary_comparison): Remove 'I'
10770         constraint. It is not valid for the pattern.
10771         (noncommutative_binary_comparison): Likewise.
10773 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
10775         * config/arc/simdext.md (movv2hi_insn): Change predicate to avoid
10776         scaled addresses.
10778 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
10780         * config/arc/arc.c (arc_conditional_register_usage): Allow r30 to
10781         be used by the reg-alloc.
10783 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
10785         * config/arc/arc.md (mulsi3): Avoid use of hard registers before
10786         reg-alloc when having mul64 or mul32x16 instructions.
10787         (mulsidi3): Likewise.
10788         (umulsidi3): Likewise.
10789         (mulsi32x16): New pattern.
10790         (mulsi64): Likewise.
10791         (mulsidi64): Likewise.
10792         (umulsidi64): Likewise.
10793         (MUL32x16_REG): Define.
10794         (mul64_600): Use MUL32x16_REG.
10795         (mac64_600): Likewise.
10796         (umul64_600): Likewise.
10797         (umac64_600): Likewise.
10799 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
10801         * config/arc/arc.md (mulsi3_700): Make it commutative.
10803 2017-06-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
10805         * config/sparc/sparc.md (*zero_extendsidi2_insn_sp64): Set insn
10806         type for movstouw.
10807         (*sign_extendsidi2_insn): Likewise for movstosw.
10809 2017-06-01  Pierre-Marie de Rodat  <derodat@adacore.com>
10811         * dwarf2out.c (get_discr_value): Call the get_debug_type hook on
10812         the type of the input discriminant value.  Convert the
10813         discriminant value of signedness vary.
10815 2017-06-01  Volker Reichelt  <v.reichelt@netcologne.de>
10817         * doc/invoke.texi (-Wcatch-value): Document new shortcut.
10818         Add to -Wall section.
10820 2017-06-01  Richard Biener  <rguenther@suse.de>
10822         PR middle-end/66313
10823         * fold-const.c (fold_plusminus_mult_expr): If the factored
10824         factor may be zero use a wrapping type for the inner operation.
10825         * tree-tailcall.c (independent_of_stmt_p): Pass in to_move bitmap
10826         and handle moved defs.
10827         (process_assignment): Properly guard the unary op case.  Return a
10828         tri-state indicating that moving the stmt before the call may allow
10829         to continue.  Pass through to_move.
10830         (find_tail_calls): Handle moving unrelated defs before
10831         the call.
10833 2017-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
10835         PR target/80618
10836         * config/rs6000/vector.md (*vector_uneq<mode>): Write the nor in the
10837         splitter result in the canonical way.
10839 2017-05-31  Uros Bizjak  <ubizjak@gmail.com>
10841         * config/i386/i386.md (*zero_extendsidi2): Enable alternative (?r, *Yj)
10842         also for 32bit target.  Update insn attributes.
10843         (zero-extendsidi2 splitter): Allow all registers for operand 1.
10845 2017-05-31  Sebastian Peryt  <sebastian.peryt@intel.com>
10847         * config/i386/avx512fintrin.h (_mm_mask_max_sd)
10848         (_mm_maskz_max_sd, _mm_mask_max_ss, _mm_maskz_max_ss)
10849         (_mm_mask_min_sd, _mm_maskz_min_sd, _mm_mask_min_ss)
10850         (_mm_maskz_min_ss): New intrinsics.
10852 2017-05-31  Martin Liska  <mliska@suse.cz>
10854         * tree-vect-loop.c (vect_create_epilog_for_reduction):
10855         Change comment style to one we normally use.
10856         (vectorizable_reduction): Likewise.
10857         (vectorizable_induction): Likewise.
10858         * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
10859         (vectorizable_call): Likewise.
10860         (vectorizable_simd_clone_call): Likewise.
10861         (vectorizable_conversion): Likewise.
10862         (vectorizable_assignment): Likewise.
10863         (vectorizable_shift): Likewise.
10864         (vectorizable_operation): Likewise.
10865         (vectorizable_store): Likewise.
10866         (vectorizable_load): Likewise.
10867         * tree-vectorizer.h: Likewise.
10869 2017-05-31  Alexander Monakov  <amonakov@ispras.ru>
10871         * passes.c (emergency_dump_function): New.
10872         * tree-pass.h (emergency_dump_function): Declare.
10873         * plugin.c (plugins_internal_error_function): Remove.
10874         * plugin.h (plugins_internal_error_function): Remove declaration.
10875         * toplev.c (internal_error_function): New static function.  Use it...
10876         (general_init): ...here.
10878 2017-05-31  Graham Markall  <graham.markall@embecosm.com>
10880         * config/arc/arc.c (arc_print_operand): Handle constant operands.
10881         (arc_rtx_costs): Add costs for new patterns.
10882         * config/arc/arc.md: Additional *add_n and *sub_n patterns.
10883         * config/arc/predicates.md: Add _1_2_3_operand predicate.
10885 2017-05-31  Richard Sandiford  <richard.sandiford@linaro.org>
10887         * tree-ssa-strlen.c (get_next_strinfo): New function.
10888         (get_stridx_plus_constant): Use it.
10889         (zero_length_string): Likewise.
10890         (adjust_related_strinfos): Likewise.
10891         (adjust_last_stmt): Likewise.
10893 2017-05-31  Richard Biener  <rguenther@suse.de>
10895         PR target/80880
10896         * config/i386/i386.c (ix86_expand_builtin): Remove assert
10897         for arg being an SSA name when expanding IX86_BUILTIN_BNDRET.
10899 2017-05-31  Richard Sandiford  <richard.sandiford@linaro.org>
10901         * tree-vect-data-refs.c (vect_find_same_alignment_drs): Remove
10902         loop_vinfo argument and use of dependence distance vectors.
10903         Check instead whether the two references differ only in their
10904         initial value and assume that they have the same alignment if the
10905         difference is a multiple of the vector alignment.
10906         (vect_analyze_data_refs_alignment): Update call accordingly.
10908 2017-05-31  Martin Liska  <mliska@suse.cz>
10910         PR target/79155
10911         * config/i386/cpuid.h: Fix typo in a comment in cpuid.h.
10913 2017-05-31  Bin Cheng  <bin.cheng@arm.com>
10915         * tree-vect-loop-manip.c (create_intersect_range_checks_index)
10916         (create_intersect_range_checks): Move from ...
10917         * tree-data-ref.c (create_intersect_range_checks_index)
10918         (create_intersect_range_checks): ... to here.
10919         (create_runtime_alias_checks): New function factored from ...
10920         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): ...
10921         here.  Call above function.
10922         * tree-data-ref.h (create_runtime_alias_checks): New function.
10924 2017-05-31  Bin Cheng  <bin.cheng@arm.com>
10926         * tree-data-ref.c (prune_runtime_alias_test_list): Relax minimal
10927         segment length for dr_b and compute it in wide_int.
10929 2017-05-31  Richard Biener  <rguenther@suse.de>
10931         PR tree-optimization/80906
10932         * graphite-isl-ast-to-gimple.c (copy_loop_close_phi_nodes): Get
10933         and pass through iv_map.
10934         (copy_bb_and_scalar_dependences): Adjust.
10935         (translate_pending_phi_nodes): Likewise.
10936         (copy_loop_close_phi_args): Handle code-generating IVs instead
10937         of ICEing.
10939 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
10941         * diagnostic-color.c (color_dict): Add "type-diff".
10942         (parse_gcc_colors): Update comment.
10943         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
10944         -fdiagnostics-show-template-tree and -fno-elide-type.
10945         (GCC_COLORS): Add type-diff to example.
10946         (type-diff=): New.
10947         (-fdiagnostics-show-template-tree): New.
10948         (-fno-elide-type): New.
10949         * pretty-print.c (pp_format): Pass quote and formatters[argno] to
10950         the pp_format_decoder callback.  Call any m_format_postprocessor's
10951         "handle" method.
10952         (pretty_printer::pretty_printer): Initialize
10953         m_format_postprocessor.
10954         (pretty_printer::~pretty_printer): Delete any
10955         m_format_postprocessor.
10956         * pretty-print.h (printer_fn): Add bool and const char ** parameters.
10957         (class format_postprocessor): New class.
10958         (struct pretty_printer::format_decoder): Document the new parameters.
10959         (struct pretty_printer::m_format_postprocessor): New field.
10960         * tree-diagnostic.c (default_tree_printer): Update for new
10961         bool and const char ** params.
10962         * tree-diagnostic.h (default_tree_printer): Likewise.
10964 2017-05-30  Segher Boessenkool  <segher@kernel.crashing.org>
10966         * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand): Delete.
10967         (lwa_operand): Delete rs6000_gen_cell_microcode test.
10968         * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
10969         rs6000_gen_cell_microcode code.
10970         (rs6000_final_prescan_insn): Delete.
10971         (rs6000_opt_vars): Delete the "gen-cell-microcode" and
10972         "warn-cell-microcode" entries.
10973         * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Delete.
10974         * config/rs6000/rs6000.md: Delete rs6000_gen_cell_microcode tests
10975         throughout.  Change cc_reg_not_micro_cr0_operand to
10976         cc_reg_not_cr0_operand throughout.
10977         (*extendhi<mode>2_noload): Delete.
10978         * config/rs6000/rs6000.opt (mgen-cell-microcode): Replace by stub.
10979         (mwarn-cell-microcode): Delete.
10980         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
10981         -mgen-cell-microcode and -mwarn-cell-microcode.
10983 2017-05-30  Uros Bizjak  <ubizjak@gmail.com>
10985         PR target/80833
10986         * config/i386/constraints.md (Yd): New constraint.
10987         (Ye): Ditto.
10988         * config/i386/i386.md (*movti_internal): Add (?r, Ye)
10989         and (?Yd, r) alternatives.  Update insn attributes.
10990         * config/i386/i386.md (*movti_internal): Add (?r, *Ye)
10991         and (?*Yd, r) alternatives.  Update insn attributes.
10992         (double-mode inter-unit splitters): Add new GR<->XMM splitters.
10994 2017-05-30  Pierre-Marie de Rodat  <derodat@adacore.com>
10996         * gimplify.c (gimplify_modify_expr): Don't create a
10997         DECL_DEBUG_EXPR link if *FROM_P does not belong to the current
10998         function.
11000 2017-05-30  Wilco Dijkstra  <wdijkstr@arm.com>
11002         * config/arm/arm-builtins.c (arm_expand_builtin): Remove const.
11004 2017-05-30  Richard Biener  <rguenther@suse.de>
11006         * tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type
11007         and reduc_def fields.
11008         (STMT_VINFO_REDUC_TYPE): New define.
11009         (STMT_VINFO_REDUC_DEF): Likewise.
11010         (vect_force_simple_reduction): Adjust prototype.
11011         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Adjust.
11012         (vect_is_simple_reduction): Remove check_reduction argument.
11013         (vect_force_simple_reduction): Adjust and set
11014         STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
11015         (vectorizable_reduction): Do not re-do reduction analysis
11016         but use STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
11017         * tree-parloops.c (gather_scalar_reductions): Adjust.
11019 2017-05-30  Richard Biener  <rguenther@suse.de>
11021         PR middle-end/80901
11022         * cfgexpand.c (expand_gimple_cond): Match up loop fixup with
11023         split_edge code.
11025 2017-05-24  Robin Dapp  <rdapp@linux.vnet.ibm.com>
11027         * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
11028         Introduce unknown_misalignment parameter and remove vf.
11029         (vect_peeling_hash_get_lowest_cost):
11030         Pass unknown_misalignment parameter.
11031         (vect_enhance_data_refs_alignment):
11032         Fix unsupportable data ref treatment.
11034 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
11036         * tree-vect-data-refs.c (vect_get_data_access_cost):
11037         Workaround for SLP handling.
11038         (vect_enhance_data_refs_alignment):
11039         Compute costs for doing no peeling at all, compare to the best
11040         peeling costs so far and avoid peeling if cheaper.
11042 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
11044         * tree-vect-data-refs.c (vect_peeling_hash_choose_best_peeling):
11045         Return peeling info and set costs to zero for unlimited cost
11046         model.
11047         (vect_enhance_data_refs_alignment): Also inspect all datarefs
11048         with unknown misalignment. Compute and costs for unknown
11049         misalignment, compare them to the costs for known misalignment
11050         and choose the cheapest for peeling.
11052 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
11054         * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Rename.
11055         (vect_get_peeling_costs_all_drs): Create function.
11056         (vect_peeling_hash_get_lowest_cost):
11057         Use vect_get_peeling_costs_all_drs.
11058         (vect_peeling_supportable): Create function.
11059         (vect_enhance_data_refs_alignment): Use vect_peeling_supportable.
11061 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
11063         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Create
11064         DR_HAS_NEGATIVE_STEP.
11065         (vect_update_misalignment_for_peel): Define DR_MISALIGNMENT.
11066         (vect_enhance_data_refs_alignment): Use.
11067         (vect_duplicate_ssa_name_ptr_info): Use.
11068         * tree-vectorizer.h (dr_misalignment): Use.
11069         (known_alignment_for_access_p): Use.
11071 2017-05-30  Jozef Lawrynowicz  <jozef.l@somniumtech.com>
11073         PR target/78838
11074         * config/msp430/msp430.c (gen_prefix): Return NULL when section name is
11075         .lowtext.
11076         (has_section_name): New function.
11078 2017-05-30  Martin Liska  <mliska@suse.cz>
11080         PR other/80909
11081         * auto-profile.c (get_function_decl_from_block): Fix
11082         parenthesis.
11084 2017-05-30  Richard Biener  <rguenther@suse.de>
11086         PR middle-end/80876
11087         * cfgexpand.c (expand_gimple_cond): Fixup preserving loops again.
11089 2017-05-30  Martin Liska  <mliska@suse.cz>
11091         * dumpfile.c: Use newly added macro DUMP_FILE_INFO.
11092         * dumpfile.h (struct dump_file_info): Remove ctors.
11094 2017-05-30  Martin Liska  <mliska@suse.cz>
11096         * predict.def: Fix GNU coding style.
11098 2017-05-29  Max Filippov  <jcmvbkbc@gmail.com>
11100         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
11101         Mark 'to' argument with ATTRIBUTE_UNUSED.
11103 2017-05-29  Max Filippov  <jcmvbkbc@gmail.com>
11105         * config/xtensa/xtensa.c (xtensa_emit_call): Use
11106         HOST_WIDE_INT_PRINT_HEX instead of 0x%lx format string.
11107         (print_operand): Use HOST_WIDE_INT_PRINT_DEC instead of %ld
11108         format string.
11110 2017-05-29  Eric Botcazou  <ebotcazou@adacore.com>
11112         * doc/install.texi (Options specification): Restore entry of
11113         --enable-sjlj-exceptions.
11115 2017-05-27  Michael Eager  <eager@eagercon.com>
11117         Revert:
11118         2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
11120         See https://gcc.gnu.org/ml/gcc/2017-05/msg00221.html.
11122         * config/microblaze/microblaze.h
11123         (FIXED_REGISTERS): Update in macro.
11124         (CALL_USED_REGISTERS): Update in macro.
11126 2017-05-27  François-Xavier Coudett  <fxcoudert@gcc.gnu.org>
11128         * doc/install.texi: Add links to macOS binary distributions.
11130 2017-05-27  Jakub Jelinek  <jakub@redhat.com>
11132         PR bootstrap/80887
11133         Revert:
11134         2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
11136         * match.pd ((A +- CST1) +- CST2): Allow some conversions.
11138 2017-05-26  Martin Liska  <mliska@suse.cz>
11140         * dumpfile.h (enum dump_kind): Renumber TDF_* flags to be contiguous.
11142 2017-05-26  Martin Liska  <mliska@suse.cz>
11144         * cfg.c (check_bb_profile): Do not use TDF_COMMENT and print
11145         always leading ';; '.
11146         (dump_bb_info): Likewise.
11147         (brief_dump_cfg): Likewise.
11148         * cfgrtl.c (print_rtl_with_bb): Do not use TDF_COMMENT.
11149         * dumpfile.c: Remove usage of TDF_VERBOSE.
11150         * dumpfile.h (enum dump_kind): Likewise.
11151         (dump_gimple_bb_header): Do not use TDF_COMMENT.
11152         * print-tree.c (debug_verbose): Remove.
11153         * tree-cfg.c (gimple_dump_cfg): Do not use TDF_COMMENT.
11154         (dump_function_to_file): Remove dumps guarded with TDF_VERBOSE.
11155         * tree-diagnostic.c (default_tree_printer): Replace
11156         TDF_DIAGNOSTIC with TDF_SLIM.
11158 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
11160         * tree-vect-loop-manip.c (create_intersect_range_checks_index): Pass
11161         in parameter loop, rather than loop_vinfo.
11162         (create_intersect_range_checks): Ditto.
11163         (vect_create_cond_for_alias_checks): Update call to above functions.
11165 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
11167         PR tree-optimization/80815
11168         * tree-data-ref.c (prune_runtime_alias_test_list): Simplify condition
11169         for merging runtime alias checks.  Handle negative DR_STEPs.
11171 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
11173         * tree-vect-data-refs.c (Operator==, comp_dr_with_seg_len_pair):
11174         Move from ...
11175         * tree-data-ref.c (Operator==, comp_dr_with_seg_len_pair): To here.
11176         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Factor
11177         out code pruning runtime alias checks.
11178         * tree-data-ref.c (prune_runtime_alias_test_list): New function
11179         factored out from above.
11180         * tree-vectorizer.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
11181         Move from ...
11182         * tree-data-ref.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
11183         ... to here.
11184         (prune_runtime_alias_test_list): New decalaration.
11186 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
11188         * tree-vect-data-refs.c (compare_tree): Rename and move ...
11189         * tree-data-ref.c (data_ref_compare_tree): ... to here.
11190         * tree-data-ref.h (data_ref_compare_tree): New decalaration.
11191         * tree-vect-data-refs.c (dr_group_sort_cmp): Update uses.
11192         (operator==, comp_dr_with_seg_len_pair): Ditto.
11193         (vect_prune_runtime_alias_test_list): Ditto.
11195 2017-05-26  Martin Liska  <mliska@suse.cz>
11197         PR ipa/80663
11198         * params.def: Bound partial-inlining-entry-probability param.
11200 2017-05-26  Marek Polacek  <polacek@redhat.com>
11202         PR sanitizer/80875
11203         * fold-const.c (fold_binary_loc) <case MULT_EXPR>: Check if OP1
11204         can be negated.
11206 2017-05-26  Richard Biener  <rguenther@suse.de>
11208         PR tree-optimization/80842
11209         * tree-ssa-ccp.c (set_lattice_value): Always meet with the old
11210         value.
11212 2017-05-26  Richard Biener  <rguenther@suse.de>
11214         PR tree-optimization/80844
11215         * tree-vectorizer.c (adjust_simduid_builtins): Propagate results.
11217 2017-05-25  Sebastian Peryt  <sebastian.peryt@intel.com>
11219         * doc/md.texi (Machine Constraints): Update x86 family
11220         machine constraints section to match 'config/i386/constraints.md'.
11222 2017-05-25  Volker Reichelt  <v.reichelt@netcologne.de>
11224         * doc/invoke.texi (-Wcatch-value=): Document new warning option.
11226 2017-05-25  Nathan Sidwell  <nathan@acm.org>
11228         * doc/invoke.texi (--enable-languages): Update documentation.
11230 2017-05-25  Martin Liska  <mliska@suse.cz>
11232         * dumpfile.c: Add TDF_FOLDING.
11233         * dumpfile.h (enum dump_kind): Likewise.
11234         * genmatch.c (dt_simplify::gen_1): Use it.
11236 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
11238         * match.pd (view_convert (convert@0 @1)): Handle zero-extension.
11240 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
11242         * match.pd ((A +- CST1) +- CST2): Allow some conversions.
11243         * tree.c (drop_tree_overflow): Handle COMPLEX_CST and VECTOR_CST.
11245 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
11247         * fold-const.c (fold_binary_loc) [(A & C) == D]: Remove transformation.
11248         * match.pd (X == C): Rewrite it here.
11249         (with_possible_nonzero_bits, with_possible_nonzero_bits2,
11250         with_certain_nonzero_bits2): New predicates.
11251         * tree-ssanames.c (get_nonzero_bits): Handle INTEGER_CST.
11253 2017-05-24  Nathan Sidwell  <nathan@acm.org>
11255         * lto-streamer-in.c (lto_input_data_block): Adjust T const cast to
11256         avoid warning.
11258         * auto-profile.c (afdo_propagate): Adjust T const cast to avoid
11259         warning.
11261 2017-05-24  Segher Boessenkool  <segher@kernel.crashing.org>
11263         * config/powerpcspe: New port.  Files are copied from the rs6000
11264         port, with "rs6000" in filenames replaced by "powerpcspe".
11266 2017-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
11268         PR rtl-optimization/80754
11269         * lra-remat.c (do_remat): Add overlap checks for dst_regno.
11271 2017-05-24  Sheldon Lobo  <smlobo@sheldon.us.oracle.com>
11273         * config/sparc/sparc.md (length): Return the correct value for -mflat
11274         sibcalls to match output_sibcall.
11276 2017-05-24  Segher Boessenkool  <segher@kernel.crashing.org>
11278         PR bootstrap/80860
11279         PR bootstrap/80843
11280         * config/rs6000/rs6000.c (struct machine_function): Add new field
11281         n_components.
11282         (rs6000_get_separate_components): Init that field, use it.
11283         (rs6000_components_for_bb): Use the field.
11285 2017-05-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11287         * config/arm/arm.c (arm_expand_prologue): Fix typo in comment.
11289 2017-05-24  Peter Bergner  <bergner@vnet.ibm.com>
11291         PR middle-end/80823
11292         * tree-cfg.c (group_case_labels_stmt): Delete increment of "i";
11294 2017-05-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11296         PR target/80725
11297         * config/s390/s390.c (s390_check_qrst_address): Check incoming
11298         address against address_operand predicate.
11299         * config/s390/s390.md ("*indirect_jump"): Swap alternatives.
11301 2017-05-24  Eric Botcazou  <ebotcazou@adacore.com>
11303         * var-tracking.c (track_expr_p): Do not return 0 for tracked record
11304         parameters passed indirectly.
11306 2017-05-23  Uros Bizjak  <ubizjak@gmail.com>
11308         * config/i386/i386.md (*movdi_internal): Remove SSE4
11309         alternative 18 (?r, *v).  Update insn attributes.
11310         (*movsi_internal): Remove SSE4 alternative 13 (?r, *v).
11311         Update insn attributes.
11312         (*zero_extendsidi2): Remove SSE4 alternative (?r, *x).
11313         Update insn attributes.
11314         * config/i386/sse.md (vec_extract<ssevecmodelower>_0): Remove SSE4
11315         alternative 1 (r, v). Remove isa attribute.
11316         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
11317         Always move value through stack for !TARGET_INTER_UNIT_MOVES_TO_VEC
11318         and !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
11320 2017-05-23  Tom de Vries  <tom@codesourcery.com>
11322         * doc/sourcebuild.texi (Directives, Verify compiler message): Document
11323         dg-line directive.
11325 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
11327         * cgraphunit.c (symbol_table::process_new_functions): Update.
11328         * ipa-fnsummary.c (pass_data_inline_parameters): Remove.
11329         (inline_generate_summary): Rename to ...
11330         (ipa_fn_summary_generate): ... this one.
11331         (inline_read_summary): Rename to ...
11332         (ipa_fn_summary_read): ... this one.
11333         (inline_write_summary): Rename to ...
11334         (ipa_fn_summary_write): ... this one.
11335         (inline_free_summary): Rename to ...
11336         (ipa_free_fn_summary): ... this one.
11337         (pass_data_local_fn_summary, pass_local_fn_summary,
11338         make_pass_local_fn_summary, pass_data_ipa_free_fn_summary,
11339         pass_ipa_free_fn_summary, make_pass_ipa_free_fn_summary,
11340         pass_data_ipa_fn_summary, pass_ipa_fn_summary,
11341         make_pass_ipa_fn_summary): New.
11342         * ipa-fnsummary.h (inline_generate_summary, inline_read_summary,
11343         inline_write_summary, inline_free_summary): Remove.
11344         (ipa_free_fn_summary) : New.
11345         * ipa-inline.c (ipa_inline): Update.
11346         (pass_ipa_inline): Do not generate summaries.
11347         * ipa.c (pass_data_ipa_free_fn_summary, pass_ipa_free_fn_summary):
11348         Remove.
11349         * passes.def: Replace pass_inline_parameters by pass_local_fn_summary
11350         and add pass_ipa_fn_summary.
11351         * tree-pass.h (make_pass_ipa_fn_summary, make_pass_local_fn_summary):
11352         New.
11353         (make_pass_inline_parameters): Remove.
11355 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
11357         * omp-low.c (struct omp_context): Remove "default_kind" member.
11358         Adjust all users.
11360         * omp-offload.c (execute_oacc_device_lower): Remove the
11361         parallelism dimensions function attributes for unparallelized
11362         OpenACC kernels constructs.
11364 2017-05-23  Martin Liska  <mliska@suse.cz>
11366         * cgraph.c (cgraph_node::get_create): Use symtab_node::dump_{asm_,}name
11367         functions.
11368         (cgraph_edge::make_speculative): Likewise.
11369         (cgraph_edge::resolve_speculation): Likewise.
11370         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
11371         (cgraph_node::dump): Likewise.
11372         * cgraph.h: Likewise.
11373         * cgraphunit.c (analyze_functions): Likewise.
11374         (symbol_table::compile): Likewise.
11375         * ipa-cp.c (print_all_lattices): Likewise.
11376         (determine_versionability): Likewise.
11377         (initialize_node_lattices): Likewise.
11378         (ipcp_verify_propagated_values): Likewise.
11379         (estimate_local_effects): Likewise.
11380         (update_profiling_info): Likewise.
11381         (create_specialized_node): Likewise.
11382         (perhaps_add_new_callers): Likewise.
11383         (decide_about_value): Likewise.
11384         (decide_whether_version_node): Likewise.
11385         (identify_dead_nodes): Likewise.
11386         (ipcp_store_bits_results): Likewise.
11387         * ipa-devirt.c (dump_targets): Likewise.
11388         (ipa_devirt): Likewise.
11389         * ipa-icf.c (sem_item::dump): Likewise.
11390         (sem_function::equals): Likewise.
11391         (sem_variable::equals): Likewise.
11392         (sem_item_optimizer::read_section): Likewise.
11393         (sem_item_optimizer::execute): Likewise.
11394         (congruence_class::dump): Likewise.
11395         * ipa-inline-analysis.c (dump_ipa_call_summary): Likewise.
11396         (dump_inline_summary): Likewise.
11397         (estimate_node_size_and_time): Likewise.
11398         (inline_analyze_function): Likewise.
11399         * ipa-inline-transform.c (inline_call): Likewise.
11400         * ipa-inline.c (report_inline_failed_reason): Likewise.
11401         (want_early_inline_function_p): Likewise.
11402         (edge_badness): Likewise.
11403         (update_edge_key): Likewise.
11404         (inline_small_functions): Likewise.
11405         * ipa-profile.c (ipa_profile): Likewise.
11406         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
11407         (ipa_make_edge_direct_to_target): Likewise.
11408         (remove_described_reference): Likewise.
11409         (ipa_impossible_devirt_target): Likewise.
11410         (propagate_controlled_uses): Likewise.
11411         (ipa_print_node_params): Likewise.
11412         (ipcp_transform_function): Likewise.
11413         * ipa-pure-const.c (pure_const_read_summary): Likewise.
11414         (propagate_pure_const): Likewise.
11415         * ipa-reference.c (generate_summary): Likewise.
11416         (read_write_all_from_decl): Likewise.
11417         (propagate): Likewise.
11418         (ipa_reference_read_optimization_summary): Likewise.
11419         * ipa-utils.c (ipa_merge_profiles): Likewise.
11420         * ipa.c (walk_polymorphic_call_targets): Likewise.
11421         (symbol_table::remove_unreachable_nodes): Likewise.
11422         (ipa_single_use): Likewise.
11423         * passes.c (execute_todo): Likewise.
11424         * predict.c (drop_profile): Likewise.
11425         * symtab.c (symtab_node::get_dump_name): New function.
11426         (symtab_node::dump_name): Likewise.
11427         (symtab_node::dump_asm_name): Likewise.
11428         (symtab_node::dump_references): Likewise.
11429         (symtab_node::dump_referring): Likewise.
11430         (symtab_node::dump_base): Likewise.
11431         (symtab_node::debug_symtab): Likewise.
11432         * tree-sra.c (convert_callers_for_node): Likewise.
11433         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
11434         * value-prof.c (init_node_map): Likewise.
11436 2017-05-23  Martin Liska  <mliska@suse.cz>
11438         * cgraph.h: Move symtab_node::dump_table to symbol_table::dump
11439         and symtab_node::debug_symtab to symbol_table::debug.
11440         * cgraphunit.c (analyze_functions): Use the renamed function.
11441         (symbol_table::compile): Likewise.
11442         * ipa-cp.c (ipcp_verify_propagated_values): Likewise.
11443         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
11444         * passes.c (execute_todo): Likewise.
11445         * symtab.c (symbol_table::dump): New function.
11446         * tree-ssa-structalias.c (ipa_pta_execute): Use the renamed function.
11448 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
11450         * ipa-fnsummary.c (estimate_node_size_and_time): Do not sanity check
11451         that nonconst implies exec.
11453 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
11455         * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
11456         inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
11457         (inline_edge_summary_vec): Turn into ...
11458         (ipa_call_summaries): ... this one.
11459         (redirect_to_unreachable, edge_set_predicate,
11460         evaluate_properties_for_edge, inline_summary_alloc,
11461         reset_ipa_call_summary, reset_inline_summary,
11462         inline_summary_t::duplicate): Update.
11463         (inline_edge_duplication_hook): Turn to ...
11464         (ipa_call_summary_t::duplicate): ... this one.
11465         (inline_edge_removal_hook): Turn to ...
11466         (ipa_call_summary_t::remove): ... this one.
11467         (dump_inline_edge_summary): Turn to ...
11468         (dump_ipa_call_summary): ... this one.
11469         (estimate_function_body_sizes): Update.
11470         (inline_update_callee_summaries): Update.
11471         (remap_edge_change_prob): Update.
11472         (remap_edge_summaries): Update.
11473         (inline_merge_summary): Update.
11474         (do_estimate_edge_time): Update.
11475         (inline_generate_summary): Update.
11476         (inline_read_section): Update.
11477         (inline_read_summary): Update.
11478         (inline_free_summary): Update.
11479         * ipa-inline.c (can_inline_edge_p): Update.
11480         (compute_inlined_call_time): Update.
11481         (want_inline_small_function_p): Update.
11482         (edge_badness): Update.
11483         (early_inliner): Update.
11484         * ipa-inline.h (inline_edge_summary): Turn to ...
11485         (ipa_call_summary): ... this one.
11486         (ipa_call_summary_t): New class.
11487         (inline_edge_summary_t, inline_edge_summary_vec): Remove.
11488         (ipa_call_summaries): New.
11489         (inline_edge_summary): Remove.
11490         (estimate_edge_growth): Update.
11491         * ipa-profile.c (ipa_propagate_frequency_1): Update.
11492         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
11493         * ipa-split.c (execute_split_functions): Update.
11494         * ipa.c (symbol_table::remove_unreachable_nodes): Update.
11496 2017-05-23  Tom de Vries  <tom@codesourcery.com>
11498         * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
11499         attributes): Document rdrand effective target.
11501 2017-05-23  Tom de Vries  <tom@codesourcery.com>
11503         * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
11504         attributes): Sort alphabetically.
11506 2017-05-23  Georg-Johann Lay  <avr@gjlay.de>
11508         * config/avr/genmultilib.awk: Use gsub instead of gensub.
11510 2017-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
11512         PR target/80718
11513         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Split
11514         V2DF/V2DI splat into two separate patterns, one that handles
11515         registers, and the other that only handles memory.  Drop support
11516         for splatting from a GPR on ISA 2.07 and then splitting the
11517         splat into direct move and splat.
11518         (vsx_splat_<mode>_reg): Likewise.
11519         (vsx_splat_<mode>_mem): Likewise.
11521 2017-05-22  Segher Boessenkool  <segher@kernel.crashing.org>
11523         * cfgcleanup.c (bb_is_just_return): Allow CLOBBERs.
11525 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
11527         PR middle-end/80809
11528         * omp-low.c (finish_taskreg_remap): New function.
11529         (finish_taskreg_scan): If unit size of ctx->record_type
11530         is non-constant, unshare the size expression and replace
11531         decls in it with possible outer var refs.
11533         PR middle-end/80809
11534         * gimplify.c (omp_add_variable): For GOVD_DEBUG_PRIVATE use
11535         GOVD_SHARED rather than GOVD_PRIVATE with it.
11536         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Expect
11537         GOVD_SHARED rather than GOVD_PRIVATE with GOVD_DEBUG_PRIVATE.
11539         PR middle-end/80853
11540         * omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
11541         as last argument to build_outer_var_ref for pointer bases of array
11542         section reductions.
11544 2017-05-19  Martin Sebor  <msebor@redhat.com>
11546         * print-tree.c (print_node): Print DECL_READ_P flag.
11548 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
11550         * Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h
11551         * auto-profile.c: Replace ipa-inline.h by ipa-fnsummary.h
11552         * cgraph.c: Likewise.
11553         * cgraphunit.c: Likewise.
11554         * gengtype.c: Likewise.
11555         * ipa-cp.c: Likewise.
11556         * ipa-devirt.c: Likewise.
11557         * ipa-icf.c: Likewise.
11558         * ipa-predicate.c: Likewise.
11559         * ipa-profile.c: Likewise.
11560         * ipa-prop.c: Likewise.
11561         * ipa-split.c: Likewise.
11562         * ipa.c: Likewise.
11563         * ipa-inline-analysis.c (inline_summaries, ipa_call_summaries,
11564         edge_predicate_pool, dump_inline_hints,
11565         inline_summary::account_size_time, redirect_to_unreachable,
11566         edge_set_predicate, set_hint_predicate,
11567         evaluate_conditions_for_known_args, evaluate_properties_for_edge,
11568         inline_summary_alloc, ipa_call_summary::reset, inline_summary::reset,
11569         inline_summary_t::remove, remap_hint_predicate_after_duplication,
11570         inline_summary_t::duplicate, ipa_call_summary_t::duplicate,
11571         ipa_call_summary_t::remove, initialize_growth_caches,
11572         free_growth_caches, dump_ipa_call_summary, dump_inline_summary,
11573         debug_inline_summary, dump_inline_summaries, initialize_inline_failed,
11574         mark_modified, unmodified_parm_1, unmodified_parm,
11575         unmodified_parm_or_parm_agg_item, eliminated_by_inlining_prob,
11576         set_cond_stmt_execution_predicate, set_switch_stmt_execution_predicate,
11577         compute_bb_predicates, will_be_nonconstant_expr_predicate,
11578         will_be_nonconstant_predicate, record_modified_bb_info,
11579         get_minimal_bb, record_modified, param_change_prob,
11580         phi_result_unknown_predicate, predicate_for_phi_result,
11581         array_index_predicate, clobber_only_eh_bb_p, fp_expression_p,
11582         estimate_function_body_sizes, compute_inline_parameters,
11583         compute_inline_parameters_for_curren, pass_data_inline_parameters,
11584         estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,
11585         inline_update_callee_summaries, remap_edge_change_prob,
11586         remap_edge_summaries, remap_hint_predicate, inline_merge_summary,
11587         inline_update_overall_summary, inline_indirect_intraprocedural_analysis,
11588         inline_analyze_function, inline_summary_t::insert,
11589         inline_generate_summary, read_ipa_call_summary, inline_read_section,
11590         inline_read_summary, write_ipa_call_summary, inline_write_summary,
11591         inline_free_summary): Move to ipa-fnsummary.h
11592         (predicate_t): Remove.
11593         * ipa-fnsummary.c: New file.
11594         * ipa-inline.h:  Do not include sreal.h and ipa-predicate.h
11595         (enum inline_hints_vals, inline_hints, agg_position_info,
11596         INLINE_SIZE_SCALE, size_time_entry, inline_summary, inline_summary_t,
11597         inline_summaries, ipa_call_summary, ipa_call_summary_t,
11598         ipa_call_summaries, debug_inline_summary, dump_inline_summaries,
11599         dump_inline_summary, dump_inline_hints, inline_generate_summary,
11600         inline_read_summary, inline_write_summary, inline_free_summary,
11601         inline_analyze_function, initialize_inline_failed,
11602         inline_merge_summary, inline_update_overall_summary,
11603         compute_inline_parameters): Move to ipa-fnsummary.h
11604         * ipa-fnsummary.h: New file.
11605         * ipa-inline-transform.h: Include ipa-inline.h.
11606         * ipa-inline.c: LIkewise.
11608 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
11610         * ipa-inline.c (edge_badness): Use inlined_time instead of
11611         inline_summaries->get.
11613 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
11615         * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
11617 2017-05-22  Nathan Sidwell  <nathan@acm.org>
11619         * doc/invoke.texi (fdump-translation-unit): Delete documentation.
11620         (fdump-lang): Document 'raw' option.
11621         * dumpfile.h (TDI_tu): Delete.
11622         * dumpfile.c (dump_files): Remove translation-unit.
11623         (FIRST_AUTO_NUMBERED_DUMP): Decrement.
11625 2017-05-22  Georg-Johann Lay  <avr@gjlay.de>
11627         * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
11628         command option from $(AWK) call.
11629         * config/avr/genmultilib.awk: Simplify and rewrite so that it
11630         generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
11631         [FORMAT]: Remove handling of variable.
11632         * config/avr/t-multilib: Regenerate.
11634 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
11636         * ipa-inline-analysis.c (inline_summary::reset): Do not reset
11637         self_time.
11638         (dump_inline_summary): Do not print self_time.
11639         (estimate_function_body_sizes): Do not set self_time.
11640         (compute_inline_parameters): Likewise.
11641         (inline_read_section, inline_write_summary): Do not stream self_time.
11642         * ipa-inline.h (inline_summary): Drop self_time.
11644 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
11646         * ipa-inline-analysis.c (account_size_time): Rename to ...
11647         (inline_summary::account_size_time): ... this one.
11648         (reset_ipa_call_summary): Turn to ...
11649         (ipa_call_summary::reset): ... this one.
11650         (reset_inline_summary): Turn to ...
11651         (inline_summary::reset): ... this one.
11652         (inline_summary_t::remove): Update.
11653         (inline_summary_t::duplicate): Update.
11654         (ipa_call_summary_t::remove): Update.
11655         (dump_inline_summary): Update.
11656         (estimate_function_body_sizes): Update.
11657         (compute_inline_parameters): Update.
11658         (estimate_node_size_and_time): Update.
11659         (inline_merge_summary): Update.
11660         (inline_update_overall_summary): Update.
11661         (inline_read_section): Update.
11662         (inline_write_summary): Update.
11663         * ipa-inline.h (inline_summary): Rename entry to size_time_table;
11664         add account_size_time and reset member functions.
11665         (ipa_call_summary): Add reset function.
11666         * ipa-predicate.h (predicate::operator &): Constify.
11668 2017-05-22  Richard Biener  <rguenther@suse.de>
11670         * df-scan.c (df_insn_refs_verify): Speedup when not verifying.
11672 2017-05-19  Jason Merrill  <jason@redhat.com>
11674         * tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
11676 2017-05-19  Marek Polacek  <polacek@redhat.com>
11678         PR sanitizer/80800
11679         * fold-const.c (extract_muldiv_1) <case TRUNC_DIV_EXPR>: Add
11680         TYPE_OVERFLOW_WRAPS checks.
11682 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
11684         * tree-core.h (enum omp_clause_default_kind): Add
11685         "OMP_CLAUSE_DEFAULT_PRESENT".
11686         * tree-pretty-print.c (dump_omp_clause): Handle it.
11687         * gimplify.c (enum gimplify_omp_var_data): Add
11688         "GOVD_MAP_FORCE_PRESENT".
11689         (gimplify_adjust_omp_clauses_1): Map it to
11690         "GOMP_MAP_FORCE_PRESENT".
11691         (oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
11693         * gimplify.c (oacc_default_clause): Clarify.
11695 2017-05-19  Nathan Sidwell  <nathan@acm.org>
11697         LANG_HOOK_REGISTER_DUMPS
11698         * toplev.c (general_init): Call register dump lang hook.
11699         * doc/invoke.texi: Document -fdump-lang option family.
11700         * dumpfile.c (dump_files): Remove class dump here.
11701         (FIRST_AUTO_NUMBERED_DUMP): Adjust.
11702         * dumpfile.h (tree_dump_index): Remove TDI_class.
11703         * langhooks-def.h (lhd_register_dumps): Declare.
11704         (LANG_HOOKS_REGISTER_DUMPS): Define.
11705         (LANG_HOOKS_INITIALIZER): Add it.
11706         * langhooks.c (lhd_register_dumps): Define.
11707         * langhooks.h (struct lang_hooks): Add register_dumps.
11709 2017-05-19  Nathan Sidwell  <nathan@acm.org>
11711         * context.h (context::set_passes): New.
11712         * context.c (context::context): Do not create pass manager.
11713         * toplev.c (general_init): Create pass manager here.
11715 2017-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
11717         * config/rs6000/rs6000.md (splitter to load of -1 and mask): Don't
11718         use this splitter if two add or or instructions would also work for
11719         the constant we want to generate.
11721 2017-05-19  Richard Biener  <rguenther@suse.de>
11723         PR build/80821
11724         * genmatch.c (dt_node::gen_kids_1): Add missing scope around
11725         predicate evaluation.
11727 2017-05-19  Jan Hubicka  <hubicka@ucw.cz>
11729         * ipa-inline.h (ipa_call_summary): Turn sizes into signed;
11730         add ctor.
11731         * ipa-inline.c (want_inline_small_function_p): Do not cast to
11732         unsigned.
11734 2017-05-19  Jan Hubicka  <hubicka@ucw.cz>
11736         * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
11737         inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
11738         (inline_edge_summary_vec): Turn into ...
11739         (ipa_call_summaries): ... this one.
11740         (redirect_to_unreachable, edge_set_predicate,
11741         evaluate_properties_for_edge, inline_summary_alloc,
11742         reset_ipa_call_summary, reset_inline_summary,
11743         inline_summary_t::duplicate): Update.
11744         (inline_edge_duplication_hook): Turn to ...
11745         (ipa_call_summary_t::duplicate): ... this one.
11746         (inline_edge_removal_hook): Turn to ...
11747         (ipa_call_summary_t::remove): ... this one.
11748         (dump_inline_edge_summary): Turn to ...
11749         (dump_ipa_call_summary): ... this one.
11750         (estimate_function_body_sizes): Update.
11751         (inline_update_callee_summaries): Update.
11752         (remap_edge_change_prob): Update.
11753         (remap_edge_summaries): Update.
11754         (inline_merge_summary): Update.
11755         (do_estimate_edge_time): Update.
11756         (inline_generate_summary): Update.
11757         (inline_read_section): Update.
11758         (inline_read_summary): Update.
11759         (inline_free_summary): Update.
11760         * ipa-inline.c (can_inline_edge_p): Update.
11761         (compute_inlined_call_time): Update.
11762         (want_inline_small_function_p): Update.
11763         (edge_badness): Update.
11764         (early_inliner): Update.
11765         * ipa-inline.h (inline_edge_summary): Turn to ...
11766         (ipa_call_summary): ... this one.
11767         (ipa_call_summary_t): New class.
11768         (inline_edge_summary_t, inline_edge_summary_vec): Remove.
11769         (ipa_call_summaries): New.
11770         (inline_edge_summary): Remove.
11771         (estimate_edge_growth): Update.
11772         * ipa-profile.c (ipa_propagate_frequency_1): Update.
11773         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
11774         * ipa-split.c (execute_split_functions): Update.
11775         * ipa.c (symbol_table::remove_unreachable_nodes): Update.
11777 2017-05-19  Richard Biener  <rguenther@suse.de>
11779         PR middle-end/80764
11780         * cfgexpand.c (expand_gimple_cond): Fix loop fixup.
11782 2017-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
11784         * config/rs6000/rs6000.c (struct machine_function): Add field
11785         fpr_is_wrapped_separately.
11786         (rs6000_get_separate_components): Use 64 components.  Handle the
11787         new FPR components.
11788         (rs6000_components_for_bb): Handle the FPR components.
11789         (rs6000_emit_prologue_components): Handle the FPR components.
11790         (rs6000_emit_epilogue_components): Handle the FPR components.
11791         (rs6000_set_handled_components): Handle the FPR components.
11792         (rs6000_emit_prologue): Don't output prologue code for those FPRs
11793         that are already separately shrink-wrapped.
11794         (rs6000_emit_epilogue): Don't output epilogue code for those FPRs
11795         that are already separately shrink-wrapped.
11797 2017-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
11799         PR target/80510
11800         * config/rs6000/predicates.md (simple_offsettable_mem_operand):
11801         New predicate.
11803         * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
11804         (define_peephole2 for Altivec d-form load): Add peepholes to catch
11805         cases where the register allocator uses a move and an offsettable
11806         memory operation to/from a FPR register on ISA 2.06/2.07.
11807         (define_peephole2 for Altivec d-form store): Likewise.
11809 2017-05-18  Uros Bizjak  <ubizjak@gmail.com>
11811         PR target/80799
11812         * config/i386/mmx.md (*mov<mode>_internal): Enable
11813         alternatives 11, 12, 13 and 14 also for 32bit targets.
11814         Remove alternatives 15, 16, 17 and 18.
11815         * config/i386/sse.md (vec_concatv2di): Change
11816         alternative (!x, *y) to (x, ?!*Yn).
11818 2017-05-18  Paolo Carlini  <paolo.carlini@oracle.com>
11820         * dumpfile.h (enum dump_kind): Remove stray comma.
11822 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
11824         * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
11825         * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
11826         predicate::num_conditions
11827         (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
11828         (CHANGED): turn into predicate::changed.
11829         (agg_position_info): Move to ipa-predicate.h
11830         (add_condition, predicate::add_clause, predicate::operator &=,
11831         predicate::or_with, predicate::evaluate, predicate::probability,
11832         dump_condition, dump_clause, predicate::dump,
11833         predicate::remap_after_duplication, predicate::remap_after_inlining,
11834         predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
11835         (evaluate_conditions_for_known_args): Update.
11836         (set_cond_stmt_execution_predicate): Update.
11837         * ipa-inline.h: Include ipa-predicate.h
11838         (condition, inline_param_summary, conditions, agg_position_info,
11839         predicate): Move to ipa-predicate.h
11840         * ipa-predicate.c: New file.
11841         * ipa-predicate.h: New file.
11843 2017-05-18  Wilco Dijkstra  <wdijkstr@arm.com>
11845         * final.c (leaf_function_p): Check we are not in a sequence.
11847 2017-05-18  Martin Liska  <mliska@suse.cz>
11849         * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
11850         * dumpfile.c (dump_register): Use new enum dump_kind.
11851         (get_dump_file_name): Likewise.
11852         (dump_enable_all): Likewise.
11853         (dump_switch_p_1): Likewise.
11854         (enable_rtl_dump_file): Remove usage of TDF_RTL.
11855         * dumpfile.h (enum dump_kind): New enum type.
11856         (struct dump_file_info): Create constructor and
11857         format fields and comments.
11858         * passes.c (pass_manager::register_one_dump_file):
11859         Use num dump_kind.
11860         * statistics.c (statistics_early_init): Likewise.
11861         * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
11862         TDF_TREE with TDF_SLIM.
11863         (gather_memory_references_ref): Likewise.
11865 2017-05-18  Martin Liska  <mliska@suse.cz>
11867         * vec.h (struct vnull): Use it.
11869 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
11871         * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
11872         (true_predicate, false_predicate, true_predicate_p,
11873         false_predicate_p): Remove.
11874         (single_cond_predicate, not_inlined_predicate): Turn to member function
11875         in ipa-inline.h
11876         (add_condition): Update.
11877         (add_clause): Turn to...
11878         (predicate::add_clause): ... this one; update; allow passing NULL
11879         as parameter.
11880         (and_predicates): Turn to ...
11881         (predicate::operator &=): ... this one.
11882         (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
11883         (or_predicates): Turn to ...
11884         (predicate::or_with): ... this one.
11885         (evaluate_predicate): Turn to ...
11886         (predicate::evaluate): ... this one.
11887         (predicate_probability): Turn to ...
11888         (predicate::probability): ... this one.
11889         (dump_condition): Update.
11890         (dump_predicate): Turn to ...
11891         (predicate::dump): ... this one.
11892         (account_size_time): Update.
11893         (edge_set_predicate): Update.
11894         (set_hint_predicate): UPdate.
11895         (evaluate_conditions_for_known_args): Update.
11896         (evaluate_properties_for_edge): Update.
11897         (remap_predicate_after_duplication): Turn to...
11898         (predicate::remap_after_duplication): ... this one.
11899         (remap_hint_predicate_after_duplication): Update.
11900         (inline_summary_t::duplicate): UPdate.
11901         (dump_inline_edge_summary): Update.
11902         (dump_inline_summary): Update.
11903         (set_cond_stmt_execution_predicate): Update.
11904         (set_switch_stmt_execution_predicate): Update.
11905         (compute_bb_predicates): Update.
11906         (will_be_nonconstant_expr_predicate): Update.
11907         (will_be_nonconstant_predicate): Update.
11908         (phi_result_unknown_predicate): Update.
11909         (predicate_for_phi_result): Update.
11910         (array_index_predicate): Update.
11911         (estimate_function_body_sizes): Update.
11912         (estimate_node_size_and_time): Update.
11913         (estimate_ipcp_clone_size_and_time): Update.
11914         (remap_predicate): Rename to ...
11915         (predicate::remap_after_inlining): ... this one.
11916         (remap_hint_predicate): Update.
11917         (inline_merge_summary): Update.
11918         (inline_update_overall_summary): Update.
11919         (estimate_size_after_inlining): Update.
11920         (read_predicate): Rename to ...
11921         (predicate::stream_in): ... this one.
11922         (read_inline_edge_summary): Update.
11923         (write_predicate): Rename to ...
11924         (predicate::stream_out): ... this one.
11925         (write_inline_edge_summary): Update.
11926         * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
11927         (clause_t): Turn to uint32_t
11928         (predicate): Turn to class; implement constructor and operators
11929         ==, !=, &
11930         (size_time_entry): Update.
11931         (inline_summary): Update.
11932         (inline_edge_summary): Update.
11934 2017-05-18  Marc Glisse  <marc.glisse@inria.fr>
11936         * fold-const.c (fold_binary_loc): Move transformation...
11937         * match.pd (C - X CMP X): ... here.
11939 2017-05-18  Sheldon Lobo  <sheldon.lobo@oracle.com>
11941         * config/sparc/sparc.c (sparc_option_override): Set function
11942         alignment for -mcpu=niagara7 to 64 to match the I$ line.
11943         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
11944         latency to 1.
11945         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
11946         latency to 2.
11947         * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
11949 2017-05-18  Marek Polacek  <polacek@redhat.com>
11951         PR sanitizer/80797
11952         * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
11953         (pass_ubsan::execute): Call gimple_assign_single_p instead of
11954         gimple_assign_load_p.
11956 2017-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
11958         PR middle-end/80692
11959         * real.c (do_compare): Give decimal_do_compare preference over
11960         comparing just the signs.
11962 2017-05-17  Uros Bizjak  <ubizjak@gmail.com>
11964         * doc/md.texi (Canonicalization of Instructions): Describe the
11965         canonical form of instructions that inherently set a condition
11966         code register.
11968 2017-05-17  Peter Bergner  <bergner@vnet.ibm.com>
11970         PR middle-end/80775
11971         * tree-cfg.c: Move deletion of unreachable case statements to after
11972         the merging of consecutive case labels.
11974 2017-05-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11976         * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
11977         readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
11978         restoring of callee-saved registers.
11980 2017-05-17  Eric Botcazou  <ebotcazou@adacore.com>
11982         * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
11983         * config/visium/visium.c (single_set_and_flags): Likewise.
11984         * config/visium/visium.md (Substitutions): Likewise.
11986 2017-05-17  Martin Liska  <mliska@suse.cz>
11988         * cfg.c: Introduce dump_flags_t type and
11989         use it instead of int type.
11990         * cfg.h: Likewise.
11991         * cfghooks.c: Likewise.
11992         * cfghooks.h (struct cfg_hooks): Likewise.
11993         * cfgrtl.c: Likewise.
11994         * cfgrtl.h: Likewise.
11995         * cgraph.c (cgraph_node::get_body): Likewise.
11996         * coretypes.h: Likewise.
11997         * domwalk.c: Likewise.
11998         * domwalk.h: Likewise.
11999         * dumpfile.c (struct dump_option_value_info): Likewise.
12000         (dump_enable_all): Likewise.
12001         (dump_switch_p_1): Likewise.
12002         (opt_info_switch_p): Likewise.
12003         * dumpfile.h (enum tree_dump_index): Likewise.
12004         (struct dump_file_info): Likewise.
12005         * genemit.c: Likewise.
12006         * generic-match-head.c: Likewise.
12007         * gengtype.c (open_base_files): Likewise.
12008         * gimple-pretty-print.c: Likewise.
12009         * gimple-pretty-print.h: Likewise.
12010         * graph.c (print_graph_cfg): Likewise.
12011         * graphite-scop-detection.c (dot_all_sese): Likewise.
12012         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
12013         * loop-unroll.c (report_unroll): Likewise.
12014         * passes.c (pass_manager::register_one_dump_file): Likewise.
12015         * print-tree.c: Likewise.
12016         * statistics.c: Likewise.
12017         * tree-cfg.c: Likewise.
12018         * tree-cfg.h: Likewise.
12019         * tree-dfa.c: Likewise.
12020         * tree-dfa.h: Likewise.
12021         * tree-dump.c (dump_function): Likewise.
12022         * tree-dump.h (struct dump_info): Likewise.
12023         * tree-pretty-print.c: Likewise.
12024         * tree-pretty-print.h: Likewise.
12025         * tree-ssa-live.c: Likewise.
12026         * tree-ssa-live.h: Likewise.
12027         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
12028         * tree-vect-loop.c: Likewise.
12029         * tree-vect-slp.c: Likewise.
12031 2017-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
12032             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12034         PR tree-optimization/80457
12035         * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
12036         of all arguments to a statement as scalar_to_vec operations.
12037         (vectorizable_call): Adjust call to vect_model_simple_cost for
12038         new parameter.
12039         (vectorizable_conversion): Likewise.
12040         (vectorizable_assignment): Likewise.
12041         (vectorizable_shift): Likewise.
12042         (vectorizable_operation): Likewise.
12043         (vectorizable_comparison): Likewise.
12044         (vect_is_simple_cond): Record the def types for operands.
12045         (vectorizable_condition): Likewise, call vect_model_simple_cost.
12046         * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
12047         for statement argument count.
12049 2017-05-16  Carl Love  <cel@us.ibm.com>
12051         * config/rs6000/rs6000-c: Add support for built-in functions
12052         vector unsigned long long vec_bperm (vector unsigned long long,
12053                                              vector unsigned char)
12054         vector signed long long vec_mule (vector signed int,
12055                                           vector signed int)
12056         vector unsigned long long vec_mule (vector unsigned int,
12057                                             vector unsigned int)
12058         vector signed long long vec_mulo (vector signed int,
12059                                           vector signed int)
12060         vector unsigned long long vec_mulo (vector unsigned int,
12061                                             vector unsigned int)
12062         vector signed char vec_sldw (vector signed char,
12063                                      vector signed char,
12064                                      const int)
12065         vector unsigned char vec_sldw (vector unsigned char,
12066                                        vector unsigned char,
12067                                        const int)
12068         vector signed short vec_sldw (vector signed short,
12069                                       vector signed short,
12070                                       const int)
12071         vector unsigned short vec_sldw (vector unsigned short,
12072                                         vector unsigned short,
12073                                         const int)
12074         vector signed int vec_sldw (vector signed int,
12075                                     vector signed int,
12076                                     const int)
12077         vector unsigned int vec_sldw (vector unsigned int,
12078                                       vector unsigned int,
12079                                       const int)
12080         vector signed long long vec_sldw (vector signed long long,
12081                                           vector signed long long,
12082                                           const int)
12083         vector unsigned long long vec_sldw (vector unsigned long long,
12084                                             vector unsigned long long,
12085                                             const int)
12086         * config/rs6000/rs6000-c: Add support for built-in functions
12087         * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
12088         * config/rs6000/altivec.h: Add defintion for vec_sldw.
12089         * doc/extend.texi: Update the built-in documentation for the
12090         new built-in functions.
12092 2017-05-16  Marek Polacek  <polacek@redhat.com>
12094         PR sanitizer/80536
12095         PR sanitizer/80386
12096         * tree.c (save_expr): Don't fold the expression.
12098 2017-05-16  Uros Bizjak  <ubizjak@gmail.com>
12100         * config/i386/i386.md (*movsi_internal): Split (?rm,*y) alternative
12101         to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
12102         and (?*y,m).  Update insn attributes.
12104 2017-05-16  Martin Liska  <mliska@suse.cz>
12106         * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
12107         flags argument of print_gimple_stmt, print_gimple_expr,
12108         print_generic_stmt and print_generic_expr.
12109         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
12110         * coretypes.h: Likewise.
12111         * except.c (dump_eh_tree): Likewise.
12112         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
12113         * gimple-pretty-print.h: Likewise.
12114         * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
12115         (backprop::push_to_worklist): Likewise.
12116         (backprop::pop_from_worklist): Likewise.
12117         (backprop::process_use): Likewise.
12118         (backprop::intersect_uses): Likewise.
12119         (note_replacement): Likewise.
12120         * gimple-ssa-store-merging.c
12121         (pass_store_merging::terminate_all_aliasing_chains): Likewise.
12122         (imm_store_chain_info::coalesce_immediate_stores): Likewise.
12123         (pass_store_merging::execute): Likewise.
12124         * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
12125         (ssa_base_cand_dump_callback): Likewise.
12126         (dump_incr_vec): Likewise.
12127         (replace_refs): Likewise.
12128         (replace_mult_candidate): Likewise.
12129         (create_add_on_incoming_edge): Likewise.
12130         (create_phi_basis): Likewise.
12131         (insert_initializers): Likewise.
12132         (all_phi_incrs_profitable): Likewise.
12133         (introduce_cast_before_cand): Likewise.
12134         (replace_one_candidate): Likewise.
12135         * gimplify.c (gimplify_expr): Likewise.
12136         * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
12137         (set_rename): Likewise.
12138         (rename_uses): Likewise.
12139         (copy_loop_phi_nodes): Likewise.
12140         (add_close_phis_to_merge_points): Likewise.
12141         (copy_loop_close_phi_args): Likewise.
12142         (copy_cond_phi_args): Likewise.
12143         (graphite_copy_stmts_from_block): Likewise.
12144         (translate_pending_phi_nodes): Likewise.
12145         * graphite-poly.c (print_pdr): Likewise.
12146         (dump_gbb_cases): Likewise.
12147         (dump_gbb_conditions): Likewise.
12148         (print_scop_params): Likewise.
12149         * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
12150         (build_cross_bb_scalars_use): Likewise.
12151         (gather_bbs::before_dom_children): Likewise.
12152         * hsa-dump.c (dump_hsa_immed): Likewise.
12153         * ipa-cp.c (print_ipcp_constant_value): Likewise.
12154         (get_replacement_map): Likewise.
12155         * ipa-inline-analysis.c (dump_condition): Likewise.
12156         (estimate_function_body_sizes): Likewise.
12157         * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
12158         (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
12159         * ipa-prop.c (ipa_dump_param): Likewise.
12160         (ipa_print_node_jump_functions_for_edge): Likewise.
12161         (ipa_modify_call_arguments): Likewise.
12162         (ipa_modify_expr): Likewise.
12163         (ipa_dump_param_adjustments): Likewise.
12164         (ipa_dump_agg_replacement_values): Likewise.
12165         (ipcp_modif_dom_walker::before_dom_children): Likewise.
12166         * ipa-pure-const.c (check_stmt): Likewise.
12167         (pass_nothrow::execute): Likewise.
12168         * ipa-split.c (execute_split_functions): Likewise.
12169         * omp-offload.c (dump_oacc_loop_part): Likewise.
12170         (dump_oacc_loop): Likewise.
12171         * trans-mem.c (tm_log_emit): Likewise.
12172         (tm_memopt_accumulate_memops): Likewise.
12173         (dump_tm_memopt_set): Likewise.
12174         (dump_tm_memopt_transform): Likewise.
12175         * tree-cfg.c (gimple_verify_flow_info): Likewise.
12176         (print_loop): Likewise.
12177         * tree-chkp-opt.c (chkp_print_addr): Likewise.
12178         (chkp_gather_checks_info): Likewise.
12179         (chkp_get_check_result): Likewise.
12180         (chkp_remove_check_if_pass): Likewise.
12181         (chkp_use_outer_bounds_if_possible): Likewise.
12182         (chkp_reduce_bounds_lifetime): Likewise.
12183         * tree-chkp.c (chkp_register_addr_bounds): Likewise.
12184         (chkp_mark_completed_bounds): Likewise.
12185         (chkp_register_incomplete_bounds): Likewise.
12186         (chkp_mark_invalid_bounds): Likewise.
12187         (chkp_maybe_copy_and_register_bounds): Likewise.
12188         (chkp_build_returned_bound): Likewise.
12189         (chkp_get_bound_for_parm): Likewise.
12190         (chkp_build_bndldx): Likewise.
12191         (chkp_get_bounds_by_definition): Likewise.
12192         (chkp_generate_extern_var_bounds): Likewise.
12193         (chkp_get_bounds_for_decl_addr): Likewise.
12194         * tree-chrec.c (chrec_apply): Likewise.
12195         * tree-data-ref.c (dump_data_reference): Likewise.
12196         (dump_subscript): Likewise.
12197         (dump_data_dependence_relation): Likewise.
12198         (analyze_overlapping_iterations): Likewise.
12199         * tree-inline.c (expand_call_inline): Likewise.
12200         (tree_function_versioning): Likewise.
12201         * tree-into-ssa.c (dump_defs_stack): Likewise.
12202         (dump_currdefs): Likewise.
12203         (dump_names_replaced_by): Likewise.
12204         (dump_update_ssa): Likewise.
12205         (update_ssa): Likewise.
12206         * tree-object-size.c (pass_object_sizes::execute): Likewise.
12207         * tree-parloops.c (build_new_reduction): Likewise.
12208         (try_create_reduction_list): Likewise.
12209         (ref_conflicts_with_region): Likewise.
12210         (oacc_entry_exit_ok_1): Likewise.
12211         (oacc_entry_exit_single_gang): Likewise.
12212         * tree-pretty-print.h: Likewise.
12213         * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
12214         (get_scalar_evolution): Likewise.
12215         (add_to_evolution): Likewise.
12216         (get_loop_exit_condition): Likewise.
12217         (analyze_evolution_in_loop): Likewise.
12218         (analyze_initial_condition): Likewise.
12219         (analyze_scalar_evolution): Likewise.
12220         (instantiate_scev): Likewise.
12221         (number_of_latch_executions): Likewise.
12222         (gather_chrec_stats): Likewise.
12223         (final_value_replacement_loop): Likewise.
12224         (scev_const_prop): Likewise.
12225         * tree-sra.c (dump_access): Likewise.
12226         (disqualify_candidate): Likewise.
12227         (create_access): Likewise.
12228         (reject): Likewise.
12229         (maybe_add_sra_candidate): Likewise.
12230         (create_access_replacement): Likewise.
12231         (analyze_access_subtree): Likewise.
12232         (analyze_all_variable_accesses): Likewise.
12233         (sra_modify_assign): Likewise.
12234         (initialize_constant_pool_replacements): Likewise.
12235         (find_param_candidates): Likewise.
12236         (decide_one_param_reduction): Likewise.
12237         (replace_removed_params_ssa_names): Likewise.
12238         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
12239         * tree-ssa-copy.c (dump_copy_of): Likewise.
12240         (copy_prop_visit_cond_stmt): Likewise.
12241         * tree-ssa-dce.c (mark_operand_necessary): Likewise.
12242         * tree-ssa-dom.c (pass_dominator::execute): Likewise.
12243         (record_equivalences_from_stmt): Likewise.
12244         * tree-ssa-dse.c (compute_trims): Likewise.
12245         (delete_dead_call): Likewise.
12246         (delete_dead_assignment): Likewise.
12247         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
12248         (forward_propagate_into_cond): Likewise.
12249         (pass_forwprop::execute): Likewise.
12250         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
12251         * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
12252         Likewise.
12253         (move_computations_worker): Likewise.
12254         (execute_sm): Likewise.
12255         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
12256         (remove_exits_and_undefined_stmts): Likewise.
12257         (remove_redundant_iv_tests): Likewise.
12258         * tree-ssa-loop-ivopts.c (dump_use): Likewise.
12259         (adjust_iv_update_pos): Likewise.
12260         * tree-ssa-math-opts.c (bswap_replace): Likewise.
12261         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
12262         (value_replacement): Likewise.
12263         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
12264         * tree-ssa-pre.c (print_pre_expr): Likewise.
12265         (get_representative_for): Likewise.
12266         (create_expression_by_pieces): Likewise.
12267         (insert_into_preds_of_block): Likewise.
12268         (eliminate_insert): Likewise.
12269         (eliminate_dom_walker::before_dom_children): Likewise.
12270         (eliminate): Likewise.
12271         (remove_dead_inserted_code): Likewise.
12272         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
12273         * tree-ssa-reassoc.c (get_rank): Likewise.
12274         (eliminate_duplicate_pair): Likewise.
12275         (eliminate_plus_minus_pair): Likewise.
12276         (eliminate_not_pairs): Likewise.
12277         (undistribute_ops_list): Likewise.
12278         (eliminate_redundant_comparison): Likewise.
12279         (update_range_test): Likewise.
12280         (optimize_range_tests_var_bound): Likewise.
12281         (optimize_vec_cond_expr): Likewise.
12282         (rewrite_expr_tree): Likewise.
12283         (rewrite_expr_tree_parallel): Likewise.
12284         (linearize_expr): Likewise.
12285         (break_up_subtract): Likewise.
12286         (linearize_expr_tree): Likewise.
12287         (attempt_builtin_powi): Likewise.
12288         (attempt_builtin_copysign): Likewise.
12289         (transform_stmt_to_copy): Likewise.
12290         (transform_stmt_to_multiply): Likewise.
12291         (dump_ops_vector): Likewise.
12292         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
12293         (print_scc): Likewise.
12294         (set_ssa_val_to): Likewise.
12295         (visit_reference_op_store): Likewise.
12296         (visit_use): Likewise.
12297         (sccvn_dom_walker::before_dom_children): Likewise.
12298         (run_scc_vn): Likewise.
12299         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
12300         Likewise.
12301         (expr_hash_elt::print): Likewise.
12302         (const_and_copies::pop_to_marker): Likewise.
12303         (const_and_copies::record_const_or_copy_raw): Likewise.
12304         * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
12305         * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
12306         (dump_predicates): Likewise.
12307         (find_uninit_use): Likewise.
12308         (warn_uninitialized_phi): Likewise.
12309         (pass_late_warn_uninitialized::execute): Likewise.
12310         * tree-ssa.c (verify_vssa): Likewise.
12311         (verify_ssa): Likewise.
12312         (maybe_optimize_var): Likewise.
12313         * tree-vrp.c (dump_value_range): Likewise.
12314         (dump_all_value_ranges): Likewise.
12315         (dump_asserts_for): Likewise.
12316         (register_edge_assert_for_2): Likewise.
12317         (vrp_visit_cond_stmt): Likewise.
12318         (vrp_visit_switch_stmt): Likewise.
12319         (vrp_visit_stmt): Likewise.
12320         (vrp_visit_phi_node): Likewise.
12321         (simplify_cond_using_ranges_1): Likewise.
12322         (fold_predicate_in): Likewise.
12323         (evrp_dom_walker::before_dom_children): Likewise.
12324         (evrp_dom_walker::push_value_range): Likewise.
12325         (evrp_dom_walker::pop_value_range): Likewise.
12326         (execute_early_vrp): Likewise.
12328 2017-05-16  Richard Biener  <rguenther@suse.de>
12330         * dwarf2out.c (loc_list_from_tree_1): Do not create
12331         DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
12333 2017-05-16  Richard Biener  <rguenther@suse.de>
12335         * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
12336         just generated.
12337         (note_variable_value_in_expr): If we resolved the decl ref
12338         do not push to the stack.
12340 2017-05-16  Matthew Wahab  <matthew.wahab@arm.com>
12342         * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
12343         operations in fast-math mode.
12344         (vaddq_f16): Likewise.
12345         (vmul_f16): Likewise.
12346         (vmulq_f16): Likewise.
12347         (vsub_f16): Likewise.
12348         (vsubq_f16): Likewise.
12349         * config/arm/neon.md (add<mode>3): New.
12350         (sub<mode>3): New.
12351         (fma:<VH:mode>3): New.  Also remove outdated comment.
12352         (mul<mode>3): New.
12354 2017-05-16  Martin Liska  <mliska@suse.cz>
12356         PR ipa/79849.
12357         PR ipa/79850.
12358         * ipa-devirt.c (warn_types_mismatch): Fix typo.
12359         (odr_types_equivalent_p): Likewise.
12361 2017-05-15  Sylvestre Ledru  <sylvestre@debian.org>
12363         * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
12365 2017-05-15  Uros Bizjak  <ubizjak@gmail.com>
12367         PR target/80425
12368         * config/i386.i386.md (*zero_extendsidi2): Do not penalize
12369         non-interunit SSE move alternatives with '?'.
12370         (zero-extendsidi peephole2): New peephole to skip intermediate
12371         general register in SSE zero-extend sequence.
12373 2017-05-15  Jeff Law  <law@redhat.com>
12375         * reorg.c (relax_delay_slots): Create a new variable to hold
12376         the temporary target rather than clobbering TARGET_LABEL.
12378         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
12379         missing argument to extract_bit_field call.
12380         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
12382 2017-05-15  Martin Liska  <mliska@suse.cz>
12384         PR driver/31468
12385         * gcc.c (process_command): Do not allow empty argument of -o option.
12387 2017-05-15  Renlin Li  <renlin.li@arm.com>
12389         * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
12390         * config/aarch64/aarch64.c (aarch64_expand_call): Define.
12391         * config/aarch64/constraints.md (Usf): Add long call check.
12392         * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
12393         (call_value): Likewise.
12394         (sibcall): Likewise.
12395         (sibcall_value): Likewise.
12396         (call_insn): New.
12397         (call_value_insn): New.
12398         (sibcall_insn): Update rtx pattern.
12399         (sibcall_value_insn): Likewise.
12400         (call_internal): Remove.
12401         (call_value_internal): Likewise.
12402         (sibcall_internal): Likewise.
12403         (sibcall_value_internal): Likewise.
12404         (call_reg): Likewise.
12405         (call_symbol): Likewise.
12406         (call_value_reg): Likewise.
12407         (call_value_symbol): Likewise.
12409 2017-05-14  Krister Walfridsson  <krister.walfridsson@gmail.com>
12411         PR target/80600
12412         * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
12414 2017-05-14  Uros Bizjak  <ubizjak@gmail.com>
12416         * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
12417         compatible with CCGOCmode and with CCZmode.
12419 2017-05-14  Martin Sebor  <msebor@redhat.com>
12421         PR middle-end/77671
12422         * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
12423         (gimple_fold_builtin_snprintf): Same.
12424         * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
12425         (gimple_fold_builtin_snprintf): Same.
12426         * gimple-ssa-sprintf.c (get_format_string): Correct the detection
12427         of character types.
12428         (is_call_safe): New function.
12429         (try_substitute_return_value): Call it.
12430         (try_simplify_call): New function.
12431         (pass_sprintf_length::handle_gimple_call): Call it.
12433 2017-05-14  Martin Sebor  <msebor@redhat.com>
12435         PR middle-end/80669
12436         * builtins.c (expand_builtin_stpncpy): Simplify.
12438 2017-05-14  Daniel Santos  <daniel.santos@pobox.com>
12440         * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
12441         * config/i386/i386.h
12442         (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
12443         (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
12444         (struct machine_function): Add new members call_ms2sysv,
12445         call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
12446         (struct machine_frame_state): New fields sp_realigned and
12447         sp_realigned_offset.
12448         * config/i386/i386.c
12449         (enum xlogue_stub): New enum.
12450         (enum xlogue_stub_sets): New enum.
12451         (class xlogue_layout): New class.
12452         (struct ix86_frame): New fields stack_realign_allocate_offset,
12453         stack_realign_offset and outlined_save_offset.  Modify comments to
12454         detail stack layout when using out-of-line stubs.
12455         (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
12456         (ix86_option_override_internal): Add sorry() for TARGET_SEH and
12457         -mcall-ms2sysv-xlogues.
12458         (stub_managed_regs): New static variable.
12459         (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
12460         registers managed by out-of-line stub.
12461         (disable_call_ms2sysv_xlogues): New function.
12462         (ix86_compute_frame_layout): Modify re-alignment calculations, disable
12463         m->call_ms2sysv when appropriate and compute frame layout for
12464         out-of-line stubs.
12465         (sp_valid_at, fp_valid_at): New inline functions.
12466         (choose_basereg): New function.
12467         (choose_baseaddr): Add align parameter, use choose_basereg and modify
12468         all callers.
12469         (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
12470         Use align parameter of choose_baseaddr to generated aligned SSE movs
12471         when possible.
12472         (pro_epilogue_adjust_stack): Modify to track
12473         machine_frame_state::sp_realigned.
12474         (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
12475         (ix86_nsaved_sseregs): Likewise.
12476         (ix86_emit_save_regs): Likewise.
12477         (ix86_emit_save_regs_using_mov): Likewise.
12478         (ix86_emit_save_sse_regs_using_mov): Likewise.
12479         (get_scratch_register_on_entry): Likewise.
12480         (gen_frame_set): New function.
12481         (gen_frame_load): Likewise.
12482         (gen_frame_store): Likewise.
12483         (emit_outlined_ms2sysv_save): Likewise.
12484         (emit_outlined_ms2sysv_restore): Likewise.
12485         (ix86_expand_prologue): Modify stack re-alignment code and call
12486         emit_outlined_ms2sysv_save when appropriate.
12487         (ix86_emit_leave): Clear machine_frame_state::sp_realigned.  Add
12488         parameter rtx_insn *insn, which allows the function to be used to only
12489         generate the notes.
12490         (ix86_expand_epilogue): Modify validity checks of frame and stack
12491         pointers, and call emit_outlined_ms2sysv_restore when appropriate.
12492         (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
12493         * config/i386/predicates.md
12494         (save_multiple): New predicate.
12495         (restore_multiple): Likewise.
12496         * config/i386/sse.md
12497         (save_multiple<mode>): New pattern.
12498         (save_multiple_realign<mode>): Likewise.
12499         (restore_multiple<mode>): Likewise.
12500         (restore_multiple_and_return<mode>): Likewise.
12501         (restore_multiple_leave_return<mode>): Likewise.
12502         * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
12504 2017-05-14  Julia Koval  <julia.koval@intel.com>
12506         * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
12507         * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
12508         (__builtin_ia32_xsetbv): New builtins.
12509         * config/i386/i386.c (ix86_expand_special_args_builtin):
12510         Process new types.
12511         (ix86_expand_builtin): Special expand for new intrinsics.
12512         * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
12513         (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
12514         * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
12516 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12518         * cfganal.c (inverted_post_order_compute): Change argument type
12519         to vec *.
12520         * cfganal.h (inverted_post_order_compute): Adjust prototype.
12521         * df-core.c (rest_of_handle_df_initialize): Adjust.
12522         (rest_of_handle_df_finish): Likewise.
12523         (df_analyze_1): Likewise.
12524         (df_analyze): Likewise.
12525         (loop_inverted_post_order_compute): Change argument to be a vec *.
12526         (df_analyze_loop): Adjust.
12527         (df_get_n_blocks): Likewise.
12528         (df_get_postorder): Likewise.
12529         * df.h (struct df_d): Change field to be a vec.
12530         * lcm.c (compute_laterin): Adjust.
12531         (compute_available): Likewise.
12532         * lra-lives.c (lra_create_live_ranges_1): Likewise.
12533         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
12534         * tree-ssa-pre.c (compute_antic): Likewise.
12536 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12538         * cfganal.c (connect_infinite_loops_to_exit): Adjust.
12539         (depth_first_search::depth_first_search): Change structure init
12540         function to this constructor.
12541         (depth_first_search::add_bb): Rename function to this member.
12542         (depth_first_search::execute): Likewise.
12543         (flow_dfs_compute_reverse_finish): Adjust.
12545 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12547         * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
12548         (longest_simple_path): Likewise.
12549         * shrink-wrap.c (spread_components): Likewise.
12550         (disqualify_problematic_components): Likewise.
12551         (emit_common_heads_for_components): Likewise.
12552         (emit_common_tails_for_components): Likewise.
12553         (insert_prologue_epilogue_for_components): Likewise.
12555 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12557         * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
12558         auto_sbitmap.
12560 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12562         * df-core.c (df_set_blocks): Start using auto_bitmap.
12563         (df_compact_blocks): Likewise.
12564         * df-problems.c (df_rd_confluence_n): Likewise.
12565         * df-scan.c (df_insn_rescan_all): Likewise.
12566         (df_process_deferred_rescans): Likewise.
12567         (df_update_entry_block_defs): Likewise.
12568         (df_update_exit_block_uses): Likewise.
12569         (df_entry_block_bitmap_verify): Likewise.
12570         (df_exit_block_bitmap_verify): Likewise.
12571         (df_scan_verify): Likewise.
12572         * lra-constraints.c (lra_constraints): Likewise.
12573         (undo_optional_reloads): Likewise.
12574         (lra_undo_inheritance): Likewise.
12575         * lra-remat.c (calculate_gen_cands): Likewise.
12576         (do_remat): Likewise.
12577         * lra-spills.c (assign_spill_hard_regs): Likewise.
12578         (spill_pseudos): Likewise.
12579         * tree-ssa-pre.c (bitmap_set_and): Likewise.
12580         (bitmap_set_subtract_values): Likewise.
12582 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12584         * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
12585         management with auto_bitmap.
12586         (fix_inter_tick): Likewise.
12587         (fix_recovery_deps): Likewise.
12588         * ira.c (add_store_equivs): Likewise.
12589         (find_moveable_pseudos): Likewise.
12590         (split_live_ranges_for_shrink_wrap): Likewise.
12591         * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
12592         (rtx_reuse_manager::seen_def_p): Likewise.
12593         (rtx_reuse_manager::set_seen_def): Likewise.
12594         * print-rtl.h (class rtx_reuse_manager): Likewise.
12596 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12598         * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
12599         lifetime.
12600         (migrate_btr_def): Likewise.
12601         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
12602         * df-core.c (loop_post_order_compute): Likewise.
12603         (loop_inverted_post_order_compute): Likewise.
12604         * hsa-common.h: Likewise.
12605         * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
12606         * init-regs.c (initialize_uninitialized_regs): Likewise.
12607         * ipa-inline.c (resolve_noninline_speculation): Likewise.
12608         (inline_small_functions): Likewise.
12609         * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
12610         * ira.c (combine_and_move_insns): Likewise.
12611         (build_insn_chain): Likewise.
12612         * loop-invariant.c (find_invariants): Likewise.
12613         * lower-subreg.c (propagate_pseudo_copies): Likewise.
12614         * predict.c (tree_predict_by_opcode): Likewise.
12615         (predict_paths_leading_to): Likewise.
12616         (predict_paths_leading_to_edge): Likewise.
12617         (estimate_loops_at_level): Likewise.
12618         (estimate_loops): Likewise.
12619         * shrink-wrap.c (try_shrink_wrapping): Likewise.
12620         (spread_components): Likewise.
12621         * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
12622         * tree-loop-distribution.c (rdg_build_partitions): Likewise.
12623         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
12624         * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
12625         * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
12626         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
12627         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
12628         * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
12629         (mark_threaded_blocks): Likewise.
12630         (thread_through_all_blocks): Likewise.
12631         * tree-ssa.c (verify_ssa): Likewise.
12632         (execute_update_addresses_taken): Likewise.
12633         * tree-ssanames.c (verify_ssaname_freelists): Likewise.
12635 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12637         * cfganal.c (mark_dfs_back_edges): Replace manual stack with
12638         auto_vec.
12639         (post_order_compute): Likewise.
12640         (inverted_post_order_compute): Likewise.
12641         (pre_and_rev_post_order_compute_fn): Likewise.
12643 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12645         * genrecog.c (int_set::int_set): Explicitly construct our
12646         auto_vec base class.
12647         * vec.h (auto_vec::auto_vec): New constructor.
12649 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12651         * bitmap.h (class auto_bitmap): New constructor taking
12652         bitmap_obstack * argument.
12654 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12656         * bitmap.h (class auto_bitmap): Change type of m_bits to
12657         bitmap_head, and adjust ctor / dtor and member operators.
12659 2017-05-13  Uros Bizjak  <ubizjak@gmail.com>
12661         * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
12662         when returned register mode doesn't match original mode.
12664 2017-05-12  Jeff Law  <law@redhat.com>
12665             Jakub Jelinek  <jakub@redhat.com>
12667         * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
12668         we look for cc setter after the compare-elim changes.
12669         * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
12670         within the vector to match what compare-elim now expects.
12671         (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
12672         (xorsi3_flags, one_cmplsi2_flags): Likewise.
12674         * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
12675         after the compare-elim changes.
12676         * config/rx/rx.md (abssi2_flags): Fix order of patterns within
12677         the vector to match what compare-elim now expects.
12678         (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
12679         (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
12680         (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
12681         (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
12682         (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
12684         * config/visium/visium.c (single_set_and_flags): Fix where
12685         we look for cc setter after the compare-elim changes.
12686         * config/visium/visium.md (flags_subst_logic): Fix order of patterns
12687         with the vector to match what compare-elim now expects.
12688         (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
12689         (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
12690         (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
12691         (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
12692         (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
12693         (neg<mode>2_insn_set_overflow): Likewise.
12695 2017-05-12  Jim Wilson  <jim.wilson@linaro.org>
12697         PR middle-end/79794
12698         * expmed.c (extract_bit_field_1): Add alt_rtl argument.  Before
12699         maybe_expand_insn call, set ops[0].target.  If still set after call,
12700         set alt_rtl.  Add extra arg to recursive calls.
12701         (extract_bit_field): Add alt_rtl argument.  Pass to
12702         extract_bit_field.
12703         * expmed.h (extract_bit_field): Fix prototype.
12704         * expr.c (emit_group_load_1, copy_blkmode_from_reg)
12705         (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
12706         to extract_bit_field_calls.
12707         (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
12708         Pass alt_rtl to extract_bit_field calls.
12709         * calls.c (store_unaligned_arguments_into_psuedos)
12710         load_register_parameters): Pass extra NULL to extract_bit_field calls.
12711         * optabs.c (maybe_legitimize_operand): Clear op->target when call
12712         gen_reg_rtx.
12713         * optabs.h (struct expand_operand): Add target bitfield.
12715 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
12717         * compare-elim.c (try_eliminate_compare): Canonicalize
12718         operation with embedded compare to
12719         [(set (reg:CCM) (compare:CCM (operation) (immediate)))
12720          (set (reg) (operation)].
12722         * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
12724 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
12726         PR target/80723
12727         * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
12728         cost of adding a carry flag for ADC instruction.
12729         [case MINUS]: Ignore the cost of subtracting a carry flag
12730         for SBB instruction.
12732 2017-05-12  Steven Munroe  <munroesj@gcc.gnu.org>
12734         * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
12735         and x86intrin.h
12736         * config/rs6000/bmiintrin.h: New file.
12737         * config/rs6000/bmi2intrin.h: New file.
12738         * config/rs6000/x86intrin.h: New file.
12740 2017-05-12  Jeff Law  <law@redhat.com>
12742         * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
12743         markers.
12745 2017-05-12  Peter Bergner  <bergner@vnet.ibm.com>
12747         PR middle-end/80707
12748         * tree-cfg.c: Remove cfg edges of unreachable case statements.
12750 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
12752         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
12753         early expansion of vector divide builtins.
12754         (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
12755         builtins identified as having unsigned arguments.
12757 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
12759         * config/rs6000/rs6000.c (gimple-fold.h): New #include.
12760         (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
12761         expansion of vector logical operations (and, andc, or, xor,
12762         nor, orc, nand).
12764 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
12766         * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
12767         * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
12769 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
12771         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
12772         early GIMPLE expansion of vector multiplies.
12774 2017-05-12  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
12776         * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
12777         TARGET_HAVE_MOVT conditional.
12778         (movt splitter): Likewise.
12780 2017-05-12  Richard Biener  <rguenther@suse.de>
12782         * tree-ssa-sccvn.h (has_VN_INFO): Declare.
12783         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12784         Fold all stmts not inplace.
12786 2017-05-12  Richard Biener  <rguenther@suse.de>
12788         PR tree-optimization/80713
12789         * tree-ssa-pre.c (remove_dead_inserted_code): Clear
12790         inserted_exprs bit for not removed stmts.
12792 2017-05-12  Thomas Schwinge  <thomas@codesourcery.com>
12794         PR middle-end/69921
12795         * tree-parloops.c (create_parallel_loop): Set "oacc kernels
12796         parallelized" attribute for parallelized OpenACC kernels.
12797         * omp-offload.c (execute_oacc_device_lower): Use it.
12799         * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
12800         Set "oacc kernels" attribute.
12801         * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
12802         parameter.  Adjust all users.
12803         (oacc_fn_attrib_kernels_p): Remove function.
12804         * omp-offload.c (execute_oacc_device_lower): Look for "oacc
12805         kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
12806         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
12807         * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
12808         assert "oacc kernels" attribute is set.
12810 2017-05-11  Carl Love  <cel@us.ibm.com>
12812         * config/rs6000/rs6000-c: Add support for built-in functions
12813         vector unsigned char vec_popcnt (vector signed char)
12814         vector unsigned char vec_popcnt (vector unsigned char)
12815         vector unsigned short vec_popcnt (vector signed short)
12816         vector unsigned short vec_popcnt (vector unsigned short)
12817         vector unsigned int vec_popcnt (vector signed int)
12818         vector unsigned int vec_popcnt (vector unsigned int)
12819         vector unsigned long long vec_popcnt (vector signed long long)
12820         vector unsigned long long vec_popcnt (vector unsigned long long)
12821         vector signed long long vec_slo (vector signed long long,
12822                                          vector signed char)
12823         vector signed long long vec_slo (vector signed long long,
12824                                          vector unsigned char)
12825         vector unsigned long long vec_slo (vector unsigned long long,
12826                                            vector signed char)
12827         vector unsigned long long vec_slo (vector unsigned long long,
12828                                            vector unsigned char)
12829         * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
12830         VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
12831         * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
12832         vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
12833         * doc/extend.texi: Update the built-in documentation file for the
12834         new built-in functions.
12836 2017-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
12838         * attribs.h (sorted_attr_string): Move machine independent
12839         functions for target clone support from the i386 port to common
12840         code.  Rename ix86_function_versions to common_function_versions.
12841         Rename make_name to make_unique_name.
12842         (common_function_versions): Likewise.
12843         (make_unique_name): Likewise.
12844         (make_dispatcher_decl): Likewise.
12845         (is_function_default_version): Likewise.
12846         * attribs.c (attr_strcmp): Likewise.
12847         (sorted_attr_string): Likewise.
12848         (common_function_versions): Likewise.
12849         (make_unique_name): Likewise.
12850         (make_dispatcher_decl): Likewise.
12851         (is_function_default_version): Likewise.
12852         * config/i386/i386.c (attr_strcmp): Likewise.
12853         (sorted_attr_string): Likewise.
12854         (ix86_function_versions): Likewise.
12855         (make_name): Likewise.
12856         (make_dispatcher_decl): Likewise.
12857         (is_function_default_version): Likewise.
12858         (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
12860 2017-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12862         PR target/80695
12863         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
12864         Account for direct move costs for vec_construct of integer
12865         vectors.
12867 2017-05-11  Uros Bizjak  <ubizjak@gmail.com>
12869         PR target/80706
12870         * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
12871         (UNSPEC_STX_ATOMIC): Ditto.
12872         (loaddi_via_sse): New insn.
12873         (storedi_via_sse): Ditto.
12874         (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
12875         Update corresponding peephole2 patterns.
12876         (atomic_storedi_fpu): Ditto.
12878 2017-05-11  Julia Koval  <julia.koval@intel.com>
12880         * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
12881         (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
12882         New intrinsics.
12883         * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
12884         (__builtin_ia32_rsqrt14ss_mask): New builtins.
12885         * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
12887 2017-05-11  Nathan Sidwell  <nathan@acm.org>
12889         * graphite-poly.c: Include dumpfile.h.
12891         * dumpfle.h (dump_function): Declare here ...
12892         * tree-dump.h (dump_function): ... not here.
12893         * dumpfile.c: #include tree-cfg.h.
12894         (dump_function): Move here from ...
12895         * tree-dump.c (dump_function): ... here.
12896         * gimplify.c: #include splay-tree.h, not tree-dump.h.
12897         * graphite-poly.c: Don't include tree-dump.h.
12898         * cgraphclones.c: Include dumpfile.h not tree-dump.h.
12899         * print-tree.c: Likewise.
12900         * stor-layout.c: Likewise.
12901         * tree-nested.c: Likewise.
12903         * dumpfile.c (dump_start): Use TDF_FLAGS.
12904         (dump_enable_all): Fix TDF_KIND check thinko.
12906 2017-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12908         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12909         array entries to represent two legal parameterizations of the
12910         overloaded __builtin_cmpb function, as represented by the
12911         P6_OV_BUILTIN_CMPB constant.
12912         (altivec_resolve_overloaded_builtin): Add special case handling
12913         for the __builtin_cmpb function, as represented by the
12914         P6_OV_BUILTIN_CMPB constant.
12915         * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
12916         (BU_P6_64BIT_2): New macro.
12917         (BU_P6_OVERLOAD_2): New macro
12918         (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
12919         (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
12920         (CMPB): Add overload support to represent both 32-bit and 64-bit
12921         compare-bytes function.
12922         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
12923         support for TARGET_CMPB.
12924         * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
12925         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
12926         documentation of the __builtin_cmpb overloaded built-in function.
12928 2017-05-11  Richard Biener  <rguenther@suse.de>
12930         PR tree-optimization/80705
12931         * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
12932         bases are not vectorizable.
12934 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
12936         * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
12937         when counting register pressure.
12939 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
12941         * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
12942         (iv_ca_more_deps): Renamed to ...
12943         (iv_ca_compare_deps): ... this.
12944         (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
12946 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
12948         * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
12949         to ...
12950         (determine_group_iv_costs): ... here.
12951         (find_inv_vars_cb): Record inv var if it's not recorded before.
12953 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
12955         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
12956         (get_shiftadd_cost): Ditto.
12958 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
12960         * tree-ssa-address.c: Include header file.
12961         (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
12962         address.
12963         (add_to_parts): Refactor.
12964         (addr_to_parts): New parameter.  Update use of move_hint_to_base.
12965         (create_mem_ref): Update use of addr_to_parts.  Re-associate addr
12966         in new order.
12968 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
12970         PR tree-optimization/53090
12971         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
12972         COMP_IV_EXPR_2.
12973         (extract_cond_operands): Detect condition with IV on both sides
12974         and return COMP_IV_EXPR_2.
12975         (find_interesting_uses_cond): Add iv_use for both IVs in condition.
12976         (rewrite_use_compare): Simplify by removing call to function
12977         extract_cond_operands.
12979 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
12981         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
12982         (extract_cond_operands): Detect condition comparing against non-
12983         invariant bound and return appropriate enum value.
12984         (find_interesting_uses_cond): Update use of extract_cond_operands.
12985         Handle its return value accordingly.
12986         (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
12988 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
12990         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
12991         nonlinear iv_use computation in loop invariant sensitive way.
12993 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
12995         * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
12996         (find_iv_candidates): Call relate_compare_use_with_all_cands.
12998 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
13000         * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
13001         (dump_cand): Support iv_cand.inv_exprs.
13002         (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
13003         for candidates.
13004         (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
13005         iv_cand.inv_exprs.
13007 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
13009         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
13010         from ...
13011         * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
13012         as local function.  Include necessary header files.
13013         * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
13015 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
13017         * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
13019 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
13021         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
13022         operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
13023         RSHIFT_EXPR and BIT_NOT_EXPR.
13025 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
13027         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
13028         (adjust_setup_cost): New parameter supporting round up adjustment.
13029         (struct address_cost_data): Delete.
13030         (force_expr_to_var_cost): Don't bound cost with spill_cost.
13031         (split_address_cost, ptr_difference_cost): Delete.
13032         (difference_cost, compare_aff_trees, record_inv_expr): Delete.
13033         (struct ainc_cost_data): New struct.
13034         (get_address_cost_ainc): New function.
13035         (get_address_cost, get_computation_cost): Reimplement.
13036         (determine_group_iv_cost_address): Record inv_expr for all uses of
13037         a group.
13038         (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
13039         (iv_ca_has_deps): Reimplemented to ...
13040         (iv_ca_more_deps): ... this.  Check if NEW_CP introduces more deps
13041         than OLD_CP.
13042         (iv_ca_extend): Call iv_ca_more_deps.
13044 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
13046         * tree-ssa-address.c (struct mem_address): Move to header file.
13047         (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
13048         * tree-ssa-address.h (struct mem_address): Move from C file.
13049         (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
13051 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
13053         * tree-affine.h (aff_combination_type): New interface.
13054         (aff_combination_zero_p): Remove static.
13055         (aff_combination_const_p): New interface.
13056         (aff_combination_singleton_var_p): New interfaces.
13058 2017-05-11  Richard Biener  <rguenther@suse.de>
13060         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13061         Skip unreachable blocks and destinations.
13062         (eliminate): Move stmt removal and fixup ...
13063         (fini_eliminate): ... here.  Skip inserted exprs.
13064         (pass_pre::execute): Move fini_pre after fini_eliminate.
13065         * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
13066         (tail_merge_optimize): Run cleanup_tree_cfg if requested by
13067         PRE to get rid of dead code that has invalid SSA form and
13068         split critical edges again.
13070 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
13072         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
13074 2017-05-11  Richard Biener  <rguenther@suse.de>
13076         * passes.c (execute_function_todo): Verify loops if they are
13077         said to be up-to-date.
13078         * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
13079         * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
13081 2017-05-10  John David Anglin  <danglin@gcc.gnu.org>
13083         PR target/80090
13084         * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
13085         handle calling assemble_external ourself.
13087         PR target/79027
13088         * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
13089         modes with zero size.  Enhance comment.
13091 2017-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13093         * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
13094         built-ins for vec_xl and vec_xst with short and char pointer
13095         arguments.
13097 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
13099         * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
13100         (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
13101         (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
13102         (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
13103         (_mm_maskz_min_round_ss): New intrinsics.
13104         * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
13105         (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
13106         * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
13107         (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
13108         (__builtin_ia32_minss_mask_round): New builtins.
13109         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
13110         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
13111         * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
13112         Rename to ...
13113         (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
13114         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
13115         Change to ...
13116         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
13117         ... this.
13119 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
13121         * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
13122         (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
13123         (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
13124         (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
13125         (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
13126         (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
13127         (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
13128         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
13129         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
13130         * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
13131         (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
13132         (__builtin_ia32_mulss_mask_round): New builtins.
13133         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
13134         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
13135         * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
13136         Rename to ...
13137         (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
13138         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
13139         Change to ...
13140         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
13141         ... this.
13143 2017-05-10  Julia Koval  <julia.koval@intel.com>
13145         * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
13146         (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
13147         (_mm256_setr_m128i): New intrinsics.
13149 2017-05-10  Julia Koval  <julia.koval@intel.com>
13151         * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
13152         (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
13153         (_mm_maskz_rcp14_ss): New intrinsics.
13154         * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
13155         (__builtin_ia32_rcp14ss_mask): New builtins.
13156         * config/i386/sse.md (srcp14<mode>_mask): New pattern.
13158 2017-05-10  Peter Bergner  <bergner@vnet.ibm.com>
13160         PR tree-optimization/51513
13161         * tree-cfg.c (gimple_seq_unreachable_p): New function.
13162         (assert_unreachable_fallthru_edge_p): Use it.
13163         (group_case_labels_stmt): Likewise.
13164         * tree-cfg.h: Prototype it.
13165         * stmt.c: Include cfghooks.h and tree-cfg.h.
13166         (emit_case_dispatch_table) <gap_label>: New local variable.
13167         Use it to fill dispatch table gaps.
13168         Test for default_label before updating probabilities.
13169         (expand_case) <default_label>: Remove unneeded initialization.
13170         Test for unreachable default case statement and remove its edge.
13171         Set default_label accordingly.
13172         * tree-ssa-ccp.c (optimize_unreachable): Update comment.
13174 2017-05-10  Carl Love  <cel@us.ibm.com>
13176         * config/rs6000/rs6000-c: Add support for built-in functions
13177         vector signed char      vec_neg (vector signed char)
13178         vector signed short int vec_neg (vector short int)
13179         vector signed int       vec_neg (vector signed int)
13180         vector signed long long vec_neg (vector signed long long)
13181         vector float            vec_neg (vector float)
13182         vector double           vec_neg (vector double)
13183         * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
13184         overload.
13185         * config/rs6000/altivec.h: Add define for vec_neg
13186         * doc/extend.texi: Update the built-in documentation for the
13187         new built-in functions.
13189 2017-05-10  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13191         PR tree-optimization/77644
13192         * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
13194 2017-05-10  Nathan Sidwell  <nathan@acm.org>
13196         * dumpfile.h (TDI_lang_all): New.
13197         (TDF_KIND): New. Renumber others
13198         (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
13199         than bits.
13200         * dumpfile.c (dump_files): Mark language dumps as TDF_LANG.  add
13201         lang-all.
13202         (get_dump_file_name): Adjust suffix generation.
13203         (dump_enable_all): Use TDF_KIND.
13204         * doc/invoke.texi (-fdump-lang-all): Document.
13206         * dumpfile.h: Tabify.
13208 2017-05-10  Wilco Dijkstra  <wdijkstr@arm.com>
13210         PR target/80671
13211         * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
13212         Move member access before delete.
13214 2017-05-10  Alexandre Oliva <aoliva@redhat.com>
13216         * tree-inline.c (expand_call_inline): Split block at stmt
13217         before the call.
13219 2017-05-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
13221         PR target/68163
13222         * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
13223         are now unused after splitting mov{sf,sd}_hardfloat.
13224         (f32_lr2): Likewise.
13225         (f32_lm): Likewise.
13226         (f32_lm2): Likewise.
13227         (f32_li): Likewise.
13228         (f32_li2): Likewise.
13229         (f32_lv): Likewise.
13230         (f32_sr): Likewise.
13231         (f32_sr2): Likewise.
13232         (f32_sm): Likewise.
13233         (f32_sm2): Likewise.
13234         (f32_si): Likewise.
13235         (f32_si2): Likewise.
13236         (f32_sv): Likewise.
13237         (f32_dm): Likewise.
13238         (f32_vsx): Likewise.
13239         (f32_av): Likewise.
13240         (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
13241         For movsf, order stores so the VSX stores occur before the GPR
13242         store which encourages the register allocator to use a traditional
13243         FPR instead of a GPR.  For movsd, order the stores so that the GPR
13244         store comes before the VSX stores to allow the power6 to work.
13245         This is due to the power6 not having a 32-bit integer store
13246         instruction from a FPR.
13247         (movsf_hardfloat): Likewise.
13248         (movsd_hardfloat): Likewise.
13250 2017-05-09  Martin Sebor  <msebor@redhat.com>
13252         PR translation/80280
13253         * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
13254         added in r247778.
13256         PR translation/80280
13257         * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
13258         data member added in r247778.
13259         (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
13261 2017-05-09  Nathan Sidwell  <nathan@acm.org>
13263         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
13265         * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
13266         typedefs.
13268 2017-05-09  Marek Polacek  <polacek@redhat.com>
13270         * doc/invoke.texi: Fix typo.
13272 2017-05-09  Richard Biener  <rguenther@suse.de>
13274         * tree-vrp.c (vrp_val_is_max): Adjust comment.
13275         (vrp_val_is_min): Likewise.
13276         (set_value_range_to_value): Likewise.
13277         (set_value_range_to_nonnegative): Likewise.
13278         (gimple_assign_nonzero_p): Likewise.
13279         (gimple_stmt_nonzero_p): Likewise.
13280         (vrp_int_const_binop): Likewise.  Remove unreachable case.
13281         (adjust_range_with_scev): Adjust comments.
13282         (compare_range_with_value): Likewise.
13283         (extract_range_from_phi_node): Likewise.
13284         (test_for_singularity): Likewise.
13286 2017-05-09  Richard Biener  <rguenther@suse.de>
13288         * tree-vrp.c (get_single_symbol): Add assert that we don't
13289         get overflowed constants as invariant part.
13290         (compare_values_warnv): Add comment before the TREE_NO_WARNING
13291         checks.  Use wi::cmp instead of recursing for integer constants.
13292         (compare_values): Just ignore whether we assumed undefined
13293         overflow instead of failing the compare.
13294         (extract_range_for_var_from_comparison_expr): Add comment before the
13295         TREE_NO_WARNING sets.
13296         (test_for_singularity): Likewise.
13297         (extract_range_from_comparison): Do not disable optimization
13298         when we assumed undefined overflow.
13299         (extract_range_basic): Remove init of unused var.
13301 2017-05-09  Richard Biener  <rguenther@suse.de>
13303         * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
13304         (extract_range_from_multiplicative_op_1): Adjust.
13305         (extract_range_from_binary_expr_1): Use int_const_binop.
13307 2017-05-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
13309         PR target/80101
13310         * config/rs6000/power6.md: Replace store_data_bypass_p calls with
13311         rs6000_store_data_bypass_p in seven define_bypass directives and
13312         in several comments.
13313         * config/rs6000/rs6000-protos.h: Add prototype for
13314         rs6000_store_data_bypass_p function.
13315         * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
13316         function implements slightly different (rs6000-specific) semantics
13317         than store_data_bypass_p, returning false rather than aborting
13318         with assertion error when arguments do not satisfy the
13319         requirements of store data bypass.
13320         (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
13321         rs6000_store_data_bypass_p.
13323 2017-05-08  Max Filippov  <jcmvbkbc@gmail.com>
13325         * config/xtensa/xtensa-protos.h
13326         (xtensa_initial_elimination_offset): New declaration.
13327         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
13328         New function. Move its body from the INITIAL_ELIMINATION_OFFSET
13329         macro definition, add case for FRAME_POINTER_REGNUM when
13330         FRAME_GROWS_DOWNWARD.
13331         * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
13332         (INITIAL_ELIMINATION_OFFSET): Replace body with call to
13333         xtensa_initial_elimination_offset.
13335 2017-05-08  Nathan Sidwell  <nathan@acm.org>
13337         * doc/invoke.texi: Alphabetize -fdump options.
13339 2017-05-08  Martin Sebor  <msebor@redhat.com>
13341         PR translation/80280
13342         * config/sol2-c.c (solaris_pragma_align): Correct quoting.
13344 2017-05-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13346         * target.def (compute_frame_layout): New optional target hook.
13347         * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
13348         * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
13349         * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
13350         target hook.
13351         * reload1.c (verify_initial_elim_offsets): Likewise.
13352         * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
13353         (use_simple_return_p): Call arm_compute_frame_layout if needed.
13354         (arm_get_frame_offsets): Split up into this ...
13355         (arm_compute_frame_layout): ... and this function.
13357 2017-05-08  Richard Sandiford  <richard.sandiford@arm.com>
13359         * config/aarch64/constraints.md (Usa): New constraint.
13360         * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
13362 2017-05-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13364         * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
13365         with_multilib_list after it has been checked.
13367 2017-05-08  Richard Biener  <rguenther@suse.de>
13369         * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
13370         (bitmap_set_subtract_values): Likewise.
13372 2017-05-08  Richard Biener  <rguenther@suse.de>
13374         * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
13375         (gimple_assign_nonzero): ... this and remove strict_overflow_p
13376         argument.
13377         (gimple_stmt_nonzero_warnv_p): Rename to ...
13378         (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
13379         argument.
13380         (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
13381         (extract_range_basic): Adjust, do not disable propagation on
13382         strict overflow sensitive simplification.
13383         (vrp_visit_cond_stmt): Likewise.
13385 2017-05-05  Jan Hubicka  <hubicka@ucw.cz>
13387         * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
13388         body size unconditionally.
13390 2017-05-07  Jeff Law  <law@redhat.com>
13392         Revert:
13393         2017-05-06  Jeff Law  <law@redhat.com>
13394         PR tree-optimization/78496
13395         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
13396         code.
13398         PR tree-optimization/78496
13399         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
13400         (simplify_stmt_using_ranges): Call it.
13401         (vrp_dom_walker::before_dom_children): Extract equivalences
13402         from an ASSERT_EXPR with an equality comparison against a
13403         constant.
13405 2017-05-06  Jeff Law  <law@redhat.com>
13407         PR tree-optimization/78496
13408         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
13409         code.
13411         PR tree-optimization/78496
13412         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
13413         (simplify_stmt_using_ranges): Call it.
13414         (vrp_dom_walker::before_dom_children): Extract equivalences
13415         from an ASSERT_EXPR with an equality comparison against a
13416         constant.
13418 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
13420         * lra-constraints.c (lra_copy_reg_equiv): New function.
13421         (split_reg): Use it to copy equivalence information from the
13422         original register to the spill register.
13424 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
13426         PR rtl-optimization/75964
13427         * simplify-rtx.c (simplify_const_relational_operation): Remove
13428         invalid handling of comparisons of integer ABS.
13430 2017-05-06  Uros Bizjak  <ubizjak@gmail.com>
13432         * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
13433         initialize to zero.
13434         (init_regs): Remove declaration.
13435         (function_arg_advance_32): Initialize error_p as boolean variable.
13437 2017-05-05  Nathan Sidwell  <nathan@acm.org>
13439         * store-motion.c (remove_reachable_equiv_notes): Reformat long
13440         lines.  Use for (;;).
13442 2017-05-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13444         * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
13445         (rs6000_init_cost): Initialize rs6000_vect_nonmem.
13446         (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
13447         (rs6000_finish_cost): Avoid vectorizing simple copy loops with
13448         VF=2 that require versioning.
13450 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
13452         * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
13453         int.
13455 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
13457         * diagnostic.h (diagnostic_override_option_index): Convert from
13458         macro to inline function.
13460 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
13462         * diagnostic.c (last_module_changed_p): New function.
13463         (set_last_module): New function.
13464         (diagnostic_report_current_module): Convert macro usage to
13465         the above functions.
13466         * diagnostic.h (diagnostic_context::last_module): Strengthen
13467         from const line_map * to const line_map_ordinary *.
13468         (diagnostic_last_module_changed): Delete macro.
13469         (diagnostic_set_last_module): Delete macro.
13471 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
13473         * diagnostic.c (diagnostic_impl): Replace report_diagnostic
13474         with diagnostic_report_diagnostic.
13475         (diagnostic_n_impl_richloc): Likewise.
13476         * diagnostic.h (report_diagnostic): Delete macro.
13477         * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
13478         with diagnostic_report_diagnostic.
13479         * substring-locations.c (format_warning_va): Likewise.
13481 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
13483         * diagnostic.c (diagnostic_report_diagnostic): Eliminate
13484         save/restor of format_spec.  Move option-printing code to...
13485         (print_option_information): ...this new function, and
13486         reimplement by simply printing to the pretty_printer,
13487         rather than appending to the format string.
13489 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
13491         * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
13492         handling logic into...
13493         (update_effective_level_from_pragmas): ...this new function.
13495 2017-05-04  Andrew Waterman  <andrew@sifive.com>
13497         * config/riscv/riscv.opt (mstrict-align): New option.
13498         * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it.  Update comment.
13499         (SLOW_UNALIGNED_ACCESS): Define.
13500         (riscv_slow_unaligned_access): Declare.
13501         * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
13502         field.
13503         (riscv_slow_unaligned_access): New variable.
13504         (rocket_tune_info): Set slow_unaligned_access to true.
13505         (optimize_size_tune_info): Set slow_unaligned_access to false.
13506         (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
13507         (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
13508         (riscv_option_override): Set riscv_slow_unaligned_access.
13509         * doc/invoke.texi: Add -mstrict-align to RISC-V.
13511 2017-05-04  Kito Cheng  <kito.cheng@gmail.com>
13513         * config/riscv/riscv.md: Unify indentation.
13515 2017-05-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
13517         PR target/79038
13518         PR target/79202
13519         PR target/79203
13520         * config/rs6000/rs6000.md (u code attribute): Add FIX and
13521         UNSIGNED_FIX.
13522         (extendsi<mode>2): Add support for doing sign extension via
13523         VUPKHSW and XXPERMDI if the value is in Altivec registers and we
13524         don't have ISA 3.0 instructions.
13525         (extendsi<mode>2 splitter): Likewise.
13526         (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
13527         generate the normal insns since SImode can now go in vector
13528         registers.  Disallow the special UNSPECs needed for previous
13529         machines to hide SImode being used.  Add new insns
13530         fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
13531         (fix_trunc<mode>si2_stfiwx): Likewise.
13532         (fix_trunc<mode>si2_internal): Likewise.
13533         (fixuns_trunc<mode>si2): Likewise.
13534         (fixuns_trunc<mode>si2_stfiwx): Likewise.
13535         (fctiw<u>z_<mode>_smallint): Likewise.
13536         (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
13537         of floating point to 32-bit integer from doing a direct move to
13538         the GPR registers to do a store.
13539         (fctiwz_<mode>): Break long line.
13541 2017-05-05  Bin Cheng  <bin.cheng@arm.com>
13543         * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
13544         * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
13545         (addr_list, addr_offset_valid_p): New.
13546         (split_address_groups): Check offset validity with above function.
13547         (gt-tree-ssa-loop-ivopts.h): Include header file.
13549 2017-05-05  Nathan Sidwell  <nathan@acm.org>
13551         * config.gcc (arm*-*-*): Add missing 'fi'.
13553 2017-05-05  Steve Ellcey  <sellcey@cavium.com>
13555         * doc/invoke.texi (-fopt-info): Explicitly say order of options
13556         included in -fopt-info does not matter.
13557         * doc/optinfo.texi (-fopt-info): Fix description of default
13558         behavour. Explicitly say order of options included in -fopt-info
13559         does not matter.
13561 2017-05-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13563         * config.gcc: Allow combinations of aprofile and rmprofile values for
13564         --with-multilib-list.
13565         * config/arm/t-multilib: New file.
13566         * config/arm/t-aprofile: Remove initialization of MULTILIB_*
13567         variables.  Remove setting of ISA and floating-point ABI in
13568         MULTILIB_OPTIONS and MULTILIB_DIRNAMES.  Set architecture and FPU in
13569         MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
13570         and MULTILIB_DIRNAMES respectively.  Add comment to introduce all
13571         matches.  Add architecture matches for marvel-pj4 and generic-armv7-a
13572         CPU options.
13573         * config/arm/t-rmprofile: Likewise except for the matches changes.
13574         * doc/install.texi (--with-multilib-list): Document the combination of
13575         aprofile and rmprofile values and warn about pitfalls in doing that.
13577 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
13579         * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
13580         (movdi_aarch64): Likewise.
13582 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
13584         PR tree-optimization/80632
13585         * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
13586         field.
13587         (build_arrays): Initialize it for virtual phis.
13588         (fix_phi_nodes): Use it for virtual phis.
13590         PR tree-optimization/80558
13591         * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
13592         [x, y] op z into [x op, y op z] for op & or | if conditions
13593         are met.
13595 2017-05-05  Andre Vieira  <andre.simoesdiasvieira@arm.com>
13596             Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
13598         PR target/71607
13599         * config/arm/arm.md (use_literal_pool): Remove.
13600         (64-bit immediate split): No longer takes cost into consideration
13601         if arm_disable_literal_pool is enabled.
13602         * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
13603         used when arm_disable_literal_pool is enabled.
13604         (arm_max_const_double_inline_cost): Remove use of
13605         arm_disable_literal_pool.
13606         (push_minipool_fix): Add assert.
13607         (arm_reorg): Add return if arm_disable_literal_pool is enabled.
13608         * config/arm/vfp.md (no_literal_pool_df_immediate): New.
13609         (no_literal_pool_sf_immediate): New.
13611 2017-05-05  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13613         PR tree-optimization/80613
13614         * tree-ssa-dce.c (propagate_necessity): Remove cases for
13615         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
13617 2017-05-05  Richard Biener  <rguenther@suse.de>
13619         * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
13621 2017-05-05  Georg-Johann Lay  <avr@gjlay.de>
13623         * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
13624         of this flag from insn conditions due to removal from r247495.
13626 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
13628         * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
13629         New function.
13630         (arm_early_store_addr_dep_ptr): Likewise.
13631         * config/arm/aarch-common-protos.h
13632         (arm_early_load_addr_dep_ptr): Add prototype.
13633         (arm_early_store_addr_dep_ptr): Likewise.
13634         * config/arm/cortex-a53.md: Add new bypasses.
13636 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
13638         * tree.c (next_type_uid): Change type to unsigned.
13639         (type_hash_canon): Decrement back next_type_uid if
13640         freeing a type node with the highest TYPE_UID.  For INTEGER_TYPEs
13641         also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
13642         if possible.
13644 2017-05-04  Martin Sebor  <msebor@redhat.com>
13646         * builtins.c: Fix a trivial typo in a comment.
13648         PR middle-end/79234
13649         * builtins.c (check_sizes): Adjust to handle reading past the end.
13650         Avoid printing excessive upper bound of ranges.  Use %E to print
13651         tree nodes instead of converting them to %wu.
13652         (expand_builtin_memchr): New function.
13653         (compute_dest_size): Rename...
13654         (compute_objsize): ...to this.
13655         (expand_builtin_memcpy): Adjust.
13656         (expand_builtin_mempcpy): Adjust.
13657         (expand_builtin_strcat): Adjust.
13658         (expand_builtin_strcpy): Adjust.
13659         (check_strncat_sizes): Adjust.
13660         (expand_builtin_strncat): Adjust.
13661         (expand_builtin_strncpy): Adjust and simplify.
13662         (expand_builtin_memset): Adjust.
13663         (expand_builtin_bzero): Adjust.
13664         (expand_builtin_memcmp): Adjust.
13665         (expand_builtin): Handle memcmp.
13666         (maybe_emit_chk_warning): Check strncat just once.
13668 2017-05-04  Martin Sebor  <msebor@redhat.com>
13670         PR preprocessor/79214
13671         PR middle-end/79222
13672         PR middle-end/79223
13673         * builtins.c (check_sizes): Add inlining context and issue
13674         warnings even when -Wno-system-headers is set.
13675         (check_strncat_sizes): Same.
13676         (expand_builtin_strncat): Same.
13677         (expand_builtin_memmove): New function.
13678         (expand_builtin_stpncpy): Same.
13679         (expand_builtin): Handle memmove and stpncpy.
13681 2017-05-04  Bin Cheng  <bin.cheng@arm.com>
13683         * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
13684         which is not used any more.
13686 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
13688         * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
13690 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
13692         * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
13693         (cortexa53_tunings): Likewise.
13694         (cortexa57_tunings): Likewise.
13695         (cortexa72_tunings): Likewise.
13696         (cortexa73_tunings): Likewise.
13698 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
13700         * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
13701         Set loop alignment to 8.
13703 2017-05-04  Martin Sebor  <msebor@redhat.com>
13705         PR translation/80280
13706         * builtins.c (expand_builtin_object_size): Add missing quoting to
13707         %D and like directives.
13708         * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
13709         (hsa_type_for_tree_type): Same.
13710         (verify_function_arguments): Same.
13711         * symtab.c (symbol_table::change_decl_assembler_name): Same.
13712         * varasm.c (get_section): Same.
13713         (mark_weak): Same.
13715 2017-05-04  Martin Sebor  <msebor@redhat.com>
13717         PR translation/80280
13718         * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
13720 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
13722         * config/aarch64/aarch64.c (generic_addrcost_table):
13723         Change HI/TI mode setting.
13725 2017-05-04  Martin Jambor  <mjambor@suse.cz>
13727         PR tree-optimization/80622
13728         * tree-sra.c (comes_initialized_p): New function.
13729         (build_accesses_from_assign): Only set write lazily when
13730         comes_initialized_p is false.
13731         (analyze_access_subtree): Use comes_initialized_p.
13732         (propagate_subaccesses_across_link): Assert !comes_initialized_p
13733         instead of testing for PARM_DECL.
13735 2017-05-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13737         * config/aarch64/aarch64.md (prefetch); Adjust predicate and
13738         constraint on operand 0 to allow more general addressing modes.
13739         Adjust output template.
13740         * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
13741         New function.
13742         * config/aarch64/aarch64-protos.h
13743         (aarch64_address_valid_for_prefetch_p): Declare prototype.
13744         * config/aarch64/constraints.md (Dp): New address constraint.
13745         * config/aarch64/predicates.md (aarch64_prefetch_operand): New
13746         predicate.
13748 2017-05-04  Jan Hubicka  <hubicka@ucw.cz>
13750         * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
13751         update use of estimate_ipcp_clone_size_and_time.
13752         (estimate_local_effects): Update use of
13753         estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
13754         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
13755         * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
13756         Return nonspecialized time.
13758 2017-05-04  Richard Biener  <rguenther@suse.de>
13760         * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
13761         for the last VUSE which def dominates the PHI.  Directly call
13762         maybe_skip_until.
13763         (get_continuation_for_phi_1): Remove.
13765 2017-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
13767         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
13768         to explain the use of truncating division.  Cap the number of
13769         iterations to the maximum given by nb_iterations_upper_bound,
13770         if defined.
13772 2017-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13774         * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
13775         * configure: Regenerate.
13776         * config.in: Regenerate.
13777         * config/i386/driver-mingw32.c: new file.
13778         * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
13779         * config.host: Link driver-mingw32.o on MinGW host.
13780         * doc/install.texi: Document new --enable-mingw-wildcard configure
13781         option.
13783 2017-05-04  Marek Polacek  <polacek@redhat.com>
13785         PR tree-optimization/80612
13786         * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
13788 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
13789             Andre Simoes Dias Vieira  <andre.simoesdiasvieira@arm.com>
13791         * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
13792         (movt splitter): Likewise.
13793         * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
13794         to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
13795         (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
13796         block for Thumb-1 with MOVT.
13797         (thumb2_legitimate_address_p): Move code block ...
13798         (can_avoid_literal_pool_for_label_p): ... into this new function.
13799         (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
13800         literal pool.
13801         (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
13802         * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
13803         "M-profile targets with the MOVT instruction".
13805 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
13807         * config/arm/arm-builtins.c (arm_init_builtins): Rename
13808         __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
13809         __builtin_arm_stfscr to __builtin_arm_set_fpscr.
13811 2017-05-04  Martin Liska  <mliska@suse.cz>
13813         * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
13814         variable cond_code.
13816 2017-05-04  Richard Biener  <rguenther@suse.de>
13818         * tree.c (array_at_struct_end_p): Handle arrays at struct
13819         end with flexarrays more conservatively.  Refactor and treat
13820         arrays of arrays or aggregates more strict.  Fix
13821         VIEW_CONVERT_EXPR handling.  Remove allow_compref argument.
13822         * tree.c (array_at_struct_end_p): Adjust prototype.
13823         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
13824         * gimple-fold.c (get_range_strlen): Likewise.
13825         * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
13827 2017-05-04  Richard Biener  <rguenther@suse.de>
13829         PR tree-optimization/31130
13830         * tree-vrp.c (needs_overflow_infinity): Remove as always returning
13831         false.
13832         (supports_overflow_infinity): Likewise.
13833         (is_negative_overflow_infinity): Likewise.
13834         (is_positive_overflow_infinity): Likewise.
13835         (is_overflow_infinity): Likewise.
13836         (stmt_overflow_infinity): Likewise.
13837         (overflow_infinity_range_p): Likewise.
13838         (usable_range_p): Remove as always returning true.
13839         (make_overflow_infinity): Remove.
13840         (negative_overflow_infinity): Likewise.
13841         (positive_overflow_infinity): Likewise.
13842         (avoid_overflow_infinity): Likewise.
13843         (set_value_range): Adjust accordingly.
13844         (set_value_range_to_nonnegative): Likewise, remove now unused
13845         overflow_infinity arg.
13846         (vrp_operand_equal_p): Adjust.
13847         (update_value_range): Likewise.
13848         (range_int_cst_singleton_p): Likewise.
13849         (operand_less_p): Likewise.
13850         (compare_values_warnv): Likewise.
13851         (extract_range_for_var_from_comparison_expr): Likewise.
13852         (vrp_int_const_binop): Likewise.
13853         (zero_nonzero_bits_from_vr): Likewise.
13854         (extract_range_from_multiplicative_op_1): Likewise.
13855         (extract_range_from_binary_expr_1): Likewise.
13856         (extract_range_from_unary_expr): Likewise.
13857         (extract_range_from_comparison): Likewise.
13858         (extract_range_basic): Likewise.
13859         (adjust_range_with_scev): Likewise.
13860         (compare_ranges): Likewise.
13861         (compare_range_with_value): Likewise.
13862         (dump_value_range): Likewise.
13863         (test_for_singularity): Likewise, remove strict_overflow_p parameter
13864         never used.
13865         (simplify_cond_using_ranges): Adjust.
13867 2017-05-04  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
13869         * brig-builtins.def: Added a builtin for class_f64.
13870         * builtin-types.def: Added a builtin type needed by class_f64.
13872 2017-05-03  Jason Merrill  <jason@redhat.com>
13874         * timevar.def: Add TV_CONSTEXPR.
13876 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
13878         * common.opt (fdiagnostics-parseable-fixits): Fix typo.
13880 2017-05-03  Martin Jambor  <mjambor@suse.cz>
13882         * ipa-prop.c (ipa_update_after_lto_read): Removed.
13883         * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
13884         * ipa-cp.c (ipcp_propagate_stage): Do not call
13885         ipa_update_after_lto_read.
13886         * ipa-inline.c (ipa_inline): Likewise.
13888 2017-05-03  Martin Jambor  <mjambor@suse.cz>
13890         * ipa-prop.h (ipa_edge_args): Make a class.  Mark with for_user GTY
13891         tag.  Added a default constructor and a destructor.
13892         (ipa_edge_args_sum_t): New class;
13893         (ipa_edge_args_sum): Declare.
13894         (ipa_edge_args_vector): Remove declaration.
13895         (IPA_EDGE_REF): Use ipa_edge_args_sum.
13896         (ipa_free_edge_args_substructures): Remove declaration.
13897         (ipa_check_create_edge_args): Use ipa_edge_args_sum.
13898         (ipa_edge_args_info_available_for_edge_p): Likewise.
13899         * ipa-prop.c (ipa_edge_args_vector): Removed.
13900         (edge_removal_hook_holder): Likewise.
13901         (edge_duplication_hook_holder): Likewise.
13902         (ipa_edge_args_sum): New variable.
13903         (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
13904         ipa_edge_args_vector.
13905         (ipa_free_edge_args_substructures): Likewise.
13906         (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
13907         ipa_edge_args_vector.
13908         (ipa_edge_removal_hook): Turned into method
13909         ipa_edge_args_sum_t::remove.
13910         (ipa_edge_duplication_hook): Turned into method
13911         ipa_edge_args_sum_t::duplicate.
13912         (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
13913         registering edge hooks.
13914         (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
13915         * ipa-inline-analysis.c (estimate_function_body_sizes): Test
13916         ipa_edge_args_sum instead of ipa_edge_args_vector.
13917         * ipa-profile.c (ipa_profile): Likewise.
13919 2017-05-03  Martin Jambor  <mjambor@suse.cz>
13921         * symbol-summary.h (function_summary): New method exists.
13922         (function_summary::symtab_removal): Deallocate through release.
13923         (call_summary): New class.
13924         (gt_ggc_mx): New overload.
13925         (gt_pch_nx): Likewise.
13926         (gt_pch_nx): Likewise.
13928 2017-05-03  Jeff Law  <law@redhat.com>
13930         PR tree-optimization/78496
13931         * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
13932         from simplify_cond_using_ranges.  Split off code to walk
13933         backwards through casts into ...
13934         (simplify_cond_using_ranges_2): New function.
13935         (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
13936         (execute_vrp): After identifying jump threads, call
13937         simplify_cond_using_ranges_2.
13939 2017-05-03  Jan Hubicka  <hubicka@ucw.cz>
13941         PR bootstrap/80609
13942         * ipa-inline.h (inline_summary): Add ctor.
13943         (create_ggc): Do not use ggc_cleared_alloc.
13945 2017-05-03  Jeff Downs  <heydowns@somuchpressure.net>
13946             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13948         * gcc.c (handle_braces): Support escaping in switch matching
13949         text.
13950         * doc/invoke.texi (Spec Files): Document it.
13951         Remove superfluous @code markup in items.
13953 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
13955         * diagnostic-show-locus.c (struct column_range): New struct.
13956         (get_affected_columns): New function.
13957         (get_printed_columns): New function.
13958         (struct correction): New struct.
13959         (correction::ensure_capacity): New function.
13960         (correction::ensure_terminated): New function.
13961         (struct line_corrections): New struct.
13962         (line_corrections::~line_corrections): New dtor.
13963         (line_corrections::add_hint): New function.
13964         (layout::print_trailing_fixits): Reimplement in terms of the new
13965         classes.
13966         (selftest::test_overlapped_fixit_printing): New function.
13967         (selftest::diagnostic_show_locus_c_tests): Call it.
13969 2017-05-03  Nathan Sidwell  <nathan@acm.org>
13971         Canonicalize canonical type hashing
13972         * tree.h (type_hash_canon_hash): Declare.
13973         * tree.c (type_hash_list, attribute_hash_list): Move into
13974         type_hash_canon_hash.
13975         (build_type_attribute_qual_variant): Break out hash code calc into
13976         type_hash_canon_hash.
13977         (type_hash_canon_hash): New.  Generic type hash computation.
13978         (build_range_type_1, build_array_type_1, build_function_type,
13979         build_method_type_directly, build_offset_type, build_complex_type,
13980         make_vector_type): Call it.
13982 2017-05-03  Richard Biener  <rguenther@suse.de>
13984         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
13985         When all DRs have unknown misaligned do not always peel
13986         when there is a store but apply the same costing model as if
13987         there were only loads.
13989 2017-05-03  Richard Biener  <rguenther@suse.de>
13991         Revert
13992         PR tree-optimization/80492
13993         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
13994         compare_base_decls returning dont-know properly.
13996 2017-05-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13998         * config/arm/iterators.md (CCSI): New mode iterator.
13999         (arch): New mode attribute.
14000         * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
14001         (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
14002         (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This.  Use CCSI
14003         code iterator for success result mode.
14004         * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
14005         the corresponding new insn generators.
14007 2017-05-03  Bin Cheng  <bin.cheng@arm.com>
14009         Revert r247509
14010         2017-05-02  Bin Cheng  <bin.cheng@arm.com>
14011         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
14013 2017-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
14015         * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
14016         (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
14017         (DDR_A): Wrap DDR argument in brackets.
14018         (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
14019         (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
14020         (DDR_REVERSED_P): Likewise.
14022 2017-05-03  Jakub Jelinek  <jakub@redhat.com>
14024         PR tree-optimization/79472
14025         * tree-switch-conversion.c (struct switch_conv_info): Add
14026         contiguous_range and default_case_nonstandard fields.
14027         (collect_switch_conv_info): Compute contiguous_range and
14028         default_case_nonstandard fields, don't clear final_bb if
14029         contiguous_range and only the default case doesn't have the required
14030         structure.
14031         (check_all_empty_except_final): Set default_case_nonstandard instead
14032         of failing if contiguous_range and the default case doesn't have empty
14033         block.
14034         (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
14035         and only the default case doesn't have the required constants.  Skip
14036         virtual phis.
14037         (gather_default_values): Skip virtual phis.  Allow non-NULL CASE_LOW
14038         if default_case_nonstandard.
14039         (build_constructors): Build constant 1 just once.  Assert that default
14040         values aren't inserted in between cases if contiguous_range.  Skip
14041         virtual phis.
14042         (build_arrays): Skip virtual phis.
14043         (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
14044         (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
14045         Handle virtual phis.
14046         (gen_inbound_check): Handle default_case_nonstandard case.
14047         (process_switch): Adjust check_final_bb caller.  Call
14048         gather_default_values with the first non-default case instead of
14049         default case if default_case_nonstandard.
14051 2017-05-02  Nathan Sidwell  <nathan@acm.org>
14053         * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
14054         check.  Fix formatting.
14056 2017-05-02  Jan Hubicka  <hubicka@ucw.cz>
14058         * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
14059         errors when comparing specialized and unspecialized times.
14061 2017-05-02  David Malcolm  <dmalcolm@redhat.com>
14063         * diagnostic-show-locus.c
14064         (layout::should_print_annotation_line_p): Make private.
14065         (layout::print_annotation_line): Make private.
14066         (layout::annotation_line_showed_range_p): Make private.
14067         (layout::show_ruler): Make private.
14068         (layout::print_source_line): Make private.  Pass in line and
14069         line_width, rather than calling location_get_source_line.  Drop
14070         returned value.
14071         (layout::print_leading_fixits): New method.
14072         (layout::print_any_fixits): Rename to...
14073         (layout::print_trailing_fixits): ...this, and make private.
14074         Don't print newline fixits.
14075         (diagnostic_show_locus): Move logic for printing one row into...
14076         (layout::print_line): ...this new function.  Move the
14077         location_get_source_line call and error-handling from
14078         print_source_line to here.  Call print_leading_fixits, and rename
14079         print_any_fixits to print_trailing_fixits.
14080         (selftest::test_fixit_insert_containing_newline): Update now that
14081         newlines are partially supported.
14082         (selftest::test_fixit_insert_containing_newline_2): New test.
14083         (selftest::test_fixit_replace_containing_newline): Update comments.
14084         (selftest::diagnostic_show_locus_c_tests): Call the new test.
14085         * edit-context.c (class added_line): New class.
14086         (class edited_line): Describe newline handling in comment.
14087         (edited_line::actually_edited_p): New method.
14088         (edited_line::print_content): Delete redundant decl.
14089         (edited_line::m_predecessors): New field.
14090         (edited_file::print_content): Call edited_line::print_content.
14091         (edited_file::print_diff): Update to support newlines.
14092         (edited_file::print_diff_hunk): Likewise.
14093         (edited_file::print_run_of_changed_lines): New function.
14094         (edited_file::print_diff_line): Convert to...
14095         (print_diff_line): ...this.
14096         (edited_file::get_effective_line_count): New function.
14097         (edited_line::edited_line): Initialize new field m_predecessors.
14098         (edited_line::~edited_line): Clean up m_predecessors.
14099         (edited_line::apply_fixit): Handle newlines.
14100         (edited_line::get_effective_line_count): New function.
14101         (edited_line::print_content): New function.
14102         (edited_line::print_diff_lines): New function.
14103         (selftest::test_applying_fixits_insert_containing_newline): New
14104         test.
14105         (selftest::test_applying_fixits_replace_containing_newline): New
14106         test.
14107         (selftest::insert_line): New function.
14108         (selftest::test_applying_fixits_multiple_lines): Add example of
14109         inserting a line.
14110         (selftest::edit_context_c_tests): Call the new tests.
14112 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
14114         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
14115         parameter cand.  Update dump information.
14116         (get_computation_cost): Update uses.
14118 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
14120         * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
14121         (get_computation_aff): Reorder parameters.  Use get_computation_aff_1.
14122         (get_computation_at, rewrite_use_address): Update use of
14123         get_computation_aff.
14125 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
14127         * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
14128         (get_computation): Delete.
14129         (get_computation_cost): Implement like get_computation_cost_at.
14130         Use get_computation_at.
14131         (get_computation_cost_at): Delete.
14132         (rewrite_use_nonlinear_expr): Use get_computation_at.
14133         (rewrite_use_compare, remove_unused_ivs): Ditto.
14135 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
14137         * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
14139 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
14141         * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
14142         (ivopts_global_cost_for_size): Rename parameter and update uses.
14143         (iv_ca_recount_cost): Update uses.
14144         (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
14145         candidates seperately in n_invs and n_cands.
14146         (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
14148 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
14150         * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
14151         (find_inv_vars_cb): New.
14152         (find_depends): Renamed to ...
14153         (find_inv_vars): ... this.
14154         (add_candidate_1, force_var_cost): Call find_inv_vars.
14155         (split_address_cost, determine_group_iv_cost_cond): Ditto.
14157 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
14159         * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
14160         inv_vars.  Add inv_exprs.
14161         (struct iv_cand): Rename depends_on to inv_vars.
14162         (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
14163         max_inv_var_id/n_inv_var_uses.  Move max_inv_expr_id around.
14164         Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
14165         (dump_cand): Dump inv_vars.
14166         (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
14167         (record_invariant, find_depends, add_candidate_1): Ditto.
14168         (set_group_iv_cost, force_var_cost): Ditto.
14169         (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
14170         (get_computation_cost_at, get_computation_cost): Ditto.
14171         (determine_group_iv_cost_generic): Ditto.
14172         (determine_group_iv_cost_address): Ditto.
14173         (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
14174         (determine_group_iv_costs): Ditto.
14175         (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
14176         (iv_ca_set_remove_invariants): Renamed to ...
14177         (iv_ca_set_remove_invs): ... this.  Support inv_vars and inv_exprs.
14178         (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
14179         (iv_ca_set_add_invariants):  Renamed to ...
14180         (iv_ca_set_add_invs): ... this.  Support inv_vars and inv_exprs.
14181         (iv_ca_set_cp): Use iv_ca_set_add_invs.
14182         (iv_ca_has_deps): Support inv_vars and inv_exprs.
14183         (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
14184         (create_new_ivs): Remove useless dump.
14186 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
14188         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
14189         iv_cand code.
14190         (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
14191         (iv_ca_set_no_cp, create_new_iv): Ditto.
14193 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
14195         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
14197 2017-05-02  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
14199         * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
14200         function tree_check2.
14202 2017-05-02  Martin Liska  <mliska@suse.cz>
14204         * doc/gcov.texi: Add missing preposition.
14205         * gcov.c (function_info::function_info): Properly fill up
14206         all member variables.
14208 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
14210         * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
14212 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
14214         * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
14216 2017-05-02  Martin Liska  <mliska@suse.cz>
14218         PR lto/77954.
14219         * lto-streamer-in.c (lto_read_tree_1): Remove
14220         LTO_STREAMER_DEBUG.
14221         * lto-streamer.c (struct tree_hash_entry): Likewise.
14222         (struct tree_entry_hasher): Likewise.
14223         (tree_entry_hasher::hash): Likewise.
14224         (tree_entry_hasher::equal): Likewise.
14225         (lto_streamer_init): Likewise.
14226         (lto_orig_address_map): Likewise.
14227         (lto_orig_address_get): Likewise.
14228         (lto_orig_address_remove): Likewise.
14229         * lto-streamer.h: Likewise.
14230         * tree-streamer-in.c (streamer_alloc_tree): Likewise.
14231         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14233 2017-05-02  Sebastian Peryt  <sebastian.peryt@intel.com>
14235         * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
14236         (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
14237         (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
14238         (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
14239         (mm_maskz_sub_round_ss, _mm_mask_add_sd)
14240         (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
14241         (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
14242         (mm_maskz_sub_ss): New intrinsics.
14243         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
14244         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
14245         * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
14246         (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
14247         (__builtin_ia32_subss_mask_round): New builtins.
14248         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
14249         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
14250         * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
14251         Renamed to ...
14252         (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
14253         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
14254         Changed to ...
14255         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
14256         ... this.
14258 2017-05-02  Martin Jambor  <mjambor@suse.cz>
14260         PR tree-optimization/78687
14261         * tree-sra.c (access): New field parent.
14262         (process_subtree_disqualification): New function.
14263         (disqualify_candidate): Call it.
14264         (build_accesses_from_assign): Reset write flag if creating an
14265         assighnment link.
14266         (build_access_subtree): Fill in parent field and also prpagate
14267         down grp_write flag.
14268         (create_artificial_child_access): New parameter set_grp_write, set
14269         grp_write to its value.
14270         (propagate_subaccesses_across_link): Also propagate grp_write flag
14271         values.
14272         (propagate_all_subaccesses): Push the closest parent back to work
14273         queue if add_access_to_work_queue returned true.
14275 2017-05-02  Richard Biener  <rguenther@suse.de>
14277         * common.opt (fstrict-overflow): Alias negative to fwrapv.
14278         * doc/invoke.texi (fstrict-overflow): Remove all traces of
14279         -fstrict-overflow documentation.
14280         * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
14281         (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
14282         flag_strict_overflow.
14283         * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
14284         * lto-opts.c (lto_write_options): Do not stream it.
14285         * lto-wrapper.c (merge_and_complain): Do not handle it.
14286         * opts.c (default_options_table): Do not set -fstrict-overflow.
14287         (finish_options): Likewise do not clear it when sanitizing.
14288         * simplify-rtx.c (simplify_const_relational_operation): Do not
14289         test flag_strict_overflow.
14291 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
14293         * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
14294         using enabled attribute.
14295         (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
14296         (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
14297         (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
14298         (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
14299         (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
14300         (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
14301         (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
14302         (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
14303         (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
14304         (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
14306 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
14308         * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
14310 2017-05-02  Richard Biener  <rguenther@suse.de>
14312         PR tree-optimization/80591
14313         Revert
14314         2017-04-10  Richard Biener  <rguenther@suse.de>
14316         * tree-ssa-structalias.c (find_func_aliases): Properly handle
14317         asm inputs.
14319 2017-05-02  Richard Biener  <rguenther@suse.de>
14321         PR tree-optimization/80549
14322         * tree-cfgcleanup.c (mfb_keep_latches): New helper.
14323         (cleanup_tree_cfg_noloop): Create forwarders to known loop
14324         headers if they do not have a preheader.
14326 2017-05-02  Martin Liska  <mliska@suse.cz>
14328         PR other/80589
14329         * common.opt: Fix typo.
14330         * doc/invoke.texi: Likewise.
14332 2017-05-01  Jan Beulich  <jbeulich@suse.com>
14334         * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
14335         swapping, add (x,x,m,x,n) alternative.
14337 2017-05-01  Nathan Sidwell  <nathan@acm.org>
14339         * calls.c (combine_pending_stack_adjustment_and_call): Remove
14340         unnecessary unadjusted_alignment check.
14342 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
14344         PR c++/80038
14345         * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
14346         operations here.
14347         * gimplify.c (gimplify_cilk_detach): New function.
14348         (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
14349         * tree-core.h: Document EXPR_CILK_SPAWN.
14350         * tree.h (EXPR_CILK_SPAWN): Define.
14352 2017-05-01  David Malcolm  <dmalcolm@redhat.com>
14354         * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
14355         to use new fixit_hint representation, using the "replace" logic.
14356         (get_line_span_for_fixit_hint): Likewise.
14357         (layout::print_any_fixits): Likewise.
14358         (selftest::test_one_liner_many_fixits): Rename to...
14359         (selftest::test_one_liner_many_fixits_1): ...this, and update
14360         comment and expected output to reflect that the multiple fix-it
14361         hints are now consolidated into one insertion.
14362         (selftest::test_one_liner_many_fixits_2): New test.
14363         (selftest::test_diagnostic_show_locus_one_liner): Update for
14364         above.
14365         (selftest::test_fixit_consolidation): Update for fix-it API
14366         change.
14367         * diagnostic.c (print_parseable_fixits): Likewise.
14368         * edit-context.c (edited_line::m_line_events): Convert from
14369         auto_vec <line_event *> to auto_vec <line_event>.
14370         (class line_event): Convert from abstract base class to a concrete
14371         class, taking over the role of replace_event.
14372         (class insert_event): Delete.
14373         (class replace_event): Rename to class line_event.  Convert to
14374         half-open range.
14375         (edit_context::add_fixits): Reimplement.
14376         (edit_context::apply_insert): Delete.
14377         (edit_context::apply_replace): Rename to...
14378         (edit_context::apply_fixit): ...this.  Convert to half-open range.
14379         (edited_file::apply_insert): Delete.
14380         (edited_file::apply_replace): Rename to...
14381         (edited_file::apply_fixit): ...this.
14382         (edited_line::~edited_line): Drop deletion of events.
14383         (edited_line::apply_insert): Delete.
14384         (edited_line::apply_replace): Rename to...
14385         (edited_line::apply_fixit): ...this.  Convert to half-open range.
14386         Update for change to type of m_line_events.
14387         * edit-context.h (edit_context::apply_insert): Delete.
14388         (edit_context::apply_replace): Rename to...
14389         (edit_context::apply_fixit): ...this.
14391 2017-05-01  Martin Sebor  <msebor@redhat.com>
14393         * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
14394         known.
14396 2017-05-01  Uros Bizjak  <ubizjak@gmail.com>
14398         PR target/68491
14399         * config/i386/cpuid.h (__get_cpuid): Always return 0 when
14400         __get_cpuid_max returns 0.
14401         (__get_cpuid_count): Ditto.
14403 2017-05-01  Eric Botcazou  <ebotcazou@adacore.com>
14405         * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
14406         replacement expression is another instance of one of its arguments.
14408 2017-05-01  Jakub Jelinek  <jakub@redhat.com>
14410         PR target/79430
14411         * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
14412         check for stack push/pop autoinc.
14413         * config/i386/i386.c (ix86_agi_dependent): Return false
14414         if the only reason why modified_in_p returned true is that
14415         addr is SP based and set_insn is a push or pop.
14417 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
14419         * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
14420         overflow check.
14422 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
14424         PR ipa/79224
14425         * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
14426         (account_size_time): Use two predicates - exec_pred and
14427         nonconst_pred_ptr.
14428         (evaluate_conditions_for_known_args): Compute both clause and
14429         nonspec_clause.
14430         (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
14431         (inline_summary_t::duplicate): Update.
14432         (estimate_function_body_sizes): Caluculate exec and nonconst predicates
14433         separately.
14434         (compute_inline_parameters): Likewise.
14435         (estimate_edge_size_and_time): Update caluclation of time.
14436         (estimate_node_size_and_time): Compute both time and nonspecialized
14437         time.
14438         (estimate_ipcp_clone_size_and_time): Update.
14439         (inline_merge_summary): Update.
14440         (do_estimate_edge_time): Update.
14441         (do_estimate_edge_size): Update.
14442         (do_estimate_edge_hints): Update.
14443         (inline_read_section, inline_write_summary): Stream both new predicates.
14444         * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
14445         as argument.
14446         (compute_inlined_call_time): Cleanup.
14447         (big_speedup_p): Update.
14448         (edge_badness): Update.
14449         * ipa-inline.h (INLINE_TIME_SCALE): Remove.
14450         (size_time_entry): Replace predicate by exec_predicate and
14451         nonconst_predicate.
14452         (edge_growth_cache_entry): Cache both time nad nonspecialized time.
14453         (estimate_edge_time): Return also nonspec_time.
14454         (reset_edge_growth_cache): Update.
14456 2017-04-29  Jakub Jelinek  <jakub@redhat.com>
14458         PR rtl-optimization/80491
14459         * ifcvt.c (noce_process_if_block): When looking for x setter
14460         with missing else_bb, don't check only the insn right before
14461         cond_earliest, but look for the last insn that x is modified in
14462         within the same bb.
14464         PR rtl-optimization/80491
14465         * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
14467 2017-04-29  Marc Glisse  <marc.glisse@inria.fr>
14469         PR tree-optimization/80487
14470         * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
14472 2017-04-29  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14474         PR tree-optimization/79697
14475         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
14476         is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
14477         (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
14478         BUILT_IN_STRNDUP.
14479         * gimple-fold.c (gimple_fold_builtin_realloc): New function.
14480         (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
14482 2017-04-28  Martin Sebor  <msebor@redhat.com>
14484         PR tree-optimization/80523
14485         * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
14486         (init_target_to_host_charmap, target_to_host, target_strtol10): New
14487         functions.
14488         (maybe_warn, format_directive, parse_directive): Use new functions.
14489         (pass_sprintf_length::execute): Call init_target_to_host_charmap.
14491 2017-04-28  Marc Glisse  <marc.glisse@inria.fr>
14493         * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
14495 2017-04-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14497         * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
14498         target_header_dir): Set correctly.
14499         * configure: Regenerated.
14500         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
14501         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
14502         instead of SYSTEM_HEADER_DIR.
14504 2017-04-28  Jan Hubicka  <hubicka@ucw.cz>
14506         * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
14507         (estimate_local_effects): Likewise.
14508         * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
14509         edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
14510         * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
14511         estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
14512         do_estimate_edge_time, estimate_edge_time): Likewise.
14513         * ipa-inline-analysis.c (estimate_node_size_and_time,
14514         estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
14515         (estimate_time_after_inlining): Remove.
14517 2017-04-28  Martin Liska  <mliska@suse.cz>
14519         * doc/gcov.texi: Enhance documentation of gcov.
14521 2017-04-28  Martin Liska  <mliska@suse.cz>
14523         * doc/gcov.texi: Sort options in alphabetic order.
14524         * doc/gcov-dump.texi: Likewise.
14525         * doc/gcov-tool.texi: Likewise.
14526         * gcov.c (print_usage): Likewise.
14527         * gcov-dump.c (print_usage): Likewise.
14528         * gcov-tool.c (print_merge_usage_message): Likewise.
14529         (print_rewrite_usage_message): Likewise.
14530         (print_overlap_usage_message): Likewise.
14532 2017-04-28  Martin Liska  <mliska@suse.cz>
14534         PR gcov-profile/53915
14535         * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
14537 2017-04-28  Martin Liska  <mliska@suse.cz>
14539         PR gcov-profile/79891
14540         * gcov.c (add_line_counts): Assign BBs to lines just if the BB
14541         is marked by compiler as living on a line.
14542         (get_cycles_count): Remove usage of the union.
14543         (output_intermediate_file): Likewise.
14544         (find_source): Fix GNU coding style.
14545         (accumulate_line_counts): Remove old non-all block mode.
14546         (output_lines): Remove usage of the union.
14547         * profile.c (output_location): Include all BBs, even if
14548         belonging to a same line (and file) as a previous BB.
14550 2017-04-28  Martin Liska  <mliska@suse.cz>
14552         * gcov.c (process_args): Handle new argument 'w'.
14553         (read_graph_file): Assign ID to BBs.
14554         (output_branch_count): Display BB # if verbose flag is set.
14555         (output_lines): Likewise for arcs.
14556         (print_usage): Add '--verbose' option help.
14557         * doc/gcov.texi: Document --verbose (-w) option.
14559 2017-04-28  Martin Liska  <mliska@suse.cz>
14561         * gcov.c (struct block_location_info): New struct.
14562         (process_file): Fill up the new structure.
14563         (read_graph_file): Replace usage of encoding by the newly added
14564         struct.
14565         (add_line_counts): Likewise.
14566         (accumulate_line_counts): Remove usage of the union.
14567         (function_info::function_info): New function.
14568         (function_info::~function_info): Likewise.
14569         (process_file): Call delete instead of release_function.
14570         (release_function): Release the function.
14571         (release_structures): Call delete instead of release_function.
14572         (solve_flow_graph): Replace usage of num_blocks.
14573         (find_exception_blocks): Likewise.
14574         (output_lines): Fix GNU coding style.
14576 2017-04-28  Martin Liska  <mliska@suse.cz>
14578         PR driver/56469
14579         * coverage.c (coverage_remove_note_file): New function.
14580         * coverage.h: Declare the function.
14581         * toplev.c (finalize): Clean if an error has been seen.
14583 2017-04-28  Martin Liska  <mliska@suse.cz>
14585         PR gcov-profile/80031
14586         * gcov-dump.c (tag_blocks): Just print number of basic blocks.
14587         * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
14588         * gcov.c (read_graph_file): Read just number of blocks.
14589         * profile.c (branch_prob): Do not stream 0 flags per a basic
14590         block.
14592 2017-04-28  Martin Liska  <mliska@suse.cz>
14594         * gcov-dump.c (tag_*): Add new argument to declarations.
14595         (dump_gcov_file): Likewise.
14596         (tag_blocks): Add and use new argument depth.
14597         (tag_arcs): Likewise.
14598         (tag_lines): Likewise.
14599         (tag_counters): Likewise.
14600         (tag_summary): Likewise.
14601         (dump_working_sets): Use depth to do a proper indentation.
14603 2017-04-28  Jakub Jelinek  <jakub@redhat.com>
14605         PR bootstrap/80531
14606         * cgraph.h (symtab_node::debug_symtab): No longer inline.
14607         * symtab.c (symtab_node::debug_symtab): Move definition here.
14609 2017-04-28  Richard Biener  <rguenther@suse.de>
14611         * lto-streamer.h (LTO_major_version): Bump to 7.
14613 2017-04-28  Richard Biener  <rguenther@suse.de>
14615         * tree-vrp.c (assert_info): New struct.
14616         (add_assert_info): New helper.
14617         (register_edge_assert_for_2): Refactor to add asserts to a vector
14618         of assert_info.
14619         (register_edge_assert_for_1): Likewise.
14620         (register_edge_assert_for): Likewise.
14621         (finish_register_edge_assert_for): New helper actually registering
14622         asserts where live on edge.
14623         (find_conditional_asserts): Adjust.
14624         (find_switch_asserts): Likewise.
14625         (evrp_dom_walker::try_find_new_range): Generalize.
14626         (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
14628 2017-04-27  Marek Polacek  <polacek@redhat.com>
14630         PR sanitizer/80349
14631         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
14632         arg10 and arg11 to itype.
14634 2017-04-27  Jonathan Wakely  <jwakely@redhat.com>
14636         * doc/extend.texi (Object Size Checking): Improve grammar.
14638 2017-04-27  Richard Earnshaw  <rearnsha@arm.com>
14640         PR target/80530
14641         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
14642         that the logic for permitting reciprocal estimates matches that
14643         in use_rsqrt_p.
14645 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
14647         PR c++/80534
14648         * tree.c (type_cache_hasher::equal): Only compare
14649         TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
14650         (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
14651         non-aggregate element types.
14652         * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
14653         about the flag on ARRAY_TYPEs in the comment, formatting fix.
14655 2017-04-27  Richard Biener  <rguenther@suse.de>
14657         PR middle-end/80533
14658         * emit-rtl.c (set_mem_attributes_minus_bitpos): When
14659         stripping ARRAY_REFs from MEM_EXPR make sure we're not
14660         keeping a reference to a trailing array.
14662 2017-04-27  Richard Biener  <rguenther@suse.de>
14664         PR middle-end/80539
14665         * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
14666         being in loop-closed SSA form conservatively.
14667         (chrec_fold_multiply_poly_poly): Likewise.
14669 2017-04-27  Tamar Christina  <tamar.christina@arm.com>
14671         PR middle-end/79665
14672         * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
14673         CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
14675 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
14677         PR target/77728
14678         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
14679         (aarch64_function_arg_alignment): Return unsigned int again, but still
14680         ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
14681         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
14682         Don't emit -Wpsabi note.
14683         (aarch64_function_arg_boundary): Likewise.
14684         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
14685         caller.
14687 2017-04-26  Nathan Sidwell  <nathan@acm.org>
14689         * tree.h (crc32_unsigned_n): Declare.
14690         (crc32_unsigned, crc32_unsigned): Make inline.
14691         * tree.c (crc32_unsigned_bits): Replace with ...
14692         (crc32_unsigned_n): ... this.
14693         (crc32_unsigned, crc32_byte): Remove.
14694         (crc32_string): Remove unnecessary braces.
14696 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
14698         * ipa-cp.c (estimate_local_effects): Convert sreal to int.
14699         * ipa-inline-analysis.c (MAX_TIME): Remove.
14700         (account_size_time): Use sreal for time.
14701         (dump_inline_summary): Update.
14702         (estimate_function_body_sizes): Update.
14703         (estimate_edge_size_and_time): Update.
14704         (estimate_calls_size_and_time): Update.
14705         (estimate_node_size_and_time): Update.
14706         (inline_merge_summary): Update.
14707         (inline_update_overall_summary): Update.
14708         (estimate_time_after_inlining): Update.
14709         (inline_read_section): Update.
14710         (inline_write_summary): Update.
14711         * ipa-inline.c (compute_uninlined_call_time): Update.
14712         (compute_inlined_call_time): Update.
14713         (recursive_inlining): Update.
14714         (inline_small_functions): Update.
14715         (dump_overall_stats): Update.
14716         * ipa-inline.h: Include sreal.h.
14717         (size_time_entry): Turn time to sreal.
14718         (inline_summary): Turn self_time nad time to sreal.
14720 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
14722         * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
14723         data-streamer.h
14724         (sreal::stream_out, sreal::stream_in): New.
14725         * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
14727 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
14729         * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
14730         environment.
14732 2017-04-25  Uros Bizjak  <ubizjak@gmail.com>
14734         PR target/70799
14735         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
14736         Handle ASHIFTRT.
14737         (dimode_scalar_chain::compute_convert_gain): Ditto.
14738         (dimode_scalar_chain::make_vector_copies): Ditto.
14739         (dimode_scalar_chain::convert_reg): Ditto.
14740         (dimode_scalar_chain::convert_insn): Ditto.
14741         * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
14742         (VI248_AVX512BW_1): New mode iterator.
14743         (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
14744         <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
14745         mode iterator.
14747 2017-04-25  Martin Sebor  <msebor@redhat.com>
14749         PR tree-optimization/80497
14750         * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
14751         constants are representable in HOST_WIDE_INT.
14752         (parse_directive): Ditto.
14754 2017-04-25  Martin Sebor  <msebor@redhat.com>
14756         PR bootstrap/80486
14757         * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
14758         (new_zero_array): Adjust signature.
14759         (dom_info::dom_init): Used unsigned rather that size_t.
14760         (dom_info::dom_info): Same.
14762 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14763             Jakub Jelinek  <jakub@redhat.com>
14765         PR target/77728
14766         * config/arm/arm.c: Include gimple.h.
14767         (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
14768         returns negative, increment ncrn only if it returned positive.
14769         (arm_needs_doubleword_align): Return int instead of bool,
14770         ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
14771         members, but if there is any such non-FIELD_DECL
14772         > PARM_BOUNDARY aligned decl, return -1 instead of false.
14773         (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
14774         returns negative, increment nregs only if it returned positive.
14775         (arm_setup_incoming_varargs): Likewise.
14776         (arm_function_arg_boundary): Emit -Wpsabi note if
14777         arm_needs_doubleword_align returns negative, return
14778         DOUBLEWORD_ALIGNMENT only if it returned positive.
14780 2017-04-25  Marek Polacek  <polacek@redhat.com>
14782         PR sanitizer/80349
14783         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
14784         first argument to type.
14786 2017-04-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
14788         PR target/80482
14789         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
14790         type checks to test for compatibility instead of equality.
14792 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14793             Jakub Jelinek  <jakub@redhat.com>
14795         PR target/77728
14796         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
14797         type.
14798         (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
14799         struct.  Ignore DECL_ALIGN of decls other than FIELD_DECL for
14800         the alignment computation, but return their maximum in warn_alignment.
14801         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
14802         Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
14803         is smaller.
14804         (aarch64_function_arg_boundary): Likewise.  Simplify using MIN/MAX.
14805         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
14806         caller.
14808 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
14810         * config/arc/simdext.md (dmpyh): Fix typo.
14812 2017-04-25  Richard Biener  <rguenther@suse.de>
14814         PR tree-optimization/80492
14815         * alias.c (compare_base_decls): Handle registers with asm
14816         specification conservatively.
14817         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
14818         compare_base_decls returning dont-know properly.
14820 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
14822         * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
14823         (legitimate_offset_address_p): New function.
14824         (arc_legitimate_address_p): Use above function.
14826 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
14828         * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
14830 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
14832         * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
14833         ACCH registers whenever they are available.
14835 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
14837         * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
14838         double regs fix when not used.
14840 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
14842         * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
14843         core registers.
14844         (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
14845         (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
14847 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
14849         * config/arc/arc.c (arc_output_addsi): Check for h-register class
14850         when emitting short ADD instructions.
14852 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
14854         * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
14855         constraint.
14856         (cmpsi_cc_c_insn): Likewise.
14857         (cbranchsi4_scratch): Compute proper instruction length using
14858         compact_hreg_operand.
14859         * config/arc/predicates.md (compact_hreg_operand): New predicate.
14861 2017-04-25  Richard Biener  <rguenther@suse.de>
14863         PR middle-end/80509
14864         * passes.c (pass_manager::pass_manager): Initialize
14865         m_name_to_pass_map.
14867 2017-04-25  Richard Biener  <rguenther@suse.de>
14869         PR tree-optimization/79201
14870         * tree-ssa-sink.c (statement_sink_location): Handle calls.
14872 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14874         PR target/80464
14875         * config/s390/vector.md: Split MEM->GPR vector moves for
14876         non-s_operand addresses.
14878 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14880         PR target/79895
14881         * config/s390/predicates.md (reload_const_wide_int_operand): New
14882         predicate.
14883         * config/s390/s390.md ("movti"): Remove d/P alternative.
14884         ("movti_bigconst"): New pattern definition.
14886 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14888         PR target/80080
14889         * s390-protos.h (s390_expand_cs_hqi): Removed.
14890         (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
14891         * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
14892         modes as well as CCZ1mode and CCZmode.
14893         (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
14894         signature of s390_emit_compare_and_swap.
14895         (s390_expand_cs_hqi): Likewise, make static.
14896         (s390_expand_cs_tdsi): Generate an explicit compare before trying
14897         compare-and-swap, in some cases.
14898         (s390_expand_cs): Wrapper function.
14899         (s390_expand_atomic_exchange_tdsi): New backend specific expander for
14900         atomic_exchange.
14901         (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
14902         * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
14903         patterns for small and large integers.  Forbid symref memory operands.
14904         Move expander to s390.c.  Require cc register.
14905         ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
14906         ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
14907         ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
14908         ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
14909         symref memory operands.  Remove CC mode and call s390_match_ccmode
14910         instead.
14911         ("atomic_exchange<mode>"): Allow and implement all integer modes.
14913 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14915         * config/s390/s390.md (define_peephole2): New peephole to help
14916         combining the load-and-test pattern with volatile memory.
14918 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14920         * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
14921         with CCZmode for TARGET_Z196.
14923 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
14925         PR rtl-optimization/80501
14926         * combine.c (make_compound_operation_int): Set subreg_code to SET
14927         even for AND with mask of the sign bit of mode.
14929         PR rtl-optimization/80500
14930         * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
14931         sum's initial value.
14933 2017-04-25  Julian Brown  <julian@codesourcery.com>
14934             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
14936         * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
14938 2017-04-25  Marc Glisse  <marc.glisse@inria.fr>
14940         * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
14942 2017-04-25  Julian Brown  <julian@codesourcery.com>
14943             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
14945         * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
14946         (thunderx2t99_sha): New Reservation.
14948 2017-04-25  Julian Brown  <julian@codesourcery.com>
14949             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
14951         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
14952         type for 1-element load.
14954 2017-04-24  Marc Glisse  <marc.glisse@inria.fr>
14956         * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
14958 2017-04-24  Martin Jambor  <mjambor@suse.cz>
14960         PR tree-optimization/80293
14961         * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
14962         char arrays not totally scalarizable if it is false.
14963         (analyze_all_variable_accesses): Pass correct value in the new
14964         parameter.  Add a statistics counter.
14966 2017-04-24  Jan Hubicka  <hubicka@ucw.cz>
14968         PR middle-end/79931
14969         * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
14971 2017-04-24  Richard Biener  <rguenther@suse.de>
14973         PR tree-optimization/80494
14974         * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
14975         out for complex types.
14977 2017-04-24  Richard Biener  <rguenther@suse.de>
14979         * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
14980         * tree-ssa-sccvn.c (print_scc): Print SCC size.
14981         (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
14982         (DFS): Adjust and never fail.
14983         (sccvn_dom_walker::fail): Remove.
14984         (sccvn_dom_walker::before_dom_children): Adjust.
14985         (run_scc_vn): Likewise and never fail.
14986         * tree-ssa-pre.c (pass_pre::execute): Adjust.
14987         (pass_fre::execute): Likewise.
14989 2017-04-24  Richard Biener  <rguenther@suse.de>
14991         PR tree-optimization/79725
14992         * tree-ssa-sink.c (statement_sink_location): Return whether
14993         failure reason was zero uses.  Move that check later.
14994         (sink_code_in_bb): Deal with zero uses by removing the stmt
14995         if possible.
14997 2017-04-24  Richard Biener  <rguenther@suse.de>
14999         PR c++/2972
15000         * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
15001         pointer-based references.
15003 2017-04-24  Richard Biener  <rguenther@suse.de>
15005         PR bootstrap/79814
15006         * pass_manager.h (pass_manager::operator new): Remove.
15007         (pass_manager::operator delete): Likewise.
15008         * passes.c (pass_manager::operator new): Remove.
15009         (pass_manager::operator delete): Likewise.
15010         (pass_manager::pass_manager): Zero individual pass members.
15012 2017-04-23  Uros Bizjak  <ubizjak@gmail.com>
15014         PR target/70799
15015         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
15016         <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
15017         Check "XEXP (src, 1)" operand here.
15018         <case PLUS, case MINUS, case IOR, case XOR, case AND>:
15019         Check "XEXP (src, 1)" operand here.
15020         (dimode_scalar_chain::make_vector_copies): Detect count register
15021         of a shift instruction.  Zero extend count register from QImode
15022         to DImode to satisfy vector shift pattern count operand predicate.
15023         Substitute vector shift count operand with a DImode copy.
15024         (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
15025         vector register.
15027 2017-04-21  Uros Bizjak  <ubizjak@gmail.com>
15029         * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
15030         Remove UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
15031         (*insvqi_1_mem_rex64): Move above insv<mode>_1.  Remove
15032         UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
15033         (UNSPEC_NOREX_MEM): Remove definition.
15035 2017-04-21  Richard Biener  <rguenther@suse.de>
15037         PR tree-optimization/79547
15038         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15039         Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
15040         bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
15041         without any constraints.
15043 2017-04-21  Richard Biener  <rguenther@suse.de>
15045         PR tree-optimization/78847
15046         * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
15048 2017-04-21  Richard Biener  <rguenther@suse.de>
15050         * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
15051         (build_distinct_type_copy): Likewise.
15052         (build_variant_type_copy): Likewise.
15053         * tree.c (build_qualified_type): Pass down mem-stat info.
15054         (build_distinct_type_copy): Likewise.
15055         (build_variant_type_copy): Likewise.
15057 2017-04-21  Richard Biener  <rguenther@suse.de>
15059         PR tree-optimization/80237
15060         * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
15061         defaulted to NULL.
15062         (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
15063         for a simplified result.
15065 2016-04-21  Richard Biener  <rguenther@suse.de>
15067         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
15068         sth as strict as a simple_iv but a chrec without symbols and an
15069         operand defined in the loop we are peeling (and not some subloop).
15070         (propagate_constants_for_unrolling): Propagate all constants.
15072 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
15074         PR target/79804
15075         * config/i386/i386.c (print_reg): Remove assert for disalowed
15076         regno values, call output_operand_lossage instead.
15078 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
15080         PR target/78090
15081         * config/i386/constraints.md (Yc): New register constraint.
15082         * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
15083         Use Yc constraint for alternative 2 of operand 0.  Remove
15084         preferred_for_speed attribute.
15086 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
15088         * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
15089         lastprivate clauses in SIMT case.
15091 2017-04-20  Volker Reichelt  <v.reichelt@netcologne.de>
15093         * doc/invoke.texi (-Wextra-semi): Document new warning option.
15095 2017-04-20  Richard Biener  <rguenther@suse.de>
15097         PR tree-optimization/57796
15098         * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
15099         as N scalar stores.
15100         (vect_model_load_cost): Cost gathers as N scalar loads.
15102 2017-04-20  Richard Biener  <rguenther@suse.de>
15104         * ggc-page.c (ggc_allocated_p): Rename to ...
15105         (safe_lookup_page_table_entry): ... this and return the lookup
15106         result.
15107         (gt_ggc_m_S): Use safe_lookup_page_table_entry.
15109 2017-04-20  Richard Biener  <rguenther@suse.de>
15111         PR tree-optimization/80453
15112         * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
15113         * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
15114         from the conditions.
15115         (vn_phi_eq): Pass them down.
15116         (vn_phi_lookup): Record them.
15117         (vn_phi_insert): Likewise.
15119 2017-04-20  Matthew Fortune  <matthew.fortune@imgtec.com>
15121         * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
15122         uninitialized variable warning to avoid buffer overrun.
15124 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
15126         PR other/71250
15127         * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
15128         is suppressed for '{ 0 }' in C.
15130 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
15132         * BASE-VER: Set to 8.0.0.
15134 2017-04-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15136         * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
15137         priority .init_array and .fini_array section with SECTION_NOTYPE
15138         flag.
15140 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
15142         PR middle-end/80423
15143         * tree.h (build_array_type): Add typeless_storage default argument.
15144         * tree.c (type_cache_hasher::equal): Also compare
15145         TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
15146         (build_array_type): Add typeless_storage argument, set
15147         TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
15148         recursive call.
15149         (build_nonshared_array_type): Adjust build_array_type_1 caller.
15150         (build_array_type): Likewise.  Add typeless_storage argument.
15152 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
15153             Jakub Jelinek  <jakub@redhat.com>
15155         PR tree-optimization/80426
15156         * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
15157         operation on symbolic operands, also compute the overflow for the
15158         invariant part when the operation degenerates into a negation.
15160 2017-04-19  Jakub Jelinek  <jakub@redhat.com>
15162         PR debug/80461
15163         * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
15164         Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
15166         PR debug/80436
15167         * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
15169 2017-04-19  Georg-Johann Lay  <avr@gjlay.de>
15171         PR target/80462
15172         * config/avr/avr.c (tree.h): Include it.
15173         (cgraph.h): Include it.
15174         (avr_encode_section_info): Don't warn for uninitialized progmem
15175         variable if it's just an alias.
15177 2017-04-19  Richard Biener  <rguenther@suse.de>
15179         PR ipa/65972
15180         * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
15181         when needed by AutoPGO.
15183 2017-04-19  Paulo J. Matos  <paulo@matos-sorge.com>
15185         PR lto/50345
15186         * doc/lto.texi: Remove an extra 'that'.
15188 2017-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
15190         PR rtl-optimization/80429
15191         * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
15192         are only used in debug insns.
15194 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
15195             Vladimir Makarov  <vmakarov@redhat.com>
15197         * config/sparc/predicates.md (input_operand): Add comment.  Return
15198         true for any memory operand when LRA is in progress.
15199         * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
15201 2017-04-18  Jeff Law  <law@redhat.com>
15203         PR target/74563
15204         * mips.md ({return,simple_return}_internal): Do not overwrite
15205         operands[0].
15207 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
15209         PR tree-optimization/80443
15210         * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
15211         instead of adding 1, subtract -1 and similarly instead of subtracting
15212         1 add -1.
15214 2017-04-18  Richard Sandiford  <richard.sandiford@arm.com>
15216         PR rtl-optimization/80357
15217         * haifa-sched.c (tmp_bitmap): New variable.
15218         (model_recompute): Handle duplicate use records.
15219         (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
15220         (free_global_sched_pressure_data): Free it.
15222 2017-04-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15224         Revert:
15225         2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15226         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
15227         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
15228         instead of SYSTEM_HEADER_DIR.
15230 2017-04-18  Jeff Law  <law@redhat.com>
15232         PR middle-end/80422
15233         * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
15234         predecessors after walking up the insn chain.
15236 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
15238         PR debug/80263
15239         * dwarf2out.c (modified_type_die): Try harder not to emit internal
15240         sizetype type into debug info.
15242 2017-04-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
15244         PR target/80099
15245         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
15246         unneeded test for TARGET_UPPER_REGS_SF.
15247         * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
15249 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
15251         PR sanitizer/80444
15252         * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
15253         instead of gsi_after_labels.
15255 2017-04-18  Jeff Law  <law@redhat.com>
15257         * regcprop.c (maybe_mode_change): Avoid creating copies of the
15258         stack pointer.
15260         Revert:
15261         2017-04-13  Jeff Law  <law@redhat.com>
15262         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
15263         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
15265 2017-04-18  Georg-Johann Lay  <avr@gjlay.de>
15267         PR target/79453
15268         * config/avr/avr.c (intl.h): Include it.
15269         (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
15271 2017-04-18  Martin Liska  <mliska@suse.cz>
15273         PR gcov-profile/78783
15274         * gcov-tool.c (gcov_output_files): Validate that destination
15275         file is either removed by the tool or by a user.
15277 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
15278             Guy Benyei  <guybe@mellanox.com>
15280         * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
15281         block, and do not negate it, the stored id is already negative.
15283 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
15285         * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
15287 2017-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
15289         PR target/80098
15290         * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
15291         masks of options that should be turned off if the VSX vector
15292         options are turned off.
15293         (OTHER_P8_VECTOR_MASKS): Likewise.
15294         (OTHER_VSX_VECTOR_MASKS): Likewise.
15295         * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
15296         rs6000_disable_incompatible_switches to validate no type switches
15297         like -mvsx.
15298         (rs6000_incompatible_switch): New function to disallow turning on
15299         other vector options if -mno-vsx, -mno-power8-vector, or
15300         -mno-power9-vector are specified.
15302 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
15304         * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
15306 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
15308         * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
15309         * config/arc/arc.c (arc_decl_pretend_args): Likewise.
15310         * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
15311         (ARG_POINTER_CFA_OFFSET): Likewise.
15313 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
15315         * config/arc/arc.c (arc_mode_dependent_address_p): Relax
15316         conditions to take advantage of various optimizations.
15318 2017-04-13  Jeff Law  <law@redhat.com>
15320         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
15321         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
15322         (zero_extendsidi2_dext): Likewise.
15324 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
15326         PR sanitizer/80403
15327         * fold-const.c (fold_ternary_loc): Revert
15328         use op0 instead of fold_convert_loc (loc, type, arg0) part of
15329         2017-04-12 change.
15331 2017-04-13  Vladimir Makarov  <vmakarov@redhat.com>
15333         PR rtl-optimization/80343
15334         * lra-remat.c (update_scratch_ops): Assign original hard reg to
15335         new scratch pseudo.
15337 2017-04-13  Denis Khalikov <d.khalikov@partner.samsung.com>
15339         PR sanitizer/80414
15340         * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
15341         to ubsan_encode_value.
15343 2017-04-13  Jeff Law  <law@redhat.com>
15345         * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
15346         appearing in DEBUG_INSNs.
15348 2017-04-13  Martin Liska  <mliska@suse.cz>
15350         PR gcov-profile/80413
15351         * gcov-io.c (gcov_write_string): Copy to buffer just when
15352         allocated size is greater than zero.
15354 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
15356         PR debug/80321
15357         * dwarf2out.c (decls_for_scope): Ignore declarations of
15358         current_function_decl in BLOCK_NONLOCALIZED_VARS.
15360 2017-04-12  Jan Hubicka  <hubicka@ucw.cz>
15362         PR lto/69953
15363         * ipa-visibility.c (non_local_p): Fix typos.
15364         (localize_node): When localizing symbol in same comdat group,
15365         dissolve the group only when we know external symbols are going
15366         to be privatized.
15367         (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
15369 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
15371         PR tree-optimization/79390
15372         * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
15373         order does not result in usable sequence, retry with reversed operand
15374         order.
15376         PR sanitizer/80403
15377         PR sanitizer/80404
15378         PR sanitizer/80405
15379         * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
15380         to fold_build2_loc.  Convert TREE_OPERAND (tem, 0) to type.  Use
15381         op0 instead of fold_convert_loc (loc, type, arg0).
15383 2017-04-12  Jeff Law  <law@redhat.com>
15385         * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
15386         has a delay slot in the generated code.
15388         * config/cris/cris.md (cris_preferred_reload_class): Return
15389         GENNONACR_REGS rather than GENERAL_REGS.
15391 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
15393         PR c/80163
15394         * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
15395         vs. ZERO_EXTEND based on signedness of treeop0's type rather than
15396         signedness of the result type.
15398 2017-04-12  Richard Biener  <rguenther@suse.de>
15399             Jeff Law  <law@redhat.com>
15401         PR tree-optimization/80359
15402         * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
15403         trim stores to TARGET_MEM_REFs.
15405 2017-04-12  Richard Biener  <rguenther@suse.de>
15407         PR tree-optimization/79390
15408         * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
15409         threading case even more.
15411 2017-04-12  Segher Boessenkool  <segher@kernel.crashing.org>
15413         PR target/80382
15414         * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
15415         for quad_address_p for TImode, instead of just not indexed_address.
15417 2017-04-12  Richard Biener  <rguenther@suse.de>
15418             Bernd Edlinger  <bernd.edlinger@hotmail.de>
15420         PR middle-end/79671
15421         * alias.c (component_uses_parent_alias_set_from): Handle
15422         TYPE_TYPELESS_STORAGE.
15423         (get_alias_set): Likewise.
15424         * tree-core.h (tree_type_common): Add typeless_storage flag.
15425         * tree.h (TYPE_TYPELESS_STORAGE): New macro.
15426         * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
15427         for types containing members with TYPE_TYPELESS_STORAGE.
15428         (place_field): Likewise.
15429         (layout_type): Likewise for ARRAY_TYPE.
15430         * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
15431         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
15432         TYPE_TYPELESS_STORAGE.
15433         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
15435 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
15437         PR sanitizer/80349
15438         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
15439         first argument to type.
15441 2017-04-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15443         PR target/80376
15444         PR target/80315
15445         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
15446         CONST0_RTX (mode) rather than const0_rtx where appropriate.
15447         (rs6000_expand_binop_builtin): Likewise.
15448         (rs6000_expand_ternop_builtin): Likewise; also add missing
15449         vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
15450         vshasigma built-ins.
15451         * doc/extend.texi: Document that vec_xxpermdi's third argument
15452         must be a constant.
15454 2017-04-11  Uros Bizjak  <ubizjak@gmail.com>
15456         * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
15457         Use shift_const cost parameter when calculating gain of STV shifts.
15459 2017-04-11  Vladimir Makarov  <vmakarov@redhat.com>
15461         PR rtl-optimization/70478
15462         * lra-constraints.c (process_alt_operands): Check memory for
15463         disfavoring memory insn operand.
15465 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
15467         PR middle-end/80100
15468         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
15469         left shift in unsigned HOST_WIDE_INT type.
15471         PR rtl-optimization/80385
15472         * simplify-rtx.c (simplify_unary_operation_1): Don't transform
15473         (not (neg X)) into (plus X -1) for complex or non-integral modes.
15475         PR libgomp/80394
15476         * omp-low.c (scan_omp_task): Don't optimize away empty tasks
15477         if they have any depend clauses.
15479 2017-04-11  Martin Liska  <mliska@suse.cz>
15481         PR ipa/80212
15482         * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
15483         * ipa-split.c (split_function): Create a local comdat symbol
15484         if caller is in a comdat group.
15486 2017-04-11  Martin Liska  <mliska@suse.cz>
15488         PR ipa/80212
15489         * ipa-cp.c (determine_versionability): Handle calls_comdat_local
15490         flags.
15492 2017-04-11  Martin Sebor  <msebor@redhat.com>
15494         PR middle-end/80364
15495         * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
15496         always use the int type.  Use INTEGRAL_TYPE_P() rather than testing
15497         for INTEGER_TYPE.
15498         (directive::set_width, directive::set_precision, format_character):
15499         Adjust.
15500         (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
15501         INTEGER_TYPE.
15503 2017-04-11  Richard Earnshaw  <rearnsha@arm.com>
15505         PR target/80389
15506         * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
15507         conflict, set target->arch_name instead of target->cpu_name.
15509 2017-04-11  Richard Biener  <rguenther@suse.de>
15511         PR tree-optimization/80374
15512         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
15513         build_zero_cst, remove fold_convertible_p check again.
15515 2017-04-11  Martin Liska  <mliska@suse.cz>
15517         PR sanitizer/70878
15518         * ubsan.c (instrument_object_size): Do not instrument register
15519         variables.
15521 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
15523         PR target/80381
15524         * config/i386/i386-builtin-types.def
15525         (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
15526         V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
15527         V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
15528         V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
15529         V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
15530         V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
15531         V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
15532         V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
15533         V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
15534         V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
15535         V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
15536         V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
15537         V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
15538         V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
15539         V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
15540         V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
15541         V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
15542         V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
15543         * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
15544         __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
15545         __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
15546         __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
15547         __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
15548         __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
15549         __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
15550         __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
15551         __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
15552         __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
15553         __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
15554         __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
15555         __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
15556         __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
15557         __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
15558         __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
15559         __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
15560         __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
15561         __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
15562         __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
15563         __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
15564         __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
15565         __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
15566         __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
15567         __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
15568         __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
15569         __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
15570         __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
15571         aliases.
15572         * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
15573         flag to second_arg_count, handle 4 argument function type _COUNT
15574         aliases, handle second_arg_count on second argument rather than last.
15576 2017-04-10  Jeff Law  <law@redhat.com>
15578         PR tree-optimization/80374
15579         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
15580         record anything if we can not convert integer_zero_node to the
15581         desired type.
15583 2017-04-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
15585         PR target/80108
15586         * config/rs6000/rs6000.c (rs6000_option_override_internal):
15587         Enhance special handling given to the TARGET_P9_MINMAX option in
15588         relation to certain other options.
15590 2017-04-10  Bin Cheng  <bin.cheng@arm.com>
15592         PR tree-optimization/80153
15593         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
15594         remove POINTER_PLUS_EXPR's base part directly, rather than through
15595         aff_tree.
15597 2017-04-10  Richard Biener  <rguenther@suse.de>
15598             Bin Cheng  <bin.cheng@arm.com>
15600         PR tree-optimization/80153
15601         * tree-affine.c (aff_combination_to_tree): Get base pointer from
15602         the first element of pointer type aff_tree.  Build result expr in
15603         aff_tree's type.
15604         (add_elt_to_tree): Convert to type unconditionally.  Remove other
15605         fold_convert calls.
15606         * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
15607         (rewrite_use_nonlinear_expr): Check invariant using iv information.
15609 2017-04-10  Richard Biener  <rguenther@suse.de>
15611         * tree-ssa-structalias.c (find_func_aliases): Properly handle
15612         asm inputs.
15614 2017-04-10  Vladimir Makarov  <vmakarov@redhat.com>
15616         PR rtl-optimization/70478
15617         * lra-constraints.c (curr_small_class_check): New.
15618         (update_and_check_small_class_inputs): New.
15619         (process_alt_operands): Update curr_small_class_check.  Disfavor
15620         alternative insn memory operands.  Check available regs for small
15621         class operands.
15623 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
15625         PR target/80057
15626         * config/mips/mips.opt (-mvirt): Update description.
15627         * doc/invoke.texi (-mvirt): Likewise.
15629 2017-04-10  Richard Biener  <rguenther@suse.de>
15631         PR middle-end/80362
15632         * fold-const.c (fold_binary_loc): Look at unstripped ops when
15633         looking for NEGATE_EXPR in -A / -B to A / B folding.
15635 2017-04-10  Martin Liska  <mliska@suse.cz>
15637         PR gcov-profile/80224
15638         * gcov.c (print_usage): Fix usage string.
15639         (get_gcov_intermediate_filename): Remove.
15640         (output_gcov_file): Use both for normal and intermediate format.
15641         (generate_results): Do not initialize special file for
15642         intermediate format.
15644 2017-04-10  Richard Biener  <rguenther@suse.de>
15646         PR tree-optimization/80304
15647         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
15648         for safelen.
15650 2017-04-10  Nathan Sidwell  <nathan@acm.org>
15652         PR target/79905
15653         * config/rs6000/rs6000.c (rs6000_vector_type): New.
15654         (rs6000_init_builtins): Use it.
15656 2016-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15658         * config/arm/arm.md (<mrc>): Add mode to SET source.
15659         (<mrrc>): Likewise.
15661 2017-04-10  Richard Biener  <rguenther@suse.de>
15663         PR middle-end/80344
15664         * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
15666 2017-04-10  Jakub Jelinek  <jakub@redhat.com>
15668         PR target/80324
15669         * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
15670         _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
15671         _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
15672         _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
15673         _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
15674         _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
15675         _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
15676         _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
15677         _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
15678         _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
15679         _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
15680         _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
15681         _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
15682         _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
15683         _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
15684         _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
15685         _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
15686         _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
15687         _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
15688         _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
15689         _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
15690         _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
15691         _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
15693 2017-04-08  Vladimir Makarov  <vmakarov@redhat.com>
15695         PR rtl-optimization/70478
15696         * lra-constraints.c: Reverse the last patch.
15698 2017-04-08  Andreas Tobler  <andreast@gcc.gnu.org>
15700         * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
15701         Add comment for WCHAR_T.
15703 2017-04-08  Martin Liska  <mliska@suse.cz>
15705         Revert:
15706         2017-04-07  Martin Liska  <mliska@suse.cz>
15708         PR ipa/80212
15709         * ipa-split.c (split_function): Add function part to a same comdat
15710         group.
15712 2017-04-08  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
15714         PR target/80358
15715         * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
15717 2017-04-07  Pat Haugen  <pthaugen@us.ibm.com>
15719         * rs6000/rs6000.c (vec_load_pendulum): Rename...
15720         (vec_pairing): ...to this.
15721         (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
15722         (rs6000_sched_init): Adjust for name change.
15723         (struct rs6000_sched_context): Likewise.
15724         (rs6000_init_sched_context): Likewise.
15725         (rs6000_set_sched_context): Likewise.
15727 2017-04-07  Jakub Jelinek  <jakub@redhat.com>
15729         PR target/80322
15730         PR target/80323
15731         PR target/80325
15732         PR target/80326
15733         * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
15734         intrinsics.
15735         * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
15736         _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
15737         _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
15739 2017-04-07  Andreas Tobler  <andreast@gcc.gnu.org>
15741         * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
15743 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
15745         PR rtl-optimization/70703
15746         * ira-color.c (update_conflict_hard_regno_costs): Use
15747         int64_t instead of HOST_WIDE_INT.
15749 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
15751         PR rtl-optimization/70478
15752         * lra-constraints.c (process_alt_operands): Disfavor alternative
15753         insn memory operands.
15755 2017-04-07  Jeff Law  <law@redhat.com>
15757         * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
15758         CALL and NOTE_INSN_CALL_ARG_LOCATION.
15760 2017-04-07  Martin Liska  <mliska@suse.cz>
15762         PR target/79889
15763         * config/aarch64/aarch64.c (aarch64_process_target_attr):
15764         Show error message instead of an ICE.
15766 2017-04-07  Martin Liska  <mliska@suse.cz>
15768         PR ipa/80212
15769         * ipa-split.c (split_function): Add function part to a same comdat
15770         group.
15772 2017-04-07  Richard Biener  <rguenther@suse.de>
15774         PR middle-end/80341
15775         * tree.c (get_unwidened): Also handle ! for_type case for
15776         INTEGER_CSTs.
15777         * convert.c (do_narrow): Split out from ...
15778         (convert_to_integer_1): ... here.  Do not pass final truncation
15779         type to get_unwidened for TRUNC_DIV_EXPR.
15781 2017-04-07  Richard Biener  <rguenther@suse.de>
15783         * tree-affine.c (wide_int_ext_for_comb): Take type rather
15784         than aff_tree.
15785         (aff_combination_const): Adjust.
15786         (aff_combination_scale): Likewise.
15787         (aff_combination_add_elt): Likewise.
15788         (aff_combination_add_cst): Likewise.
15789         (aff_combination_convert): Likewise.
15790         (add_elt_to_tree): Likewise.  Remove unused argument.
15791         (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
15793 2017-04-07  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15795         * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
15796         definition.
15797         * config/arm/arm.c (arm_default_short_enums): Use
15798         ARM_DEFAULT_SHORT_ENUMS.
15799         * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
15801 2017-04-06  Jakub Jelinek  <jakub@redhat.com>
15803         PR debug/80234
15804         * dwarf2out.c (gen_member_die): Handle C++17 inline static data
15805         members with redundant out-of-class redeclaration.
15807 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
15809         PR target/80286
15810         * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
15811         * config/i386/i386.md (*zero_extendsidi2):
15812         Add (?*x,*x) and (?*v,*v) alternatives.
15814 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
15816         PR target/79733
15817         * config/i386/i386.c (ix86_expand_builtin)
15818         <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
15819         mode from insn data. Convert operands to insn operand mode.
15820         Copy operands that don't satisfy insn predicate to a register.
15822 2017-04-06  Sam Thursfield  <sam.thursfield@codethink.co.uk>
15824         * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
15825         Update comments.
15827 2017-04-06  Richard Biener  <rguenther@suse.de>
15829         PR tree-optimization/80334
15830         * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
15831         preserve alignment of accesses.
15833 2017-04-06  Richard Biener  <rguenther@suse.de>
15835         PR tree-optimization/80262
15836         * tree-sra.c (build_ref_for_offset): Preserve address-space
15837         information.
15838         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
15839         Drop useless address-space information on MEM_REF offsets.
15841 2017-04-05  Andreas Schwab  <schwab@linux-m68k.org>
15843         * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
15845 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
15847         PR rtl-optimization/70703
15848         * ira-color.c (update_conflict_hard_regno_costs): Use
15849         HOST_WIDE_INT instead of long.
15851 2017-04-05  Uros Bizjak  <ubizjak@gmail.com>
15853         PR target/80298
15854         * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
15855         not defined for x86_64 target.  Add -mmmx target option when __SSE2__
15856         is not defined.
15857         * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
15858         for x86_64 target.  Handle -m3dnowa option.
15860 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
15862         PR rtl-optimization/70703
15863         * ira-color.c (update_costs_from_allocno): Use the smallest mode.
15864         (update_conflict_hard_regno_costs): Use long instead of unsigned
15865         arithmetic for cost calculation.
15867 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
15868             Bernd Edlinger  <bernd.edlinger@hotmail.de>
15870         PR sanitizer/80308
15871         * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
15872         for big endian.
15874 2017-04-05  Eric Botcazou  <ebotcazou@adacore.com>
15876         PR target/78002
15877         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
15878         ptr_mode with Pmode throughout.
15879         * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
15880         into probe_stack_range and use DImode.
15882 2017-04-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15884         PR target/79890
15885         * config/s390/s390.c (s390_register_info_gprtofpr): Return if
15886         call_eh_return is true.
15888 2017-04-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15890         * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
15891         Initialize last_match_fntype_index.
15893 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
15895         PR target/80310
15896         * tree-nvr.c: Include internal-fn.h.
15897         (pass_return_slot::execute): Ignore internal calls without
15898         direct optab.
15900 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
15901             Richard Biener  <rguenther@suse.de>
15903         PR c++/80297
15904         * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
15905         captures used multiple times, except for the last use.
15906         * generic-match-head.c: Include gimplify.h.
15908 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
15910         PR tree-optimization/79390
15911         * target.h (struct noce_if_info): Declare.
15912         * targhooks.h (default_noce_conversion_profitable_p): Declare.
15913         * target.def (noce_conversion_profitable_p): New target hook.
15914         * ifcvt.h (struct noce_if_info): New type, moved from ...
15915         * ifcvt.c (struct noce_if_info): ... here.
15916         (noce_conversion_profitable_p): Renamed to ...
15917         (default_noce_conversion_profitable_p): ... this.  No longer
15918         static nor inline.
15919         (noce_try_store_flag_constants, noce_try_addcc,
15920         noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
15921         noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
15922         instead of noce_conversion_profitable_p.
15923         * config/i386/i386.c: Include ifcvt.h.
15924         (ix86_option_override_internal): Don't override
15925         PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
15926         (ix86_noce_conversion_profitable_p): New function.
15927         (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
15928         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
15929         * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
15930         * doc/tm.texi: Regenerated.
15932 2017-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15934         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
15935         correction.
15937 2017-04-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15939         PR target/80307
15940         * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
15941         instructions for small multiply cores.
15943 2017-04-04  Jeff Law  <law@redhat.com>
15945         * config/mips/mips.c (mips_multi_add): Zero initialize the newly
15946         added member.
15947         (mips_expand_vec_perm_const): Initialize elements in orig_perm
15948         that are not set by the loop over the elements.
15950 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
15952         PR target/80286
15953         * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
15954         int mode, convert_modes it to mode as unsigned, otherwise use
15955         lowpart_subreg to mode rather than SImode.
15956         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
15957         ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
15958         Use DImode instead of SImode for the shift count operand.
15959         * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
15960         Likewise.
15962 2017-04-04  Richard Biener  <rguenther@suse.de>
15964         PR middle-end/80281
15965         * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
15966         arithmetic done for the negate or the plus.  Simplify.
15967         (A - (-B) -> A + B): Likewise.
15968         * fold-const.c (split_tree): Make sure to not negate pointers.
15970 2017-04-04  Segher Boessenkool  <segher@kernel.crashing.org>
15972         PR rtl-optimization/60818
15973         * simplify-rtx.c (simplify_binary_operation_1): Do not replace
15974         a compare of comparisons with the thing compared if this results
15975         in a different machine mode.
15977 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
15979         * alias.c (base_alias_check): Fix typo in comment.
15980         * cgraph.h (class ipa_polymorphic_call_context): Likewise.
15981         * cgraphunit.c (symbol_table::compile): Likewise.
15982         * collect2.c (maybe_run_lto_and_relink): Likewise.
15983         * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
15984         * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
15985         * config/avr/avr.c (avr_map_op_t): Likewise.
15986         * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
15987         * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
15988         * config/epiphany/epiphany.md (movcc): Likewise.
15989         * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
15990         * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
15991         Likewise.
15992         * config/mips/mips.c (mips_save_restore_reg): Likewise.
15993         * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
15994         * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
15995         * config/sh/sh.c (sh_rtx_costs): Likewise.
15996         * fold-const.c (fold_truth_andor): Likewise.
15997         * genautomata.c (collapse_flag): Likewise.
15998         * gengtype.h (struct type::u::s): Likewise.
15999         * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
16000         * input.c (FORMAT_AMOUNT): Likewise.
16001         * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
16002         (known_aggs_to_agg_replacement_list): Likewise.
16003         * ipa-inline-analysis.c: Likewise.
16004         * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
16005         * ipa-polymorphic-call.c
16006         (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
16007         * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
16008         * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
16009         Likewise.
16010         * modulo-sched.c (apply_reg_moves): Likewise.
16011         * omp-expand.c (build_omp_regions_1): Likewise.
16012         * trans-mem.c (struct tm_wrapper_hasher): Likewise.
16013         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
16014         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
16015         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
16016         * value-prof.c: Likewise.
16017         * var-tracking.c (val_reset): Likewise.
16019 2017-04-03  Richard Biener  <rguenther@suse.de>
16021         PR tree-optimization/80275
16022         * fold-const.c (split_address_to_core_and_offset): Handle
16023         POINTER_PLUS_EXPR.
16025 2017-04-03  Eric Botcazou  <ebotcazou@adacore.com>
16027         * tree-nested.c (get_descriptor_type): Make sure that the alignment of
16028         descriptors is at least equal to that of functions.
16030 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
16032         * config/i386/sse.md (movdi_to_sse): Add missing DONE.
16034 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
16036         PR target/80250
16037         * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
16038         (mov<IMOD4:mode>): New expander.
16039         (*mov<IMOD4:mode>_internal): New insn and split pattern.
16041 2017-03-31  Segher Boessenkool  <segher@kernel.crashing.org>
16043         PR rtl-optimization/79405
16044         * fwprop.c (propagations_left): New variable.
16045         (forward_propagate_into): Decrement it.
16046         (fwprop_init): Initialize it.
16047         (fw_prop): If the variable has reached zero, stop propagating.
16048         (fwprop_addr): Ditto.
16050 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
16052         PR debug/79255
16053         * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
16054         a FUNCTION_DECL, pass it as decl instead of origin to
16055         process_scope_var.
16057 2017-03-31  Alexander Monakov  <amonakov@ispras.ru>
16059         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
16060         string.
16062 2017-03-31  Pat Haugen  <pthaugen@us.ibm.com>
16064         PR target/80107
16065         * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
16066         TARGET_VSX_SMALL_INTEGER.
16068 2017-03-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16070         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
16071         reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
16073 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
16075         * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
16076         extraction from odd-numbered MSA register.
16078 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
16080         PR middle-end/80173
16081         * expmed.c (store_bit_field_1): Don't attempt to create
16082         a word subreg out of hard registers wider than word if they
16083         have HARD_REGNO_NREGS of 1 for their mode.
16085         PR middle-end/80163
16086         * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
16087         conversions to integer types wider than word and pointer.
16089         PR debug/80025
16090         * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
16091         (rtx_equal_for_cselib_p): Pass 0 to it.
16092         * cselib.c (cselib_hasher::equal): Likewise.
16093         (rtx_equal_for_cselib_1): Add depth argument.  If depth
16094         is 128, don't look up VALUE locs and punt.  Increment
16095         depth in recursive calls when walking VALUE locs.
16097 2017-03-31  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16099         * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
16100         (make_gcov_file_name): Use the canonical path name for generating
16101         the MD5 value.
16102         (read_line): Fix handling of files with ascii null bytes.
16104 2017-03-30  Matthew Fortune  <matthew.fortune@imgtec.com>
16106         * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
16107         to initialise a vector register instead
16108         of using a const_int.
16110 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
16112         PR translation/80189
16113         * gimplify.c (omp_default_clause): Use %qs instead of %s in
16114         diagnostic messages.
16116 2017-03-30  Peter Bergner  <bergner@vnet.ibm.com>
16118         PR target/80246
16119         * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
16120         (dfp_diex_<mode>): Update mode of operand 1.
16121         * doc/extend.texi (dxex, dxexq): Document change to return type.
16122         (diex, diexq): Document change to argument type.
16124 2017-03-30  Martin Jambor  <mjambor@suse.cz>
16126         PR ipa/77333
16127         * cgraph.h (cgraph_build_function_type_skip_args): Declare.
16128         * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
16129         it reflects the signature changes performed at the callee side.
16130         * cgraphclones.c (build_function_type_skip_args): Make public, renamed
16131         to cgraph_build_function_type_skip_args.
16132         (build_function_decl_skip_args): Adjust call to the above function.
16134 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
16136         PR target/80206
16137         * config/i386/sse.md
16138         (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
16139         register as dest whenever it is a MEM not rtx_equal_p to the
16140         corresponding dup operand, and when forcing into reg move the
16141         reg into the memory afterwards.
16142         (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
16143         Likewise.  Use <ssehalfvecmode> instead of <ssequartermode>
16144         for the force_reg mode.
16145         (avx512vl_vextractf128<mode>): Use register as dest either
16146         always when a MEM, or when it is a MEM not rtx_equal_p to the
16147         corresponding dup operand, or even not when it is a CONST_VECTOR
16148         depending on the mode and lo vs. hi.
16149         (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
16150         parens.
16151         (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
16152         (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
16153         Likewise.  Require that operands[2] is even.
16154         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
16155         Remove extraneous parens.  Require that operands[2] is a multiple
16156         of 4.
16157         (vec_extract_lo_<mode><mask_name>): Don't bother testing if
16158         operands[0] is a MEM if <mask_applied>, the predicates/constraints
16159         disallow memory then.
16161 2017-03-30  Richard Biener  <rguenther@suse.de>
16163         PR tree-optimization/77498
16164         * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
16165         to non-constants over backedges.
16167 2017-03-29  Segher Boessenkool  <segher@kernel.crashing.org>
16169         PR rtl-optimization/80233
16170         * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
16171         as last_combined_insn.  Do not test for BARRIER_P separately.
16173 2017-03-29  Andreas Schwab  <schwab@suse.de>
16175         PR ada/80146
16176         * calls.c (prepare_call_address): Convert funexp to Pmode before
16177         copying to temp reg.
16179 2017-03-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16181         PR tree-optimization/80158
16182         * gimple-ssa-strength-reduction.c (replace_mult_candidate):
16183         Handle possible future case of more than one alternate
16184         interpretation.
16185         (replace_rhs_if_not_dup): Likewise.
16186         (replace_one_candidate): Likewise.
16188 2017-03-28  Vladimir Makarov  <vmakarov@redhat.com>
16190         PR rtl-optimization/80193
16191         * ira.c (ira): Do not check allocation for LRA.
16193 2017-03-28  Alexander Monakov  <amonakov@ispras.ru>
16195         * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
16196         (nvptx_output_simt_exit): Declare.
16197         * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
16198         cfun->machine->unisimt_location.  Handle NULL unisimt_predicate.
16199         (init_softstack_frame): Move initialization of crtl->is_leaf to...
16200         (nvptx_declare_function_name): ...here.  Emit declaration of local
16201         memory space buffer for omp_simt_enter insn.
16202         (nvptx_output_unisimt_switch): New.
16203         (nvptx_output_softstack_switch): New.
16204         (nvptx_output_simt_enter): New.
16205         (nvptx_output_simt_exit): New.
16206         * config/nvptx/nvptx.h (struct machine_function): New fields
16207         has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
16208         * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
16209         (UNSPECV_SIMT_EXIT): Ditto.
16210         (omp_simt_enter_insn): New insn.
16211         (omp_simt_enter): New expansion.
16212         (omp_simt_exit): New insn.
16213         * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
16215         * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
16216         (expand_GOMP_SIMT_ENTER_ALLOC): New.
16217         (expand_GOMP_SIMT_EXIT): New.
16218         * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
16219         (GOMP_SIMT_ENTER_ALLOC): Ditto.
16220         (GOMP_SIMT_EXIT): Ditto.
16221         * target-insns.def (omp_simt_enter): New insn.
16222         (omp_simt_exit): Ditto.
16223         * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
16224         simt_dlist.
16225         (lower_rec_simd_input_clauses): Implement SIMT privatization.
16226         (lower_rec_input_clauses): Likewise.
16227         (lower_lastprivate_clauses): Handle SIMT privatization.
16229         * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
16230         (ompdevlow_adjust_simt_enter): New.
16231         (find_simtpriv_var_op): New.
16232         (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
16233         IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
16235         * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
16236         * tree-inline.c (expand_call_inline): Handle SIMT privatization.
16237         (copy_decl_for_dup_finish): Ditto.
16239         * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
16241 2017-03-28  Uros Bizjak  <ubizjak@gmail.com>
16243         PR target/53383
16244         * config/i386/i386.c (ix86_option_override_internal): Always
16245         allow -mpreferred-stack-boundary=3 for 64-bit targets.
16247 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
16249         * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
16251 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
16253         * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
16254         mark new edge's irreducible flag accordign to it.
16255         (vect_do_peeling): Check loop preheader edge's irreducible flag
16256         and pass it to function slpeel_add_loop_guard.
16258 2017-03-28  Richard Sandiford  <richard.sandiford@arm.com>
16260         PR tree-optimization/80218
16261         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
16262         Update block frequencies and counts.
16264 2017-03-28  Richard Biener  <rguenther@suse.de>
16266         PR tree-optimization/78644
16267         * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
16268         of a simplification result we may not use it at all.
16270 2017-03-28  Richard Biener  <rguenther@suse.de>
16272         PR ipa/80205
16273         * tree-inline.c (copy_phis_for_bb): Do not create PHI node
16274         without arguments, generate default definition of a SSA name.
16276 2017-03-28  Richard Biener  <rguenther@suse.de>
16278         PR middle-end/80222
16279         * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
16280         TYPE_REF_CAN_ALIAS_ALL references.
16281         * fold-const.c (fold_indirect_ref_1): Likewise.
16283 2017-03-28  Martin Liska  <mliska@suse.cz>
16285         PR ipa/80104
16286         * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
16287         thunk call as DECL_GIMPLE_REG_P when vector or complex type.
16289 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
16290             Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>
16292         * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
16293         (EXTRA_SPECS): Define.
16294         (SUBTARGET_EXTRA_SPECS): Likewise.
16295         (SUBTARGET_CPP_SPEC): Likewise.
16296         * config/arc/elf.h (EXTRA_SPECS): Renamed to
16297         SUBTARGET_EXTRA_SPECS.
16298         * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
16300 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
16302         * config/arc/simdext.md (vst64_insn): Update pattern.
16303         (vld32wh_insn): Likewise.
16304         (vld32wl_insn): Likewise.
16305         (vld64_insn): Likewise.
16306         (vld32_insn): Likewise.
16308 2017-03-28  Marek Polacek  <polacek@redhat.com>
16310         PR sanitizer/80067
16311         * fold-const.c (fold_comparison): Use protected_set_expr_location
16312         instead of SET_EXPR_LOCATION.
16314 2017-03-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
16316         * tree.c (add_expr): Avoid name lookup warning.
16318 2017-03-27  Jeff Law  <law@redhat.com>
16320         PR tree-optimization/80216
16321         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
16322         function name.  Limit recursion depth.
16323         (record_temporary_equivalences): Corresponding changes.
16325 2017-03-27  Jonathan Wakely  <jwakely@redhat.com>
16327         * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
16328         covered first.
16330 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
16332         PR target/80102
16333         * reg-notes.def (REG_CFA_NOTE): Define.  Use it for CFA related
16334         notes.
16335         * cfgcleanup.c (reg_note_cfa_p): New array.
16336         (insns_have_identical_cfa_notes): New function.
16337         (old_insns_match_p): Don't cross-jump in between /f
16338         and non-/f instructions.  If both i1 and i2 are frame related,
16339         verify all CFA notes, their order and content.
16341 2017-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
16343         PR target/78543
16344         * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
16345         HImode and SImode with zero extend to DImode to one insn.
16346         (bswap<mode>2_extenddi): Likewise.
16347         (bswapsi2_extenddi): Likewise.
16348         (bswaphi2_extendsi): Likewise.
16349         (bswaphi2): Combine bswap HImode and SImode into one insn.
16350         Separate memory insns from swapping register.
16351         (bswapsi2): Likewise.
16352         (bswap<mode>2): Likewise.
16353         (bswaphi2_internal): Delete, no longer used.
16354         (bswapsi2_internal): Likewise.
16355         (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
16356         store, and gpr<-gpr swap insns.
16357         (bswap<mode>2_store): Likewise.
16358         (bswaphi2_reg): Register only splitter, combine with the splitter.
16359         (bswaphi2 splitter): Likewise.
16360         (bswapsi2_reg): Likewise.
16361         (bswapsi2 splitter): Likewise.
16362         (bswapdi2): If we have the LDBRX and STDBRX instructions, split
16363         the insns into load, store, and register/register insns.
16364         (bswapdi2_ldbrx): Likewise.
16365         (bswapdi2_load): Likewise.
16366         (bswapdi2_store): Likewise.
16367         (bswapdi2_reg): Likewise.
16369 2017-03-27  Gunther Nikl  <gnikl@users.sourceforge.net>
16371         * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
16372         (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
16374 2017-03-27  Kelvin Nilsen  <kelvin@gcc.gnu.org>
16376         PR target/80103
16377         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
16378         add comments.
16379         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
16380         special handling for target option conflicts between dform
16381         options (-mpower9-dform, -mpower9-dform-vector,
16382         -mpower9-dform-scalar) and -mno-direct-move.
16384 2017-03-27  Richard Biener  <rguenther@suse.de>
16386         PR tree-optimization/80181
16387         * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
16389 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
16391         * config/arc/predicates.md (move_double_src_operand): Replace the
16392         call to move_double_src_operand with a call to address_operand.
16394 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
16396         * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
16397         * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
16398         * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
16400 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
16402         * config/arc/predicates.md (long_immediate_loadstore_operand):
16403         Consider scaled addresses cases.
16405 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
16407         * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
16408         restored when in interrupt.
16409         * config/arc/arc.md (simple_return): ARCv2 rtie instruction
16410         doesn't have delay slot.
16412 2017-03-27  Richard Biener  <rguenther@suse.de>
16414         PR ipa/79776
16415         * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
16416         inlined thunk clones.
16418 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
16420         PR sanitizer/80168
16421         * asan.c (instrument_derefs): Copy over last operand from
16422         original COMPONENT_REF to the new COMPONENT_REF with
16423         DECL_BIT_FIELD_REPRESENTATIVE.
16424         * ubsan.c (instrument_object_size): Likewise.
16426 2017-03-27  Richard Biener  <rguenther@suse.de>
16428         PR tree-optimization/80170
16429         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
16430         sure DR/SCEV didnt fold in constants we do not see when looking
16431         at the reference base alignment.
16433 2017-03-27  Richard Biener  <rguenther@suse.de>
16435         PR middle-end/80171
16436         * gimple-fold.c (fold_ctor_reference): Properly guard against
16437         NULL return value from canonicalize_constructor_val.
16439 2017-03-25  Uros Bizjak  <ubizjak@gmail.com>
16441         PR target/80180
16442         * config/i386/i386.c (ix86_expand_builtin)
16443         <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
16444         flags reg setting and flags reg using instructions.
16445         <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto.  Use non-flags reg
16446         clobbering instructions to zero extend op2.
16448 2017-03-25  Gerald Pfeifer  <gerald@pfeifer.com>
16450         * doc/install.texi (Configuration) <--with-aix-soname>:
16451         Update link to AIX ld.
16453 2017-03-25  Bernd Schmidt  <bschmidt@redhat.com>
16455         PR rtl-optimization/80160
16456         PR rtl-optimization/80159
16457         * lra-assigns.c (must_not_spill_p): Tighten new test to also take
16458         reg_alternate_class into account.
16460 2017-03-24  Vladimir Makarov  <vmakarov@redhat.com>
16462         PR target/80148
16463         * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
16464         to consider in curr_insn_transform.
16466 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
16468         * genrecog.c (validate_pattern): Add VEC_SELECT validation.
16469         * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
16470         and emit_mode_inner.
16472 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16474         * config/s390/s390-builtins.def: Add VXE builtins.  Add a flags
16475         argument to the overloaded builtin variants.  Use the new flag to
16476         deprecate certain builtin variants.
16477         * config/s390/s390-builtin-types.def: Add new builtin types.
16478         * config/s390/s390-builtins.h: Support new flags field for
16479         overloaded builtins.
16480         * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
16481         (s390_macro_to_expand): Enable vector float data type.
16482         (s390_cpu_cpp_builtins_internal): Indicate support of the new
16483         builtins by incrementing the __VEC__ version number.
16484         (s390_expand_overloaded_builtin): Support expansion of vec_xl and
16485         vec_xst.
16486         (s390_resolve_overloaded_builtin): Emit error messages depending
16487         on the builtin flags.
16488         * config/s390/s390.c (s390_expand_builtin): Support additional
16489         flags argument.  Change error message to match the messages
16490         emitted in s390-c.c.
16491         * config/s390/s390.md: New UNSPEC_* constants.
16492         (op_type): Add new instruction types.
16493         * config/s390/vecintrin.h: Add new builtins and test data class
16494         constants.
16495         * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
16496         (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
16497         (VEC_INEXACT, VEC_NOINEXACT): New constants.
16498         ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
16499         ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
16500         ("vec_mergel<mode>"): V_HW -> VEC_HW.
16502         ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
16503         ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
16504         ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
16505         ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
16507         ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
16508         ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
16509         ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
16510         ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
16512         ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
16513         ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
16514         ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
16515         ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
16516         ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
16517         ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
16518         ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
16520         ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
16521         ("vec_scatter_element<V_HW_4:mode>_DI")
16522         ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
16523         ("vec_fpint<mode>", "vflls")
16524         ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
16525         ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
16526         ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
16527         ("*vec_cmphe<mode>_cc"): ... these.
16529         ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
16530         mode constant instead of magic value.
16532 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16534         * config/s390/s390.c (s390_expand_vec_compare): Support other
16535         vector floating point modes than just V2DF.
16536         (s390_expand_vcond): Likewise.
16537         (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
16538         (s390_cannot_change_mode_class): Prevent mode changes between TF
16539         and V1TF in vector registers.
16540         * config/s390/s390.md (DF, SF): New mode attributes.
16541         ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
16542         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
16543         SFmode support for VRs.
16544         * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
16545         vector fp modes.
16546         (VFT, VF_HW): New mode iterators.
16547         (vw, sdx): New mode attributes.
16548         ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
16549         ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
16550         ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
16551         ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
16552         ("vec_unorderedv2df"): Adjust the v2df only patterns to support
16553         also the new vector floating point modes.  Renaming to ...
16555         ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
16556         ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
16557         ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
16558         ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
16559         ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
16560         ("vec_unordered<mode>"): ... these.
16562         ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
16563         ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
16564         ("*vec_extendv2df"): New insn definitions.
16566 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16568         * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
16569         ("mulditi3_2", "*muldi3_sign"): New patterns.
16570         ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
16571         rename the pattern definition.
16573 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16575         * config/s390/s390.md ("indirect_jump"): Turn insn definition into
16576         expander.
16577         ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
16579 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16581         * config/s390/s390.c (s390_expand_vec_init): Use vllezl
16582         instruction if possible.
16583         * config/s390/vector.md (vec_halfnumelts): New mode
16584         attribute.
16585         ("*vec_vllezlf<mode>"): New pattern.
16587 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16589         * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
16590         ("popcountv4si2", "popcountv2di2"): Rename to ...
16591         ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
16592         ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
16593         condition.
16594         ("popcount<mode>2_vxe"): New pattern.
16596 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16598         * common/config/s390/s390-common.c (processor_flags_table): Add
16599         arch12.
16600         * config.gcc: Add arch12.
16601         * config/s390/driver-native.c (s390_host_detect_local_cpu):
16602         Default to arch12 for unknown CPU model numbers.
16603         * config/s390/s390-builtins.def: Add B_VXE builtin flag.
16604         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
16605         PROCESSOR_max sanity check.
16606         * config/s390/s390-opts.h (enum processor_type): Add
16607         PROCESSOR_ARCH12.
16608         * config/s390/s390.c (processor_table): Add arch12.
16609         (s390_expand_builtin): Add check for B_VXE flag.
16610         (s390_issue_rate): Add PROCESSOR_ARCH12.
16611         (s390_get_sched_attrmask): Likewise.
16612         (s390_get_unit_mask): Likewise.
16613         (s390_sched_score): Enable z13 scheduling for arch12.
16614         (s390_sched_reorder): Likewise.
16615         (s390_sched_variable_issue): Likewise.
16616         * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
16617         PF_VXE.
16618         (s390_tune_attr): Use z13 scheduling also for arch12.
16619         (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
16620         (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
16621         (TARGET_VXE_P): New macros.
16622         * config/s390/s390.md: Add arch12 to cpu attribute.  Add arch12
16623         and vxe to cpu_facility.  Add arch12 and vxe to enabled attribute.
16624         * config/s390/s390.opt: Add arch12 as processor_type.
16626 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16628         * config/s390/s390.md
16629         ("fixuns_truncdddi2", "fixuns_trunctddi2")
16630         ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
16631         ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
16633         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
16634         Rename expanders to ...
16636         ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
16637         ("fixuns_truncdddi2_emu"): ... these.
16639         ("fixuns_trunc<mode>si2_emu"): New expander.
16641         ("*fixuns_truncdfdi2_z13"): Rename to ...
16642         ("*fixuns_truncdfdi2_vx"): ... this.
16644 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16646         * config/s390/2964.md: Remove the single element vector compare
16647         instructions which are no longer used.
16648         * config/s390/s390.c (s390_select_ccmode): Remove handling of
16649         vector CCmodes.
16650         (s390_canonicalize_comparison): Remove handling of DFmode
16651         compares.
16652         (s390_expand_vec_compare_scalar): Remove function.
16653         (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
16654         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
16655         pattern.
16656         ("*cmp<mode>_ccs"): Add wfcdb instruction.
16658 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16660         * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
16661         FP zero.
16662         ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
16663         will anyway by matched by mov<mode>_64dfp.
16665 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16667         * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
16668         vlef/vstef.  Add missing operand to vleif.
16670 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16672         * config/s390/s390.c (s390_expand_vec_init): Enable vector load
16673         pair for all vector types with 64 bit elements.
16674         * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
16675         * config/s390/vector.md (V_HW_64): ... here.
16676         (V_128_NOSINGLE): New mode iterator.
16677         ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
16678         ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
16679         ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
16680         ("*vec_load_pairv2di"): Change to ...
16681         ("*vec_load_pair<mode>"): ... this one.
16683 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16685         * config/s390/constraints.md: Add comments.
16686         (jKK): Reject element sizes > 8 bytes.
16687         * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
16688         s_operands.
16689         * config/s390/s390.md: Add the s_operand checks formerly in
16690         s390_split_ok_p to various splitters where they are still
16691         required.
16692         * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
16693         for 128 bit vectors.  Plus two splitters.
16695 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16697         * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
16698         the file.
16700 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16702         PR target/79893
16703         * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
16704         error if the boundary argument is not constant.
16706 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
16708         PR rtl-optimization/80112
16709         * loop-doloop.c (doloop_condition_get): Don't check condition
16710         if cmp isn't SET with IF_THEN_ELSE src.
16712 2017-03-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16714         PR tree-optimization/80158
16715         * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
16716         replacing a candidate statement, also replace it for the
16717         candidate's alternate interpretation.
16718         (replace_rhs_if_not_dup): Likewise.
16719         (replace_one_candidate): Likewise.
16721 2017-03-24  Richard Biener  <rguenther@suse.de>
16723         PR tree-optimization/80167
16724         * graphite-isl-ast-to-gimple.c
16725         (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
16726         properly.
16727         (translate_isl_ast_to_gimple::get_rename): Likewise.
16729 2017-03-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
16731         * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
16732         handling of certain combinations of target options, including the
16733         combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
16734         -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
16736 2017-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16738         PR target/71436
16739         * config/arm/arm.md (*load_multiple): Add reload_completed to
16740         matching condition.
16742 2017-03-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16743             Richard Biener  <rguenth@suse.de>
16745         PR tree-optimization/79908
16746         PR tree-optimization/80136
16747         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
16748         been cast away, gimplify_and_add suffices.
16750 2017-03-23  Markus Trippelsdorf  <markus@trippelsdorf.de>
16752         * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
16754 2017-03-23  Richard Biener  <rguenther@suse.de>
16756         PR tree-optimization/80032
16757         * gimplify.c (gimple_push_cleanup): Forced unconditional
16758         cleanups still have to go to the conditional_cleanups
16759         sequence.
16761 2017-03-22  Jakub Jelinek  <jakub@redhat.com>
16763         PR tree-optimization/80072
16764         * tree-ssa-reassoc.c (struct operand_entry): Change id field type
16765         to unsigned int.
16766         (next_operand_entry_id): Change type to unsigned int.
16767         (sort_by_operand_rank): Make sure to return the right return value
16768         even if unsigned fields are bigger than INT_MAX.
16769         (struct oecount): Change cnt and id type to unsigned int.
16770         (oecount_hasher::equal): Formatting fix.
16771         (oecount_cmp): Make sure to return the right return value
16772         even if unsigned fields are bigger than INT_MAX.
16773         (undistribute_ops_list): Change next_oecount_id type to unsigned int.
16775         PR c++/80129
16776         * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
16777         TREE_READONLY on result if writing it more than once.
16779         PR sanitizer/80110
16780         * doc/invoke.texi (-fsanitize=thread): Document that with
16781         -fnon-call-exceptions atomics are not able to throw
16782         exceptions.
16784         PR sanitizer/80110
16785         * tsan.c: Include tree-eh.h.
16786         (instrument_builtin_call): Call maybe_clean_eh_stmt or
16787         maybe_clean_or_replace_eh_stmt where needed.
16788         (instrument_memory_accesses): Add cfg_changed argument.
16789         Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
16790         if it returned true.
16791         (tsan_pass): Adjust caller.  Return TODO_cleanup_cfg if cfg_changed.
16793         PR rtl-optimization/63191
16794         * config/i386/i386.c (ix86_delegitimize_address): Turn into small
16795         wrapper function, moved the whole old content into ...
16796         (ix86_delegitimize_address_1): ... this.  New inline function.
16797         (ix86_find_base_term): Use ix86_delegitimize_address_1 with
16798         true as last argument instead of ix86_delegitimize_address.
16800 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
16802         * config/aarch64/aarch64.c (generic_branch_cost): Copy
16803         cortexa57_branch_cost.
16805 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
16807         * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
16809 2017-03-21  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
16811         PR target/80123
16812         * doc/md.texi (Constraints): Document wA constraint.
16813         * config/rs6000/constraints.md (wA): New.
16814         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
16815         (rs6000_init_hard_regno_mode_ok): Init wA constraint.
16816         * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
16817         * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
16819 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
16821         PR c++/80029
16822         * gimplify.c (is_oacc_declared): New function.
16823         (oacc_default_clause): Use it to set default flags for acc declared
16824         variables inside parallel regions.
16825         (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
16826         declared variables.
16827         (gimplify_oacc_declare): Gimplify the declare clauses.  Add the
16828         declare attribute to any decl as necessary.
16830 2017-03-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16832         PR target/80082
16833         * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
16834         (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
16835         * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
16836         (arm_arch_lpae): This.
16837         * config/arm/arm.c (arm_arch7ve): Rename into ...
16838         (arm_arch_lpae): This.  Define it in term of isa_bit_lpae.
16839         * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
16840         arm_arch_lpae.
16842 2017-03-22  Martin Liska  <mliska@suse.cz>
16844         PR target/79906
16845         * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
16846         error message instead of an ICE.
16848 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16850         * doc/extend.texi (6.11 Additional Floating Types): Revise.
16852 2017-03-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
16854         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
16855         comments.
16856         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
16857         comments.
16859 2017-03-21  Martin Sebor  <msebor@redhat.com>
16861         * doc/extend.texi: Use "cannot" instead of "can't."
16862         * doc/hostconfig.texi: Same.
16863         * doc/install.texi: Same.
16864         * doc/invoke.texi: Same.
16865         * doc/loop.texi: Same.
16866         * doc/md.texi: Same.
16867         * doc/objc.texi: Same.
16868         * doc/rtl.texi: Same.
16869         * doc/tm.texi: Same.
16870         * doc/tm.texi.in: Same.
16871         * doc/trouble.texi: Same.
16873 2017-03-21  Alexandre Oliva <aoliva@redhat.com>
16875         PR debug/63238
16876         * dwarf2out.c (struct checksum_attributes): Add at_alignment.
16877         (collect_checksum_attributes): Set it.
16878         (die_checksum_ordered): Use it.
16880 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16882         PR tree-optimization/79908
16883         * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
16884         change: For a VA_ARG whose LHS has been cast away, use
16885         force_gimple_operand to construct the side effects.
16887 2017-03-21  David Malcolm  <dmalcolm@redhat.com>
16889         PR translation/80001
16890         * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
16891         more amenable to translation.
16892         (oacc_loop_auto_partitions): Likewise.
16894 2017-03-21  Marek Polacek  <polacek@redhat.com>
16895             Martin Sebor  <msebor@redhat.com>
16897         PR tree-optimization/80109
16898         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
16899         on INTEGRAL_TYPE_P.
16901 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
16902             Segher Boessenkool  <segher@kernel.crashing.org>
16904         PR target/80125
16905         * combine.c (can_combine_p): Revert the 2017-03-20 change, only
16906         check reg_used_between_p between insn and one of succ or succ2
16907         depending on if succ is artificial insn not inserted into insn
16908         stream.
16910 2017-03-21  Martin Liska  <mliska@suse.cz>
16912         PR gcov-profile/80081
16913         * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
16914         * doc/gcc.texi: Include gcov-dump stuff.
16915         * doc/gcov-dump.texi: New file.
16917 2017-03-21  Toma Tabacu  <toma.tabacu@imgtec.com>
16919         PR rtl-optimization/79150
16920         * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
16921         conditional jump, if the jump is the last insn of the loop.
16923 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16924             Richard Biener  <rguenth@suse.de>
16926         PR tree-optimization/79908
16927         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
16928         been cast away, use force_gimple_operand to construct the side
16929         effects.
16931 2017-03-21  Martin Liska  <mliska@suse.cz>
16933         PR libfortran/79956
16934         * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
16935         to NULL.
16937 2017-03-21  Brad Spengler <spender@grsecurity.net>
16939         PR plugins/80094
16940         * plugin.c (htab_hash_plugin): New function.
16941         (add_new_plugin): Use it and adjust.
16942         (parse_plugin_arg_opt): Adjust.
16943         (init_one_plugin): Likewise.
16945 2017-03-21  Richard Biener  <rguenther@suse.de>
16947         PR tree-optimization/80032
16948         * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
16949         if set force the cleanup to happen unconditionally.
16950         (gimplify_target_expr): Push inserted clobbers with force_uncond
16951         to avoid them being removed by control-dependent DCE.
16953 2017-03-21  Richard Biener  <rguenther@suse.de>
16955         PR tree-optimization/80122
16956         * tree-inline.c (copy_bb): Do not expans va-arg packs or
16957         va_arg_pack_len when the inlined call stmt requires pack
16958         expansion itself.
16959         * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
16961 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
16963         PR sanitizer/78158
16964         * tsan.c (instrument_builtin_call): If the memory model argument
16965         is not a constant, assume it is valid.
16967         PR c/67338
16968         * fold-const.c (round_up_loc): Negate divisor in unsigned type to
16969         avoid UB.
16971 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
16973         PR rtl-optimization/79910
16974         * combine.c (can_combine_p): Do not allow combining an I0 or I1
16975         if its dest is used by an insn before I2 (other than the combined
16976         insns themselves, which are properly handled already).
16978 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
16980         Revert:
16981         2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
16983         * combine.c (record_used_regs): New static function.
16984         (try_combine): Handle situations where there is an additional
16985         instruction between I2 and I3 which needs to have a LOG_LINK
16986         updated.
16988         Revert:
16989         2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
16991         * combine.c (try_combine): Delete redundant i1 test.  Call
16992         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
16994 2017-03-20  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
16996         PR target/80083
16997         * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
16998         alternatives 13/14.
17000 2017-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17002         PR tree-optimization/80054
17003         * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
17004         the optimization if a PHI or any of its arguments is not dominated
17005         by the candidate's basis.  Use gphi* rather than gimple* as
17006         appropriate.
17007         (replace_profitable_candidates): Clean up a gimple* variable that
17008         should be a gphi* variable.
17010 2017-03-20  Martin Sebor  <msebor@redhat.com>
17012         PR c++/52477
17013         * doc/extend.texi (attribute constructor): Document present limitation.
17015 2017-03-20  Kelvin Nilsen  <kelvin@gcc.gnu.org>
17017         PR target/79963
17018         * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
17019         __POWER9_VECTOR__ #ifdef control, change template definition to
17020         use Power9-specific built-in function.
17021         (vec_any_eq): Likewise.
17022         * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
17023         to control outcomes from this test.
17024         (vector_ae_<mode>p): For VEC_F modes, likewise.
17026 2017-03-20  Ian Lance Taylor  <iant@google.com>
17028         * config/i386/i386.c (ix86_function_regparm): Save an extra
17029         register for -fsplit-stack with DECL_STATIC_CHAIN.
17031 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
17033         PR target/79912
17034         * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
17035         (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
17037 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
17039         * config/riscv/riscv.c (riscv_print_operand): Use "fence
17040         iorw,ow".
17041         * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
17042         iorw,iorw".
17044 2017-03-20  Marek Polacek  <polacek@redhat.com>
17046         PR sanitizer/80063
17047         * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
17049 2017-03-20  Richard Biener  <rguenther@suse.de>
17051         PR tree-optimization/80113
17052         * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
17053         allocate extra SSA name for PHI def.
17054         (add_close_phis_to_outer_loops): Likewise.
17055         (add_close_phis_to_merge_points): Likewise.
17056         (copy_loop_close_phi_args): Likewise.
17057         (copy_cond_phi_nodes): Likewise.
17059 2017-03-20  Martin Liska  <mliska@suse.cz>
17061         PR middle-end/79753
17062         * tree-chkp.c (chkp_build_returned_bound): Do not build
17063         returned bounds for a LHS that's not a BOUNDED_P type.
17065 2017-03-20  Martin Liska  <mliska@suse.cz>
17067         PR target/79769
17068         PR target/79770
17069         * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
17070         COMPLEX_CST and VECTOR_CST.
17072 2017-03-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17074         PR target/78857
17075         * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
17076         target operand.  A new splitter adds the clobber statement in case
17077         the target operand is dead anyway.
17079 2017-03-19  Gerald Pfeifer  <gerald@pfeifer.com>
17081         * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
17082         to age-old versions of binutils and glibc.
17084 2017-03-18  Segher Boessenkool  <segher@kernel.crashing.org>
17086         * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
17088 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
17090         * doc/contrib.texi (Contributors): Add Segher Boessenkool.
17092 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
17094         * doc/install.texi (Specific) <arm-*-eabi>: Remove old
17095         requirement for binutils 2.13.
17097 2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
17099         * combine.c (try_combine): Delete redundant i1 test.  Call
17100         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
17102 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com
17104         * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
17105         riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
17106         contents.
17107         <riscv64-*-elf>: Re-arrange section
17108         <riscv32-*-elf>: Add a note about requiring binutils 2.28.
17109         <riscv32-*-linux>: Likewise.
17110         <riscv64-*-elf>: Likewise
17111         <riscv64-*-linux>: Likewise.
17113 2017-03-17  Richard Earnshaw  <rearnsha@arm.com>
17115         PR target/80052
17116         * aarch64.opt(verbose-cost-dump): Fix typo.
17118 2017-03-17  Pat Haugen  <pthaugen@us.ibm.com>
17120         PR target/79951
17121         * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
17122         for VECTOR_UNIT_VSX_P (<MODE>mode) too.
17124 2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
17126         * reload.c (find_reloads): When reloading a nonoffsettable address,
17127         use RELOAD_OTHER for it and its address reloads.
17129         PR rtl-optimization/79910
17130         * combine.c (record_used_regs): New static function.
17131         (try_combine): Handle situations where there is an additional
17132         instruction between I2 and I3 which needs to have a LOG_LINK
17133         updated.
17135 2017-03-17  Jeff Law  <law@redhat.com>
17137         PR tree-optimization/71437
17138         * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
17139         conditional in the hash table first.
17140         (vrp_dom_walker::before_dom_children): Extract condition from
17141         ASSERT_EXPR.  Record condition, its inverion and any implied
17142         conditions as well.
17144 2017-03-17  Marek Polacek  <polacek@redhat.com>
17145             Markus Trippelsdorf  <markus@trippelsdorf.de>
17147         PR tree-optimization/80079
17148         * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
17149         m_stores_head.
17151 2017-03-17  Richard Biener  <rguenther@suse.de>
17153         PR middle-end/80075
17154         * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
17155         Properly verify the LHS before the RHS possibly claims to be
17156         handled.
17157         (stmt_could_throw_p): Hande gimple conds fully here.  Clobbers
17158         do not throw.
17160 2017-03-17  Martin Jambor  <mjambor@suse.cz>
17162         * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
17163         (List of -O2 options): Likewise.
17164         (-fipa-bit-cp): Replace "ipa" with "interprocedural."
17165         (-fipa-vrp) New.
17167 2017-03-17  Tom de Vries  <tom@codesourcery.com>
17169         * gcov-dump.c (print_usage): Print bug_report_url.
17171 2017-03-17  Richard Biener  <rguenther@suse.de>
17173         PR middle-end/80050
17174         * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
17175         (parser::peek): Likewise.
17177 2017-03-17  Richard Biener  <rguenther@suse.de>
17179         PR tree-optimization/80048
17180         * sese.c (free_sese_info): Properly release rename_map and
17181         copied_bb_map elements.
17183 2017-03-16  Alexandre Oliva <aoliva@redhat.com>
17185         * gimple-ssa-store-merging.c (struct imm_store_chain_info):
17186         Add linked-list forward and backlinks.  Insert on
17187         construction, remove on destruction.
17188         (class pass_store_merging): Add m_stores_head field.
17189         (pass_store_merging::terminate_and_process_all_chains):
17190         Iterate over m_stores_head list.
17191         (pass_store_merging::terminate_all_aliasing_chains):
17192         Likewise.
17193         (pass_store_merging::execute): Check for debug stmts first.
17194         Push new chains onto the m_stores_head stack.
17196 2017-03-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
17198         PR target/71294
17199         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
17200         SPLAT operation on ISA 2.07 64-bit systems that have direct move,
17201         but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
17203 2017-03-16  Jeff Law  <law@redhat.com>
17205         PR tree-optimization/71437
17206         * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
17207         member function.  Implementation moved into after_dom_children
17208         member function and into the threader's thread_outgoing_edges
17209         function.
17210         (dom_opt_dom_walker::after_dom_children): Simplify by moving
17211         some code into new thread_outgoing_edges.
17212         * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
17213         definition.  Simplify marker handling (do it here).   Assume we always
17214         have the available expression and the const/copies tables.
17215         (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
17216         and tree-vrp.c
17217         * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
17218         * tree-vrp.c (equiv_stack): No longer file scoped.
17219         (vrp_dom_walker): New class.
17220         (vrp_dom_walker::before_dom_children): New member function.
17221         (vrp_dom_walker::after_dom_children): Likewise.
17222         (identify_jump_threads):  Setup domwalker.  Use it rather than
17223         walking edges in a random order by hand.  Simplify setup/finalization.
17224         (finalize_jump_threads): Remove.
17225         (vrp_finalize): Do not call identify_jump_threads here.
17226         (execute_vrp): Do it here instead and call thread_through_all_blocks
17227         here too.
17229         PR tree-optimization/71437
17230         * tree-ssa-dom.c (pfn_simplify): Add basic_block argument.  All
17231         callers changed.
17232         (simplify_stmt_for_jump_threading): Add basic_block argument.  All
17233         callers changed.
17234         (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
17235         (dom_opt_dom_walker::thread_across_edge): Remove
17236         handle_dominating_asserts argument.  All callers changed.
17237         (record_temporary_equivalences_from_stmts_at_dest): Corresponding
17238         changes.  Remove calls to lhs_of_dominating_assert.  Other
17239         uses of handle_dominating_asserts turn into unconditional code
17240         (simplify_control_stmt_condition_1): Likewise.
17241         (simplify_control_stmt_condition): Likewise.
17242         (thread_through_normal_block, thread_across_edge): Likewise.
17243         * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
17244         * tree-vrp.c (lhs_of_dominating_assert): Move here.  Return original
17245         object if it is not an SSA_NAME.
17246         (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
17247         before calling into the VRP specific simplifiers.
17248         (identify_jump_threads): Remove handle_dominating_asserts
17249         argument.
17251 2017-03-16  Jakub Jelinek  <jakub@redhat.com>
17253         PR fortran/79886
17254         * tree-diagnostic.c (default_tree_printer): No longer static.
17255         * tree-diagnostic.h (default_tree_printer): New prototype.
17257 2017-03-16  Tamar Christina  <tamar.christina@arm.com>
17259         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
17260         Change ins into fmov.
17262 2017-03-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17264         * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
17265         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
17266         Use h_con constraint for operand 1.
17267         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
17268         (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
17270 2017-03-15  Jeff Law  <law@redhat.com>
17272         PR tree-optimization/71437
17273         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
17274         (record_temporary_equivalences): Use it.
17276         PR tree-optimization/71437
17277         * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
17278         tree-ssa-scopedtables.
17279         (lookup_avail_expr, build_and_record_new_cond): Likewise.
17280         (record_conditions, record_cond, vuse_eq): Likewise.
17281         (record_edge_info): Adjust to API tweak of record_conditions.
17282         (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
17283         (record_temporary_equivalences, optimize_stmt): Likewise.
17284         (eliminate_redundant_computations): Likewise.
17285         (record_equivalences_from_stmt): Likewise.
17286         * tree-ssa-scopedtables.c: Include options.h and params.h.
17287         (vuse_eq): New function, moved from tree-ssa-dom.c
17288         (build_and_record_new_cond): Likewise.
17289         (record_conditions): Likewise.  Accept vector of conditions rather
17290         than edge_equivalence structure for first argument.
17291         for the first argument.
17292         (avail_exprs_stack::lookup_avail_expr): New member function, moved
17293         from tree-ssa-dom.c.
17294         (avail_exprs_stack::record_cond): Likewise.
17295         * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
17296         from tree-ssa-dom.c.
17297         (avail_exprs_stack): Add new member functions lookup_avail_expr
17298         and record_cond.
17299         (record_conditions): Declare.
17301 2017-03-15  Vladimir Makarov  <vmakarov@redhat.com>
17303         PR target/80017
17304         * lra-constraints.c (process_alt_operands): Increase reject for
17305         reloading an input/output operand.
17307 2017-03-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
17309         PR target/79038
17310         * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
17311         insns to convert from signed/unsigned char/short to IEEE 128-bit
17312         floating point.
17313         (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
17315 2017-03-15  Uros Bizjak  <ubizjak@gmail.com>
17317         PR target/80019
17318         * config/i386/i386.c (ix86_vector_duplicate_value): Create
17319         subreg of inner mode for values already in registers.
17321 2017-03-15  Bernd Schmidt  <bschmidt@redhat.com>
17323         * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
17324         iteration reg is used after the loop.
17326 2017-03-14  Martin Sebor  <msebor@redhat.com>
17328         PR tree-optimization/79800
17329         * gimple-ssa-sprintf.c (format_floating: Add argument.  Handle
17330         precision in negative-positive range.
17331         (format_floating): Call non-const overload with adjusted precision.
17333 2017-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
17335         PR target/79947
17336         * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
17337         -mpowerpc-gfxopt.
17339 2017-03-14  Martin Sebor  <msebor@redhat.com>
17341         PR middle-end/80020
17342         * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
17343         * builtins.def (aligned_alloc): Use it.
17345         PR c/79936
17346         * Makefile.in (GTFILES): Add calls.c.
17347         * calls.c: Include "gt-calls.h".
17349 2017-03-14  Bernd Schmidt  <bschmidt@redhat.com>
17351         PR rtl-optimization/79728
17352         * regs.h (struct target_regs): New field
17353         x_contains_allocatable_regs_of_mode.
17354         (contains_allocatable_regs_of_mode): New macro.
17355         * reginfo.c (init_reg_sets_1): Initialize it, and change
17356         contains_reg_of_mode so it includes global regs as well.
17357         * reload.c (push_reload): Use contains_allocatable_regs_of_mode
17358         rather than contains_regs_of_mode.
17360 2017-03-14  Martin Liska  <mliska@suse.cz>
17362         * doc/invoke.texi: Document options that can't be combined with
17363         -fcheck-pointer-bounds.
17365 2017-03-14  Martin Liska  <mliska@suse.cz>
17367         PR middle-end/79831
17368         * doc/invoke.texi (-Wchkp): Document the option.
17370 2017-03-14  Martin Liska  <mliska@suse.cz>
17372         * Makefile.in: Install gcov-dump.
17374 2017-03-14  Martin Liska  <mliska@suse.cz>
17376         * multiple_target.c (expand_target_clones): Bail out for
17377         an invalid attribute.
17379 2017-03-14  Richard Biener  <rguenther@suse.de>
17381         * alias.c (struct alias_set_entry): Pack properly.
17382         * cfgloop.h (struct loop): Likewise.
17383         * cse.c (struct set): Likewise.
17384         * ipa-utils.c (struct searchc_env): Likewise.
17385         * loop-invariant.c (struct invariant): Likewise.
17386         * lra-remat.c (struct cand): Likewise.
17387         * recog.c (struct change_t): Likewise.
17388         * rtl.h (struct address_info): Likewise.
17389         * symbol-summary.h (function_summary): Likewise.
17390         * tree-loop-distribution.c (struct partition): Likewise.
17391         * tree-object-size.c (struct object_size_info): Likewise.
17392         * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
17393         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
17394         * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
17395         * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
17396         * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
17397         * tree-vectorizer.h (struct _loop_vec_info): Likewise.
17398         (struct _stmt_vec_info): Likewise.
17400 2017-03-14  Martin Liska  <mliska@suse.cz>
17402         PR target/79892
17403         * multiple_target.c (create_dispatcher_calls): Check that
17404         a target can create a function dispatcher.
17406 2017-03-14  Martin Liska  <mliska@suse.cz>
17408         PR lto/66295
17409         * multiple_target.c (expand_target_clones): Drop local.local
17410         flag for default implementation.
17412 2017-03-14  Richard Biener  <rguenther@suse.de>
17414         PR tree-optimization/80030
17415         * tree-vect-stmts.c (vectorizable_store): Plug memleak.
17417 2017-03-13  Kito Cheng  <kito.cheng@gmail.com>
17419         * config/riscv/riscv.c (riscv_emit_float_compare>: Use
17420         gcc_fallthrough() instead of __attribute__((fallthrough));
17422 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
17424         * doc/gcc.texi: Remove "up" link to (DIR).
17425         * doc/gccint.texi: Ditto.
17427 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
17429         * doc/install.texi (Specific) <avr>: Remove reference to
17430         binutils 2.13.
17432 2017-03-13  Jeff Law  <law@redhat.com>
17434         * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
17435         attribute rather than comments.
17437         * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
17438         match_scratch operand is highest.
17440 2017-03-13  Martin Liska  <mliska@suse.cz>
17442         PR middle-end/78339
17443         * ipa-pure-const.c (warn_function_noreturn): If the declarations
17444         is a CHKP clone, use original declaration.
17446 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
17448         * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
17449         (arc_conditional_register_usage): Use a different allocation order
17450         when optimizing for size.
17451         * common/config/arc/arc-common.c (arc_option_optimization_table):
17452         Section anchors default on when optimizing for size.
17454 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
17456         * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
17458 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
17460         * config/arc/arc.c (arc_output_addsi): Emit code density adds.
17461         * config/arc/arc.md (cpu_facility): Add cd variant.
17462         (*movqi_insn): Add code density variant.
17463         (*movhi_insn): Likewise.
17464         (*movqi_insn): Likewise.
17465         (*addsi3_mixed): Likewise.
17466         (subsi3_insn): Likewise.
17468 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
17470         * config/arc/arc.md (movsi_cond_exec): Update constraint.
17472 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
17474         * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
17475         expressions with MINUS and UNARY ops.
17477 2017-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17479         PR target/79911
17480         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
17481         Rename to...
17482         (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
17483         between vec_select and vector argument.
17484         (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
17485         (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
17486         (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
17487         (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
17488         (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
17489         (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
17491 2017-03-13  Richard Biener  <rguenther@suse.de>
17493         PR other/79991
17494         * params.def (vect-max-peeling-for-alignment): Fix typo.
17496 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
17498         * doc/install.texi (Specific) <mips-*-*>: Remove description of
17499         issue that only occurred with binutils below 2.18.
17501 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
17503         * doc/install.texi (Specific) <cris-axis-elf>: No longer
17504         refer to binutils 2.11/2.12 minimum.
17506 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
17508         * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
17509         ftp.kernel.org and simplify binutils requirement.
17511 2017-03-11  Gerald Pfeifer  <gerald@pfeifer.com>
17513         * doc/invoke.texi (Warning Options): Fix spelling of link-time
17514         optimization.
17515         (Optimize Options): Ditto.  Also remove redundancy.
17517 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
17519         PR translation/79848
17520         * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
17521         "%qs".
17522         * ipa-pure-const.c (suggest_attribute): Likewise.  Convert _
17523         to G_ to avoid double translation.
17525 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
17527         PR translation/79923
17528         * auto-profile.c (get_combined_location): Convert leading
17529         character of diagnostics to lower case and remove trailing period.
17530         (read_profile): Likewise for various diagnostics.
17531         * config/arm/arm.c (arm_option_override): Remove trailing period
17532         from various diagnostics.
17533         * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
17534         (msp430_expand_delay_cycles): Likewise.
17536 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
17538         PR target/79925
17539         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
17540         full command-line argument, rather than just "str".
17541         (aarch64_validate_march): Likewise.
17542         (aarch64_validate_mtune): Likewise.
17544 2017-03-10  Bernd Schmidt  <bschmidt@redhat.com>
17546         PR rtl-optimization/78911
17547         * lra-assigns.c (must_not_spill_p): New function.
17548         (spill_for): Use it.
17550 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
17552         PR tree-optimization/79981
17553         * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
17554         ATOMIC_COMPARE_EXCHANGE ifn result.
17555         (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
17556         IFN_ATOMIC_COMPARE_EXCHANGE.
17558 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
17560         PR driver/79875
17561         * opts.c (parse_sanitizer_options): Add missing question mark to
17562         "did you mean" message.
17564 2017-03-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17566         * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
17567         built-in.
17568         (VMULEUH_UNS): Likewise.
17569         (VMULOUB_UNS): Likewise.
17570         (VMULOUH_UNS): Likewise.
17571         * config/rs6000/rs6000.c (builtin_function_type): Remove
17572         references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
17574 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
17576         PR bootstrap/79952
17577         * read-rtl-function.c (function_reader::read_rtx_operand): Update
17578         x with result of extra_parsing_for_operand_code_0.
17579         (function_reader::extra_parsing_for_operand_code_0): Convert
17580         return type from void to rtx, returning x.  When reading
17581         SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
17582         larger size containing struct block_symbol.
17584 2017-03-10  Segher Boessenkool  <segher@kernel.crashing.org>
17586         * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
17587         -mfloat128-hardware without -m64.
17589 2017-03-10  Will Schmidt <will_schmidt@vnet.ibm.com>
17591         PR target/79941
17592         * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
17593         entries to the case statement that marks unsigned arguments to
17594         overloaded functions.
17596 2017-03-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
17598         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
17599         two typographic errors in the handling of TARGET_UPPER_REGS_DI.
17601 2017-03-10  Pat Haugen  <pthaugen@us.ibm.com>
17603         PR target/79907
17604         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
17605         TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
17607 2017-03-10  Martin Liska  <mliska@suse.cz>
17609         PR target/65705
17610         PR target/69804
17611         * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
17612         * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
17613         FIELD != NULL.
17615 2017-03-10  Olivier Hainque  <hainque@adacore.com>
17617         * tree-switch-conversion (array_value_type): Start by resetting
17618         candidate type to it's main variant.
17620 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
17622         PR rtl-optimization/79909
17623         * combine.c (try_combine): Use simplify_replace_rtx on individual
17624         CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
17625         of the whole CALL_INSN_FUNCTION_USAGE.
17627         PR tree-optimization/79972
17628         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
17629         get_range_info on SSA_NAMEs.  Formatting fixes.
17631 2017-03-10  Richard Biener  <rguenther@suse.de>
17632             Jakub Jelinek  <jakub@redhat.com>
17634         PR tree-optimization/77975
17635         * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
17636         edge to be constant.
17637         (get_val_for): For constant x return it.  Formatting fix.
17638         (loop_niter_by_eval): Avoid pointless looping if the next iteration
17639         would use the same bases as the current one.
17641 2017-03-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17643         * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
17644         instead of vec_select for V1TImode.
17645         * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
17646         longer needed.
17647         (VSX_LE_128): Add V1TI to this mode iterator.
17648         (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
17649         (*vsx_le_perm_store_<mode>): Likewise.
17650         (pre-reload splitter for VSX stores): Likewise.
17651         (post-reload splitter for VSX stores): Likewise.
17652         (*vsx_xxpermdi2_le_<mode>): Likewise.
17653         (*vsx_lxvd2x2_le_<mode>): Likewise.
17654         (*vsx_stxvd2x2_le_<mode>): Likewise.
17656 2017-03-09  Michael Eager  <eager@eagercon.com>
17658         Correct failures with --enable-checking=yes,rtl.
17660         * config/microblaze/microblaze.c (microblaze_expand_shift):
17661         Replace GET_CODE test with CONST_INT_P and INTVAL test with
17662         test for const0_rtx.
17663         * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
17664         lshrsi3_byone): Replace INTVAL with test for const1_rtx.
17666 2017-03-09  Richard Biener  <rguenther@suse.de>
17668         PR tree-optimization/79977
17669         * graphite-scop-detection.c (scop_detection::merge_sese):
17670         Handle the case of extra exits to blocks dominating the entry.
17672 2017-03-09  Toma Tabacu  <toma.tabacu@imgtec.com>
17674         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
17675         Document rdynamic.
17677 2017-03-09  Vladimir Makarov  <vmakarov@redhat.com>
17679         PR rtl-optimization/79949
17680         * lra-constraints.c (process_alt_operands): Check memory when
17681         trying to predict a cycle.  Print about the overall increase.
17683 2017-03-09  Richard Biener  <rguenther@suse.de>
17685         PR middle-end/79971
17686         * gimple-expr.c (useless_type_conversion_p): Preserve
17687         TYPE_SATURATING for fixed-point types.
17689 2017-03-09  Richard Biener  <rguenther@suse.de>
17691         PR ipa/79970
17692         * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
17693         alignment of BLKmode params.
17695 2017-03-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17697         PR target/79913
17698         * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
17699         (VALL_NO_V2Q): Likewise.
17700         (VDQF_DF): Delete.
17701         * config/aarch64/aarch64-simd.md
17702         (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
17703         iterator.
17704         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
17705         VALL_NO_V2Q mode iterator.
17706         (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
17708 2017-03-09  Martin Liska  <mliska@suse.cz>
17710         PR tree-optimization/79631
17711         * tree-chkp-opt.c (chkp_is_constant_addr): Call
17712         tree_int_cst_sign_bit just for INTEGER constants.
17714 2017-03-09  Martin Liska  <mliska@suse.cz>
17716         PR target/65705
17717         PR target/69804
17718         * toplev.c (process_options): Disable -fcheck-pointer-bounds with
17719         sanitizers.
17721 2017-03-09  Marek Polacek  <polacek@redhat.com>
17723         PR c++/79672
17724         * tree.c (inchash::add_expr): Handle TREE_VEC.
17726 2017-03-09  Martin Liska  <mliska@suse.cz>
17728         PR ipa/79764
17729         (chkp_narrow_size_and_offset): New function.
17730         (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
17731         (void chkp_parse_bit_field_ref): New function.
17732         (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
17733         (chkp_process_stmt): Use chkp_parse_bit_field_ref.
17735 2017-03-09  Martin Liska  <mliska@suse.cz>
17737         PR ipa/79761
17738         * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
17739         (chkp_find_bounds_1): Remove gcc_unreachable.
17741 2017-03-09  Jakub Jelinek  <jakub@redhat.com>
17743         PR sanitizer/79944
17744         * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
17745         BUILT_IN_SYNC*, determine the access type from the size suffix and
17746         always build a MEM_REF with that type.  Handle forgotten
17747         BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
17749         PR target/79932
17750         * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
17751         _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
17752         _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
17753         _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
17754         _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
17755         _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
17756         _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
17757         _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
17758         _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
17759         _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
17760         _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
17761         _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
17762         _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
17763         _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
17764         _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
17765         _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
17766         _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
17767         _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
17768         _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
17769         _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
17770         _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
17771         _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
17772         _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
17773         _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
17774         _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
17775         _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
17776         _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
17777         _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
17778         _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
17779         _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
17780         definitions outside of __OPTIMIZE__ guarded section.
17782         PR target/79932
17783         * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
17784         _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
17785         _mm512_packus_epi32, _mm512_maskz_packus_epi32,
17786         _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
17787         guarded section.
17789 2017-03-09  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17791         * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
17792         ("vfenez<mode>"): Add missing constraints.
17794 2017-03-08  Martin Sebor  <msebor@redhat.com>
17796         PR target/79928
17797         * config/nds32/nds32.c (nds32_option_override):
17798         Fix misspelled diagnostic.
17800 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
17802         PR c/79940
17803         * gimplify.c (gimplify_omp_for): Replace index var in outer
17804         taskloop statement with an artificial variable and add
17805         OMP_CLAUSE_PRIVATE clause for it.
17807 2017-03-08  Richard Biener  <rguenther@suse.de>
17809         PR tree-optimization/79955
17810         * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
17811         for accesses that are completely outside of the variable.
17813 2017-03-08  Andrew Haley  <aph@redhat.com>
17815         PR tree-optimization/79943
17816         * tree-ssa-loop-split.c (compute_new_first_bound): When
17817         calculating the new upper bound, (END-BEG) should be added, not
17818         subtracted.
17820 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
17822         * config/avr/avr.md (setmemhi): Make sure match_dup
17823         operand number comes before match_scratch.
17825 2017-03-08  Richard Biener  <rguenther@suse.de>
17827         PR tree-optimization/79920
17828         * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
17829         with ncopies == 1 to ...
17830         (vect_transform_slp_perm_load): ... here.  Properly compute
17831         all element loads by iterating VF times over the group.  Do
17832         not handle ncopies (computed in a broken way) in
17833         vect_create_mask_and_perm.
17835 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
17837         PR sanitizer/79904
17838         * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
17839         is a uniform vector, use uniform_vector_p return value instead of
17840         building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
17842 2017-03-07  Marek Polacek  <polacek@redhat.com>
17844         PR middle-end/79809
17845         * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
17846         (alloca_call_type): Likewise.
17848 2017-03-07  Martin Liska  <mliska@suse.cz>
17850         * gcov.c (process_args): Put comment to correct location.
17852 2017-03-07  Martin Liska  <mliska@suse.cz>
17854         PR middle-end/68270
17855         * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
17856         Use array_at_struct_end_p instead of DECL_CHAIN (field).
17857         (chkp_narrow_bounds_for_field): Likewise.
17858         (chkp_parse_array_and_component_ref): Pass one more argument to
17859         call.
17861 2017-03-07  Richard Biener  <rguenther@suse.de>
17863         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
17864         preheaders.
17866 2017-03-07  Segher Boessenkool  <segher@kernel.crashing.org>
17868         * config/i386/i386.c (ix86_local_alignment): Align most aggregates
17869         of 16 bytes and more to 16 bytes, not those of 16 bits and more.
17871 2017-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17873         PR c/79855
17874         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
17875         to end of description.
17876         (PARAM_MAX_STORES_TO_MERGE): Likewise.
17878 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
17880         PR rtl-optimization/79901
17881         * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
17882         ...
17883         (*avx512f_<code><mode>3<mask_name>): ... this.
17884         (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
17885         iterator instead of VI8_AVX2_AVX512BW.
17887         PR rtl-optimization/79901
17888         * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
17889         min/max expander, expand it using expand_vec_cond_expr.
17891         PR sanitizer/79897
17892         * ubsan.c (ubsan_encode_value): Call mark_addressable on the
17893         temporary.
17895 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
17897         PR c++/79821
17898         * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
17899         to void * for PCH reasons.
17900         * dwarf2out.c (output_loc_operands, output_die): Cast
17901         v.val_vec.array to unsigned char *.
17903 2017-03-06  John David Anglin  <danglin@gcc.gnu.org>
17905         PR target/77850
17906         * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
17907         vector types.
17909 2017-03-06  Vladimir Makarov  <vmakarov@redhat.com>
17911         PR rtl-optimization/79571
17912         * lra-constraints.c (process_alt_operands): Calculate static
17913         reject and subtract it from overall when only addresses will be
17914         reloaded.
17916 2017-03-06  Julia Koval  <julia.koval@intel.com>
17918         PR target/79793
17919         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
17920         incoming stack boundary to 128 for 64-bit targets.
17922 2017-03-06  Richard Biener  <rguenther@suse.de>
17924         PR tree-optimization/79894
17925         * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
17926         to NULL after folding it.
17928 2017-03-06  Richard Biener  <rguenther@suse.de>
17930         PR tree-optimization/79824
17931         * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
17932         check disabling peeling for gaps.
17934 2017-03-06  Toma Tabacu  <toma.tabacu@imgtec.com>
17936         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
17937         attributes): Document gettimeofday.
17939 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
17941         * config/s390/s390.c (s390_option_override_internal): Set
17942         PARAM_MIN_VECT_LOOP_BOUND
17944 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
17946         * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
17947         * config/s390/s390.md: Likewise.
17949 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
17951         PR target/79812
17952         * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
17953         (<avx2_avx512>_perm<mode>): Rename to ...
17954         (avx2_perm<mode>): ... this.  Use VI8F_256 iterator instead
17955         of VI8F_256_512.
17956         (<avx512>_perm<mode>_mask): Rename to ...
17957         (avx512vl_perm<mode>_mask): ... this.  Use VI8F_256 iterator instead
17958         of VI8F_256_512.
17959         (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
17960         (avx2_perm<mode>_1<mask_name): ... this.  Use VI8F_256 iterator
17961         instead of VI8F_256_512.
17962         (avx512f_perm<mode>): New define_expand.
17963         (avx512f_perm<mode>_mask): Likewise.
17964         (avx512f_perm<mode>_1<mask_name>): New define_insn.
17965         (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
17967 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
17969         * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
17970         msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
17971         if_then_else.
17972         (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
17974 2017-03-06  Martin Liska  <mliska@suse.cz>
17976         PR sanitize/79783
17977         * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
17978         when having a SSA NAME w/o VAR_DECL assigned to it.
17980 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
17982         * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
17983         msa_dpsub_<su>_d): Fix MODE for vec_select.
17985 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
17987         * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
17988         argument.
17989         * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
17991 2017-03-06  Richard Biener  <rguenther@suse.de>
17993         * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
17994         * plugin.c (register_plugin_info): Likewise.
17995         * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
17997 2017-03-05  Jakub Jelinek  <jakub@redhat.com>
17999         * config/i386/sse.md (sse_storehps, sse_storelps,
18000         avx_<castmode><avxsizesuffix>_<castmode>,
18001         avx512f_<castmode><avxsizesuffix>_<castmode>,
18002         avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
18003         in condition that at least one operand is not a MEM.
18005 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
18007         PR middle-end/79805
18008         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
18009         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
18010         ECF_NOTHROW.
18011         * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
18012         gimple_call_nothrow_p flag based on whether original builtin can throw.
18013         If it can, emit following stmts on the fallthrough edge.
18014         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
18015         don't create new bb if inserting just debug stmts on the edge, try to
18016         insert them on the fallthru bb or just reset debug stmts.
18018 2017-03-03  Segher Boesssenkool  <segher@kernel.crashing.org>
18020         PR target/43763
18021         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
18022         restore recog_data (including the operand rtxes inside it) around
18023         the call to get_insn_template.
18025 2017-03-03  Martin Sebor  <msebor@redhat.com>
18027         PR tree-optimization/79699
18028         * context.c (context::~context): Free MPFR caches to avoid
18029         a memory leak on program exit.
18031 2017-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18033         * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
18034         Use wide_int::ulow () instead of .elt (0).
18036 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
18038         * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
18039         (*pushxf): Limit oF constraint to 32bit targets and add oC
18040         constraint for 64bit targets.
18041         (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
18042         (*pushdf): Change rmF constraint to rmC.
18044 2017-03-03  Martin Liska  <mliska@suse.cz>
18046         * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
18047         Remove unused variable.
18049 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
18051         PR target/79807
18052         * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
18053         is a memory operand, increase num_memory.
18054         (ix86_expand_args_builtin): Likewise.
18056 2017-03-03  Jan Hubicka  <jh@suse.cz>
18058         PR lto/79760
18059         * ipa-devirt.c (maybe_record_node): Properly handle
18060         __cxa_pure_virtual visibility.
18062 2017-03-03  Martin Liska  <mliska@suse.cz>
18064         PR tree-optimization/79803
18065         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
18066         assert.
18067         (pass_loop_prefetch::execute): Disabled optimization if an
18068         assumption about L1 cache size is not met.
18070 2017-03-03  Martin Liska  <mliska@suse.cz>
18072         PR rtl-optimization/79574
18073         * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
18074         (hash_scan_set): Likewise.
18075         (dump_hash_table): Likewise.
18076         (hoist_code): Likewise.
18078 2017-03-03  Richard Biener  <rguenther@suse.de>
18080         * fixed-value.c (fixed_from_string): Restore use of elt (1)
18081         in place of uhigh ().
18082         (fixed_convert_from_real): Likewise.
18084 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
18086         PR target/79514
18087         * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
18089 2017-03-03  Richard Biener  <rguenther@suse.de>
18091         PR middle-end/79818
18092         * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
18093         TYPE_OVERFLOW_UNDEFINED check.
18095 2017-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18097         * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
18098         numbers.
18099         (vector_ae_<mode>_p): Likewise.
18100         (vector_nez_<mode>_p): Likewise.
18101         (vector_ne_v2di_p): Likewise.
18102         (vector_ae_v2di_p): Likewise.
18103         (vector_ne_<mode>_p): Likewise.
18104         * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
18105         numbers.
18106         (vsx_tsqrt<mode>2_fe): Likewise.
18108 2017-03-02  Uros Bizjak  <ubizjak@gmail.com>
18110         PR target/79514
18111         * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
18113 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
18115         PR rtl-optimization/79780
18116         * cprop.c (one_cprop_pass): When second and further conditional trap
18117         in a single basic block is turned into an unconditional trap, turn it
18118         into a deleted note to avoid RTL verification failures.
18120 2017-03-02  Richard Biener  <rguenther@suse.de>
18122         * fold-const.c (const_binop): Use ulow () instead of elt (0).
18124 2017-03-02  Richard Biener  <rguenther@suse.de>
18126         PR tree-optimization/79345
18127         PR c++/42000
18128         * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
18129         param and abort the walk, returning -1 if it is hit.
18130         (walk_aliased_vdefs): Take a limit param and pass it on.
18131         * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
18132         defaulting to 0 and return a signed int.
18133         * tree-ssa-uninit.c (struct check_defs_data): New struct.
18134         (check_defs): New helper.
18135         (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
18136         about uninitialized memory.
18137         * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
18138         bogus uninitialized warning.
18139         (fixed_convert_from_real): Likewise.
18141 2017-03-02  Bin Cheng  <bin.cheng@arm.com>
18143         PR tree-optimization/66768
18144         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
18145         iv_use if base object can't be determined.
18147 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
18149         PR tree-optimization/79345
18150         * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
18151         * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
18152         (get_pattern_stats): Initialize it.
18153         * genemit.c (gen_expand): Verify match_scratch numbers come after
18154         match_operand/match_dup numbers.
18155         * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
18156         match_scratch numbers.
18157         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
18158         Likewise.
18159         * config/s390/s390.md (trunctdsd2): Likewise.
18161 2017-03-02  Richard Biener  <rguenther@suse.de>
18163         * wide-int.h (wide_int_storage::operator=): Implement in terms
18164         of wi::copy.
18166 2017-03-02  Richard Biener  <rguenther@suse.de>
18168         PR tree-optimization/79777
18169         * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
18170         the to insert expression to sth existing.
18172 2017-03-01  Martin Sebor  <msebor@redhat.com>
18174         PR middle-end/79692
18175         * gimple-ssa-sprintf.c
18176         (directive::known_width_and_precision): New function.
18177         (format_integer): Use it.
18178         (get_mpfr_format_length): Consider the full range of precision
18179         when computing %g output with the # flag.  Set the likely byte
18180         count to 3 rather than 1 when precision is indeterminate.
18181         (format_floating): Correct the lower bound of precision.
18183 2017-03-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18185         * doc/invoke.texi: Document default code model for 64-bit Linux.
18187 2017-03-01  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
18189         PR target/79752
18190         * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
18191         udiv rather than div since input pattern is unsigned.
18193 2017-03-01  Uros Bizjak  <ubizjak@gmail.com>
18195         * config/i386/i386.c (print_reg): Warn for values of
18196         unsupported size in integer register.
18198 2017-03-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
18200         PR target/79439
18201         * config/rs6000/predicates.md (current_file_function_operand): Do
18202         not allow self calls to be local if the function is replaceable.
18204 2017-03-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
18206         PR target/79395
18207         * config/rs6000/altivec.h (vec_ctz and others): Change the
18208         preprocessor macro that controls conditional compilation from
18209         _ARCH_PWR9 to __POWER9_VECTOR__.
18210         (vec_all_ne): Change parameterization of __altivec_scalar_pred
18211         macro expansion under preprocessor #ifdef __POWER9_VECTOR__
18212         control (instead of _ARCH_PWR9 control) so that template
18213         definition uses power9-specific function.
18214         (vec_any_eq): Likewise.
18215         (vec_all_ne): Change macro definition to use a power9-specific
18216         expansion under #ifdef __POWER9_VECTOR__ control (instead of
18217         _ARCH_PWR9 control).
18218         (vec_any_eq) Likewise.
18219         * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
18220         expansion for CMPNEF to remove support for xvcmpnesp instruction.
18221         (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
18222         support for xvcmpnedp instruction.
18223         (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
18224         macro expansion so that Power9 implementation of vec_all_ne does
18225         not use the AltiVec predicate framework.
18226         (VCMPNEH_P): Likewise.
18227         (VCMPNEW_P): Likewise.
18228         (VCMPNED_P): Likewise.
18229         (VCMPNEFP_P): Likewise.
18230         (VCMPNEDP_P): Likewise.
18231         (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
18232         implementation of vec_any_eq to not use AltiVec predicate
18233         framework.
18234         (VCMPAEH_P): Likewise.
18235         (VCMPAEW_P): Likewise.
18236         (VCMPAED_P): Likewise.
18237         (VCMPAEFP_P): Likewise.
18238         (VCMPAEDP_P): Likewise.
18239         (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
18240         BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
18241         not use the AltiVec predicate framework.
18242         (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
18243         of vec_any_eq to not use AltiVec predicate framework.
18244         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
18245         support for predefined __POWER9_VECTOR__ macro to indicate that
18246         Power9 instruction selection is enabled.
18247         (altivec_overloaded_builtins): Remove extraneous
18248         ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
18249         function argument types RS6000_BTI_bool_V16QI and
18250         RS6000_BTI_bool_V16QI.  Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
18251         entry for overloaded function argument types RS6000_BTI_bool_V4SI
18252         andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB.  Remove
18253         two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
18254         P9V_BUILTIN_CMPNEF to force use of instructions not specific to
18255         Power9 for implementations of vec_cmpne.  Change the signature for
18256         all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
18257         (representing vec_all_ne) to remove the previously described first
18258         argument of type RS6000_BTI_INTSI, as this was an artifact of
18259         reliance on the AltiVec predicate framework, which is no longer
18260         used in the implementation of these functions.  Add
18261         P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
18262         function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
18263         since, unlike the AltiVec predicate framework implementation, we
18264         do not share function descriptors between vec_alle and vec_anyeq.
18265         (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
18266         set of modes that receive special treatment even when
18267         TARGET_P9_VECTOR is true.  The special treatment emits code that
18268         does not depend on Power9 instructions.
18269         * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
18270         define_expand to not rely on AltiVec predicate framework.
18271         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
18272         function.
18273         (vector_ne_v2di_p): Change this define_expand to not rely on
18274         AltiVec predicate framework.
18275         (vector_ae_v2di_p): New define_expand to represent vec_any_eq
18276         function.
18277         (vector_ne_<mode>_p): Change this define_expand to not rely on
18278         AltiVec predicate framework.
18279         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
18280         function.
18281         * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
18282         (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
18283         define_insn pattern.
18284         (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
18285         define_insn pattern because the xvcmpne<VSs>. instruction is not
18286         supported.
18287         (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
18288         instruction is not supported.
18290 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
18292         * config/nvptx/nvptx.c: Include intl.h.
18294 2017-03-01  Martin Jambor  <mjambor@suse.cz>
18296         PR lto/78140
18297         * ipa-prop.h (ipa_bits): Removed field known.
18298         (ipa_jump_func): Removed field vr_known.  Changed fields bits and m_vr
18299         to pointers.  Adjusted their comments to warn about their sharing.
18300         (ipcp_transformation_summary): Change bits to a vector of pointers.
18301         (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
18302         (ipa_get_ipa_bits_for_value): Declare.
18303         * tree-vrp.h (value_range): Mark as GTY((for_user)).
18304         * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
18305         (ipa_bits_hash_table): Likewise.
18306         (ipa_vr_ggc_hash_traits): Likewise.
18307         (ipa_vr_hash_table): Likewise.
18308         (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
18309         being pointers and vr_known being removed.
18310         (ipa_set_jf_unknown): Likewise.
18311         (ipa_get_ipa_bits_for_value): New function.
18312         (ipa_set_jfunc_bits): Likewise.
18313         (ipa_get_value_range): New overloaded functions.
18314         (ipa_set_jfunc_vr): Likewise.
18315         (ipa_compute_jump_functions_for_edge): Use the above functions to
18316         construct bits and vr parts of jump functions.
18317         (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
18318         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
18319         exist.
18320         (ipcp_grow_transformations_if_necessary): Also allocate
18321         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
18322         exist.
18323         (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
18324         them.  Fix too long lines.
18325         (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
18326         vr_known being removed.
18327         (ipa_read_jump_function): Use new setter functions to construct bits
18328         and vr parts of jump functions or set them to NULL.
18329         (write_ipcp_transformation_info): Adjust for bits being pointers.
18330         (read_ipcp_transformation_info): Likewise.
18331         (ipcp_update_bits): Likewise.  Fix excessively long lines a trailing
18332         space.
18333         Include gt-ipa-prop.h.
18334         * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
18335         being pointers.
18336         (ipcp_store_bits_results): Likewise.
18337         (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
18338         Do not write to existing jump functions but use a temporary instead.
18340 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
18342         PR c++/79681
18343         * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
18344         attempt to use its first operand as BIT_FIELD_REF base.
18346 2017-03-01  Richard Biener  <rguenther@suse.de>
18348         PR middle-end/79721
18349         * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
18350         interpolating formula in wrapping arithmetic.
18351         (chrec_apply): Convert chrec_evaluate return value to wanted type.
18353 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
18355         PR tree-optimization/79734
18356         * tree-vect-generic.c (expand_vector_condition): Optimize
18357         AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
18358         Handle VEC_COND_EXPR where comparison has different inner width from
18359         type's inner width.
18361 2017-02-28  Sandra Loosemore  <sandra@codesourcery.com>
18363         * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
18364         markup, and similar issues.  Remove @opindex entries for things
18365         that aren't options.  Add missing -mmpy-option entries.
18367 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
18369         PR tree-optimization/79737
18370         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
18371         a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
18372         tmpbuf[byte_size - 1].  Call natice_encode_expr with byte_size - 1
18373         instead of byte_size.  Formatting fix.
18374         (shift_bytes_in_array_right): Formatting fix.
18376 2017-02-28  Eric Botcazou  <ebotcazou@adacore.com>
18378         PR target/79749
18379         * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
18380         condition on optimize for the leaf function test.
18382 2017-02-28  Martin Liska  <mliska@suse.cz>
18384         PR lto/79625
18385         * read-rtl-function.c (function_reader::handle_unknown_directive):
18386         Bail out when one uses -flto.
18388 2017-02-28  Martin Liska  <mliska@suse.cz>
18390         * common.opt: Replace space with tabular for options of <number>
18391         type.
18392         * config/i386/i386.opt: Show <number> value for
18393         -mlarge-data-threshold.
18394         * opts.c (print_filtered_help): Do not display number in hexadecimal
18395         format.
18397 2017-02-28  Martin Liska  <mliska@suse.cz>
18399         * common.opt: Fix --help=option -Q for options which are of
18400         an enum type.
18402 2017-02-28  Uros Bizjak  <ubizjak@gmail.com>
18404         * config/i386/i386.c (print_reg): Error out for values
18405         of 8-bit size in invalid integer register.
18407 2017-02-28  Martin Sebor  <msebor@redhat.com>
18409         PR tree-optimization/79691
18410         * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
18412 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
18414         PR target/79729
18415         * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
18416         gcc_unreachable with output_operand_lossage.
18418 2017-02-28  Richard Biener  <rguenther@suse.de>
18420         PR tree-optimization/79740
18421         * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
18422         inserts.
18423         (visit_nary_op): Insert the nary into the hashtable if we
18424         pattern-matched sth.
18425         * tree-ssa-pre.c (eliminate_insert): Robustify.
18427 2017-02-28  Richard Biener  <rguenther@suse.de>
18429         PR middle-end/79731
18430         * fold-const.c (decode_field_reference): Reject out-of-bound
18431         accesses.
18433 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
18435         * config/i386/i386.c: Include intl.h.
18436         (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
18437         instead of just cond ? "..." : "...".
18438         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
18439         * coverage.c (read_counts_file): Likewise.
18440         * omp-offload.c: Include intl.h.
18441         (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
18442         of just cond ? "..." : "...".
18443         * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
18444         of just cond ? "..." : "...".
18446 2017-02-28  Richard Earnshaw  <rearnsha@arm.com>
18448         PR target/79742
18449         * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
18450         entry, if present.
18451         * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
18452         'tune for' CPU name.
18453         * config/arm/arm-cpu-data.h: Regenerated.
18455 2017-02-28  Richard Biener  <rguenther@suse.de>
18457         PR tree-optimization/79732
18458         * tree-inline.c (expand_call_inline): Do not shadow var.
18460 2017-02-28  Richard Biener  <rguenther@suse.de>
18462         PR tree-optimization/79723
18463         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
18464         address-space properly.
18466 2017-02-28  Thomas Schwinge  <thomas@codesourcery.com>
18468         * doc/optinfo.texi (Optimization groups): Fix option used for
18469         OPTGROUP_ALL.
18470         * doc/invoke.texi (-fopt-info): Document "omp".
18471         * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
18472         (OPTGROUP_ALL): Add OPTGROUP_OMP.
18473         * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
18474         * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
18475         * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
18477         * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP.  Adjust
18478         all users.
18479         * dumpfile.c (optgroup_options): Instead of "openmp", associate
18480         OPTGROUP_OMP with "omp".
18482 2017-02-27  Pat Haugen  <pthaugen@us.ibm.com>
18484         PR target/79544
18485         * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
18486         for arithmetic shift of unsigned V2DI.
18488 2017-02-27  Claudiu Zissulescu  <claziss@synopsys.com>
18490         * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
18491         arc/linux.h headers.
18492         * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
18493         (LINK_SPEC): Likewise.
18494         (ARC_TLS_EXTRA_START_SPEC): Likewise.
18495         (EXTRA_SPECS): Likewise.
18496         (STARTFILE_SPEC): Likewise.
18497         (ENDFILE_SPEC): Likewise.
18498         (LIB_SPEC): Likewise.
18499         (TARGET_SDATA_DEFAULT): Likewise.
18500         (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
18501         (MULTILIB_DEFAULTS): Likewise.
18502         (DWARF2_UNWIND_INFO): Likewise.
18503         * config/arc/big.h: New file.
18504         * config/arc/elf.h: Likewise.
18505         * config/arc/linux.h: Likewise.
18506         * config/arc/t-uClibc: Remove.
18508 2017-02-27  Bin Cheng  <bin.cheng@arm.com>
18510         PR tree-optimization/77536
18511         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
18512         (tree_transform_and_unroll_loop): Use above function to compute the
18513         estimated niter of unrolled loop and use it when scaling profile.
18514         Also use count info rather than frequency if it's non-zero.
18515         * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
18516         * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
18517         (vect_transform_loop): Call above function.
18519 2017-02-27  Richard Biener  <rguenther@suse.de>
18521         PR tree-optimization/45397
18522         * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
18523         * tree-ssa-sccvn.c (valueized_wider_op): New helper.
18524         (visit_nary_op): Add pattern matching for CSEing sign-changed
18525         or truncated operations with wider ones.
18527 2017-02-27  Richard Biener  <rguenther@suse.de>
18529         PR tree-optimization/79690
18530         * tree-vect-stmts.c (vectorizable_store): Use vector type
18531         built from the DR with address-space.
18533 2017-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
18535         * doc/invoke.texi (Optimize Options): Refine the description
18536         of asan-use-after-return.
18538 2017-02-25  Alan Modra  <amodra@gmail.com>
18540         PR rtl-optimization/79584
18541         * lra-constraints.c (base_to_reg): Reload ad->base, the entire
18542         base, not ad->base_term, the reg within base.  Remove assertion
18543         that ad->base == ad->base_term.  Replace gen_int_mode using
18544         bogus mode with const0_rtx.
18546 2017-02-25  Jakub Jelinek  <jakub@redhat.com>
18548         PR middle-end/79396
18549         * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
18550         FMA_EXPR like tcc_binary or tcc_unary.
18552         * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
18554         PR debug/77589
18555         * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
18556         bitfield.
18557         (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
18558         (output_loc_operands): Handle DW_OP_call_ref and
18559         DW_OP_GNU_variable_value.
18560         (struct variable_value_struct): New type.
18561         (struct variable_value_hasher): Likewise.
18562         (variable_value_hash): New variable.
18563         (string_types): Remove.
18564         (copy_loc_descr): New function.
18565         (add_loc_descr_to_each): Clarify comment.  Use copy_loc_descr.
18566         (prepend_loc_descr_to_each): New function.
18567         (add_loc_list): Fix comment typo.  Use prepend_loc_descr_to_each
18568         instead of add_loc_descr_to_each if the first argument is single
18569         location list and the second has multiple.
18570         (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
18571         (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
18572         when looking for variable value which doesn't have other location info.
18573         (loc_list_from_tree): Formatting fix.
18574         (gen_array_type_die): Simplify DW_AT_string_length handling.
18575         (adjust_string_types): Remove.
18576         (gen_subprogram_die): Don't call adjust_string_types nor test/set
18577         string_types.  Call resolve_variable_values.
18578         (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
18579         (resolve_addr_in_expr): Likewise.  Add A argument.
18580         (copy_deref_exprloc): Remove deref argument.  Adjust for the
18581         original expression being DW_OP_GNU_variable_value with optionally
18582         DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
18583         optionally after it.
18584         (optimize_string_length): Rework for DW_OP_GNU_variable_value.
18585         (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
18586         callers.  Set remove_AT_byte_size if removing DW_AT_string_length.
18587         (variable_value_hasher::hash, variable_value_hasher::equal): New
18588         methods.
18589         (resolve_variable_value_in_expr, resolve_variable_value,
18590         resolve_variable_values, note_variable_value_in_expr,
18591         note_variable_value): New functions.
18592         (dwarf2out_early_finish): Call note_variable_value on all toplevel
18593         DIEs.
18595 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
18597         PR c/79677
18598         * opts.h (handle_generated_option): Add GENERATED_P argument.
18599         * opts-common.c (handle_option): Adjust function comment.
18600         (handle_generated_option): Add GENERATED_P argument, pass it to
18601         handle_option.
18602         (control_warning_option): Pass false to handle_generated_option
18603         GENERATED_P.
18604         * opts.c (maybe_default_option): Pass true to handle_generated_option
18605         GENERATED_P.
18606         * optc-gen.awk: Likewise.
18608 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
18610         * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
18611         a REG, look at the REG it is a SUBREG of.
18612         (splitter for cmpeqsi_t): Ditto.
18614 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
18616         * config/pa/pa.c (pa_combine_instructions): Do not share RTL.  Make
18617         the special USEs with the pattern of the insn, not the insn itself.
18619 2017-02-24  Matthew Fortune  <matthew.fortune@imgtec.com>
18621         PR target/79473
18622         * doc/invoke.texi: Document -mload-store-pairs.
18624 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
18625             Sandra Loosemore  <sandra@codesourcery.com>
18627         * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
18628         argument isn't a CONST_INT.
18629         (nios2_alternate_compare_const): Assert op is a CONST_INT.
18630         (nios2_valid_compare_const_p): Assert op is a CONST_INT.
18631         (nios2_validate_compare): Bypass alternate compare logic if *op2
18632         is not a CONST_INT.
18633         (ldstwm_operation_p): Return false if first_base is not a REG or
18634         if first_offset is not a CONST_INT.
18636 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
18638         * config/cris/cris.md: Use correct operand in a define_peephole2.
18640 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
18642         * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
18644 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
18646         * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
18647         this_insn if it is an INSN or JUMP_INSN.
18648         (force_offsettable): Look at base, not at addr.
18649         * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
18650         on things that aren't necessarily CONST_INTs.
18652 2017-02-24  Uros Bizjak  <ubizjak@gmail.com>
18654         * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
18655         -mfpmath=sse is the default also for x86-32 targets with SSE2
18656         instruction set when @option{-ffast-math} is enabled
18658 2017-02-24  Jeff Law  <law@redhat.com>
18660         PR rtl-optimizatoin/79286
18661         * ira.c (update_equiv_regs): Drop may_trap_p exception to
18662         dominance test.
18664 2017-02-24  Richard Biener  <rguenther@suse.de>
18666         PR tree-optimization/79389
18667         * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
18668         debug insns.
18670 2017-02-24  Aldy Hernandez  <aldyh@redhat.com>
18672         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
18673         function comment to reflect reality.
18674         (loop_exits_before_overflow): Fix typo in function description.
18676 2017-02-24  Richard Biener  <rguenther@suse.de>
18678         PR tree-optimization/79389
18679         * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
18680         properly that a threading opportunity exists.  Detect conditional
18681         copy/constant propagation opportunities.
18683 2017-02-23  Eric Botcazou  <ebotcazou@adacore.com>
18685         * config/visium/visium.md (type): Add trap.
18686         (b): New mode attribute.
18687         (*btst): Rename into...
18688         (*btst<mode>): ...this and adjust.
18689         (*cbranchsi4_btst_insn): Rename into...
18690         (*cbranch<mode>4_btst_insn): ...this and adjust.
18691         (trap): New define_insn.
18693 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
18695         PR tree-optimization/79389
18696         * ifcvt.c (struct noce_if_info): Add rev_cond field.
18697         (noce_reversed_cond_code): New function.
18698         (noce_emit_store_flag): Use rev_cond if non-NULL instead of
18699         reversed_comparison_code.  Formatting fix.
18700         (noce_try_store_flag): Test rev_cond != NULL in addition to
18701         reversed_comparison_code.
18702         (noce_try_store_flag_constants): Likewise.
18703         (noce_try_store_flag_mask): Likewise.
18704         (noce_try_addcc): Use rev_cond if non-NULL instead of
18705         reversed_comparison_code.
18706         (noce_try_cmove_arith): Likewise.  Formatting fixes.
18707         (noce_try_minmax, noce_try_abs): Clear rev_cond.
18708         (noce_find_if_block): Initialize rev_cond.
18709         (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
18710         instead of false as last argument never attempt to reverse it
18711         afterwards.
18713 2017-02-23  Bin Cheng  <bin.cheng@arm.com>
18715         PR tree-optimization/79663
18716         * tree-predcom.c (combine_chains): Process refs in reverse order
18717         only for ZERO length chains, and add explaining comment.
18719 2017-02-23  Jeff Law  <law@redhat.com>
18721         PR tree-optimization/79578
18722         * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
18723         in call to operand_equal_p.
18725 2017-01-23  Dominique d'Humieres  <dominiq@lps.ens.fr>
18727         PR target/71017
18728         * config/i386/cpuid.h: Fix another undefined behavior.
18730 2017-02-23  Richard Biener  <rguenther@suse.de>
18732         PR tree-optimization/79683
18733         * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
18734         vector types for data-refs.
18736 2017-02-23  Martin Liska  <mliska@suse.cz>
18738         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
18740 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
18742         PR middle-end/79665
18743         * internal-fn.c (get_range_pos_neg): Moved to ...
18744         * tree.c (get_range_pos_neg): ... here.  No longer static.
18745         * tree.h (get_range_pos_neg): New prototype.
18746         * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
18747         are known to be in between 0 and signed maximum inclusive, try to
18748         expand both unsigned and signed divmod and use the cheaper one from
18749         those.
18751 2017-02-22  Jeff Law  <law@redhat.com>
18753         PR tree-optimization/79578
18754         * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
18755         to compare base operands.
18757 2017-02-22  Segher Boessenkool  <segher@kernel.crashing.org>
18759         PR target/79211
18760         * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
18761         gpc_reg_operand instead of fpr_reg_operand.
18763 2017-02-22  Sameera Deshpande  <sameera.deshpande@imgtec.com>
18765         * config/mips/mips.c (mips_return_in_memory): Force FP
18766         vector types to be returned in memory for o32 ABI.
18768 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
18770         * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
18771         instead of DW_TAG_member for static data member declarations and don't
18772         set no_linkage_name for static inline data members.
18773         (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
18774         to DW_TAG_member.
18776 2017-02-22  Martin Liska  <mliska@suse.cz>
18778         * doc/invoke.texi: Replace inequality signs with square brackets
18779         for -Wnormalized.
18781 2017-02-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18783         PR tree-optimization/68644
18784         * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
18786 2017-02-22  Matthew Fortune  <matthew.fortune@imgtec.com>
18788         PR target/78660
18789         * lra-constraints.c (simplify_operand_subreg): Handle
18790         WORD_REGISTER_OPERATIONS targets.
18792 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
18794         PR target/70465
18795         * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
18796         and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
18797         elimination by swapping fld*.
18799 2017-02-22  Richard Biener  <rguenther@suse.de>
18801         PR tree-optimization/79673
18802         * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
18803         convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
18804         irrelevant address-space qualifiers and avoiding a
18805         ADDR_SPACE_CONVERT_EXPR from fold_convert.
18807 2017-02-22  Richard Biener  <rguenther@suse.de>
18809         PR tree-optimization/79666
18810         * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
18811         to not symbolically negate if that may introduce undefined
18812         overflow.
18814 2017-02-22  Martin Liska  <mliska@suse.cz>
18816         PR lto/79587
18817         * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
18818         * data-streamer-out.c (streamer_write_gcov_count_stream):
18819         Likewise.
18820         * value-prof.c (stream_out_histogram_value): Make assert more
18821         precise based on type of counter.
18823 2017-02-21  Uros Bizjak  <ubizjak@gmail.com>
18825         PR target/79593
18826         * config/i386/i386.md (standard_x87sse_constant_load splitter):
18827         Use nonimmediate_operand instead of memory_operand for operand 1.
18828         (float-extend standard_x87sse_constant_load splitter): Ditto.
18830 2017-02-21  Jeff Law  <law@redhat.com>
18832         PR tree-optimization/79621
18833         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
18834         blocks with edges to themselves.
18836 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
18838         PR target/79633
18839         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
18840         is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
18841         Use gimple_call_builtin_p.
18843         PR target/79570
18844         * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
18845         on temporarily removed DEBUG_INSNs.
18847         PR tree-optimization/79649
18848         * tree-loop-distribution.c (classify_partition): Give up on
18849         non-generic address space loads/stores.
18851 2017-02-21  Aldy Hernandez  <aldyh@redhat.com>
18853         * doc/loop.texi (Loop manipulation): Remove nonexistent
18854         tree_ssa_loop_version from the documentation.
18855         * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
18857 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
18859         PR target/79494
18860         * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
18861         make_reg_eh_region_note_nothrow_nononlocal on call_insn.
18862         * config/rs6000/rs6000.c: Include except.h.
18863         (rs6000_expand_split_stack_prologue): Call
18864         make_reg_eh_region_note_nothrow_nononlocal on the call insn.
18866 2017-02-21  Martin Jambor  <mjambor@suse.cz>
18868         PR lto/79579
18869         * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
18870         have been analyzed.
18872 2017-02-21  Martin Jambor  <mjambor@suse.cz>
18874         * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
18875         for backward compatibility only.
18876         * doc/invoke.texi (Option Summary): Remove all references to
18877         -fipa-cp-alignment.
18879 2017-02-21  Matthew Fortune  <matthew.fortune@imgtec.com>
18881         PR target/78660
18882         Revert:
18883         2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
18885         * lra-constraints.c (curr_insn_transform): Handle
18886         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
18888 2017-02-21  Martin Liska  <mliska@suse.cz>
18890         * config/i386/i386.opt: Replace -masm-dialect with -masm.
18892 2017-02-21  Thomas Schwinge  <thomas@codesourcery.com>
18894         PR translation/79638
18895         * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
18897 2017-02-21  Eric Botcazou  <ebotcazou@adacore.com>
18899         PR ada/67205
18900         * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
18901         (arm_function_ok_for_sibcall): Return false for an indirect call by
18902         descriptor if all the argument registers are used.
18903         (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
18904         alignment of the function.
18906 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
18908         PR tree-optimization/61441
18909         * simplify-rtx.c (simplify_const_unary_operation): For
18910         -fsignaling-nans and sNaN operand, return NULL_RTX rather than
18911         the sNaN unmodified.
18913 2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18915         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
18916         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
18917         instead of SYSTEM_HEADER_DIR.
18919 2017-02-20  Gerald Pfeifer  <gerald@pfeifer.com>
18920             Martin LiÅ¡ka  <mliska@suse.cz>
18922         * doc/invoke.texi (use-after-scope-direct-emission-threshold):
18923         Fix typos and grammar, use active voice, and clarify.
18925 2017-02-20  Marek Polacek  <polacek@redhat.com>
18927         PR middle-end/79537
18928         * gimplify.c (gimplify_expr): Handle unused *&&L;.
18930         PR sanitizer/79558
18931         * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
18933 2017-02-20  Jakub Jelinek  <jakub@redhat.com>
18935         PR target/79568
18936         * config/i386/i386.c (ix86_expand_builtin): Handle
18937         OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
18938         ix86_builtins_isa[fcode].isa as a requirement of those
18939         flags and any other flag in the bitmask.
18940         (ix86_init_mmx_sse_builtins): Use 0 instead of
18941         ~OPTION_MASK_ISA_64BIT as mask.
18942         * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
18943         __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
18944         __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
18945         __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
18947 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
18949         PR target/78012
18950         * lra-constraints.c (split_reg): Check requested split mode
18951         is supported by the register.
18953 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
18955         * lra-constraints.c (simplify_operand_subreg): Remove early
18956         return false.
18958 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
18960         PR target/78660
18961         * lra-constraints.c (curr_insn_transform): Tighten condition
18962         for converting SUBREG reloads from OP_OUT to OP_INOUT.
18964 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
18966         PR target/78660
18967         * lra-constraints.c (curr_insn_transform): Handle
18968         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
18970 2017-02-19  Uros Bizjak  <ubizjak@gmail.com>
18972         Revert:
18973         2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
18975         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
18977 2017-02-19  Jonathan Wakely  <jwakely@redhat.com>
18979         PR c++/69523
18980         * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
18981         description.
18983 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18985         * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
18986         for FMA_EXPR.
18988 2017-02-18  Jakub Jelinek  <jakub@redhat.com>
18990         * final.c (last_columnnum, override_columnnum): New variables.
18991         (final_start_function): Set last_columnnum, pass it to begin_prologue
18992         hook and pass 0 to dwarf2out_begin_prologue.
18993         (final_scan_insn): Update override_columnnum.  Pass last_columnnum
18994         to source_line debug hook.
18995         (notice_source_line): Compute last_columnnum and for debug_column_info
18996         return true on column changes.
18997         * debug.h (struct gcc_debug_hooks): Add column argument to
18998         source_line and begin_prologue hooks.
18999         (debug_nothing_int_charstar_int_bool): Remove prototype.
19000         (debug_nothing_int_int_charstar,
19001         debug_nothing_int_int_charstar_int_bool): New prototypes.
19002         (dwarf2out_begin_prologue): Add column argument.
19003         * debug.c (do_nothing_debug_hooks): Adjust source_line and
19004         begin_prologue hooks.
19005         (debug_nothing_int_charstar_int_bool): Remove.
19006         (debug_nothing_int_int_charstar,
19007         debug_nothing_int_int_charstar_int_bool): New functions.
19008         * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
19009         through to dwarf2out_source_line.
19010         (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
19011         (dwarf2out_source_line): Add column argument, emit it if requested.
19012         * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
19013         arguments.
19014         * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
19015         * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
19016         * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
19017         through to dwarf2out_begin_prologue.
19018         (vmsdbgout_source_line): Add column argument, pass it through to
19019         dwarf2out_source_line.
19020         * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
19021         dbxout_source_line caller.
19022         (dbxout_source_line): Add column argument.
19024         * common.opt (gno-column-info, gcolumn-info): New options.
19025         * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
19026         (check_die): Also test for multiple DW_AT_decl_column attributes.
19027         (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
19028         DW_AT_decl_column if requested.
19029         (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
19030         if requested.
19031         (gen_variable_die): Likewise.
19032         (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
19033         * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
19035         PR target/79569
19036         * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
19037         * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
19038         (ix86_handle_option): Handle OPT_m3dnowa.
19039         * doc/invoke.texi (-m3dnowa): Document.
19040         * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
19041         -m3dnowa instead of -m3dnow -march=athlon.
19043         PR target/79559
19044         * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
19045         instead of gcc_assert for K, r and R code checks.  Formatting fixes.
19047 2017-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19049         PR target/79261
19050         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
19051         support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
19052         * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
19053         generator for vsx_xxpermdi_<mode>_be.
19054         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
19055         force big-endian semantics.
19056         (vsx_xxpermdi_<mode>_be): New define_expand with same
19057         implementation as previous version of vsx_xxpermdi_<mode>.
19059 2017-02-17  Jakub Jelinek  <jakub@redhat.com>
19061         PR tree-optimization/79327
19062         * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
19063         variable, its initialization and use.
19065 2017-02-17  Julia Koval  <julia.koval@intel.com>
19067         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
19068         (OPTION_MASK_ISA_PKU_UNSET): New.
19069         (ix86_handle_option): Handle -mrdpid.
19070         * config/i386/cpuid.h (bit_RDPID): New.
19071         * config/i386/driver-i386.c (host_detect_local_cpu):
19072         Detect RDPID feature.
19073         * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
19074         * config/i386/i386-c.c (ix86_target_macros_internal):
19075         Handle RDPID flag.
19076         * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
19077         (ix86_valid_target_attribute_inner_p): Add "rdpid".
19078         (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
19079         * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
19080         * config/i386/i386.md (define_insn "rdpid"): New.
19081         * config/i386/i386.opt Add -mrdpid.
19082         * config/i386/immintrin.h (_rdpid_u32): New.
19084 2017-02-17  Vladimir Makarov  <vmakarov@redhat.com>
19086         PR rtl-optimization/79541
19087         * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
19088         instead of transforming it into USE.
19090 2017-02-17  Segher Boessenkool  <segher@kernel.crashing.org>
19092         * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
19093         If HONOR_SNANS (SFmode) force the input to a register.
19094         (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
19095         (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
19096         an frsp or similar insn.
19098 2017-02-17  Martin Liska  <mliska@suse.cz>
19100         PR rtl-optimization/79577
19101         * params.def (selsched-max-sched-times): Increase minimum to 1.
19103 2017-02-17  Martin Liska  <mliska@suse.cz>
19105         PR rtl-optimization/79574
19106         * gcse.c (want_to_gcse_p): Prevent integer overflow.
19108 2017-02-17  Martin Liska  <mliska@suse.cz>
19110         PR tree-optimization/79529
19111         * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
19112         ssa_defined_default_def_p to handle cases which are implicitly
19113         defined.
19114         * tree-ssa.c (ssa_defined_default_def_p): New function.
19115         (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
19116         which are implicitly defined.
19117         * tree-ssa.h (ssa_defined_default_def_p): Declare.
19119 2017-02-17  Richard Biener  <rguenther@suse.de>
19121         PR middle-end/79576
19122         * params.def (max-ssa-name-query-depth): Limit to 10.
19124 2017-02-17  Richard Biener  <rguenther@suse.de>
19126         PR tree-optimization/79552
19127         * tree-ssa-structalias.c (visit_loadstore): Properly verify
19128         default defs.
19130 2017-02-17  Richard Biener  <rguenther@suse.de>
19132         PR bootstrap/79567
19133         * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
19135 2017-02-17  Marek Polacek  <polacek@redhat.com>
19137         PR middle-end/79536
19138         * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
19139         (fold_negate_expr): New wrapper.
19141 2017-02-16  Sandra Loosemore  <sandra@codesourcery.com>
19143         * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]: 
19144         Correct terminology and de-emphasize pre-standard behavior.
19146 2017-02-16  Alan Modra  <amodra@gmail.com>
19148         PR rtl-optimization/79286
19149         * ira.c (def_dominates_uses): New function.
19150         (update_equiv_regs): Don't create an equivalence for insns that
19151         may trap where the register def does not dominate the use.
19153 2017-02-16  Vladimir Makarov  <vmakarov@redhat.com>
19155         PR rtl-optimization/78127
19156         * lra.c (lra): Call lra_eliminate before finish the loop after
19157         lra_constraint.
19159 2017-02-16  Richard Biener  <rguenther@suse.de>
19161         * graphite.h: Do not include isl/isl_val_gmp.h, instead include
19162         isl/isl_val.h.
19163         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
19164         (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
19165         * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
19166         (isl_val_int_from_wi): New function.
19167         (extract_affine_gmp): Rename to ...
19168         (extract_affine_wi): ... this, take a widest_int.
19169         (extract_affine_int): Just wrap extract_affine_wi.
19170         (add_param_constraints): Use isl_val_int_from_wi.
19171         (add_loop_constraints): Likewise, and extract_affine_wi.
19173 2017-02-15  Jeff Law  <law@redhat.com>
19175         PR middle-end/79521
19176         * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
19177         ira_init_register_move_cost_if_necessary.
19179 2017-02-15  Martin Sebor  <msebor@redhat.com>
19181         PR middle-end/32003
19182         * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
19183         removed in a prior commit.
19185 2017-02-15  Bin Cheng  <bin.cheng@arm.com>
19187         PR tree-optimization/79347
19188         * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
19189         counters during peeling.
19191 2017-02-15  Thomas Schwinge  <thomas@codesourcery.com>
19193         * Makefile.in (site.exp): Remove "set ISLVER".
19195 2017-02-15  Jakub Jelinek  <jakub@redhat.com>
19197         PR target/79487
19198         * real.c (real_from_integer): Call real_convert even for decimal.
19200 2017-02-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19202         PR target/79421
19203         * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
19205 2017-02-14  Andrew Pinski  <apinski@cavium.com>
19207         * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
19208         cores and change the partno/implementer to be correct.
19209         (thunderx2t99p1): New core which replaces thunderx2t99 and still has
19210         the 'B" as the implementer.
19211         * config/aarch64/aarch64-tune.md: Regenerate.
19213 2017-02-14  Carl Love  <cel@us.ibm.com>
19215         * config/rs6000/rs6000.c: Add case statement entry to make the
19216         xvcvuxdsp built-in argument unsigned.
19217         * config/rs6000/vsx.md: Fix the source and return operand types so they
19218         match the instruction definitions from the ISA document.  Fix typo
19219         in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
19220         statement.
19222 2017-02-14  Vladimir Makarov  <vmakarov@redhat.com>
19224         PR target/79282
19225         * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
19226         member early_clobber_alts.
19227         * lra-lives.c (reg_early_clobber_p): New.
19228         (process_bb_lives): Use it.
19229         * lra.c (new_insn_reg): New arg early_clobber_alts.  Use it.
19230         (debug_operand_data): Initialize early_clobber_alts.
19231         (setup_operand_alternative): Set up early_clobber_alts.
19232         (collect_non_operand_hard_regs): Ditto.  Pass early clobber
19233         alternatives to new_insn_reg.
19234         (add_regs_to_insn_regno_info): Add arg early_clobber_alts.  Use
19235         it.
19236         (lra_update_insn_regno_info): Pass the new arg.
19238 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
19240         PR middle-end/79505
19241         * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
19242         (new_oacc_loop_raw): Don't clear already cleared fields.
19244         PR target/79481
19245         * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
19246         _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
19247         _mm512_prefetch_i64gather_ps): New inline functions and macros.
19249 2017-02-14  Uros Bizjak  <ubizjak@gmail.com>
19251         PR target/79495
19252         * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
19254 2017-02-14  H.J. Lu  <hongjiu.lu@intel.com>
19256         PR target/79498
19257         * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
19258         the extra instruction to the right place to store 128-bit constant
19259         when needed.
19261 2017-02-14  Martin Sebor  <msebor@redhat.com>
19263         PR middle-end/79448
19264         * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
19265           warning for strings of unknown length.
19267 2017-02-13  Segher Boessenkool  <segher@kernel.crashing.org>
19269         * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
19271 2017-02-14  Jeff Law  <law@redhat.com>
19273         PR target/79404
19274         * ira-costs.c (scan_one_insn): Initialize register move costs
19275         for pseudos seen in USE/CLOBBER insns.
19277         PR tree-optimization/79095
19278         * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
19279         if the numerator has the range ~[0,0] make the resultant range ~[0,0].
19280         (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
19281         if the operands are known to be not equal, then the resulting range
19282         is ~[0,0].
19283         (intersect_ranges): If the new range is ~[0,0] and the old range is
19284         wide, then prefer ~[0,0].
19285         * tree-vrp.c (overflow_comparison_p_1): New function.
19286         (overflow_comparison_p): New function.
19287         * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
19288         if NAME is used in an overflow test.
19289         (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
19290         overflow check that can be expressed as an equality test, then adjust
19291         ops to be that equality test.
19293 2017-02-14  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19295         * config/s390/s390-builtin-types.def: Remove flags argument.
19296         * config/s390/s390.c (s390_init_builtins): Likewise.
19298 2017-02-14  Martin Liska  <mliska@suse.cz>
19300         * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
19301         vector.  Fix trailing white spaces.
19303 2017-02-14  James Greenhalgh  <james.greenhalgh@arm.com>
19305         * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
19306         HFmode.
19308 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19310         PR rtl-optimization/68664
19311         * config/arm/arm.c (arm_sched_can_speculate_insn):
19312         New function.  Declare prototype.
19313         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
19315 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19317         PR rtl-optimization/68664
19318         * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
19319         New function.
19320         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
19322 2017-02-14  Amit Pawar  <amit.pawar@amd.com>
19324         * config/i386/i386.c (znver1_cost): Fix the alignment for function and
19325         max skip bytes for function, loop and jump.
19327 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
19329         * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
19330         ABS_EXPR for gimple dump.
19332 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
19334         PR target/79462
19335         * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
19337         PR tree-optimization/79408
19338         * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
19339         case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
19340         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
19341         also if rhs1 is INTEGER_CST.
19343 2017-02-14  Richard Biener  <rguenther@suse.de>
19345         PR middle-end/79432
19346         * tree-into-ssa.c (insert_phi_nodes): When the function can
19347         have abnormal edges rewrite SSA names with broken use-def
19348         dominance out of SSA and register them for PHI insertion.
19350 2017-02-13  Martin Sebor  <msebor@redhat.com>
19352         PR middle-end/79496
19353         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
19354         clearing info.nowrite flag when snprintf size argument is a range.
19356 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
19358         * cprop.c (cprop_jump): Add missing space in string literal.
19359         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
19360         (get_constraint_for_component_ref): Likewise.
19361         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
19362         * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
19363         * lra-constraints.c (process_alt_operands): Likewise.
19364         * ipa-inline.c (inline_small_functions): Likewise.
19365         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
19366         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
19367         * trans-mem.c (diagnose_tm_1_op): Likewise.
19368         * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
19369         (grid_parallel_clauses_gridifiable): Likewise.
19371         * config/nvptx/mkoffload.c (process): Add space in between
19372         , and %d.
19374         * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
19375         "MOD4_SSE_REGS" and "ALL_REGS".
19377         * spellcheck.c (test_data): Add , in between "foo" and "food".
19379 2017-02-13  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
19381         PR target/79449
19382         * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
19383         boundary crossing check and subsequent code generation agree.
19385 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19387         * config/aarch64/aarch64.c (has_memory_op): Delete.
19388         (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
19389         has_memory_op.
19391 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
19393         PR rtl-optimization/79388
19394         PR rtl-optimization/79450
19395         * combine.c (distribute_notes): When removing TEM_INSN for which
19396         corresponding dest has last value recorded, invalidate that last
19397         value.
19399 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19401         * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
19402         of explicit '@'.  Add missing assembly comment marker on branch costs
19403         printout.
19405 2017-02-13  Nathan Sidwell  <nathan@acm.org>
19407         * gengtype-lex.l (<in_struct>): Add '/'.
19409 2017-02-13  Martin Liska  <mliska@suse.cz>
19411         PR c/79471
19412         * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
19414 2017-02-13  Richard Biener  <rguenther@suse.de>
19416         * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
19417         Remove.
19418         * configure: Re-generate.
19419         * config.in: Likewise.
19420         * graphite-dependences.c: Simplify as if
19421         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
19422         * graphite-isl-ast-to-gimple.c: Likewise.
19423         * graphite-optimize-isl.c: Likewise.
19424         * graphite-poly.c: Likewise.
19425         * graphite-sese-to-poly.c: Likewise.
19426         * graphite.h: Likewise.
19427         * toplev.c: Include isl/version.h and use isl_version () for
19428         printing the ISL version.
19429         * doc/install.texi: Update ISL requirement.
19431 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
19433         * doc/standards.texi (Standards): Update reference to
19434         Objective-C 2.0.
19436 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
19438         * doc/extend.texi (Named Address Spaces): sourceware.org now
19439         defaults to https.
19440         * doc/install.texi (Binaries): Ditto.
19441         (Specific): Ditto.
19443 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
19445         * doc/cpp.texi: Replace "stringify"/"stringification" with C
19446         standard terminology "stringize"/"stringizing" throughout.
19447         * doc/cppinternals.texi: Likewise.
19449 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
19451         * doc/extend.texi: Fix some spelling mistakes and typos.
19452         * doc/invoke.texi: Likewise.
19454 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
19456         PR ipa/79224
19457         * params.def (inline-min-speedup) Change from 10 to 8.
19459 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
19461         * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
19462         4.5.
19464 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
19466         PR ipa/79224
19467         * ipa-inline-analysis.c (get_minimal_bb): New function.
19468         (record_modified): Use it.
19469         (remap_edge_change_prob): Handle also ancestor functions.
19471 2017-02-11  Gerald Pfeifer  <gerald@pfeifer.com>
19473         * doc/contrib.texi (Contributors): Remove broken link into
19474         the Mauve CVS repository.
19476 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
19478         PR middle-end/79454
19479         * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
19480         result computation whenever lhs doesn't have vector mode, not
19481         just when it has BLKmode.
19483 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
19485         * doc/makefile.texi (profiledbootstrap): Refer to the
19486         installation instructions only in textual form.
19488 2017-02-10  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
19490         PR target/79295
19491         * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
19493 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
19495         * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
19496         (Specific): Update mingw-w64 reference.
19497         (Binaries): Ditto.
19498         (Specific): Remove broken link to Renesas RX processor.
19500 2017-02-10  Richard Biener  <rguenther@suse.de>
19502         * toplev.c (process_options): Do not mention obsolete graphite
19503         options when printing sorry message about missing graphite support.
19504         Mention -floop-nest-optimize.
19506 2017-02-10  Christophe Lyon  <christophe.lyon@linaro.org>
19508         * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
19509         (vtst_p16): Likewise.
19510         (vtstq_p8): Likewise.
19511         (vtstq_p16): Likewise.
19512         (vtst_p64): New.
19513         (vtstq_p64): Likewise.
19514         * config/arm/arm_neon.h (vgetq_lane_p64): New.
19515         (vset_lane_p64): New.
19516         (vsetq_lane_p64): New.
19518 2017-02-10  Jakub Jelinek  <jakub@redhat.com>
19520         PR tree-optimization/79411
19521         * tree-ssa-reassoc.c (is_reassociable_op): Return false if
19522         stmt operands are SSA_NAMEs used in abnormal phis.
19523         (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
19524         phis.
19526 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
19528         PR ipa/70795
19529         * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
19530         flag if needed.
19532 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
19534         * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
19536 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
19538         * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
19539         to avoid warning.
19541         PR c/79413
19542         * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
19543         not arbitrary TREE_CONSTANT.
19545         PR c/79431
19546         * gimplify.c (gimplify_adjust_omp_clauses): Ignore
19547         "omp declare target link" attribute unless is_global_var.
19548         * omp-offload.c (find_link_var_op): Likewise.
19550 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
19551             Chung-Lin Tang  <cltang@codesourcery.com>
19553         * gimplify.c (gimplify_scan_omp_clauses): No special handling for
19554         OMP_CLAUSE_TILE.
19555         (gimplify_adjust_omp_clauses): Don't delete TILE.
19556         (gimplify_omp_for): Deal with TILE.
19557         * internal-fn.c (expand_GOACC_TILE): New function.
19558         * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
19559         (GOACC_TILE): New.
19560         * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
19561         (expand_oacc_collapse_init): Add LOC paramter.  Initialize tile
19562         element fields.
19563         (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
19564         avoid DIV for outermost collapse var.
19565         (expand_oacc_for): Insert tile element loop as needed.  Adjust.
19566         Remove out of date comments, fix whitespace.
19567         * omp-general.c (omp_extract_for_data): Deal with tiling.
19568         * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
19569         adjust OLF_DIM_BASE value.
19570         (struct omp_for_data): Add tiling field.
19571         * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
19572         (lower_oacc_head_mark): Add OLF_TILE as appropriate.  Ensure 2 levels
19573         for auto loops.  Remove default auto determining, moved to
19574         oacc_loop_fixed_partitions.
19575         * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
19576         stmts, add e_mask field.
19577         (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
19578         (oacc_thread_numbers): Use oacc_dim_call.
19579         (oacc_xform_tile): New.
19580         (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
19581         (finish_oacc_loop): Adjust for ifns vector.
19582         (oacc_loop_discover_walk): Append loop abstraction sites to list,
19583         add case for GOACC_TILE fns.
19584         (oacc_loop_xform_loop): Delete.
19585         (oacc_loop_process): Iterate over call list directly, and add
19586         handling for GOACC_TILE fns.
19587         (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
19588         dump partitioning.
19589         (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
19590         vector partitioning to outer loops.  Assign 2 partitions to loops
19591         when available. Add TILE handling.
19592         (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
19593         (execite_oacc_device_lower): Process GOACC_TILE fns,
19594         ignore unknown specs.
19595         * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
19596         * tree.c (omp_clause_num_ops): Adjust TILE ops.
19597         * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
19599 2017-02-09  Gerald Pfeifer  <gerald@pfeifer.com>
19601         * configure.ac (ACX_BUGURL): Update.
19602         * configure: Regenerate.
19604 2017-02-09  Richard Biener  <rguenther@suse.de>
19606         PR tree-optimization/69823
19607         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
19608         Properly enumerate all BBs in the region.  Use auto_vec/auto_bitmap.
19610 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
19612         * config/arc/arc-c.def: Add __NPS400__ definition.
19613         * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
19614         (TARGET_NPS400): Define.
19616 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
19618         * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
19619         file.
19620         (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
19621         pointer, arch_info.
19622         (arc_cpu_types): Fill the arch_info field with a pointer into the
19623         arc_arch_types table.
19624         (arc_selected_cpu): Declare.
19625         * config/arc/arc.c (arc_selected_cpu): Make global.
19626         (arc_selected_arch): Delete.
19627         (arc_base_cpu): Delete.
19628         (arc_override_options): Remove references to deleted variables,
19629         update access to arch information.
19630         (ARC_OPT): Update access to arch information.
19631         (ARC_OPTX): Likewise.
19632         * config/arc/arc.h (arc_base_cpu): Remove declaration.
19633         (TARGET_ARC600): Update access to arch information.
19634         (TARGET_ARC601): Likewise.
19635         (TARGET_ARC700): Likewise.
19636         (TARGET_EM): Likewise.
19637         (TARGET_HS): Likewise.
19638         * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
19639         information.
19641 2017-02-08  Pat Haugen  <pthaugen@us.ibm.com>
19643         PR target/78604
19644         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
19645         condition/operands for integer GE/LE/GEU/LEU operations.
19647 2017-02-08  Segher Boessenkool  <segher@kernel.crashing.org>
19649         PR translation/79397
19650         * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
19651         of AltiVec.
19653 2017-02-08  Martin Jambor  <mjambor@suse.cz>
19655         PR ipa/79375
19656         * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
19657         whether allocation happened.
19658         (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
19659         nothing was allocated.
19661 2017-02-08  Jakub Jelinek  <jakub@redhat.com>
19663         PR tree-optimization/79408
19664         * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
19665         constant, but SSA_NAME with a known integer range, use the minimum
19666         of that range instead of op1 to determine if modulo can be replaced
19667         with its first operand.
19669 2016-02-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19671         * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
19673 2017-02-08  Richard Biener  <rguenther@suse.de>
19675         PR tree-optimization/71824
19676         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
19677         Check all loops contained in the merged region.
19679 2017-02-07  Andrew Pinski  <apinski@cavium.com>
19681         * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
19683 2017-02-07  Andrew Pinski  <apinski@cavium.com>
19685         * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
19686         (thunderxt88): Likewise.
19687         (thunderxt81): Disable LSE and change v8.1 to v8.
19688         (thunderxt83): Likewise.
19690 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
19691             Richard Biener  <rguenther@suse.de>
19693         PR middle-end/79399
19694         * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
19695         type from int to size_t.
19696         * ira-costs.c (struct_costs_size): Change type from int to size_t.
19698 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
19700         PR rtl-optimization/79386
19701         * cprop.c (bypass_conditional_jumps): Initialize
19702         bypass_last_basic_block already before splitting bbs after
19703         unconditional traps...
19704         (bypass_conditional_jumps): ... rather than here.
19706         PR target/79299
19707         * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
19708         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
19709         *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
19710         fix -masm=intel patterns.
19712 2017-02-07  Richard Biener  <rguenther@suse.de>
19714         PR tree-optimization/79256
19715         PR middle-end/79278
19716         * builtins.c (get_object_alignment_2): Use min_align_of_type
19717         to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
19718         and ADJUST_FIELD_ALIGN.
19720         * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
19721         type parameter.
19722         * doc/tm.texi: Regenerate.
19723         * stor-layout.c (layout_decl): Adjust.
19724         (update_alignment_for_field): Likewise.
19725         (place_field): Likewise.
19726         (min_align_of_type): Likewise.
19727         * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
19728         * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
19729         * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
19730         * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
19731         * config/frv/frv.c (frv_adjust_field_align): Likewise.
19732         * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
19733         * config/i386/i386.c (x86_field_alignment): Likewise.
19734         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
19735         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
19736         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
19737         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
19738         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
19739         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
19740          Likewise.
19742         Revert
19743         2017-01-30  Richard Biener  <rguenther@suse.de>
19745         PR tree-optimization/79256
19746         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
19747         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
19748         alignment on TYPE.
19750 2017-02-07  Toma Tabacu  <toma.tabacu@imgtec.com>
19752         * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
19753         argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
19754         builtins to SImode and emit a zero-extend, if necessary.
19756 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
19758         * docs/invoke.texi (RISC-V Options): Alphabetize.
19760 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
19762         * doc/invoke.texi (RISC-V Options): Use two spaces to separate
19763         options.
19765 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
19767         * config/riscv/riscv.c: New file.
19768         * common/config/riscv/riscv-common.c: Likewise.
19769         * config.gcc: Likewise.
19770         * config/riscv/constraints.md: Likewise.
19771         * config/riscv/elf.h: Likewise.
19772         * config/riscv/generic.md: Likewise.
19773         * config/riscv/linux.h: Likewise.
19774         * config/riscv/multilib-generator: Likewise.
19775         * config/riscv/peephole.md: Likewise.
19776         * config/riscv/pic.md: Likewise.
19777         * config/riscv/predicates.md: Likewise.
19778         * config/riscv/riscv-builtins.c: Likewise.
19779         * config/riscv/riscv-c.c: Likewise.
19780         * config/riscv/riscv-ftypes.def: Likewise.
19781         * config/riscv/riscv-modes.def: Likewise.
19782         * config/riscv/riscv-opts.h: Likewise.
19783         * config/riscv/riscv-protos.h: Likewise.
19784         * config/riscv/riscv.h: Likewise.
19785         * config/riscv/riscv.md: Likewise.
19786         * config/riscv/riscv.opt: Likewise.
19787         * config/riscv/sync.md: Likewise.
19788         * config/riscv/t-elf-multilib: Likewise.
19789         * config/riscv/t-linux: Likewise.
19790         * config/riscv/t-linux-multilib: Likewise.
19791         * config/riscv/t-riscv: Likewise.
19792         * configure.ac: Likewise.
19793         * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
19794         Waterman as RISC-V maintainers.
19795         * doc/install.texi: Add RISC-V entries.
19796         * doc/invoke.texi: Add RISC-V options section.
19797         * doc/md.texi: Add RISC-V constraints section.
19798         * configure: Regenerated.
19800 2017-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
19802         PR target/66144
19803         * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
19804         false values to be constant vectors with all 0 or all 1 bits set.
19805         (vcondu<mode><mode>): Likewise.
19806         * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
19807         predicate.
19808         (fpmask_comparison_operator): Update comment.
19809         (vecint_comparison_operator): New predicate.
19810         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
19811         vector conditionals when the true and false values are constant
19812         vectors with all 0 bits or all 1 bits set.
19814 2017-02-06  Martin Sebor  <msebor@redhat.com>
19816         PR  tree-optimization/79376
19817         * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
19819 2017-02-06  Uros Bizjak  <ubizjak@gmail.com>
19821         * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
19822         explicit subreg RTX with operand 1.  Use VECTOR_MODE_P predicate
19823         to simplify split condition.
19825 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
19827         * omp-expand.c (oxpand_omp_atomic_fetch_op,
19828         expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
19829         false.
19831 2017-02-06  Segher Boessenkool  <segher@kernel.crashing.org>
19833         PR rtl-optimization/68664
19834         * target.def (can_speculate_insn): New hook.
19835         * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
19836         * doc/tm.texi: Regenerate.
19837         * sched-rgn.c (can_schedule_ready_p): Use the new hook.
19838         * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
19839         (rs6000_sched_can_speculate_insn): New function.
19841 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
19843         PR tree-optimization/79284
19844         * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
19845         * tree-vect-stmts.c (vect_get_vec_def_for_operand,
19846         vectorizable_mask_load_store, vectorizable_operation,
19847         vect_is_simple_cond, get_same_sized_vectype): Use it instead
19848         of comparing TREE_CODE of a type against BOOLEAN_TYPE.
19849         * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
19850         vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
19851         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
19852         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
19853         Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
19854         is_gimple_assign (stmt).  Replace another such test with
19855         is_gimple_assign (stmt).
19857 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
19859         PR target/78883
19860         * config/avr/avr.c (rtl-iter.h): Include it.
19861         (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
19862         (avr_legitimate_combined_insn): ...and implementation.
19864 2017-02-06  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19866         * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
19867         * config/s390/s390.c (s390_const_operand_ok)
19868         (s390_canonicalize_comparison, s390_extract_part)
19869         (s390_single_part, s390_contiguous_bitmask_nowrap_p)
19870         (s390_contiguous_bitmask_p, s390_rtx_costs)
19871         (legitimize_pic_address): Likewise.
19872         * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
19873         * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
19874         ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
19875         ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
19876         * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
19878 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
19880         * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
19881         REGNO($0) == REGNO($1).
19883 2017-02-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19885         * config/s390/linux.h(SIZE_TYPE): Add comment.
19887 2017-02-06  Julian Brown  <julian@codesourcery.com>
19888             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
19889             Virendra Pathak  <virendra.pathak@broadcom.com>
19891         * config/aarch64/aarch64-cores.def: Change the scheduler
19892         to Thunderx2t99.
19893         * config/aarch64/aarch64.md: Include thunderx2t99.md.
19894         * config/aarch64/thunderx2t99.md: New file.
19896 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
19898         * doc/standards.texi (Go Language): Update link to language
19899         standard.
19901 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
19903         * tree-eh.c (lower_resx): Sanitize profile.
19904         (cleanup_empty_eh_move_lp): Likewise.
19906 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
19908         PR tree-ssa/79347
19909         * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
19910         ELSE_PROB.
19911         * cfgloopmanip.h (loop_version): Update prototype.
19912         * modulo-sched.c (sms_schedule): Update call of loop_version.
19913         * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
19914         * tree-parloops.c (gen_parallel_loop): Likewise.
19915         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
19916         * tree-ssa-loop-split.c (split_loop): Likewise.
19917         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
19918         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
19920 2017-02-05  Martin Liska  <mliska@suse.cz>
19922         PR bootstrap/78985
19923         * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
19924         variable to NULL.
19925         (print_operand_address): Initialize a struct to zero.
19927 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
19929         * doc/contrib.texi (Contributors): Refer to Hans Boehm's
19930         garbage collector only in textual form.
19932 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
19934         * doc/extend.texi (x86 specific memory model extensions for
19935         transactional memory): Simplify a phrase.
19937 2017-02-05  Eric Botcazou  <ebotcazou@adacore.com>
19939         PR target/79353
19940         * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
19941         'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
19942         (atomic_storedi_1): Likewise.
19944 2017-02-04  Jakub Jelinek  <jakub@redhat.com>
19946         PR tree-optimization/79338
19947         * tree-parloops.c (gather_scalar_reductions): Don't call
19948         vect_analyze_loop_form for loop->inner before destroying loop's
19949         loop_vinfo.
19951 2017-02-03  Martin Sebor  <msebor@redhat.com>
19953         PR tree-optimization/79327
19954         * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
19955         when precision has resulted in leading zeros.
19956         (format_integer): Adjust the likely counter to assume an unknown
19957         argument that may be zero is non-zero.
19959 2017-02-03  Jason Merrill  <jason@redhat.com>
19961         PR c++/78689
19962         * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
19963         avoid copying non-taken branch.
19965 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
19967         PR tree-optimization/79340
19968         * tree-vect-loop.c (vectorizable_reduction): Release
19969         vec_defs elements after safe_splicing them into other vectors.
19970         Formatting fixes.
19972         PR tree-optimization/79327
19973         * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
19974         true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
19975         dirtype.
19976         (format_integer): Use wide_int_to_tree instead of build_int_cst
19977         + to_?hwi.  If argmin is NULL, just set argmin and argmax to
19978         TYPE_{MIN,MAX}_VALUE of argtype.  Simplify and fix computation
19979         of shortest and longest sequence.
19981 2017-02-03  Uros Bizjak  <ubizjak@gmail.com>
19983         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
19984         Use pextrd for TARGET_SSE4_1 when creating scalar copy.
19986 2017-02-03  Walter Lee  <walt@tilera.com>
19988         PR target/78862
19989         * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
19990         after initial stackframe link reg save.
19991         * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
19993 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
19995         PR target/79354
19996         * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
19997         wu for stxssp alternative.
19999 2017-02-03  Martin Sebor  <msebor@redhat.com>
20001         PR tree-optimization/79352
20002         * gimple-fold.c (get_range_strlen): Add argument.
20003         (get_range_strlen): Change return type to bool.
20004         (get_maxval_strlen): Pass in a dummy argument.
20005         * gimple-fold.h (get_range_strlen): Change return type to bool.
20006         * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
20007         * tree.h (array_at_struct_end_p): Add argument.
20008         * tree.c (array_at_struct_end_p): Handle it.
20010 2017-02-03  Martin Liska  <mliska@suse.cz>
20012         PR lto/66295
20013         * multiple_target.c (create_dispatcher_calls): Redirect edge
20014         from a caller of a dispatcher.
20015         (expand_target_clones): Make the clones local.
20016         (ipa_target_clone): Do both target clones and resolvers.
20017         (ipa_dispatcher_calls): Remove the pass.
20018         (pass_dispatcher_calls::gate): Likewise.
20019         (make_pass_dispatcher_calls): Likewise.
20020         * passes.def (pass_target_clone): Put as very first IPA early
20021         pass.
20023 2017-02-03  Martin Liska  <mliska@suse.cz>
20025         * symtab.c (symtab_node::binds_to_current_def_p): Bail out
20026         in case of a function with ifunc attribute.
20028 2017-02-03  Martin Liska  <mliska@suse.cz>
20030         * cgraph.c (cgraph_node::dump): Dump function version info.
20031         * symtab.c (symtab_node::dump_base): Add missing new line.
20033 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
20035         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
20036         (ifcombine_ifandif): Use it.
20038 2017-02-03  Martin Liska  <mliska@suse.cz>
20040         * doc/invoke.texi: Document default value for
20041         use-after-scope-direct-emission-threshold.
20043 2017-02-03  Martin Liska  <mliska@suse.cz>
20045         PR tree-optimization/79339
20046         * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
20047         (format_floating): Likewise.
20049 2017-02-03  Martin Liska  <mliska@suse.cz>
20051         PR ipa/79337
20052         * ipa-prop.c (ipa_node_params_t::insert): Remove current
20053         implementation.
20054         (ipa_node_params_t::remove): Likewise.
20055         * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
20056         initialization from removed ipa_node_params_t::insert.
20057         (ipa_node_params::~ipa_node_params): Move from removed
20058         ipa_node_params_t::release.
20059         * symbol-summary.h (symbol_summary::m_released): New member.
20060         Do not release a summary twice.  Do not allow to call finalizer
20061         for types of a summary that live in GGC memory.
20063 2017-02-02  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
20065         * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
20066         cmp_branch fusion.
20068 2017-02-02  Martin Sebor  <msebor@redhat.com>
20070         PR middle-end/79275
20071         * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
20072         (format_string): Tighten up the range of output for non-constant
20073         strings and correct the expected range for wide non-constant strings.
20075 2017-02-02  Martin Sebor  <msebor@redhat.com>
20077         * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
20079         PR middle-end/32003
20080         * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
20081         index.
20082         (-fdump-tree-@var): Add to index and document how to come up
20083         with pass-specific option and dump file names.
20084         (-fdump-passes): Clarify where to look for output.
20086 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
20088         PR middle-end/77445
20089         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
20090         statistics of the analyzed path; allow threading for speed when
20091         any of BBs along the path are optimized for speed.
20093 2017-02-02  Eric Botcazou  <ebotcazou@adacore.com>
20095         PR middle-end/78468
20096         * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
20097         settings of the virtual registers.
20099         Revert again
20100         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20102         * explow.c (get_dynamic_stack_size): Take known alignment of stack
20103         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
20104         needed.
20106 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20108         * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
20109         ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
20111 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20113         * config/s390/s390.md: Add missing comments with the expanded
20114         mnemonics.
20115         * config/s390/vector.md: Likewise.
20116         * config/s390/vx-builtins.md: Likewise.
20118 2017-02-02  Jakub Jelinek  <jakub@redhat.com>
20120         PR target/79197
20121         * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
20122         (fixuns_trunc<mode>di2): ... this, remove previous expander.  Put all
20123         conditions on a single line.
20125 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20127         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
20128         __S390_VX__ to __VX__.
20130 2017-02-01  Andrew Pinski  <apinski@cavium.com>
20132         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
20133         stmt_info to record_stmt_cost.
20134         (vect_get_known_peeling_cost): Pass stmt_info if known to
20135         record_stmt_cost.
20136         * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
20137         cpu_vector_cost field into
20138         scalar_int_stmt_cost and scalar_fp_stmt_cost.  Split vec_stmt_cost
20139         field into vec_int_stmt_cost and vec_fp_stmt_cost.
20140         * config/aarch64/aarch64.c (generic_vector_cost): Update for the
20141         splitting of scalar_stmt_cost and vec_stmt_cost.
20142         (thunderx_vector_cost): Likewise.
20143         (cortexa57_vector_cost): LIkewise.
20144         (exynosm1_vector_cost): Likewise.
20145         (xgene1_vector_cost): Likewise.
20146         (thunderx2t99_vector_cost): Improve after the splitting of the two
20147         fields.
20148         (aarch64_builtin_vectorization_cost): Update for the splitting of
20149         scalar_stmt_cost and vec_stmt_cost.
20151 2017-02-01  Torvald Riegel  <triegel@redhat.com>
20152             Richard Henderson  <rth@redhat.com>
20154         * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
20155         conditional on existance of a fast atomic load.
20156         * optabs-query.c (can_atomic_load_p): New function.
20157         * optabs-query.h (can_atomic_load_p): Declare it.
20158         * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
20159         no fast atomic load is available for the particular size of access.
20160         (expand_atomic_compare_and_swap): Likewise.
20161         (expand_atomic_load): Likewise.
20162         (expand_atomic_store): Likewise.
20163         (expand_atomic_fetch_op): Likewise.
20164         * testsuite/lib/target-supports.exp
20165         (check_effective_target_sync_int_128): Remove x86 because it provides
20166         no fast atomic load.
20167         (check_effective_target_sync_int_128_runtime): Likewise.
20169 2017-02-01  Richard Biener  <rguenther@suse.de>
20171         * graphite.c: Include tree-vectorizer.h for find_loop_location.
20172         (graphite_transform_loops): Provide opt-info for optimized nests.
20173         * tree-parloop.c (parallelize_loops): Provide opt-info for
20174         parallelized loops.
20176 2017-02-01  Richard Biener  <rguenther@suse.de>
20178         PR middle-end/79315
20179         * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
20180         was not set before.
20182 2017-02-01  Richard Biener  <rguenther@suse.de>
20184         PR tree-optimization/71824
20185         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
20186         Verify the loops are valid in the merged SESE region.
20187         (scop_detection::can_represent_loop_1): Check analyzing the
20188         evolution of the number of iterations in the region succeeds.
20190 2017-01-31  Ian Lance Taylor  <iant@golang.org>
20192         * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
20193         REG_ARGS_SIZE note to 32-bit push insns and call insn.
20195 2017-01-31  David Malcolm  <dmalcolm@redhat.com>
20197         PR preprocessor/79210
20198         * input.c (get_substring_ranges_for_loc): Replace line_width
20199         assertion with error-handling.
20201 2017-01-31  Richard Biener  <rguenther@suse.de>
20203         PR tree-optimization/77318
20204         * graphite-sese-to-poly.c (extract_affine): Fix assert.
20205         (create_pw_aff_from_tree): Take loop parameter.
20206         (add_condition_to_pbb): Pass loop of the condition to
20207         create_pw_aff_from_tree.
20209 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
20211         * config/s390/s390.c (s390_asan_shadow_offset): New function.
20212         (TARGET_ASAN_SHADOW_OFFSET): Redefine.
20214 2017-01-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
20216         PR target/78597
20217         PR target/79038
20218         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
20219         no longer used.
20220         (convert_int_to_float128): Likewise.
20221         * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
20222         (convert_int_to_float128): Likewise.
20223         * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
20224         (UNSPEC_IEEE128_CONVERT): Likewise.
20225         (floatsi<mode>2, FLOAT128 iterator): Bypass calling
20226         rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
20227         Use local variables for IBM extended format.
20228         (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
20229         (fix_trunc<mode>si2_fprs): Likewise.
20230         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
20231         (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
20232         (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
20233         to know that we can now have integers of all sizes in vector
20234         registers.
20235         (fix<uns>_<mode>di2_hw): Likewise.
20236         (float<uns>_<mode>si2_hw): Likewise.
20237         (fix_<mode>si2_hw): Likewise.
20238         (fixuns_<mode>si2_hw): Likewise.
20239         (float<uns>_<mode>di2_hw): Likewise.
20240         (float_<mode>di2_hw): Likewise.
20241         (float_<mode>si2_hw): Likewise.
20242         (floatuns_<mode>di2_hw): Likewise.
20243         (floatuns_<mode>si2_hw): Likewise.
20244         (xscvqp<su>wz_<mode>): Delete, no longer used.
20245         (xscvqp<su>dz_<mode>): Likewise.
20246         (xscv<su>dqp_<mode>): Likewise.
20247         (ieee128_mfvsrd_64bit): Likewise.
20248         (ieee128_mfvsrd_32bit): Likewise.
20249         (ieee128_mfvsrwz): Likewise.
20250         (ieee128_mtvsrw): Likewise.
20251         (ieee128_mtvsrd_64bit): Likewise.
20252         (ieee128_mtvsrd_32bit): Likewise.
20254 2017-01-31  Martin Liska  <mliska@suse.cz>
20256         PR ipa/79285
20257         * ipa-prop.c (ipa_free_all_node_params): Call release method
20258         instead of ~sumbol_summary to not to trigger double times
20259         dtor of hash_map.
20261 2017-01-31  Aldy Hernandez  <aldyh@redhat.com>
20263         PR tree-optimization/71691
20264         * bitmap.h (class auto_bitmap): New.
20265         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
20266         is_maybe_undefined instead of ssa_undefined_value_p.
20268 2017-01-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20270         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
20271         __S390_ARCH_LEVEL__ to __ARCH__.
20273 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
20275         PR tree-optimization/79267
20276         * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
20277         if should_remove_lhs_p is true.
20279 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
20281         PR debug/63238
20282         * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
20283         (add_alignment_attribute): New.
20284         (base_type_die): Add alignment attribute.
20285         (subrange_type_die): Likewise.
20286         (modified_type_die): Likewise.
20287         (gen_array_type_die): Likewise.
20288         (gen_descr_array_type_die: Likewise.
20289         (gen_enumeration_type_die): Likewise.
20290         (gen_subprogram_die): Likewise.
20291         (gen_variable_die): Likewise.
20292         (gen_field_die): Likewise.
20293         (gen_ptr_to_mbr_type_die): Likewise.
20294         (gen_struct_or_union_type_die): Likewise.
20295         (gen_subroutine_type_die): Likewise.
20296         (gen_typedef_die): Likewise.
20297         (base_type_cmp): Compare alignment attribute.
20299 2017-01-30  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
20301         PR target/79170
20302         * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
20303         (setb_unsigned) New pattern for setb with CCUNS.
20304         * config/rs6000/rs6000.c (expand_block_compare): Use a different
20305         subfc./subfe sequence to avoid overflow problems.  Generate a
20306         shorter sequence with cmpld/setb for power9.
20307         * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
20308         for generating subfc. instruction.
20309         (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
20310         now uses this instruction.
20312 2017-01-30  Ian Lance Taylor  <iant@google.com>
20314         PR debug/79289
20315         * dwarf2out.c (gen_type_die_with_usage): When picking a variant
20316         for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
20318 2017-01-30  Martin Sebor  <msebor@redhat.com>
20320         * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
20321         Move constant to the right of a relational operator.
20322         (get_mpfr_format_length, format_character, format_string): Ditto.
20323         (should_warn_p, maybe_warn): Same.
20325         * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
20327 2017-01-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
20329         PR lto/79061
20330         * asan.c (get_translation_unit_decl): Remove function.
20331         (asan_add_global): Force has_dynamic_init to zero in LTO mode.
20333 2017-01-30  Martin Liska  <mliska@suse.cz>
20335         PR gcov-profile/79259
20336         * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
20337         -fprofile-generate.
20339 2017-01-30  Martin Liska  <mliska@suse.cz>
20341         PR bootstrap/78985
20342         * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
20343         Initialize variables with NULL value.
20345 2017-01-30  Richard Earnshaw  <rearnsh@arm.com>
20347         PR target/79260
20348         * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
20349         tm_p_file.
20350         * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
20352 2017-01-30  Richard Biener  <rguenther@suse.de>
20354         PR tree-optimization/79276
20355         * tree-vrp.c (process_assert_insertions): Properly adjust common
20356         when removing a duplicate.
20358         * gcc.dg/torture/pr79276.c: New testcase.
20360 2017-01-30  Richard Biener  <rguenther@suse.de>
20362         PR tree-optimization/79256
20363         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
20364         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
20365         alignment on TYPE.
20366         * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
20368 2017-01-30  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20370         PR target/79240
20371         * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
20372         ("*r<noxa>sbg_<mode>_sll_bitmask")
20373         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
20374         ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
20375         Use contiguous_bitmask_nowrap_operand.
20377 2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20379         PR target/79268
20380         * config/rs6000/altivec.h (vec_xl): Revise #define.
20381         (vec_xst): Likewise.
20383 2017-01-27  Uros Bizjak  <ubizjak@gmail.com>
20385         * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
20387 2017-01-27  Bernd Schmidt  <bschmidt@redhat.com>
20389         PR rtl-optimization/79194
20390         * cprop.c (one_cprop_pass): Move deletion of code after unconditional
20391         traps before call to bypass_conditional_jumps.
20393 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
20395         PR tree-optimization/71374
20396         * lra-constraints.c (check_conflict_input_operands): New.
20397         (match_reload): Use it.
20399 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
20401         PR target/79131
20402         * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
20403         account to calculate conflict_set.
20405 2017-01-27  Bin Cheng  <bin.cheng@arm.com>
20407         PR rtl-optimization/78559
20408         * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
20409         other_insn in combine.
20411 2017-01-27  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
20413         * builtin-types.def: Use unsigned_char_type_node for BT_UINT8.  Use
20414         uint16_type_node for BT_UINT16.
20416 2017-01-27  David Malcolm  <dmalcolm@redhat.com>
20418         * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
20419         "RTL Tests" to menu.
20420         (GIMPLE Tests): New node.
20421         (RTL Tests): New node.
20423 2017-01-27  Richard Biener  <rguenther@suse.de>
20425         PR tree-optimization/79245
20426         * tree-loop-distribution.c (distribute_loop): Apply cost
20427         modeling also to detected patterns.
20429 2017-01-27  Richard Biener  <rguenther@suse.de>
20431         PR tree-optimization/71433
20432         * tree-vrp.c (register_new_assert_for): Revert earlier changes.
20433         (compare_assert_loc): New function.
20434         (process_assert_insertions): Sort and optimize assert locations
20435         to remove duplicates and push down identical assertions on
20436         edges to their destination block.
20438 2017-01-27  Richard Biener  <rguenther@suse.de>
20440         PR tree-optimization/79244
20441         * tree-vrp.c (remove_range_assertions): Forcefully propagate
20442         out SSA names even if abnormal.
20444 2017-01-27  Jakub Jelinek  <jakub@redhat.com>
20446         * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
20447         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
20448         instead of MPFR_RNDN.
20450 2017-01-27  Richard Earnshaw  <rearnsha@arm.com>
20452         PR target/79239
20453         * arm.c (arm_option_override): Don't call build_target_option_node
20454         until after doing all option overrides.
20455         (arm_valid_target_attribute_tree): Likewise.
20457 2017-01-27  Martin Liska  <mliska@suse.cz>
20459         * doc/invoke.texi (-fprofile-arcs): Document profiling support
20460         for {cd}tors and C++ {cd}tors.
20462 2017-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20464         * config/s390/s390.md ("*setmem_long_and")
20465         ("*setmem_long_and_31z"): Use zero_extend instead of and.
20467 2017-01-26  Martin Sebor  <msebor@redhat.com>
20469         * gimple-ssa-sprintf.c (format_floating): Simplify the computation
20470         of precision.
20472 2017-01-26  Martin Sebor  <msebor@redhat.com>
20474         * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
20475         HAVE_DFmode before using XFmode or DFmode.
20476         (parse_directive): Avoid using the z length modifier to avoid
20477         the ISO C++98 does not support the â€˜z’ gnu_printf length modifier.
20479         PR middle-end/78703
20480         * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
20481         to accept adjustment as an array.
20482         (get_int_range): New function.
20483         (struct directive): Make width and prec arrays.
20484         (directive::set_width, directive::set_precision): Call get_int_range.
20485         (format_integer, format_floating): Handle width and precision ranges.
20486         (format_string, parse_directive): Same.
20488 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
20490         PR debug/79129
20491         * dwarf2out.c (generate_skeleton_bottom_up): For children with
20492         comdat_type_p set, just clone them, but keep the children in the
20493         original DIE.
20495         PR debug/78835
20496         * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
20497         which have direct callers with -fvar-tracking-assignments enabled
20498         in the current TU.
20499         (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
20500         inside of type units.
20502 2017-01-26  Martin Sebor  <msebor@redhat.com>
20504         PR middle-end/78703
20505         * gimple-ssa-sprintf.c (struct result_range): Add likely and
20506         unlikely counters.
20507         (struct format_result): Replace number_chars, number_chars_min,
20508         and number_chars_max with a single member of struct result_range.
20509         Remove bounded.
20510         (format_result::operator+=): Adjust.
20511         (struct fmtresult): Remove bounded.  Handle likely and unlikely
20512         counters.
20513         (fmtresult::adjust_for_width_or_precision): New function.
20514         (fmtresult:type_max_digits): New function.
20515         (bytes_remaining): Handle likely and unlikely counters.
20516         (min_bytes_remaining): Remove.
20517         (format_percent): Simplify.
20518         (format_integer, format_floating): Set likely and unlikely counters.
20519         (get_string_length, format_character, format_string): Same.
20520         (format_plain, should_warn_p): New function.
20521         (maybe_warn): Call should_warn_p.  Update diagnostic messages
20522         and handle those for all directives, including plain strings.
20523         (format_directive): Handle likely and unlikely counters.
20524         Remove unnecessary quoting from diagnostics.  Add an informational
20525         note.
20526         (add_bytes): Remove.
20527         (pass_sprintf_length::compute_format_length): Simplify.
20528         (try_substitute_return_value): Handle likely and unlikely counters.
20530 2017-01-26  Carl Love  <cel@us.ibm.com>
20532         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
20533         bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
20535 2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>
20537         PR target/79131
20538         * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
20539         endianess for subregs into account.
20540         * lra-constraints.c (lra_constraints): Do risky transformations
20541         always on the first iteration.
20542         * lra-lives.c (check_pseudos_live_through_calls): Add arg
20543         last_call_used_reg_set.
20544         (process_bb_lives): Define and use last_call_used_reg_set.
20545         * lra.c (lra): Always continue after lra_constraints on the first
20546         iteration.
20548 2017-01-26  Kirill Yukhin  <kirill.yukhin@gmail.com>
20550         * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
20551         constant.
20552         * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
20554 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
20556         * config/i386/avx512fintrin.h (_ktest_mask16_u8,
20557         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
20558         * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
20559         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
20560         * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
20561         __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
20562         OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
20563         * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
20564         (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
20566 2017-01-26  Marek Polacek  <polacek@redhat.com>
20568         PR c/79199
20569         * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
20570         for the third operand.
20572 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
20574         PR middle-end/79236
20575         * omp-low.c (struct omp_context): Add simt_stmt field.
20576         (scan_omp_for): Return omp_context *.
20577         (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
20578         context to the _simt_ SIMD stmt.
20579         (lower_omp_for): For combined SIMD with sibling _simt_
20580         SIMD, make sure to use the same decls in _looptemp_
20581         clauses as in the sibling.
20583 2017-01-26  David Sherwood  <david.sherwood@arm.com>
20585         PR middle-end/79212
20586         * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
20587         all contexts.
20589 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
20591         PR target/70465
20592         * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
20593         emit fld b; fld a; if possible.
20595         * brig-builtins.def: Update copyright years.
20596         * config/arm/arm_acle_builtins.def: Update copyright years.
20598 2017-01-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
20600         PR target/79179
20601         * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
20602         constraint instead of o for the stxsd instruction.
20604 2017-01-25  Carl Love  <cel@us.ibm.com>
20606         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
20607         of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
20609 2017-01-25  Jonathan Wakely  <jwakely@redhat.com>
20611         * doc/invoke.texi (C++ Dialect Options): Fix typo.
20613 2017-01-25  Richard Biener  <rguenther@suse.de>
20615         PR tree-optimization/69264
20616         * target.def (vector_alignment_reachable): Improve documentation.
20617         * doc/tm.texi: Regenerate.
20618         * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
20619         and add a comment.
20620         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
20621         earlier changes with respect to TYPE_USER_ALIGN.
20622         (vector_alignment_reachable_p): Likewise.  Improve dumping.
20624 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20626         PR target/79145
20627         * config/arm/arm.md (xordi3): Force constant operand into a register
20628         for TARGET_IWMMXT.
20630 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20632         * doc/invoke.texi (-fstore-merging): Correct default optimization
20633         levels at which it is enabled.
20634         (-O): Move -fstore-merging from list to...
20635         (-O2): ... Here.
20637 2017-01-25  Richard Biener  <rguenther@suse.de>
20639         PR debug/78363
20640         * omp-expand.c: Include debug.h.
20641         (expand_omp_taskreg): Make sure to generate early debug before
20642         outlining anything from a function.
20643         (expand_omp_target): Likewise.
20644         (grid_expand_target_grid_body): Likewise.
20646 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
20648         PR lto/79061
20649         * asan.c (get_translation_unit_decl): New function.
20650         (asan_add_global): Extract modules file name from globals
20651         TRANSLATION_UNIT_DECL name.
20653 2017-01-24  Eric Botcazou  <ebotcazou@adacore.com>
20655         PR target/77439
20656         * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
20657         for long calls with APCS frame and VFP.
20659 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
20661         * cfg.c (original_copy_tables_initialized_p): New function.
20662         * cfg.h (original_copy_tables_initialized_p): New decl.
20663         * cfgrtl.c (relink_block_chain): Guard the call to
20664         free_original_copy_tables with a call to
20665         original_copy_tables_initialized_p.
20666         * cgraph.h (symtab_node::native_rtl_p): New decl.
20667         * cgraphunit.c (symtab_node::native_rtl_p): New function.
20668         (symtab_node::needed_p): Don't assert for early assembly output
20669         for __RTL functions.
20670         (cgraph_node::finalize_function): Set "force_output" for __RTL
20671         functions.
20672         (cgraph_node::analyze): Bail out early for __RTL functions.
20673         (analyze_functions): Update assertion to support __RTL functions.
20674         (cgraph_node::expand): Bail out early for __RTL functions.
20675         * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
20676         __RTL functions.
20677         * function.h (struct function): Update comment for field
20678         "pass_startwith".
20679         * gimple-expr.c: Include "tree-pass.h".
20680         (gimple_has_body_p): Return false for __RTL functions.
20681         * Makefile.in (OBJS): Add run-rtl-passes.o.
20682         * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
20683         accessor.
20684         (gcc::pass_manager::get_clean_slate): New accessor.
20685         * passes.c: Include "insn-addr.h".
20686         (should_skip_pass_p): Add logging.  Update logic for running
20687         "expand" to be compatible with both __GIMPLE and __RTL.  Guard
20688         property-provider override so it is only done for gimple passes.
20689         Don't skip dfinit.
20690         (skip_pass): New function.
20691         (execute_one_pass): Call skip_pass when skipping passes.
20692         * read-md.c (md_reader::read_char): Support filtering
20693         the input to a subset of line numbers.
20694         (md_reader::md_reader): Initialize fields
20695         m_first_line and m_last_line.
20696         (md_reader::read_file_fragment): New function.
20697         * read-md.h (md_reader::read_file_fragment): New decl.
20698         (md_reader::m_first_line): New field.
20699         (md_reader::m_last_line): New field.
20700         * read-rtl-function.c (function_reader::create_function): Only
20701         create cfun if it doesn't already exist.  Set PROP_rtl on cfun's
20702         curr_properties.  Set DECL_INITIAL to a dummy block.
20703         (read_rtl_function_body_from_file_range): New function.
20704         * read-rtl-function.h (read_rtl_function_body_from_file_range):
20705         New decl.
20706         * run-rtl-passes.c: New file.
20707         * run-rtl-passes.h: New file.
20709 2017-01-24  Jeff Law  <law@redhat.com>
20711         * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
20712         buffer size.
20714 2017-01-24  Bin Cheng  <bin.cheng@arm.com>
20716         PR tree-optimization/79159
20717         * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
20718         (record_nonwrapping_iv): Improve boundary using above function if no
20719         value range information.
20721 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
20722             Martin Jambor  <mjambor@suse.cz>
20724         * brig-builtins.def: New file.
20725         * builtins.def (DEF_HSAIL_BUILTIN): New macro.
20726         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
20727         (DEF_HSAIL_SAT_BUILTIN): Likewise.
20728         (DEF_HSAIL_INTR_BUILTIN): Likewise.
20729         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
20730         * builtin-types.def (BT_INT8): New.
20731         (BT_INT16): Likewise.
20732         (BT_UINT8): Likewise.
20733         (BT_UINT16): Likewise.
20734         (BT_FN_ULONG): Likewise.
20735         (BT_FN_UINT_INT): Likewise.
20736         (BT_FN_UINT_ULONG): Likewise.
20737         (BT_FN_UINT_LONG): Likewise.
20738         (BT_FN_UINT_PTR): Likewise.
20739         (BT_FN_ULONG_PTR): Likewise.
20740         (BT_FN_INT8_FLOAT): Likewise.
20741         (BT_FN_INT16_FLOAT): Likewise.
20742         (BT_FN_UINT32_FLOAT): Likewise.
20743         (BT_FN_UINT16_FLOAT): Likewise.
20744         (BT_FN_UINT8_FLOAT): Likewise.
20745         (BT_FN_UINT64_FLOAT): Likewise.
20746         (BT_FN_UINT16_UINT32): Likewise.
20747         (BT_FN_UINT32_UINT16): Likewise.
20748         (BT_FN_UINT16_UINT16_UINT16): Likewise.
20749         (BT_FN_INT_PTR_INT): Likewise.
20750         (BT_FN_UINT_PTR_UINT): Likewise.
20751         (BT_FN_LONG_PTR_LONG): Likewise.
20752         (BT_FN_ULONG_PTR_ULONG): Likewise.
20753         (BT_FN_VOID_UINT64_UINT64): Likewise.
20754         (BT_FN_UINT8_UINT8_UINT8): Likewise.
20755         (BT_FN_INT8_INT8_INT8): Likewise.
20756         (BT_FN_INT16_INT16_INT16): Likewise.
20757         (BT_FN_INT_INT_INT): Likewise.
20758         (BT_FN_UINT_FLOAT_UINT): Likewise.
20759         (BT_FN_FLOAT_UINT_UINT): Likewise.
20760         (BT_FN_ULONG_UINT_UINT): Likewise.
20761         (BT_FN_ULONG_UINT_PTR): Likewise.
20762         (BT_FN_ULONG_ULONG_ULONG): Likewise.
20763         (BT_FN_UINT_UINT_UINT): Likewise.
20764         (BT_FN_VOID_UINT_PTR): Likewise.
20765         (BT_FN_UINT_UINT_PTR: Likewise.
20766         (BT_FN_UINT32_UINT64_PTR): Likewise.
20767         (BT_FN_INT_INT_UINT_UINT): Likewise.
20768         (BT_FN_UINT_UINT_UINT_UINT): Likewise.
20769         (BT_FN_UINT_UINT_UINT_PTR): Likewise.
20770         (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
20771         (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
20772         (BT_FN_LONG_LONG_UINT_UINT): Likewise.
20773         (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
20774         (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
20775         (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
20776         (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
20777         (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
20778         (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
20779         * doc/frontends.texi: List BRIG FE.
20780         * doc/install.texi (Testing): Add BRIG tesring requirements.
20781         * doc/invoke.texi (Overall Options): Mention BRIG.
20782         * doc/standards.texi (Standards): Doucment BRIG HSA version.
20784 2017-01-24  Richard Biener  <rguenther@suse.de>
20786         PR translation/79208
20787         * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
20789 2017-01-24  Martin Jambor  <mjambor@suse.cz>
20791         PR bootstrap/79198
20792         * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
20793         * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
20794         and known_contexts.
20796 2017-01-24  Aldy Hernandez  <aldyh@redhat.com>
20798         PR middle-end/79123
20799         * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
20800         casts from signed to unsigned really don't have a range.
20802 2017-01-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
20804         * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
20805         GMP_RNDx for compatiblity.
20807 2017-01-24  Martin Liska  <mliska@suse.cz>
20809         PR bootstrap/79132
20810         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
20811         that would prevent us to call alloca with -1 as argument.
20813 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
20815         * dwarf2out.c (output_compilation_unit_header, output_file_names):
20816         Avoid -Wformat-security warning.
20818 2017-01-23  Andrew Pinski  <apinski@cavium.com>
20820         * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
20821         cost table.
20823 2017-01-23  Martin Sebor  <msebor@redhat.com>
20825         PR middle-end/78703
20826         * gimple-ssa-sprintf.c (warn_level): New global.
20827         (format_integer): Use it here and throughout the rest of the file.
20828         Use the same switch to compute sign as base.
20829         (maybe_warn): New function.
20830         (format_directive): Factor out warnings into maybe_warn.
20831         Add debugging output.  Use warn_level.
20832         (add_bytes): Use warn_level.
20833         (pass_sprintf_length::compute_format_length): Add debugging output.
20834         (try_substitute_return_value): Same.
20835         (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
20837         PR middle-end/78703
20838         * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
20839         (struct fmtresult, format_integer, format_floating): Adjust.
20840         (fmtresult::fmtresult): Set max correctly in two argument ctor.
20841         (get_string_length, format_string,format_directive): Same.
20842         (pass_sprintf_length::compute_format_length): Same.
20843         (try_substitute_return_value): Simplify slightly.
20845         PR middle-end/78703
20846         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
20847         (fmtresult::operator+=): Outlined.
20848         (struct fmtresult): Add ctors.
20849         (struct conversion_spec): Rename...
20850         (struct directive): ...to this.  Add and remove data members.
20851         (directive::set_width, directive::set_precision): New functions.
20852         (format_percent): Use fmtresult ctor.
20853         (get_width_and_precision): Remove.
20854         (format_integer): Make naming changes.  Avoid computing width and
20855         precision.
20856         (format_floating): Same.  Adjust indentation.
20857         (format_character, format_none): New functions.
20858         (format_string): Moved character handling to format_character.
20859         (format_directive): Remove arguments, change return type.
20860         (parse_directive): New function.
20861         (pass_sprintf_length::compute_format_length): Move directive
20862         parsing to parse_directive.
20864 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
20866         * tree.h (assign_assembler_name_if_neeeded): Rename to ...
20867         (assign_assembler_name_if_needed): ... this.
20868         * tree.c (assign_assembler_name_if_neeeded): Rename to ...
20869         (assign_assembler_name_if_needed): ... this.
20870         (free_lang_data_in_cgraph): Adjust callers.
20871         * cgraphunit.c (cgraph_node::analyze): Likewise.
20872         * omp-expand.c (expand_omp_taskreg, expand_omp_target):
20873         Likewise.
20875 2017-01-23  Richard Biener  <rguenther@suse.de>
20877         PR tree-optimization/79088
20878         PR tree-optimization/79188
20879         * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
20880         resetting loop bounds after last path deletion.  Reset loop
20881         bounds of the target loop, make code match the comments.
20882         * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
20883         Make sure loops need no fixups.
20885 2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
20887         * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
20888         exponent support with double type for first argument.
20889         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
20890         type returned by __builtin_vec_extract_sig,
20891         __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
20892         functions from "vector int" to "vector unsigned int" or from
20893         "vector long long int" to "vector unsigned long long int".
20894         Changed type returned by __builtin_vec_extract_exp,
20895         __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
20896         functions from "vector int" to "vector unsigned int" or from
20897         "vector long long int" to "vector unsigned long long int".
20898         Changed return type of __builtin_vec_test_data_class,
20899         __builtin_vec_test_data_class_sp, and
20900         __builtin_vec_test_data_class_dp from "vector int" to
20901         "vector bool int" or from "vector long long int" to "vector bool
20902         long long int" and changed second argument type from "unsigned
20903         int" to "int".  Added new overloaded function forms "vector float
20904         __builtin_vec_insert_exp (vector float, vector unsigned int)" and
20905         "vector float __builtin_vec_insert_exp_sp (vector float, vector
20906         unsigned int)" and "vector double __builtin_vec_insert_exp (vector
20907         double, vector unsigned long long int)" and "vector double
20908         __builtin_vec_insert_exp_dp (vector double, vector unsigned long
20909         long int)".  Changed return type of
20910         __builtin_scalar_test_data_class and
20911         __builtin_scalar_test_data_class_sp and
20912         __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
20913         int" and changed second argument from "unsigned int" to "int".
20914         Changed type returned by __builtin_scalar_test_neg,
20915         __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
20916         from "int" to "bool int".  Added new overloaded function form
20917         "double __builtin_scalar_insert_exp (double, unsigned long long int)".
20918         * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
20919         exponent double-precision with floating point first argument.
20920         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
20921         documentation of scalar_test_data_class, scalar_test_neg,
20922         scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
20923         vector_extract_exp, vec_extract_sig, vec_insert_exp, and
20924         vec_test_data_class built-in functions to reflect refinements in
20925         their type signatures.
20927 2017-01-23  Andreas Tobler  <andreast@gcc.gnu.org>
20929         * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
20930         size of buf.
20931         (aarch64_elf_asm_destructor): Likewise.
20933 2017-01-23  Bernd Schmidt  <bschmidt@redhat.com>
20935         PR rtl-optimization/78634
20936         * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
20937         (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
20938         * ifcvt.c (noce_try_cmove): Add missing cost check.
20940         PR rtl-optimization/71724
20941         * combine.c (if_then_else_cond): Look for situations where it is
20942         beneficial to undo the work of one of the recursive calls.
20944 2017-01-23  Bin Cheng  <bin.cheng@arm.com>
20946         PR tree-optimization/70754
20947         * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
20948         (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE.  Insert
20949         combined stmt before it if not NULL.
20950         (combine_chains): Process refs reversely and compute dominance point
20951         for root ref.
20953 2017-01-23  Martin Liska  <mliska@suse.cz>
20955         PR tree-optimization/79196
20956         * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
20957         (fold_strstr_to_strncmp): ... this.  Fold the pattern to strncmp
20958         instead of memcmp.
20959         (strlen_optimize_stmt): Call the renamed function.
20961 2017-01-23  Michael Matz  <matz@suse.de>
20963         PR tree-optimization/78384
20964         * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
20966 2017-01-23  Richard Biener  <rguenther@suse.de>
20968         PR tree-optimization/79186
20969         * tree-vrp.c (register_new_assert_for): Make sure we've seen
20970         both incoming edges before moving an assert.
20972 2017-01-23  Martin Jambor  <mjambor@suse.cz>
20974         * ipa-prop.c (load_from_param_1): Removed.
20975         (load_from_unmodified_param): Bits from load_from_param_1 put back
20976         here.
20977         (load_from_param): Removed.
20978         (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
20979         with stmt.  Reverted back to use of load_from_unmodified_param.
20981 2017-01-23  Martin Jambor  <mjambor@suse.cz>
20983         PR ipa/79108
20984         * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
20985         (ipa_node_params): Annotate with GTY((for_user)).  Make descriptors
20986         field a pointer to garbage collected vector, mark lattices and
20987         ipcp_orig_node with GTY((skip)).
20988         (ipa_get_param_count): Adjust to descriptors being a pointer.
20989         (ipa_get_param): Likewise.
20990         (ipa_get_type): Likewise.
20991         (ipa_get_param_move_cost): Likewise.
20992         (ipa_set_param_used): Likewise.
20993         (ipa_get_controlled_uses): Likewise.
20994         (ipa_set_controlled_uses): Likewise.
20995         (ipa_is_param_used): Likewise.
20996         (ipa_node_params_t): Move into garbage collector.  New methods insert
20997         and remove.
20998         (ipa_node_params_sum): Annotate wth GTY(()).
20999         (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
21000         garbage collected.
21001         (ipa_load_from_parm_agg): Adjust declaration.
21002         * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
21003         * ipa-profile.c (ipa_profile): Likewise.
21004         * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
21005         (ipa_populate_param_decls): Make descriptors parameter garbage
21006         collected.
21007         (ipa_dump_param): Adjust to descriptors being a pointer.
21008         (ipa_alloc_node_params): Likewise.
21009         (ipa_initialize_node_params): Likewise.
21010         (load_from_param_1): Make descriptors parameter garbage collected.
21011         (load_from_unmodified_param): Likewise.
21012         (load_from_param): Likewise.
21013         (ipa_load_from_parm_agg): Likewise.
21014         (ipa_node_params::~ipa_node_params): Removed.
21015         (ipa_free_all_node_params): Remove call to delete operator.
21016         (ipa_node_params_t::insert): New.
21017         (ipa_node_params_t::remove): Likewise.
21018         (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
21019         copy known_csts and known_contexts vectors.
21020         (ipa_read_node_info): Adjust to descriptors being a pointer.
21021         (ipcp_modif_dom_walker): Make m_descriptors field garbage
21022         collected.
21023         (ipcp_transform_function): Make descriptors variable garbage
21024         collected.
21026 2017-01-23  Andrew Senkevich  <andrew.senkevich@intel.com>
21028         * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
21029         * config/i386/avx512dqintrin.h: Ditto.
21030         * config/i386/avx512fintrin.h: Ditto.
21031         * config/i386/i386.c: Handle new builtins.
21032         * config/i386/i386-builtin.def: Add new builtins.
21033         * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
21034         (UNSPEC_KORTEST, UNSPEC_KTEST): New.
21036 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
21037             Martin Liska  <mliska@suse.cz>
21039         * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
21040         * asan.c (asan_expand_poison_ifn): Support stores and use
21041         appropriate ASAN report function.
21042         * internal-fn.c (expand_ASAN_POISON_USE): New function.
21043         * internal-fn.def (ASAN_POISON_USE): Declare.
21044         * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
21045         (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
21046         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
21047         ASAN_POISON calls w/o LHS.
21048         * tree-ssa.c (execute_update_addresses_taken): Create clobber
21049         for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
21050         from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
21051         * gimplify.c (asan_poison_variables): Add attribute
21052         use_after_scope_memory to variables that really needs to live
21053         in memory.
21054         * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
21055         having the attribute.
21057 2017-01-23  Martin Liska  <mliska@suse.cz>
21059         * asan.c (create_asan_shadow_var): New function.
21060         (asan_expand_poison_ifn): Likewise.
21061         * asan.h (asan_expand_poison_ifn): New declaration.
21062         * internal-fn.c (expand_ASAN_POISON): Likewise.
21063         * internal-fn.def (ASAN_POISON): New builtin.
21064         * sanopt.c (pass_sanopt::execute): Expand
21065         asan_expand_poison_ifn.
21066         * tree-inline.c (copy_decl_for_dup_finish): Make function
21067         external.
21068         * tree-inline.h (copy_decl_for_dup_finish): Likewise.
21069         * tree-ssa.c (is_asan_mark_p): New function.
21070         (execute_update_addresses_taken): Rewrite local variables
21071         (identified just by use-after-scope as addressable) into SSA.
21073 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
21075         * doc/install.texi (Specific): opensource.apple.com uses https
21076         now. Remove trailing slash.
21078 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
21080         * README.Portability: Remove note on an Irix compatibility issue.
21082 2017-01-22  Dimitry Andric <dim@FreeBSD.org>
21084         * gcov.c (INCLUDE_ALGORITHM): Define.
21085         (INCLUDE_VECTOR): Define.
21086         No longer include <vector> and <algorithm> directly.
21088 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
21090         * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
21091         to https.
21092         * doc/invoke.texi (Code Gen Options): Ditto.
21094 2017-01-21  Jan Hubicka  <hubicka@ucw.cz>
21096         PR lto/78407
21097         * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
21099 2017-01-21  Bernd Schmidt  <bschmidt@redhat.com>
21101         rtl-optimization/79125
21102         * cprop.c (local_cprop_pass): Handle cases where we make an
21103         unconditional trap.
21105 2017-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
21107         PR target/61729
21108         PR target/77850
21109         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
21110         read from, for big endian.
21112 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
21114         * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
21115         register pauth builtins for LP64 only.
21117 2017-01-20  Marek Polacek  <polacek@redhat.com>
21119         PR c/79152
21120         * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
21121         non-case labels.
21123 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
21125         * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
21126         of safelen status.
21127         * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
21128         * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
21129         * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
21131 2017-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21133         PR target/71270
21134         * config/arm/arm.c (neon_valid_immediate): Reject vector constants
21135         in big-endian mode when they are not a single duplicated value.
21137 2017-01-20  Richard Biener  <rguenther@suse.de>
21139         * BASE-VER: Bump to 7.0.1.
21141 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
21143         * omp-low.c (omplow_simd_context): New struct.  Use it...
21144         (lower_rec_simd_input_clauses): ...here and...
21145         (lower_rec_input_clauses): ...here to hold common data.  Adjust all
21146         references to idx, lane, max_vf, is_simt.
21148 2017-01-20  Graham Markall  <graham.markall@embecosm.com>
21150         * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
21151         mcpu=nps400.
21153 2017-01-20  Martin Jambor  <mjambor@suse.cz>
21155         * hsa.h: Renaed to hsa-common.h.  Adjusted a comment.
21156         * hsa.c: Renaed to hsa-common.c.  Change include of gt-hsa.h to
21157         gt-hsa-common.h.
21158         * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
21159         (GTFILES): Rename hsa.c to hsa-common.c.
21160         * hsa-brig.c: Change include of hsa.h to hsa-common.h.
21161         * hsa-dump.c: Likewise.
21162         * hsa-gen.c: Likewise.
21163         * hsa-regalloc.c: Likewise.
21164         * ipa-hsa.c: Likewise.
21165         * omp-expand.c: Likewise.
21166         * omp-low.c: Likewise.
21167         * toplev.c: Likewise.
21169 2017-01-20  Marek Polacek  <polacek@redhat.com>
21171         PR c/64279
21172         * doc/invoke.texi: Document -Wduplicated-branches.
21173         * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
21174         COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
21175         POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
21176         STATEMENT_LIST, and RETURN_EXPR.  For non-pure non-const functions
21177         return 0 only when not OEP_LEXICOGRAPHIC.
21178         (fold_build_cleanup_point_expr): Use the expression
21179         location when building CLEANUP_POINT_EXPR.
21180         * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
21181         * tree.c (add_expr): Handle error_mark_node.
21183 2017-01-20  Martin Liska  <mliska@suse.cz>
21185         PR lto/69188
21186         * tree-profile.c (init_ic_make_global_vars): Do not call
21187         finalize_decl.
21188         (gimple_init_gcov_profiler): Likewise.
21190 2017-01-20  Martin Liska  <mliska@suse.cz>
21192         PR ipa/71190
21193         * cgraph.h (maybe_create_reference): Remove argument and
21194         update comment.
21195         * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
21196         argument.
21197         * ipa-cp.c (create_specialized_node): Likewise.
21198         * symtab.c (symtab_node::maybe_create_reference): Handle
21199         VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
21201 2017-01-20  Martin Liska  <mliska@suse.cz>
21203         * read-rtl-function.c (function_reader::create_function): Use
21204         build_decl instread of build_decl_stat.
21206 2017-01-20  Andrew Senkevich  <andrew.senkevich@intel.com>
21208         * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
21209         * config/i386/avx512dqintrin.h: Ditto.
21210         * config/i386/avx512fintrin.h: Ditto.
21211         * config/i386/i386-builtin-types.def: Add new types.
21212         * config/i386/i386.c: Handle new types.
21213         * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
21214         (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
21215         (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
21216         (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
21217         (__builtin_ia32_kshiftridi): New.
21218         * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
21220 2017-01-19  Segher Boessenkool  <segher@kernel.crashing.org>
21222         PR target/78875
21223         PR target/79140
21224         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
21225         define to rs6000_init_stack_protect_guard.
21226         (rs6000_init_stack_protect_guard): New function.
21228 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
21229             Yunqiang Su  <yunqiang.su@imgtec.com>
21231         * config.gcc (supported_defaults): Add madd4.
21232         (with_madd4): Add validation.
21233         (all_defaults): Add madd4.
21234         * config/mips/mips.opt (mmadd4): New option.
21235         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
21236         mmadd4.
21237         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
21238         __mips_no_madd4.
21239         (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
21240         (ISA_HAS_FUSED_MADD4): Likewise.
21241         * doc/invoke.texi (-mmadd4): Document the new option.
21242         * doc/install.texi (--with-madd4): Document the new option.
21244 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
21246         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
21247         entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
21248         AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
21249         (aarch64_init_pauth_hint_builtins): New.
21250         (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
21251         (aarch64_expand_builtin): Expand new builtins.
21253 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
21255         * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
21256         * combine-stack-adj.c (no_unhandled_cfa): Handle
21257         REG_CFA_TOGGLE_RA_MANGLE.
21258         * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
21259         * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
21260         info for return address signing.
21261         (aarch64_expand_epilogue): Likewise.
21263 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
21265         * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
21266         * config/aarch64/aarch64-protos.h
21267         (aarch64_return_address_signing_enabled): New declaration.
21268         * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
21269         New function.
21270         (aarch64_expand_prologue): Sign return address before it's pushed onto
21271         stack.
21272         (aarch64_expand_epilogue): Authenticate return address fetched from
21273         stack.
21274         (aarch64_override_options): Sanity check for ILP32 and ISA level.
21275         (aarch64_attributes): New function attributes for "sign-return-address".
21276         * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
21277         UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
21278         ("*do_return"): Generate combined instructions according to key index.
21279         ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
21280         * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
21281         iterators.
21282         (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
21283         * config/aarch64/aarch64.opt (msign-return-address=): New.
21284         * doc/extend.texi (AArch64 Function Attributes): Documents
21285         "sign-return-address=".
21286         * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
21288 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
21290         * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
21291         overall option summary.
21293 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
21295         * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
21296         * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
21297         AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
21298         * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
21300 2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
21302         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
21303         -mpower9-minmax by default for -mcpu=power9.
21304         (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
21305         128-bit floating point.
21307 2017-01-20  Alan Modra  <amodra@gmail.com>
21309         * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
21310         optimizing for size.
21312 2017-01-20  Alan Modra  <amodra@gmail.com>
21314         PR target/79144
21315         * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
21316         for strcmp and strncmp from corresponding builtin decl.
21318 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
21320         * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
21321         instead of i386/rtems-64.h.
21322         * config/i386/rtems-64.h: Remove.
21324 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
21326         PR target/78478
21327         Revert:
21328         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
21330         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
21332 2017-01-19  Tamar Christina  <tamar.christina@arm.com>
21334         * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
21335         Change int to HOST_WIDE_INT.
21336         * config/aarch64/aarch64-protos.h
21337         (aarch64_simd_gen_const_vector_dup): Likewise.
21338         * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
21340 2017-01-19  David Malcolm  <dmalcolm@redhat.com>
21342         * langhooks-def.h (lhd_type_for_size): New decl.
21343         (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
21344         * langhooks.c (lhd_type_for_size): New function, taken from
21345         lto_type_for_size.
21347 2017-01-19  Pat Haugen  <pthaugen@us.ibm.com>
21349         * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
21350         define_bypass for CR latency.
21351         (power9-cracked-alu): Update bypass latency and remove power9-branch.
21352         (power9-alu2): Add define_bypass for CR latency.
21353         (power9-cmp): New.
21354         (power9-mul): Update insn latency.
21355         (power9-mul-compare): Update insn latency, bypass latency and remove
21356         power9-branch.
21358 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21360         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
21361         Delete.
21362         * config/aarch64/aarch64.md
21363         (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
21364         aarch64_nopcrelative_literal_loads.
21365         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
21367 2017-01-19  Chenghua Xu  <paul.hua.gm@gmail.com>
21369         * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
21370         TARGET_LOONGSON_3A.
21371         (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
21373 2017-01-19  Doug Gilmore  <doug.gilmore@imgtec.com>
21375         PR target/78176
21376         * config.gcc (supported_defaults): Add lxc1-sxc1.
21377         (with_lxc1_sxc1): Add validation.
21378         (all_defaults): Add lxc1-sxc1.
21379         * config/mips/mips.opt (mlxc1-sxc1): New option.
21380         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
21381         mlxc1-sxc1.
21382         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
21383         __mips_no_lxc1_sxc1.
21384         (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
21385         * doc/invoke.texi (-mlxc1-sxc1): Document the new option.
21386         * doc/install.texi (--with-lxc1-sxc1): Document the new option.
21388 2017-01-19  Richard Biener  <rguenther@suse.de>
21390         PR tree-optimization/72488
21391         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
21392         sure to restore SSA info.
21393         * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
21395 2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
21397         PR rtl-optimization/79121
21398         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
21399         of the inner type when shifting an extended value.
21401 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
21403         PR lto/78407
21404         * symtab.c (symtab_node::equal_address_to): Fix comparing of
21405         interposable aliases.
21407 2017-01-18  Peter Bergner  <bergner@vnet.ibm.com>
21409         PR target/78516
21410         * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
21411         Use the evmergelohi instruction.
21412         (mov_si<mode>_e500_subreg4_2_le): Likewise.
21413         (mov_sitf_e500_subreg8_2_be): Likewise.
21414         (mov_sitf_e500_subreg12_2_le): Likewise.
21415         (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
21416         (mov_si<mode>_e500_subreg4_2_be): Likewise.
21417         (mov_sitf_e500_subreg8_2_le): Likewise.
21418         (mov_sitf_e500_subreg12_2_be): Likewise.
21420 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21422         * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
21423         attribute from vecsimple to vecperm.
21424         (altivec_vbpermq2): Likewise.
21426 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21428         PR target/79040
21429         * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
21431 2017-01-18  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
21432         * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
21433         * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
21434         strcmp. Fix bug where comparison didn't stop with zero byte. Fix
21435         case where N arg is SIZE_MAX.
21436         * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
21437         (cmpstrsi): Add pattern.
21439 2017-01-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
21441         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21442         __builtin_vec_revb builtins.
21443         * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
21444         built-in functions to support generation of the ISA 3.0 XXBR<x>
21445         vector byte reverse instructions.
21446         (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
21447         (P9V_BUILTIN_XXBRD_V2DI): Likewise.
21448         (P9V_BUILTIN_XXBRD_V2DF): Likewise.
21449         (P9V_BUILTIN_XXBGW_V4SI): Likewise.
21450         (P9V_BUILTIN_XXBGW_V4SF): Likewise.
21451         (P9V_BUILTIN_XXBGH_V8HI): Likewise.
21452         (P9V_BUILTIN_VEC_REVB): Likewise.
21453         * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
21454         generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
21455         (p9_xxbrq_v16qi): Likewise.
21456         (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
21457         (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
21458         (p9_xxbrh_v8hi): Likewise.
21459         * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
21460         * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
21461         vec_revb built-in functions.
21463 2017-01-18  Uros Bizjak  <ubizjak@gmail.com>
21465         PR rtl-optimization/78952
21466         * config/i386/i386.md (any_extract): New code iterator.
21467         (*insvqi_2): Use any_extract for source operand.
21468         (*insvqi_3): Use any_shiftrt for source operand.
21470 2017-01-18  Wilco Dijkstra  <wdijkstr@arm.com>
21472         * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
21473         New function.
21474         (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
21476 2017-01-18  Matthias Klose  <doko@ubuntu.com>
21478         * doc/install.texi: Allow default for --with-target-bdw-gc-include.
21480 2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21482         * config/rs6000/altivec.h (vec_bperm): Change #define.
21483         * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
21484         (altivec_vbpermq2): New define_insn.
21485         (altivec_vbpermd): Likewise.
21486         * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
21487         function interface.
21488         (VBPERMD): Likewise.
21489         (VBPERM): New polymorphic function interface.
21490         * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
21491         Add entries for P9V_BUILTIN_VEC_VBPERM.
21492         * doc/extend.texi: Add interfaces for vec_bperm.
21494 2017-01-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21496         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
21497         first letter of error messages.
21498         (s390_resolve_overloaded_builtin): Likewise.
21499         * config/s390/s390.c (s390_expand_builtin): Likewise.
21500         (s390_invalid_arg_for_unprototyped_fn): Likewise.
21501         (s390_valid_target_attribute_inner_p): Likewise.
21502         * config/s390/s390.md ("tabort"): Likewise.
21504 2017-01-18  Toma Tabacu  <toma.tabacu@imgtec.com>
21506         * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
21507         (ISA_AVOID_DIV_HILO): New macro.
21508         (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
21509         (ISA_HAS_DDIV): Likewise.
21511 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
21513         * doc/invoke.texi (fabi-version): Correct number of occurrences.
21515 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
21517         * doc/invoke.texi (fabi-version): Spelling fix.
21519 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
21521         PR c++/70182
21522         * doc/invoke.texi (fabi-version): Mention mangling fix for
21523         operator names.
21525 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
21527         PR c++/77489
21528         * doc/invoke.texi (fabi-version): Document discriminator mangling.
21530 2017-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
21532         PR target/78875
21533         * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
21534         * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
21535         the new options.
21536         * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
21537         flexible settings.
21538         (stack_protect_test): Ditto.
21539         * config/rs6000/rs6000.opt (mstack-protector-guard=,
21540         mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
21541         options.
21542         * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
21543         Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
21544         -mstack-protector-guard-offset=.
21545         (RS/6000 and PowerPC Options): Ditto.
21547 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
21549         * config/i386/i386.h (MASK_CLASS_P): New define.
21550         * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
21551         there are no registers from different register sets also when
21552         mask registers are used.  Update function comment.
21553         * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
21554         to (*k/*r) and (*k/*km) alternatives.
21556 2017-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
21558         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
21559         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
21560         (EH_RETURN_HANDLER_RTX): New define.
21561         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
21562         Force frame pointer in EH return functions.
21563         (aarch64_expand_epilogue): Add barrier for eh_return.
21564         (aarch64_final_eh_return_addr): Remove.
21565         (aarch64_eh_return_handler_rtx): New function.
21566         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
21567         Remove.
21568         (aarch64_eh_return_handler_rtx): New prototype.
21570 2017-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21572         * config/rs6000/altivec.h (vec_rlmi): New #define.
21573         (vec_vrlnm): Likewise.
21574         (vec_rlnm): Likewise.
21575         * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
21576         (UNSPEC_VRLNM): Likewise.
21577         (VIlong): New mode iterator.
21578         (altivec_vrl<VI_char>mi): New define_insn.
21579         (altivec_vrl<VI_char>nm): Likewise.
21580         * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
21581         function entry.
21582         (VRLDNM): Likewise.
21583         (RLNM): New polymorphic function entry.
21584         (VRLWMI): New monomorphic function entry.
21585         (VRLDMI): Likewise.
21586         (RLMI): New polymorphic function entry.
21587         * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
21588         new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
21589         * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
21590         vec_vrlnm.
21592 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
21594         PR debug/78839
21595         * dwarf2out.c (field_byte_offset): Restore the
21596         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
21597         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
21598         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
21599         of build2 + fold.
21601 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
21603         PR ada/67205
21604         * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
21606 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
21608         PR debug/71669
21609         * dwarf2out.c (add_data_member_location_attribute): For constant
21610         offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
21611         instead of DW_AT_data_member_location, DW_AT_bit_offset and
21612         DW_AT_byte_size attributes.
21614 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
21616         * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
21617         after forcing to constant memory when the code model is medium.
21619 2017-01-17  Julia Koval  <julia.koval@intel.com>
21621         PR target/76731
21622         * config/i386/avx512fintrin.h
21623         (_mm512_i32gather_ps): Change __addr type to void const*.
21624         (_mm512_mask_i32gather_ps): Ditto.
21625         (_mm512_i32gather_pd): Ditto.
21626         (_mm512_mask_i32gather_pd): Ditto.
21627         (_mm512_i64gather_ps): Ditto.
21628         (_mm512_mask_i64gather_ps): Ditto.
21629         (_mm512_i64gather_pd): Ditto.
21630         (_mm512_mask_i64gather_pd): Ditto.
21631         (_mm512_i32gather_epi32): Ditto.
21632         (_mm512_mask_i32gather_epi32): Ditto.
21633         (_mm512_i32gather_epi64): Ditto.
21634         (_mm512_mask_i32gather_epi64): Ditto.
21635         (_mm512_i64gather_epi32): Ditto.
21636         (_mm512_mask_i64gather_epi32): Ditto.
21637         (_mm512_i64gather_epi64): Ditto.
21638         (_mm512_mask_i64gather_epi64): Ditto.
21639         (_mm512_i32scatter_ps): Change __addr type to void*.
21640         (_mm512_mask_i32scatter_ps): Ditto.
21641         (_mm512_i32scatter_pd): Ditto.
21642         (_mm512_mask_i32scatter_pd): Ditto.
21643         (_mm512_i64scatter_ps): Ditto.
21644         (_mm512_mask_i64scatter_ps): Ditto.
21645         (_mm512_i64scatter_pd): Ditto.
21646         (_mm512_mask_i64scatter_pd): Ditto.
21647         (_mm512_i32scatter_epi32): Ditto.
21648         (_mm512_mask_i32scatter_epi32): Ditto.
21649         (_mm512_i32scatter_epi64): Ditto.
21650         (_mm512_mask_i32scatter_epi64): Ditto.
21651         (_mm512_i64scatter_epi32): Ditto.
21652         (_mm512_mask_i64scatter_epi32): Ditto.
21653         (_mm512_i64scatter_epi64): Ditto.
21654         (_mm512_mask_i64scatter_epi64): Ditto.
21655         * config/i386/avx512pfintrin.h
21656         (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
21657         (_mm512_mask_prefetch_i32gather_ps): Ditto.
21658         (_mm512_mask_prefetch_i64gather_pd): Ditto.
21659         (_mm512_mask_prefetch_i64gather_ps): Ditto.
21660         (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
21661         (_mm512_prefetch_i32scatter_ps): Ditto.
21662         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
21663         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
21664         (_mm512_prefetch_i64scatter_pd): Ditto.
21665         (_mm512_prefetch_i64scatter_ps): Ditto.
21666         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
21667         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
21668         * config/i386/avx512vlintrin.h
21669         (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
21670         (_mm_mmask_i32gather_ps): Ditto.
21671         (_mm256_mmask_i32gather_pd): Ditto.
21672         (_mm_mmask_i32gather_pd): Ditto.
21673         (_mm256_mmask_i64gather_ps): Ditto.
21674         (_mm_mmask_i64gather_ps): Ditto.
21675         (_mm256_mmask_i64gather_pd): Ditto.
21676         (_mm_mmask_i64gather_pd): Ditto.
21677         (_mm256_mmask_i32gather_epi32): Ditto.
21678         (_mm_mmask_i32gather_epi32): Ditto.
21679         (_mm256_mmask_i32gather_epi64): Ditto.
21680         (_mm_mmask_i32gather_epi64): Ditto.
21681         (_mm256_mmask_i64gather_epi32): Ditto.
21682         (_mm_mmask_i64gather_epi32): Ditto.
21683         (_mm256_mmask_i64gather_epi64): Ditto.
21684         (_mm_mmask_i64gather_epi64): Ditto.
21685         (_mm256_i32scatter_ps): Change __addr type to void*.
21686         (_mm256_mask_i32scatter_ps): Ditto.
21687         (_mm_i32scatter_ps): Ditto.
21688         (_mm_mask_i32scatter_ps): Ditto.
21689         (_mm256_i32scatter_pd): Ditto.
21690         (_mm256_mask_i32scatter_pd): Ditto.
21691         (_mm_i32scatter_pd): Ditto.
21692         (_mm_mask_i32scatter_pd): Ditto.
21693         (_mm256_i64scatter_ps): Ditto.
21694         (_mm256_mask_i64scatter_ps): Ditto.
21695         (_mm_i64scatter_ps): Ditto.
21696         (_mm_mask_i64scatter_ps): Ditto.
21697         (_mm256_i64scatter_pd): Ditto.
21698         (_mm256_mask_i64scatter_pd): Ditto.
21699         (_mm_i64scatter_pd): Ditto.
21700         (_mm_mask_i64scatter_pd): Ditto.
21701         (_mm256_i32scatter_epi32): Ditto.
21702         (_mm256_mask_i32scatter_epi32): Ditto.
21703         (_mm_i32scatter_epi32): Ditto.
21704         (_mm_mask_i32scatter_epi32): Ditto.
21705         (_mm256_i32scatter_epi64): Ditto.
21706         (_mm256_mask_i32scatter_epi64): Ditto.
21707         (_mm_i32scatter_epi64): Ditto.
21708         (_mm_mask_i32scatter_epi64): Ditto.
21709         (_mm256_i64scatter_epi32): Ditto.
21710         (_mm256_mask_i64scatter_epi32): Ditto.
21711         (_mm_i64scatter_epi32): Ditto.
21712         (_mm_mask_i64scatter_epi32): Ditto.
21713         (_mm256_i64scatter_epi64): Ditto.
21714         (_mm256_mask_i64scatter_epi64): Ditto.
21715         (_mm_i64scatter_epi64): Ditto.
21716         (_mm_mask_i64scatter_epi64): Ditto.
21717         * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
21718         (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
21719         (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
21720         (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
21721         (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
21722         (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
21723         (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
21724         (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
21725         (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
21726         (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
21727         (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
21728         (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
21729         (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
21730         (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
21731         (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
21732         (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
21733         (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
21734         (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
21735         (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
21736         (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
21737         (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
21738         (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
21739         (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
21740         (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
21741         (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
21742         (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
21743         (VOID_QI_V8DI_PCINT_INT_INT): Remove.
21744         (V16SF_V16SF_PCVOID_V16SI_HI_INT,  V8DF_V8DF_PCVOID_V8SI_QI_INT)
21745         (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
21746         (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
21747         (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
21748         (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
21749         (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
21750         (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
21751         (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
21752         (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
21753         (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
21754         (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
21755         (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
21756         (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
21757         (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
21758         (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
21759         (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
21760         (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
21761         (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
21762         (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
21763         (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
21764         (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
21765         (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
21766         (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
21767         (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
21768         (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
21769         (VOID_QI_V8DI_PCVOID_INT_INT): Add.
21770         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
21771         definitions accordingly.
21773 2017-01-17  Kito Cheng  <kito.cheng@gmail.com>
21774             Kuan-Lin Chen  <kuanlinchentw@gmail.com>
21776         PR target/79079
21777         * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
21778         gen_lowpart.
21780 2017-01-17  Vladimir Makarov  <vmakarov@redhat.com>
21782         PR target/79058
21783         * ira-conflicts.c (ira_build_conflicts): Update total conflict
21784         hard regs for inner regno.
21786 2017-01-17  Martin Liska  <mliska@suse.cz>
21788         PR ipa/71207
21789         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
21790         assumption and add comment.
21792 2017-01-17  Nathan Sidwell  <nathan@acm.org>
21794         * ipa-visibility.c (localize_node): New function, broken out of ...
21795         (function_and_variable_visibility): ... here. Call it.
21797 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
21799         PR middle-end/77445
21800         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
21801         correctly set frequency of oudgoing edge.
21802         (duplicate_thread_path): Fix profile updating.
21804 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
21806         PR other/79046
21807         * configure.ac: Add GCC_BASE_VER.
21808         * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
21809         version from BASE-VER file.
21810         (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
21811         (gcc.o): Depend on $(BASEVER).
21812         * common.opt (dumpfullversion): New option.
21813         * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
21814         * doc/invoke.texi: Document -dumpfullversion.
21815         * doc/install.texi: Document --with-gcc-major-version-only.
21816         * configure: Regenerated.
21818 2017-01-17  Richard Biener  <rguenther@suse.de>
21820         PR tree-optimization/71433
21821         * tree-vrp.c (register_new_assert_for): Merge same asserts
21822         on all incoming edges.
21823         (process_assert_insertions_for): Handle insertions at the
21824         beginning of BBs.
21826 2017-01-17  Gerald Pfeifer  <gerald@pfeifer.com>
21828         * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
21829         * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
21831 2017-01-17  Kaz Kojima  <kkojima@gcc.gnu.org>
21833         PR target/78633
21834         * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
21835         RTL sharing.
21837 2017-01-17  Alan Modra  <amodra@gmail.com>
21839         PR target/79066
21840         * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
21841         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
21842         symbolic stack limit when pic.
21844 2017-01-16  Martin Sebor  <msebor@redhat.com>
21846         PR tree-optimization/78608
21847         * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
21849 2017-01-16  Jeff Law  <law@redhat.com>
21851         Revert:
21852         2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
21853         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
21854         for several include directories that may be relative to sysroot.
21855         * config/i386/x-mingw32 (gplus_includedir): Define.
21856         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
21857         (native_system_includedir): Likewise.
21858         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
21859         override if TARGET_SYSTEM_ROOT is defined.
21860         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
21862         PR tree-optimization/79090
21863         PR tree-optimization/33562
21864         PR tree-optimization/61912
21865         PR tree-optimization/77485
21866         * tree-ssa-dse.c (compute_trims): Accept STMT argument.  Dump STMT
21867         and computed trims into the dump file.
21869 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
21871         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
21873 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
21875         PR c/79089
21876         * gimplify.c (gimplify_init_constructor): If want_value and
21877         object == lhs, unshare lhs to avoid invalid tree sharing.  Formatting
21878         fix.
21880         PR target/79080
21881         * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
21882         sequence.  Formatting fixes.
21883         (doloop_optimize): Formatting fixes.
21885         PR driver/49726
21886         * gcc.c (debug_level_greater_than_spec_func): New function.
21887         (static_spec_functions): Add debug-level-gt spec function.
21888         (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
21889         !g0.
21890         * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
21891         * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
21892         * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
21893         gpubnames, ggnu-pubnames, gno-record-gcc-switches,
21894         grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
21895         gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
21897 2017-01-16  Uros Bizjak  <ubizjak@gmail.com>
21899         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
21900         QImode fixups to general and mask registers only.
21902 2017-01-16  Carl Love  <cel@us.ibm.com>
21904         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
21905         for built-in functions
21906         vector signed char vec_nabs (vector signed char)
21907         vector signed short vec_nabs (vector signed short)
21908         vector signed int vec_nabs (vector signed int)
21909         vector signed long long vec_nabs (vector signed long long)
21910         vector float vec_nabs (vector float)
21911         vector double vec_nabs (vector double)
21912         * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
21913         and NABS overload.
21914         * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
21915         * config/rs6000/altivec.h: New define for vec_nabs built-in function.
21916         * doc/extend.texi: Update the documentation file for the new built-in
21917         functions.
21919 2017-01-16  Martin Sebor  <msebor@redhat.com>
21921         * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
21922         message.
21924 2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21926         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
21927         UNSPEC_VSX__XXSPLTD to require special splat handling.
21929 2017-01-16  David Malcolm  <dmalcolm@redhat.com>
21931         PR bootstrap/78616
21932         * system.h: Poison strndup.
21934 2017-01-16  Alan Modra  <amodra@gmail.com>
21936         PR target/79098
21937         * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
21938         use a switch.
21940 2017-01-16  Georg-Johann Lay  <avr@gjlay.de>
21942         * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
21944 2017-01-15  Uros Bizjak  <ubizjak@gmail.com>
21946         * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
21947         call recog here.  Assert that INSN_CODE (insn) is non-negative.
21949 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
21951         PR target/72749
21952         * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
21953         fallthrough.
21954         * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
21955         in the currently scheduled RTL fragment.
21957 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
21959         PR rtl-optimization/78751
21960         * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
21961         give up.
21963 2017-01-14  Jeff Law  <law@redhat.com>
21965         PR tree-optimization/79090
21966         * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
21967         variable length stores.
21968         (compute_trims): Delete dead assignment to *trim_tail.
21969         (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
21970         zero length.
21972 2017-01-14  Bernd Schmidt  <bschmidt@redhat.com>
21974         PR rtl-optimization/78626
21975         PR rtl-optimization/78727
21976         * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
21977         of a block, and split such blocks after everything else is finished.
21979 2017-01-14  Alan Modra  <amodra@gmail.com>
21981         PR target/72749
21982         * combine.c (recog_for_combine_1): Set INSN_CODE before calling
21983         target legitimate_combined_insn.
21984         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
21985         (rs6000_legitimate_combined_insn): New function.
21986         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
21987         all uses.
21988         (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
21989         (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
21990         (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
21992 2017-01-14  Gerald Pfeifer  <gerald@pfeifer.com>
21994         * doc/frontends.texi (G++ and GCC): Remove references to Java.
21996 2017-01-13  Jeff Law  <law@redhat.com>
21998         PR tree-optimization/33562
21999         PR tree-optimization/61912
22000         PR tree-optimization/77485
22001         * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
22002         a statement.
22003         (delete_dead_assignment): Likewise.
22004         (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
22005         statement to delete_dead_call and delete_dead_assignment.
22007 2017-01-13  David Malcolm  <dmalcolm@redhat.com>
22009         PR c/78304
22010         * substring-locations.c (format_warning_va): Strengthen case 1 so
22011         that both endpoints of the substring must be within the format
22012         range for just the substring to be printed.
22014 2017-01-13  Uros Bizjak  <ubizjak@gmail.com>
22016         * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
22017         * config/i386/i386.c (ix86_target_string): Add missing options
22018         to isa_opts and reorder options by implied ISAs.  Rename isa_opts2 to
22019         isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
22020         flags_other and ix86_target_other to flags2_other.  Display unknown
22021         isa2 options.
22022         (ix86_valid_target_attribute_inner_p): Add missing options and
22023         reorder options by implied ISAs, as in ix86_target_string.
22025 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
22027         * hash-table.h (hash_table::too_empty_p): New function.
22028         (hash_table::expand): Use it.
22029         (hash_table::traverse): Likewise.
22030         (hash_table::empty_slot): Use sizeof (value_type) instead of
22031         sizeof (PTR) to convert bytes to elements.  Shrink the table
22032         if the current size is excessive for the current number of
22033         elements.
22035 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
22037         * ira-costs.c (record_reg_classes): Break from the inner loop
22038         early once alt_fail is known to be true.  Update outer loop
22039         handling accordingly.
22041 2017-01-13  Jeff Law  <law@redhat.com>
22043         * tree-ssa-dse.c (decrement_count): New function.
22044         (increment_start_addr, maybe_trim_memstar_call): Likewise.
22045         (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
22046         when we know the partially dead statement is a mem* function.
22048         PR tree-optimization/61912
22049         PR tree-optimization/77485
22050         * tree-ssa-dse.c: Include expr.h.
22051         (maybe_trim_constructor_store): New function.
22052         (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
22054         PR tree-optimization/33562
22055         PR tree-optimization/61912
22056         PR tree-optimization/77485
22057         * doc/invoke.texi: Document new dse-max-object-size param.
22058         * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
22059         * tree-ssa-dse.c: Include params.h.
22060         (dse_store_status): New enum.
22061         (initialize_ao_ref_for_dse): New, partially extracted from
22062         dse_optimize_stmt.
22063         (valid_ao_ref_for_dse, normalize_ref): New.
22064         (setup_live_bytes_from_ref, compute_trims): Likewise.
22065         (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
22066         (maybe_trim_partially_dead_store): Likewise.
22067         (maybe_trim_complex_store): Likewise.
22068         (dse_classify_store): Renamed from dse_possibly_dead_store_p.
22069         Track what bytes live from the original store.  Return tri-state
22070         for dead, partially dead or live.
22071         (dse_dom_walker): Add constructor, destructor and new private members.
22072         (delete_dead_call, delete_dead_assignment): New extracted from
22073         dse_optimize_stmt.
22074         (dse_optimize_stmt): Make a member of dse_dom_walker.
22075         Use initialize_ao_ref_for_dse.
22077         PR tree-optimization/33562
22078         PR tree-optimization/61912
22079         PR tree-optimization/77485
22080         * sbitmap.h (bitmap_count_bits): Prototype.
22081         (bitmap_clear_range, bitmap_set_range): Likewise.
22082         * sbitmap.c (bitmap_clear_range): New function.
22083         (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
22085 2017-01-13  Martin Liska  <mliska@suse.cz>
22087         PR ipa/79043
22088         * function.c (set_cfun): Add new argument force.
22089         * function.h (set_cfun): Likewise.
22090         * ipa-inline-transform.c (inline_call): Use the function when
22091         strict alising from is dropped for function we inline to.
22093 2017-01-13  Richard Biener  <rguenther@suse.de>
22095         * tree-pretty-print.c (dump_generic_node): Fix inverted condition
22096         for dumping GIMPLE INTEGER_CSTs.
22098 2017-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22100         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
22101         to 201112L since C++17.
22103 2017-01-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
22105         PR sanitizer/78887
22106         * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
22107         if -fsanitize=kernel-address is present.
22109 2017-01-13  Richard Biener  <rguenther@suse.de>
22111         * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
22112         as _Literal ( type ) number in case usual suffixes do not
22113         preserve all information.
22115 2017-01-13  Richard Biener  <rguenther@suse.de>
22117         PR tree-optimization/77283
22118         * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
22119         and ssa-iterators.h.
22120         (is_feasible_trace): Implement a cost model based on joiner
22121         PHI node uses.
22123 2017-01-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
22125         PR target/79004
22126         * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
22127         char or short to __float128/_Float128 directly.
22129 2017-01-12  Martin Sebor  <msebor@redhat.com>
22131         to -Wformat-overflow.
22132         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
22133         (min_bytes_remaining): Same.
22134         (get_string_length): Same.
22135         (format_string): Same.
22136         (format_directive): Same.
22137         (add_bytes): Same.
22138         (pass_sprintf_length::handle_gimple_call): Same.
22140 2017-01-12  Jakub Jelinek  <jakub@redhat.com>
22142         * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
22143         info.nowrite calls with no lhs that can't throw.  Return bool
22144         whether gsi_remove has been called or not.
22145         (pass_sprintf_length::handle_gimple_call): Return bool whether
22146         try_substitute_return_value called gsi_remove.  Formatting fix.
22147         (pass_sprintf_length::execute): Don't use gsi_remove if
22148         handle_gimple_call returned true.
22150         PR bootstrap/79069
22151         * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
22152         be removed due to side-effects, don't remove following barrier nor
22153         turn the successor edge into fallthru edge.
22155 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22157         PR target/79044
22158         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
22159         element-reversing loads and stores as not swappable.
22161 2017-01-12  Nathan Sidwell  <nathan@acm.org>
22162             Nicolai Stange  <nicstange@gmail.com>
22164         * combine.c (try_combine): Don't ignore result of overlap checking
22165         loop.  Combine overlap & asm check into single loop.
22167 2017-01-12  Richard Biener  <rguenther@suse.de>
22169         * tree-pretty-print.c (dump_generic_node): Provide -gimple
22170         variant for MEM_REF.  Sanitize INTEGER_CST for -gimple.
22172 2017-01-12  Richard Biener  <rguenther@suse.de>
22174         * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
22175         and TS_TARGET_OPTION directly derive from TS_BASE.
22176         * tree-core.h (tree_optimization_option): Derive from tree_base.
22177         (tree_target_option): Likewise.
22179 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
22181         * config/i386/i386.c (memory_address_length): Increase len
22182         only when rip_relative_addr_p returns false.
22184 2017-01-11  Julia Koval  <julia.koval@intel.com>
22186         * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
22187         (OPTION_MASK_ISA_SGX_SET): New.
22188         (ix86_handle_option): Handle OPT_msgx.
22189         * config.gcc: Added sgxintrin.h.
22190         * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
22191         * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
22192         * config/i386/i386.c (ix86_target_string): Add -msgx.
22193         (PTA_SGX): New.
22194         (ix86_option_override_internal): Handle new options.
22195         (ix86_valid_target_attribute_inner_p): Add sgx.
22196         * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
22197         * config/i386/i386.opt: Add msgx.
22198         * config/i386/sgxintrin.h: New file.
22199         * config/i386/x86intrin.h: Add sgxintrin.h.
22201 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
22203         PR c++/71537
22204         * fold-const.c (maybe_nonzero_address): Return 1 for function
22205         local objects.
22206         (tree_single_nonzero_warnv_p): Don't handle function local objects
22207         here.
22209         PR c++/72813
22210         * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
22211         of c-header.
22213 2017-01-11  David Malcolm  <dmalcolm@redhat.com>
22215         PR driver/78877
22216         * opts.c: Include "spellcheck.h"
22217         (struct string_fragment): New struct.
22218         (struct edit_distance_traits<const string_fragment &>): New
22219         struct.
22220         (get_closest_sanitizer_option): New function.
22221         (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
22223 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
22225         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
22226         by 12.
22227         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
22228         DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
22229         (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
22230         (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
22231         for initial die_offset if dwarf_split_debug_info.
22232         (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
22233         initial next_die_offset if dwo_id is non-NULL.  Don't emit padding
22234         fields.
22235         (output_skeleton_debug_sections): Formatting fix.  Use
22236         DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
22237         DWARF_COMPILE_UNIT_HEADER_SIZE.  Don't emit padding.
22239 2017-01-11  Wilco Dijkstra  <wdijkstr@arm.com>
22241         * config/arm/cortex-a53.md: Add bypasses for
22242         cortex_a53_r2f_cvt.
22243         (cortex_a53_r2f): Only use for transfers.
22244         (cortex_a53_f2r): Likewise.
22245         (cortex_a53_r2f_cvt): Add reservation for conversions.
22246         (cortex_a53_f2r_cvt): Likewise.
22248 2017-01-11  Tamar Christina  <tamar.christina@arm.com>
22250         * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
22251         to all inlined functions, change static to extern.
22253 2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
22255         PR target/78253
22256         * config/arm/arm.c (legitimize_pic_address): Handle reference to
22257         weak symbol.
22258         (arm_assemble_integer): Likewise.
22260 2017-01-11  Richard Earnshaw  <rearnsha@arm.com>
22262         * config.gcc: Use new awk script to check CPU, FPU and architecture
22263         parameters for --with-... options.
22264         * config/arm/parsecpu.awk: New file
22265         * config/arm/arm-cpus.in: New file.
22266         * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
22267         files.
22268         * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
22269         files.
22270         * config/arm/t-arm: Update dependency rules.
22271         * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
22272         of processing .def files.
22273         * config/arm/genopt.sh: Deleted.
22274         * config/arm/gentune.sh: Deleted.
22275         * config/arm/arm-cores.def: Deleted.
22276         * config/arm/arm-arches.def: Deleted.
22277         * config/arm/arm-fpus.def: Deleted.
22278         * config/arm/arm-tune.md: Regenerated.
22279         * config/arm/arm-tables.opt: Regenerated.
22280         * config/arm/arm-cpu.h: New generated file.
22281         * config/arm/arm-cpu-data.h: New generated file.
22282         * config/arm/arm-cpu-cdata.h: New generated file.
22284 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
22286         PR lto/79042
22287         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
22288         bit.
22289         (input_varpool_node): Unpack dynamically_initialized bit.
22291 2017-01-11  Eric Botcazou  <ebotcazou@adacore.com>
22293         PR rtl-optimization/79032
22294         * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
22295         the alignment of the adjusted memory reference against that of MODE,
22296         instead of the alignment of the original memory reference.
22298 2017-01-11  Martin Jambor  <mjambor@suse.cz>
22300         * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
22301         test.
22302         * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
22303         decorated functions.
22305 2017-01-11  Richard Biener  <rguenther@suse.de>
22307         * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
22308         set range/nonnull info for PHI results.  Do not set it on
22309         stmts marked for removal.
22311 2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
22313         * expr.c (store_field): In the bitfield case, fetch the return value
22314         from the registers before applying a single big-endian adjustment.
22315         Always do a final load for a BLKmode value not larger than a word.
22317 2017-01-10  David Malcolm  <dmalcolm@redhat.com>
22319         PR c++/77949
22320         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
22321         that we correctly handle column numbers greater than
22322         LINE_MAP_MAX_COLUMN_NUMBER.
22324 2017-01-10  Martin Sebor  <msebor@redhat.com>
22326         PR middle-end/78245
22327         * gimple-ssa-sprintf.c (get_destination_size): Call
22328         {init,fini}object_sizes.
22329         * tree-object-size.c (addr_object_size): Adjust.
22330         (pass_through_call): Adjust.
22331         (pass_object_sizes::execute): Adjust.
22332         * tree-object-size.h (fini_object_sizes): Declare.
22334 2017-01-10  Martin Sebor  <msebor@redhat.com>
22336         PR tree-optimization/78775
22337         * builtins.c (get_size_range): Move...
22338         * calls.c: ...to here.
22339         (alloc_max_size): Accept zero argument.
22340         (operand_signed_p): Remove.
22341         (maybe_warn_alloc_args_overflow): Call get_size_range.
22342         * calls.h (get_size_range): Declare.
22344 2017-01-10  Joe Seymour  <joe.s@somniumtech.com>
22346         * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
22347         from TI's devices.csv file as of September 2016.
22348         * config/msp430/msp430.c (msp430_mcu_data): Likewise.
22350 2017-01-10  Sandra Loosemore  <sandra@codesourcery.com>
22352         * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
22353         * doc/invoke.texi: Likewise.
22354         * doc/md.texi: Likewise.
22355         * doc/objc.texi: Likewise.
22357 2017-01-10  Joshua Conner  <joshconner@google.com>
22359         * config/arm/fuchsia-elf.h: New file.
22360         * config/fuchsia.h: New file.
22361         * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
22362         (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
22363         targets.
22364         * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
22366 2016-01-10  Richard Biener  <rguenther@suse.de>
22368         PR tree-optimization/79034
22369         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
22370         Propagate out degenerate PHIs in the joiner.
22372 2017-01-10  Martin Liska  <mliska@suse.cz>
22374         * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
22375         (sort_congruence_classes_by_decl_uid): Likewise.
22376         (sort_congruence_class_groups_by_decl_uid): Likewise.
22377         (sem_item_optimizer::merge_classes): Sort class, groups in these
22378         classes and members in the groups by DECL_UID of declarations.
22379         This would make merge operations stable.
22381 2017-01-10  Martin Liska  <mliska@suse.cz>
22383         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
22384         usage of m_classes_vec.
22385         (sem_item_optimizer::~sem_item_optimizer):  Likewise.
22386         (sem_item_optimizer::get_group_by_hash): Likewise.
22387         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
22388         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
22389         (sem_item_optimizer::verify_classes): Likewise.
22390         (sem_item_optimizer::process_cong_reduction): Likewise.
22391         (sem_item_optimizer::dump_cong_classes): Likewise.
22392         (sem_item_optimizer::merge_classes): Likewise.
22393         * ipa-icf.h (congruence_class_hash): Rename from
22394         congruence_class_group_hash.  Remove declaration of m_classes_vec.
22396 2017-01-10  Andrew Senkevich  <andrew.senkevich@intel.com>
22398         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
22399         OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
22400         * config.gcc: Add avx512vpopcntdqintrin.h.
22401         * config/i386/avx512vpopcntdqintrin.h: New.
22402         * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
22403         * config/i386/i386-builtin-types.def: Add new types.
22404         * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
22405         __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
22406         __builtin_ia32_vpopcountq_v8di_mask): New.
22407         * config/i386/i386-c.c (ix86_target_macros_internal): Define
22408         __AVX512VPOPCNTDQ__.
22409         * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
22410         (PTA_AVX512VPOPCNTDQ): Define.
22411         * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
22412         TARGET_AVX512VPOPCNTDQ_P): Define.
22413         * config/i386/i386.opt: Add mavx512vpopcntdq.
22414         * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
22415         * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
22417 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
22419         PR middle-end/77484
22420         * predict.def (PRED_CALL): Set to 67.
22422 2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
22424         * expr.c (store_field): In the bitfield case, if the value comes from
22425         a function call and is of an aggregate type returned in registers, do
22426         not modify the field mode; extract the value in all cases if the mode
22427         is BLKmode and the size is not larger than a word.
22429 2017-01-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
22431         PR target/71017
22432         * config/i386/cpuid.h: Fix undefined behavior.
22434 2017-01-04  Jeff Law  <law@redhat.com>
22436         PR tree-optimization/79007
22437         PR tree-optimization/67955
22438         * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
22439         conservative for pt.null when flag_non_call_exceptions is on.
22441 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
22443         PR translation/79019
22444         PR translation/79020
22445         * params.def (PARAM_INLINE_MIN_SPEEDUP,
22446         PARAM_IPA_CP_SINGLE_CALL_PENALTY,
22447         PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
22448         in descriptions.
22449         * config/avr/avr.opt (maccumulate-args): Likewise.
22450         * config/msp430/msp430.opt (mwarn-mcu): Likewise.
22451         * common.opt (freport-bug): Likewise.
22452         * cif-code.def (CIF_FINAL_ERROR): Likewise.
22453         * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
22454         * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
22455         translatable string.
22456         * config/i386/i386.c (function_value_32): Likewise.
22457         * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
22458         * config/msp430/msp430.c (msp430_option_override, msp430_attr):
22459         Likewise.
22460         * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
22461         * common/config/msp430/msp430-common.c (msp430_handle_option):
22462         Likewise.
22463         * symtab.c (symtab_node::verify_base): Likewise.
22464         * opts.c (set_debug_level): Likewise.
22465         * tree.c (verify_type_variant): Likewise.  Fix typo in comment.
22466         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
22467         missing whitespace to translatable strings.
22468         * config/avr/avr.md (bswapsi2): Fix typo in comment.
22469         * config/sh/superh.h: Likewise.
22470         * config/i386/xopintrin.h: Likewise.
22471         * config/i386/znver1.md: Likewise.
22472         * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
22473         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
22474         * double-int.h (struct double_int): Likewise.
22475         * double-int.c (div_and_round_double): Likewise.
22476         * wide-int.cc: Likewise.
22477         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
22478         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
22479         * cfgcleanup.c (crossjumps_occured): Renamed to ...
22480         (crossjumps_occurred): ... this.
22481         (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
22482         Adjust all uses.
22484         PR tree-optimization/78899
22485         * tree-if-conv.c (version_loop_for_if_conversion): Instead of
22486         returning bool return struct loop *, NULL for failure and the new
22487         loop on success.
22488         (versionable_outer_loop_p): Don't version outer loop if it has
22489         dont_vectorized bit set.
22490         (tree_if_conversion): When versioning outer loop, ensure
22491         tree_if_conversion is performed also on the inner loop of the
22492         non-vectorizable outer loop copy.
22493         * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix.  Fold
22494         LOOP_VECTORIZED in inner loop of the scalar outer loop and
22495         prevent vectorization of it.
22496         (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
22497         the outer loop vectorization of the non-scalar version is attempted
22498         before vectorization of the inner loop in scalar version.  If
22499         outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
22500         vectorization of its inner loop.
22501         * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
22502         has 2 inner loops, rename also on edges from bb whose single pred
22503         is outer_loop->header.  Fix typo in function comment.
22505 2017-01-09  Martin Sebor  <msebor@redhat.com>
22507         PR bootstrap/79033
22508         * asan.c (asan_emit_stack_protection): Increase local buffer size
22509         to avoid snprintf truncation warning.
22511 2017-01-09  Andrew Pinski  <apinski@cavium.com>
22513         * config/aarch64/aarch64-cores.def: Add thunderx2t99.  Change vulcan
22514         to reference thunderx2t99 for the tuning structure
22515         * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
22516         Rename to ...
22517         (thunderx2t99_extra_costs): This.
22518         * config/aarch64/aarch64-tune.md: Regenerate.
22519         * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
22520         (vulcan_addrcost_table): This.
22521         (vulcan_regmove_cost): Rename to ...
22522         (thunderx2t99_regmove_cost): This.
22523         (vulcan_vector_cost): Rename to ...
22524         (thunderx2t99_vector_cost): this.
22525         (vulcan_branch_cost): Rename to ...
22526         (thunderx2t99_branch_cost): This.
22527         (vulcan_tunings): Rename to ...
22528         (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
22529         * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
22531 2017-01-09  Martin Jambor  <mjambor@suse.cz>
22533         PR ipa/78365
22534         PR ipa/78599
22535         * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
22536         * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
22537         (propagate_vr_accross_jump_function): Use the above function for all
22538         value range computations for pass-through jump functions and type
22539         converasion from explicit value range values.
22540         (ipcp_propagate_stage): Do not attempt to deduce types of formal
22541         parameters from TYPE_ARG_TYPES.
22542         * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
22543         (ipa_write_node_info): Stream type of the actual argument.
22544         (ipa_read_node_info): Likewise. Also remove trailing whitespace.
22546 2017-01-09  Martin Liska  <mliska@suse.cz>
22548         PR pch/78970
22549         * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
22550         (lookup_compiler): Do not show error message with have_E.
22552 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
22554         PR tree-optimization/78938
22555         * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
22556         where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
22557         BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
22558         {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR.  Formatting
22559         fixes.
22561 2017-01-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22563         * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
22564         is const0_rtx.
22566 2017-01-09  Richard Biener  <rguenther@suse.de>
22568         PR tree-optimization/78997
22569         * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
22570         name condition properly.
22572 2017-01-09  Richard Biener  <rguenther@suse.de>
22574         PR debug/79000
22575         * dwarf2out.c (is_cxx): New overload with context.
22576         (is_naming_typedef_decl): Use it.
22578 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
22580         * invoke.texi (Option Summary): Correct spacing in option lists
22581         and add line breaks to fix over-long lines.
22583 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
22585         PR middle-end/17660
22587         * extend.texi (Common Variable Attributes): Add xref to GCC
22588         Internals manual to explain mode attribute keywords.
22590 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
22592         PR other/16519
22593         * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
22594         and Preprocessor Options.
22595         (Options for Linking): Document -pthread here....
22596         (RS/6000 and PowerPC Options): ...not here.
22597         (Solaris 2 Options): ...or here.
22598         * doc/cppopts.texi: Document -pthread.
22600 2017-01-08  Martin Sebor  <msebor@redhat.com>
22602         PR middle-end/77708
22603         * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
22604         * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
22605         New member functions.
22606         (format_directive): Used them.
22607         (add_bytes): Same.
22608         (pass_sprintf_length::handle_gimple_call): Same.
22609         * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
22610         to avoid truncation for any argument.
22611         (extract_affine_mul): Same.
22612         * tree.c (get_file_function_name): Same.
22614 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
22616         PR middle-end/77484
22617         * predict.def (PRED_INDIR_CALL): Set to 86.
22619 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
22621         PR preprocessor/54124
22622         * doc/cppopts.texi: Reformat -d subtable to list the full name
22623         of the options.  Add cross-reference to the docs for the general
22624         compiler -d options.
22625         * doc/invoke.texi (Developer Options): Add cross-reference to the
22626         preprocessor-specific -d option documentation.
22628 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
22630         PR preprocessor/13498
22631         * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
22632         redudant material, and reflect new command-line options.
22633         (System Headers): Likewise.
22635 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
22637         * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
22638         -isystem, and -idirafter.  Copy-edit.
22639         * doc/cppopts.texi: Copy-edit.  Remove contradiction about
22640         default for -ftrack-macro-expansion.  Delete obsolete and
22641         badly-formatted implementation details about -fdebug-cpp output.
22642         * doc/cppwarnopts.texi: Copy-edit.
22644 2017-01-07  David Malcolm  <dmalcolm@redhat.com>
22646         PR c++/72803
22647         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
22648         that the transition from a max line width >= 1<<10 to narrower
22649         lines works correctly.
22651 2017-01-07  Alexandre Oliva <aoliva@redhat.com>
22653         * doc/options.texi (PerFunction): New.
22654         * opt-functions.awk (switch_flags): Map both Optimization and
22655         PerFunction to CL_OPTIMIZATION.
22656         * opth-gen.awk: Test for PerFunction flag along with
22657         Optimization.
22658         * optc-save-gen.awk: Likewise.  Introduce var_opt_hash and set
22659         it only when the latter is present.  Skip those that don't in
22660         the hash function generator.
22661         * common.opt (fvar-tracking): Mark as PerFunction instead of
22662         Optimization.
22663         (fvar-tracking-assignments): Likewise.
22664         (fvar-tracking-assignments-toggle): Likewise.
22665         (fvar-tracking-uninit): Likewise.
22667 2017-01-07  Jakub Jelinek  <jakub@redhat.com>
22669         PR translation/79018
22670         * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
22671         the and store.
22673 2017-01-06  Mikael Pettersson  <mikpelinux@gmail.com>
22675         PR target/57583
22676         * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
22677         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
22678         TARGET_LONG_JUMP_TABLE_OFFSETS.
22679         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
22680         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
22681         * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
22682         (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
22683         * config/m68k/m68k.md (tablejump expander): Likewise.
22684         (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
22685         TARGET_LONG_JUMP_TABLE_OFFSETS.
22686         (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
22687         * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
22689 2017-01-06  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
22690             David Holsgrove <david.holsgrove@xilinx.com>
22692         * common/config/microblaze/microblaze-common.c
22693         (TARGET_EXCEPT_UNWIND_INFO): Remove.
22694         * config/microblaze/microblaze-protos.h (microblaze_eh_return):
22695         New prototype.
22696         * config/microblaze/microblaze.c (microblaze_must_save_register)
22697         (microblaze_expand_epilogue, microblaze_return_addr): Handle
22698         calls_eh_return.
22699         (microblaze_eh_return): New function.
22700         * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
22701         (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
22702         (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
22703         * config/microblaze/microblaze.md (eh_return): New pattern.
22705 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
22707         * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
22708         GCC_DIAGNOSTIC_STRINGIFY): Define.
22710         * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
22712 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22714         * config/arm/arm.md (<mcrr>): New.
22715         (<mrrc>): New.
22716         * config/arm/arm.c (arm_arch5te): New.
22717         (arm_option_override): Set arm_arch5te.
22718         (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
22719         and mrrc2.
22720         * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
22721         (arm_mcrr_qualifiers): ... this. New.
22722         (MRRC_QUALIFIERS): Define to...
22723         (arm_mrrc_qualifiers): ... this. New.
22724         * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
22725         __arm_mrrc2): New.
22726         * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
22727         * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
22728         (MRRCI, mrrc, MRRC): New.
22729         * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
22730         VUNSPEC_MRRC2): New.
22732 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22734         * config/arm/arm.md (<mcr>): New.
22735         (<mrc>): New.
22736         * config/arm/arm.c (arm_coproc_builtin_available): Add
22737         support for mcr, mrc, mcr2 and mrc2.
22738         * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
22739         (arm_mcr_qualifiers): ... this. New.
22740         (MRC_QUALIFIERS): Define to ...
22741         (arm_mrc_qualifiers): ... this. New.
22742         (MCR_QUALIFIERS): Define to ...
22743         (arm_mcr_qualifiers): ... this. New.
22744         * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
22745         __arm_mrc2): New.
22746         * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
22747         * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
22748         * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
22749         VUNSPEC_MRC2): New.
22751 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22753         * config/arm/arm.md (*ldc): New.
22754         (*stc): New.
22755         (<ldc>): New.
22756         (<stc>): New.
22757         * config/arm/arm.c (arm_coproc_builtin_available): Add
22758         support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
22759         (arm_coproc_ldc_stc_legitimate_address): New.
22760         * config/arm/arm-builtins.c (arm_type_qualifiers): Add
22761         'qualifier_const_pointer'.
22762         (LDC_QUALIFIERS): Define to...
22763         (arm_ldc_qualifiers): ... this. New.
22764         (STC_QUALIFIERS): Define to...
22765         (arm_stc_qualifiers): ... this. New.
22766         * config/arm/arm-protos.h
22767         (arm_coproc_ldc_stc_legitimate_address): New.
22768         * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
22769         __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
22770         * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
22771         stc2, stcl, stc2l): New.
22772         * config/arm/constraints.md (Uz): New.
22773         * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
22774         * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
22775         VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
22776         VUNSPEC_STC2L): New.
22778 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22780         * config/arm/arm.md (<cdp>): New.
22781         * config/arm/arm.c (neon_const_bounds): Rename this ...
22782         (arm_const_bounds): ... this.
22783         (arm_coproc_builtin_available): New.
22784         * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
22785         (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
22786         (CDP_QUALIFIERS): Define to...
22787         (arm_cdp_qualifiers): ... this. New.
22788         (void_UP): Define.
22789         (arm_expand_builtin_args): Add case for 6 arguments.
22790         * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
22791         (arm_const_bounds): ... this.
22792         (arm_coproc_builtin_available): New.
22793         * config/arm/arm_acle.h (__arm_cdp): New.
22794         (__arm_cdp2): New.
22795         * config/arm/arm_acle_builtins.def (cdp): New.
22796         (cdp2): New.
22797         * config/arm/iterators.md (CDPI,CDP,cdp): New.
22798         * config/arm/neon.md: Rename all 'neon_const_bounds' to
22799         'arm_const_bounds'.
22800         * config/arm/types.md (coproc): New.
22801         * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
22802         * doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
22803         * doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
22804         arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
22806 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22808         * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
22809         (UBINOP_QUALIFIERS): New.
22810         (si_UP): Define.
22811         (acle_builtin_data): New. Change comment.
22812         (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
22813         ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
22814         ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
22815         arm_acle_builtins.def.
22816         (ARM_BUILTIN_ACLE_PATTERN_START): Define.
22817         (arm_init_acle_builtins): New.
22818         (CRC32_BUILTIN): Remove.
22819         (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
22820         crc32cb, crc32ch and crc32cw.
22821         (arm_init_crc32_builtins): Remove.
22822         (arm_init_builtins): Use arm_init_acle_builtins rather
22823         than arm_init_crc32_builtins.
22824         (arm_expand_acle_builtin): New.
22825         (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
22826         * config/arm/arm_acle_builtins.def: New.
22828 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22830         * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
22831         (arm_builtin_datum): ... this.
22832         (arm_init_neon_builtin): Rename to ...
22833         (arm_init_builtin): ... this. Add a new parameters PREFIX
22834         and USE_SIG_IN_NAME.
22835         (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
22836         'arm_init_builtin'. Replace type 'neon_builtin_datum' with
22837         'arm_builtin_datum'.
22838         (arm_init_vfp_builtins): Likewise.
22839         (builtin_arg): Rename enum's replacing 'NEON_ARG' with
22840         'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
22841         (arm_expand_neon_args): Rename to ...
22842         (arm_expand_builtin_args): ... this. Rename builtin_arg
22843         enum values and differentiate between ARG_BUILTIN_MEMORY
22844         and ARG_BUILTIN_NEON_MEMORY.
22845         (arm_expand_neon_builtin_1): Rename to ...
22846         (arm_expand_builtin_1): ... this. Rename builtin_arg enum
22847         values, arm_expand_builtin_args and add bool parameter NEON.
22848         (arm_expand_neon_builtin): Use arm_expand_builtin_1.
22849         (arm_expand_vfp_builtin): Likewise.
22850         (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
22852 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
22854         PR middle-end/77484
22855         * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
22856         * predict.c (tree_estimate_probability_bb): Reverse direction of
22857         polymorphic call predictor.
22859 2017-01-06  David Malcolm  <dmalcolm@redhat.com>
22861         * passes.c (execute_one_pass): Split out pass-skipping logic into...
22862         (determine_pass_name_match): ...this new function and...
22863         (should_skip_pass_p): ...this new function.
22865 2017-01-06  Nathan Sidwell  <nathan@acm.org>
22867         * ipa-visibility.c (function_and_variable_visibility): Reformat
22868         comments and long lines.  Remove extrneous if.
22869         * symtab.c (symtab_node::make_decl_local): Fix code format.
22870         (symtab_node::set_section_for_node): Fix comment typo.
22872 2017-01-06  Martin Liska  <mliska@suse.cz>
22874         PR bootstrap/79003
22875         * lra-constraints.c: Rename invariant to lra_invariant.
22876         * predict.c (set_even_probabilities): Initialize e to NULL.
22878 2017-01-05  Martin Sebor  <msebor@redhat.com>
22880         PR tree-optimization/78910
22881         * gimple-ssa-sprintf.c (tree_digits): Add an argument.
22882         (format_integer): Correct off-by-one error in the handling
22883         of precision with negative numbers in signed conversions..
22885 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
22887         * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
22889 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
22891         PR tree-optimization/71016
22892         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
22893         factor_out_conditional_conversion.  Formatting fix.
22894         (factor_out_conditional_conversion): Add cond_stmt argument.
22895         If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
22896         cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
22897         Formatting fix.
22899 2017-01-05  David Malcolm  <dmalcolm@redhat.com>
22901         * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
22902         read-rtl-function.o, and selftest-rtl.o.
22903         * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
22904         (selftest::aarch64_test_loading_full_dump): New function.
22905         (selftest::aarch64_run_selftests): New function.
22906         (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
22907         selftest::aarch64_run_selftests.
22908         * config/i386/i386.c
22909         (selftest::ix86_test_loading_dump_fragment_1): New function.
22910         (selftest::ix86_test_loading_call_insn): New function.
22911         (selftest::ix86_test_loading_full_dump): New function.
22912         (selftest::ix86_test_loading_unspec): New function.
22913         (selftest::ix86_run_selftests): Call the new functions.
22914         * emit-rtl.c (maybe_set_max_label_num): New function.
22915         * emit-rtl.h (maybe_set_max_label_num): New decl.
22916         * function.c (instantiate_decls): Guard call to
22917         instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
22918         * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
22919         "static".
22920         * gensupport.c (gen_reader::gen_reader): Pass "false"
22921         for new "compact" param of rtx_reader.
22922         * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
22923         rather than an empty string for NULL strings.
22924         * read-md.c: Potentially include config.h rather than bconfig.h.
22925         Wrap include of errors.h with #ifdef GENERATOR_FILE.
22926         (have_error): New global, copied from errors.c.
22927         (md_reader::read_name): Rename to...
22928         (md_reader::read_name_1): ...this, adding "out_loc" param,
22929         and converting "missing name or number" to returning false, rather
22930         than failing.
22931         (md_reader::read_name): Reimplement in terms of read_name_1.
22932         (md_reader::read_name_or_nil): New function.
22933         (md_reader::read_string): Handle "(nil)" by returning NULL.
22934         (md_reader::md_reader): Add new param "compact".
22935         (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
22936         (md_reader::read_file): New method.
22937         * read-md.h (md_reader::md_reader): Add new param "compact".
22938         (md_reader::read_file): New method.
22939         (md_reader::is_compact): New accessor.
22940         (md_reader::read_name): Convert return type from void to file_location.
22941         (md_reader::read_name_or_nil): New decl.
22942         (md_reader::read_name_1): New decl.
22943         (md_reader::m_compact): New field.
22944         (noop_reader::noop_reader): Pass "false" for new "compact" param
22945         of rtx_reader.
22946         (rtx_reader::rtx_reader): Add new "compact" param.
22947         (rtx_reader::read_rtx_operand): Make virtual and convert return
22948         type from void to rtx.
22949         (rtx_reader::read_until): New decl.
22950         (rtx_reader::handle_any_trailing_information): New virtual function.
22951         (rtx_reader::postprocess): New virtual function.
22952         (rtx_reader::finalize_string): New virtual function.
22953         (rtx_reader::m_in_call_function_usage): New field.
22954         (rtx_reader::m_reuse_rtx_by_id): New field.
22955         * read-rtl-function.c: New file.
22956         * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
22957         * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
22958         (selftest::verify_three_block_rtl_cfg): New decl.
22959         * read-rtl-function.h: New file.
22960         * read-rtl.c: Potentially include config.h rather than bconfig.h.
22961         For host, include function.h, memmodel.h, and emit-rtl.h.
22962         (one_time_initialization): New function.
22963         (struct compact_insn_name): New struct.
22964         (compact_insn_names): New array.
22965         (find_code): Handle insn codes in compact dumps.
22966         (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
22967         (bind_subst_iter_and_attr): Likewise.
22968         (add_condition_to_string): Likewise.
22969         (add_condition_to_rtx): Likewise.
22970         (apply_attribute_uses): Likewise.
22971         (add_current_iterators): Likewise.
22972         (apply_iterators): Likewise.
22973         (initialize_iterators): Guard usage of apply_subst_iterator with
22974         #ifdef GENERATOR_FILE.
22975         (read_conditions): Wrap with #ifdef GENERATOR_FILE.
22976         (md_reader::read_mapping): Likewise.
22977         (add_define_attr_for_define_subst): Likewise.
22978         (add_define_subst_attr): Likewise.
22979         (read_subst_mapping): Likewise.
22980         (check_code_iterator): Likewise.
22981         (rtx_reader::read_rtx): Likewise.  Move one-time initialization
22982         logic to...
22983         (one_time_initialization): New function.
22984         (rtx_reader::read_until): New method.
22985         (read_flags): New function.
22986         (parse_reg_note_name): New function.
22987         (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
22988         Handle reuse_rtx ids.
22989         Wrap iterator lookup within #ifdef GENERATOR_FILE.
22990         Add parsing support for RTL dumps, mirroring the special-cases in
22991         print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
22992         values, and calling handle_any_trailing_information.
22993         (rtx_reader::read_rtx_operand): Convert return type from void
22994         to rtx, returning return_rtx.  Handle case 'e'.  Call
22995         finalize_string on XSTR and XTMPL fields.
22996         (rtx_reader::read_nested_rtx):  Handle dumps in which trailing
22997          "(nil)" values were omitted.  Call the postprocess vfunc on the
22998         return_rtx.
22999         (rtx_reader::rtx_reader): Add new "compact" param and pass to base
23000         class ctor.  Initialize m_in_call_function_usage.  Call
23001         one_time_initialization.
23002         * rtl-tests.c (selftest::test_uncond_jump): Call
23003         set_new_first_and_last_insn.
23004         * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
23005         * selftest-rtl.c: New file.
23006         * selftest-rtl.h (class selftest::rtl_dump_test): New class.
23007         (selftest::get_insn_by_uid): New decl.
23008         * selftest-run-tests.c (selftest::run_tests): Call
23009         read_rtl_function_c_tests.
23010         * selftest.h  (selftest::read_rtl_function_c_tests): New decl.
23011         * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
23012         dumps.
23014 2017-01-05  Uros Bizjak  <ubizjak@gmail.com>
23016         * config/i386/i386.md (*testqi_ext_3): No need to handle memory
23017         operands in a special way.  Assert that pos+len <= mode precision.
23019 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
23021         * common.opt (fvect-cost-model): Remove RejectNegative flag, use
23022         3 argument Alias with unlimited for the negative form.
23023         (fno-vect-cost-model): Removed.
23025 2017-01-05  Martin Liska  <mliska@suse.cz>
23027         * hsa-gen.c (gen_hsa_divmod): New function.
23028         (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
23030 2017-01-05  Martin Liska  <mliska@suse.cz>
23032         PR pch/78970
23033         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
23034         header.
23036 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23038         * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
23039         small constant length operands.
23041 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23043         * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
23044         between loop iterations.
23046 2017-01-05  Martin Liska  <mliska@suse.cz>
23048         PR sanitizer/78815
23049         * gimplify.c (gimplify_decl_expr): Compare to
23050         asan_poisoned_variables instread of checking flags.
23051         (gimplify_target_expr): Likewise.
23052         (gimplify_expr): Likewise.
23053         (gimplify_function_tree): Conditionally initialize
23054         asan_poisoned_variables.
23056 2017-01-04  Jeff Law  <law@redhat.com>
23058         PR tree-optimizatin/78812
23059         * rtl.h (contains_mem_rtx_p): Prototype.
23060         * ifcvt.c (containts_mem_rtx_p): Move from here to...
23061         * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
23062         * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
23063         and prune MEMs that are not at the toplevel of a SET_SRC rtx.  Look
23064         through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
23066 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
23068         * input.c (assert_char_at_range): Default-initialize actual_range.
23070 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
23072         * df-scan.c (df_ref_create_structure): Make regno unsigned,
23073         to match the caller.
23075 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
23077         * cfgexpand.c (expand_gimple_basic_block): Disregard debug
23078         insns after final jump in test to emit dummy move.
23080 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
23082         * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
23083         * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
23085 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
23087         * multiple_target.c (create_dispatcher_calls): Init e_next.
23088         * tree-ssa-loop-split.c (split_loop): Init border.
23089         * tree-vect-loop.c (vect_determine_vectorization_factor): Init
23090         scalar_type.
23092 2017-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
23094         PR target/71977
23095         PR target/70568
23096         PR target/78823
23097         * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
23098         (altivec_register_operand): Do not return true if the operand
23099         contains a SUBREG mixing SImode and SFmode.
23100         (vsx_register_operand): Likewise.
23101         (vsx_reg_sfsubreg_ok): New predicate.
23102         (vfloat_operand): Do not return true if the operand contains a
23103         SUBREG mixing SImode and SFmode.
23104         (vint_operand): Likewise.
23105         (vlogical_operand): Likewise.
23106         (gpc_reg_operand): Likewise.
23107         (int_reg_operand): Likewise.
23108         * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
23109         * config/rs6000/rs6000.c (valid_sf_si_move): New function to
23110         determine if a MOVSI or MOVSF operation contains SUBREGs that mix
23111         SImode and SFmode.
23112         (rs6000_emit_move_si_sf_subreg): New helper function.
23113         (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
23114         fixup SUBREGs involving SImode and SFmode.
23115         * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
23116         numbers for the new peephole2 optimization.
23117         (peephole2 for SFmode unions): New peephole2 to optimize cases in
23118         the GLIBC math library that do AND/IOR/XOR operations on single
23119         precision floating point.
23120         * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
23121         target macros to say whether we need to avoid SUBREGs mixing
23122         SImode and SFmode.
23123         (TARGET_ALLOW_SF_SUBREG): Likewise.
23124         * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
23125         (UNSPEC_SI_FROM_SF): Likewise.
23126         (iorxor): Change spacing.
23127         (and_ior_xor): New iterator for AND, IOR, and XOR.
23128         (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
23129         (movdi_from_sf_zero_ext): Likewise.
23130         (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
23131         instead of gpc_reg_operand.  Add SImode/SFmode SUBREG support.
23132         (movsf_from_si): New insn for SImode/SFmode SUBREG support.
23133         (fma<mode>4): Use gpc_reg_operand instead of register_operand.
23134         (fms<mode>4): Likewise.
23135         (fnma<mode>4): Likewise.
23136         (fnms<mode>4): Likewise.
23137         (nfma<mode>4): Likewise.
23138         (nfms<mode>4): Likewise.
23140 2017-01-04  Marek Polacek  <polacek@redhat.com>
23142         PR c++/64767
23143         * doc/invoke.texi: Document -Wpointer-compare.
23145 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
23147         * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
23148         RejectNegative.
23150         * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
23151         descriptions for -gdwarf-5 and emit them as uleb128 instead of
23152         2-byte data.
23154 2017-01-04  Kelvin Nilsen  <kelvin@gcc.gnu.org>
23156         PR target/78056
23157         * doc/sourcebuild.texi (PowerPC-specific attributes): Add
23158         documentation of the powerpc_popcntb_ok attribute.
23159         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
23160         code to issue warning messages if a requested CPU configuration is
23161         not supported by the binary (assembler and loader) toolchain.
23162         (spe_init_builtins): Add two assertions to prevent ICE if attempt is
23163         made to define a built-in function that has been disabled.
23164         (paired_init_builtins): Add assertion to prevent ICE if attempt is
23165         made to define a built-in function that has been disabled.
23166         (altivec_init_builtins): Add comment explaining why definition
23167         of the DST built-in functions is not preceded by an assertion
23168         check.  Add assertions to prevent ICE if attempts are made to
23169         define an altivec predicate or an abs* built-in function that has
23170         been disabled.
23171         (htm_init_builtins): Add comment explaining why definition of the
23172         htm built-in functions is not preceded by an assertion check.
23174 2017-01-04  Jeff Law  <law@redhat.com>
23176         PR tree-optimizatin/67955
23177         * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
23178         Allow any SSA_VAR_P as the base objects.  Use integer_zerop.  Verify
23179         the points-to solution does not include pt_null.  Use DECL_PT_UID
23180         unconditionally.
23182 2017-01-04  Uros Bizjak  <ubizjak@gmail.com>
23184         * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
23185         Use gen_int_mode instead of gen_lopwart for const_int operands.
23187 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
23189         PR tree-optimization/71563
23190         * match.pd: Simplify X << Y into X if Y is known to be 0 or
23191         out of range value - has low bits known to be zero.
23193 2017-01-04  Alan Modra  <amodra@gmail.com>
23195         * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
23196         * configure: Regenerate.
23197         * config.in: Regenerate.
23199 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
23201         PR bootstrap/77569
23202         * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
23203         a substring of the message, but strcmp with the whole message.  Ifdef
23204         ENABLE_NLS, translate the message first using dgettext.
23206 2017-01-03  Jeff Law  <law@redhat.com>
23208         PR tree-optimizatin/78856
23209         * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
23210         (mark_threaded_blocks): Remove code to truncate thread paths that
23211         cross multiple loop headers.  Instead invalidate the cached loop
23212         iteration information and handle case of a thread path walking
23213         into an irreducible region.
23215 2017-01-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
23217         PR target/78900
23218         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
23219         assertions.  Add support for doing the signbit if the IEEE 128-bit
23220         floating point value is in a GPR.
23221         * config/rs6000/rs6000.md (Fsignbit): Delete.
23222         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
23223         Update the length attribute if the value is in a GPR.
23224         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
23225         the sign or zero extension instruction, since the value is always 0/1.
23226         (signbit<mode>2_dm2): Delete using <Fsignbit>.
23228         PR target/78953
23229         * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
23230         extracting SImode to a GPR register so that we can generate a
23231         store, limit the vector to be in a traditional Altivec register
23232         for the vextuwrx instruction.
23234 2017-01-03  Ian Lance Taylor  <iant@google.com>
23236         * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
23238 2017-01-03  Martin Sebor  <msebor@redhat.com>
23240         PR tree-optimization/78696
23241         * gimple-ssa-sprintf.c (format_floating): Correct handling of
23242         precision.  Use MPFR for %f for greater fidelity.  Correct handling
23243         of %g.
23244         (pass_sprintf_length::compute_format_length): Set width and precision
23245         specified by asrerisk to void_node for vararg functions.
23246         (try_substitute_return_value): Adjust dump output.
23248 2017-01-03  David Edelsohn  <dje.gcc@gmail.com>
23250         * doc/invoke.texi (RS6000 options): LRA is enabled by default.
23252 2017-01-03  Eric Botcazou  <ebotcazou@adacore.com>
23254         * doc/invoke.texi (SPARC options): Document -mlra as the default.
23255         * config/sparc/sparc.c (sparc_option_override): Force LRA unless
23256         -mlra/-mno-lra was passed to the compiler.
23258 2017-01-03  James Cowgill  <James.Cowgill@imgtec.com>
23260         PR rtl-optimization/65618
23261         * emit-rtl.c (try_split): Move initialization of "before" and
23262         "after" to just before the call to emit_insn_after_setloc.
23264 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
23266         * doc/md.texi (Standard Names): Remove reference to Java frontend.
23268 2017-01-03  Pierre-Marie de Rodat  <derodat@adacore.com>
23270         * dwarf2out.c (gen_enumeration_type_die): When
23271         -gno-strict-dwarf, add a DW_AT_encoding attribute.
23273 2017-01-03  Jakub Jelinek  <jakub@redhat.com>
23275         PR tree-optimization/78965
23276         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
23277         Change first argument from const call_info & to call_info &.  For %n
23278         set info.nowrite to false.
23280         PR middle-end/78901
23281         * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
23282         possibly throwing calls.
23284         * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
23285         and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
23286         and fns handling, rather than in a separate case SSA_NAME.
23288 2017-01-02  Jeff Law  <law@redhat.com>
23290         * config/darwin-driver.c (darwin_driver_init): Const-correctness
23291         fixes for first_period and second_period variables.
23293 2017-01-02  Uros Bizjak  <ubizjak@gmail.com>
23295         PR target/78967
23296         * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
23297         (*insvqi_1): New insn pattern.
23298         (*insvqi_1_mem_rex64): Ditto.
23299         (*insvqi_2): Ditto.
23300         (*insvqi_3): Rename from *insvqi.
23302         (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
23304 2017-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
23306         * doc/cfg.texi (Edges): Remove reference to Java.
23307         (Maintaining the CFG): Ditto.
23309 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
23311         PR middle-end/77674
23312         * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
23313         transparent aliases.
23315 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
23317         PR middle-end/77484
23318         * predict.def (PRED_CALL): Update hitrate.
23319         (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
23320         * predict.c (tree_estimate_probability_bb): Split CALL predictor
23321         into direct/indirect/polymorphic variants.
23323 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
23325         Update copyright years.
23327         * gcc.c (process_command): Update copyright notice dates.
23328         * gcov-dump.c (print_version): Ditto.
23329         * gcov.c (print_version): Ditto.
23330         * gcov-tool.c (print_version): Ditto.
23331         * gengtype.c (create_file): Ditto.
23332         * doc/cpp.texi: Bump @copying's copyright year.
23333         * doc/cppinternals.texi: Ditto.
23334         * doc/gcc.texi: Ditto.
23335         * doc/gccint.texi: Ditto.
23336         * doc/gcov.texi: Ditto.
23337         * doc/install.texi: Ditto.
23338         * doc/invoke.texi: Ditto.
23340 Copyright (C) 2017 Free Software Foundation, Inc.
23342 Copying and distribution of this file, with or without modification,
23343 are permitted in any medium without royalty provided the copyright
23344 notice and this notice are preserved.