Add support for ARMv8-R architecture
[official-gcc.git] / gcc / ChangeLog
blob9324ce17fdc0f1caacd38fd6af447ea4f4db689a
1 2017-07-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3         * config/arm/arm-cpus.in (armv8-r): Add new entry.
4         * config/arm/arm-isa.h (ISA_ARMv8r): Define macro.
5         * config/arm/arm-tables.opt: Regenerate.
6         * config/arm/arm.h (enum base_architecture): Add BASE_ARCH_8R
7         enumerator.
8         * doc/invoke.texi: Mention -march=armv8-r and its extensions.
10 2017-07-06  Carl Love  <cel@us.ibm.com>
12         * ChangeLog: Clean up from mid air collision
14 2017-07-06  Carl Love  <cel@us.ibm.com>
16         * config/rs6000/rs6000-c.c: Add support for built-in functions
17         vector signed int vec_subc (vector signed int, vector signed int);
18         vector signed __int128 vec_subc (vector signed __int128,
19                                          vector signed __int128);
20         vector unsigned __int128 vec_subc (vector unsigned __int128,
21                                            vector unsigned __int128);
22         vector signed int vec_sube (vector signed int, vector signed int,
23                                     vector signed int);
24         vector unsigned int vec_sube (vector unsigned int,
25                                       vector unsigned int,
26                                       vector unsigned int);
27         vector signed __int128 vec_sube (vector signed __int128,
28                                          vector signed __int128,
29                                          vector signed__int128);
30         vector unsigned __int128 vec_sube (vector unsigned __int128,
31                                            vector unsigned __int128,
32                                            vector unsigned __int128);
33         vector signed int vec_subec (vector signed int, vector signed int,
34                                      vector signed int);
35         vector unsigned int vec_subec (vector unsigned int,
36                                        vector unsigned int,
37                                        vector unsigned int);
38         vector signed __int128 vec_subec (vector signed __int128,
39                                           vector signed __int128,
40                                           vector signed__int128);
41         vector unsigned __int128 vec_subec (vector unsigned __int128,
42                                             vector unsigned __int128,
43                                             vector unsigned __int128);
44         * config/rs6000/rs6000.c (ALTIVEC_BUILTIN_VEC_SUBE,
45         ALTIVEC_BUILTIN_VEC_SUBEC): Add ef_builtins.
46         * config/rs6000/rs6000-builtin.def (SUBE, SUBEC): Add
47         BU_ALTIVEC_OVERLOAD_X definitions.
48         * config/rs6000/altivec.h (vec_sube, vec_subec): Add builtin defines.
49         * doc/extend.texi: Update the built-in documentation file for the new
50         built-in functions.
52 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
54         PR c++/79300
55         * diagnostic-show-locus.c (layout::layout): Use start and finish
56         spelling location for the start and finish of each range.
57         * genmatch.c (linemap_client_expand_location_to_spelling_point):
58         Add unused aspect param.
59         * input.c (expand_location_1): Add "aspect" param, and use it
60         to access the correct part of the location.
61         (expand_location): Pass LOCATION_ASPECT_CARET to new param of
62         expand_location_1.
63         (expand_location_to_spelling_point): Likewise.
64         (linemap_client_expand_location_to_spelling_point): Add "aspect"
65         param, and pass it to expand_location_1.
67 2017-07-06  Sebastian Peryt  <sebastian.peryt@intel.com>
69         * config/i386/avx512fintrin.h (_mm_mask_getexp_round_ss,
70         _mm_maskz_getexp_round_ss, _mm_mask_getexp_round_sd,
71         _mm_maskz_getexp_round_sd, _mm_mask_getmant_round_sd,
72         _mm_maskz_getmant_round_sd, _mm_mask_getmant_round_ss,
73         _mm_maskz_getmant_round_ss, _mm_mask_getexp_ss, _mm_maskz_getexp_ss,
74         _mm_mask_getexp_sd, _mm_maskz_getexp_sd, _mm_mask_getmant_sd,
75         _mm_maskz_getmant_sd, _mm_mask_getmant_ss,
76         _mm_maskz_getmant_ss): New intrinsics.
77         (__builtin_ia32_getexpss128_mask): Changed to ...
78         __builtin_ia32_getexpss128_round ... this.
79         (__builtin_ia32_getexpsd128_mask): Changed to ...
80         __builtin_ia32_getexpsd128_round ... this.
81         * config/i386/i386-builtin-types.def
82         ((V2DF, V2DF, V2DF, INT, V2DF, UQI, INT),
83         (V4SF, V4SF, V4SF, INT, V4SF, UQI, INT)): New function type aliases.
84         * config/i386/i386-builtin.def (__builtin_ia32_getexpsd_mask_round,
85         __builtin_ia32_getexpss_mask_round,     __builtin_ia32_getmantsd_mask_round,
86         __builtin_ia32_getmantss_mask_round): New builtins.
87         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_UQI_INT,
88         V4SF_FTYPE_V4SF_V4SF_INT_V4SF_UQI_INT): Handle new types.
89         (CODE_FOR_avx512f_vgetmantv2df_mask_round,
90         CODE_FOR_avx512f_vgetmantv4sf_mask_round): New cases.
91         * config/i386/sse.md
92         (avx512f_sgetexp<mode><round_saeonly_name>): Changed to ...
93         avx512f_sgetexp<mode><mask_scalar_name>
94         <round_saeonly_scalar_name> ... this.
95         (vgetexp<ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|
96         %0, %1, %2<round_saeonly_op3>}): Changed to ...
97         vgetexp<ssescalarmodesuffix>
98         \t{<round_saeonly_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
99         %0<mask_scalar_operand3>, %1, %2<round_saeonly_scalar_mask_op3>} ... this.
100         (avx512f_vgetmant<mode><round_saeonly_name>): Changed to ...
101         avx512f_vgetmant<mode><mask_scalar_name>
102         <round_saeonly_scalar_name> ... this.
103         (vgetmant<ssescalarmodesuffix>\t{%3, <round_saeonly_op4>%2, %1, %0|
104         %0, %1, %2<round_saeonly_op4>, %3}): Changed to ...
105         vgetmant<ssescalarmodesuffix>
106         \t{%3, <round_saeonly_scalar_mask_op4>%2, %1, %0<mask_scalar_operand4>|
107         %0<mask_scalar_operand4>, %1, %2
108         <round_saeonly_scalar_mask_op4>, %3} ... this.
109         * config/i386/subst.md (mask_scalar_operand4,
110         round_saeonly_scalar_mask_operand4,     round_saeonly_scalar_mask_op4,
111         round_saeonly_scalar_nimm_predicate): New subst attributes.
113 2017-07-06  Julia Koval  <julia.koval@intel.com>
115         * gcc/config/i386/i386.c (ix86_erase_embedded_rounding):
116         Remove code for old rounding pattern.
118 2017-07-06  Richard Earnshaw  <rearnsha@arm.com>
120         * config/arm/parsecpu.awk (gen_comm_data): Do not escape single quotes
121         in quoted strings.
123 2017-07-06  Richard Earnshaw  <rearnsha@arm.com>
125         * config/arm/t-arm (GTM_H): Add arm-cpu.h.
127 2017-07-06  Christophe Lyon  <christophe.lyon@linaro.org>
129         * doc/sourcebuild.texi (Test Directives, Variants of
130         dg-require-support): Add documentation for dg-require-stack-check.
132 2017-07-05  Sebastian Peryt  <sebastian.peryt@intel.com>
134         * config/i386/subst.md (mask_scalar, round_scalar,
135         round_saeonly_scalar): New meta-templates.
136         (mask_scalar_name, mask_scalar_operand3, round_scalar_name,
137         round_scalar_mask_operand3, round_scalar_mask_op3,
138         round_scalar_constraint, round_scalar_prefix, round_saeonly_scalar_name,
139         round_saeonly_scalar_mask_operand3, round_saeonly_scalar_mask_op3,
140         round_saeonly_scalar_constraint,
141         round_saeonly_scalar_prefix): New subst attribute.
142         * config/i386/sse.md
143         (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): Renamed to ...
144         <sse>_vm<plusminus_insn><mode>3<mask_scalar_name>
145         <round_scalar_name> ... this.
146         (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): Renamed to ...
147         <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name>
148         <round_scalar_name> ... this.
149         (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): Renamed to ...
150         <sse>_vm<code><mode>3<mask_scalar_name>
151         <round_saeonly_scalar_name> ... this.
152         (v<plusminus_mnemonic><ssescalarmodesuffix>
153         \t{<round_mask_op3>%2, %1, %0<mask_operand3>|
154         %0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}): Changed to ...
155         v<plusminus_mnemonic><ssescalarmodesuffix>
156         \t{<round_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
157         %0<mask_scalar_operand3>, %1, %<iptr>2<round_scalar_mask_op3>} ... this.
158         (v<multdiv_mnemonic><ssescalarmodesuffix>
159         \t{<round_mask_op3>%2, %1, %0<mask_operand3>|
160         %0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}): Changed to ...
161         v<multdiv_mnemonic><ssescalarmodesuffix>
162         \t{<round_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
163         %0<mask_scalar_operand3>, %1, %<iptr>2<round_scalar_mask_op3>} ... this.
164         (v<maxmin_float><ssescalarmodesuffix>
165         \t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|
166         %0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}): Changed to ...
167         v<maxmin_float><ssescalarmodesuffix>
168         \t{<round_saeonly_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
169         %0<mask_scalar_operand3>, %1, %<iptr>2
170         <round_saeonly_scalar_mask_op3>} ... this.
172 2017-07-05  Richard Earnshaw  <rearnsha@arm.com>
174         * config/arm/arm.c (arm_fixed_condition_code_regs): New function.
175         (TARGET_FIXED_CONDITION_CODE_REGS): Redefine.
177 2017-07-05  Richard Sandiford  <richard.sandiford@linaro.org>
178             Alan Hayward  <alan.hayward@arm.com>
179             David Sherwood  <david.sherwood@arm.com>
181         * combine.c (simplify_if_then_else): Remove "enum" before
182         "machine_mode".
183         * compare-elim.c (can_eliminate_compare): Likewise.
184         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_std_type):
185         Likewise.
186         (aarch64_lookup_simd_builtin_type): Likewise.
187         (aarch64_simd_builtin_type): Likewise.
188         (aarch64_init_simd_builtin_types): Likewise.
189         (aarch64_simd_expand_args): Likewise.
190         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist):
191         Likewise.
192         (aarch64_reverse_mask): Likewise.
193         (aarch64_simd_emit_reg_reg_move): Likewise.
194         (aarch64_gen_adjusted_ldpstp): Likewise.
195         (aarch64_ccmp_mode_to_code): Likewise.
196         (aarch64_operands_ok_for_ldpstp): Likewise.
197         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
198         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class):
199         Likewise.
200         (aarch64_min_divisions_for_recip_mul): Likewise.
201         (aarch64_reassociation_width): Likewise.
202         (aarch64_get_condition_code_1): Likewise.
203         (aarch64_simd_emit_reg_reg_move): Likewise.
204         (aarch64_simd_attr_length_rglist): Likewise.
205         (aarch64_reverse_mask): Likewise.
206         (aarch64_operands_ok_for_ldpstp): Likewise.
207         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
208         (aarch64_gen_adjusted_ldpstp): Likewise.
209         * config/aarch64/cortex-a57-fma-steering.c (fma_node::rename):
210         Likewise.
211         * config/arc/arc.c (legitimate_offset_address_p): Likewise.
212         * config/arm/arm-builtins.c (arm_simd_builtin_std_type): Likewise.
213         (arm_lookup_simd_builtin_type): Likewise.
214         (arm_simd_builtin_type): Likewise.
215         (arm_init_simd_builtin_types): Likewise.
216         (arm_expand_builtin_args): Likewise.
217         * config/arm/arm-protos.h (arm_expand_builtin): Likewise.
218         * config/ft32/ft32.c (ft32_libcall_value): Likewise.
219         (ft32_setup_incoming_varargs): Likewise.
220         (ft32_function_arg): Likewise.
221         (ft32_function_arg_advance): Likewise.
222         (ft32_pass_by_reference): Likewise.
223         (ft32_arg_partial_bytes): Likewise.
224         (ft32_valid_pointer_mode): Likewise.
225         (ft32_addr_space_pointer_mode): Likewise.
226         (ft32_addr_space_legitimate_address_p): Likewise.
227         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple):
228         Likewise.
229         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
230         (ix86_emit_outlined_ms2sysv_restore): Likewise.
231         (iamcu_alignment): Likewise.
232         (canonicalize_vector_int_perm): Likewise.
233         (ix86_noce_conversion_profitable_p): Likewise.
234         (ix86_mpx_bound_mode): Likewise.
235         (ix86_operands_ok_for_move_multiple): Likewise.
236         * config/microblaze/microblaze-protos.h
237         (microblaze_expand_conditional_branch_reg): Likewise.
238         * config/microblaze/microblaze.c
239         (microblaze_expand_conditional_branch_reg): Likewise.
240         * config/powerpcspe/powerpcspe.c (rs6000_init_hard_regno_mode_ok):
241         Likewise.
242         (rs6000_reassociation_width): Likewise.
243         (rs6000_invalid_binary_op): Likewise.
244         (fusion_p9_p): Likewise.
245         (emit_fusion_p9_load): Likewise.
246         (emit_fusion_p9_store): Likewise.
247         * config/riscv/riscv-protos.h (riscv_regno_mode_ok_for_base_p):
248         Likewise.
249         (riscv_hard_regno_mode_ok_p): Likewise.
250         (riscv_address_insns): Likewise.
251         (riscv_split_symbol): Likewise.
252         (riscv_legitimize_move): Likewise.
253         (riscv_function_value): Likewise.
254         (riscv_hard_regno_nregs): Likewise.
255         (riscv_expand_builtin): Likewise.
256         * config/riscv/riscv.c (riscv_build_integer_1): Likewise.
257         (riscv_build_integer): Likewise.
258         (riscv_split_integer): Likewise.
259         (riscv_legitimate_constant_p): Likewise.
260         (riscv_cannot_force_const_mem): Likewise.
261         (riscv_regno_mode_ok_for_base_p): Likewise.
262         (riscv_valid_base_register_p): Likewise.
263         (riscv_valid_offset_p): Likewise.
264         (riscv_valid_lo_sum_p): Likewise.
265         (riscv_classify_address): Likewise.
266         (riscv_legitimate_address_p): Likewise.
267         (riscv_address_insns): Likewise.
268         (riscv_load_store_insns): Likewise.
269         (riscv_force_binary): Likewise.
270         (riscv_split_symbol): Likewise.
271         (riscv_force_address): Likewise.
272         (riscv_legitimize_address): Likewise.
273         (riscv_move_integer): Likewise.
274         (riscv_legitimize_const_move): Likewise.
275         (riscv_legitimize_move): Likewise.
276         (riscv_address_cost): Likewise.
277         (riscv_subword): Likewise.
278         (riscv_output_move): Likewise.
279         (riscv_canonicalize_int_order_test): Likewise.
280         (riscv_emit_int_order_test): Likewise.
281         (riscv_function_arg_boundary): Likewise.
282         (riscv_pass_mode_in_fpr_p): Likewise.
283         (riscv_pass_fpr_single): Likewise.
284         (riscv_pass_fpr_pair): Likewise.
285         (riscv_get_arg_info): Likewise.
286         (riscv_function_arg): Likewise.
287         (riscv_function_arg_advance): Likewise.
288         (riscv_arg_partial_bytes): Likewise.
289         (riscv_function_value): Likewise.
290         (riscv_pass_by_reference): Likewise.
291         (riscv_setup_incoming_varargs): Likewise.
292         (riscv_print_operand): Likewise.
293         (riscv_elf_select_rtx_section): Likewise.
294         (riscv_save_restore_reg): Likewise.
295         (riscv_for_each_saved_reg): Likewise.
296         (riscv_register_move_cost): Likewise.
297         (riscv_hard_regno_mode_ok_p): Likewise.
298         (riscv_hard_regno_nregs): Likewise.
299         (riscv_class_max_nregs): Likewise.
300         (riscv_memory_move_cost): Likewise.
301         * config/rl78/rl78-protos.h (rl78_split_movsi): Likewise.
302         * config/rl78/rl78.c (rl78_split_movsi): Likewise.
303         (rl78_addr_space_address_mode): Likewise.
304         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
305         Likewise.
306         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
307         (rs6000_reassociation_width): Likewise.
308         (rs6000_invalid_binary_op): Likewise.
309         (fusion_p9_p): Likewise.
310         (emit_fusion_p9_load): Likewise.
311         (emit_fusion_p9_store): Likewise.
312         * config/visium/visium-protos.h (prepare_move_operands): Likewise.
313         (ok_for_simple_move_operands): Likewise.
314         (ok_for_simple_move_strict_operands): Likewise.
315         (ok_for_simple_arith_logic_operands): Likewise.
316         (visium_legitimize_reload_address): Likewise.
317         (visium_select_cc_mode): Likewise.
318         (output_cbranch): Likewise.
319         (visium_split_double_move): Likewise.
320         (visium_expand_copysign): Likewise.
321         (visium_expand_int_cstore): Likewise.
322         (visium_expand_fp_cstore): Likewise.
323         * config/visium/visium.c (visium_pass_by_reference): Likewise.
324         (visium_function_arg): Likewise.
325         (visium_function_arg_advance): Likewise.
326         (visium_libcall_value): Likewise.
327         (visium_setup_incoming_varargs): Likewise.
328         (visium_legitimate_constant_p): Likewise.
329         (visium_legitimate_address_p): Likewise.
330         (visium_legitimize_address): Likewise.
331         (visium_secondary_reload): Likewise.
332         (visium_register_move_cost): Likewise.
333         (visium_memory_move_cost): Likewise.
334         (prepare_move_operands): Likewise.
335         (ok_for_simple_move_operands): Likewise.
336         (ok_for_simple_move_strict_operands): Likewise.
337         (ok_for_simple_arith_logic_operands): Likewise.
338         (visium_function_value_1): Likewise.
339         (rtx_ok_for_offset_p): Likewise.
340         (visium_legitimize_reload_address): Likewise.
341         (visium_split_double_move): Likewise.
342         (visium_expand_copysign): Likewise.
343         (visium_expand_int_cstore): Likewise.
344         (visium_expand_fp_cstore): Likewise.
345         (visium_split_cstore): Likewise.
346         (visium_select_cc_mode): Likewise.
347         (visium_split_cbranch): Likewise.
348         (output_cbranch): Likewise.
349         (visium_print_operand_address): Likewise.
350         * expmed.c (flip_storage_order): Likewise.
351         * expmed.h (emit_cstore): Likewise.
352         (flip_storage_order): Likewise.
353         * genrecog.c (validate_pattern): Likewise.
354         * hsa-gen.c (gen_hsa_addr): Likewise.
355         * internal-fn.c (expand_arith_overflow): Likewise.
356         * ira-color.c (allocno_copy_cost_saving): Likewise.
357         * lra-assigns.c (find_hard_regno_for_1): Likewise.
358         * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
359         (process_invariant_for_inheritance): Likewise.
360         * lra-eliminations.c (move_plus_up): Likewise.
361         * omp-low.c (lower_oacc_reductions): Likewise.
362         * simplify-rtx.c (simplify_subreg): Likewise.
363         * target.def (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
364         (TARGET_CHKP_BOUND_MODE): Likewise..
365         * targhooks.c (default_chkp_bound_mode): Likewise.
366         (default_setup_incoming_vararg_bounds): Likewise.
367         * targhooks.h (default_chkp_bound_mode): Likewise.
368         (default_setup_incoming_vararg_bounds): Likewise.
369         * tree-ssa-math-opts.c (divmod_candidate_p): Likewise.
370         * tree-vect-loop.c (calc_vec_perm_mask_for_shift): Likewise.
371         (have_whole_vector_shift): Likewise.
372         * tree-vect-stmts.c (vectorizable_load): Likewise.
373         * doc/tm.texi: Regenerate.
375 2017-07-05  Georg-Johann Lay  <avr@gjlay.de>
377         Graceful degrade if Binutils PR21472 is not available.
379         PR target/81072
380         * configure.ac [target=avr]: WARN instead of ERROR if avrxmega3
381         .rodata in flash test fails.
382         (HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH): Define it if test passes.
383         * confgure: Regenerate.
384         * config.in: Regenerate.
385         * config/avr/avr.c (avr_asm_named_section)
386         [HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH]: Only trigger
387         __do_copy_data for stuff in .rodata if flash_pm_offset = 0.
388         (avr_asm_init_sections): Same.
390 2017-07-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
392         * config/arm/neon.md (fma<VCVTF:mode>4): Remove %?.
393         (fma<VH:mode>4_intrinsic): Likewise.
394         (*fmsub<VCVTF:mode>4): Likewise.
395         (*fmsub<VH:mode>4_intrinsic): Likewise.
397 2017-07-05  Georg-Johann Lay  <avr@gjlay.de>
399         PR target/81305
400         * config/avr/avr.c (avr_out_movhi_mr_r_xmega) [CONSTANT_ADDRESS_P]:
401         Don't depend on "optimize > 0".
402         (out_movhi_r_mr, out_movqi_mr_r): Same.
403         (out_movhi_mr_r, out_movqi_r_mr): Same.
404         (avr_address_cost) [CONSTANT_ADDRESS_P]: Don't depend cost for
405         io_address_operand on "optimize > 0".
407 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
409         * tree-loop-distribution.c: Add general explanantion on the pass.
410         (generate_loops_for_partition): Mark distributed loop.
411         (pg_add_dependence_edges): New parameter.  Handle alias data
412         dependence specially and record it in the parameter if asked.
413         (struct pg_vdata, pg_edata, pg_edge_callback_data): New structs.
414         (init_partition_graph_vertices, add_partition_graph_edge): New.
415         (pg_skip_alias_edge, free_partition_graph_edata_cb): New.
416         (free_partition_graph_vdata, build_partition_graph): New.
417         (sort_partitions_by_post_order, merge_dep_scc_partitions): New.
418         (pg_collect_alias_ddrs, break_alias_scc_partitions): New.
419         (data_ref_segment_size, latch_dominated_by_data_ref): New.
420         (compute_alias_check_pairs, version_loop_by_alias_check): New.
421         (version_for_distribution_p, finalize_partitions): New.
422         (distribute_loop): Handle alias data dependence specially.  Factor
423         out loop fusion code as functions and call these functions.
425 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
427         * tree-loop-distribution.c (classify_partition): New parameter and
428         better handle reduction statement.
429         (rdg_build_partitions): Revise comment.
430         (distribute_loop): Compute statements in all partitions and pass it
431         to classify_partition.
433 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
435         * tree-loop-distribution.c (enum partition_type): New.
436         (struct partition): New field type.
437         (partition_merge_into): Add parameter.  Update partition type.
438         (data_dep_in_cycle_p, update_type_for_merge): New functions.
439         (build_rdg_partition_for_vertex): Compute partition type.
440         (rdg_build_partitions): Dump partition type.
441         (distribute_loop): Update calls to partition_merge_into.
443 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
445         * tree-loop-distribution.c (struct ddr_hasher): New.
446         (ddr_hasher::hash, ::equal, get_data_dependence): New function.
447         (ddrs_table): New.
448         (classify_partition): Call get_data_dependence.
449         (pg_add_dependence_edges): Ditto.
450         (distribute_loop): Release data dependence hash table.
452 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
454         * tree-loop-distribution.c (ref_base_address): Delete.
455         (similar_memory_accesses): Rename ...
456         (share_memory_accesses): ... to this.  Check if partitions access
457         the same memory reference.
458         (distribute_loop): Call share_memory_accesses.
460 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
462         * tree-loop-distribution.c (struct partition): New field recording
463         its data reference.
464         (partition_alloc, partition_free): Init and release data refs.
465         (partition_merge_into): Merge data refs.
466         (build_rdg_partition_for_vertex): Collect data refs for partition.
467         (pg_add_dependence_edges): Change parameters from vector to bitmap.
468         Update uses.
469         (distribute_loop): Remve data refs from vertice data of partition
470         graph.
472 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
474         * tree-loop-distribution.c (params.h): Include header file.
475         (MAX_DATAREFS_NUM, DR_INDEX): New macro.
476         (datarefs_vec): New global var.
477         (create_rdg_vertices): Use datarefs_vec directly.
478         (free_rdg): Don't free data references.
479         (build_rdg): Update use.  Don't free data references.
480         (distribute_loop): Compute global variable for data references.
481         Bail out if there are too many data references.
483 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
485         * tree-loop-distribution.c (loop_nest): New global var.
486         (build_rdg): Use loop directly, rather than loop nest.
487         (pg_add_dependence_edges): Remove loop nest parameter.  Use global
488         variable directly.
489         (distribute_loop): Compute global variable loop nest.  Update use.
491 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
493         * tree-loop-distribution.c (enum fuse_type, fuse_message): New.
494         (partition_merge_into): New parameter.  Dump reason for fusion.
495         (distribute_loop): Update use of partition_merge_into.
497 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
499         * tree-loop-distribution.c (bb_top_order_index): New.
500         (bb_top_order_index_size, bb_top_order_cmp): New.
501         (stmts_from_loop): Use topological order.
502         (pass_loop_distribution::execute): Compute and release topological
503         order for basic blocks.
505 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
507         * tree-loop-distribution.c (pass_loop_distribution::execute): Skip
508         if no loops.
510 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
512         * cfgloop.h (struct loop): Add comment.  New field orig_loop_num.
513         * cfgloopmanip.c (lv_adjust_loop_entry_edge): Comment change.
514         * internal-fn.c (expand_LOOP_DIST_ALIAS): New function.
515         * internal-fn.def (LOOP_DIST_ALIAS): New.
516         * tree-vectorizer.c (fold_loop_vectorized_call): Rename to ...
517         (fold_loop_internal_call): ... this.
518         (vect_loop_dist_alias_call): New function.
519         (set_uid_loop_bbs): Call fold_loop_internal_call.
520         (vectorize_loops): Fold IFN_LOOP_VECTORIZED and IFN_LOOP_DIST_ALIAS
521         internal calls.
523 2017-07-04  Uros Bizjak  <ubizjak@gmail.com>
525         PR target/81300
526         * config/i386/i386.md (setcc + movzbl/and to xor + setcc peepholes):
527         Require dead FLAGS_REG at the beginning of a peephole.
529 2017-07-04  Uros Bizjak  <ubizjak@gmail.com>
531         PR target/81294
532         * config/i386/adxintrin.h (_subborrow_u32): Swap _X and _Y
533         arguments in the call to __builtin_ia32_sbb_u32.
534         (_subborrow_u64): Swap _X and _Y arguments in the call to
535         __builtin_ia32_sbb_u64.
537 2017-07-04  Jakub Jelinek  <jakub@redhat.com>
539         PR debug/81278
540         * tree-vrp.c (compare_assert_loc): Turn into a function template
541         with stable template parameter.  Only test if a->e is NULL,
542         !a->e == !b->e has been verified already.  Use e == NULL or
543         e != NULL instead of e or ! e tests.  If stable is true, don't use
544         iterative_hash_expr, on the other side allow a or b or both NULL
545         and sort the NULLs last.
546         (process_assert_insertions): Sort using compare_assert_loc<false>
547         instead of compare_assert_loc, later sort using
548         compare_assert_loc<true> before calling process_assert_insertions_for
549         in a loop.  Use break instead of continue once seen NULL pointer.
551 2017-07-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
553         * config/arm/driver-arm.c (arm_cpu_table): Add entry for ARM
554         Cortex-R7 and Cortex-R8 processors.
556 2017-07-04  Jan Hubicka  <hubicka@ucw.cz>
558         * ipa-utils.c (ipa_merge_profiles): Fix merging when dst is
559         uninitialized while src is not.
561 2017-07-04  Richard Earnshaw  <rearnsha@arm.com>
563         * common/config/arm/arm-common.c: Adjust include path for
564         arm-cpu-cdata.h
565         * config/arm/t-arm (TM_H): Adjust path for arm-cpu.h.
566         (arm-cpu.h): Create in build directory.  Adjust dependency rules.
567         (arm-cpu-data.h): Likewise.
568         (arm-cpu-cdata.h): Likewise.
569         * config/arm/arm-cpu.h: Delete.
570         * config/arm/arm-cpu-cdata.h: Delete.
571         * config/arm/arm-cpu-data.h: Delete.
573 2017-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
575         * config/arm/arm-cpus.in (cortex-a55): New.
576         (cortex-a75): Likewise.
577         (cortex-a75.cortex-a55): Likewise.
578         * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a55 and
579         cortex-a75.
580         * doc/invoke.texi (-mcpu): Document cortex-a55 and cortex-a75.
581         * config/arm/arm-cpu-cdata.h: Regenerate.
582         * config/arm/arm-cpu-data.h: Regenerate.
583         * config/arm/arm-cpu.h: Regenerate.
584         * config/arm/arm-tables.opt: Regenerate.
585         * config/arm/arm-tune.md: Regenerate.
587 2017-07-04  Jan Hubicka  <hubicka@ucw.cz>
589         * haifa-sched.c (sched_create_recovery_edges): Update profile.
591 2017-07-04  Jan Hubicka  <hubicka@ucw.cz>
593         * bb-reorder.c (better_edge_p): Fix handling of uninitialized
594         probability.
596 2017-07-04  Richard Sandiford  <richard.sandiford@linaro.org>
598         PR tree-optimization/81292
599         * tree-ssa-strlen.c (handle_builtin_strlen): When setting
600         full_string_p, also call adjust_related_strinfos if the adjustment
601         is simple, otherwise invalidate related strinfos.
603 2017-07-04  Martin Liska  <mliska@suse.cz>
605         PR sanitizer/81040
606         * sanopt.c (sanitize_rewrite_addressable_params): Mark the
607         newly created variable as DECL_IGNORED_P.
609 2017-07-04  Martin Liska  <mliska@suse.cz>
611         PR ipa/81293
612         * ipa-inline.c (inline_small_functions):
613         Use xstrdup_for_dump.
615 2017-07-04  Tom de Vries  <tom@codesourcery.com>
617         * graph.c (draw_cfg_edges): Save and restore EDGE_DFS_BACK.
619 2017-07-03  Dominique d'Humieres  <dominiq@lps.ens.fr>
621         PR target/81033
622         * config/darwin.c (darwin_function_switched_text_sections):
623         Fix spaces.
625 2017-07-03  Jan Hubicka  <hubicka@ucw.cz>
627         * tree-vect-loop-manip.c (vect_do_peeling): Fix scaling up.
629 2017-07-03  Richard Earnshaw  <rearnsha@arm.com>
631         * doc/invoke.texi (ARM Options): Add -mbe8 and -mbe32 to option summary.
633 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
635         * tree-vect-loop.c (vect_analyze_loop_2): Treat min_scalar_loop_bound,
636         min_profitable_iters, and th as inclusive lower bounds.
637         Fix LOOP_VINFO_PEELING_FOR_GAPS condition.
638         (vect_estimate_min_profitable_iters): Return inclusive lower bounds
639         for min_profitable_iters and min_profitable_estimate.
640         (vect_transform_loop): Treat th as an inclusive lower bound.
641         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
643 2017-07-03  Dominique d'Humieres  <dominiq@lps.ens.fr>
645         PR target/81033
646         * config/darwin.c (darwin_function_switched_text_sections):
647         Replace DECL_NAME with DECL_ASSEMBLER_NAME, split assemble_name_raw
648         in two pieces, and suppress the use of buf.
650 2017-07-03  Nathan Sidwell  <nathan@acm.org>
652         * hash-table.h (hash_table_mod1): Fix indentation.
654 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
656         PR middle-end/81290
657         * predict.c (force_edge_cold): Be more careful about propagation
658         backward.
659         * profile-count.h (profile_probability::guessed,
660         profile_probability::fdo, profile_count::guessed, profile_count::fdo):
661         New.
662         * tree-ssa-threadupdate.c (recompute_probabilities): Result is guessed.
664 2017-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
666         * doc/invoke.texi (rcpc architecture extension): Document it.
668 2017-07-03  Richard Biener  <rguenther@suse.de>
670         PR tree-optimization/60510
671         * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass in
672         the scalar reduction PHI and use it.
673         (vectorizable_reduction): Properly guard the single_defuse_cycle
674         path for non-SLP reduction chains where we cannot use it.
675         Rework reduc_def/index and vector type deduction.  Rework
676         vector operand gathering during reduction op code-gen.
677         * tree-vect-slp.c (vect_analyze_slp): For failed SLP reduction
678         chains dissolve the chain and leave it to non-SLP reduction
679         handling.
681 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
683         * tree-data-ref.h (dr_alignment): Declare.
684         * tree-data-ref.c (dr_alignment): New function.
685         * tree-vectorizer.h (dataref_aux): Remove base_element_aligned.
686         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Don't
687         set it.
688         * tree-vect-stmts.c (vectorizable_store): Use dr_alignment.
690 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
692         * tree-data-ref.h (innermost_loop_behavior): Add base_alignment
693         and base_misalignment fields.
694         (DR_BASE_ALIGNMENT, DR_BASE_MISALIGNMENT): New macros.
695         * tree-data-ref.c: Include builtins.h.
696         (dr_analyze_innermost): Set up the new innmost_loop_behavior fields.
697         * tree-vectorizer.h (STMT_VINFO_DR_BASE_ALIGNMENT): New macro.
698         (STMT_VINFO_DR_BASE_MISALIGNMENT): Likewise.
699         * tree-vect-data-refs.c: Include tree-cfg.h.
700         (vect_compute_data_ref_alignment): Use the new innermost_loop_behavior
701         fields instead of calculating an alignment here.
702         (vect_analyze_data_refs): Use dr_analyze_innermost.  Dump the new
703         innermost_loop_behavior fields.
705 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
707         * tree-data-ref.h (innermost_loop_behavior): Add a step_alignment
708         field.
709         (DR_STEP_ALIGNMENT): New macro.
710         * tree-vectorizer.h (STMT_VINFO_DR_STEP_ALIGNMENT): Likewise.
711         * tree-data-ref.c (dr_analyze_innermost): Initalize step_alignment.
712         (create_data_ref): Print it.
713         * tree-vect-stmts.c (vectorizable_load): Use the step alignment
714         to tell whether the step preserves vector (mis)alignment.
715         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
716         Move the check for an integer step and generalise to all INTEGER_CST.
717         (vect_analyze_data_refs): Set DR_STEP_ALIGNMENT when setting DR_STEP.
718         Print the outer step alignment.
720 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
722         * tree-data-ref.h (innermost_loop_behavior): Replace aligned_to
723         with offset_alignment.
724         (DR_ALIGNED_TO): Delete.
725         (DR_OFFSET_ALIGNMENT): New macro.
726         * tree-vectorizer.h (STMT_VINFO_DR_ALIGNED_TO): Delete.
727         (STMT_VINFO_DR_OFFSET_ALIGNMENT): New macro.
728         * tree-data-ref.c (dr_analyze_innermost): Update after above changes.
729         (create_data_ref): Likewise.
730         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
731         (vect_analyze_data_refs): Likewise.
732         * tree-if-conv.c (if_convertible_loop_p_1): Use memset before
733         creating dummy innermost behavior.
735 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
737         * tree-data-ref.h (dr_analyze_innermost): Replace the dr argument
738         with a "innermost_loop_behavior *" and refeence tree.
739         * tree-data-ref.c (dr_analyze_innermost): Likewise.
740         (create_data_ref): Update call accordingly.
741         * tree-predcom.c (find_looparound_phi): Likewise.
743 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
745         * tree-vectorizer.h (_stmt_vec_info): Replace individual dr_*
746         fields with dr_wrt_vec_loop.
747         (STMT_VINFO_DR_BASE_ADDRESS, STMT_VINFO_DR_INIT, STMT_VINFO_DR_OFFSET)
748         (STMT_VINFO_DR_STEP, STMT_VINFO_DR_ALIGNED_TO): Update accordingly.
749         (STMT_VINFO_DR_WRT_VEC_LOOP): New macro.
750         (vect_dr_behavior): New function.
751         (vect_create_addr_base_for_vector_ref): Remove loop parameter.
752         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
753         vect_dr_behavior.  Use a step_preserves_misalignment_p boolean to
754         track whether the step preserves the misalignment.
755         (vect_create_addr_base_for_vector_ref): Remove loop parameter.
756         Use vect_dr_behavior.
757         (vect_setup_realignment): Update call accordingly.
758         (vect_create_data_ref_ptr): Likewise.  Use vect_dr_behavior.
759         * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Update
760         call to vect_create_addr_base_for_vector_ref.
761         (vect_create_cond_for_align_checks): Likewise.
762         * tree-vect-patterns.c (vect_recog_bool_pattern): Copy
763         STMT_VINFO_DR_WRT_VEC_LOOP as a block.
764         (vect_recog_mask_conversion_pattern): Likewise.
765         * tree-vect-stmts.c (compare_step_with_zero): Use vect_dr_behavior.
766         (new_stmt_vec_info): Remove redundant zeroing.
768 2017-07-03  Richard Earnshaw  <rearnsha@arm.com>
770         * common/config/arm/arm-common.c (arm_be8_option): New function.
771         * config/arm/arm-isa.h (isa_feature): Add new feature bit isa_bit_be8.
772         (ISA_ARMv6): Add isa_bit_be8.
773         * config/arm/arm.h (arm_be8_option): Add prototype.
774         (BE8_SPEC_FUNCTION): New define.
775         (EXTRA_SPEC_FUNCTIONS): Add BE8_SPEC_FUNCTION.
776         * config/arm/arm.opt (mbig-endian): Mark as Negative of mlittle-endian.
777         (mlittle-endian): Similarly.
778         (mbe8, mbe32): New options.
779         * config/arm/bpabi.h (BE8_LINK_SPEC): Call arm_be8_option.
780         * doc/invoke.texi (ARM Options): Document -mbe8 and -mbe32.
782 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
784         * tree-cfg.c (gimple_find_sub_bbs): Fix profile updating.
786 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
788         * tree-cfgcleanup.c (want_merge_blocks_p): New function.
789         (cleanup_tree_cfg_bb): Use it.
790         * profile-count.h (profile_count::of_for_merging, profile_count::merge):
791         New functions.
792         * tree-cfg.c (gimple_merge_blocks): Use profile_count::merge.
794 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
796         PR bootstrap/81285
797         * loop-doloop.c (add_test): Update profile.
799 2017-07-03  Martin Liska  <mliska@suse.cz>
801         PR sanitize/81040
802         * sanopt.c (rewrite_usage_of_param): New function.
803         (sanitize_rewrite_addressable_params): Likewise.
804         (pass_sanopt::execute): Call rewrite_usage_of_param.
806 2017-07-03  Richard Biener  <rguenther@suse.de>
808         * tree-vect-loop.c (vect_create_epilog_for_reduction): Revert
809         back to using VIEW_CONVERT_EXPR.
811 2017-07-03  Martin Liska  <mliska@suse.cz>
813         PR other/78366
814         * doc/extend.texi: Document when a resolver function is
815         generated for target_clones.
817 2017-07-03  Martin Liska  <mliska@suse.cz>
819         * asan.c (asan_emit_stack_protection): Unpoison just red zones
820         and shadow memory of auto variables which are subject of
821         use-after-scope sanitization.
822         (asan_expand_mark_ifn): Add do set only when is_poison.
824 2016-07-03  Richard Biener  <rguenther@suse.de>
826         * tree-vect-loop.c (vect_analyze_loop_operations): Also analyze
827         reduction PHIs.
828         (vect_force_simple_reduction): Record reduction def -> phi mapping.
829         (vectorizable_reduction): Perform reduction PHI creation when
830         visiting a reduction PHI and adjust and simplify code generation
831         phase of the reduction op.  Cache dts, use fold_binary, not fold_build2.
832         (vect_transform_loop): Visit reduction PHIs.
833         * tree-vect-slp.c (vect_get_and_check_slp_defs): Record reduction
834         defs into the SLP tree.
835         (vect_build_slp_tree): Reduction defs terminate the recursion.
836         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): Allow lookup
837         of reduction defs.
838         (vect_get_vec_defs_for_stmt_copy): Export.
839         (vect_get_vec_defs): Likewise.
840         * tree-vectorizer.h (struct _stmt_vec_info): Amend reduc_def
841         purpose.
842         (vect_get_vec_defs_for_stmt_copy): Declare.
843         (vect_get_vec_defs): Likewise.
845 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
847         * tree-data-ref.c (dr_analyze_innermost): Replace the "nest"
848         parameter with a "loop" parameter and use it instead of the
849         loop containing DR_STMT.  Don't check simple_iv when doing
850         BB analysis.  Describe the two analysis modes in the comment.
852 2017-07-03  Tom de Vries  <tom@codesourcery.com>
854         PR tree-optimization/69468
855         * tree-ssa-tail-merge.c (ignore_edge_flags): New constant.
856         (find_same_succ_bb): Handle ignore_edge_flags.
858 2017-07-03  Tom de Vries  <tom@codesourcery.com>
860         PR tree-optimization/81192
861         * tree-ssa-tail-merge.c (same_succ_hash): Use bb->loop_father->num in
862         hash.
863         (same_succ::equal): Don't find bbs to be equal if bb->loop_father
864         differs.
865         (find_same_succ_bb): Remove obsolete test on bb->loop_father->latch.
867 2017-07-03  Tom de Vries  <tom@codesourcery.com>
869         PR tree-optimization/81192
870         * tree-ssa-tail-merge.c (same_succ_flush_bb): Handle
871         BB_SAME_SUCC (bb) == NULL.
873 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
875         * cfgrtl.c (rtl_verify_edges): Enable checking of profile_probability
876         consistency.
878 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
880         * dumpfile.c: Include profile-count.h
881         * tree-cfg.c (gimple_duplicate_sese_tail): Drop UNUSED attributes;
882         update profile.
883         (insert_cond_bb): Update profile.
884         * tree-cfg.h (insert_cond_bb): Update prototype.
885         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Update.
886         * tree-dump.c: Do not include tree-cfg.
888 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
890         * bb-reorder.c (fix_up_crossing_landing_pad): Update profile.
892 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
894         * expect.c (dw2_build_landing_pads): Update profile of the landing pad
895         bb.
897 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
899         * tree-complex.c (expand_complex_div_wide): update profile.
901 2017-07-02  Richard Sandiford  <richard.sandiford@linaro.org>
902             Alan Hayward  <alan.hayward@arm.com>
903             David Sherwood  <david.sherwood@arm.com>
905         * Makefile.in (MACHMODE_H): Remove insn-modes.h
906         (CORETYPES_H): New define.
907         (MOSTLYCLEANFILES): Add insn-modes-inline.h.
908         (insn-modes-inline.h, s-modes-inline-h): New rules.
909         (generated_files): Add insn-modes-inline.h.
910         (RTL_BASE_H, TREE_CORE_H): Use CORETYPES_H instead of coretypes.h.
911         (build/gensupport.o, build/ggc-none.o, build/print-rtl.o): Likewise.
912         (build/read-md.o, build/read-rtl.o, build/rtl.o): Likewise.
913         (build/vec.o, build/hash-table.o, build/inchash.o): Likewise.
914         (build/gencondmd.o, build/genattr.o, build/genattr-common.o): Likewise.
915         (build/genattrtab.o, build/genautomata.o, build/gencheck.o): Likewise.
916         (build/gencodes.o, build/genconditions.o): Likewise.
917         (build/genconfig.o, build/genconstants.o, build/genemit.o): Likewise.
918         (build/genenums.o, build/genextract.o, build/genflags.o): Likewise.
919         (build/gentarget-def.o, build/genmddeps.o, build/genopinit.o)
920         (build/genoutput.o, build/genpeep.o, build/genpreds.o): Likewise.
921         (build/genrecog.o, build/genmddump.o, build/genmatch.o): Likewise.
922         (build/gencfn-macros.o, build/gcov-iov.o): Likewise.
923         * coretypes.h: Include everything up to real.h for generators.
924         Include insn-modes.h first.  Include wide-int-print.h after
925         wide-int.h.  Include insn-modes-inline.h and then machmode.h.
926         * machmode.h: Don't include insn-modes.h here.
927         * function-tests.c: Remove includes of signop.h, machmode.h,
928         double-int.h and wide-int.h.
929         * rtl.h: Likewise.
930         * gcc-rich-location.c: Remove includes of machmode.h, double-int.h
931         and wide-int.h.
932         * optc-save-gen.awk: Likewise.
933         * gencheck.c (BITS_PER_UNIT): Delete dummy definition.
934         * godump.c: Remove include of wide-int-print.h.
935         * pretty-print.h: Likewise.
936         * wide-int-print.cc: Likewise.
937         * wide-int.cc: Likewise.
938         * hash-map-tests.c: Remove include of signop.h.
939         * hash-set-tests.c: Likewise.
940         * rtl-tests.c: Likewise.
941         * mkconfig.sh: Remove include of machmode.h.
942         * genmodes.c (emit_insn_modes_h): Split emission of inline functions
943         into...
944         (emit_insn_modes_inline_h): ...this new function.  Emit the code
945         into an insn-modes-inline.h header file, adding appropriate
946         include guards and end comments.
947         (emit_insn_modes_c_header): Remove include of machmode.h.
948         (emit_min_insn_modes_c_header): Include coretypes.h rather than
949         machmode.h.
950         (main): Handle -i flag and call emit_insn_modes_inline_h when
951         it is passed.
953 2017-07-02  Richard Sandiford  <richard.sandiford@linaro.org>
955         * tree-ssa-strlen.c (strinfo): Rename the length field to
956         nonzero_chars.  Add a full_string_p field.
957         (compare_nonzero_chars, zero_length_string_p): New functions.
958         (get_addr_stridx): Add an offset_out parameter.
959         Use compare_nonzero_chars.
960         (get_stridx): Update accordingly.  Use compare_nonzero_chars.
961         (new_strinfo): Update after above changes to strinfo.
962         (set_endptr_and_length): Set full_string_p.
963         (get_string_length): Update after above changes to strinfo.
964         (unshare_strinfo): Update call to new_strinfo.
965         (maybe_invalidate): Likewise.
966         (get_stridx_plus_constant): Change off to unsigned HOST_WIDE_INT.
967         Use compare_nonzero_chars and zero_string_p.  Treat nonzero_chars
968         as a uhwi instead of an shwi.  Update after above changes to
969         strinfo and new_strinfo.
970         (zero_length_string): Assert that chainsi contains full strings.
971         Use zero_length_string_p.  Update call to new_strinfo.
972         (adjust_related_strinfos): Update after above changes to strinfo.
973         Copy full_string_p from origsi.
974         (adjust_last_stmt): Use zero_length_string_p.
975         (handle_builtin_strlen): Update after above changes to strinfo and
976         new_strinfo.  Install the lhs as the string length if the previous
977         entry didn't describe a full string.
978         (handle_builtin_strchr): Update after above changes to strinfo
979         and new_strinfo.
980         (handle_builtin_strcpy): Likewise.
981         (handle_builtin_strcat): Likewise.
982         (handle_builtin_malloc): Likewise.
983         (handle_pointer_plus): Likewise.
984         (handle_builtin_memcpy): Likewise.  Track nonzero characters
985         that aren't necessarily followed by a nul terminator.
986         (handle_char_store): Likewise.
988 2017-07-02  Richard Sandiford  <richard.sandiford@linaro.org>
990         PR tree-optimization/80769
991         * tree-ssa-strlen.c (strinfo): Document that "stmt" is also used
992         for malloc and calloc.  Document the new invariant that all related
993         strinfos have delayed lengths or none do.
994         (verify_related_strinfos): Move earlier in file.
995         (set_endptr_and_length): New function, split out from...
996         (get_string_length): ...here.  Also set the lengths of related
997         strinfos.
998         (zero_length_string): Assert that chainsi has known (rather than
999         delayed) lengths.
1000         (adjust_related_strinfos): Likewise.
1002 2017-07-02  Richard Sandiford  <richard.sandiford@linaro.org>
1004         PR tree-optimization/81136
1005         * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Only
1006         assert that two references with the same misalignment have the same
1007         compile-time misalignment if those compile-time misalignments
1008         are known.
1010 2017-07-01  Andi Kleen  <ak@linux.intel.com>
1012         * print-tree.c (print_node): Print all attributes.
1014 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
1016         * cfg.c (scale_bbs_frequencies): New function.
1017         * cfg.h (scale_bbs_frequencies): Declare it.
1018         * cfgloopanal.c (single_likely_exit): Cleanup.
1019         * cfgloopmanip.c (scale_loop_frequencies): Take profile_probability
1020         as parameter.
1021         (scale_loop_profile): Likewise.
1022         (loop_version): Likewise.
1023         (create_empty_loop_on_edge): Update.
1024         * cfgloopmanip.h (scale_loop_frequencies, scale_loop_profile,
1025         scale_loop_frequencies, scale_loop_profile, loopify,
1026         loop_version): Update prototypes.
1027         * modulo-sched.c (sms_schedule): Update.
1028         * predict.c (unlikely_executed_edge_p): Also check probability.
1029         (probably_never_executed_edge_p): Fix typo.
1030         * tree-if-conv.c (version_loop_for_if_conversion): Update.
1031         * tree-parloops.c (gen_parallel_loop): Update.
1032         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update.
1033         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
1034         * tree-ssa-loop-split.c (split_loop): Update.
1035         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
1036         * tree-vect-loop-manip.c (vect_do_peeling): Update.
1037         (vect_loop_versioning): Update.
1038         * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
1040 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
1042         * trans-mem.c (split_bb_make_tm_edge): Update profile.
1044 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
1046         * tree-if-conv.c (combine_blocks): Use make_single_succ_edge
1047         to keep profile consistent.
1049 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
1051         * cfgrtl.c (rtl_flow_call_edges_add): Update profile.
1052         * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
1053         * profile-count.h (max_safe_multiplier): Make unsigned.
1054         (profile_count::guessed_zero): New.
1056 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
1058         * bb-reorder.c (fix_up_crossing_landing_pad,
1059         fix_crossing_conditional_branches): Use make_single_succ_edge
1060         to keep profile consistent.
1062 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
1064         * tree-vect-loop.c (optimize_mask_stores): Use make_single_succ_edge
1065         to update profile.
1067 2017-07-01  Jakub Jelinek  <jakub@redhat.com>
1069         PR sanitizer/81262
1070         * bb-reorder.c (fix_up_fall_thru_edges): Move variable declarations to
1071         the right scopes, make sure cond_jump isn't preserved between multiple
1072         iterations.  Search for fallthru edge whenever there are 3+ edges and
1073         use find_fallthru_edge for it.
1075 2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
1077         Patch by Alexander Monakov <amonakov@ispras.ru>
1078         * sel-sched-ir.c (compute_succs_info): Handle uninitialized
1079         probabilities consistently.
1081 2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
1083         * pa.c (pa_expand_compare_and_swap_loop): Update call of
1084         emit_cmp_and_jump_insns.
1086 2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
1088         PR ipa/81261
1089         * tree-inline.c (expand_call_inline): Combine profile statuses.
1091 2017-06-30  Andrew Pinski  <apinski@cavium.com>
1093         * tree-if-conv.c (predicate_scalar_phi): Update new_stmt if
1094         fold_stmt returned true.
1096 2017-06-30  Nathan Sidwell  <nathan@acm.org>
1098         * ggc.h (empty_string): Delete.
1099         * cfgexpand.c (expand_asm_stmt): Use plain "".
1100         * optabs.c (expand_asm_memory_barrier): Likewise.
1101         * stringpool.c (empty_string): Delete.
1102         (digit_vector, digit_string): Delete.
1103         (ggc_alloc_string): Use plain "", don't optimize single digit
1104         strings.  Use ggc_alloc_atomic.
1106 2017-06-30  Richard Earnshaw  <rearnsha@arm.com>
1108         * rtlanal.c (insn_rtx_cost): If a parallel contains exactly one
1109         comparison set and one other set, use the cost of the non-comparison
1110         set.
1112 2017-06-30  Nathan Sidwell  <nathan@acm.org>
1114         * ggc.h: Replace all 'static inline' with plain 'inline'.  Fix
1115         some formatting.
1117 2017-06-30  Peter Bergner  <bergner@vnet.ibm.com>
1119         * tree-cfg.c (group_case_labels_stmt): Merge scanning and compressing
1120         loops.  Remove now unneeded calls to gimple_switch_set_label() that
1121         just set removed labels to NULL_TREE.
1123 2017-06-30  Aldy Hernandez  <aldyh@redhat.com>
1125         * tree-ssanames.c (set_range_info_raw): Abstract from ...
1126         (set_range_info): ...here.  Only call set_range_info_raw if domain
1127         is useful.
1128         (set_nonzero_bits): Call set_range_info_raw.
1129         * tree-ssanames.h (set_range_info_raw): New.
1131 2017-06-30  Jakub Jelinek  <jakub@redhat.com>
1133         PR target/81225
1134         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): For V8FI,
1135         V16FI and VI8F_256 iterators, use <store_mask_predicate> instead
1136         of nonimmediate_operand and <store_mask_constraint> instead of m
1137         for the input operand.  For V8FI iterator, always split if input
1138         is a MEM.  For V16FI and V8SF_256 iterators, don't test if both
1139         operands are MEM if <mask_applied>.  For VI4F_256 iterator, use
1140         <store_mask_predicate> instead of register_operand and
1141         <store_mask_constraint> instead of v for the input operand.  Make
1142         sure both operands aren't MEMs for if not <mask_applied>.
1144 2017-06-30  Sylvestre Ledru  <sylvestre@debian.org>
1146         * lto-wrapper.c (copy_file) Close both file descriptors before
1147         exiting normally.
1149 2017-06-30  Martin Liska  <mliska@suse.cz>
1151         PR ipa/81214
1152         * multiple_target.c (create_dispatcher_calls): Make ifunc
1153         also for function that don't have calls or are not referenced.
1155 2017-06-30  Richard Biener  <rguenther@suse.de>
1157         * tree-vect-slp.c (vect_slp_analyze_node_operations): Only
1158         analyze the first scalar stmt.  Move vector type computation
1159         for the BB case here from ...
1160         * tree-vect-stmts.c (vect_analyze_stmt): ... here.  Guard
1161         live operation processing in the SLP case properly.
1163 2017-06-30  Richard Biener  <rguenther@suse.de>
1165         * graph.c (draw_cfg_node_succ_edges): Fix broken dot syntax.
1167 2017-06-30  Martin Liska  <mliska@suse.cz>
1169         PR sanitizer/81021
1170         * tree-eh.c (lower_resx): Call BUILT_IN_ASAN_HANDLE_NO_RETURN
1171         before BUILT_IN_UNWIND_RESUME when ASAN is used.
1173 2017-06-30  Yvan Roux  <yvan.roux@linaro.org>
1175         * doc/invoke.texi (AArch64): Add missing options and remove redundant
1176         ones.
1178 2017-06-30  Richard Biener  <rguenther@suse.de>
1180         PR tree-optimization/81249
1181         * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
1182         condition reduction result to original scalar type.
1184 2017-06-30  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1186         * profile-count.h (enum profile_quality): Fix typos and whitespace
1187         issues.
1189 2017-06-30  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1191         * config/s390/s390.c (s390_expand_setmem): Adjust to the new data
1192         type for branch probabilities.
1194 2017-06-29  Julian Brown  <julian@codesourcery.com>
1195             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
1197         * config/aarch64/aarch64-fusion-pairs.def: Add ALU_BRANCH entry.
1198         * config/aarch64/aarch64.c (AARCH64_FUSE_ALU_BRANCH): New fusion type.
1199         (thunderx2t99_tunings): Set AARCH64_FUSE_ALU_BRANCH flag.
1200         (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_ALU_BRANCH.
1202 2017-06-29  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
1204         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Push the
1205         check for CC usage into AARCH64_FUSE_CMP_BRANCH.
1206         * config/i386/i386.c (ix86_macro_fusion_pair_p): Push the check for
1207         CC usage from generic code to here.
1208         * sched-deps.c (sched_macro_fuse_insns): Move the condition for
1209         CC usage into the target macros.
1211 2017-06-29  Maya Rashish  <coypu@sdf.org>
1213         * config/netbsd.h (NETBSD_LIB_SPEC): Add -lc when creating shared
1214         objects.
1216 2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
1218         * arm/arm-builtins.c: Include profile-count.h
1219         * except.c (sjlj_emit_function_enter): Use
1220         profile_probability::unlikely.
1222 2017-06-29  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1224         * config/rs6000/rs6000.c (toc_relative_expr_p): Make tocrel_base
1225         and tocrel_offset be pointer args rather than implicitly using
1226         static versions.
1227         (legitimate_constant_pool_address_p, rs6000_emit_move,
1228         const_load_sequence_p, adjust_vperm): Add local tocrel_base and
1229         tocrel_offset and use in toc_relative_expr_p call.
1230         (print_operand, print_operand_address): Use static tocrel_base_oac
1231         and tocrel_offset_oac.
1232         (rs6000_output_addr_const_extra): Use static tocrel_base_oac and
1233         tocrel_offset_oac.
1235 2017-06-29  Maya Rashish  <coypu@sdf.org>
1237         * config/vax/builtins.md (ffssi2_internal): Correct constraint.
1239 2017-06-29  Eric Botcazou  <ebotcazou@adacore.com>
1241         * expr.c (expand_expr) <normal_inner_ref>: When testing for unaligned
1242         objects, take into account only the alignment of 'op0' and 'mode1' if
1243         'op0' is a MEM.
1245 2017-06-29  Steve Ellcey  <sellcey@cavium.com>
1247         * ccmp.c (ccmp_tree_comparison_p): New function.
1248         (ccmp_candidate_p): Update to use above function.
1249         (get_compare_parts): New function.
1250         (expand_ccmp_next): Update to use new functions.
1251         (expand_ccmp_expr_1): Take tree arg instead of gimple, update to use
1252         new functions.
1253         (expand_ccmp_expr): Pass tree instead of gimple to expand_ccmp_expr_1,
1254         take mode as argument.
1255         * ccmp.h (expand_ccmp_expr): Add mode as argument.
1256         * expr.c (expand_expr_real_1): Pass mode as argument.
1258 2017-06-29  Segher Boessenkool  <segher@kernel.crashing.org>
1260         * combine.c (combine_instructions): Print insns to dump_file, together
1261         with their costs.
1263 2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
1265         * asan.c (asan_emit_stack_protection): Update.
1266         (create_cond_insert_point): Update.
1267         * auto-profile.c (afdo_propagate_circuit): Update.
1268         * basic-block.h (struct edge_def): Turn probability to
1269         profile_probability.
1270         (EDGE_FREQUENCY): Update.
1271         * bb-reorder.c (find_traces_1_round): Update.
1272         (better_edge_p): Update.
1273         (sanitize_hot_paths): Update.
1274         * cfg.c (unchecked_make_edge): Initialize probability to uninitialized.
1275         (make_single_succ_edge): Update.
1276         (check_bb_profile): Update.
1277         (dump_edge_info): Update.
1278         (update_bb_profile_for_threading): Update.
1279         * cfganal.c (connect_infinite_loops_to_exit): Initialize new edge
1280         probabilitycount to 0.
1281         * cfgbuild.c (compute_outgoing_frequencies): Update.
1282         * cfgcleanup.c (try_forward_edges): Update.
1283         (outgoing_edges_match): Update.
1284         (try_crossjump_to_edge): Update.
1285         * cfgexpand.c (expand_gimple_cond): Update make_single_succ_edge.
1286         (expand_gimple_tailcall): Update.
1287         (construct_init_block): Use make_single_succ_edge.
1288         (construct_exit_block): Use make_single_succ_edge.
1289         * cfghooks.c (verify_flow_info): Update.
1290         (redirect_edge_succ_nodup): Update.
1291         (split_edge): Update.
1292         (account_profile_record): Update.
1293         * cfgloopanal.c (single_likely_exit): Update.
1294         * cfgloopmanip.c (scale_loop_profile): Update.
1295         (set_zero_probability): Remove.
1296         (duplicate_loop_to_header_edge): Update.
1297         * cfgloopmanip.h (loop_version): Update prototype.
1298         * cfgrtl.c (try_redirect_by_replacing_jump): Update.
1299         (force_nonfallthru_and_redirect): Update.
1300         (update_br_prob_note): Update.
1301         (rtl_verify_edges): Update.
1302         (purge_dead_edges): Update.
1303         (rtl_lv_add_condition_to_bb): Update.
1304         * cgraph.c: (cgraph_edge::redirect_call_stmt_to_calle): Update.
1305         * cgraphunit.c (init_lowered_empty_function): Update.
1306         (cgraph_node::expand_thunk): Update.
1307         * cilk-common.c: Include profile-count.h
1308         * dojump.c (inv): Remove.
1309         (jumpifnot): Update.
1310         (jumpifnot_1): Update.
1311         (do_jump_1): Update.
1312         (do_jump): Update.
1313         (do_jump_by_parts_greater_rtx): Update.
1314         (do_compare_rtx_and_jump): Update.
1315         * dojump.h (jumpifnot, jumpifnot_1, jumpif_1, jumpif, do_jump,
1316         do_jump_1. do_compare_rtx_and_jump): Update prototype.
1317         * dwarf2cfi.c: Include profile-count.h
1318         * except.c (dw2_build_landing_pads): Use make_single_succ_edge.
1319         (sjlj_emit_dispatch_table): Likewise.
1320         * explow.c: Include profile-count.h
1321         * expmed.c (emit_store_flag_force): Update.
1322         (do_cmp_and_jump): Update.
1323         * expr.c (compare_by_pieces_d::generate): Update.
1324         (compare_by_pieces_d::finish_mode): Update.
1325         (emit_block_move_via_loop): Update.
1326         (store_expr_with_bounds): Update.
1327         (store_constructor): Update.
1328         (expand_expr_real_2): Update.
1329         (expand_expr_real_1): Update.
1330         * expr.h (try_casesi, try_tablejump): Update prototypes.
1331         * gimple-pretty-print.c (dump_probability): Update.
1332         (dump_profile): New.
1333         (dump_gimple_label): Update.
1334         (dump_gimple_bb_header): Update.
1335         * graph.c (draw_cfg_node_succ_edges): Update.
1336         * hsa-gen.c (convert_switch_statements): Update.
1337         * ifcvt.c (cheap_bb_rtx_cost_p): Update.
1338         (find_if_case_1): Update.
1339         (find_if_case_2): Update.
1340         * internal-fn.c (expand_arith_overflow_result_store): Update.
1341         (expand_addsub_overflow): Update.
1342         (expand_neg_overflow): Update.
1343         (expand_mul_overflow): Update.
1344         (expand_vector_ubsan_overflow): Update.
1345         * ipa-cp.c (good_cloning_opportunity_p): Update.
1346         * ipa-split.c (split_function): Use make_single_succ_edge.
1347         * ipa-utils.c (ipa_merge_profiles): Update.
1348         * loop-doloop.c (add_test): Update.
1349         (doloop_modify): Update.
1350         * loop-unroll.c (compare_and_jump_seq): Update.
1351         (unroll_loop_runtime_iterations): Update.
1352         * lra-constraints.c (lra_inheritance): Update.
1353         * lto-streamer-in.c (input_cfg): Update.
1354         * lto-streamer-out.c (output_cfg): Update.
1355         * mcf.c (adjust_cfg_counts): Update.
1356         * modulo-sched.c (sms_schedule): Update.
1357         * omp-expand.c (expand_omp_for_init_counts): Update.
1358         (extract_omp_for_update_vars): Update.
1359         (expand_omp_ordered_sink): Update.
1360         (expand_omp_for_ordered_loops): Update.
1361         (expand_omp_for_generic): Update.
1362         (expand_omp_for_static_nochunk): Update.
1363         (expand_omp_for_static_chunk): Update.
1364         (expand_cilk_for): Update.
1365         (expand_omp_simd): Update.
1366         (expand_omp_taskloop_for_outer): Update.
1367         (expand_omp_taskloop_for_inner): Update.
1368         * omp-simd-clone.c (simd_clone_adjust): Update.
1369         * optabs.c (expand_doubleword_shift): Update.
1370         (expand_abs): Update.
1371         (emit_cmp_and_jump_insn_1): Update.
1372         (expand_compare_and_swap_loop): Update.
1373         * optabs.h (emit_cmp_and_jump_insns): Update prototype.
1374         * predict.c (predictable_edge_p): Update.
1375         (edge_probability_reliable_p): Update.
1376         (set_even_probabilities): Update.
1377         (combine_predictions_for_insn): Update.
1378         (combine_predictions_for_bb): Update.
1379         (propagate_freq): Update.
1380         (estimate_bb_frequencies): Update.
1381         (force_edge_cold): Update.
1382         * profile-count.c (profile_count::dump): Add missing space into dump.
1383         (profile_count::debug): Add newline.
1384         (profile_count::differs_from_p): Explicitly convert to unsigned.
1385         (profile_count::stream_in): Update.
1386         (profile_probability::dump): New member function.
1387         (profile_probability::debug): New member function.
1388         (profile_probability::differs_from_p): New member function.
1389         (profile_probability::differs_lot_from_p): New member function.
1390         (profile_probability::stream_in): New member function.
1391         (profile_probability::stream_out): New member function.
1392         * profile-count.h (profile_count_quality): Rename to ...
1393         (profile_quality): ... this one.
1394         (profile_probability): New.
1395         (profile_count): Update.
1396         * profile.c (compute_branch_probabilities): Update.
1397         * recog.c (peep2_attempt): Update.
1398         * sched-ebb.c (schedule_ebbs): Update.
1399         * sched-rgn.c (find_single_block_region): Update.
1400         (compute_dom_prob_ps): Update.
1401         (schedule_region): Update.
1402         * sel-sched-ir.c (compute_succs_info): Update.
1403         * stmt.c (struct case_node): Update.
1404         (do_jump_if_equal): Update.
1405         (get_outgoing_edge_probs): Update.
1406         (conditional_probability): Update.
1407         (emit_case_dispatch_table): Update.
1408         (expand_case): Update.
1409         (expand_sjlj_dispatch_table): Update.
1410         (emit_case_nodes): Update.
1411         * targhooks.c: Update.
1412         * tracer.c (better_p): Update.
1413         (find_best_successor): Update.
1414         * trans-mem.c (expand_transaction): Update.
1415         * tree-call-cdce.c: Update.
1416         * tree-cfg.c (gimple_split_edge): Upate.
1417         (move_sese_region_to_fn): Upate.
1418         * tree-cfgcleanup.c (cleanup_control_expr_graph): Upate.
1419         * tree-eh.c (lower_resx): Upate.
1420         (cleanup_empty_eh_move_lp): Upate.
1421         * tree-if-conv.c (version_loop_for_if_conversion): Update.
1422         * tree-inline.c (copy_edges_for_bb): Update.
1423         (copy_cfg_body): Update.
1424         * tree-parloops.c (gen_parallel_loop): Update.
1425         * tree-profile.c (gimple_gen_ic_func_profiler): Update.
1426         (gimple_gen_time_profiler): Update.
1427         * tree-ssa-dce.c (remove_dead_stmt): Update.
1428         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
1429         * tree-ssa-loop-im.c (execute_sm_if_changed): Update.
1430         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update.
1431         (unloop_loops): Update.
1432         (try_peel_loop): Update.
1433         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
1434         * tree-ssa-loop-split.c (connect_loops): Update.
1435         (split_loop): Update.
1436         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
1437         (hoist_guard): Update.
1438         * tree-ssa-phionlycprop.c (propagate_rhs_into_lhs): Update.
1439         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update.
1440         (value_replacement): Update.
1441         * tree-ssa-reassoc.c (branch_fixup): Update.
1442         * tree-ssa-tail-merge.c (replace_block_by): Update.
1443         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Update.
1444         (create_edge_and_update_destination_phis): Update.
1445         (compute_path_counts): Update.
1446         (recompute_probabilities): Update.
1447         (update_joiner_offpath_counts): Update.
1448         (freqs_to_counts_path): Update.
1449         (duplicate_thread_path): Update.
1450         * tree-switch-conversion.c (hoist_edge_and_branch_if_true): Update.
1451         (struct switch_conv_info): Update.
1452         (gen_inbound_check): Update.
1453         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
1454         (vect_do_peeling): Update.
1455         (vect_loop_versioning): Update.
1456         * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
1457         (optimize_mask_stores): Update.
1458         * ubsan.c (ubsan_expand_null_ifn): Update.
1459         * value-prof.c (gimple_divmod_fixed_value): Update.
1460         (gimple_divmod_fixed_value_transform): Update.
1461         (gimple_mod_pow2): Update.
1462         (gimple_mod_pow2_value_transform): Update.
1463         (gimple_mod_subtract): Update.
1464         (gimple_mod_subtract_transform): Update.
1465         (gimple_ic): Update.
1466         (gimple_stringop_fixed_value): Update.
1467         (gimple_stringops_transform): Update.
1468         * value-prof.h: Update.
1470 2017-06-29  Carl Love  <cel@us.ibm.com>
1472         * config/rs6000/rs6000-c.c: Add support for built-in functions
1473         vector signed int vec_signed (vector float);
1474         vector signed long long vec_signed (vector double);
1475         vector signed int vec_signed2 (vector double, vector double);
1476         vector signed int vec_signede (vector double);
1477         vector signed int vec_signedo (vector double);
1478         * config/rs6000/rs6000.c (rs6000_generate_vsigned2_code): Add
1479         instruction generator.
1480         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
1481         UNSPEC_VSX_VSIGNED2): Add UNSPECS.
1482         (vsx_xvcvspsxws, vsx_xvcvdpuxds_scale, vsx_xvcvspuxws, vsigned2_v2df):
1483         Add define_insn.
1484         (vsignedo_v2df, vsignede_v2df, vunsigned2_v2df, vunsignedo_v2df,
1485         vunsignede_v2df): Add define_expands.
1486         * config/rs6000/rs6000-builtin.def (VEC_SIGNED, VEC_UNSIGNED,
1487         VEC_SIGNED2, VEC_UNSIGNED2, VEC_SIGNEDE, VEC_UNSIGNEDE, VEC_SIGNEDO,
1488         VEC_UNSIGNEDO): Add definitions.
1489         * config/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
1490         UNSPEC_VSX_VSIGNED2): Add UNSPECs.
1491         (vsx_xvcvspsxws, vsx_xvcvspuxws): Add define_insn.
1492         (vsigned2_v2df, vsigendo_v2df, vsignede_v2df,
1493         vunsigned2_v2df, vunsignedo_v2df, vunsignede_v2df): Add define_expands.
1494         * config/rs6000/altivec.h (vec_signed, vec_signed2,
1495         vec_signede and vec_signedo, vec_unsigned, vec_unsigned2,
1496         vec_unsignede, vec_unsignedo): Add builtin defines.
1497         * config/rs6000-protos.h (rs6000_generate_vsigned2_code): Add extern
1498         declaration.
1499         * doc/extend.texi: Update the built-in documentation file for the
1500         new built-in functions.
1502 2017-06-29  Richard Biener  <rguenther@suse.de>
1504         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Do not add
1505         reduction chains to LOOP_VINFO_REDUCTIONS.
1506         * tree-vect-slp.c (vect_analyze_slp): Continue looking for
1507         SLP reductions after processing reduction chains.
1509 2017-06-29  Nathan Sidwell  <nathan@acm.org>
1511         * builtins.c (fold_builtin_FUNCTION): Use
1512         lang_hooks.decl_printable_name.
1514 2017-06-29  Peter Bergner  <bergner@vnet.ibm.com>
1516         PR middle-end/81194
1517         * cfgexpand.c (expand_gimple_stmt_1): Handle switch statements
1518         with only one label.
1519         * stmt.c (expand_case): Assert NCASES is greater than one.
1521 2017-06-29  Richard Biener  <rguenther@suse.de>
1523         * tree-cfg.c (group_case_labels_stmt): Return whether we changed
1524         anything.
1525         (group_case_labels): Likewise.
1526         (find_taken_edge): Push sanity checking on val to workers...
1527         (find_taken_edge_cond_expr): ... here
1528         (find_taken_edge_switch_expr): ... and here, handle cases
1529         with just a default label.
1530         * tree-cfg.h (group_case_labels_stmt): Adjust prototype.
1531         (group_case_labels): Likewise.
1532         * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing): When
1533         group_case_labels does anything cleanup the CFG again.
1535 2017-06-29  Bin Cheng  <bin.cheng@arm.com>
1537         PR tree-optimization/81196
1538         * tree-ssa-loop-niter.c (number_of_iterations_cond): Handle loop
1539         exit condition comparing two IVs.
1541 2017-06-29  Richard Earnshaw  <rearnsha@arm.com>
1543         * config/arm/parsecpu.awk (gen_comm_data): Add initializer for
1544         profile to the dummy entry at the end of the list of architectures.
1545         * config/arm/arm-cpu-cdata.h: Regenerated.
1547 2017-06-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1548             Michael Collison <michael.collison@arm.com>
1550         PR target/70119
1551         * config/aarch64/aarch64.md (*aarch64_<optab>_reg_<mode>3_mask1):
1552         New pattern.
1553         (*aarch64_reg_<mode>3_neg_mask2): New pattern.
1554         (*aarch64_reg_<mode>3_minus_mask): New pattern.
1555         (*aarch64_<optab>_reg_di3_mask2): New pattern.
1556         * config/aarch64/aarch64.c (aarch64_rtx_costs): Account for cost
1557         of shift when the shift amount is masked with constant equal to
1558         the size of the mode.
1559         * config/aarch64/predicates.md (subreg_lowpart_operator): New
1560         predicate.
1562 2017-06-29  Martin Liska  <mliska@suse.cz>
1564         * config/i386/i386.opt: Change range from [1,5] to [0,5].
1566 2017-06-29  Yury Gribov  <tetra2005@gmail.com>
1568         PR bootstrap/80565
1569         * ipa-cp.c (allocate_and_init_ipcp_value): Add initialization
1570         code.
1571         * ipa-inline.h
1572         (edge_growth_cache_entry::edge_growth_cache_entry): New
1573         function.
1574         (reset_edge_growth_cache): Update to use constructor.
1576 2017-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1578         * config/aarch64/aarch64.h (AARCH64_EXPAND_ALIGNMENT): New.
1579         (DATA_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
1580         (LOCAL_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
1582 2017-06-28  Sebastian Peryt  <sebastian.peryt@intel.com>
1584         * config/i386/avx512vlintrin.h (_mm256_permutexvar_epi64)
1585         (_mm256_permutexvar_epi32, _mm256_permutex_epi64): New intrinsics.
1587 2017-06-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1589         * config.gcc (*-linux-musl*): Add t-musl tmake_file.
1590         (*-linux-uclibc*): Add t-uclibc tmake_file.
1591         * config/t-musl: New.
1592         * config/t-uclibc: New.
1594 2017-06-28  Richard Earnshaw  <rearnsha@arm.com>
1596         * config/arm/parsecpu.awk (profile): Parse new keyword in an arch
1597         context.
1598         (gen_comm_data): Emit architectural setting of arch_prof.
1599         * config/arm/arm-cpus.in (armv6-m, armv6s-m, armv7-a, armv7ve): Set the
1600         profile.
1601         (armv7-r, armv7-m, armv7e-m, armv8-a, armv8.1-a, armv8.2-a): Likewise.
1602         (armv8-m.base, armv8-m.main): Likewise.
1603         * arm-protos.h (arm_build_target): Add profile field.
1604         (arch_option): Likewise.
1605         * config/arm/arm.c (arm_configure_build_target): Copy the profile to
1606         the active target.
1607         * config/arm/arm.h (TARGET_ARM_ARCH_PROFILE): Use
1608         arm_active_target.profile.
1610 2017-06-28  Richard Biener  <rguenther@suse.de>
1612         PR middle-end/81227
1613         * fold-const.c (negate_expr_p): Use TYPE_UNSIGNED, not
1614         TYPE_OVERFLOW_WRAPS.
1615         * match.pd (negate_expr_p): Likewise.
1616         * tree-ssa-reassoc.c (optimize_range_tests_diff): Use
1617         fold_build2, not fold_binary.
1619 2017-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
1621         * config/aarch64/aarch64 (aarch64_expand_mov_immediate):
1622         Convert memory address to Pmode.
1623         (aarch64_print_operand): Assert MEM operands are always Pmode.
1625 2017-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
1627         PR target/79665
1628         * config/arm/aarch-common.c (arm_no_early_alu_shift_dep):
1629         Remove redundant if.
1630         (aarch_forward_to_shift_is_not_shifted_reg): Remove.
1631         * config/arm/aarch-common-protos.h
1632         (aarch_forward_to_shift_is_not_shifted_re): Remove.
1633         * config/arm/cortex-a53.md: Use arm_no_early_alu_shift_dep in bypass.
1635 2017-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
1637         PR ipa/81238
1638         * multiple_target.c (create_dispatcher_calls): Set the default
1639         clone to be static, not public.
1641 2017-06-28  Richard Biener  <rguenther@suse.de>
1643         * tree-vect-loop.c (vectorizable_reduction): Move special
1644         cond reduction IV var creation ...
1645         (vect_create_epilog_for_reduction): ... here.  Remove induction_index
1646         parameter.  Use STMT_VINFO_VECTYPE.
1647         * tree-vect-slp.c (vect_get_constant_vectors): Properly reset
1648         constant_p.
1650 2017-06-28  Martin Liska  <mliska@suse.cz>
1652         PR ipa/81128
1653         * ipa-visibility.c (non_local_p): Handle visibility.
1655 2017-06-28  Martin Liska  <mliska@suse.cz>
1657         PR driver/79659
1658         * common.opt: Add IntegerRange to various options.
1659         * opt-functions.awk (integer_range_info): New function.
1660         * optc-gen.awk: Add integer_range_info to cl_options struct.
1661         * opts-common.c (decode_cmdline_option): Handle
1662         CL_ERR_INT_RANGE_ARG.
1663         (cmdline_handle_error): Likewise.
1664         * opts.c (print_filtered_help): Show valid interval in
1665         when --help is provided.
1666         * opts.h (struct cl_option): Add range_min and range_max fields.
1667         * config/i386/i386.opt: Add IntegerRange for -mbranch-cost.
1669 2017-06-28  Marc Glisse  <marc.glisse@inria.fr>
1671         * match.pd ((X & ~Y) | (~X & Y)): Generalize to + and ^.
1672         (x * C EQ/NE y * C): New transformation.
1674 2017-06-28  Christophe Lyon  <christophe.lyon@linaro.org>
1676         * genmultilib (combination_space): Accept '+' in option names.
1678 2017-06-28  Martin Liska  <mliska@suse.cz>
1680         PR sanitizer/81224
1681         * asan.c (instrument_derefs): Bail out inner references
1682         that are hard register variables.
1684 2017-06-28  Jakub Jelinek  <jakub@redhat.com>
1686         PR target/81175
1687         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use def_builtin
1688         rather than def_builtin_pure for __builtin_ia32_gatherpf*.
1690 2017-06-28  Richard Biener  <rguenther@suse.de>
1692         * tree-vectorizer.h (vect_get_vec_defs): Remove.
1693         (vect_get_slp_defs): Adjust.
1694         * tree-vect-loop.c (get_initial_defs_for_reduction): Split
1695         out from ...
1696         * tree-vect-slp.c (vect_get_constant_vectors): ... here and
1697         simplify.
1698         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
1699         get_initial_defs_for_reduction instead of vect_get_vec_defs.
1700         (vectorizable_reduction): Adjust.
1701         * tree-vect-slp.c (vect_get_constant_vectors): Remove reduction
1702         handling.
1703         (vect_get_slp_defs): Likewise.
1704         * tree-vect-stmts.c (vect_get_vec_defs): Make static and adjust.
1705         (vectorizable_bswap): Adjust.
1706         (vectorizable_call): Likewise.
1707         (vectorizable_conversion): Likewise.
1708         (vectorizable_assignment): Likewise.
1709         (vectorizable_shift): Likewise.
1710         (vectorizable_operation): Likewise.
1711         (vectorizable_store): Likewise.
1712         (vectorizable_condition): Likewise.
1713         (vectorizable_comparison): Likewise.
1715 2017-06-28  Michael Collison  <michael.collison@arm.com>
1717         PR target/68535
1718         * config/arm/arm.c (gen_ldm_seq): Remove last unnecessary
1719         set of base_reg
1720         (arm_gen_movmemqi): Removed unused variable 'i'.
1721         Convert 'for' loop into 'while' loop.
1722         (arm_expand_prologue): Remove last unnecessary set of insn.
1723         (thumb_pop): Remove unused variable 'pushed_words'.
1724         (thumb_exit): Remove last unnecessary set of regs_to_pop.
1726 2017-06-28  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1728         * config/s390/predicates.md: Use s390_rel_address_ok_p.
1729         * config/s390/s390-protos.h: Add prototype of
1730         s390_rel_address_ok_p.
1731         * config/s390/s390.c (s390_got_symbol): New function.
1732         (s390_rel_address_ok_p): New function.
1733         (legitimize_pic_address): Use s390_rel_address_ok_p.
1734         (s390_load_got): Use s390_got_symbol.
1735         (s390_option_override): Issue error if
1736         -mno-pic-data-is-text-relative is used without -fpic/-fPIC.
1737         * config/s390/s390.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
1738         New macro.
1739         * config/s390/s390.opt: New option mpic-data-is-text-relative.
1741 2017-06-27  Andrew Pinski  <apinski@cavium.com>
1743         * match.pd (X >/>=/</<= 0 ? 1.0 : -1.0): New patterns.
1744         (X * copysign (1.0, X)): New pattern.
1745         (X * copysign (1.0, -X)): New pattern.
1746         (copysign (-1.0, CST)): New pattern.
1748 2017-06-27  Joseph Myers  <joseph@codesourcery.com>
1750         * genmultilib (combination_space): Remove variable.
1751         Validate reuse rules against regular expression for any sequence
1752         of multilib options in any order.
1754 2017-06-27  Michael Collison  <michael.collison@arm.com>
1756         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Directly
1757         call aarch64_split_simd_combine.
1758         * (aarch64_combine_internal<mode>): Delete pattern.
1759         * config/aarch64/aarch64.c (aarch64_split_simd_combine):
1760         Allow register and subreg operands.
1762 2017-06-27  Jerome Lambourg  <lambourg@adacore.com>
1764         * config/i386/vxworks.h (ASM_SPEC): Remove definition. No target
1765         specific need, just fallback on defaults.
1766         (ASM_OUTPUT_ALIGNED_BSS): Add #undef before #define.
1768 2017-06-27  Jerome Lambourg  <lambourg@adacore.com>
1769             Olivier Hainque  <hainque@adacore.com>
1771         * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Pick distinct
1772         map for 64bits.
1773         (TARGET_OS_CPP_BUILTINS): builtin_define CPU to X86_64 for 64bit
1774         targets. Pick a default if no particular attempt applied.
1775         (STACK_CHECK_PROTECT): Double for 64bit targets, which have
1776         larger contexts.
1778 2017-06-27  Jerome Lambourg  <lambourg@adacore.com>
1780         * config.gcc (i*86-wrs-vxworks7): Handle new acceptable triplet.
1781         (x86_64-wrs-vxworks7): Likewise.
1783 2017-06-27  Marek Polacek  <polacek@redhat.com>
1785         PR sanitizer/81223
1786         * ubsan.c (instrument_null): Check get_base_address's result for null.
1788 2017-06-27  Marc Glisse  <marc.glisse@inria.fr>
1790         * match.pd ((A+-B)+(C-A), (A+B)-(A-C)): New transformations.
1792 2017-06-27  Marc Glisse  <marc.glisse@inria.fr>
1794         * builtin-types.def (BT_FENV_T_PTR, BT_CONST_FENV_T_PTR,
1795         BT_FEXCEPT_T_PTR, BT_CONST_FEXCEPT_T_PTR): New primitive types.
1796         (BT_FN_INT_FENV_T_PTR, BT_FN_INT_CONST_FENV_T_PTR,
1797         BT_FN_INT_FEXCEPT_T_PTR_INT, BT_FN_INT_CONST_FEXCEPT_T_PTR_INT):
1798         New function types.
1799         * builtins.def (BUILT_IN_FECLEAREXCEPT, BUILT_IN_FEGETENV,
1800         BUILT_IN_FEGETEXCEPTFLAG, BUILT_IN_FEGETROUND,
1801         BUILT_IN_FEHOLDEXCEPT, BUILT_IN_FERAISEEXCEPT,
1802         BUILT_IN_FESETENV, BUILT_IN_FESETEXCEPTFLAG,
1803         BUILT_IN_FESETROUND, BUILT_IN_FETESTEXCEPT,
1804         BUILT_IN_FEUPDATEENV): New builtins.
1805         * tree-core.h (TI_FENV_T_PTR_TYPE, TI_CONST_FENV_T_PTR_TYPE,
1806         TI_FEXCEPT_T_PTR_TYPE, TI_CONST_FEXCEPT_T_PTR_TYPE): New entries.
1807         * tree.h (fenv_t_ptr_type_node, const_fenv_t_ptr_type_node,
1808         fexcept_t_ptr_type_node, const_fexcept_t_ptr_type_node): New
1809         macros.
1810         (builtin_structptr_types): Adjust size.
1811         * tree.c (builtin_structptr_types): Add four entries.
1813 2017-06-27  Jerome Lambourg  <lambourg@adacore.com>
1814             Olivier Hainque  <hainque@adacore.com>
1816         * config/vxworks.h (VXWORKS_LIB_SPEC): Incorporate ...
1817         (TLS_SYM): New local macro, forcing reference to __tls__ on
1818         link command lines for VxWorks 7 RTPs, triggering initialization
1819         of tlsLib.
1820         (VXWORKS_HAVE_TLS): New macro. State whether the target VxWorks
1821         OS features TLS support, true for RTPs on VxWorks 7.
1822         * config/vxworks.c (vxworks_override_options): Setup emutls
1823         accordingly.
1825 2017-06-27  Jakub Jelinek  <jakub@redhat.com>
1827         * predict.c (test_prediction_value_range): Use -1U instead of -1
1828         to avoid narrowing conversion warning.
1829         * dumpfile.c (dump_options): Wrap all value into dump_flags_t cast
1830         to avoid narrowing conversion warning.
1831         * opt-functions.awk (var_ref): Return (unsigned short) -1 instead of
1832         -1.
1833         * optc-gen.awk (END): Expect (unsigned short) -1 instead of -1.
1835 2017-06-27  Jerome Lambourg  <lambourg@adacore.com>
1837         * config/vxworks.h (VXWORKS_LIBS_RTP): Alternative definition for
1838         64bit configurations.
1839         (PTR_DIFF_TYPE): Alternative definition for TARGET_LP64.
1840         (SIZE_TYPE): Likewise.
1841         * config/vxworks.c (vxworks_emutls_var_fields): Use
1842         long_unsigned_type_node instead of unsigned_type_node as the offset
1843         field type, which is "pointer" mode in emutls.c.
1845 2017-06-27  Jakub Jelinek  <jakub@redhat.com>
1847         PR sanitizer/81209
1848         * ubsan.c (ubsan_encode_value): Initialize DECL_CONTEXT on var.
1850         PR middle-end/81207
1851         * gimple-fold.c (replace_call_with_call_and_fold): Handle
1852         gimple_vuse copying separately from gimple_vdef copying.
1854 2017-06-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1856         * value-prof.c (free_hist): Remove call to memset and the enclosing if
1857         condition.
1859 2017-06-26  Jerome Lambourg  <lambourg@adacore.com>
1860             Olivier Hainque  <hainque@adacore.com>
1862         * config.gcc (*-*-vxworks*): Add TARGET_VXWORKS7=1 to tm_defines
1863         for all vxworks7 targets.
1864         * config/vxworks.h (TARGET_VXWORKS7): If not defined, define to 0.
1865         (VXWORKS_ADDITIONAL_CPP_SPEC): Alternative definition for VXWORKS7.
1866         (VXWORKS_LIBS_RTP, VXWORKS_LIBS_RTP_DIR): New macros, allowing
1867         variations for VX6/VX7 and 32/64bits later on in ...
1868         (VXWORKS_LIB_SPEC): Leverage new macros.
1869         (VXWORKS_OS_CPP_BUILTINS): Define _VSB_CONFIG_FILE for VXWORKS7,
1870         as well as _ALLOW_KEYWORD_MACROS when "inline" is not a keyword.
1872 2017-06-26  Jerome Lambourg  <lambourg@adacore.com>
1874         * config/vxworks.h (VXWORKS_OS_CPP_BUILTINS): builtin_define
1875         _VX_TOOL_FAMILY and _VX_TOOL to gnu.
1877 2017-06-26  Carl Love  <cel@us.ibm.com>
1879         * config/rs6000/rs6000-c.c: Add support for built-in functions
1880         vector bool char vec_reve (vector bool char);
1881         vector signed char vec_reve (vector signed char);
1882         vector unsigned char vec_reve (vector unsigned char);
1883         vector bool int vec_reve (vector bool int);
1884         vector signed int vec_reve (vector signed int);
1885         vector unsigned int vec_reve (vector unsigned int);
1886         vector bool long long vec_reve (vector bool long long);
1887         vector signed long long vec_reve (vector signed long long);
1888         vector unsigned long long vec_reve (vector unsigned long long);
1889         vector bool short vec_reve (vector bool short);
1890         vector signed short vec_reve (vector signed short);
1891         vector double vec_reve (vector double);
1892         vector float vec_reve (vector float);
1893         * config/rs6000/rs6000-builtin.def (VREVE_V2DI, VREVE_V4SI,
1894         VREVE_V8HI, VREVE_V16QI, VREVE_V2DF, VREVE_V4SF, VREVE): New builtin.
1895         * config/rs6000/altivec.md (UNSPEC_VREVEV): New UNSPEC.
1896         (altivec_vreve): New pattern.
1897         * config/rs6000/altivec.h (vec_reve): New define.
1898         * doc/extend.texi (vec_rev): Update the built-in documentation file
1899         for the new built-in functions.
1901 2016-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1903         PR tree-optimization/71815
1904         * gimple-ssa-strength-reduction.c (uses_consumed_by_stmt): New
1905         function.
1906         (find_basis_for_candidate): Call uses_consumed_by_stmt rather than
1907         has_single_use.
1908         (slsr_process_phi): Likewise.
1909         (replace_uncond_cands_and_profitable_phis): Don't replace a
1910         multiply candidate with a stride of 1 (copy or cast).
1911         (phi_incr_cost): Call uses_consumed_by_stmt rather than
1912         has_single_use.
1913         (lowest_cost_path): Likewise.
1914         (total_savings): Likewise.
1916 2017-06-26  Richard Biener  <rguenther@suse.de>
1918         PR target/81175
1919         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
1920         Use def_builtin_pure for all gather builtins.
1922 2017-06-26  Richard Biener  <rguenther@suse.de>
1924         PR tree-optimization/81203
1925         * tree-tailcall.c (find_tail_calls): Do not move stmts into
1926         non-dominating BBs.
1928 2017-06-26  Marek Polacek  <polacek@redhat.com>
1930         PR c/80116
1931         * doc/invoke.texi: Document -Wmultistatement-macros.
1933 2017-06-26  Christophe Lyon  <christophe.lyon@linaro.org>
1935         * doc/sourcebuild.texi (ARM-specific attributes): Document new
1936         arm_neon_ok_no_float_abi effective target.
1938 2017-06-26  Richard Biener  <rguenther@suse.de>
1940         PR tree-optimization/80928
1941         * cfghooks.c (duplicate_block): Do not copy BB_DUPLICATED flag.
1942         (copy_bbs): Set BB_DUPLICATED flag early.
1943         (execute_on_growing_pred): Do not execute for BB_DUPLICATED
1944         marked blocks.
1945         (execute_on_shrinking_pred): Likewise.
1946         * tree-ssa.c (ssa_redirect_edge): Do not look for PHI args in
1947         BB_DUPLICATED blocks.
1948         * tree-ssa-phionlycoprop.c (eliminate_degenerate_phis_1): Properly
1949         iterate over all PHIs considering removal of *gsi.
1951 2017-06-23  Jim Wilson  <jim.wilson@linaro.org>
1953         * doc/invoke.texi (AArch64 Options, -mtune): Re-add falkor and
1954         qdf24xx.
1956 2017-06-23  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1958         * config/rs6000/rs6000-string.c: (expand_block_clear,
1959         do_load_for_compare, select_block_compare_mode,
1960         compute_current_alignment, expand_block_compare,
1961         expand_strncmp_align_check, expand_strn_compare,
1962         expand_block_move, rs6000_output_load_multiple)
1963         Move functions related to string/block move/compare
1964         to a separate file.
1965         * config/rs6000/rs6000.c: Move above functions to rs6000-string.c.
1966         * config/rs6000/rs6000-protos.h (rs6000_emit_dot_insn): Add prototype
1967         for this function which is now used in two files.
1968         * config/rs6000/t-rs6000: Add rule to compile rs6000-string.o.
1969         * config.gcc: Add rs6000-string.o to extra_objs for
1970         targets powerpc*-*-* and rs6000*-*-*.
1972 2017-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
1974         PR target/80510
1975         * config/rs6000/rs6000.md (ALTIVEC_DFORM): Do not allow DImode in
1976         32-bit, since indexed is not valid for DImode.
1977         (mov<mode>_hardfloat32): Reorder ISA 2.07 load/stores before ISA
1978         3.0 d-form load/stores to be the same as mov<mode>_hardfloat64.
1979         (define_peephole2 for Altivec d-form load): Add 32-bit support.
1980         (define_peephole2 for Altivec d-form store): Likewise.
1982         PR ipa/81185
1983         * multiple_target.c (create_dispatcher_calls): Only create the
1984         dispatcher call if the function is the default clone of a
1985         versioned function.
1987 2017-06-23  Segher Boessenkool  <segher@kernel.crashing.org>
1989         PR middle-end/80902
1990         * builtins.c (expand_builtin_atomic_fetch_op): If emitting code after
1991         a call, force the call to not be a tail call.
1993 2017-06-23  Jeff Law  <law@redhat.com>
1995         * doc/contrib.texi: Add entry for Steven Pemberton's work on
1996         enquire.
1998 2017-06-23  Will Schmidt  <will_schmidt@vnet.ibm.com>
2000         * config/rs6000/rs6000.c: Add include of ssa-propagate.h for
2001         update_call_from_tree().  (rs6000_gimple_fold_builtin): Add
2002         handling for early expansion of vector shifts (sl,sr,sra,rl).
2003         (builtin_function_type): Add vector shift right instructions
2004         to the unsigned argument list.
2006 2017-06-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2008         rtl-optimizatoin/79286
2009         * ira.c (update_equiv_regs): Revert to using may_trap_or_fault_p again.
2010         * rtlanal.c (rtx_addr_can_trap_p_1): SYMBOL_REF_FUNCTION_P can never
2011         trap.  PIC register plus a const unspec without offset can never trap.
2013 2017-06-23  Marc Glisse  <marc.glisse@inria.fr>
2015         * tree.h (builtin_structptr_type): New type.
2016         (builtin_structptr_types): Declare new array.
2017         * tree.c (builtin_structptr_types): New array.
2018         (free_lang_data, build_common_tree_nodes): Use it.
2020 2017-06-23  Jonathan Wakely  <jwakely@redhat.com>
2022         PR c++/81187
2023         * doc/invoke.texi (-Wnoexcept-type): Fix name of option, from
2024         -Wnoexcept.
2026 2017-06-22  Matt Turner  <mattst88@gmail.com>
2028         * config/i386/driver-i386.c (host_detect_local_cpu): Add Kaby
2029         Lake models to skylake case.  Assume skylake for unknown
2030         models with clflushopt.
2032 2017-06-22  Jeff Law  <law@redhat.com>
2034         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Handle
2035         frame sizes that do not satisfy aarch64_uimm12_shift.
2037 2017-06-22  Jan Hubicka <hubicka@ucw.cz>
2039         * profile-count.h (apply_probability,
2040         apply_scale, probability_in): Fix checks for zero.
2042 2017-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2044         * incpath.c (add_sysroot_to_chain): Allow for $SYSROOT prefix.
2045         * doc/cppdiropts.texi (-I @var{dir}): Document it.
2047 2016-06-22  Richard Biener  <rguenther@suse.de>
2049         * tree-vect-loop.c (vect_model_reduction_cost): Handle
2050         COND_REDUCTION and INTEGER_INDUC_COND_REDUCTION without
2051         REDUC_MAX_EXPR support.
2052         (vectorizable_reduction): Likewise.
2053         (vect_create_epilog_for_reduction): Likewise.
2055 2017-06-22  James Greenhalgh  <james.greenhalgh@arm.com>
2057         * match.pd (A / (1 << B) -> A >> B): New.
2058         * generic-match-head.c: Include optabs-tree.h.
2059         * gimple-match-head.c: Likewise.
2060         * optabs-tree.h (target_supports_op_p): New.
2061         * optabs-tree.c (target_supports_op_p): New.
2063 2017-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2065         * configure.ac (gcc_cv_ld_static_dynamic): Also check stderr for
2066         $gcc_cv_ld --help output.
2067         (gcc_cv_ld_demangle): Likewise.
2068         (gcc_cv_ld_eh_frame_hdr): Likewise.
2069         (gcc_cv_ld_pie): Likewise.
2070         (gcc_cv_ld_as_needed): Likewise.  Prefer native forms unless $gnu_ld.
2071         (gcc_cv_ld_buildid): Likewise.
2072         (gcc_cv_ld_sysroot): Likewise.
2073         (ld_bndplt_support): Likewise.
2074         (ld_pushpopstate_support): Likewise.
2075         * configure: Regenerate.
2076         * config/sol2.h [!USE_GLD] (SYSROOT_SPEC): Define.
2078 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
2080         PR target/81151
2081         * config/i386/sse.md (round<mode>2): Renumber match_dup and
2082         operands indexes to avoid gap between operands and match_dups.
2084 2017-06-21  Andrew Pinski  <apinski@cavium.com>
2086         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
2087         Increment Arith_shift and Arith_shift_reg by 1.
2088         * config/aarch64/aarch64-tuning-flags.def (cheap_shift_extend):
2089         New tuning flag.
2090         * config/aarch64/aarch64.c (thunderx_tunings): Enable
2091         AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
2092         (aarch64_strip_extend): Add new argument and test for it.
2093         (aarch64_cheap_mult_shift_p): New function.
2094         (aarch64_rtx_mult_cost): Call aarch64_cheap_mult_shift_p and don't
2095         add a cost if it is true.
2096         Update calls to aarch64_strip_extend.
2097         (aarch64_rtx_costs): Update calls to aarch64_strip_extend.
2099 2017-06-21  Andrew Pinski  <apinski@cavium.com>
2101         * config/aarch64/aarch64-cores.def (thunderxt88p1): Use thunderxt88
2102         tunings.
2103         (thunderxt88): Likewise.
2104         * config/aarch64/aarch64.c (thunderxt88_prefetch_tune): New variable.
2105         (thunderx_prefetch_tune): New variable.
2106         (thunderx2t99_prefetch_tune): Update for the correct values.
2107         (thunderxt88_tunings): New variable.
2108         (thunderx_tunings): Use thunderx_prefetch_tune instead of
2109         generic_prefetch_tune.
2110         (thunderx2t99_tunings): Use AUTOPREFETCHER_WEAK.
2112 2017-06-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2114         * config/aarch64/atomics.md (aarch64_compare_and_swap<mode>_lse,
2115         SHORT): Relax operand 3 to aarch64_reg_or_zero and constraint to Z.
2116         (aarch64_compare_and_swap<mode>_lse, GPI): Likewise.
2117         (aarch64_atomic_cas<mode>, SHORT): Likewise for operand 2.
2118         (aarch64_atomic_cas<mode>, GPI): Likewise.
2120 2017-06-21  Martin Liska  <mliska@suse.cz>
2122         * gimplify.c (gimplify_label_expr): Insert GIMPLE_PREDICT
2123         statements on cold and hot labels.
2124         * predict.c (tree_estimate_probability_bb): Remove the
2125         prediction from this place.
2127 2017-06-21  Martin Liska  <mliska@suse.cz>
2129         PR tree-optimization/79489
2130         * gimplify.c (maybe_add_early_return_predict_stmt): New
2131         function.
2132         (gimplify_return_expr): Call the function.
2133         * predict.c (tree_estimate_probability_bb): Remove handling
2134         of early return.
2135         * predict.def: Update comment about early return predictor.
2136         * gimple-predict.h (is_gimple_predict): New function.
2137         * predict.def: Change default value of early return to 66.
2138         * tree-tailcall.c (find_tail_calls): Skip GIMPLE_PREDICT
2139         statements.
2140         * passes.def: Put pass_strip_predict_hints to the beginning of
2141         IPA passes.
2143 2017-06-21  Pierre-Marie de Rodat  <derodat@adacore.com>
2145         * dwarf2out.c (gen_decl_die): Remove the guard to skip file-scope
2146         FUNCTION_DECL declarations.
2147         (dwarf2out_early_global_decl): Remove the guard to skip FUNCTION_DECL
2148         declarations.
2149         (dwaf2out_decl): Likewise.
2150         * godump.c (go_early_global_decl): Skip call to the real debug hook
2151         for FUNCTION_DECL declarations.
2152         * passes.c (rest_of_decl_compilation): Skip call to the
2153         early_global_decl debug hook for FUNCTION_DECL declarations, unless
2154         -fdump-go-spec is passed.
2156 2017-06-21  Marc Glisse  <marc.glisse@inria.fr>
2158         * config/i386/i386.c (struct builtin_isa): New field pure_p.
2159         Reorder for compactness.
2160         (def_builtin, def_builtin2, ix86_add_new_builtins): Handle pure_p.
2161         (def_builtin_pure, def_builtin_pure2): New functions.
2162         (ix86_init_mmx_sse_builtins) [__builtin_ia32_stmxcsr]: Mark as pure.
2164 2017-06-21  Marc Glisse  <marc.glisse@inria.fr>
2166         * match.pd (nop_convert): New predicate.
2167         ((A +- CST1) +- CST2): Allow some NOP conversions.
2169 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
2171         PR c++/81130
2172         * gimplify.c (omp_add_variable): Don't force GOVD_SEEN for types
2173         with ctors/dtors if GOVD_SHARED is set.
2175 2017-06-21  Wilco Dijkstra  <wdijkstr@arm.com>
2177         * config/aarch64/aarch64.md (movti_aarch64):
2178         Emit mov rather than orr.
2179         (movtf_aarch64): Likewise.
2180         * config/aarch64/aarch64-simd.md (aarch64_simd_mov):
2181         Emit mov rather than orr.
2183 2017-06-21  Wilco Dijkstra  <wdijkstr@arm.com>
2185         * config/aarch64/aarch64-simd.md (aarch64_simd_dup):
2186         Swap alternatives, make integer dup more expensive.
2188 2017-06-21  Wilco Dijkstra  <wdijkstr@arm.com>
2190         * config/aarch64/aarch64.c (aarch64_legitimate_constant_p):
2191         Return true for non-tls symbols.
2193 2017-06-21  James Greenhalgh  <james.greenhalgh@arm.com>
2195         * config/aarch64/aarch64-cores.def (cortex-a55): New.
2196         (cortex-a75): Likewise.
2197         (cortex-a75.cortex-a55): Likewise.
2198         * config/aarch64/aarch64-tune.md: Regenerate.
2199         * doc/invoke.texi (-mtune): Document new values for -mtune.
2201 2017-06-21  Tom de Vries  <tom@codesourcery.com>
2203         * doc/sourcebuild.texi (Add Options, Features for dg-add-options): Add
2204         stack_size feature.
2205         (Effective-Target Keywords, Other attributes): Suggest using
2206         dg-add-options stack_size feature to get stack limit in stack_size
2207         effective target documentation.
2209 2017-06-21  Julian Brown  <julian@codesourcery.com>
2210             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
2212         * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi)
2213         (aarch64_crypto_pmullv2di): Change type attribute to crypto_pmull.
2214         * config/aarch64/thunderx2t99.md (thunderx2t99_pmull): New
2215         reservation.
2216         * config/arm/cortex-a53.md (cortex_a53_advsimd_type): Add crypto_pmull to
2217         attribute type list for neon_multiply.
2218         * config/arm/cortex-a57.md (cortex_a57_neon_type): Add crypto_pmull to
2219         attribute type list for neon_multiply.
2220         * config/arm/crypto.md (crypto_vmullp64): Change type to crypto_pmull.
2221         * config/arm/exynos-m1.md (exynos_m1_neon_type): Add crypto_pmull to
2222         attribute type list for neon_multiply.
2223         * config/arm/types.md (crypto_pmull): Add.
2224         * config/arm/xgene1.md (xgene1_neon_pmull): Add crypto_pmull to
2225         attribute type list.
2227 2017-06-20  Andreas Tobler  <andreast@gcc.gnu.org>
2229         * config.gcc (armv6*-*-freebsd*): Change the target_cpu_cname to
2230         arm1176jzf-s.
2232 2017-06-20  Jakub Jelinek  <jakub@redhat.com>
2234         * ira-costs.c (find_costs_and_classes): Initialize cost_classes later
2235         to make sure not to dereference a NULL cost_classes_ptr pointer.
2237 2017-06-20  Carl Love  <cel@us.ibm.com>
2239         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2240         ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
2241         ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
2242         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
2243         builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
2244         * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
2245         VMULOSW): New enum "unspec" values.
2246         (vec_widen_umult_even_v4si, vec_widen_smult_even_v4si,
2247         vec_widen_umult_odd_v4si, vec_widen_smult_odd_v4si,
2248         altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
2249         altivec_vmulosw): New patterns.
2250         * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
2251         VMULOSW): Add definitions.
2253 2017-06-20  Julia Koval  <julia.koval@intel.com>
2255         * config/i386/i386.c: Fix rounding expand for new pattern.
2256         * config/i386/subst.md: Fix pattern (parallel -> unspec).
2258 2017-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
2260         * config/aarch64/aarch64-option-extensions.def (rcpc): New.
2261         * config/aarch64/aarch64.h (AARCH64_FL_RCPC): New.
2263 2017-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
2265         * config/aarch64/aarch64-option-extensions.def (fp16): Fix expected
2266         feature string.
2268 2017-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
2270         * config/aarch64/aarch64-cores.def: Rearrange to sort by
2271         architecture, then by implementer ID.
2272         * config/aarch64/aarch64-tune.md: Regenerate.
2274 2017-06-20  Richard Biener  <rguenther@suse.de>
2276         PR middle-end/81097
2277         * fold-const.c (split_tree): Fold to type before negating.
2279 2017-06-20  David Malcolm  <dmalcolm@redhat.com>
2281         * diagnostic-show-locus.c
2282         (selftest::test_fixit_deletion_affecting_newline): New function.
2283         (selftest::diagnostic_show_locus_c_tests): Call it.
2285 2017-06-20  Andreas Schwab  <schwab@suse.de>
2287         PR target/80970
2288         * config/m68k/m68k.md (bsetdreg, bchgdreg, bclrdreg): Use "=d"
2289         instead of "+d".
2291 2017-06-20  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
2293         * config/arm/arm-c.c (arm_cpu_builtins): New block to define
2294         __ARM_FEATURE_COPROC according to support.
2296 2017-06-20  Jakub Jelinek  <jakub@redhat.com>
2298         * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
2299         Rewritten to avoid overflow for > 32-bit pointers.
2301         PR sanitizer/81125
2302         * ubsan.h (ubsan_encode_value): Workaround buggy clang++ parser
2303         by removing enum keyword.
2304         (ubsan_type_descriptor): Likewise.  Formatting fix.
2306         PR target/81121
2307         * config/i386/i386.md (TARGET_USE_VECTOR_CONVERTS float si->{sf,df}
2308         splitter): Require TARGET_SSE2 in the condition.
2310 2017-06-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
2312         PR target/79799
2313         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Add support
2314         for doing vector set of SFmode on ISA 3.0.
2315         * config/rs6000/vsx.md (vsx_set_v4sf_p9): Likewise.
2316         (vsx_set_v4sf_p9_zero): Special case setting 0.0f to a V4SF
2317         element.
2318         (vsx_insert_extract_v4sf_p9): Add an optimization for inserting a
2319         SFmode value into a V4SF variable that was extracted from another
2320         V4SF variable without converting the element to double precision
2321         and back to single precision vector format.
2322         (vsx_insert_extract_v4sf_p9_2): Likewise.
2324 2017-06-19  Jakub Jelinek  <jakub@redhat.com>
2326         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Multiply
2327         in UWHI to avoid undefined overflow.
2329         PR sanitizer/81125
2330         * ubsan.h (enum ubsan_encode_value_phase): New.
2331         (ubsan_encode_value): Change second argument to
2332         enum ubsan_encode_value_phase with default value of
2333         UBSAN_ENCODE_VALUE_GENERIC.
2334         * ubsan.c (ubsan_encode_value): Change second argument to
2335         enum ubsan_encode_value_phase PHASE from bool IN_EXPAND_P,
2336         adjust uses, for UBSAN_ENCODE_VALUE_GENERIC use just
2337         create_tmp_var_raw instead of create_tmp_var and use a
2338         TARGET_EXPR.
2339         (ubsan_expand_bounds_ifn, ubsan_build_overflow_builtin,
2340         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
2341         ubsan_encode_value callers.
2343         PR sanitizer/81111
2344         * ubsan.c (ubsan_encode_value): If current_function_decl is NULL,
2345         use create_tmp_var_raw instead of create_tmp_var, mark it addressable
2346         just by setting TREE_ADDRESSABLE on the result and use a TARGET_EXPR.
2348 2017-06-19  Richard Biener  <rguenther@suse.de>
2350         PR middle-end/81118
2351         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop): Clear niter
2352         estimates if we changed anything.
2354 2017-06-19  Richard Biener  <rguenther@suse.de>
2356         PR tree-optimization/80887
2357         * tree-ssa-sccvn.c (mprts_hook_cnt): New global.
2358         (vn_lookup_simplify_result): Allow only mprts_hook_cnt succesful
2359         simplified lookups, then reset mprts_hook.
2360         (vn_nary_build_or_lookup_1): Set mprts_hook_cnt to 9 before
2361         simplifying.
2362         (try_to_simplify): Likewise.
2364 2017-06-19  Martin Liska  <mliska@suse.cz>
2366         PR sanitizer/80879
2367         * gimplify.c (gimplify_switch_expr):
2368         Initialize live_switch_vars for SWITCH_BODY == STATEMENT_LIST.
2370 2017-06-19  Martin Liska  <mliska@suse.cz>
2372         * doc/install.texi: Document that PGO runs in 4 stages.
2374 2017-06-19  Martin Liska  <mliska@suse.cz>
2376         PR ipa/80732
2377         * attribs.c (make_dispatcher_decl): Do not append '.ifunc'
2378         to dispatcher function name.
2379         * multiple_target.c (replace_function_decl): New function.
2380         (create_dispatcher_calls): Redirect both edges and references.
2382 2017-06-19  Jan Hubicka <hubicka@ucw.cz>
2384         * profile-count.c (profile_count::dump): Dump quality.
2385         (profile_count::differs_from_p): Update for unsigned val.
2386         * profile-count.h (profile_count_quality): New enum.
2387         (profile_count): Turn m_val to 62bit unsigned, add quality tracking.
2389 2017-06-19  Richard Biener  <rguenther@suse.de>
2391         * tree-ssa-loop-niter.h (estimate_numbers_of_iterations): Take
2392         struct function as arg.
2393         (estimate_numbers_of_iterations): Export overload with loop arg.
2394         (free_numbers_of_iterations_estimates_loop): Use an overload of
2395         free_numbers_of_iterations_estimates instead.
2396         * tree-cfg.c (remove_bb): Adjust.
2397         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Likewise.
2398         * tree-parloops.c (gen_parallel_loop): Likewise.
2399         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
2400         Likewise.
2401         (tree_unroll_loops_completely): Likewise.
2402         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
2403         Use an overload instead and export.
2404         (estimated_loop_iterations): Adjust.
2405         (max_loop_iterations): Likewise.
2406         (likely_max_loop_iterations): Likewise.
2407         (estimate_numbers_of_iterations): Take struct function as arg
2408         and adjust.
2409         (loop_exits_before_overflow): Adjust.
2410         (free_numbers_of_iterations_estimates_loop): Use an overload.
2411         * tree-vect-loop.c (vect_analyze_loop_form): Adjust.
2412         * tree-vectorizer.c (vect_free_loop_info_assumptions): Likewise.
2414 2017-06-19  Richard Biener  <rguenther@suse.de>
2416         PR ipa/81112
2417         * ipa-prop.c (find_constructor_constant_at_offset): Handle
2418         RANGE_EXPR conservatively.
2420 2017-06-16  Carl Love  <cel@us.ibm.com>
2422         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2423         definitions for vec_float, vec_float2, vec_floato,
2424         vec_floate built-ins.
2425         * config/rs6000/vsx.md (define_c_enum "unspec"): Add RTL code
2426         for instructions vsx_xvcvsxws vsx_xvcvuxwsp, float2, floato and
2427         floate.
2428         * config/rs6000/rs6000-builtin.def (FLOAT2_V2DI, FLOATE_V2DF,
2429         FLOATE_2DI, FLOATO_V2DF, FLOATEE_V2DI, XVCVSXWSP_V4SF,
2430         UNS_FLOATO_V2DI, UNS_FLOATE_V2DI): Add definitions.
2431         * config/altivec.md (define_insn "p8_vmrgew_<mode>",
2432         define_mode_attr VF_sxddp): Add V4SF type to p8_vmrgew.
2433         * config/rs6000/altivec.h (vec_float, vec_float2, vec_floate,
2434         vec_floato): Add builtin defines.
2435         * doc/extend.texi (vec_float, vec_float2, vec_floate, vec_floato):
2436         Update the built-in documentation file for the new built-in
2437         functions.
2439 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2441         * config/arm/arm.opt (marm): Mark as the negative of of -mthumb.
2442         (mthumb): Mark as the negative of -marm.
2444 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2446         * doc/invoke.texi (ARM Options, -mcpu): Document supported
2447         extension options.
2448         (ARM Options, -mtune): Document that this accepts the same
2449         extension options as -mcpu.
2450         (ARM Options, -mfpu): Document addition of -mfpu=auto.
2452 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2454         * doc/invoke.texi (ARM Options, -march=): Document new syntax and
2455         permitted extensions.
2457 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2459         * config/arm/arm-cpus.in (armv7): Add extension +nofp.
2460         (armv7-r): Add aliases vfpv3xd and vfpv3-d16.
2461         (armv8-m.main): Add option +nodsp.
2462         * config/arm/arm-cpu-cdata.h: Regenerated.
2464 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2466         * config/arm/t-fuchsia: New file.
2467         * config.gcc (arm*-*-fuchsia*): Use it.
2469 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2471         * config/arm/t-symbian: Rewrite for new option infrastructure.
2473 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2475         * config/arm/t-phoenix (MULTILIB_REUSE): Clear variable.
2476         (MULTILIB_REQUIRED): Likewise.
2478 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2480         * config/arm/t-linux-eabi (MULTILIB_EXCEPTIONS): Set to empty.
2481         (MULTILIB_RESUE): Likewise.
2482         (MULTILIB_MATCHES): Likewise.
2483         (MULTLIB_REQUIRED): Likewise.
2485 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2487         * config/arm/t-rtems: Rewrite for new option framework.
2489 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2491         * config/arm/t-aprofile (v7_a_nosimd_variants, v7_a_simd_variants)
2492         (v7ve_nosimd_variatns, v7ve_vfpv3_simd_variants)
2493         (v7ve_vfpv4_simd_variants, v8_a_nosimd_variants, v8_a_simd_variants)
2494         (v8_1_a_simd_variants, v8_2_a_simd_variants): Move to ...
2495         * config/arm/t-multilib: ... here.
2496         (MULTILIB_OPTIONS): Add armv7 and armv7+fp architectures.
2497         (MULTILIB_MATCHES): Use armv7 libraries for armv7-r.  Also use for
2498         armv7-a and armv8*-a when A-profile libraries have not been built.
2499         * config/arm/t-rmprofile: Rewrite.
2501 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2503         * genmultilib (multilib_reuse): Allow an explicit period to be escaped
2504         with a backslash.  Remove the backslash after substituting unescaped
2505         periods.
2506         * doc/fragments.texi (MULTILIB_REUSE): Document it.
2508 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2510         * config.gcc: (arm*-*-*): When building a-profile libraries, force
2511         the driver to pass through the default setting of -mfloat-abi.
2512         * common/config/arm/arm-common.c (arm_target_thumb_only): Return -marm
2513         rather than NULL.
2514         * config/arm/t-multilib (MULTILIB_REUSE): Initialize to empty.
2515         (all_feat_combs): New rule.
2516         (MULTILIB_OPTIONS): Use explicit ARM and Thumb directories.  Rework
2517         default libraries.
2518         * config/arm/t-aprofile: Rewrite.
2520 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2522         * config/arm/arm.h (FPUTYPE_AUTO): Define.
2523         * config/arm/arm.c (arm_option_override): Use FPUTYPE_AUTO if the
2524         fpu is not specified by the user/command-line.
2525         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Delete.
2526         * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Delete.
2527         * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Delete.
2528         * config/arm/vxworks.h (FPUTYPE_DEFAULT): Delete.
2529         * common/config/arm/arm-common.c (arm_canon_arch_option): Use
2530         FPUTYPE_AUTO insted of FPUTYPE_DEFAULT.
2532 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2534         * config/arm/elf.h (MULTILIB_DEFAULTS): Delete.
2535         * config/arm/t-arm-elf: Rewritten.
2537 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2539         * config/arm/arm.h (TARGET_HARD_FLOAT): Also check that we
2540         have some floating-point instructions.
2541         (TARGET_SOFT_FLOAT): Define as inverse of TARGET_HARD_FLOAT.
2542         (TARGET_MAYBE_HARD_FLOAT): New macro.
2543         * config/arm/arm-builtins.c (arm_init_builtins): Use
2544         TARGET_MAYBE_HARD_FLOAT.
2545         * config/arm/arm.c (arm_option_override): Use TARGET_HARD_FLOAT_ABI.
2547 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2549         * common/config/arm/arm-common.c: Define INCLUDE_LIST.
2550         (configargs.h): Include it.
2551         (arm_print_hint_for_fpu_option): New function.
2552         (arm_parse_fpu_option): New function.
2553         (candidate_extension): New class.
2554         (arm_canon_for_multilib): New function.
2555         * config/arm/arm.h (CANON_ARCH_SPEC_FUNCTION): New macro.
2556         (EXTRA_SPEC_FUNCTIONS): Add CANON_ARCH_SPEC_FUNCTION.
2557         (ARCH_CANONICAL_SPECS): New macro.
2558         (DRIVER_SELF_SPECS): Add ARCH_CANONICAL_SPECS.
2560 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2562         * config.gcc (arm*-*-*): Ensure both target_cpu_cname and with_cpu
2563         are set after handling multilib fragments.  Set target_cpu_default2
2564         from with_cpu.
2566 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2568         * config.gcc (arm*-*-fucshia*): Set target_cpu_cname to the real
2569         cpu name.
2570         (arm*-*-*): Set target_cpu_default2 to a quoted string.
2571         * config/arm/parsecpu.awk (check_cpu): Validate any extension
2572         options.
2573         (check_arch): Likewise.
2574         * config/arm/arm.c (arm_configure_build_target): Handle
2575         TARGET_CPU_DEFAULT being a string constant.  Scan any feature
2576         options in the default.
2578 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2580         * config/arm/arm-protos.h (cpu_arch_extension): Add field to record
2581         when an option is an alias of another.
2582         * config/arm/parsecpu.awk (optalias): New parser token.
2583         (gen_comm_data): Mark non-alias options as such.  Emit entries
2584         for extension aliases.
2585         * config/arm/arm-cpus.in (armv5e): Make vfpv2 an alias.
2586         (armv5te, armv5tej, armv6, armv6j, armv6k, armv6z): Likewise.
2587         (armv6kz, armv6zk, armv6t2): Likewise.
2588         (armv7): Make vfpv3-d16 an alias.
2589         (armv7-a): Make vfpv3-d16, neon and neon-vfpv3 aliases.  Sort in
2590         canonical order.
2591         (armv7ve): Make vfpv4-d16, neon-vfpv3 and neon-vfpv4 aliases.
2592         Sort in canonical order.
2593         (armv8-a): Sort in canonical order.
2594         (armv8.1-a, armv8.2-a):  Likewise.
2595         (generic-armv7-a): Make neon and neon-vfpv3 aliases.  Sort in
2596         canonical order.
2597         (cortex-a9): Sort in canonical order.
2598         * config/arm/arm.c (selftests.h): Include it.
2599         (arm_test_cpu_arch_data): New function.
2600         (arm_run_self_tests): New function.
2601         (TARGET_RUN_TARGET_SELFTESTS): Redefine.
2602         (targetm): Move declaration to the end of the file.
2603         * arm-cpu-cdata.h: Regenerated.
2605 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2607         * config/arm/arm.h (TARGET_MODE_SPECS): Add additional parameter to
2608         call to target_mode_check describing the type of option passed.
2609         * common/config/arm/arm-common.c (arm_arch_core_flag): Delete.
2610         (arm_target_thumb_only): Use arm_parse_arch_option_name or
2611         arm_parse_cpu_option_name to match parameters against list of
2612         available targets.
2613         * config/arm/parsecpu.awk (gen_comm_data): Don't generate
2614         arm_arch_core_flags data structure.
2615         * config/arm/arm-cpu_cdata.h: Regenerated.
2617 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2619         * common/config/arm/arm-common.c (arm_initialize_isa): Moved here from
2620         config/arm/arm.c.
2621         (arm_print_hint_for_cpu_option): Likewise.
2622         (arm_print_hint_for_arch_option): Likewise.
2623         (arm_parse_cpu_option_name): Likewise.
2624         (arm_parse_arch_option_name): Likewise.
2625         * config/arm/arm.c (arm_identify_fpu_from_isa): Use the computed number
2626         of entries in the all_fpus list.
2627         * config/arm/arm-protos.h (all_architectures, all_cores): Declare.
2628         (arm_parse_cpu_option_name): Declare.
2629         (arm_parse_arch_option_name): Declare.
2630         (arm_parse_option_features): Declare.
2631         (arm_intialize_isa): Declare.
2632         * config/arm/parsecpu.awk (gen_data): Move CPU and architecture
2633         data tables to ...
2634         (gen_comm_data): ... here.  Make definitions non-static.
2635         * config/arm/arm-cpu-data.h: Regenerated.
2636         * config/arm/arm-cpu-cdata.h: Regenerated.
2638 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2640         * config/arm/arm-protos.h (arm_build_target): Remove arch_core.
2641         (cpu_arch_extension): New structure.
2642         (cpu_arch_option, arch_option, cpu_option): New structures.
2643         * config/arm/parsecpu.awk (gen_headers): Build an enumeration of
2644         architecture types.
2645         (gen_data): Generate new format data tables.
2646         * config/arm/arm.c (cpu_tune): New structure.
2647         (cpu_option, processors): Delete.
2648         (arm_print_hint_for_core_or_arch): Delete.  Replace with ...
2649         (arm_print_hint_for_cpu_option): ... this and ...
2650         (arm_print_hint_for_arch_option): ... this.
2651         (arm_parse_arch_cpu_name): Delete.  Replace with ...
2652         (arm_parse_cpu_option_name): ... this and ...
2653         (arm_parse_arch_option_name): ... this.
2654         (arm_unrecognized_feature): Change type of target parameter to
2655         cpu_arch_option.
2656         (arm_parse_arch_cpu_features): Delete.  Replace with ...
2657         (arm_parse_option_features): ... this.
2658         (arm_configure_build_target): Rework to use new configuration data
2659         tables.
2660         (arm_print_tune_info): Rework for new configuration data tables.
2661         * config/arm/arm-cpu-data.h: Regenerated.
2662         * config/arm/arm-cpu.h: Regenerated.
2664 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2666         * Makefile.in (OBJS): Move sbitmap.o from here ...
2667         (OBJS-libcommon): ... to here.
2669 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2671         * config/arm/arm-isa.h (ISA_ALL_FPU_INTERNAL): Renamed from ISA_ALL_FPU.
2672         (ISA_ALL_CRYPTO): New macro.
2673         (ISA_ALL_SIMD): New macro
2674         (ISA_ALL_FP): New macro.
2675         * config/arm/arm.c (fpu_bitlist): Update initializer.
2676         * config/arm/arm-cpus.in: Use new ISA_ALL macros to disable crypto,
2677         simd or fp.
2678         (arm9e): Add fpu.  Add option for nofp
2679         (arm946e-s, arm966e-s, arm968e-s, arm10e, arm1020e, arm1022e): Likewise.
2680         (arm926ej-s, arm1026ej-s): Likewise.
2681         (generic-armv7-a): Add fpu.  Add options for simd, vfpv3, vfpv3-d16,
2682         vfpv3-fp16, vfpv3-d16-fp16, vfpv4, vfpv4-d16, neon, neon-vfp3,
2683         neon-fp16, neon-vfpv4, nofp and nosimd.
2684         (cortex-a5, cortex-a7): Add fpu.  Add options for nosimd and nofp.
2685         (cortex-a8): Add fpu.  Add option for nofp.
2686         (cortex-a9): Add fpu.  Add options for nosimd and nofp.
2687         (cortex-a12, cortex-a15, cortex-a17): Add fpu.  Add option for nofp.
2688         (cortex-r4f): Add fpu.
2689         (cortex-r5): Add fpu.  Add options for nofp.dp and nofp.
2690         (cortex-r7): Use idiv option from architecture.  Add fpu.  Add option
2691         for nofp.
2692         (cortex-r8): Likewise.
2693         (cortex-m4): Add fpu.  Add option for nofp.
2694         (cortex-a15.cortex-a7): Add fpu.  Add option for nofp.
2695         (cortex-a17.cortex-a7): Likewise.
2696         (cortex-a32): Add fpu.  Add options for crypto and nofp.
2697         (cortex-a35, cortex-a53): Likewise.
2698         (cortex-a57): Add fpu.  Add option for crypto.
2699         (cortex-a72, cortex-a73): Likewise.
2700         (exynos-m1): Likewise.
2701         (cortex-a57.cortex-a53, cortex-a72.cortex-a53): Likewise.
2702         (cortex-a73.cortex-a35, cortex-a73.cortex-a53): Likewise.
2703         (cortex-m33): Add fpu.  Add option for nofp.
2704         * config/arm/arm-cpu-cdata.h: Regenerated
2705         * config/arm/arm-cpu-data.h: Regenerated.
2707 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2709         * arm-cpus.in (armv5e): Add options fp, vfpv2 and nofp.
2710         (armv5te, armv5tej): Likewise.
2711         (armv6, armv6j, armv6k, armv6z, armv6kz, armv6zk, armv6t2): Likewise.
2712         (armv7): Add options fp and vfpv3-d16.
2713         (armv7-a): Add options fp, simd, vfpv3, vfpv3-d16, vfpv3-d16-fp16,
2714         vfpv3-fp16, vfpv4, vfpv4-d16, neon, neon-vfpv3, neon-fp16, neon-vfpv4,
2715         nofp and nosimd.
2716         (armv7ve): Likewise.
2717         (armv7-r): Add options fp, fp.sp, idiv, nofp and noidiv.
2718         (armv7e-m): Add options fp, fpv5, fp.dp and nofp.
2719         (armv8-a): Add nocrypto option.
2720         (armv8.1-a, armv8.2-a): Likewise.
2721         (armv8-m.main): add options fp, fp.dp and nofp.
2723 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2725         * config/arm/arm-cpus.in (armv8-a): Add options crc, simd crypto and
2726         nofp.
2727         (armv8-a+crc): Delete.
2728         (armv8.1-a): Add options simd, crypto and nofp.
2729         (armv8.2-a): Add options fp16, simd, crypto and nofp.
2730         (armv8.2-a+fp16): Delete.
2731         (armv8-m.main): Add option dsp.
2732         (armv8-m.main+dsp): Delete.
2733         (cortex-a8): Add fpu.  Add nofp option.
2734         (cortex-a9): Add fpu.  Add nofp and nosimd options.
2735         * config/arm/parsecpu.awk (gen_data): Generate option tables and
2736         link to main cpu and architecture data structures.
2737         (gen_comm_data): Only put isa attributes from the main architecture
2738         in common tables.
2739         (option): New statement for architecture and CPU entries.
2740         * arm.c (struct cpu_option): New structure.
2741         (struct processors): Add entry for options.
2742         (arm_unrecognized_feature): New function.
2743         (arm_parse_arch_cpu_name): Ignore any characters after the first
2744         '+' character.
2745         (arm_parse_arch_cpu_feature): New function.
2746         (arm_configure_build_target): Separate out any CPU and architecture
2747         features and parse separately.  Don't error out if -mfpu=auto is
2748         used with only an architecture string.
2749         (arm_print_asm_arch_directives): New function.
2750         (arm_file_start): Call it.
2751         * config/arm/arm-cpu-cdata.h: Regenerated.
2752         * config/arm/arm-cpu-data.h: Likewise.
2753         * config/arm/arm-tables.opt: Likewise.
2755 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2757         * config/arm/elf.h (ASM_SPEC): Only pass -mfpu through to the
2758         assembler when it is not -mfpu=auto.
2760 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2762         * config/arm/arm.h (BIG_LITTLE_SPEC): Delete macro.
2763         (ASM_REWRITE_SPEC_FUNCTIONS): New macro.
2764         (BIG_LITTLE_CPU_SPEC_FUNCTIONS): Delete macro.
2765         (ASM_CPU_SPEC): Rewrite.
2766         (MCPU_MTUNE_NATIVE_FUNCTIONS): New macro.
2767         (EXTRA_SPEC_FUNCTIONS): Move outside of ifdef.  Use
2768         MCPU_MTUNE_NATIVE_FUNCTIONS and ASM_REWRITE_SPEC_FUNCTIONS.  Remove
2769         reference to BIG_LITTLE_CPU_SPEC_FUNCTIONS.
2770         * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): Ensure
2771         copied string is NUL-terminated.  Also strip any characters prefixed
2772         by '+'.
2773         (arm_rewrite_selected_arch): New function.
2774         (arm_rewrite_march): New function.
2776 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
2778         * config/arm/arm.opt (x_arm_arch_string): New TargetSave option.
2779         (x_arm_cpu_string, x_arm_tune_string): Likewise.
2780         (march, mcpu, mtune): Convert to string-based options.
2781         * config/arm/arm.c (arm_print_hint_for_core_or_arch): New function.
2782         (arm_parse_arch_cpu_name): New function.
2783         (arm_configure_build_target): Use arm_parse_arch_cpu_name to
2784         identify selected architecture or CPU.
2785         (arm_option_save): New function.
2786         (TARGET_OPTION_SAVE): Redefine.
2787         (arm_option_restore): Restore string options.
2788         (arm_option_print): Print string options.
2790 2017-06-16  Martin Sebor  <msebor@redhat.com>
2792         PR tree-optimization/80933
2793         PR tree-optimization/80934
2794         * builtins.c (fold_builtin_3): Do not handle bcmp here.
2795         * gimple-fold.c (gimple_fold_builtin_bcmp): New function.
2796         (gimple_fold_builtin_bcopy, gimple_fold_builtin_bzero): Likewise.
2797         (gimple_fold_builtin): Call them.
2799 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
2801         * gimple-ssa-isolate-paths.c (isolate_path): Set edge leading to path
2802         as unlikely; update profile.
2804 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
2806         * predict.c (force_edge_cold): Handle declaring edges impossible
2807         more aggresively.
2809 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
2811         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update
2812         profile.
2813         (try_unroll_loop_completely): Fix reporting.
2815 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
2817         * tree-ssa-tail-merge.c (replace_block_by): Fix profile updating.
2819 2017-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
2821         PR target/71778
2822         * config/arm/arm-builtins.c (arm_expand_builtin_args): Return TARGET
2823         if given a non-constant argument for an intrinsic which requires a
2824         constant.
2826 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
2828         * profile.c (compare_freqs): New function.
2829         (branch_prob): Sort edge list.
2830         (find_spanning_tree): Assume that the list is priority sorted.
2832 2017-06-16  Richard Biener  <rguenther@suse.de>
2834         PR tree-optimization/81090
2835         * passes.def (pass_record_bounds): Remove.
2836         * tree-pass.h (make_pass_record_bounds): Likewise.
2837         * tree-ssa-loop.c (pass_data_record_bounds, pass_record_bounds,
2838         make_pass_record_bounds): Likewise.
2839         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Do
2840         not free niter estimates at the beginning but at the end.
2841         * tree-scalar-evolution.c (scev_finalize): Free niter estimates.
2843 2017-06-16  Richard Biener  <rguenther@suse.de>
2845         * tree-switch-conversion.c (emit_case_bit_tests): Adjust
2846         initializer to workaround ICE in host GCC 4.8.
2848 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
2850         * ipa-inline-transform.c (update_noncloned_frequencies): Update also
2851         counts.
2852         (clone_inlined_nodes): Update.
2854 2017-06-16  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
2856         * config/aarch64/aarch64.c (qdf24xx_prefetch_tune): Update
2857         prefetch settings, and enable prefetching by default at -O3.
2859 2017-06-16  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
2861         * config/aarch64/aarch64.c (aarch64_override_options_internal):
2862         Set flag_prefetch_loop_arrays according to tuning data.
2864 2017-06-16  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
2866         * config/aarch64/aarch64-protos.h (struct cpu_prefetch_tune):
2867         New tune structure.
2868         (struct tune_params): Use cpu_prefetch_tune instead of cache_line_size.
2869         [Unrelated to main purpose of the patch] Place the pointer field last
2870         to enable type checking errors when tune structure are wrongly merged.
2871         * config/aarch64/aarch64.c (generic_prefetch_tune,)
2872         (exynosm1_prefetch_tune, qdf24xx_prefetch_tune,)
2873         (thunderx2t99_prefetch_tune): New tune constants.
2874         (tune_params *_tunings): Update all tunings (no functional change).
2875         (aarch64_override_options_internal): Set PARAM_SIMULTANEOUS_PREFETCHES,
2876         PARAM_L1_CACHE_SIZE, PARAM_L1_CACHE_LINE_SIZE, and PARAM_L2_CACHE_SIZE
2877         from tunings structures.
2879 2017-06-16  Jakub Jelinek  <jakub@redhat.com>
2881         PR sanitizer/81094
2882         * ubsan.c (instrument_null): Add T argument, use it instead
2883         of computing it based on IS_LHS.
2884         (instrument_object_size): Likewise.
2885         (pass_ubsan::execute): Adjust instrument_null and
2886         instrument_object_size callers to pass gimple_get_lhs or
2887         gimple_assign_rhs1 result to it.  Use instrument_null instead of
2888         calling get_base_address and instrument_mem_ref.  Handle
2889         aggregate call arguments for object-size sanitization.
2891 2017-06-16  Yury Gribov  <tetra2005@gmail.com>
2893         PR tree-optimization/81089
2894         * tree-vrp.c (is_masked_range_test): Validate operands of
2895         subexpression.
2897 2017-06-15  Martin Sebor  <msebor@redhat.com>
2899         PR c++/80560
2900         * dumpfile.c (dump_register): Avoid calling memset to initialize
2901         a class with a default ctor.
2902         * gcc.c (struct compiler): Remove const qualification.
2903         * genattrtab.c (gen_insn_reserv): Replace memset with initialization.
2904         * hash-table.h: Ditto.
2905         * ipa-cp.c (allocate_and_init_ipcp_value): Replace memset with
2906           assignment.
2907         * ipa-prop.c (ipa_free_edge_args_substructures): Ditto.
2908         * omp-low.c (lower_omp_ordered_clauses): Replace memset with
2909         default ctor.
2910         * params.h (struct param_info): Make struct members non-const.
2911         * tree-switch-conversion.c (emit_case_bit_tests): Replace memset
2912         with default initialization.
2913         * vec.h (vec_copy_construct, vec_default_construct): New helper
2914         functions.
2915         (vec<T>::copy, vec<T>::splice, vec<T>::reserve): Replace memcpy
2916         with vec_copy_construct.
2917         (vect<T>::quick_grow_cleared): Replace memset with default ctor.
2918         (vect<T>::vec_safe_grow_cleared, vec_safe_grow_cleared): Same.
2919         * doc/invoke.texi (-Wclass-memaccess): Document.
2921 2017-06-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2923         * emit-rtl.h (is_leaf): Update comment about local
2924         register allocator.
2926 2017-06-15  Jozef Lawrynowicz   <jozef.l@somniumtech.com>
2928         PR target/78818
2929         * config/msp430/msp430.c (msp430_data_attr): Check that it's possible
2930         for a variable to have a section before checking if the section has a
2931         name.
2932         Set section to.persistent if persistent attribute is set.
2933         Warn if .persistent attribute is used on an automatic variable.
2935 2017-06-15  Eric Botcazou  <ebotcazou@adacore.com>
2937         PR rtl-optimization/80474
2938         * reorg.c (update_block): Do not ignore instructions in a delay slot.
2940 2017-06-15  Segher Boessenkool  <segher@kernel.crashing.org>
2942         * config/rs6000/rs6000.md (add<mode>3): Use reg_or_subregno instead
2943         of REGNO.
2945 2017-06-14  Maciej W. Rozycki  <macro@imgtec.com>
2947         * config/mips/mips.md (MIPS16_T_REGNUM): Remove constant.
2948         (casesi): Emit bounds checking as RTL.
2949         (casesi_internal_mips16_<mode>): Remove bounds checking.
2951 2017-06-14  Max Filippov  <jcmvbkbc@gmail.com>
2953         * config/xtensa/xtensa.c (xtensa_option_override): Append
2954         MASK_CONST16 to target_flags in the absence of TARGET_L32R.
2955         (hwloop_optimize, hwloop_fail, hwloop_pattern_reg,
2956          xtensa_doloop_hooks): Define unconditionally.
2957         (xtensa_reorg_loops): Only call reorg_loops in the presence of
2958         TARGET_LOOPS.
2959         * config/xtensa/xtensa.h (TARGET_L32R): New definition.
2960         (TARGET_DEFAULT): Remove XCHAL_HAVE_L32R condition and account
2961         for it in xtensa_option_override.
2962         (HARD_FRAME_POINTER_IS_FRAME_POINTER,
2963          HARD_FRAME_POINTER_IS_ARG_POINTER): New definitions.
2965 2017-06-14  Boris Kolpackov  <boris@codesynthesis.com>
2967         * doc/cppopts.texi: Document '-' special value to -MF.
2969 2017-06-14  Wilco Dijkstra  <wdijkstr@arm.com>
2971         * config/arm/cortex-a53.md (cortex_a53_fpalu) Adjust latency.
2972         (cortex_a53_fconst): Likewise.
2973         (cortex_a53_fpmul): Likewise.
2974         (cortex_a53_f_load_64): Likewise.
2975         (cortex_a53_f_load_many): Likewise.
2976         (cortex_a53_advsimd_alu): Likewise.
2977         (cortex_a53_advsimd_alu_q): Likewise.
2978         (cortex_a53_advsimd_mul): Likewise.
2979         (cortex_a53_advsimd_mul_q): Likewise.
2980         (fpmac bypass): Add new bypass for fpmac-fpmac case.
2981         Add missing fmul, r2f_cvt and fconst cases.
2983 2017-06-14  Richard Biener  <rguenther@suse.de>
2985         PR middle-end/81088
2986         * fold-const.c (split_tree): Drop TREE_OVERFLOW flag from
2987         literal constants.
2988         (fold_binary_loc): When associating do not treat pre-existing
2989         TREE_OVERFLOW on literal constants as a reason to allow
2990         TREE_OVERFLOW on associated literal constants.
2992 2017-06-14  Eric Botcazou  <ebotcazou@adacore.com>
2994         * config/sparc/sparc.h (MASK_ISA): Add MASK_LEON and MASK_LEON3.
2995         (MASK_FEATURES): New macro.
2996         * config/sparc/sparc.c (sparc_option_override): Remove the special
2997         handling of -mfpu and generalize it to all MASK_FEATURES switches.
2999 2017-06-14  Eric Botcazou  <ebotcazou@adacore.com>
3001         * simplify-rtx.c (simplify_binary_operation_1) <UDIV>: Do not simplify
3002         a division of 0 if non-call exceptions are enabled.
3004 2017-06-14  Andrew Pinski  <apinski@cavium.com>
3005             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
3007         PR target/71663
3008         * config/aarch64/aarch64.c (aarch64_expand_vector_init):
3009         Improve vector initialization code gen for only variable case.
3011 2017-06-14  Eric Botcazou  <ebotcazou@adacore.com>
3013         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
3015 2017-06-14  Richard Biener  <rguenther@suse.de>
3017         PR tree-optimization/81083
3018         * tree-ssa-sccvn.c (vn_reference_lookup_3): Do not use abnormals
3019         as values.
3021 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
3023         * config/rs6000/rs6000.c: Update all comments that mentioned SPE.
3024         (rs6000_expand_builtin): Remove RS6000_BTC_EVSEL.
3025         * config/rs6000/rs6000.h (RS6000_BTC_EVSEL): Delete.
3026         * config/rs6000/vxworks.h (VXCPU_FOR_8548): Delete.  Adjust former use.
3027         * config/rs6000/vxworksae.h (VXCPU_FOR_8548): Delete.
3028         * config/rs6000/vxworksmils.h (VXCPU_FOR_8548): Delete.
3030 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
3032         * config/rs6000/rs6000-opts.h (enum rs6000_vector): Delete VECTOR_SPE.
3033         * config/rs6000/rs6000.c (rs6000_debug_vector_unit): Delete VECTOR_SPE.
3035 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
3037         * config/rs6000/rs6000.h (FIXED_SCRATCH): Delete.
3039 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
3041         * config/rs6000/t-rtems: Don't handle SPE.
3043 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
3045         * config/rs6000/t-linux: Don't handle SPE.
3047 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
3049         * config/rs6000/eabispe.h: Delete file.
3051 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
3053         * config/rs6000/t-spe: Delete file.
3055 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
3057         * config/rs6000/rs6000.c (SPE_CONST_OFFSET_OK): Delete.
3058         (rs6000_legitimate_offset_address_p): Return false for anything in
3059         V2SImode or V2SFmode.
3061 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
3063         * config/rs6000/rs6000-modes.def: Remove all 8-byte vector modes
3064         except V2SF and V2SI.  Rearrange the vector modes, and add comments.
3065         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Remove V8QImode
3066         and V4HImode.
3067         (reg_offset_addressing_ok_p): Remove V4HImode and V1DImode.
3068         (rs6000_legitimate_offset_address_p): Ditto.
3069         (rs6000_emit_move): Ditto.
3070         (rs6000_init_builtins): Remove V4HI_type_node.
3072 2017-06-13  Martin Liska  <mliska@suse.cz>
3074         PR sanitize/78204
3075         * asan.c (asan_sanitize_stack_p): Use sanitize_flags_p.
3076         (gate_asan): Likewise.
3077         * asan.h (asan_no_sanitize_address_p): Remove the function.
3078         (sanitize_flags_p): New function.
3079         * builtins.def: Fix coding style.
3080         * common.opt: Use renamed enum value.
3081         * convert.c (convert_to_integer_1): Use sanitize_flags_p.
3082         * doc/extend.texi: Document no_sanitize attribute.
3083         * flag-types.h (enum sanitize_code): Rename SANITIZE_NONDEFAULT
3084         to SANITIZE_UNDEFINED_NONDEFAULT.
3085         * gcc.c (sanitize_spec_function): Use the renamed enum value.
3086         * gimple-fold.c (optimize_atomic_compare_exchange_p):
3087         Use sanitize_flags_p.
3088         * gimplify.c (gimplify_function_tree): Likewise.
3089         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Likewise.
3090         * opts.c (parse_no_sanitize_attribute): New function.
3091         (common_handle_option): Use renamed enum value.
3092         * opts.h (parse_no_sanitize_attribute): Declare.
3093         * tree.c (sanitize_flags_p): New function.
3094         * tree.h: Declared here.
3095         * tsan.c: Use sanitize_flags_p.
3096         * ubsan.c (ubsan_expand_null_ifn): Likewise.
3097         (instrument_mem_ref): Likewise.
3098         (instrument_bool_enum_load): Likewise.
3099         (do_ubsan_in_current_function): Remove the function.
3100         (pass_ubsan::execute): Use sanitize_flags_p.
3101         * ubsan.h: Remove do_ubsan_in_current_function
3102         * tree-cfg.c (print_no_sanitize_attr_value): New function.
3103         (dump_function_to_file): Use it here.
3105 2017-06-13  Martin Jambor  <mjambor@suse.cz>
3107         PR tree-optimization/80803
3108         PR tree-optimization/81063
3109         * tree-sra.c (subtree_mark_written_and_enqueue): Move up in the file.
3110         (propagate_subaccesses_across_link): Enqueue subtree whenever
3111         necessary instead of relying on the caller.
3113 2017-06-13  Martin Jambor  <mjambor@suse.cz>
3115         * tree-sra.c (add_access_to_work_queue): Only enqueue accesses
3116         that have a first_link.
3117         (sort_and_splice_var_accesses): Do not check first_link before
3118         enquing.
3119         (subtree_mark_written_and_enqueue): Likewise.
3120         (propagate_all_subaccesses): Likewise and do not stop at first
3121         parent with a first_link.
3123 2017-06-13  Martin Jambor  <mjambor@suse.cz>
3125         * tree-sra.c (dump_access_tree_1): Fix accidental dumping to stderr
3126         instead of f.
3128 2017-06-13  Yury Gribov  <tetra2005@gmail.com>
3130         * match.pd: New pattern.
3132 2017-06-13  Yury Gribov  <tetra2005@gmail.com>
3134         * tree-vrp.c (is_masked_range_test): New function.
3135         (register_edge_assert_for): Determine ranges for
3136         some bit tests.
3138 2017-06-13  Yury Gribov  <tetra2005@gmail.com>
3140         PR tree-optimization/67328
3141         * fold-const.c (maskable_range_p): New function.
3142         (build_range_check): Generate bittests if possible.
3144 2017-06-13  Martin Liska  <mliska@suse.cz>
3146         * gimple-pretty-print.c (dump_probability): Add new argument.
3147         (dump_edge_probability): Dump both probability and count.
3148         (dump_gimple_label): Likewise.
3149         (dump_gimple_bb_header): Likewise.
3151 2017-06-13  Georg-Johann Lay  <avr@gjlay.de>
3153         PR target/81072
3154         * config/avr/avr-devices.c: Fix indentation.
3155         * config/avr/gen-avr-mmcu-specs.c: Dito.
3157 2017-06-13  Richard Biener  <rguenther@suse.de>
3159         * tree-vect-loop.c (vect_model_reduction_cost): Do not fail,
3160         instead get vector type from stmt_info.
3161         (vectorizable_reduction): Adjust.  Remove dead code.
3163 2017-06-13  Richard Biener  <rguenther@suse.de>
3165         PR middle-end/81065
3166         * fold-const.c (extract_muldiv_1): Remove bogus distribution
3167         case of C * (x * C2 + C3).
3168         (fold_addr_of_array_ref_difference): Properly fold index difference.
3170 2017-06-12  David S. Miller  <davem@davemloft.net>
3172         PR target/80968
3173         * config/sparc/sparc.md (return expander): Emit frame blockage if
3174         function uses alloca.
3176 2017-06-12  Richard Sandiford  <richard.sandiford@linaro.org>
3178         * combine.c (make_field_assignment): Check len rather than the mode
3179         precision when calling force_to_mode.
3181 2017-06-12  Georg-Johann Lay  <avr@gjlay.de>
3183         Support multilibs and devices that see flash in RAM address range.
3185         PR target/81072
3186         * config/avr/avr-arch.h (avr_arch_id) <ARCH_AVRXMEGA3>: New enum.
3187         (avr_mcu_t) <flash_pm_offset>: New field.
3188         (avr_device_specific_features) <AVR_ISA_RCALL>: New enum.
3189         * config/avr/avr.h (AVR_SHORT_CALLS): New define.
3190         (AVR_HAVE_JMP_CALL): Don't set if AVR_SHORT_CALLS.
3191         (AVR_TINY_PM_OFFSET): Remove macro.
3192         * config/avr/avr.opt (-mshort-calls): New option.
3193         * config/avr/gen-avr-mmcu-specs.c (print_mcu)
3194         [*self_spec]: Add / remove -mshort-calls depending on AVR_ISA_RCALL.
3195         * config/avr/avr-c.c (avr_cpu_cpp_builtins)
3196         <__AVR_SHORT_CALLS__>: Built-in define if AVR_SHORT_CALLS.
3197         <__AVR_HAVE_JMP_CALL__>: Use AVR_HAVE_JMP_CALL as condition
3198         instead of avr_arch->have_jmp_call.
3199         <__AVR_PM_BASE_ADDRESS__>: Built-in define if avr_arch->flash_pm_offset.
3200         [AVR_TINY] <__AVR_TINY_PM_BASE_ADDRESS__>: Use
3201         avr_arch->flash_pm_offset to define.
3202         * config/avr/avr-devices.c (avr_arch_types): Add initializers for
3203         new field flash_pm_offset.  Add entry for avrxmega3.
3204         (avr_texinfo): Add entry for avrxmega3.
3205         * config/avr/avr-mcus.def: Add entries for: avrxmega3,
3206         attiny212, attiny214,
3207         attiny412, attiny414, attiny416, attiny417,
3208         attiny814, attiny816, attiny817,
3209         attiny1614, attiny1616, attiny1617,
3210         attiny3214, attiny3216, attiny3217.
3211         * config/avr/avr.c (avr_assemble_integer)[AVR_TINY]: Use
3212         avr_arch->flash_pm_offset instead of AVR_TINY_PM_OFFSET.
3213         (avr_print_operand_address) [AVR_TINY]: Same.
3214         (avr_asm_init_sections) <readonly_data_section>: Only patch
3215         callback if avr_arch->flash_pm_offset = 0.
3216         (avr_asm_named_section) <avr_need_copy_data_p>: Skip setting it
3217         for rodata if avr_arch->flash_pm_offset != 0.
3218         (avr_encode_section_info) [AVR_TINY]: Adjust comment.
3219         * config/avr/genmultilib.awk (dir_rcall, opt_rcall): New vars.
3220         (opts) [AVR_ISA_RCALL]: Append opt_rcall.
3221         (m_options): Append opt_rcall.
3222         (m_dirnames): Append dir_rcall.
3223         * config/avr/t-multilib: Regenerate.
3225         * configure.ac [target=avr]: Check whether avrxmega3 default
3226         linker description file works as needed.
3227         * configure: Regenerate.
3228         * doc/avr-mmcu.texi: Regenerate.
3229         * doc/invoke.texi (AVR Options) <-mshort-calls>: Document it.
3230         <__AVR_ARCH__>: Document avrxmega3 and 103.
3231         <__AVR_HAVE_JMP_CALL__>: Adjust documentation.
3232         <__AVR_SHORT_CALLS__>: Document it.
3233         <__AVR_PM_BASE_ADDRESS__>: Document it.
3234         * doc/extend.texi (AVR Options) <-mshort-calls>: Document it.
3235         (AVR Variable Attributes) <progmem>: Document this is
3236         not needed for avrxmega3.
3237         (AVR Named Address Spaces) <__flash>: Dito.
3239 2017-06-12  Jan Hubicka  <hubicka@ucw.cz>
3241         * cgraph.c (cgraph_node::dump): Complain about profile insanities.
3243 2017-06-12  Doug Rupp  <rupp@adacore.com>
3245         * config.gcc (*-*-vxworks*): Set use_gcc_stdint to "provide".
3246         Append vxworks-stdint.h to the tm_file list.
3247         * config/vxworks-stdint.h: New file.
3249 2017-06-12  Martin Liska  <mliska@suse.cz>
3251         PR tree-optimization/81041
3252         * tree-profile.c (gimple_gen_ic_func_profiler):
3253         Create an extra BB in profile-generate
3254         (gimple_gen_time_profiler): Likewise.
3256 2017-06-12  Jakub Jelinek  <jakub@redhat.com>
3258         PR tree-optimization/81003
3259         * tree-ssa-reassoc.c (force_into_ssa_name): New function.
3260         (update_range_test): Use it instead of force_gimple_operand_gsi.
3262 2017-06-12  Richard Biener  <rguenther@suse.de>
3264         PR tree-optimization/81053
3265         * tree-vect-loop.c (vect_is_simple_reduction): Handle PHI
3266         with backedge value not defined in loop.  Simplify def stmt
3267         compute.
3269 2017-06-11  Tom de Vries  <tom@codesourcery.com>
3271         PR target/79939
3272         * config/nvptx/nvptx.c (nvptx_cannot_force_const_mem): New function.
3273         Return true.
3274         (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
3275         nvptx_cannot_force_const_mem.
3277 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
3279         * opts.c (finish_options): Move test for flag_split_stack after
3280         it has been initialized.
3282 2017-06-11  Jason Merrill  <jason@redhat.com>
3284         * tree.h (id_equal): New.
3285         * dwarf2out.c, hsa-gen.c, ipa-devirt.c, omp-expand.c,
3286         omp-simd-clone.c, read-rtl-function.c, tree-chkp.c, tree.c: Use it
3287         instead of strcmp of IDENTIFIER_POINTER.
3289 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
3291         * ipa-inline-transform.c: Include function.h, cfg.h and basic-block.h
3292         (mark_all_inlined_calls_cdtor): Fix formating.
3293         (inline_transform): Rescale profile before inlining.
3295 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
3297         * cgraph.h (cgraph_edge::clone): Update prototype.
3298         * cgraphclones.c (cgraph_edge::clone): Update profile scaling.
3299         (cgraph_node::create_clone): Update.
3300         (cgraph_node::create_version_clone): Update.
3301         * tree-inline.c (copy_bb): Update.
3302         (expand_call_inline): Update.
3304 2017-06-10  Segher Boessenkool  <segher@kernel.crashing.org>
3306         * config/rs6000/rs6000.c (emit_vrsave_prologue): New function,
3307         factored out from ...
3308         (rs6000_emit_prologue): ... here.
3310 2017-06-10  Segher Boessenkool  <segher@kernel.crashing.org>
3312         * config/rs6000/rs6000.c (emit_split_stack_prologue): New function,
3313         factored out from ...
3314         (rs6000_emit_prologue): ... here.
3316 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
3318         * predict.c (drop_profile): Also drop individual bb/edge and cgraph
3319         edge counts.
3320         (handle_missing_profiles): Fix computation of tp_first_run.
3321         (counts_to_freqs): Do not touch freqs when count is 0.
3323 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
3325         * cgraphbuild.c (cgraph_edge::rebuild_references): Do not touch
3326         profile.
3328 2017-06-10  Tom de Vries  <tom@codesourcery.com>
3330         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
3331         attributes): Document signal effective target.
3333 2017-06-10  Tom de Vries  <tom@codesourcery.com>
3335         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
3336         Document effective target stack_size.
3338 2017-06-09  David Malcolm  <dmalcolm@redhat.com>
3340         * diagnostic.c (diagnostic_report_diagnostic): Only add fixits
3341         to the edit_context if they can be auto-applied.
3343 2017-06-9  Ian Lance Taylor  <iant@golang.org>
3345         * opts.c (finish_options): If -fsplit-stack, disable implicit
3346         -forder-blocks-and-partition.
3347         * doc/invoke.texi (Optimize Options): Document that when using
3348         -fsplit-stack -forder-blocks-and-partition is not implicitly
3349         enabled.
3351 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
3353         * builtin-attrs.def (ATTR_NORETURN_NOTHROW_LEAF_COLD_LIST,
3354         ATTR_CONST_NORETURN_NOTHROW_LEAF_COLD_LIST,
3355         ATTR_TMPURE_NORETURN_NOTHROW_LEAF_COLD_LIST): New.
3356         * builtins.def (abort, trap, unreachable): Declare cold.
3357         * calls.c (flags_from_decl_or_type): Lookup ECF_COLD.
3358         * tree-core.h (ECF_COLD): New.
3359         * tree.c (set_call_expr_flags): Handle ECF_COLD.
3360         (build_common_builtin_nodes): Mark unreachable and abort as cold.
3362 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
3364         * predict.c (unlikely_executed_stmt_p): Cleanup.
3366 2017-06-09  Richard Biener  <rguenther@suse.de>
3368         * tree-ssa-loop-im.c (execute_sm): Do not force multi-threaded
3369         model if the ref is always written to.
3371 2017-06-09  Tamar Christina  <tamar.christina@arm.com>
3373         * config/aarch64/aarch64.md (lrint<GPF:mode><GPI:mode>2): New.
3375 2017-06-09  Tamar Christina  <tamar.christina@arm.com>
3377         * config/arm/arm.c (arm_rtx_costs_internal): Make sdiv more expensive
3378         than udiv.
3380 2017-06-09  Tom de Vries  <tom@codesourcery.com>
3382         PR target/80855
3383         * config/nvptx/nvptx.md (define_expand "mov<QHSDISDFM>"): Error out with
3384         "target cannot support label values" when encountering LABEL_REF.
3386 2017-06-09  Martin Liska  <mliska@suse.cz>
3388         * tree-profile.c (gimple_gen_ic_profiler): Update comment.
3389         (gimple_gen_ic_func_profiler): Emit direct comparison
3390         of __gcov_indirect_call_callee with NULL.
3391         (gimple_gen_time_profiler): Change probability from
3392         PROB_VERY_UNLIKELY to PROB_UNLIKELY.
3394 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
3396         * profile.c (edge_gcov_counts): Turn to pointer.
3397         (compute_branch_probabilities, compute_branch_probabilities): Update.
3398         (branch_prob): Do not clear edge_gcov_count.
3399         * profile.h (edge_gcov_counts): Turn to pointer.
3400         (edge_gcov_count): Update.
3402 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
3404         * gimple.h (gimple_check_failed): Mark cold.
3406 2017-06-09  Richard Biener  <rguenther@suse.de>
3408         PR tree-optimization/66623
3409         * tree-vect-loop.c (vect_is_simple_reduction): Cleanup,
3410         refactor check_reduction into two parts, properly computing
3411         whether we have to check reduction validity for outer loop
3412         vectorization.
3414 2017-06-09  Richard Biener  <rguenther@suse.de>
3416         PR tree-optimization/79483
3417         * graphite-scop-detection.c (order): New global.
3418         (get_order): Compute bb to order mapping that satisfies code
3419         generation constraints.
3420         (cmp_pbbs): New helper.
3421         (build_scops): Start domwalk at entry block, sort generated
3422         pbbs.
3424 2017-06-09  Richard Biener  <rguenther@suse.de>
3426         PR middle-end/81007
3427         * ipa-polymorphic-call.c
3428         (ipa_polymorphic_call_context::restrict_to_inner_class):
3429         Skip FIELD_DECLs with error_mark_node type.
3430         * passes.def (all_lowering_passes): Run pass_build_cgraph_edges
3431         last again.
3433 2017-06-09  Martin Liska  <mliska@suse.cz>
3435         * predict.c (struct branch_predictor): New struct.
3436         (test_prediction_value_range): New test.
3437         (predict_c_tests): New function.
3438         * selftest-run-tests.c (selftest::run_tests): Run the function.
3439         * selftest.h: Declare new tests.
3441 2017-06-09  Segher Boessenkool  <segher@kernel.crashing.org>
3443         PR target/80966
3444         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Assert that
3445         gen_add3_insn did not fail.
3446         * config/rs6000/rs6000.md (add<mode>3): If asked to add a constant to
3447         r0, construct that number in a temporary reg and add that reg to r0.
3448         If asked to put the result in r0 as well, fail.
3450 2017-06-08  Will Schmidt  <will_schmidt@vnet.ibm.com>
3452         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
3453         for early expansion of vec_eqv.
3455 2017-06-08  Jakub Jelinek  <jakub@redhat.com>
3457         PR middle-end/81005
3458         * ubsan.c (instrument_null): Avoid pointless code temporary.
3459         (pass_ubsan::execute): Instrument aggregate arguments of calls.
3461 2017-06-08  Uros Bizjak  <ubizjak@gmail.com>
3463         PR target/81015
3464         Revert:
3465         2016-12-14  Uros Bizjak  <ubizjak@gmail.com>
3467         PR target/59874
3468         * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
3469         (*clzhi2): Ditto.
3471 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
3473         * predict.c (unlikely_executed_edge_p): Move ahead.
3474         (probably_never_executed_edge_p): Use it.
3476 2017-06-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3478         PR middle-end/79988
3479         * tree-chkp.c (chkp_gimple_call_builtin_p): Remove
3480         gimple_call_builtin_p call.
3482 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
3484         * system.h (fancy_abort): Annotate by ATTRIBUTE_COLD.
3485         * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
3486         rtl_check_failed_type2, rtl_check_failed_code1,
3487         rtl_check_failed_code2, rtl_check_failed_code_mode,
3488         rtl_check_failed_block_symbol, cwi_check_failed_bounds,
3489         rtvec_check_failed_bounds, rtl_check_failed_flag,
3490         _fatal_insn_not_found, _fatal_insn): Likewise.
3491         * tree.h (tree_contains_struct_check_failed,
3492         tree_check_failed, tree_not_check_failed,
3493         tree_class_check_failed, tree_range_check_failed,
3494         tree_not_class_check_failed, tree_int_cst_elt_check_failed,
3495         tree_vec_elt_check_failed, phi_node_elt_check_failed,
3496         tree_operand_check_failed, omp_clause_check_failed,
3497         omp_clause_operand_check_failed, omp_clause_range_check_failed):
3498         Likewise.
3500 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
3502         * cgraph.c (cgraph_edge::maybe_hot_p): Do not check
3503         flag_branch_probabilities.
3504         * ipa-inline.c (edge_badness): Likewise.
3505         * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
3506         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
3507         * predict.c (maybe_hot_frequency_p): Likewise.
3508         (probably_never_executed): Likewise.
3509         * sched-ebb.c (schedule_ebbs): Likewise.
3510         * sched-rgn.c (find_single_block_region): Likewise.
3511         * tracer.c (tail_duplicate): Likewise.
3513 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
3515         * opts.c (finish_options): x_flag_reorder_blocks_and_partition no
3516         longer requires x_flag_profile_use.
3518 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
3520         * cfgrtl.c (cfg_layout_initialize): Check crtl->has_bb_partition
3521         instead of flag_reorder_blocks_and_partition.
3522         * dbxout.c (dbxout_function_end): Likewise.
3523         * dwarf2out.c (gen_subprogram_die): Likewise.
3524         * haifa-sched.c (sched_create_recovery_edges): Likewise.
3525         * hw-doloop.c (reorg_loops): Likewise.
3526         * varasm.c (assemble_start_function,
3527         assemble_end_function): Likewise.
3528         (decide_function_section): Do not check for
3529         flag_reorder_blocks_and_partition.
3531 2017-06-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3533         * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
3534         New function.
3535         (chkp_get_hard_register_fake_addr_expr): Ditto.
3536         (chkp_build_addr_expr): Add check for hard reg case.
3537         (chkp_parse_array_and_component_ref): Ditto.
3538         (chkp_find_bounds_1): Ditto.
3539         (chkp_process_stmt): Don't generate bounds store for
3540         hard reg case.
3542 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
3544         * predict.c (maybe_hot_bb_p): Do not check profile status.
3545         (maybe_hot_edge_p): Likewise.
3546         (probably_never_executed): Check for zero counts even if profile
3547         is not read.
3548         (unlikely_executed_edge_p): New function.
3549         (unlikely_executed_stmt_p): New function.
3550         (unlikely_executed_bb_p): New function.
3551         (set_even_probabilities): Use unlikely predicates.
3552         (combine_predictions_for_bb): Likewise.
3553         (predict_paths_for_bb): Likewise.
3554         (predict_paths_leading_to_edge): Likewise.
3555         (determine_unlikely_bbs): New function.
3556         (estimate_bb_frequencies): Use it.
3557         (compute_function_frequency): Use zero counts even if profile is
3558         not read.
3559         * profile-count.h: Fix typo.
3561 2017-08-08  Julia Koval  <julia.koval@intel.com>
3563         * config/i386/avx512bwintrin.h (_mm512_mask_cvtepi16_storeu_epi8,
3564         _mm512_mask_cvtsepi16_storeu_epi8,
3565         _mm512_mask_cvtusepi16_storeu_epi8): New intrinsics.
3566         * config/i386/avx512vlbwintrin.h (_mm256_mask_cvtepi16_storeu_epi8,
3567         _mm_mask_cvtsepi16_storeu_epi8, _mm256_mask_cvtsepi16_storeu_epi8,
3568         _mm_mask_cvtusepi16_storeu_epi8, _mm256_mask_cvtusepi16_storeu_epi8,
3569         _mm_mask_cvtepi16_storeu_epi8): New intrinsics.
3570         * config/i386/i386-builtin-types.def (PV8Q, V8QI): New pointer type.
3571         (VOID_FTYPE_PV32QI_V32HI_USI, VOID_FTYPE_PV8QI_V8HI_UQI,
3572         VOID_FTYPE_PV16QI_V16HI_UHI): New function types.
3573         * config/i386/i386-builtin.def (__builtin_ia32_pmovwb128mem_mask,
3574         __builtin_ia32_pmovwb256mem_mask, __builtin_ia32_pmovswb128mem_mask,
3575         __builtin_ia32_pmovswb256mem_mask, __builtin_ia32_pmovuswb128mem_mask,
3576         __builtin_ia32_pmovuswb256mem_mask,
3577         __builtin_ia32_pmovuswb512mem_mask, __builtin_ia32_pmovswb512mem_mask)
3578         __builtin_ia32_pmovwb512mem_mask): New builtins.
3580 2017-08-08  Julia Koval  <julia.koval@intel.com>
3582         PR target/73350,80862
3583         * config/i386/subst.md (round): Fix round pattern.
3584         * config/i386/i386.c (ix86_erase_embedded_rounding):
3585         Fix erasing rounding for the fixed pattern.
3587 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
3589         * cfgbuild.c (find_many_sub_basic_blocks): Fix thinko.
3591 2017-06-08  Martin Liska  <mliska@suse.cz>
3593         PR gcov-profile/80911
3594         * gcov.c (block_info::block_info): New constructor.
3596 2017-06-07  Carl Love  <cel@us.ibm.com>
3598         * config/rs6000/rs6000-c: The return type of the following
3599         built-in functions was implemented as int not long long.  Fix sign
3600         of return value for the unsigned version of vec_mulo and vec_mule.
3601         vector unsigned long long vec_bperm (vector unsigned long long,
3602                                              vector unsigned char)
3603         vector signed long long vec_mule (vector signed int,
3604                                           vector signed int)
3605         vector unsigned long long vec_mule (vector unsigned int,
3606                                             vector unsigned int)
3607         vector signed long long vec_mulo (vector signed int,
3608                                           vector signed int)
3609         vector unsigned long long vec_mulo (vector unsigned int,
3610                                             vector unsigned int)
3611         * doc/extend.texi: Fix the documentation for the built-in
3612         functions.
3614 2017-06-07  Carl Love  <cel@us.ibm.com>
3616         PR target/80982
3617         * config/rs6000/altivec.md (double<mode>2): Fix the implementation of
3618         for BE.
3620 2017-06-07  Carl Love  <cel@us.ibm.com>
3622         * config/rs6000/altivec.md: Fix argument swizzle in vec_doublel
3623         support, Generate       doublehv for signed int/float for BE case only.
3625 2017-06-07  Alexander Monakov  <amonakov@ispras.ru>
3627         * doc/invoke.texi (mcx16): Rewrite.
3629 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
3631         * config/rs6000/predicates.md (rs6000_nonimmediate_operand): Delete.
3632         * config/rs6000/rs6000.md (*movsi_internal1, movsi_from_sf,
3633         *mov<mode>_softfloat, and an anonymous splitter): Use
3634         nonimmediate_operand instead of rs6000_nonimmediate_operand.
3636 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
3638         * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE_ACC and
3639         SPEFSCR registers.
3640         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
3641         (enum rs6000_reg_type): Delete SPE_ACC_TYPE and SPEFSCR_REG_TYPE.
3642         (rs6000_debug_reg_global): Adjust.
3643         (rs6000_init_hard_regno_mode_ok): Adjust.
3644         (rs6000_dbx_register_number): Adjust.
3645         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change to 115.
3646         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
3647         Remove SPE_ACC and SPEFSCR.
3648         (REG_ALLOC_ORDER): Ditto.
3649         (FRAME_POINTER_REGNUM): Change to 111.
3650         (enum reg_class): Remove the SPE_ACC and SPEFSCR registers.
3651         (REG_CLASS_NAMES): Ditto.
3652         (REG_CLASS_CONTENTS): Delete the SPE_ACC and SPEFSCR registers.
3653         (REGISTER_NAMES): Ditto.
3654         (ADDITIONAL_REG_NAMES): Ditto.
3655         (rs6000_reg_names): Ditto.
3656         * config/rs6000/rs6000.md: Renumber some register number
3657         define_constants.
3659 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
3661         * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE high
3662         registers.
3663         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
3664         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change from 149
3665         to 117.
3666         (DWARF_REG_TO_UNWIND_COLUMN): Do not define.
3667         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
3668         Delete the SPE high registers.
3669         (REG_ALLOC_ORDER): Ditto.
3670         (enum reg_class): Remove SPE_HIGH_REGS.
3671         (REG_CLASS_NAMES): Ditto.
3672         (REG_CLASS_CONTENTS): Delete the SPE high registers.
3673         (REGISTER_NAMES): Ditto.
3674         (rs6000_reg_names): Ditto.
3675         * doc/tm.texi.in: Remove SPE as example.
3676         * doc/tm.texi: Regenerate.
3678 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
3680         * config/rs6000/8540.md (ppc8540_brinc): Delete.
3681         * config/rs6000/e500mc.md (e500mc_brinc): Delete.
3682         * config/rs6000/e500mc64.md (e500mc64_brinc): Delete.
3683         * config/rs6000/rs6000.md (type): Remove "brinc".
3685 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
3687         * config.gcc (powerpc*-*-*): Don't add spe.h to extra_headers.
3688         (powerpc*-linux*spe*): Use ${cpu_type} instead of rs6000.
3689         * config/rs6000/linuxspe.h: Delete file.
3690         * config/rs6000/rs6000.md: Don't include spe.md.
3691         * config/rs6000/spe.h: Delete file.
3692         * config/rs6000/spe.md: Delete file.
3693         * config/rs6000/t-rs6000: Remove spe.md.
3695 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
3697         * config/rs6000/predicates.md (reg_or_mem_operand): Reformat.
3698         (reg_or_none500mem_operand): Delete.
3699         * config/rs6000/rs6000.md (extendsfdf2): Use reg_or_mem_operand
3700         instead of reg_or_none500mem_operand.
3702 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
3704         * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
3705         handling of SPE flags.
3706         * config/rs6000/rs6000.opt (-mspe, -mspe=no, -mspe=yes): Delete.
3708 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
3710         * config/rs6000/rs6000-common.c (rs6000_handle_option): Remove
3711         SPE ABI handling.
3712         * config/rs6000/paired.md (paired_negv2sf2): Rename to negv2sf2.
3713         (paired_absv2sf2, paired_addv2sf3, paired_subv2sf3, paired_mulv2sf3,
3714         paired_divv2sf3): Similar.
3715         * config/rs6000/predicates.md: Replace TARGET_SPE, TARGET_SPE_ABI,
3716         SPE_VECTOR_MODE and SPE_HIGH_REGNO_P by 0; simplify.
3717         * config/rs6000/rs6000-builtin.def: Delete RS6000_BUILTIN_E and
3718         RS6000_BUILTIN_S.
3719         Delete BU_SPE_1, BU_SPE_2, BU_SPE_3, BU_SPE_E, BU_SPE_P, and BU_SPE_X.
3720         Rename the paired_* instruction patterns.
3721         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Do not
3722         define __SPE__.
3723         * config/rs6000/rs6000-protos.h (invalid_e500_subreg): Delete.
3724         * config/rs6000/rs6000.c: Delete RS6000_BUILTIN_E and RS6000_BUILTIN_S.
3725         (struct rs6000_stack): Delete fields spe_gp_save_offset, spe_gp_size,
3726         spe_padding_size, and spe_64bit_regs_used.  Replace TARGET_SPE and
3727         TARGET_SPE_ABI with 0, simplify.  Replace SPE_VECTOR_MODE with
3728         PAIRED_VECTOR_MODE.
3729         (struct machine_function): Delete field spe_insn_chain_scanned_p.
3730         (spe_func_has_64bit_regs_p): Delete.
3731         (spe_expand_predicate_builtin): Delete.
3732         (spe_expand_evsel_builtin): Delete.
3733         (TARGET_DWARF_REGISTER_SPAN): Do not define.
3734         (TARGET_MEMBER_TYPE_FORCES_BLK): Do not define.
3735         (invalid_e500_subreg): Delete.
3736         (rs6000_legitimize_address): Always force_reg op2 as well, for
3737         paired single memory accesses.
3738         (rs6000_member_type_forces_blk): Delete.
3739         (rs6000_spe_function_arg): Delete.
3740         (rs6000_expand_unop_builtin): Delete SPE handling.
3741         (rs6000_expand_binop_builtin): Ditto.
3742         (spe_expand_stv_builtin): Delete.
3743         (bdesc_2arg_spe): Delete.
3744         (spe_expand_builtin): Delete.
3745         (spe_expand_predicate_builtin): Delete.
3746         (spe_expand_evsel_builtin): Delete.
3747         (rs6000_invalid_builtin): Remove RS6000_BTM_SPE handling.
3748         (spe_init_builtins): Delete.
3749         (spe_func_has_64bit_regs_p): Delete.
3750         (savres_routine_name): Delete "info" parameter.  Adjust callers.
3751         (rs6000_emit_stack_reset): Ditto.
3752         (rs6000_dwarf_register_span): Delete.
3753         * config/rs6000/rs6000.h (TARGET_SPE_ABI, TARGET_SPE,
3754         UNITS_PER_SPE_WORD, SPE_HIGH_REGNO_P, SPE_SIMD_REGNO_P,
3755         SPE_VECTOR_MODE, RS6000_BTM_SPE, RS6000_BUILTIN_E, RS6000_BUILTIN_S):
3756         Delete.
3757         * config/rs6000/rs6000.md (FIRST_SPE_HIGH_REGNO, LAST_SPE_HIGH_REGNO):
3758         Delete.
3759         * config/rs6000/rs6000.opt (-mabi=spe, -mabi=no-spe): Delete.
3760         * config/rs6000/spe.md: Delete every pattern that uses TARGET_SPE.
3761         * config/rs6000/vector.md (absv2sf2, negv2sf2, addv2sf3, subv2sf3,
3762         mulv2sf3, divv2sf3): Delete expanders.
3764 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
3766         config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Delete.
3768 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
3770         * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit): Delete.
3771         * config/rs6000/rs6000.c: Ditto.
3773 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
3775         * config/rs6000/predicated.md (rs6000_cbranch_operator): Delete.
3776         * config/rs6000/rs6000.md: Replace rs6000_cbranch_operator by
3777         comparison_operator.
3779 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
3781         * config/rs6000/rs6000.c: Remove everything related to -mfloat-gprs.
3782         * config/rs6000/rs6000.opt: Ditto.
3783         * config/rs6000/t-rtems: Ditto.
3785 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
3787         * config/rs6000/predicates.md: Replace TARGET_E500_DOUBLE and
3788         TARGET_E500_SINGLE by 0, simplify.
3789         * config/rs6000/rs6000.c: Ditto.
3790         (rs6000_option_override_internal): Delete CHECK_E500_OPTIONS.
3791         (spe_build_register_parallel): Delete.
3792         * config/rs6000/rs6000.h: Delete TARGET_E500_SINGLE,
3793         TARGET_E500_DOUBLE, and CHECK_E500_OPTIONS.
3794         * config/rs6000/rs6000.md: Replace TARGET_E500_DOUBLE,
3795         TARGET_E500_SINGLE, and <E500_CONVERT> by 0, simplify.
3796         (E500_CONVERT): Delete.
3797         * config/rs6000/spe.md: Remove many patterns and all define_constants.
3799 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
3801         * config/rs6000/darwin.md: Replace TARGET_FPRS by 1 and simplify.
3802         * config/rs6000/dfp.md: Ditto.
3803         (negdd2, *negdd2_fpr): Merge.
3804         (absdd2, *absdd2_fpr): Merge.
3805         (negtd2, *negtd2_fpr): Merge.
3806         (abstd2, *abstd2_fpr): Merge.
3807         * config/rs6000/e500.h: Delete file.
3808         * config/rs6000/predicates.md (rs6000_cbranch_operator): Replace
3809         TARGET_FPRS by 1 and simplify.
3810         * config/rs6000/rs6000-c.c: Ditto.
3811         * config/rs6000/rs6000.c: Ditto.  Also replace TARGET_SF_SPE and
3812         TARGET_DF_SPE by 0.
3813         * config/rs6000/rs6000.h: Ditto.  Delete TARGET_SF_SPE and
3814         TARGET_DF_SPE.
3815         * config/rs6000/rs6000.md: Ditto.
3816         (floatdidf2, *floatdidf2_fpr): Merge.
3817         (move_from_CR_gt_bit): Delete.
3818         * config/rs6000/spe.md: Replace TARGET_FPRS by 1 and simplify.
3819         (E500_CR_IOR_COMPARE): Delete.
3820         (All patterns that require !TARGET_FPRS): Delete.
3821         * config/rs6000/vsx.md: Replace TARGET_FPRS by 1 and simplify.
3823 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
3825         * passes.def (pass_iv_canon): Move before pass_loop_distribution.
3827 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
3829         * graphds.c (add_edge): Intitialize edge's attached data.
3830         (foll_in_subgraph, dfs_fst_edge, dfs_next_edge): New function
3831         pointer parameter.  Call pointed function on each edge during
3832         graph traversing.  Skip traversing the edge when the function
3833         returns true.
3834         (graphds_dfs, graphds_scc): Ditto.
3835         (for_each_edge): New parameter.  Pass the new parameter to callback
3836         function.
3837         * graphds.h (skip_edge_callback): New function pointer type.
3838         (graphds_dfs, graphds_scc): New function pointer parameter.
3839         (graphds_edge_callback, for_each_edge): New parameter.
3841 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
3843         * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Factor
3844         out code checking if runtime alias check is possible to below ...
3845         Call the new function.
3846         * tree-data-ref.c (runtime_alias_check_p): ... to new function.
3847         * tree-data-ref.h (runtime_alias_check_p): New decalaration.
3849 2017-06-07  Marek Polacek  <polacek@redhat.com>
3851         PR sanitizer/80932
3852         * fold-const.c (extract_muldiv_1) <case MINUS_EXPR>: Add
3853         TYPE_OVERFLOW_WRAPS check.
3855 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
3857         * tree-vect-loop-manip.c (vect_do_peeling): Don't skip vector loop
3858         if versioning is required.
3859         * tree-vect-loop.c (vect_analyze_loop_2): Merge niter check for loop
3860         peeling with the check for versioning.
3862 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
3864         * tree-vectorizer.h (vect_build_loop_niters): New parameter.
3865         * tree-vect-loop-manip.c (vect_build_loop_niters): New parameter.
3866         Set true to new parameter if new ssa variable is defined.
3867         (vect_gen_vector_loop_niters): Refactor.  Set range information
3868         for the new vector loop bound variable.
3869         (vect_do_peeling): Ditto.
3871 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
3873         * tree-affine.c (ssa.h): Include header file.
3874         (tree_to_aff_combination): Handle (T1)(X - CST) when inner type
3875         has wrapping overflow behavior.
3877 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
3879         * tree-affine.c (tree_to_aff_combination): Handle (T1)(X + X).
3881 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
3883         (aff_combination_expand): Move (T1)(X *+- CST) simplification to ...
3884         (tree_to_aff_combination): ... here.
3886 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
3888         * tree-ssa-loop-ivopts.c (ivopts_estimate_reg_pressure): New
3889         reg_pressure model function.
3890         (ivopts_global_cost_for_size): Delete.
3891         (determine_set_costs, iv_ca_recount_cost): Call new model function
3892         ivopts_estimate_reg_pressure.
3894 2017-06-07  Tamar Christina  <tamar.christina@arm.com>
3896         * config/aarch64/aarch64.c (aarch64_rtx_costs): Make sdiv more
3897         expensive than udiv.  Remove floating point cases from mod.
3899 2017-06-07  Tamar Christina  <tamar.christina@arm.com>
3901         * config/arm/aarch-cost-tables.h (cortexa53_extra_cost):
3902         Increase idiv cost.
3904 2017-06-07  Tamar Christina  <tamar.christina@arm.com>
3906         * config/aarch64/aarch64.md
3907         (copysignsf3): Fix mask generation.
3909 2017-06-07  Jakub Jelinek  <jakub@redhat.com>
3911         * dumpfile.h (enum tree_dump_index): Rename TDI_generic to
3912         TDI_gimple.
3913         (class dump_manager): Add register_dumps method.
3914         * dumpfile.c: Include langhooks.h.
3915         (dump_files): Use 0 instead of 3/4/5 for TDI_{original,gimple,nested}.
3916         (FIRST_AUTO_NUMBERED_DUMP): Decrease to 1.
3917         (FIRST_ME_AUTO_NUMBERED_DUMP): Define.
3918         (dump_manager::dump_register): Start with 512 entries instead of 32.
3919         (dump_manager::register_dumps): New method.
3920         * toplev.c (general_init): Instead of invoking register_dumps
3921         langhook, invoke register_dumps method on the dump manager.
3922         * gimplify.c (gimplify_function_tree): Use TDI_gimple instead of
3923         TDI_generic.
3925 2017-06-07  Richard Sandiford  <richard.sandiford@linaro.org>
3927         * doc/md.texi: Clarify the restrictions on a define_insn condition.
3928         Say that # requires an associated define_split to exist, and that
3929         the define_split must be suitable for use after register allocation.
3931 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
3933         * cfgbuild.c (find_bb_boundaries): Initialize profile of split blocks.
3934         (compute_outgoing_frequencies): Also initialize zero counts.
3935         (find_many_sub_basic_blocks): Do not produce uninitialized profile
3936         around loops; preserve more of profile when nothing changes.
3938 2017-06-06  Jim Wilson  <jim.wilson@linaro.org>
3940         * config/aarch64/aarch64-cost-tables.h (qdf24xx_extra_costs): Move to
3941         here.
3942         * config/arm/aarch-cost-tables.h (qdf24xx_extra_costs): From here.
3943         * config/arm/arm-cpu-cdata.h: Regenerate.
3944         * config/arm/arm-cpu-data.h, config/arm/arm-cpu.h: Likewise.
3945         * config/arm/arm-tables.opt, config/arm/arm-tune.md: Likewise.
3946         * config/arm/arm-cpus.in: Delete falkor and qdf24xx entries.
3947         * config/arm/arm.c (arm_qdf24xx_tune): Delete.
3948         * config/arm/bpabi.h (BE8_LINK_SPEC): Delete falkor and qdf24xx
3949         support.
3950         * config/arm/t-aprofile (MULTILIB_MATCHES): Delete falkor and qdf24xx
3951         support.
3952         * config/arm/t-rmprofile: Likewise.
3953         * doc/invoke.texi (ARM Options): Drop falkor and qdf24xx support.
3955 2017-06-06  David S. Miller  <davem@davemloft.net>
3957         PR target/80968
3958         * config/sparc/sparc.c (sparc_expand_prologue): Emit frame
3959         blockage if function uses alloca.
3961 2017-06-06  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
3963         * tree-ssa-loop-prefetch.c (struct mem_ref_group, struct mem_ref):
3964         New "uid" fields to hold pretty-print IDs of group and ref.
3965         Memory references are now identified as <group_id>:<ref_id>
3966         instead of using [random] addresses.
3967         (dump_mem_details): Simplify, no functional change.
3968         (dump_mem_ref): Simplify and make output more concise.
3969         Replace couple of fprintf's throughout code with calls to dump_mem_ref.
3970         (find_or_create_group): Initialize group uid.
3971         (record_ref): Initialize ref uid.  Improve debug output.
3972         (prune_group_by_reuse, should_issue_prefetch_p,)
3973         (should_issue_prefetch_p, schedule_prefetches, issue_prefetch_ref,)
3974         (mark_nontemporal_store, determine_loop_nest_reuse):
3975         Improve debug output.
3977 2017-06-06  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
3979         * dbgcnt.def (prefetch): New debug counter.
3980         * tree-ssa-loop-prefetch.c (dbgcnt.h): New include.
3981         (schedule_prefetches): Stop issueing prefetches if debug counter
3982         tripped.
3984 2017-06-06  Tom de Vries  <tom@codesourcery.com>
3986         * doc/sourcebuild.texi (Testsuites, C Language Testsuites,
3987         gcc.c-torture/compile): Remove mention of NO_LABEL_VALUES in fixme.
3989 2017-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3991         * config/aarch64/atomics.md (atomic_compare_and_swap<mode> expander):
3992         Use aarch64_reg_or_zero predicate for operand 4.
3993         (aarch64_compare_and_swap<mode> define_insn_and_split):
3994         Use aarch64_reg_or_zero predicate for operand 3.  Add 'Z' constraint.
3995         (aarch64_store_exclusive<mode>): Likewise for operand 2.
3997 2017-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3999         * config/arm/arm.c (arm_compute_save_reg_mask): Rename into ...
4000         (arm_compute_save_core_reg_mask): This.
4001         (thumb1_compute_save_reg_mask): Rename into ...
4002         (thumb1_compute_save_core_reg_mask): This.
4003         (arm_compute_save_reg0_reg12_mask): Adapt comment.
4004         (arm_compute_frame_layout): Likewise.
4006 2017-06-06  Richard Biener  <rguenther@suse.de>
4008         PR tree-optimization/80974
4009         * tree-ssa-sccvn.c (set_ssa_val_to): Do not change but only
4010         keep or clear leaders SSA info.
4012 2017-06-06  Tom de Vries  <tom@codesourcery.com>
4014         * config/nvptx/nvptx.c (split_mode_p): New function.
4015         (nvptx_declare_function_name, nvptx_print_operand): Use split_mode_p.
4017 2017-06-06  Tom de Vries  <tom@codesourcery.com>
4019         * config/nvptx/nvptx.c (nvptx_print_operand): Use maybe_split_mode.
4021 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
4023         PR bootstrap/80978
4024         * tree-cfg.c (execute_fixup_cfg): Fix condition on when to rescale
4025         profile.
4027 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
4029         * shrink-wrap.c (handle_simple_exit): Update profile.
4030         (try_shrink_wrapping): Upate profile.
4032 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
4034         * predict.c (tree_estimate_probability_bb): Add LOCAL_ONLY.
4035         (tree_guess_outgoing_edge_probabilities): New.
4036         * predict.h (tree_guess_outgoing_edge_probabilities): Declare.
4037         * tree-cfg.c (gimple_find_sub_bbs): Propagate profile.
4039 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
4041         * ipa-split.c (split_function): Initialize return bb profile.
4043 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
4045         * profile.c (compute_branch_probabilities): Also initialize
4046         EXIT_BLOCK profile.
4048 2017-06-06  Richard Biener  <rguenther@suse.de>
4050         PR tree-optimization/80928
4051         * tree-vect-loop.c (vect_update_vf_for_slp): Amend dumps.
4052         (vect_analyze_loop_operations): Properly guard analysis for
4053         pure SLP case.
4054         (vect_transform_loop): Likewise.
4055         (vect_analyze_loop_2): Also reset SLP type on PHIs.
4056         (vect_model_induction_cost): Do not cost for pure SLP.
4057         (vectorizable_induction): Pass in SLP node, implement SLP vectorization
4058         of induction in inner loop vectorization.
4059         * tree-vect-slp.c (vect_create_new_slp_node): Handle PHIs.
4060         (vect_get_and_check_slp_defs): Handle vect_induction_def.
4061         (vect_build_slp_tree): Likewise.  Handle PHIs as terminating the
4062         recursion.
4063         (vect_analyze_slp_cost_1): Cost induction.
4064         (vect_detect_hybrid_slp_stmts): Handle PHIs.
4065         (vect_get_slp_vect_defs): Likewise.
4066         * tree-vect-stmts.c (vect_analyze_stmt): Handle induction.
4067         (vect_transform_stmt): Handle SLP reductions.
4068         * tree-vectorizer.h (vectorizable_induction): Adjust.
4070 2017-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
4072         * config/rs6000/rs6000.c (make_resolver_func): Update
4073         init_lowered_empty_function call.
4075 2017-06-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4077         * doc/invoke.texi: Document the -fprofile-abs-path option.
4078         * common.opt (fprofile-abs-path): New option.
4079         * gcov-io.h (gcov_write_filename): Declare.
4080         * gcov-io.c (gcov_write_filename): New function.
4081         * coverage.c (coverage_begin_function): Use gcov_write_filename.
4082         * profile.c (output_location): Likewise.
4084 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
4086         * shring-wrap.c: Revert accidental commit.
4088 2017-06-05  Volker Reichelt  <v.reichelt@netcologne.de>
4090         * doc/invoke.texi (-Wduplicated-branches): Add to warning list.
4092 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
4094         * cfgexpand.c (expand_gimple_tailcall): Initialize profile of
4095         new edge.
4096         * ipa-inline.c (want_inline_self_recursive_call_p): Watch for missing
4097         profile in callgraph edge.
4098         * profile-count.h (apply_probability): If THIS is 0, then result is 0
4099         (apply_scale): Likewise.
4100         * tree-inline.c (copy_bb, copy_edges_for_bb, copy_cfg_body):
4101         Also scale profile when inlining function with zero profile.
4102         (initialize_cfun): Update exit block profile even when it is zero.
4103         * tree-ssa-threadupdate.c (clear_counts_path): Handle correctly case
4104         when profile is read.
4106 2017-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
4108         * config/rs6000/rs6000.c (toplevel): Include attribs.h.
4109         (CLONE_*): New constants to define the processors we can generate
4110         code for with the target_clone attribute.
4111         (rs6000_clone_map): New array to identify which clone processors
4112         the current program is running on.
4113         (TARGET_COMPARE_VERSION_PRIORITY): Define to enable the
4114         target_clone attribute.
4115         (TARGET_GENERATE_VERSION_DISPATCHER_BODY): Likewise.
4116         (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): Likewise.
4117         (TARGET_OPTION_FUNCTION_VERSIONS): Likewise.
4118         (cpu_expand_builtin): Add support for target_clone attribute.
4119         (rs6000_valid_attribute_p): Allow "default" attribute.
4120         (get_decl_name): New debug function to simplify printing the
4121         current function name in debugging statements.
4122         (rs6000_clone_priority): New functions to support the target_clone
4123         attribute, and be able to generate code to switch between ISA 2.05
4124         through ISA 3.0 (power6 through power9).
4125         (rs6000_compare_version_priority): Likewise.
4126         (rs6000_get_function_versions_dispatcher): Likewise.
4127         (make_resolver_func): Likewise.
4128         (add_condition_to_bb): Likewise.
4129         (dispatch_function_versions): Likewise.
4130         (rs6000_generate_version_dispatcher_body): Likewise.
4131         (rs6000_can_inline_p): Call get_decl_name for debugging usage.
4132         (fusion_gpr_load_p): Fix a spacing issue.
4133         * doc/extend.texi (Common Function Attributes): Document that the
4134         PowerPC supports the target_clone attribute.
4136 2017-06-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4138         * config/arm/arm.h: explain F symbol found in description of ARM
4139         register allocation in its legend.
4141 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
4143         * config/mips/frame-header-opt.c: Include profile-count.h.
4144         * config/riscv/riscv.c: Include profile-count.h
4146 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
4148         * tree-ssa-loop-im.c (execute_sm_if_changed): Add FLAG_BBS parameter;
4149         update profile.
4150         (sm_set_flag_if_changed): Add bbs field.
4151         (execute_sm_if_changed_flag_set): Pass BBS.
4152         (execute_sm): Update.
4154 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4156         * config/aarch64/aarch64-simd.md (aarch64_store_lane0<mode>):
4157         New pattern.
4159 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4161         * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): New define_insn.
4162         (peephole2): New peephole2 to emit the above.
4163         * config/aarch64/predicates.md (aarch64_sub_immediate): New predicate.
4165 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4167         * config/aarch64/aarch64.c (define_peephole2 above
4168         *sub_<shift>_<mode>): New peephole.
4170 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
4172         * config/i386/i386.c (make_resolver_func): Update.
4173         * Makefile.in: Add profile-count.h and profile-count.o
4174         * auto-profile.c (afdo_indirect_call): Update to new API.
4175         (afdo_set_bb_count): Update.
4176         (afdo_propagate_edge): Update.
4177         (afdo_propagate_circuit): Update.
4178         (afdo_calculate_branch_prob): Update.
4179         (afdo_annotate_cfg): Update.
4180         * basic-block.h: Include profile-count.h
4181         (struct edge_def): Turn count to profile_count.
4182         (struct basic_block_def): Likewie.
4183         (REG_BR_PROB_BASE): Move to profile-count.h
4184         (RDIV): Move to profile-count.h
4185         * bb-reorder.c (max_entry_count): Turn to profile_count.
4186         (find_traces): Update.
4187         (rotate_loop):Update.
4188         (connect_traces):Update.
4189         (sanitize_hot_paths):Update.
4190         * bt-load.c (migrate_btr_defs): Update.
4191         * cfg.c (RDIV): Remove.
4192         (init_flow): Use alloc_block.
4193         (alloc_block): Uninitialize count.
4194         (unchecked_make_edge): Uninitialize count.
4195         (check_bb_profile): Update.
4196         (dump_edge_info): Update.
4197         (dump_bb_info): Update.
4198         (update_bb_profile_for_threading): Update.
4199         (scale_bbs_frequencies_int): Update.
4200         (scale_bbs_frequencies_gcov_type): Update.
4201         (scale_bbs_frequencies_profile_count): New.
4202         * cfg.h (update_bb_profile_for_threading): Update.
4203         (scale_bbs_frequencies_profile_count): Declare.
4204         * cfgbuild.c (compute_outgoing_frequencies): Update.
4205         (find_many_sub_basic_blocks): Update.
4206         * cfgcleanup.c (try_forward_edges): Update.
4207         (try_crossjump_to_edge): Update.
4208         * cfgexpand.c (expand_gimple_tailcall): Update.
4209         (construct_exit_block): Update.
4210         * cfghooks.c (verify_flow_info): Update.
4211         (dump_bb_for_graph): Update.
4212         (split_edge): Update.
4213         (make_forwarder_block): Update.
4214         (duplicate_block): Update.
4215         (account_profile_record): Update.
4216         * cfgloop.c (find_subloop_latch_edge_by_profile): Update.
4217         (get_estimated_loop_iterations): Update.
4218         * cfgloopanal.c (expected_loop_iterations_unbounded): Update.
4219         (single_likely_exit): Update.
4220         * cfgloopmanip.c (scale_loop_profile): Update.
4221         (loopify): Update.
4222         (set_zero_probability): Update.
4223         (lv_adjust_loop_entry_edge): Update.
4224         * cfgrtl.c (force_nonfallthru_and_redirect): Update.
4225         (purge_dead_edges): Update.
4226         (rtl_account_profile_record): Update.
4227         * cgraph.c (cgraph_node::create): Uninitialize count.
4228         (symbol_table::create_edge): Uninitialize count.
4229         (cgraph_update_edges_for_call_stmt_node): Update.
4230         (cgraph_edge::dump_edge_flags): Update.
4231         (cgraph_node::dump): Update.
4232         (cgraph_edge::maybe_hot_p): Update.
4233         * cgraph.h: Include profile-count.h
4234         (create_clone), create_edge, create_indirect_edge): Update.
4235         (cgraph_node): Turn count to profile_count.
4236         (cgraph_edge0: Likewise.
4237         (make_speculative, clone): Update.
4238         (create_edge): Update.
4239         (init_lowered_empty_function): Update.
4240         * cgraphclones.c (cgraph_edge::clone): Update.
4241         (duplicate_thunk_for_node): Update.
4242         (cgraph_node::create_clone): Update.
4243         * cgraphunit.c (cgraph_node::analyze): Update.
4244         (cgraph_node::expand_thunk): Update.
4245         * final.c (dump_basic_block_info): Update.
4246         * gimple-streamer-in.c (input_bb): Update.
4247         * gimple-streamer-out.c (output_bb): Update.
4248         * graphite.c (print_global_statistics): Update.
4249         (print_graphite_scop_statistics): Update.
4250         * hsa-brig.c: Include basic-block.h.
4251         * hsa-dump.c: Include basic-block.h.
4252         * hsa-gen.c (T sum_slice): Update.
4253         (convert_switch_statements):Update.
4254         * hsa-regalloc.c: Include basic-block.h.
4255         * ipa-chkp.c (chkp_produce_thunks): Update.
4256         * ipa-cp.c (struct caller_statistics): Update.
4257         (init_caller_stats): Update.
4258         (gather_caller_stats): Update.
4259         (ipcp_cloning_candidate_p): Update.
4260         (good_cloning_opportunity_p): Update.
4261         (get_info_about_necessary_edges): Update.
4262         (dump_profile_updates): Update.
4263         (update_profiling_info): Update.
4264         (update_specialized_profile): Update.
4265         (perhaps_add_new_callers): Update.
4266         (decide_about_value): Update.
4267         (ipa_cp_c_finalize): Update.
4268         * ipa-devirt.c (struct odr_type_warn_count): Update.
4269         (struct decl_warn_count): Update.
4270         (struct final_warning_record): Update.
4271         (possible_polymorphic_call_targets): Update.
4272         (ipa_devirt): Update.
4273         * ipa-fnsummary.c (redirect_to_unreachable): Update.
4274         * ipa-icf.c (sem_function::merge): Update.
4275         * ipa-inline-analysis.c (do_estimate_edge_time): Update.
4276         * ipa-inline.c (compute_uninlined_call_time): Update.
4277         (compute_inlined_call_time): Update.
4278         (want_inline_small_function_p): Update.
4279         (want_inline_self_recursive_call_p): Update.
4280         (edge_badness): Update.
4281         (lookup_recursive_calls): Update.
4282         (recursive_inlining): Update.
4283         (inline_small_functions): Update.
4284         (dump_overall_stats): Update.
4285         (dump_inline_stats): Update.
4286         * ipa-profile.c (ipa_profile_generate_summary): Update.
4287         (ipa_propagate_frequency): Update.
4288         (ipa_profile): Update.
4289         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
4290         * ipa-utils.c (ipa_merge_profiles): Update.
4291         * loop-doloop.c (doloop_modify): Update.
4292         * loop-unroll.c (report_unroll): Update.
4293         (unroll_loop_runtime_iterations): Update.
4294         * lto-cgraph.c (lto_output_edge): Update.
4295         (lto_output_node): Update.
4296         (input_node): Update.
4297         (input_edge): Update.
4298         (merge_profile_summaries): Update.
4299         * lto-streamer-in.c (input_cfg): Update.
4300         * lto-streamer-out.c (output_cfg): Update.
4301         * mcf.c (create_fixup_graph): Update.
4302         (adjust_cfg_counts): Update.
4303         (sum_edge_counts): Update.
4304         * modulo-sched.c (sms_schedule): Update.
4305         * postreload-gcse.c (eliminate_partially_redundant_load): Update.
4306         * predict.c (maybe_hot_count_p): Update.
4307         (probably_never_executed): Update.
4308         (dump_prediction): Update.
4309         (combine_predictions_for_bb): Update.
4310         (propagate_freq): Update.
4311         (handle_missing_profiles): Update.
4312         (counts_to_freqs): Update.
4313         (rebuild_frequencies): Update.
4314         (force_edge_cold): Update.
4315         * predict.h: Include profile-count.h
4316         (maybe_hot_count_p, counts_to_freqs): UPdate.
4317         * print-rtl-function.c: Do not include cfg.h
4318         * print-rtl.c: Include basic-block.h
4319         * profile-count.c: New file.
4320         * profile-count.h: New file.
4321         * profile.c (is_edge_inconsistent): Update.
4322         (correct_negative_edge_counts): Update.
4323         (is_inconsistent): Update.
4324         (set_bb_counts): Update.
4325         (read_profile_edge_counts): Update.
4326         (compute_frequency_overlap): Update.
4327         (compute_branch_probabilities): Update; Initialize and deinitialize
4328         gcov_count tables.
4329         (branch_prob): Update.
4330         * profile.h (bb_gcov_counts, edge_gcov_counts): New.
4331         (edge_gcov_count): New.
4332         (bb_gcov_count): New.
4333         * shrink-wrap.c (try_shrink_wrapping): Update.
4334         * tracer.c (better_p): Update.
4335         * trans-mem.c (expand_transaction): Update.
4336         (ipa_tm_insert_irr_call): Update.
4337         (ipa_tm_insert_gettmclone_call): Update.
4338         * tree-call-cdce.c: Update.
4339         * tree-cfg.c (gimple_duplicate_sese_region): Update.
4340         (gimple_duplicate_sese_tail): Update.
4341         (gimple_account_profile_record): Update.
4342         (execute_fixup_cfg): Update.
4343         * tree-inline.c (copy_bb): Update.
4344         (copy_edges_for_bb): Update.
4345         (initialize_cfun): Update.
4346         (freqs_to_counts): Update.
4347         (copy_cfg_body): Update.
4348         (expand_call_inline): Update.
4349         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
4350         * tree-ssa-loop-ivcanon.c (unloop_loops): Update.
4351         (try_unroll_loop_completely): Update.
4352         (try_peel_loop): Update.
4353         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
4354         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Update.
4355         * tree-ssa-loop-split.c (connect_loops): Update.
4356         * tree-ssa-loop-unswitch.c (hoist_guard): Update.
4357         * tree-ssa-reassoc.c (branch_fixup): Update.
4358         * tree-ssa-tail-merge.c (replace_block_by): Update.
4359         * tree-ssa-threadupdate.c (create_block_for_threading): Update.
4360         (compute_path_counts): Update.
4361         (update_profile): Update.
4362         (recompute_probabilities): Update.
4363         (update_joiner_offpath_counts): Update.
4364         (estimated_freqs_path): Update.
4365         (freqs_to_counts_path): Update.
4366         (clear_counts_path): Update.
4367         (ssa_fix_duplicate_block_edges): Update.
4368         (duplicate_thread_path): Update.
4369         * tree-switch-conversion.c (case_bit_test_cmp): Update.
4370         (struct switch_conv_info): Update.
4371         * tree-tailcall.c (decrease_profile): Update.
4372         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
4373         * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
4374         * value-prof.c (check_counter): Update.
4375         (gimple_divmod_fixed_value): Update.
4376         (gimple_mod_pow2): Update.
4377         (gimple_mod_subtract): Update.
4378         (gimple_ic_transform): Update.
4379         (gimple_stringop_fixed_value): Update.
4380         * value-prof.h (gimple_ic): Update.
4382 2017-06-02  Carl Love  <cel@us.ibm.com>
4384         * config/rs6000/rs6000-c: Add support for built-in functions
4385         vector double vec_doublee (vector signed int);
4386         vector double vec_doublee (vector unsigned int);
4387         vector double vec_doublee (vector float);
4388         vector double vec_doubleh (vector signed int);
4389         vector double vec_doubleh (vector unsigned int);
4390         vector double vec_doubleh (vector float);
4391         vector double vec_doublel (vector signed int);
4392         vector double vec_doublel (vector unsigned int);
4393         vector double vec_doublel (vector float);
4394         vector double vec_doubleo (vector signed int);
4395         vector double vec_doubleo (vector unsigned int);
4396         vector double vec_doubleo (vector float);.
4397         * config/rs6000/rs6000-builtin.def: Add definitions for DOUBLEE,
4398         DOUBLEO, DOUBLEH, DOUBLEL, UNS_DOUBLEO, UNS_DOUBLEE, UNS_DOUBLEH,
4399         UNS_DOUBLEL.
4400         * config/rs6000/altivec.md: Add code generator for doublee<mode>2,
4401         unsdoubleev4si2, doubleo<mode>2, unsdoubleov4si2, doubleh<mode>2,
4402         unsdoublehv4si2, doublel<mode>2, unsdoublelv4si2, add mode attribute
4403         VS_sxwsp.
4404         * config/rs6000/altivec.h: Add define for vec_doublee, vec_doubleo,
4405         vec_doublel, vec_doubleh.
4406         * doc/extend.texi: Update the built-in documentation file for the
4407         new built-in functions.
4409 2017-06-02  David Malcolm  <dmalcolm@redhat.com>
4411         PR jit/80954
4412         * ipa-inline-analysis.c (free_growth_caches): Set
4413         edge_removal_hook_holder to NULL after removing it.
4415 2017-06-02  Sudakshina Das  <sudi.das@arm.com>
4417         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
4418         comparision with zero.
4420 2017-06-02  Will Schmidt  <will_schmidt@vnet.ibm.com>
4421         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
4422         for early expansion of vec_min and vec_max builtins.
4423         (builtin_function_type): Add min/max unsigned variants to those
4424         identified as having unsigned arguments.
4426 2017-06-02  Olivier Hainque  <hainque@adacore.com>
4428         * config/vx-common.h (DWARF_UNWIND_INFO): Switch #define to 1.
4430 2017-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4432         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
4433         Use VALL_F16 iterator rather than VALL.
4435 2017-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4437         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap):
4438         Emit CBNZ inside loop when doing a strong exchange and comparing
4439         against zero.  Generate the CC flags after the loop.
4441 2017-06-02  David Edelsohn  <dje.gcc@gmail.com>
4443         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE_STR): New.
4444         (dl_section_ref): New.
4445         (dwarf2out_finish): Copy debug_line_section_label to dl_section_ref.
4446         On AIX, append an expression to subtract the size of the
4447         section length to dl_section_ref.
4449 2017-06-02  Will Schmidt  <will_schmidt@vnet.ibm.com>
4451         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
4452         for early expansion of vector absolute builtins.
4454 2017-06-02  Richard Biener  <rguenther@suse.de>
4456         * tree-vect-slp.c (vect_detect_hybrid_slp_2): Match up
4457         what we consider a relevant use stmt with vect_detect_hybrid_slp_stmts.
4459 2017-06-02  Richard Biener  <rguenther@suse.de>
4461         PR tree-optimization/80948
4462         * tree-tailcall.c (find_tail_calls): Track stmts to move in
4463         stmt order as well.
4465 2017-06-02  Richard Biener  <rguenther@suse.de>
4467         * tree-vect-loop.c (vect_analyze_loop_operations): Not relevant
4468         PHIs are ok.
4469         * tree-vect-stmts.c (process_use): Do not mark backedge defs
4470         for inductions as relevant.
4472 2017-06-02  Richard Biener  <rguenther@suse.de>
4474         * tree-vect-loop.c (get_initial_def_for_induction): Inline into ...
4475         (vectorizable_induction): ... this.  Remove dead code.
4477 2017-06-02  Eric Botcazou  <ebotcazou@adacore.com>
4479         * builtins. (expand_builtin_alloca): Remove second parameter and
4480         infer its value from the first parameter instead.
4481         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust call to above.
4483 2017-06-02  Jakub Jelinek  <jakub@redhat.com>
4485         PR rtl-optimization/80903
4486         * loop-doloop.c (add_test): Unshare sequence.
4488 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4490         * doc/invoke.texi: Document the -Wsizeof-pointer-div warning.
4492 2017-06-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4494         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers): Make
4495         static.
4496         (xlogue_layout::get_stack_space_used, xlogue_layout::s_instances,
4497         xlogue_layout::get_instance, logue_layout::xlogue_layout,
4498         sp_valid_at, fp_valid_at, choose_basereg): Formatting.
4499         (xlogue_layout::get_stub_rtx): Make static.
4500         (xlogue_layout::get_stub_name): Avoid const-cast, make static.
4501         (xlogue_layout::compute_stub_managed_regs): Rename to...
4502         (xlogue_layout::count_stub_managed_regs): ...this.
4503         (xlogue_layout::is_stub_managed_reg): New function.
4504         (xlogue_layout::m_stub_names): Rename to...
4505         (xlogue_layout::s_stub_names): ...this, make static.
4506         (xlogue_layout::STUB_INDEX_OFFSET, xlogue_layout::MIN_REGS,
4507         xlogue_layout::MAX_REGS, xlogue_layout::MAX_EXTRA_REGS,
4508         xlogue_layout::VARIANT_COUNT, xlogue_layout::STUB_NAME_MAX_LEN,
4509         xlogue_layout::s_stub_names): Instantiate statics.
4510         (stub_managed_regs): Remove.
4511         (ix86_save_reg): Use xlogue_layout::compute_stub_managed_regs.
4512         (disable_call_ms2sysv_xlogues): Rename to...
4513         (warn_once_call_ms2sysv_xlogues): ...this, and warn only once.
4514         (ix86_initial_elimination_offset, ix86_expand_call): Fix call_ms2sysv
4515         warning logic.
4516         (ix86_static_chain): Make sure that ix86_static_chain_on_stack can't
4517         change after reload_completed.
4518         (ix86_can_use_return_insn_p): Use the ix86_frame data structure
4519         directly.
4520         (ix86_expand_prologue): Likewise.
4521         (ix86_expand_epilogue): Likewise.
4522         (ix86_expand_split_stack_prologue): Likewise.
4523         (ix86_compute_frame_layout): Remove frame parameter ...
4524         (TARGET_COMPUTE_FRAME_LAYOUT): ... and export it as a target hook.
4525         (ix86_finalize_stack_realign_flags): Call ix86_compute_frame_layout
4526         only if necessary.
4527         (ix86_init_machine_status): Don't set use_fast_prologue_epilogue_nregs.
4528         (ix86_frame): Move from here ...
4529         * config/i386/i386.h (ix86_frame): ... to here.
4530         (machine_function): Remove use_fast_prologue_epilogue_nregs, cache the
4531         complete ix86_frame data structure instead.  Remove some_ld_name.
4533 2017-06-01  Pierre-Marie de Rodat  <derodat@adacore.com>
4535         * dwarf2out.c (dwarf2out_late_global_decl): Add locations for
4536         symbols that hold a DECL_VALUE_EXPR.
4538 2017-06-01  Martin Jambor  <mjambor@suse.cz>
4540         PR tree-optimization/80898
4541         * tree-sra.c (process_subtree_disqualification): Removed.
4542         (disqualify_candidate): Do not acll
4543         process_subtree_disqualification.
4544         (subtree_mark_written_and_enqueue): New function.
4545         (propagate_all_subaccesses): Set grp_write of LHS subtree if the
4546         RHS has been disqualified and re-queue LHS if necessary.  Apart
4547         from that, ignore disqualified RHS.
4549 2017-06-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4551         * config/s390/s390.c (s390_emit_epilogue): Disable early return
4552         address fetch for z10 or later.
4554 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
4556         * config/arc/arc.md (tst_movb): Add guard when splitting.
4558 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
4560         * config/arc/arc.c (arc_can_eliminate): Test against
4561         arc_frame_pointer_needed.
4563 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
4565         * config/arc/arc.c (arc_expand_prologue): Emit a special barrier
4566         to prevent store reordering.
4567         * config/arc/arc.md (UNSPEC_ARC_STKTIE): Define.
4568         (type): Add block type.
4569         (stack_tie): Define special instruction to be used in
4570         expand_prologue.
4572 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
4574         * config/arc/arc.md (commutative_binary_comparison): Remove 'I'
4575         constraint. It is not valid for the pattern.
4576         (noncommutative_binary_comparison): Likewise.
4578 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
4580         * config/arc/simdext.md (movv2hi_insn): Change predicate to avoid
4581         scaled addresses.
4583 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
4585         * config/arc/arc.c (arc_conditional_register_usage): Allow r30 to
4586         be used by the reg-alloc.
4588 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
4590         * config/arc/arc.md (mulsi3): Avoid use of hard registers before
4591         reg-alloc when having mul64 or mul32x16 instructions.
4592         (mulsidi3): Likewise.
4593         (umulsidi3): Likewise.
4594         (mulsi32x16): New pattern.
4595         (mulsi64): Likewise.
4596         (mulsidi64): Likewise.
4597         (umulsidi64): Likewise.
4598         (MUL32x16_REG): Define.
4599         (mul64_600): Use MUL32x16_REG.
4600         (mac64_600): Likewise.
4601         (umul64_600): Likewise.
4602         (umac64_600): Likewise.
4604 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
4606         * config/arc/arc.md (mulsi3_700): Make it commutative.
4608 2017-06-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
4610         * config/sparc/sparc.md (*zero_extendsidi2_insn_sp64): Set insn
4611         type for movstouw.
4612         (*sign_extendsidi2_insn): Likewise for movstosw.
4614 2017-06-01  Pierre-Marie de Rodat  <derodat@adacore.com>
4616         * dwarf2out.c (get_discr_value): Call the get_debug_type hook on
4617         the type of the input discriminant value.  Convert the
4618         discriminant value of signedness vary.
4620 2017-06-01  Volker Reichelt  <v.reichelt@netcologne.de>
4622         * doc/invoke.texi (-Wcatch-value): Document new shortcut.
4623         Add to -Wall section.
4625 2017-06-01  Richard Biener  <rguenther@suse.de>
4627         PR middle-end/66313
4628         * fold-const.c (fold_plusminus_mult_expr): If the factored
4629         factor may be zero use a wrapping type for the inner operation.
4630         * tree-tailcall.c (independent_of_stmt_p): Pass in to_move bitmap
4631         and handle moved defs.
4632         (process_assignment): Properly guard the unary op case.  Return a
4633         tri-state indicating that moving the stmt before the call may allow
4634         to continue.  Pass through to_move.
4635         (find_tail_calls): Handle moving unrelated defs before
4636         the call.
4638 2017-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
4640         PR target/80618
4641         * config/rs6000/vector.md (*vector_uneq<mode>): Write the nor in the
4642         splitter result in the canonical way.
4644 2017-05-31  Uros Bizjak  <ubizjak@gmail.com>
4646         * config/i386/i386.md (*zero_extendsidi2): Enable alternative (?r, *Yj)
4647         also for 32bit target.  Update insn attributes.
4648         (zero-extendsidi2 splitter): Allow all registers for operand 1.
4650 2017-05-31  Sebastian Peryt  <sebastian.peryt@intel.com>
4652         * config/i386/avx512fintrin.h (_mm_mask_max_sd)
4653         (_mm_maskz_max_sd, _mm_mask_max_ss, _mm_maskz_max_ss)
4654         (_mm_mask_min_sd, _mm_maskz_min_sd, _mm_mask_min_ss)
4655         (_mm_maskz_min_ss): New intrinsics.
4657 2017-05-31  Martin Liska  <mliska@suse.cz>
4659         * tree-vect-loop.c (vect_create_epilog_for_reduction):
4660         Change comment style to one we normally use.
4661         (vectorizable_reduction): Likewise.
4662         (vectorizable_induction): Likewise.
4663         * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
4664         (vectorizable_call): Likewise.
4665         (vectorizable_simd_clone_call): Likewise.
4666         (vectorizable_conversion): Likewise.
4667         (vectorizable_assignment): Likewise.
4668         (vectorizable_shift): Likewise.
4669         (vectorizable_operation): Likewise.
4670         (vectorizable_store): Likewise.
4671         (vectorizable_load): Likewise.
4672         * tree-vectorizer.h: Likewise.
4674 2017-05-31  Alexander Monakov  <amonakov@ispras.ru>
4676         * passes.c (emergency_dump_function): New.
4677         * tree-pass.h (emergency_dump_function): Declare.
4678         * plugin.c (plugins_internal_error_function): Remove.
4679         * plugin.h (plugins_internal_error_function): Remove declaration.
4680         * toplev.c (internal_error_function): New static function.  Use it...
4681         (general_init): ...here.
4683 2017-05-31  Graham Markall  <graham.markall@embecosm.com>
4685         * config/arc/arc.c (arc_print_operand): Handle constant operands.
4686         (arc_rtx_costs): Add costs for new patterns.
4687         * config/arc/arc.md: Additional *add_n and *sub_n patterns.
4688         * config/arc/predicates.md: Add _1_2_3_operand predicate.
4690 2017-05-31  Richard Sandiford  <richard.sandiford@linaro.org>
4692         * tree-ssa-strlen.c (get_next_strinfo): New function.
4693         (get_stridx_plus_constant): Use it.
4694         (zero_length_string): Likewise.
4695         (adjust_related_strinfos): Likewise.
4696         (adjust_last_stmt): Likewise.
4698 2017-05-31  Richard Biener  <rguenther@suse.de>
4700         PR target/80880
4701         * config/i386/i386.c (ix86_expand_builtin): Remove assert
4702         for arg being an SSA name when expanding IX86_BUILTIN_BNDRET.
4704 2017-05-31  Richard Sandiford  <richard.sandiford@linaro.org>
4706         * tree-vect-data-refs.c (vect_find_same_alignment_drs): Remove
4707         loop_vinfo argument and use of dependence distance vectors.
4708         Check instead whether the two references differ only in their
4709         initial value and assume that they have the same alignment if the
4710         difference is a multiple of the vector alignment.
4711         (vect_analyze_data_refs_alignment): Update call accordingly.
4713 2017-05-31  Martin Liska  <mliska@suse.cz>
4715         PR target/79155
4716         * config/i386/cpuid.h: Fix typo in a comment in cpuid.h.
4718 2017-05-31  Bin Cheng  <bin.cheng@arm.com>
4720         * tree-vect-loop-manip.c (create_intersect_range_checks_index)
4721         (create_intersect_range_checks): Move from ...
4722         * tree-data-ref.c (create_intersect_range_checks_index)
4723         (create_intersect_range_checks): ... to here.
4724         (create_runtime_alias_checks): New function factored from ...
4725         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): ...
4726         here.  Call above function.
4727         * tree-data-ref.h (create_runtime_alias_checks): New function.
4729 2017-05-31  Bin Cheng  <bin.cheng@arm.com>
4731         * tree-data-ref.c (prune_runtime_alias_test_list): Relax minimal
4732         segment length for dr_b and compute it in wide_int.
4734 2017-05-31  Richard Biener  <rguenther@suse.de>
4736         PR tree-optimization/80906
4737         * graphite-isl-ast-to-gimple.c (copy_loop_close_phi_nodes): Get
4738         and pass through iv_map.
4739         (copy_bb_and_scalar_dependences): Adjust.
4740         (translate_pending_phi_nodes): Likewise.
4741         (copy_loop_close_phi_args): Handle code-generating IVs instead
4742         of ICEing.
4744 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
4746         * diagnostic-color.c (color_dict): Add "type-diff".
4747         (parse_gcc_colors): Update comment.
4748         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
4749         -fdiagnostics-show-template-tree and -fno-elide-type.
4750         (GCC_COLORS): Add type-diff to example.
4751         (type-diff=): New.
4752         (-fdiagnostics-show-template-tree): New.
4753         (-fno-elide-type): New.
4754         * pretty-print.c (pp_format): Pass quote and formatters[argno] to
4755         the pp_format_decoder callback.  Call any m_format_postprocessor's
4756         "handle" method.
4757         (pretty_printer::pretty_printer): Initialize
4758         m_format_postprocessor.
4759         (pretty_printer::~pretty_printer): Delete any
4760         m_format_postprocessor.
4761         * pretty-print.h (printer_fn): Add bool and const char ** parameters.
4762         (class format_postprocessor): New class.
4763         (struct pretty_printer::format_decoder): Document the new parameters.
4764         (struct pretty_printer::m_format_postprocessor): New field.
4765         * tree-diagnostic.c (default_tree_printer): Update for new
4766         bool and const char ** params.
4767         * tree-diagnostic.h (default_tree_printer): Likewise.
4769 2017-05-30  Segher Boessenkool  <segher@kernel.crashing.org>
4771         * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand): Delete.
4772         (lwa_operand): Delete rs6000_gen_cell_microcode test.
4773         * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
4774         rs6000_gen_cell_microcode code.
4775         (rs6000_final_prescan_insn): Delete.
4776         (rs6000_opt_vars): Delete the "gen-cell-microcode" and
4777         "warn-cell-microcode" entries.
4778         * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Delete.
4779         * config/rs6000/rs6000.md: Delete rs6000_gen_cell_microcode tests
4780         throughout.  Change cc_reg_not_micro_cr0_operand to
4781         cc_reg_not_cr0_operand throughout.
4782         (*extendhi<mode>2_noload): Delete.
4783         * config/rs6000/rs6000.opt (mgen-cell-microcode): Replace by stub.
4784         (mwarn-cell-microcode): Delete.
4785         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
4786         -mgen-cell-microcode and -mwarn-cell-microcode.
4788 2017-05-30  Uros Bizjak  <ubizjak@gmail.com>
4790         PR target/80833
4791         * config/i386/constraints.md (Yd): New constraint.
4792         (Ye): Ditto.
4793         * config/i386/i386.md (*movti_internal): Add (?r, Ye)
4794         and (?Yd, r) alternatives.  Update insn attributes.
4795         * config/i386/i386.md (*movti_internal): Add (?r, *Ye)
4796         and (?*Yd, r) alternatives.  Update insn attributes.
4797         (double-mode inter-unit splitters): Add new GR<->XMM splitters.
4799 2017-05-30  Pierre-Marie de Rodat  <derodat@adacore.com>
4801         * gimplify.c (gimplify_modify_expr): Don't create a
4802         DECL_DEBUG_EXPR link if *FROM_P does not belong to the current
4803         function.
4805 2017-05-30  Wilco Dijkstra  <wdijkstr@arm.com>
4807         * config/arm/arm-builtins.c (arm_expand_builtin): Remove const.
4809 2017-05-30  Richard Biener  <rguenther@suse.de>
4811         * tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type
4812         and reduc_def fields.
4813         (STMT_VINFO_REDUC_TYPE): New define.
4814         (STMT_VINFO_REDUC_DEF): Likewise.
4815         (vect_force_simple_reduction): Adjust prototype.
4816         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Adjust.
4817         (vect_is_simple_reduction): Remove check_reduction argument.
4818         (vect_force_simple_reduction): Adjust and set
4819         STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
4820         (vectorizable_reduction): Do not re-do reduction analysis
4821         but use STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
4822         * tree-parloops.c (gather_scalar_reductions): Adjust.
4824 2017-05-30  Richard Biener  <rguenther@suse.de>
4826         PR middle-end/80901
4827         * cfgexpand.c (expand_gimple_cond): Match up loop fixup with
4828         split_edge code.
4830 2017-05-24  Robin Dapp  <rdapp@linux.vnet.ibm.com>
4832         * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
4833         Introduce unknown_misalignment parameter and remove vf.
4834         (vect_peeling_hash_get_lowest_cost):
4835         Pass unknown_misalignment parameter.
4836         (vect_enhance_data_refs_alignment):
4837         Fix unsupportable data ref treatment.
4839 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
4841         * tree-vect-data-refs.c (vect_get_data_access_cost):
4842         Workaround for SLP handling.
4843         (vect_enhance_data_refs_alignment):
4844         Compute costs for doing no peeling at all, compare to the best
4845         peeling costs so far and avoid peeling if cheaper.
4847 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
4849         * tree-vect-data-refs.c (vect_peeling_hash_choose_best_peeling):
4850         Return peeling info and set costs to zero for unlimited cost
4851         model.
4852         (vect_enhance_data_refs_alignment): Also inspect all datarefs
4853         with unknown misalignment. Compute and costs for unknown
4854         misalignment, compare them to the costs for known misalignment
4855         and choose the cheapest for peeling.
4857 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
4859         * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Rename.
4860         (vect_get_peeling_costs_all_drs): Create function.
4861         (vect_peeling_hash_get_lowest_cost):
4862         Use vect_get_peeling_costs_all_drs.
4863         (vect_peeling_supportable): Create function.
4864         (vect_enhance_data_refs_alignment): Use vect_peeling_supportable.
4866 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
4868         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Create
4869         DR_HAS_NEGATIVE_STEP.
4870         (vect_update_misalignment_for_peel): Define DR_MISALIGNMENT.
4871         (vect_enhance_data_refs_alignment): Use.
4872         (vect_duplicate_ssa_name_ptr_info): Use.
4873         * tree-vectorizer.h (dr_misalignment): Use.
4874         (known_alignment_for_access_p): Use.
4876 2017-05-30  Jozef Lawrynowicz  <jozef.l@somniumtech.com>
4878         PR target/78838
4879         * config/msp430/msp430.c (gen_prefix): Return NULL when section name is
4880         .lowtext.
4881         (has_section_name): New function.
4883 2017-05-30  Martin Liska  <mliska@suse.cz>
4885         PR other/80909
4886         * auto-profile.c (get_function_decl_from_block): Fix
4887         parenthesis.
4889 2017-05-30  Richard Biener  <rguenther@suse.de>
4891         PR middle-end/80876
4892         * cfgexpand.c (expand_gimple_cond): Fixup preserving loops again.
4894 2017-05-30  Martin Liska  <mliska@suse.cz>
4896         * dumpfile.c: Use newly added macro DUMP_FILE_INFO.
4897         * dumpfile.h (struct dump_file_info): Remove ctors.
4899 2017-05-30  Martin Liska  <mliska@suse.cz>
4901         * predict.def: Fix GNU coding style.
4903 2017-05-29  Max Filippov  <jcmvbkbc@gmail.com>
4905         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
4906         Mark 'to' argument with ATTRIBUTE_UNUSED.
4908 2017-05-29  Max Filippov  <jcmvbkbc@gmail.com>
4910         * config/xtensa/xtensa.c (xtensa_emit_call): Use
4911         HOST_WIDE_INT_PRINT_HEX instead of 0x%lx format string.
4912         (print_operand): Use HOST_WIDE_INT_PRINT_DEC instead of %ld
4913         format string.
4915 2017-05-29  Eric Botcazou  <ebotcazou@adacore.com>
4917         * doc/install.texi (Options specification): Restore entry of
4918         --enable-sjlj-exceptions.
4920 2017-05-27  Michael Eager  <eager@eagercon.com>
4922         Revert:
4923         2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
4925         See https://gcc.gnu.org/ml/gcc/2017-05/msg00221.html.
4927         * config/microblaze/microblaze.h
4928         (FIXED_REGISTERS): Update in macro.
4929         (CALL_USED_REGISTERS): Update in macro.
4931 2017-05-27  François-Xavier Coudett  <fxcoudert@gcc.gnu.org>
4933         * doc/install.texi: Add links to macOS binary distributions.
4935 2017-05-27  Jakub Jelinek  <jakub@redhat.com>
4937         PR bootstrap/80887
4938         Revert:
4939         2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
4941         * match.pd ((A +- CST1) +- CST2): Allow some conversions.
4943 2017-05-26  Martin Liska  <mliska@suse.cz>
4945         * dumpfile.h (enum dump_kind): Renumber TDF_* flags to be contiguous.
4947 2017-05-26  Martin Liska  <mliska@suse.cz>
4949         * cfg.c (check_bb_profile): Do not use TDF_COMMENT and print
4950         always leading ';; '.
4951         (dump_bb_info): Likewise.
4952         (brief_dump_cfg): Likewise.
4953         * cfgrtl.c (print_rtl_with_bb): Do not use TDF_COMMENT.
4954         * dumpfile.c: Remove usage of TDF_VERBOSE.
4955         * dumpfile.h (enum dump_kind): Likewise.
4956         (dump_gimple_bb_header): Do not use TDF_COMMENT.
4957         * print-tree.c (debug_verbose): Remove.
4958         * tree-cfg.c (gimple_dump_cfg): Do not use TDF_COMMENT.
4959         (dump_function_to_file): Remove dumps guarded with TDF_VERBOSE.
4960         * tree-diagnostic.c (default_tree_printer): Replace
4961         TDF_DIAGNOSTIC with TDF_SLIM.
4963 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
4965         * tree-vect-loop-manip.c (create_intersect_range_checks_index): Pass
4966         in parameter loop, rather than loop_vinfo.
4967         (create_intersect_range_checks): Ditto.
4968         (vect_create_cond_for_alias_checks): Update call to above functions.
4970 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
4972         PR tree-optimization/80815
4973         * tree-data-ref.c (prune_runtime_alias_test_list): Simplify condition
4974         for merging runtime alias checks.  Handle negative DR_STEPs.
4976 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
4978         * tree-vect-data-refs.c (Operator==, comp_dr_with_seg_len_pair):
4979         Move from ...
4980         * tree-data-ref.c (Operator==, comp_dr_with_seg_len_pair): To here.
4981         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Factor
4982         out code pruning runtime alias checks.
4983         * tree-data-ref.c (prune_runtime_alias_test_list): New function
4984         factored out from above.
4985         * tree-vectorizer.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
4986         Move from ...
4987         * tree-data-ref.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
4988         ... to here.
4989         (prune_runtime_alias_test_list): New decalaration.
4991 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
4993         * tree-vect-data-refs.c (compare_tree): Rename and move ...
4994         * tree-data-ref.c (data_ref_compare_tree): ... to here.
4995         * tree-data-ref.h (data_ref_compare_tree): New decalaration.
4996         * tree-vect-data-refs.c (dr_group_sort_cmp): Update uses.
4997         (operator==, comp_dr_with_seg_len_pair): Ditto.
4998         (vect_prune_runtime_alias_test_list): Ditto.
5000 2017-05-26  Martin Liska  <mliska@suse.cz>
5002         PR ipa/80663
5003         * params.def: Bound partial-inlining-entry-probability param.
5005 2017-05-26  Marek Polacek  <polacek@redhat.com>
5007         PR sanitizer/80875
5008         * fold-const.c (fold_binary_loc) <case MULT_EXPR>: Check if OP1
5009         can be negated.
5011 2017-05-26  Richard Biener  <rguenther@suse.de>
5013         PR tree-optimization/80842
5014         * tree-ssa-ccp.c (set_lattice_value): Always meet with the old
5015         value.
5017 2017-05-26  Richard Biener  <rguenther@suse.de>
5019         PR tree-optimization/80844
5020         * tree-vectorizer.c (adjust_simduid_builtins): Propagate results.
5022 2017-05-25  Sebastian Peryt  <sebastian.peryt@intel.com>
5024         * doc/md.texi (Machine Constraints): Update x86 family
5025         machine constraints section to match 'config/i386/constraints.md'.
5027 2017-05-25  Volker Reichelt  <v.reichelt@netcologne.de>
5029         * doc/invoke.texi (-Wcatch-value=): Document new warning option.
5031 2017-05-25  Nathan Sidwell  <nathan@acm.org>
5033         * doc/invoke.texi (--enable-languages): Update documentation.
5035 2017-05-25  Martin Liska  <mliska@suse.cz>
5037         * dumpfile.c: Add TDF_FOLDING.
5038         * dumpfile.h (enum dump_kind): Likewise.
5039         * genmatch.c (dt_simplify::gen_1): Use it.
5041 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
5043         * match.pd (view_convert (convert@0 @1)): Handle zero-extension.
5045 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
5047         * match.pd ((A +- CST1) +- CST2): Allow some conversions.
5048         * tree.c (drop_tree_overflow): Handle COMPLEX_CST and VECTOR_CST.
5050 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
5052         * fold-const.c (fold_binary_loc) [(A & C) == D]: Remove transformation.
5053         * match.pd (X == C): Rewrite it here.
5054         (with_possible_nonzero_bits, with_possible_nonzero_bits2,
5055         with_certain_nonzero_bits2): New predicates.
5056         * tree-ssanames.c (get_nonzero_bits): Handle INTEGER_CST.
5058 2017-05-24  Nathan Sidwell  <nathan@acm.org>
5060         * lto-streamer-in.c (lto_input_data_block): Adjust T const cast to
5061         avoid warning.
5063         * auto-profile.c (afdo_propagate): Adjust T const cast to avoid
5064         warning.
5066 2017-05-24  Segher Boessenkool  <segher@kernel.crashing.org>
5068         * config/powerpcspe: New port.  Files are copied from the rs6000
5069         port, with "rs6000" in filenames replaced by "powerpcspe".
5071 2017-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
5073         PR rtl-optimization/80754
5074         * lra-remat.c (do_remat): Add overlap checks for dst_regno.
5076 2017-05-24  Sheldon Lobo  <smlobo@sheldon.us.oracle.com>
5078         * config/sparc/sparc.md (length): Return the correct value for -mflat
5079         sibcalls to match output_sibcall.
5081 2017-05-24  Segher Boessenkool  <segher@kernel.crashing.org>
5083         PR bootstrap/80860
5084         PR bootstrap/80843
5085         * config/rs6000/rs6000.c (struct machine_function): Add new field
5086         n_components.
5087         (rs6000_get_separate_components): Init that field, use it.
5088         (rs6000_components_for_bb): Use the field.
5090 2017-05-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5092         * config/arm/arm.c (arm_expand_prologue): Fix typo in comment.
5094 2017-05-24  Peter Bergner  <bergner@vnet.ibm.com>
5096         PR middle-end/80823
5097         * tree-cfg.c (group_case_labels_stmt): Delete increment of "i";
5099 2017-05-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5101         PR target/80725
5102         * config/s390/s390.c (s390_check_qrst_address): Check incoming
5103         address against address_operand predicate.
5104         * config/s390/s390.md ("*indirect_jump"): Swap alternatives.
5106 2017-05-24  Eric Botcazou  <ebotcazou@adacore.com>
5108         * var-tracking.c (track_expr_p): Do not return 0 for tracked record
5109         parameters passed indirectly.
5111 2017-05-23  Uros Bizjak  <ubizjak@gmail.com>
5113         * config/i386/i386.md (*movdi_internal): Remove SSE4
5114         alternative 18 (?r, *v).  Update insn attributes.
5115         (*movsi_internal): Remove SSE4 alternative 13 (?r, *v).
5116         Update insn attributes.
5117         (*zero_extendsidi2): Remove SSE4 alternative (?r, *x).
5118         Update insn attributes.
5119         * config/i386/sse.md (vec_extract<ssevecmodelower>_0): Remove SSE4
5120         alternative 1 (r, v). Remove isa attribute.
5121         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
5122         Always move value through stack for !TARGET_INTER_UNIT_MOVES_TO_VEC
5123         and !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
5125 2017-05-23  Tom de Vries  <tom@codesourcery.com>
5127         * doc/sourcebuild.texi (Directives, Verify compiler message): Document
5128         dg-line directive.
5130 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
5132         * cgraphunit.c (symbol_table::process_new_functions): Update.
5133         * ipa-fnsummary.c (pass_data_inline_parameters): Remove.
5134         (inline_generate_summary): Rename to ...
5135         (ipa_fn_summary_generate): ... this one.
5136         (inline_read_summary): Rename to ...
5137         (ipa_fn_summary_read): ... this one.
5138         (inline_write_summary): Rename to ...
5139         (ipa_fn_summary_write): ... this one.
5140         (inline_free_summary): Rename to ...
5141         (ipa_free_fn_summary): ... this one.
5142         (pass_data_local_fn_summary, pass_local_fn_summary,
5143         make_pass_local_fn_summary, pass_data_ipa_free_fn_summary,
5144         pass_ipa_free_fn_summary, make_pass_ipa_free_fn_summary,
5145         pass_data_ipa_fn_summary, pass_ipa_fn_summary,
5146         make_pass_ipa_fn_summary): New.
5147         * ipa-fnsummary.h (inline_generate_summary, inline_read_summary,
5148         inline_write_summary, inline_free_summary): Remove.
5149         (ipa_free_fn_summary) : New.
5150         * ipa-inline.c (ipa_inline): Update.
5151         (pass_ipa_inline): Do not generate summaries.
5152         * ipa.c (pass_data_ipa_free_fn_summary, pass_ipa_free_fn_summary):
5153         Remove.
5154         * passes.def: Replace pass_inline_parameters by pass_local_fn_summary
5155         and add pass_ipa_fn_summary.
5156         * tree-pass.h (make_pass_ipa_fn_summary, make_pass_local_fn_summary):
5157         New.
5158         (make_pass_inline_parameters): Remove.
5160 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
5162         * omp-low.c (struct omp_context): Remove "default_kind" member.
5163         Adjust all users.
5165         * omp-offload.c (execute_oacc_device_lower): Remove the
5166         parallelism dimensions function attributes for unparallelized
5167         OpenACC kernels constructs.
5169 2017-05-23  Martin Liska  <mliska@suse.cz>
5171         * cgraph.c (cgraph_node::get_create): Use symtab_node::dump_{asm_,}name
5172         functions.
5173         (cgraph_edge::make_speculative): Likewise.
5174         (cgraph_edge::resolve_speculation): Likewise.
5175         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5176         (cgraph_node::dump): Likewise.
5177         * cgraph.h: Likewise.
5178         * cgraphunit.c (analyze_functions): Likewise.
5179         (symbol_table::compile): Likewise.
5180         * ipa-cp.c (print_all_lattices): Likewise.
5181         (determine_versionability): Likewise.
5182         (initialize_node_lattices): Likewise.
5183         (ipcp_verify_propagated_values): Likewise.
5184         (estimate_local_effects): Likewise.
5185         (update_profiling_info): Likewise.
5186         (create_specialized_node): Likewise.
5187         (perhaps_add_new_callers): Likewise.
5188         (decide_about_value): Likewise.
5189         (decide_whether_version_node): Likewise.
5190         (identify_dead_nodes): Likewise.
5191         (ipcp_store_bits_results): Likewise.
5192         * ipa-devirt.c (dump_targets): Likewise.
5193         (ipa_devirt): Likewise.
5194         * ipa-icf.c (sem_item::dump): Likewise.
5195         (sem_function::equals): Likewise.
5196         (sem_variable::equals): Likewise.
5197         (sem_item_optimizer::read_section): Likewise.
5198         (sem_item_optimizer::execute): Likewise.
5199         (congruence_class::dump): Likewise.
5200         * ipa-inline-analysis.c (dump_ipa_call_summary): Likewise.
5201         (dump_inline_summary): Likewise.
5202         (estimate_node_size_and_time): Likewise.
5203         (inline_analyze_function): Likewise.
5204         * ipa-inline-transform.c (inline_call): Likewise.
5205         * ipa-inline.c (report_inline_failed_reason): Likewise.
5206         (want_early_inline_function_p): Likewise.
5207         (edge_badness): Likewise.
5208         (update_edge_key): Likewise.
5209         (inline_small_functions): Likewise.
5210         * ipa-profile.c (ipa_profile): Likewise.
5211         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
5212         (ipa_make_edge_direct_to_target): Likewise.
5213         (remove_described_reference): Likewise.
5214         (ipa_impossible_devirt_target): Likewise.
5215         (propagate_controlled_uses): Likewise.
5216         (ipa_print_node_params): Likewise.
5217         (ipcp_transform_function): Likewise.
5218         * ipa-pure-const.c (pure_const_read_summary): Likewise.
5219         (propagate_pure_const): Likewise.
5220         * ipa-reference.c (generate_summary): Likewise.
5221         (read_write_all_from_decl): Likewise.
5222         (propagate): Likewise.
5223         (ipa_reference_read_optimization_summary): Likewise.
5224         * ipa-utils.c (ipa_merge_profiles): Likewise.
5225         * ipa.c (walk_polymorphic_call_targets): Likewise.
5226         (symbol_table::remove_unreachable_nodes): Likewise.
5227         (ipa_single_use): Likewise.
5228         * passes.c (execute_todo): Likewise.
5229         * predict.c (drop_profile): Likewise.
5230         * symtab.c (symtab_node::get_dump_name): New function.
5231         (symtab_node::dump_name): Likewise.
5232         (symtab_node::dump_asm_name): Likewise.
5233         (symtab_node::dump_references): Likewise.
5234         (symtab_node::dump_referring): Likewise.
5235         (symtab_node::dump_base): Likewise.
5236         (symtab_node::debug_symtab): Likewise.
5237         * tree-sra.c (convert_callers_for_node): Likewise.
5238         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
5239         * value-prof.c (init_node_map): Likewise.
5241 2017-05-23  Martin Liska  <mliska@suse.cz>
5243         * cgraph.h: Move symtab_node::dump_table to symbol_table::dump
5244         and symtab_node::debug_symtab to symbol_table::debug.
5245         * cgraphunit.c (analyze_functions): Use the renamed function.
5246         (symbol_table::compile): Likewise.
5247         * ipa-cp.c (ipcp_verify_propagated_values): Likewise.
5248         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
5249         * passes.c (execute_todo): Likewise.
5250         * symtab.c (symbol_table::dump): New function.
5251         * tree-ssa-structalias.c (ipa_pta_execute): Use the renamed function.
5253 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
5255         * ipa-fnsummary.c (estimate_node_size_and_time): Do not sanity check
5256         that nonconst implies exec.
5258 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
5260         * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
5261         inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
5262         (inline_edge_summary_vec): Turn into ...
5263         (ipa_call_summaries): ... this one.
5264         (redirect_to_unreachable, edge_set_predicate,
5265         evaluate_properties_for_edge, inline_summary_alloc,
5266         reset_ipa_call_summary, reset_inline_summary,
5267         inline_summary_t::duplicate): Update.
5268         (inline_edge_duplication_hook): Turn to ...
5269         (ipa_call_summary_t::duplicate): ... this one.
5270         (inline_edge_removal_hook): Turn to ...
5271         (ipa_call_summary_t::remove): ... this one.
5272         (dump_inline_edge_summary): Turn to ...
5273         (dump_ipa_call_summary): ... this one.
5274         (estimate_function_body_sizes): Update.
5275         (inline_update_callee_summaries): Update.
5276         (remap_edge_change_prob): Update.
5277         (remap_edge_summaries): Update.
5278         (inline_merge_summary): Update.
5279         (do_estimate_edge_time): Update.
5280         (inline_generate_summary): Update.
5281         (inline_read_section): Update.
5282         (inline_read_summary): Update.
5283         (inline_free_summary): Update.
5284         * ipa-inline.c (can_inline_edge_p): Update.
5285         (compute_inlined_call_time): Update.
5286         (want_inline_small_function_p): Update.
5287         (edge_badness): Update.
5288         (early_inliner): Update.
5289         * ipa-inline.h (inline_edge_summary): Turn to ...
5290         (ipa_call_summary): ... this one.
5291         (ipa_call_summary_t): New class.
5292         (inline_edge_summary_t, inline_edge_summary_vec): Remove.
5293         (ipa_call_summaries): New.
5294         (inline_edge_summary): Remove.
5295         (estimate_edge_growth): Update.
5296         * ipa-profile.c (ipa_propagate_frequency_1): Update.
5297         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
5298         * ipa-split.c (execute_split_functions): Update.
5299         * ipa.c (symbol_table::remove_unreachable_nodes): Update.
5301 2017-05-23  Tom de Vries  <tom@codesourcery.com>
5303         * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
5304         attributes): Document rdrand effective target.
5306 2017-05-23  Tom de Vries  <tom@codesourcery.com>
5308         * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
5309         attributes): Sort alphabetically.
5311 2017-05-23  Georg-Johann Lay  <avr@gjlay.de>
5313         * config/avr/genmultilib.awk: Use gsub instead of gensub.
5315 2017-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
5317         PR target/80718
5318         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Split
5319         V2DF/V2DI splat into two separate patterns, one that handles
5320         registers, and the other that only handles memory.  Drop support
5321         for splatting from a GPR on ISA 2.07 and then splitting the
5322         splat into direct move and splat.
5323         (vsx_splat_<mode>_reg): Likewise.
5324         (vsx_splat_<mode>_mem): Likewise.
5326 2017-05-22  Segher Boessenkool  <segher@kernel.crashing.org>
5328         * cfgcleanup.c (bb_is_just_return): Allow CLOBBERs.
5330 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
5332         PR middle-end/80809
5333         * omp-low.c (finish_taskreg_remap): New function.
5334         (finish_taskreg_scan): If unit size of ctx->record_type
5335         is non-constant, unshare the size expression and replace
5336         decls in it with possible outer var refs.
5338         PR middle-end/80809
5339         * gimplify.c (omp_add_variable): For GOVD_DEBUG_PRIVATE use
5340         GOVD_SHARED rather than GOVD_PRIVATE with it.
5341         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Expect
5342         GOVD_SHARED rather than GOVD_PRIVATE with GOVD_DEBUG_PRIVATE.
5344         PR middle-end/80853
5345         * omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
5346         as last argument to build_outer_var_ref for pointer bases of array
5347         section reductions.
5349 2017-05-19  Martin Sebor  <msebor@redhat.com>
5351         * print-tree.c (print_node): Print DECL_READ_P flag.
5353 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
5355         * Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h
5356         * auto-profile.c: Replace ipa-inline.h by ipa-fnsummary.h
5357         * cgraph.c: Likewise.
5358         * cgraphunit.c: Likewise.
5359         * gengtype.c: Likewise.
5360         * ipa-cp.c: Likewise.
5361         * ipa-devirt.c: Likewise.
5362         * ipa-icf.c: Likewise.
5363         * ipa-predicate.c: Likewise.
5364         * ipa-profile.c: Likewise.
5365         * ipa-prop.c: Likewise.
5366         * ipa-split.c: Likewise.
5367         * ipa.c: Likewise.
5368         * ipa-inline-analysis.c (inline_summaries, ipa_call_summaries,
5369         edge_predicate_pool, dump_inline_hints,
5370         inline_summary::account_size_time, redirect_to_unreachable,
5371         edge_set_predicate, set_hint_predicate,
5372         evaluate_conditions_for_known_args, evaluate_properties_for_edge,
5373         inline_summary_alloc, ipa_call_summary::reset, inline_summary::reset,
5374         inline_summary_t::remove, remap_hint_predicate_after_duplication,
5375         inline_summary_t::duplicate, ipa_call_summary_t::duplicate,
5376         ipa_call_summary_t::remove, initialize_growth_caches,
5377         free_growth_caches, dump_ipa_call_summary, dump_inline_summary,
5378         debug_inline_summary, dump_inline_summaries, initialize_inline_failed,
5379         mark_modified, unmodified_parm_1, unmodified_parm,
5380         unmodified_parm_or_parm_agg_item, eliminated_by_inlining_prob,
5381         set_cond_stmt_execution_predicate, set_switch_stmt_execution_predicate,
5382         compute_bb_predicates, will_be_nonconstant_expr_predicate,
5383         will_be_nonconstant_predicate, record_modified_bb_info,
5384         get_minimal_bb, record_modified, param_change_prob,
5385         phi_result_unknown_predicate, predicate_for_phi_result,
5386         array_index_predicate, clobber_only_eh_bb_p, fp_expression_p,
5387         estimate_function_body_sizes, compute_inline_parameters,
5388         compute_inline_parameters_for_curren, pass_data_inline_parameters,
5389         estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,
5390         inline_update_callee_summaries, remap_edge_change_prob,
5391         remap_edge_summaries, remap_hint_predicate, inline_merge_summary,
5392         inline_update_overall_summary, inline_indirect_intraprocedural_analysis,
5393         inline_analyze_function, inline_summary_t::insert,
5394         inline_generate_summary, read_ipa_call_summary, inline_read_section,
5395         inline_read_summary, write_ipa_call_summary, inline_write_summary,
5396         inline_free_summary): Move to ipa-fnsummary.h
5397         (predicate_t): Remove.
5398         * ipa-fnsummary.c: New file.
5399         * ipa-inline.h:  Do not include sreal.h and ipa-predicate.h
5400         (enum inline_hints_vals, inline_hints, agg_position_info,
5401         INLINE_SIZE_SCALE, size_time_entry, inline_summary, inline_summary_t,
5402         inline_summaries, ipa_call_summary, ipa_call_summary_t,
5403         ipa_call_summaries, debug_inline_summary, dump_inline_summaries,
5404         dump_inline_summary, dump_inline_hints, inline_generate_summary,
5405         inline_read_summary, inline_write_summary, inline_free_summary,
5406         inline_analyze_function, initialize_inline_failed,
5407         inline_merge_summary, inline_update_overall_summary,
5408         compute_inline_parameters): Move to ipa-fnsummary.h
5409         * ipa-fnsummary.h: New file.
5410         * ipa-inline-transform.h: Include ipa-inline.h.
5411         * ipa-inline.c: LIkewise.
5413 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
5415         * ipa-inline.c (edge_badness): Use inlined_time instead of
5416         inline_summaries->get.
5418 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
5420         * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
5422 2017-05-22  Nathan Sidwell  <nathan@acm.org>
5424         * doc/invoke.texi (fdump-translation-unit): Delete documentation.
5425         (fdump-lang): Document 'raw' option.
5426         * dumpfile.h (TDI_tu): Delete.
5427         * dumpfile.c (dump_files): Remove translation-unit.
5428         (FIRST_AUTO_NUMBERED_DUMP): Decrement.
5430 2017-05-22  Georg-Johann Lay  <avr@gjlay.de>
5432         * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
5433         command option from $(AWK) call.
5434         * config/avr/genmultilib.awk: Simplify and rewrite so that it
5435         generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
5436         [FORMAT]: Remove handling of variable.
5437         * config/avr/t-multilib: Regenerate.
5439 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
5441         * ipa-inline-analysis.c (inline_summary::reset): Do not reset
5442         self_time.
5443         (dump_inline_summary): Do not print self_time.
5444         (estimate_function_body_sizes): Do not set self_time.
5445         (compute_inline_parameters): Likewise.
5446         (inline_read_section, inline_write_summary): Do not stream self_time.
5447         * ipa-inline.h (inline_summary): Drop self_time.
5449 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
5451         * ipa-inline-analysis.c (account_size_time): Rename to ...
5452         (inline_summary::account_size_time): ... this one.
5453         (reset_ipa_call_summary): Turn to ...
5454         (ipa_call_summary::reset): ... this one.
5455         (reset_inline_summary): Turn to ...
5456         (inline_summary::reset): ... this one.
5457         (inline_summary_t::remove): Update.
5458         (inline_summary_t::duplicate): Update.
5459         (ipa_call_summary_t::remove): Update.
5460         (dump_inline_summary): Update.
5461         (estimate_function_body_sizes): Update.
5462         (compute_inline_parameters): Update.
5463         (estimate_node_size_and_time): Update.
5464         (inline_merge_summary): Update.
5465         (inline_update_overall_summary): Update.
5466         (inline_read_section): Update.
5467         (inline_write_summary): Update.
5468         * ipa-inline.h (inline_summary): Rename entry to size_time_table;
5469         add account_size_time and reset member functions.
5470         (ipa_call_summary): Add reset function.
5471         * ipa-predicate.h (predicate::operator &): Constify.
5473 2017-05-22  Richard Biener  <rguenther@suse.de>
5475         * df-scan.c (df_insn_refs_verify): Speedup when not verifying.
5477 2017-05-19  Jason Merrill  <jason@redhat.com>
5479         * tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
5481 2017-05-19  Marek Polacek  <polacek@redhat.com>
5483         PR sanitizer/80800
5484         * fold-const.c (extract_muldiv_1) <case TRUNC_DIV_EXPR>: Add
5485         TYPE_OVERFLOW_WRAPS checks.
5487 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
5489         * tree-core.h (enum omp_clause_default_kind): Add
5490         "OMP_CLAUSE_DEFAULT_PRESENT".
5491         * tree-pretty-print.c (dump_omp_clause): Handle it.
5492         * gimplify.c (enum gimplify_omp_var_data): Add
5493         "GOVD_MAP_FORCE_PRESENT".
5494         (gimplify_adjust_omp_clauses_1): Map it to
5495         "GOMP_MAP_FORCE_PRESENT".
5496         (oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
5498         * gimplify.c (oacc_default_clause): Clarify.
5500 2017-05-19  Nathan Sidwell  <nathan@acm.org>
5502         LANG_HOOK_REGISTER_DUMPS
5503         * toplev.c (general_init): Call register dump lang hook.
5504         * doc/invoke.texi: Document -fdump-lang option family.
5505         * dumpfile.c (dump_files): Remove class dump here.
5506         (FIRST_AUTO_NUMBERED_DUMP): Adjust.
5507         * dumpfile.h (tree_dump_index): Remove TDI_class.
5508         * langhooks-def.h (lhd_register_dumps): Declare.
5509         (LANG_HOOKS_REGISTER_DUMPS): Define.
5510         (LANG_HOOKS_INITIALIZER): Add it.
5511         * langhooks.c (lhd_register_dumps): Define.
5512         * langhooks.h (struct lang_hooks): Add register_dumps.
5514 2017-05-19  Nathan Sidwell  <nathan@acm.org>
5516         * context.h (context::set_passes): New.
5517         * context.c (context::context): Do not create pass manager.
5518         * toplev.c (general_init): Create pass manager here.
5520 2017-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
5522         * config/rs6000/rs6000.md (splitter to load of -1 and mask): Don't
5523         use this splitter if two add or or instructions would also work for
5524         the constant we want to generate.
5526 2017-05-19  Richard Biener  <rguenther@suse.de>
5528         PR build/80821
5529         * genmatch.c (dt_node::gen_kids_1): Add missing scope around
5530         predicate evaluation.
5532 2017-05-19  Jan Hubicka  <hubicka@ucw.cz>
5534         * ipa-inline.h (ipa_call_summary): Turn sizes into signed;
5535         add ctor.
5536         * ipa-inline.c (want_inline_small_function_p): Do not cast to
5537         unsigned.
5539 2017-05-19  Jan Hubicka  <hubicka@ucw.cz>
5541         * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
5542         inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
5543         (inline_edge_summary_vec): Turn into ...
5544         (ipa_call_summaries): ... this one.
5545         (redirect_to_unreachable, edge_set_predicate,
5546         evaluate_properties_for_edge, inline_summary_alloc,
5547         reset_ipa_call_summary, reset_inline_summary,
5548         inline_summary_t::duplicate): Update.
5549         (inline_edge_duplication_hook): Turn to ...
5550         (ipa_call_summary_t::duplicate): ... this one.
5551         (inline_edge_removal_hook): Turn to ...
5552         (ipa_call_summary_t::remove): ... this one.
5553         (dump_inline_edge_summary): Turn to ...
5554         (dump_ipa_call_summary): ... this one.
5555         (estimate_function_body_sizes): Update.
5556         (inline_update_callee_summaries): Update.
5557         (remap_edge_change_prob): Update.
5558         (remap_edge_summaries): Update.
5559         (inline_merge_summary): Update.
5560         (do_estimate_edge_time): Update.
5561         (inline_generate_summary): Update.
5562         (inline_read_section): Update.
5563         (inline_read_summary): Update.
5564         (inline_free_summary): Update.
5565         * ipa-inline.c (can_inline_edge_p): Update.
5566         (compute_inlined_call_time): Update.
5567         (want_inline_small_function_p): Update.
5568         (edge_badness): Update.
5569         (early_inliner): Update.
5570         * ipa-inline.h (inline_edge_summary): Turn to ...
5571         (ipa_call_summary): ... this one.
5572         (ipa_call_summary_t): New class.
5573         (inline_edge_summary_t, inline_edge_summary_vec): Remove.
5574         (ipa_call_summaries): New.
5575         (inline_edge_summary): Remove.
5576         (estimate_edge_growth): Update.
5577         * ipa-profile.c (ipa_propagate_frequency_1): Update.
5578         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
5579         * ipa-split.c (execute_split_functions): Update.
5580         * ipa.c (symbol_table::remove_unreachable_nodes): Update.
5582 2017-05-19  Richard Biener  <rguenther@suse.de>
5584         PR middle-end/80764
5585         * cfgexpand.c (expand_gimple_cond): Fix loop fixup.
5587 2017-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
5589         * config/rs6000/rs6000.c (struct machine_function): Add field
5590         fpr_is_wrapped_separately.
5591         (rs6000_get_separate_components): Use 64 components.  Handle the
5592         new FPR components.
5593         (rs6000_components_for_bb): Handle the FPR components.
5594         (rs6000_emit_prologue_components): Handle the FPR components.
5595         (rs6000_emit_epilogue_components): Handle the FPR components.
5596         (rs6000_set_handled_components): Handle the FPR components.
5597         (rs6000_emit_prologue): Don't output prologue code for those FPRs
5598         that are already separately shrink-wrapped.
5599         (rs6000_emit_epilogue): Don't output epilogue code for those FPRs
5600         that are already separately shrink-wrapped.
5602 2017-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
5604         PR target/80510
5605         * config/rs6000/predicates.md (simple_offsettable_mem_operand):
5606         New predicate.
5608         * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
5609         (define_peephole2 for Altivec d-form load): Add peepholes to catch
5610         cases where the register allocator uses a move and an offsettable
5611         memory operation to/from a FPR register on ISA 2.06/2.07.
5612         (define_peephole2 for Altivec d-form store): Likewise.
5614 2017-05-18  Uros Bizjak  <ubizjak@gmail.com>
5616         PR target/80799
5617         * config/i386/mmx.md (*mov<mode>_internal): Enable
5618         alternatives 11, 12, 13 and 14 also for 32bit targets.
5619         Remove alternatives 15, 16, 17 and 18.
5620         * config/i386/sse.md (vec_concatv2di): Change
5621         alternative (!x, *y) to (x, ?!*Yn).
5623 2017-05-18  Paolo Carlini  <paolo.carlini@oracle.com>
5625         * dumpfile.h (enum dump_kind): Remove stray comma.
5627 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
5629         * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
5630         * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
5631         predicate::num_conditions
5632         (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
5633         (CHANGED): turn into predicate::changed.
5634         (agg_position_info): Move to ipa-predicate.h
5635         (add_condition, predicate::add_clause, predicate::operator &=,
5636         predicate::or_with, predicate::evaluate, predicate::probability,
5637         dump_condition, dump_clause, predicate::dump,
5638         predicate::remap_after_duplication, predicate::remap_after_inlining,
5639         predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
5640         (evaluate_conditions_for_known_args): Update.
5641         (set_cond_stmt_execution_predicate): Update.
5642         * ipa-inline.h: Include ipa-predicate.h
5643         (condition, inline_param_summary, conditions, agg_position_info,
5644         predicate): Move to ipa-predicate.h
5645         * ipa-predicate.c: New file.
5646         * ipa-predicate.h: New file.
5648 2017-05-18  Wilco Dijkstra  <wdijkstr@arm.com>
5650         * final.c (leaf_function_p): Check we are not in a sequence.
5652 2017-05-18  Martin Liska  <mliska@suse.cz>
5654         * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
5655         * dumpfile.c (dump_register): Use new enum dump_kind.
5656         (get_dump_file_name): Likewise.
5657         (dump_enable_all): Likewise.
5658         (dump_switch_p_1): Likewise.
5659         (enable_rtl_dump_file): Remove usage of TDF_RTL.
5660         * dumpfile.h (enum dump_kind): New enum type.
5661         (struct dump_file_info): Create constructor and
5662         format fields and comments.
5663         * passes.c (pass_manager::register_one_dump_file):
5664         Use num dump_kind.
5665         * statistics.c (statistics_early_init): Likewise.
5666         * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
5667         TDF_TREE with TDF_SLIM.
5668         (gather_memory_references_ref): Likewise.
5670 2017-05-18  Martin Liska  <mliska@suse.cz>
5672         * vec.h (struct vnull): Use it.
5674 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
5676         * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
5677         (true_predicate, false_predicate, true_predicate_p,
5678         false_predicate_p): Remove.
5679         (single_cond_predicate, not_inlined_predicate): Turn to member function
5680         in ipa-inline.h
5681         (add_condition): Update.
5682         (add_clause): Turn to...
5683         (predicate::add_clause): ... this one; update; allow passing NULL
5684         as parameter.
5685         (and_predicates): Turn to ...
5686         (predicate::operator &=): ... this one.
5687         (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
5688         (or_predicates): Turn to ...
5689         (predicate::or_with): ... this one.
5690         (evaluate_predicate): Turn to ...
5691         (predicate::evaluate): ... this one.
5692         (predicate_probability): Turn to ...
5693         (predicate::probability): ... this one.
5694         (dump_condition): Update.
5695         (dump_predicate): Turn to ...
5696         (predicate::dump): ... this one.
5697         (account_size_time): Update.
5698         (edge_set_predicate): Update.
5699         (set_hint_predicate): UPdate.
5700         (evaluate_conditions_for_known_args): Update.
5701         (evaluate_properties_for_edge): Update.
5702         (remap_predicate_after_duplication): Turn to...
5703         (predicate::remap_after_duplication): ... this one.
5704         (remap_hint_predicate_after_duplication): Update.
5705         (inline_summary_t::duplicate): UPdate.
5706         (dump_inline_edge_summary): Update.
5707         (dump_inline_summary): Update.
5708         (set_cond_stmt_execution_predicate): Update.
5709         (set_switch_stmt_execution_predicate): Update.
5710         (compute_bb_predicates): Update.
5711         (will_be_nonconstant_expr_predicate): Update.
5712         (will_be_nonconstant_predicate): Update.
5713         (phi_result_unknown_predicate): Update.
5714         (predicate_for_phi_result): Update.
5715         (array_index_predicate): Update.
5716         (estimate_function_body_sizes): Update.
5717         (estimate_node_size_and_time): Update.
5718         (estimate_ipcp_clone_size_and_time): Update.
5719         (remap_predicate): Rename to ...
5720         (predicate::remap_after_inlining): ... this one.
5721         (remap_hint_predicate): Update.
5722         (inline_merge_summary): Update.
5723         (inline_update_overall_summary): Update.
5724         (estimate_size_after_inlining): Update.
5725         (read_predicate): Rename to ...
5726         (predicate::stream_in): ... this one.
5727         (read_inline_edge_summary): Update.
5728         (write_predicate): Rename to ...
5729         (predicate::stream_out): ... this one.
5730         (write_inline_edge_summary): Update.
5731         * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
5732         (clause_t): Turn to uint32_t
5733         (predicate): Turn to class; implement constructor and operators
5734         ==, !=, &
5735         (size_time_entry): Update.
5736         (inline_summary): Update.
5737         (inline_edge_summary): Update.
5739 2017-05-18  Marc Glisse  <marc.glisse@inria.fr>
5741         * fold-const.c (fold_binary_loc): Move transformation...
5742         * match.pd (C - X CMP X): ... here.
5744 2017-05-18  Sheldon Lobo  <sheldon.lobo@oracle.com>
5746         * config/sparc/sparc.c (sparc_option_override): Set function
5747         alignment for -mcpu=niagara7 to 64 to match the I$ line.
5748         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
5749         latency to 1.
5750         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
5751         latency to 2.
5752         * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
5754 2017-05-18  Marek Polacek  <polacek@redhat.com>
5756         PR sanitizer/80797
5757         * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
5758         (pass_ubsan::execute): Call gimple_assign_single_p instead of
5759         gimple_assign_load_p.
5761 2017-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
5763         PR middle-end/80692
5764         * real.c (do_compare): Give decimal_do_compare preference over
5765         comparing just the signs.
5767 2017-05-17  Uros Bizjak  <ubizjak@gmail.com>
5769         * doc/md.texi (Canonicalization of Instructions): Describe the
5770         canonical form of instructions that inherently set a condition
5771         code register.
5773 2017-05-17  Peter Bergner  <bergner@vnet.ibm.com>
5775         PR middle-end/80775
5776         * tree-cfg.c: Move deletion of unreachable case statements to after
5777         the merging of consecutive case labels.
5779 2017-05-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5781         * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
5782         readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
5783         restoring of callee-saved registers.
5785 2017-05-17  Eric Botcazou  <ebotcazou@adacore.com>
5787         * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
5788         * config/visium/visium.c (single_set_and_flags): Likewise.
5789         * config/visium/visium.md (Substitutions): Likewise.
5791 2017-05-17  Martin Liska  <mliska@suse.cz>
5793         * cfg.c: Introduce dump_flags_t type and
5794         use it instead of int type.
5795         * cfg.h: Likewise.
5796         * cfghooks.c: Likewise.
5797         * cfghooks.h (struct cfg_hooks): Likewise.
5798         * cfgrtl.c: Likewise.
5799         * cfgrtl.h: Likewise.
5800         * cgraph.c (cgraph_node::get_body): Likewise.
5801         * coretypes.h: Likewise.
5802         * domwalk.c: Likewise.
5803         * domwalk.h: Likewise.
5804         * dumpfile.c (struct dump_option_value_info): Likewise.
5805         (dump_enable_all): Likewise.
5806         (dump_switch_p_1): Likewise.
5807         (opt_info_switch_p): Likewise.
5808         * dumpfile.h (enum tree_dump_index): Likewise.
5809         (struct dump_file_info): Likewise.
5810         * genemit.c: Likewise.
5811         * generic-match-head.c: Likewise.
5812         * gengtype.c (open_base_files): Likewise.
5813         * gimple-pretty-print.c: Likewise.
5814         * gimple-pretty-print.h: Likewise.
5815         * graph.c (print_graph_cfg): Likewise.
5816         * graphite-scop-detection.c (dot_all_sese): Likewise.
5817         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
5818         * loop-unroll.c (report_unroll): Likewise.
5819         * passes.c (pass_manager::register_one_dump_file): Likewise.
5820         * print-tree.c: Likewise.
5821         * statistics.c: Likewise.
5822         * tree-cfg.c: Likewise.
5823         * tree-cfg.h: Likewise.
5824         * tree-dfa.c: Likewise.
5825         * tree-dfa.h: Likewise.
5826         * tree-dump.c (dump_function): Likewise.
5827         * tree-dump.h (struct dump_info): Likewise.
5828         * tree-pretty-print.c: Likewise.
5829         * tree-pretty-print.h: Likewise.
5830         * tree-ssa-live.c: Likewise.
5831         * tree-ssa-live.h: Likewise.
5832         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
5833         * tree-vect-loop.c: Likewise.
5834         * tree-vect-slp.c: Likewise.
5836 2017-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
5837             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5839         PR tree-optimization/80457
5840         * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
5841         of all arguments to a statement as scalar_to_vec operations.
5842         (vectorizable_call): Adjust call to vect_model_simple_cost for
5843         new parameter.
5844         (vectorizable_conversion): Likewise.
5845         (vectorizable_assignment): Likewise.
5846         (vectorizable_shift): Likewise.
5847         (vectorizable_operation): Likewise.
5848         (vectorizable_comparison): Likewise.
5849         (vect_is_simple_cond): Record the def types for operands.
5850         (vectorizable_condition): Likewise, call vect_model_simple_cost.
5851         * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
5852         for statement argument count.
5854 2017-05-16  Carl Love  <cel@us.ibm.com>
5856         * config/rs6000/rs6000-c: Add support for built-in functions
5857         vector unsigned long long vec_bperm (vector unsigned long long,
5858                                              vector unsigned char)
5859         vector signed long long vec_mule (vector signed int,
5860                                           vector signed int)
5861         vector unsigned long long vec_mule (vector unsigned int,
5862                                             vector unsigned int)
5863         vector signed long long vec_mulo (vector signed int,
5864                                           vector signed int)
5865         vector unsigned long long vec_mulo (vector unsigned int,
5866                                             vector unsigned int)
5867         vector signed char vec_sldw (vector signed char,
5868                                      vector signed char,
5869                                      const int)
5870         vector unsigned char vec_sldw (vector unsigned char,
5871                                        vector unsigned char,
5872                                        const int)
5873         vector signed short vec_sldw (vector signed short,
5874                                       vector signed short,
5875                                       const int)
5876         vector unsigned short vec_sldw (vector unsigned short,
5877                                         vector unsigned short,
5878                                         const int)
5879         vector signed int vec_sldw (vector signed int,
5880                                     vector signed int,
5881                                     const int)
5882         vector unsigned int vec_sldw (vector unsigned int,
5883                                       vector unsigned int,
5884                                       const int)
5885         vector signed long long vec_sldw (vector signed long long,
5886                                           vector signed long long,
5887                                           const int)
5888         vector unsigned long long vec_sldw (vector unsigned long long,
5889                                             vector unsigned long long,
5890                                             const int)
5891         * config/rs6000/rs6000-c: Add support for built-in functions
5892         * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
5893         * config/rs6000/altivec.h: Add defintion for vec_sldw.
5894         * doc/extend.texi: Update the built-in documentation for the
5895         new built-in functions.
5897 2017-05-16  Marek Polacek  <polacek@redhat.com>
5899         PR sanitizer/80536
5900         PR sanitizer/80386
5901         * tree.c (save_expr): Don't fold the expression.
5903 2017-05-16  Uros Bizjak  <ubizjak@gmail.com>
5905         * config/i386/i386.md (*movsi_internal): Split (?rm,*y) alternative
5906         to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
5907         and (?*y,m).  Update insn attributes.
5909 2017-05-16  Martin Liska  <mliska@suse.cz>
5911         * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
5912         flags argument of print_gimple_stmt, print_gimple_expr,
5913         print_generic_stmt and print_generic_expr.
5914         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
5915         * coretypes.h: Likewise.
5916         * except.c (dump_eh_tree): Likewise.
5917         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
5918         * gimple-pretty-print.h: Likewise.
5919         * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
5920         (backprop::push_to_worklist): Likewise.
5921         (backprop::pop_from_worklist): Likewise.
5922         (backprop::process_use): Likewise.
5923         (backprop::intersect_uses): Likewise.
5924         (note_replacement): Likewise.
5925         * gimple-ssa-store-merging.c
5926         (pass_store_merging::terminate_all_aliasing_chains): Likewise.
5927         (imm_store_chain_info::coalesce_immediate_stores): Likewise.
5928         (pass_store_merging::execute): Likewise.
5929         * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
5930         (ssa_base_cand_dump_callback): Likewise.
5931         (dump_incr_vec): Likewise.
5932         (replace_refs): Likewise.
5933         (replace_mult_candidate): Likewise.
5934         (create_add_on_incoming_edge): Likewise.
5935         (create_phi_basis): Likewise.
5936         (insert_initializers): Likewise.
5937         (all_phi_incrs_profitable): Likewise.
5938         (introduce_cast_before_cand): Likewise.
5939         (replace_one_candidate): Likewise.
5940         * gimplify.c (gimplify_expr): Likewise.
5941         * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
5942         (set_rename): Likewise.
5943         (rename_uses): Likewise.
5944         (copy_loop_phi_nodes): Likewise.
5945         (add_close_phis_to_merge_points): Likewise.
5946         (copy_loop_close_phi_args): Likewise.
5947         (copy_cond_phi_args): Likewise.
5948         (graphite_copy_stmts_from_block): Likewise.
5949         (translate_pending_phi_nodes): Likewise.
5950         * graphite-poly.c (print_pdr): Likewise.
5951         (dump_gbb_cases): Likewise.
5952         (dump_gbb_conditions): Likewise.
5953         (print_scop_params): Likewise.
5954         * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
5955         (build_cross_bb_scalars_use): Likewise.
5956         (gather_bbs::before_dom_children): Likewise.
5957         * hsa-dump.c (dump_hsa_immed): Likewise.
5958         * ipa-cp.c (print_ipcp_constant_value): Likewise.
5959         (get_replacement_map): Likewise.
5960         * ipa-inline-analysis.c (dump_condition): Likewise.
5961         (estimate_function_body_sizes): Likewise.
5962         * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
5963         (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
5964         * ipa-prop.c (ipa_dump_param): Likewise.
5965         (ipa_print_node_jump_functions_for_edge): Likewise.
5966         (ipa_modify_call_arguments): Likewise.
5967         (ipa_modify_expr): Likewise.
5968         (ipa_dump_param_adjustments): Likewise.
5969         (ipa_dump_agg_replacement_values): Likewise.
5970         (ipcp_modif_dom_walker::before_dom_children): Likewise.
5971         * ipa-pure-const.c (check_stmt): Likewise.
5972         (pass_nothrow::execute): Likewise.
5973         * ipa-split.c (execute_split_functions): Likewise.
5974         * omp-offload.c (dump_oacc_loop_part): Likewise.
5975         (dump_oacc_loop): Likewise.
5976         * trans-mem.c (tm_log_emit): Likewise.
5977         (tm_memopt_accumulate_memops): Likewise.
5978         (dump_tm_memopt_set): Likewise.
5979         (dump_tm_memopt_transform): Likewise.
5980         * tree-cfg.c (gimple_verify_flow_info): Likewise.
5981         (print_loop): Likewise.
5982         * tree-chkp-opt.c (chkp_print_addr): Likewise.
5983         (chkp_gather_checks_info): Likewise.
5984         (chkp_get_check_result): Likewise.
5985         (chkp_remove_check_if_pass): Likewise.
5986         (chkp_use_outer_bounds_if_possible): Likewise.
5987         (chkp_reduce_bounds_lifetime): Likewise.
5988         * tree-chkp.c (chkp_register_addr_bounds): Likewise.
5989         (chkp_mark_completed_bounds): Likewise.
5990         (chkp_register_incomplete_bounds): Likewise.
5991         (chkp_mark_invalid_bounds): Likewise.
5992         (chkp_maybe_copy_and_register_bounds): Likewise.
5993         (chkp_build_returned_bound): Likewise.
5994         (chkp_get_bound_for_parm): Likewise.
5995         (chkp_build_bndldx): Likewise.
5996         (chkp_get_bounds_by_definition): Likewise.
5997         (chkp_generate_extern_var_bounds): Likewise.
5998         (chkp_get_bounds_for_decl_addr): Likewise.
5999         * tree-chrec.c (chrec_apply): Likewise.
6000         * tree-data-ref.c (dump_data_reference): Likewise.
6001         (dump_subscript): Likewise.
6002         (dump_data_dependence_relation): Likewise.
6003         (analyze_overlapping_iterations): Likewise.
6004         * tree-inline.c (expand_call_inline): Likewise.
6005         (tree_function_versioning): Likewise.
6006         * tree-into-ssa.c (dump_defs_stack): Likewise.
6007         (dump_currdefs): Likewise.
6008         (dump_names_replaced_by): Likewise.
6009         (dump_update_ssa): Likewise.
6010         (update_ssa): Likewise.
6011         * tree-object-size.c (pass_object_sizes::execute): Likewise.
6012         * tree-parloops.c (build_new_reduction): Likewise.
6013         (try_create_reduction_list): Likewise.
6014         (ref_conflicts_with_region): Likewise.
6015         (oacc_entry_exit_ok_1): Likewise.
6016         (oacc_entry_exit_single_gang): Likewise.
6017         * tree-pretty-print.h: Likewise.
6018         * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
6019         (get_scalar_evolution): Likewise.
6020         (add_to_evolution): Likewise.
6021         (get_loop_exit_condition): Likewise.
6022         (analyze_evolution_in_loop): Likewise.
6023         (analyze_initial_condition): Likewise.
6024         (analyze_scalar_evolution): Likewise.
6025         (instantiate_scev): Likewise.
6026         (number_of_latch_executions): Likewise.
6027         (gather_chrec_stats): Likewise.
6028         (final_value_replacement_loop): Likewise.
6029         (scev_const_prop): Likewise.
6030         * tree-sra.c (dump_access): Likewise.
6031         (disqualify_candidate): Likewise.
6032         (create_access): Likewise.
6033         (reject): Likewise.
6034         (maybe_add_sra_candidate): Likewise.
6035         (create_access_replacement): Likewise.
6036         (analyze_access_subtree): Likewise.
6037         (analyze_all_variable_accesses): Likewise.
6038         (sra_modify_assign): Likewise.
6039         (initialize_constant_pool_replacements): Likewise.
6040         (find_param_candidates): Likewise.
6041         (decide_one_param_reduction): Likewise.
6042         (replace_removed_params_ssa_names): Likewise.
6043         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6044         * tree-ssa-copy.c (dump_copy_of): Likewise.
6045         (copy_prop_visit_cond_stmt): Likewise.
6046         * tree-ssa-dce.c (mark_operand_necessary): Likewise.
6047         * tree-ssa-dom.c (pass_dominator::execute): Likewise.
6048         (record_equivalences_from_stmt): Likewise.
6049         * tree-ssa-dse.c (compute_trims): Likewise.
6050         (delete_dead_call): Likewise.
6051         (delete_dead_assignment): Likewise.
6052         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
6053         (forward_propagate_into_cond): Likewise.
6054         (pass_forwprop::execute): Likewise.
6055         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
6056         * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
6057         Likewise.
6058         (move_computations_worker): Likewise.
6059         (execute_sm): Likewise.
6060         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
6061         (remove_exits_and_undefined_stmts): Likewise.
6062         (remove_redundant_iv_tests): Likewise.
6063         * tree-ssa-loop-ivopts.c (dump_use): Likewise.
6064         (adjust_iv_update_pos): Likewise.
6065         * tree-ssa-math-opts.c (bswap_replace): Likewise.
6066         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
6067         (value_replacement): Likewise.
6068         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
6069         * tree-ssa-pre.c (print_pre_expr): Likewise.
6070         (get_representative_for): Likewise.
6071         (create_expression_by_pieces): Likewise.
6072         (insert_into_preds_of_block): Likewise.
6073         (eliminate_insert): Likewise.
6074         (eliminate_dom_walker::before_dom_children): Likewise.
6075         (eliminate): Likewise.
6076         (remove_dead_inserted_code): Likewise.
6077         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
6078         * tree-ssa-reassoc.c (get_rank): Likewise.
6079         (eliminate_duplicate_pair): Likewise.
6080         (eliminate_plus_minus_pair): Likewise.
6081         (eliminate_not_pairs): Likewise.
6082         (undistribute_ops_list): Likewise.
6083         (eliminate_redundant_comparison): Likewise.
6084         (update_range_test): Likewise.
6085         (optimize_range_tests_var_bound): Likewise.
6086         (optimize_vec_cond_expr): Likewise.
6087         (rewrite_expr_tree): Likewise.
6088         (rewrite_expr_tree_parallel): Likewise.
6089         (linearize_expr): Likewise.
6090         (break_up_subtract): Likewise.
6091         (linearize_expr_tree): Likewise.
6092         (attempt_builtin_powi): Likewise.
6093         (attempt_builtin_copysign): Likewise.
6094         (transform_stmt_to_copy): Likewise.
6095         (transform_stmt_to_multiply): Likewise.
6096         (dump_ops_vector): Likewise.
6097         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
6098         (print_scc): Likewise.
6099         (set_ssa_val_to): Likewise.
6100         (visit_reference_op_store): Likewise.
6101         (visit_use): Likewise.
6102         (sccvn_dom_walker::before_dom_children): Likewise.
6103         (run_scc_vn): Likewise.
6104         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
6105         Likewise.
6106         (expr_hash_elt::print): Likewise.
6107         (const_and_copies::pop_to_marker): Likewise.
6108         (const_and_copies::record_const_or_copy_raw): Likewise.
6109         * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
6110         * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
6111         (dump_predicates): Likewise.
6112         (find_uninit_use): Likewise.
6113         (warn_uninitialized_phi): Likewise.
6114         (pass_late_warn_uninitialized::execute): Likewise.
6115         * tree-ssa.c (verify_vssa): Likewise.
6116         (verify_ssa): Likewise.
6117         (maybe_optimize_var): Likewise.
6118         * tree-vrp.c (dump_value_range): Likewise.
6119         (dump_all_value_ranges): Likewise.
6120         (dump_asserts_for): Likewise.
6121         (register_edge_assert_for_2): Likewise.
6122         (vrp_visit_cond_stmt): Likewise.
6123         (vrp_visit_switch_stmt): Likewise.
6124         (vrp_visit_stmt): Likewise.
6125         (vrp_visit_phi_node): Likewise.
6126         (simplify_cond_using_ranges_1): Likewise.
6127         (fold_predicate_in): Likewise.
6128         (evrp_dom_walker::before_dom_children): Likewise.
6129         (evrp_dom_walker::push_value_range): Likewise.
6130         (evrp_dom_walker::pop_value_range): Likewise.
6131         (execute_early_vrp): Likewise.
6133 2017-05-16  Richard Biener  <rguenther@suse.de>
6135         * dwarf2out.c (loc_list_from_tree_1): Do not create
6136         DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
6138 2017-05-16  Richard Biener  <rguenther@suse.de>
6140         * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
6141         just generated.
6142         (note_variable_value_in_expr): If we resolved the decl ref
6143         do not push to the stack.
6145 2017-05-16  Matthew Wahab  <matthew.wahab@arm.com>
6147         * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
6148         operations in fast-math mode.
6149         (vaddq_f16): Likewise.
6150         (vmul_f16): Likewise.
6151         (vmulq_f16): Likewise.
6152         (vsub_f16): Likewise.
6153         (vsubq_f16): Likewise.
6154         * config/arm/neon.md (add<mode>3): New.
6155         (sub<mode>3): New.
6156         (fma:<VH:mode>3): New.  Also remove outdated comment.
6157         (mul<mode>3): New.
6159 2017-05-16  Martin Liska  <mliska@suse.cz>
6161         PR ipa/79849.
6162         PR ipa/79850.
6163         * ipa-devirt.c (warn_types_mismatch): Fix typo.
6164         (odr_types_equivalent_p): Likewise.
6166 2017-05-15  Sylvestre Ledru  <sylvestre@debian.org>
6168         * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
6170 2017-05-15  Uros Bizjak  <ubizjak@gmail.com>
6172         PR target/80425
6173         * config/i386.i386.md (*zero_extendsidi2): Do not penalize
6174         non-interunit SSE move alternatives with '?'.
6175         (zero-extendsidi peephole2): New peephole to skip intermediate
6176         general register in SSE zero-extend sequence.
6178 2017-05-15  Jeff Law  <law@redhat.com>
6180         * reorg.c (relax_delay_slots): Create a new variable to hold
6181         the temporary target rather than clobbering TARGET_LABEL.
6183         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
6184         missing argument to extract_bit_field call.
6185         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
6187 2017-05-15  Martin Liska  <mliska@suse.cz>
6189         PR driver/31468
6190         * gcc.c (process_command): Do not allow empty argument of -o option.
6192 2017-05-15  Renlin Li  <renlin.li@arm.com>
6194         * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
6195         * config/aarch64/aarch64.c (aarch64_expand_call): Define.
6196         * config/aarch64/constraints.md (Usf): Add long call check.
6197         * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
6198         (call_value): Likewise.
6199         (sibcall): Likewise.
6200         (sibcall_value): Likewise.
6201         (call_insn): New.
6202         (call_value_insn): New.
6203         (sibcall_insn): Update rtx pattern.
6204         (sibcall_value_insn): Likewise.
6205         (call_internal): Remove.
6206         (call_value_internal): Likewise.
6207         (sibcall_internal): Likewise.
6208         (sibcall_value_internal): Likewise.
6209         (call_reg): Likewise.
6210         (call_symbol): Likewise.
6211         (call_value_reg): Likewise.
6212         (call_value_symbol): Likewise.
6214 2017-05-14  Krister Walfridsson  <krister.walfridsson@gmail.com>
6216         PR target/80600
6217         * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
6219 2017-05-14  Uros Bizjak  <ubizjak@gmail.com>
6221         * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
6222         compatible with CCGOCmode and with CCZmode.
6224 2017-05-14  Martin Sebor  <msebor@redhat.com>
6226         PR middle-end/77671
6227         * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
6228         (gimple_fold_builtin_snprintf): Same.
6229         * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
6230         (gimple_fold_builtin_snprintf): Same.
6231         * gimple-ssa-sprintf.c (get_format_string): Correct the detection
6232         of character types.
6233         (is_call_safe): New function.
6234         (try_substitute_return_value): Call it.
6235         (try_simplify_call): New function.
6236         (pass_sprintf_length::handle_gimple_call): Call it.
6238 2017-05-14  Martin Sebor  <msebor@redhat.com>
6240         PR middle-end/80669
6241         * builtins.c (expand_builtin_stpncpy): Simplify.
6243 2017-05-14  Daniel Santos  <daniel.santos@pobox.com>
6245         * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
6246         * config/i386/i386.h
6247         (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
6248         (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
6249         (struct machine_function): Add new members call_ms2sysv,
6250         call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
6251         (struct machine_frame_state): New fields sp_realigned and
6252         sp_realigned_offset.
6253         * config/i386/i386.c
6254         (enum xlogue_stub): New enum.
6255         (enum xlogue_stub_sets): New enum.
6256         (class xlogue_layout): New class.
6257         (struct ix86_frame): New fields stack_realign_allocate_offset,
6258         stack_realign_offset and outlined_save_offset.  Modify comments to
6259         detail stack layout when using out-of-line stubs.
6260         (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
6261         (ix86_option_override_internal): Add sorry() for TARGET_SEH and
6262         -mcall-ms2sysv-xlogues.
6263         (stub_managed_regs): New static variable.
6264         (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
6265         registers managed by out-of-line stub.
6266         (disable_call_ms2sysv_xlogues): New function.
6267         (ix86_compute_frame_layout): Modify re-alignment calculations, disable
6268         m->call_ms2sysv when appropriate and compute frame layout for
6269         out-of-line stubs.
6270         (sp_valid_at, fp_valid_at): New inline functions.
6271         (choose_basereg): New function.
6272         (choose_baseaddr): Add align parameter, use choose_basereg and modify
6273         all callers.
6274         (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
6275         Use align parameter of choose_baseaddr to generated aligned SSE movs
6276         when possible.
6277         (pro_epilogue_adjust_stack): Modify to track
6278         machine_frame_state::sp_realigned.
6279         (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
6280         (ix86_nsaved_sseregs): Likewise.
6281         (ix86_emit_save_regs): Likewise.
6282         (ix86_emit_save_regs_using_mov): Likewise.
6283         (ix86_emit_save_sse_regs_using_mov): Likewise.
6284         (get_scratch_register_on_entry): Likewise.
6285         (gen_frame_set): New function.
6286         (gen_frame_load): Likewise.
6287         (gen_frame_store): Likewise.
6288         (emit_outlined_ms2sysv_save): Likewise.
6289         (emit_outlined_ms2sysv_restore): Likewise.
6290         (ix86_expand_prologue): Modify stack re-alignment code and call
6291         emit_outlined_ms2sysv_save when appropriate.
6292         (ix86_emit_leave): Clear machine_frame_state::sp_realigned.  Add
6293         parameter rtx_insn *insn, which allows the function to be used to only
6294         generate the notes.
6295         (ix86_expand_epilogue): Modify validity checks of frame and stack
6296         pointers, and call emit_outlined_ms2sysv_restore when appropriate.
6297         (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
6298         * config/i386/predicates.md
6299         (save_multiple): New predicate.
6300         (restore_multiple): Likewise.
6301         * config/i386/sse.md
6302         (save_multiple<mode>): New pattern.
6303         (save_multiple_realign<mode>): Likewise.
6304         (restore_multiple<mode>): Likewise.
6305         (restore_multiple_and_return<mode>): Likewise.
6306         (restore_multiple_leave_return<mode>): Likewise.
6307         * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
6309 2017-05-14  Julia Koval  <julia.koval@intel.com>
6311         * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
6312         * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
6313         (__builtin_ia32_xsetbv): New builtins.
6314         * config/i386/i386.c (ix86_expand_special_args_builtin):
6315         Process new types.
6316         (ix86_expand_builtin): Special expand for new intrinsics.
6317         * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
6318         (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
6319         * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
6321 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6323         * cfganal.c (inverted_post_order_compute): Change argument type
6324         to vec *.
6325         * cfganal.h (inverted_post_order_compute): Adjust prototype.
6326         * df-core.c (rest_of_handle_df_initialize): Adjust.
6327         (rest_of_handle_df_finish): Likewise.
6328         (df_analyze_1): Likewise.
6329         (df_analyze): Likewise.
6330         (loop_inverted_post_order_compute): Change argument to be a vec *.
6331         (df_analyze_loop): Adjust.
6332         (df_get_n_blocks): Likewise.
6333         (df_get_postorder): Likewise.
6334         * df.h (struct df_d): Change field to be a vec.
6335         * lcm.c (compute_laterin): Adjust.
6336         (compute_available): Likewise.
6337         * lra-lives.c (lra_create_live_ranges_1): Likewise.
6338         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
6339         * tree-ssa-pre.c (compute_antic): Likewise.
6341 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6343         * cfganal.c (connect_infinite_loops_to_exit): Adjust.
6344         (depth_first_search::depth_first_search): Change structure init
6345         function to this constructor.
6346         (depth_first_search::add_bb): Rename function to this member.
6347         (depth_first_search::execute): Likewise.
6348         (flow_dfs_compute_reverse_finish): Adjust.
6350 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6352         * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
6353         (longest_simple_path): Likewise.
6354         * shrink-wrap.c (spread_components): Likewise.
6355         (disqualify_problematic_components): Likewise.
6356         (emit_common_heads_for_components): Likewise.
6357         (emit_common_tails_for_components): Likewise.
6358         (insert_prologue_epilogue_for_components): Likewise.
6360 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6362         * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
6363         auto_sbitmap.
6365 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6367         * df-core.c (df_set_blocks): Start using auto_bitmap.
6368         (df_compact_blocks): Likewise.
6369         * df-problems.c (df_rd_confluence_n): Likewise.
6370         * df-scan.c (df_insn_rescan_all): Likewise.
6371         (df_process_deferred_rescans): Likewise.
6372         (df_update_entry_block_defs): Likewise.
6373         (df_update_exit_block_uses): Likewise.
6374         (df_entry_block_bitmap_verify): Likewise.
6375         (df_exit_block_bitmap_verify): Likewise.
6376         (df_scan_verify): Likewise.
6377         * lra-constraints.c (lra_constraints): Likewise.
6378         (undo_optional_reloads): Likewise.
6379         (lra_undo_inheritance): Likewise.
6380         * lra-remat.c (calculate_gen_cands): Likewise.
6381         (do_remat): Likewise.
6382         * lra-spills.c (assign_spill_hard_regs): Likewise.
6383         (spill_pseudos): Likewise.
6384         * tree-ssa-pre.c (bitmap_set_and): Likewise.
6385         (bitmap_set_subtract_values): Likewise.
6387 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6389         * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
6390         management with auto_bitmap.
6391         (fix_inter_tick): Likewise.
6392         (fix_recovery_deps): Likewise.
6393         * ira.c (add_store_equivs): Likewise.
6394         (find_moveable_pseudos): Likewise.
6395         (split_live_ranges_for_shrink_wrap): Likewise.
6396         * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
6397         (rtx_reuse_manager::seen_def_p): Likewise.
6398         (rtx_reuse_manager::set_seen_def): Likewise.
6399         * print-rtl.h (class rtx_reuse_manager): Likewise.
6401 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6403         * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
6404         lifetime.
6405         (migrate_btr_def): Likewise.
6406         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
6407         * df-core.c (loop_post_order_compute): Likewise.
6408         (loop_inverted_post_order_compute): Likewise.
6409         * hsa-common.h: Likewise.
6410         * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
6411         * init-regs.c (initialize_uninitialized_regs): Likewise.
6412         * ipa-inline.c (resolve_noninline_speculation): Likewise.
6413         (inline_small_functions): Likewise.
6414         * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
6415         * ira.c (combine_and_move_insns): Likewise.
6416         (build_insn_chain): Likewise.
6417         * loop-invariant.c (find_invariants): Likewise.
6418         * lower-subreg.c (propagate_pseudo_copies): Likewise.
6419         * predict.c (tree_predict_by_opcode): Likewise.
6420         (predict_paths_leading_to): Likewise.
6421         (predict_paths_leading_to_edge): Likewise.
6422         (estimate_loops_at_level): Likewise.
6423         (estimate_loops): Likewise.
6424         * shrink-wrap.c (try_shrink_wrapping): Likewise.
6425         (spread_components): Likewise.
6426         * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
6427         * tree-loop-distribution.c (rdg_build_partitions): Likewise.
6428         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
6429         * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
6430         * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
6431         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
6432         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
6433         * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
6434         (mark_threaded_blocks): Likewise.
6435         (thread_through_all_blocks): Likewise.
6436         * tree-ssa.c (verify_ssa): Likewise.
6437         (execute_update_addresses_taken): Likewise.
6438         * tree-ssanames.c (verify_ssaname_freelists): Likewise.
6440 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6442         * cfganal.c (mark_dfs_back_edges): Replace manual stack with
6443         auto_vec.
6444         (post_order_compute): Likewise.
6445         (inverted_post_order_compute): Likewise.
6446         (pre_and_rev_post_order_compute_fn): Likewise.
6448 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6450         * genrecog.c (int_set::int_set): Explicitly construct our
6451         auto_vec base class.
6452         * vec.h (auto_vec::auto_vec): New constructor.
6454 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6456         * bitmap.h (class auto_bitmap): New constructor taking
6457         bitmap_obstack * argument.
6459 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6461         * bitmap.h (class auto_bitmap): Change type of m_bits to
6462         bitmap_head, and adjust ctor / dtor and member operators.
6464 2017-05-13  Uros Bizjak  <ubizjak@gmail.com>
6466         * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
6467         when returned register mode doesn't match original mode.
6469 2017-05-12  Jeff Law  <law@redhat.com>
6470             Jakub Jelinek  <jakub@redhat.com>
6472         * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
6473         we look for cc setter after the compare-elim changes.
6474         * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
6475         within the vector to match what compare-elim now expects.
6476         (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
6477         (xorsi3_flags, one_cmplsi2_flags): Likewise.
6479         * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
6480         after the compare-elim changes.
6481         * config/rx/rx.md (abssi2_flags): Fix order of patterns within
6482         the vector to match what compare-elim now expects.
6483         (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
6484         (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
6485         (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
6486         (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
6487         (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
6489         * config/visium/visium.c (single_set_and_flags): Fix where
6490         we look for cc setter after the compare-elim changes.
6491         * config/visium/visium.md (flags_subst_logic): Fix order of patterns
6492         with the vector to match what compare-elim now expects.
6493         (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
6494         (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
6495         (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
6496         (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
6497         (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
6498         (neg<mode>2_insn_set_overflow): Likewise.
6500 2017-05-12  Jim Wilson  <jim.wilson@linaro.org>
6502         PR middle-end/79794
6503         * expmed.c (extract_bit_field_1): Add alt_rtl argument.  Before
6504         maybe_expand_insn call, set ops[0].target.  If still set after call,
6505         set alt_rtl.  Add extra arg to recursive calls.
6506         (extract_bit_field): Add alt_rtl argument.  Pass to
6507         extract_bit_field.
6508         * expmed.h (extract_bit_field): Fix prototype.
6509         * expr.c (emit_group_load_1, copy_blkmode_from_reg)
6510         (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
6511         to extract_bit_field_calls.
6512         (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
6513         Pass alt_rtl to extract_bit_field calls.
6514         * calls.c (store_unaligned_arguments_into_psuedos)
6515         load_register_parameters): Pass extra NULL to extract_bit_field calls.
6516         * optabs.c (maybe_legitimize_operand): Clear op->target when call
6517         gen_reg_rtx.
6518         * optabs.h (struct expand_operand): Add target bitfield.
6520 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
6522         * compare-elim.c (try_eliminate_compare): Canonicalize
6523         operation with embedded compare to
6524         [(set (reg:CCM) (compare:CCM (operation) (immediate)))
6525          (set (reg) (operation)].
6527         * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
6529 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
6531         PR target/80723
6532         * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
6533         cost of adding a carry flag for ADC instruction.
6534         [case MINUS]: Ignore the cost of subtracting a carry flag
6535         for SBB instruction.
6537 2017-05-12  Steven Munroe  <munroesj@gcc.gnu.org>
6539         * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
6540         and x86intrin.h
6541         * config/rs6000/bmiintrin.h: New file.
6542         * config/rs6000/bmi2intrin.h: New file.
6543         * config/rs6000/x86intrin.h: New file.
6545 2017-05-12  Jeff Law  <law@redhat.com>
6547         * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
6548         markers.
6550 2017-05-12  Peter Bergner  <bergner@vnet.ibm.com>
6552         PR middle-end/80707
6553         * tree-cfg.c: Remove cfg edges of unreachable case statements.
6555 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
6557         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
6558         early expansion of vector divide builtins.
6559         (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
6560         builtins identified as having unsigned arguments.
6562 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
6564         * config/rs6000/rs6000.c (gimple-fold.h): New #include.
6565         (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
6566         expansion of vector logical operations (and, andc, or, xor,
6567         nor, orc, nand).
6569 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
6571         * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
6572         * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
6574 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
6576         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
6577         early GIMPLE expansion of vector multiplies.
6579 2017-05-12  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
6581         * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
6582         TARGET_HAVE_MOVT conditional.
6583         (movt splitter): Likewise.
6585 2017-05-12  Richard Biener  <rguenther@suse.de>
6587         * tree-ssa-sccvn.h (has_VN_INFO): Declare.
6588         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6589         Fold all stmts not inplace.
6591 2017-05-12  Richard Biener  <rguenther@suse.de>
6593         PR tree-optimization/80713
6594         * tree-ssa-pre.c (remove_dead_inserted_code): Clear
6595         inserted_exprs bit for not removed stmts.
6597 2017-05-12  Thomas Schwinge  <thomas@codesourcery.com>
6599         PR middle-end/69921
6600         * tree-parloops.c (create_parallel_loop): Set "oacc kernels
6601         parallelized" attribute for parallelized OpenACC kernels.
6602         * omp-offload.c (execute_oacc_device_lower): Use it.
6604         * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
6605         Set "oacc kernels" attribute.
6606         * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
6607         parameter.  Adjust all users.
6608         (oacc_fn_attrib_kernels_p): Remove function.
6609         * omp-offload.c (execute_oacc_device_lower): Look for "oacc
6610         kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
6611         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
6612         * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
6613         assert "oacc kernels" attribute is set.
6615 2017-05-11  Carl Love  <cel@us.ibm.com>
6617         * config/rs6000/rs6000-c: Add support for built-in functions
6618         vector unsigned char vec_popcnt (vector signed char)
6619         vector unsigned char vec_popcnt (vector unsigned char)
6620         vector unsigned short vec_popcnt (vector signed short)
6621         vector unsigned short vec_popcnt (vector unsigned short)
6622         vector unsigned int vec_popcnt (vector signed int)
6623         vector unsigned int vec_popcnt (vector unsigned int)
6624         vector unsigned long long vec_popcnt (vector signed long long)
6625         vector unsigned long long vec_popcnt (vector unsigned long long)
6626         vector signed long long vec_slo (vector signed long long,
6627                                          vector signed char)
6628         vector signed long long vec_slo (vector signed long long,
6629                                          vector unsigned char)
6630         vector unsigned long long vec_slo (vector unsigned long long,
6631                                            vector signed char)
6632         vector unsigned long long vec_slo (vector unsigned long long,
6633                                            vector unsigned char)
6634         * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
6635         VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
6636         * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
6637         vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
6638         * doc/extend.texi: Update the built-in documentation file for the
6639         new built-in functions.
6641 2017-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
6643         * attribs.h (sorted_attr_string): Move machine independent
6644         functions for target clone support from the i386 port to common
6645         code.  Rename ix86_function_versions to common_function_versions.
6646         Rename make_name to make_unique_name.
6647         (common_function_versions): Likewise.
6648         (make_unique_name): Likewise.
6649         (make_dispatcher_decl): Likewise.
6650         (is_function_default_version): Likewise.
6651         * attribs.c (attr_strcmp): Likewise.
6652         (sorted_attr_string): Likewise.
6653         (common_function_versions): Likewise.
6654         (make_unique_name): Likewise.
6655         (make_dispatcher_decl): Likewise.
6656         (is_function_default_version): Likewise.
6657         * config/i386/i386.c (attr_strcmp): Likewise.
6658         (sorted_attr_string): Likewise.
6659         (ix86_function_versions): Likewise.
6660         (make_name): Likewise.
6661         (make_dispatcher_decl): Likewise.
6662         (is_function_default_version): Likewise.
6663         (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
6665 2017-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6667         PR target/80695
6668         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
6669         Account for direct move costs for vec_construct of integer
6670         vectors.
6672 2017-05-11  Uros Bizjak  <ubizjak@gmail.com>
6674         PR target/80706
6675         * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
6676         (UNSPEC_STX_ATOMIC): Ditto.
6677         (loaddi_via_sse): New insn.
6678         (storedi_via_sse): Ditto.
6679         (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
6680         Update corresponding peephole2 patterns.
6681         (atomic_storedi_fpu): Ditto.
6683 2017-05-11  Julia Koval  <julia.koval@intel.com>
6685         * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
6686         (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
6687         New intrinsics.
6688         * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
6689         (__builtin_ia32_rsqrt14ss_mask): New builtins.
6690         * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
6692 2017-05-11  Nathan Sidwell  <nathan@acm.org>
6694         * graphite-poly.c: Include dumpfile.h.
6696         * dumpfle.h (dump_function): Declare here ...
6697         * tree-dump.h (dump_function): ... not here.
6698         * dumpfile.c: #include tree-cfg.h.
6699         (dump_function): Move here from ...
6700         * tree-dump.c (dump_function): ... here.
6701         * gimplify.c: #include splay-tree.h, not tree-dump.h.
6702         * graphite-poly.c: Don't include tree-dump.h.
6703         * cgraphclones.c: Include dumpfile.h not tree-dump.h.
6704         * print-tree.c: Likewise.
6705         * stor-layout.c: Likewise.
6706         * tree-nested.c: Likewise.
6708         * dumpfile.c (dump_start): Use TDF_FLAGS.
6709         (dump_enable_all): Fix TDF_KIND check thinko.
6711 2017-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6713         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6714         array entries to represent two legal parameterizations of the
6715         overloaded __builtin_cmpb function, as represented by the
6716         P6_OV_BUILTIN_CMPB constant.
6717         (altivec_resolve_overloaded_builtin): Add special case handling
6718         for the __builtin_cmpb function, as represented by the
6719         P6_OV_BUILTIN_CMPB constant.
6720         * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
6721         (BU_P6_64BIT_2): New macro.
6722         (BU_P6_OVERLOAD_2): New macro
6723         (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
6724         (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
6725         (CMPB): Add overload support to represent both 32-bit and 64-bit
6726         compare-bytes function.
6727         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
6728         support for TARGET_CMPB.
6729         * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
6730         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
6731         documentation of the __builtin_cmpb overloaded built-in function.
6733 2017-05-11  Richard Biener  <rguenther@suse.de>
6735         PR tree-optimization/80705
6736         * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
6737         bases are not vectorizable.
6739 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
6741         * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
6742         when counting register pressure.
6744 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
6746         * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
6747         (iv_ca_more_deps): Renamed to ...
6748         (iv_ca_compare_deps): ... this.
6749         (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
6751 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
6753         * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
6754         to ...
6755         (determine_group_iv_costs): ... here.
6756         (find_inv_vars_cb): Record inv var if it's not recorded before.
6758 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
6760         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
6761         (get_shiftadd_cost): Ditto.
6763 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
6765         * tree-ssa-address.c: Include header file.
6766         (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
6767         address.
6768         (add_to_parts): Refactor.
6769         (addr_to_parts): New parameter.  Update use of move_hint_to_base.
6770         (create_mem_ref): Update use of addr_to_parts.  Re-associate addr
6771         in new order.
6773 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
6775         PR tree-optimization/53090
6776         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
6777         COMP_IV_EXPR_2.
6778         (extract_cond_operands): Detect condition with IV on both sides
6779         and return COMP_IV_EXPR_2.
6780         (find_interesting_uses_cond): Add iv_use for both IVs in condition.
6781         (rewrite_use_compare): Simplify by removing call to function
6782         extract_cond_operands.
6784 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
6786         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
6787         (extract_cond_operands): Detect condition comparing against non-
6788         invariant bound and return appropriate enum value.
6789         (find_interesting_uses_cond): Update use of extract_cond_operands.
6790         Handle its return value accordingly.
6791         (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
6793 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
6795         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
6796         nonlinear iv_use computation in loop invariant sensitive way.
6798 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
6800         * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
6801         (find_iv_candidates): Call relate_compare_use_with_all_cands.
6803 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
6805         * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
6806         (dump_cand): Support iv_cand.inv_exprs.
6807         (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
6808         for candidates.
6809         (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
6810         iv_cand.inv_exprs.
6812 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
6814         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
6815         from ...
6816         * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
6817         as local function.  Include necessary header files.
6818         * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
6820 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
6822         * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
6824 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
6826         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
6827         operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
6828         RSHIFT_EXPR and BIT_NOT_EXPR.
6830 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
6832         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
6833         (adjust_setup_cost): New parameter supporting round up adjustment.
6834         (struct address_cost_data): Delete.
6835         (force_expr_to_var_cost): Don't bound cost with spill_cost.
6836         (split_address_cost, ptr_difference_cost): Delete.
6837         (difference_cost, compare_aff_trees, record_inv_expr): Delete.
6838         (struct ainc_cost_data): New struct.
6839         (get_address_cost_ainc): New function.
6840         (get_address_cost, get_computation_cost): Reimplement.
6841         (determine_group_iv_cost_address): Record inv_expr for all uses of
6842         a group.
6843         (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
6844         (iv_ca_has_deps): Reimplemented to ...
6845         (iv_ca_more_deps): ... this.  Check if NEW_CP introduces more deps
6846         than OLD_CP.
6847         (iv_ca_extend): Call iv_ca_more_deps.
6849 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
6851         * tree-ssa-address.c (struct mem_address): Move to header file.
6852         (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
6853         * tree-ssa-address.h (struct mem_address): Move from C file.
6854         (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
6856 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
6858         * tree-affine.h (aff_combination_type): New interface.
6859         (aff_combination_zero_p): Remove static.
6860         (aff_combination_const_p): New interface.
6861         (aff_combination_singleton_var_p): New interfaces.
6863 2017-05-11  Richard Biener  <rguenther@suse.de>
6865         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6866         Skip unreachable blocks and destinations.
6867         (eliminate): Move stmt removal and fixup ...
6868         (fini_eliminate): ... here.  Skip inserted exprs.
6869         (pass_pre::execute): Move fini_pre after fini_eliminate.
6870         * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
6871         (tail_merge_optimize): Run cleanup_tree_cfg if requested by
6872         PRE to get rid of dead code that has invalid SSA form and
6873         split critical edges again.
6875 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
6877         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
6879 2017-05-11  Richard Biener  <rguenther@suse.de>
6881         * passes.c (execute_function_todo): Verify loops if they are
6882         said to be up-to-date.
6883         * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
6884         * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
6886 2017-05-10  John David Anglin  <danglin@gcc.gnu.org>
6888         PR target/80090
6889         * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
6890         handle calling assemble_external ourself.
6892         PR target/79027
6893         * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
6894         modes with zero size.  Enhance comment.
6896 2017-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6898         * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
6899         built-ins for vec_xl and vec_xst with short and char pointer
6900         arguments.
6902 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
6904         * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
6905         (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
6906         (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
6907         (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
6908         (_mm_maskz_min_round_ss): New intrinsics.
6909         * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
6910         (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
6911         * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
6912         (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
6913         (__builtin_ia32_minss_mask_round): New builtins.
6914         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
6915         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
6916         * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
6917         Rename to ...
6918         (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
6919         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
6920         Change to ...
6921         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
6922         ... this.
6924 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
6926         * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
6927         (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
6928         (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
6929         (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
6930         (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
6931         (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
6932         (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
6933         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
6934         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
6935         * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
6936         (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
6937         (__builtin_ia32_mulss_mask_round): New builtins.
6938         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
6939         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
6940         * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
6941         Rename to ...
6942         (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
6943         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
6944         Change to ...
6945         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
6946         ... this.
6948 2017-05-10  Julia Koval  <julia.koval@intel.com>
6950         * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
6951         (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
6952         (_mm256_setr_m128i): New intrinsics.
6954 2017-05-10  Julia Koval  <julia.koval@intel.com>
6956         * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
6957         (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
6958         (_mm_maskz_rcp14_ss): New intrinsics.
6959         * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
6960         (__builtin_ia32_rcp14ss_mask): New builtins.
6961         * config/i386/sse.md (srcp14<mode>_mask): New pattern.
6963 2017-05-10  Peter Bergner  <bergner@vnet.ibm.com>
6965         PR tree-optimization/51513
6966         * tree-cfg.c (gimple_seq_unreachable_p): New function.
6967         (assert_unreachable_fallthru_edge_p): Use it.
6968         (group_case_labels_stmt): Likewise.
6969         * tree-cfg.h: Prototype it.
6970         * stmt.c: Include cfghooks.h and tree-cfg.h.
6971         (emit_case_dispatch_table) <gap_label>: New local variable.
6972         Use it to fill dispatch table gaps.
6973         Test for default_label before updating probabilities.
6974         (expand_case) <default_label>: Remove unneeded initialization.
6975         Test for unreachable default case statement and remove its edge.
6976         Set default_label accordingly.
6977         * tree-ssa-ccp.c (optimize_unreachable): Update comment.
6979 2017-05-10  Carl Love  <cel@us.ibm.com>
6981         * config/rs6000/rs6000-c: Add support for built-in functions
6982         vector signed char      vec_neg (vector signed char)
6983         vector signed short int vec_neg (vector short int)
6984         vector signed int       vec_neg (vector signed int)
6985         vector signed long long vec_neg (vector signed long long)
6986         vector float            vec_neg (vector float)
6987         vector double           vec_neg (vector double)
6988         * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
6989         overload.
6990         * config/rs6000/altivec.h: Add define for vec_neg
6991         * doc/extend.texi: Update the built-in documentation for the
6992         new built-in functions.
6994 2017-05-10  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6996         PR tree-optimization/77644
6997         * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
6999 2017-05-10  Nathan Sidwell  <nathan@acm.org>
7001         * dumpfile.h (TDI_lang_all): New.
7002         (TDF_KIND): New. Renumber others
7003         (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
7004         than bits.
7005         * dumpfile.c (dump_files): Mark language dumps as TDF_LANG.  add
7006         lang-all.
7007         (get_dump_file_name): Adjust suffix generation.
7008         (dump_enable_all): Use TDF_KIND.
7009         * doc/invoke.texi (-fdump-lang-all): Document.
7011         * dumpfile.h: Tabify.
7013 2017-05-10  Wilco Dijkstra  <wdijkstr@arm.com>
7015         PR target/80671
7016         * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
7017         Move member access before delete.
7019 2017-05-10  Alexandre Oliva <aoliva@redhat.com>
7021         * tree-inline.c (expand_call_inline): Split block at stmt
7022         before the call.
7024 2017-05-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
7026         PR target/68163
7027         * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
7028         are now unused after splitting mov{sf,sd}_hardfloat.
7029         (f32_lr2): Likewise.
7030         (f32_lm): Likewise.
7031         (f32_lm2): Likewise.
7032         (f32_li): Likewise.
7033         (f32_li2): Likewise.
7034         (f32_lv): Likewise.
7035         (f32_sr): Likewise.
7036         (f32_sr2): Likewise.
7037         (f32_sm): Likewise.
7038         (f32_sm2): Likewise.
7039         (f32_si): Likewise.
7040         (f32_si2): Likewise.
7041         (f32_sv): Likewise.
7042         (f32_dm): Likewise.
7043         (f32_vsx): Likewise.
7044         (f32_av): Likewise.
7045         (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
7046         For movsf, order stores so the VSX stores occur before the GPR
7047         store which encourages the register allocator to use a traditional
7048         FPR instead of a GPR.  For movsd, order the stores so that the GPR
7049         store comes before the VSX stores to allow the power6 to work.
7050         This is due to the power6 not having a 32-bit integer store
7051         instruction from a FPR.
7052         (movsf_hardfloat): Likewise.
7053         (movsd_hardfloat): Likewise.
7055 2017-05-09  Martin Sebor  <msebor@redhat.com>
7057         PR translation/80280
7058         * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
7059         added in r247778.
7061         PR translation/80280
7062         * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
7063         data member added in r247778.
7064         (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
7066 2017-05-09  Nathan Sidwell  <nathan@acm.org>
7068         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
7070         * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
7071         typedefs.
7073 2017-05-09  Marek Polacek  <polacek@redhat.com>
7075         * doc/invoke.texi: Fix typo.
7077 2017-05-09  Richard Biener  <rguenther@suse.de>
7079         * tree-vrp.c (vrp_val_is_max): Adjust comment.
7080         (vrp_val_is_min): Likewise.
7081         (set_value_range_to_value): Likewise.
7082         (set_value_range_to_nonnegative): Likewise.
7083         (gimple_assign_nonzero_p): Likewise.
7084         (gimple_stmt_nonzero_p): Likewise.
7085         (vrp_int_const_binop): Likewise.  Remove unreachable case.
7086         (adjust_range_with_scev): Adjust comments.
7087         (compare_range_with_value): Likewise.
7088         (extract_range_from_phi_node): Likewise.
7089         (test_for_singularity): Likewise.
7091 2017-05-09  Richard Biener  <rguenther@suse.de>
7093         * tree-vrp.c (get_single_symbol): Add assert that we don't
7094         get overflowed constants as invariant part.
7095         (compare_values_warnv): Add comment before the TREE_NO_WARNING
7096         checks.  Use wi::cmp instead of recursing for integer constants.
7097         (compare_values): Just ignore whether we assumed undefined
7098         overflow instead of failing the compare.
7099         (extract_range_for_var_from_comparison_expr): Add comment before the
7100         TREE_NO_WARNING sets.
7101         (test_for_singularity): Likewise.
7102         (extract_range_from_comparison): Do not disable optimization
7103         when we assumed undefined overflow.
7104         (extract_range_basic): Remove init of unused var.
7106 2017-05-09  Richard Biener  <rguenther@suse.de>
7108         * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
7109         (extract_range_from_multiplicative_op_1): Adjust.
7110         (extract_range_from_binary_expr_1): Use int_const_binop.
7112 2017-05-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7114         PR target/80101
7115         * config/rs6000/power6.md: Replace store_data_bypass_p calls with
7116         rs6000_store_data_bypass_p in seven define_bypass directives and
7117         in several comments.
7118         * config/rs6000/rs6000-protos.h: Add prototype for
7119         rs6000_store_data_bypass_p function.
7120         * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
7121         function implements slightly different (rs6000-specific) semantics
7122         than store_data_bypass_p, returning false rather than aborting
7123         with assertion error when arguments do not satisfy the
7124         requirements of store data bypass.
7125         (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
7126         rs6000_store_data_bypass_p.
7128 2017-05-08  Max Filippov  <jcmvbkbc@gmail.com>
7130         * config/xtensa/xtensa-protos.h
7131         (xtensa_initial_elimination_offset): New declaration.
7132         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
7133         New function. Move its body from the INITIAL_ELIMINATION_OFFSET
7134         macro definition, add case for FRAME_POINTER_REGNUM when
7135         FRAME_GROWS_DOWNWARD.
7136         * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
7137         (INITIAL_ELIMINATION_OFFSET): Replace body with call to
7138         xtensa_initial_elimination_offset.
7140 2017-05-08  Nathan Sidwell  <nathan@acm.org>
7142         * doc/invoke.texi: Alphabetize -fdump options.
7144 2017-05-08  Martin Sebor  <msebor@redhat.com>
7146         PR translation/80280
7147         * config/sol2-c.c (solaris_pragma_align): Correct quoting.
7149 2017-05-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7151         * target.def (compute_frame_layout): New optional target hook.
7152         * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
7153         * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
7154         * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
7155         target hook.
7156         * reload1.c (verify_initial_elim_offsets): Likewise.
7157         * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
7158         (use_simple_return_p): Call arm_compute_frame_layout if needed.
7159         (arm_get_frame_offsets): Split up into this ...
7160         (arm_compute_frame_layout): ... and this function.
7162 2017-05-08  Richard Sandiford  <richard.sandiford@arm.com>
7164         * config/aarch64/constraints.md (Usa): New constraint.
7165         * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
7167 2017-05-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7169         * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
7170         with_multilib_list after it has been checked.
7172 2017-05-08  Richard Biener  <rguenther@suse.de>
7174         * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
7175         (bitmap_set_subtract_values): Likewise.
7177 2017-05-08  Richard Biener  <rguenther@suse.de>
7179         * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
7180         (gimple_assign_nonzero): ... this and remove strict_overflow_p
7181         argument.
7182         (gimple_stmt_nonzero_warnv_p): Rename to ...
7183         (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
7184         argument.
7185         (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
7186         (extract_range_basic): Adjust, do not disable propagation on
7187         strict overflow sensitive simplification.
7188         (vrp_visit_cond_stmt): Likewise.
7190 2017-05-05  Jan Hubicka  <hubicka@ucw.cz>
7192         * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
7193         body size unconditionally.
7195 2017-05-07  Jeff Law  <law@redhat.com>
7197         Revert:
7198         2017-05-06  Jeff Law  <law@redhat.com>
7199         PR tree-optimization/78496
7200         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
7201         code.
7203         PR tree-optimization/78496
7204         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
7205         (simplify_stmt_using_ranges): Call it.
7206         (vrp_dom_walker::before_dom_children): Extract equivalences
7207         from an ASSERT_EXPR with an equality comparison against a
7208         constant.
7210 2017-05-06  Jeff Law  <law@redhat.com>
7212         PR tree-optimization/78496
7213         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
7214         code.
7216         PR tree-optimization/78496
7217         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
7218         (simplify_stmt_using_ranges): Call it.
7219         (vrp_dom_walker::before_dom_children): Extract equivalences
7220         from an ASSERT_EXPR with an equality comparison against a
7221         constant.
7223 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
7225         * lra-constraints.c (lra_copy_reg_equiv): New function.
7226         (split_reg): Use it to copy equivalence information from the
7227         original register to the spill register.
7229 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
7231         PR rtl-optimization/75964
7232         * simplify-rtx.c (simplify_const_relational_operation): Remove
7233         invalid handling of comparisons of integer ABS.
7235 2017-05-06  Uros Bizjak  <ubizjak@gmail.com>
7237         * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
7238         initialize to zero.
7239         (init_regs): Remove declaration.
7240         (function_arg_advance_32): Initialize error_p as boolean variable.
7242 2017-05-05  Nathan Sidwell  <nathan@acm.org>
7244         * store-motion.c (remove_reachable_equiv_notes): Reformat long
7245         lines.  Use for (;;).
7247 2017-05-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7249         * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
7250         (rs6000_init_cost): Initialize rs6000_vect_nonmem.
7251         (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
7252         (rs6000_finish_cost): Avoid vectorizing simple copy loops with
7253         VF=2 that require versioning.
7255 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
7257         * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
7258         int.
7260 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
7262         * diagnostic.h (diagnostic_override_option_index): Convert from
7263         macro to inline function.
7265 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
7267         * diagnostic.c (last_module_changed_p): New function.
7268         (set_last_module): New function.
7269         (diagnostic_report_current_module): Convert macro usage to
7270         the above functions.
7271         * diagnostic.h (diagnostic_context::last_module): Strengthen
7272         from const line_map * to const line_map_ordinary *.
7273         (diagnostic_last_module_changed): Delete macro.
7274         (diagnostic_set_last_module): Delete macro.
7276 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
7278         * diagnostic.c (diagnostic_impl): Replace report_diagnostic
7279         with diagnostic_report_diagnostic.
7280         (diagnostic_n_impl_richloc): Likewise.
7281         * diagnostic.h (report_diagnostic): Delete macro.
7282         * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
7283         with diagnostic_report_diagnostic.
7284         * substring-locations.c (format_warning_va): Likewise.
7286 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
7288         * diagnostic.c (diagnostic_report_diagnostic): Eliminate
7289         save/restor of format_spec.  Move option-printing code to...
7290         (print_option_information): ...this new function, and
7291         reimplement by simply printing to the pretty_printer,
7292         rather than appending to the format string.
7294 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
7296         * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
7297         handling logic into...
7298         (update_effective_level_from_pragmas): ...this new function.
7300 2017-05-04  Andrew Waterman  <andrew@sifive.com>
7302         * config/riscv/riscv.opt (mstrict-align): New option.
7303         * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it.  Update comment.
7304         (SLOW_UNALIGNED_ACCESS): Define.
7305         (riscv_slow_unaligned_access): Declare.
7306         * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
7307         field.
7308         (riscv_slow_unaligned_access): New variable.
7309         (rocket_tune_info): Set slow_unaligned_access to true.
7310         (optimize_size_tune_info): Set slow_unaligned_access to false.
7311         (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
7312         (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
7313         (riscv_option_override): Set riscv_slow_unaligned_access.
7314         * doc/invoke.texi: Add -mstrict-align to RISC-V.
7316 2017-05-04  Kito Cheng  <kito.cheng@gmail.com>
7318         * config/riscv/riscv.md: Unify indentation.
7320 2017-05-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
7322         PR target/79038
7323         PR target/79202
7324         PR target/79203
7325         * config/rs6000/rs6000.md (u code attribute): Add FIX and
7326         UNSIGNED_FIX.
7327         (extendsi<mode>2): Add support for doing sign extension via
7328         VUPKHSW and XXPERMDI if the value is in Altivec registers and we
7329         don't have ISA 3.0 instructions.
7330         (extendsi<mode>2 splitter): Likewise.
7331         (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
7332         generate the normal insns since SImode can now go in vector
7333         registers.  Disallow the special UNSPECs needed for previous
7334         machines to hide SImode being used.  Add new insns
7335         fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
7336         (fix_trunc<mode>si2_stfiwx): Likewise.
7337         (fix_trunc<mode>si2_internal): Likewise.
7338         (fixuns_trunc<mode>si2): Likewise.
7339         (fixuns_trunc<mode>si2_stfiwx): Likewise.
7340         (fctiw<u>z_<mode>_smallint): Likewise.
7341         (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
7342         of floating point to 32-bit integer from doing a direct move to
7343         the GPR registers to do a store.
7344         (fctiwz_<mode>): Break long line.
7346 2017-05-05  Bin Cheng  <bin.cheng@arm.com>
7348         * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
7349         * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
7350         (addr_list, addr_offset_valid_p): New.
7351         (split_address_groups): Check offset validity with above function.
7352         (gt-tree-ssa-loop-ivopts.h): Include header file.
7354 2017-05-05  Nathan Sidwell  <nathan@acm.org>
7356         * config.gcc (arm*-*-*): Add missing 'fi'.
7358 2017-05-05  Steve Ellcey  <sellcey@cavium.com>
7360         * doc/invoke.texi (-fopt-info): Explicitly say order of options
7361         included in -fopt-info does not matter.
7362         * doc/optinfo.texi (-fopt-info): Fix description of default
7363         behavour. Explicitly say order of options included in -fopt-info
7364         does not matter.
7366 2017-05-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7368         * config.gcc: Allow combinations of aprofile and rmprofile values for
7369         --with-multilib-list.
7370         * config/arm/t-multilib: New file.
7371         * config/arm/t-aprofile: Remove initialization of MULTILIB_*
7372         variables.  Remove setting of ISA and floating-point ABI in
7373         MULTILIB_OPTIONS and MULTILIB_DIRNAMES.  Set architecture and FPU in
7374         MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
7375         and MULTILIB_DIRNAMES respectively.  Add comment to introduce all
7376         matches.  Add architecture matches for marvel-pj4 and generic-armv7-a
7377         CPU options.
7378         * config/arm/t-rmprofile: Likewise except for the matches changes.
7379         * doc/install.texi (--with-multilib-list): Document the combination of
7380         aprofile and rmprofile values and warn about pitfalls in doing that.
7382 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
7384         * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
7385         (movdi_aarch64): Likewise.
7387 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
7389         PR tree-optimization/80632
7390         * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
7391         field.
7392         (build_arrays): Initialize it for virtual phis.
7393         (fix_phi_nodes): Use it for virtual phis.
7395         PR tree-optimization/80558
7396         * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
7397         [x, y] op z into [x op, y op z] for op & or | if conditions
7398         are met.
7400 2017-05-05  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7401             Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
7403         PR target/71607
7404         * config/arm/arm.md (use_literal_pool): Remove.
7405         (64-bit immediate split): No longer takes cost into consideration
7406         if arm_disable_literal_pool is enabled.
7407         * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
7408         used when arm_disable_literal_pool is enabled.
7409         (arm_max_const_double_inline_cost): Remove use of
7410         arm_disable_literal_pool.
7411         (push_minipool_fix): Add assert.
7412         (arm_reorg): Add return if arm_disable_literal_pool is enabled.
7413         * config/arm/vfp.md (no_literal_pool_df_immediate): New.
7414         (no_literal_pool_sf_immediate): New.
7416 2017-05-05  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7418         PR tree-optimization/80613
7419         * tree-ssa-dce.c (propagate_necessity): Remove cases for
7420         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
7422 2017-05-05  Richard Biener  <rguenther@suse.de>
7424         * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
7426 2017-05-05  Georg-Johann Lay  <avr@gjlay.de>
7428         * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
7429         of this flag from insn conditions due to removal from r247495.
7431 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
7433         * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
7434         New function.
7435         (arm_early_store_addr_dep_ptr): Likewise.
7436         * config/arm/aarch-common-protos.h
7437         (arm_early_load_addr_dep_ptr): Add prototype.
7438         (arm_early_store_addr_dep_ptr): Likewise.
7439         * config/arm/cortex-a53.md: Add new bypasses.
7441 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
7443         * tree.c (next_type_uid): Change type to unsigned.
7444         (type_hash_canon): Decrement back next_type_uid if
7445         freeing a type node with the highest TYPE_UID.  For INTEGER_TYPEs
7446         also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
7447         if possible.
7449 2017-05-04  Martin Sebor  <msebor@redhat.com>
7451         * builtins.c: Fix a trivial typo in a comment.
7453         PR middle-end/79234
7454         * builtins.c (check_sizes): Adjust to handle reading past the end.
7455         Avoid printing excessive upper bound of ranges.  Use %E to print
7456         tree nodes instead of converting them to %wu.
7457         (expand_builtin_memchr): New function.
7458         (compute_dest_size): Rename...
7459         (compute_objsize): ...to this.
7460         (expand_builtin_memcpy): Adjust.
7461         (expand_builtin_mempcpy): Adjust.
7462         (expand_builtin_strcat): Adjust.
7463         (expand_builtin_strcpy): Adjust.
7464         (check_strncat_sizes): Adjust.
7465         (expand_builtin_strncat): Adjust.
7466         (expand_builtin_strncpy): Adjust and simplify.
7467         (expand_builtin_memset): Adjust.
7468         (expand_builtin_bzero): Adjust.
7469         (expand_builtin_memcmp): Adjust.
7470         (expand_builtin): Handle memcmp.
7471         (maybe_emit_chk_warning): Check strncat just once.
7473 2017-05-04  Martin Sebor  <msebor@redhat.com>
7475         PR preprocessor/79214
7476         PR middle-end/79222
7477         PR middle-end/79223
7478         * builtins.c (check_sizes): Add inlining context and issue
7479         warnings even when -Wno-system-headers is set.
7480         (check_strncat_sizes): Same.
7481         (expand_builtin_strncat): Same.
7482         (expand_builtin_memmove): New function.
7483         (expand_builtin_stpncpy): Same.
7484         (expand_builtin): Handle memmove and stpncpy.
7486 2017-05-04  Bin Cheng  <bin.cheng@arm.com>
7488         * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
7489         which is not used any more.
7491 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
7493         * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
7495 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
7497         * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
7498         (cortexa53_tunings): Likewise.
7499         (cortexa57_tunings): Likewise.
7500         (cortexa72_tunings): Likewise.
7501         (cortexa73_tunings): Likewise.
7503 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
7505         * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
7506         Set loop alignment to 8.
7508 2017-05-04  Martin Sebor  <msebor@redhat.com>
7510         PR translation/80280
7511         * builtins.c (expand_builtin_object_size): Add missing quoting to
7512         %D and like directives.
7513         * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
7514         (hsa_type_for_tree_type): Same.
7515         (verify_function_arguments): Same.
7516         * symtab.c (symbol_table::change_decl_assembler_name): Same.
7517         * varasm.c (get_section): Same.
7518         (mark_weak): Same.
7520 2017-05-04  Martin Sebor  <msebor@redhat.com>
7522         PR translation/80280
7523         * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
7525 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
7527         * config/aarch64/aarch64.c (generic_addrcost_table):
7528         Change HI/TI mode setting.
7530 2017-05-04  Martin Jambor  <mjambor@suse.cz>
7532         PR tree-optimization/80622
7533         * tree-sra.c (comes_initialized_p): New function.
7534         (build_accesses_from_assign): Only set write lazily when
7535         comes_initialized_p is false.
7536         (analyze_access_subtree): Use comes_initialized_p.
7537         (propagate_subaccesses_across_link): Assert !comes_initialized_p
7538         instead of testing for PARM_DECL.
7540 2017-05-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7542         * config/aarch64/aarch64.md (prefetch); Adjust predicate and
7543         constraint on operand 0 to allow more general addressing modes.
7544         Adjust output template.
7545         * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
7546         New function.
7547         * config/aarch64/aarch64-protos.h
7548         (aarch64_address_valid_for_prefetch_p): Declare prototype.
7549         * config/aarch64/constraints.md (Dp): New address constraint.
7550         * config/aarch64/predicates.md (aarch64_prefetch_operand): New
7551         predicate.
7553 2017-05-04  Jan Hubicka  <hubicka@ucw.cz>
7555         * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
7556         update use of estimate_ipcp_clone_size_and_time.
7557         (estimate_local_effects): Update use of
7558         estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
7559         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
7560         * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
7561         Return nonspecialized time.
7563 2017-05-04  Richard Biener  <rguenther@suse.de>
7565         * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
7566         for the last VUSE which def dominates the PHI.  Directly call
7567         maybe_skip_until.
7568         (get_continuation_for_phi_1): Remove.
7570 2017-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
7572         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
7573         to explain the use of truncating division.  Cap the number of
7574         iterations to the maximum given by nb_iterations_upper_bound,
7575         if defined.
7577 2017-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7579         * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
7580         * configure: Regenerate.
7581         * config.in: Regenerate.
7582         * config/i386/driver-mingw32.c: new file.
7583         * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
7584         * config.host: Link driver-mingw32.o on MinGW host.
7585         * doc/install.texi: Document new --enable-mingw-wildcard configure
7586         option.
7588 2017-05-04  Marek Polacek  <polacek@redhat.com>
7590         PR tree-optimization/80612
7591         * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
7593 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
7594             Andre Simoes Dias Vieira  <andre.simoesdiasvieira@arm.com>
7596         * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
7597         (movt splitter): Likewise.
7598         * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
7599         to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
7600         (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
7601         block for Thumb-1 with MOVT.
7602         (thumb2_legitimate_address_p): Move code block ...
7603         (can_avoid_literal_pool_for_label_p): ... into this new function.
7604         (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
7605         literal pool.
7606         (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
7607         * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
7608         "M-profile targets with the MOVT instruction".
7610 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
7612         * config/arm/arm-builtins.c (arm_init_builtins): Rename
7613         __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
7614         __builtin_arm_stfscr to __builtin_arm_set_fpscr.
7616 2017-05-04  Martin Liska  <mliska@suse.cz>
7618         * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
7619         variable cond_code.
7621 2017-05-04  Richard Biener  <rguenther@suse.de>
7623         * tree.c (array_at_struct_end_p): Handle arrays at struct
7624         end with flexarrays more conservatively.  Refactor and treat
7625         arrays of arrays or aggregates more strict.  Fix
7626         VIEW_CONVERT_EXPR handling.  Remove allow_compref argument.
7627         * tree.c (array_at_struct_end_p): Adjust prototype.
7628         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
7629         * gimple-fold.c (get_range_strlen): Likewise.
7630         * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
7632 2017-05-04  Richard Biener  <rguenther@suse.de>
7634         PR tree-optimization/31130
7635         * tree-vrp.c (needs_overflow_infinity): Remove as always returning
7636         false.
7637         (supports_overflow_infinity): Likewise.
7638         (is_negative_overflow_infinity): Likewise.
7639         (is_positive_overflow_infinity): Likewise.
7640         (is_overflow_infinity): Likewise.
7641         (stmt_overflow_infinity): Likewise.
7642         (overflow_infinity_range_p): Likewise.
7643         (usable_range_p): Remove as always returning true.
7644         (make_overflow_infinity): Remove.
7645         (negative_overflow_infinity): Likewise.
7646         (positive_overflow_infinity): Likewise.
7647         (avoid_overflow_infinity): Likewise.
7648         (set_value_range): Adjust accordingly.
7649         (set_value_range_to_nonnegative): Likewise, remove now unused
7650         overflow_infinity arg.
7651         (vrp_operand_equal_p): Adjust.
7652         (update_value_range): Likewise.
7653         (range_int_cst_singleton_p): Likewise.
7654         (operand_less_p): Likewise.
7655         (compare_values_warnv): Likewise.
7656         (extract_range_for_var_from_comparison_expr): Likewise.
7657         (vrp_int_const_binop): Likewise.
7658         (zero_nonzero_bits_from_vr): Likewise.
7659         (extract_range_from_multiplicative_op_1): Likewise.
7660         (extract_range_from_binary_expr_1): Likewise.
7661         (extract_range_from_unary_expr): Likewise.
7662         (extract_range_from_comparison): Likewise.
7663         (extract_range_basic): Likewise.
7664         (adjust_range_with_scev): Likewise.
7665         (compare_ranges): Likewise.
7666         (compare_range_with_value): Likewise.
7667         (dump_value_range): Likewise.
7668         (test_for_singularity): Likewise, remove strict_overflow_p parameter
7669         never used.
7670         (simplify_cond_using_ranges): Adjust.
7672 2017-05-04  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
7674         * brig-builtins.def: Added a builtin for class_f64.
7675         * builtin-types.def: Added a builtin type needed by class_f64.
7677 2017-05-03  Jason Merrill  <jason@redhat.com>
7679         * timevar.def: Add TV_CONSTEXPR.
7681 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
7683         * common.opt (fdiagnostics-parseable-fixits): Fix typo.
7685 2017-05-03  Martin Jambor  <mjambor@suse.cz>
7687         * ipa-prop.c (ipa_update_after_lto_read): Removed.
7688         * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
7689         * ipa-cp.c (ipcp_propagate_stage): Do not call
7690         ipa_update_after_lto_read.
7691         * ipa-inline.c (ipa_inline): Likewise.
7693 2017-05-03  Martin Jambor  <mjambor@suse.cz>
7695         * ipa-prop.h (ipa_edge_args): Make a class.  Mark with for_user GTY
7696         tag.  Added a default constructor and a destructor.
7697         (ipa_edge_args_sum_t): New class;
7698         (ipa_edge_args_sum): Declare.
7699         (ipa_edge_args_vector): Remove declaration.
7700         (IPA_EDGE_REF): Use ipa_edge_args_sum.
7701         (ipa_free_edge_args_substructures): Remove declaration.
7702         (ipa_check_create_edge_args): Use ipa_edge_args_sum.
7703         (ipa_edge_args_info_available_for_edge_p): Likewise.
7704         * ipa-prop.c (ipa_edge_args_vector): Removed.
7705         (edge_removal_hook_holder): Likewise.
7706         (edge_duplication_hook_holder): Likewise.
7707         (ipa_edge_args_sum): New variable.
7708         (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
7709         ipa_edge_args_vector.
7710         (ipa_free_edge_args_substructures): Likewise.
7711         (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
7712         ipa_edge_args_vector.
7713         (ipa_edge_removal_hook): Turned into method
7714         ipa_edge_args_sum_t::remove.
7715         (ipa_edge_duplication_hook): Turned into method
7716         ipa_edge_args_sum_t::duplicate.
7717         (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
7718         registering edge hooks.
7719         (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
7720         * ipa-inline-analysis.c (estimate_function_body_sizes): Test
7721         ipa_edge_args_sum instead of ipa_edge_args_vector.
7722         * ipa-profile.c (ipa_profile): Likewise.
7724 2017-05-03  Martin Jambor  <mjambor@suse.cz>
7726         * symbol-summary.h (function_summary): New method exists.
7727         (function_summary::symtab_removal): Deallocate through release.
7728         (call_summary): New class.
7729         (gt_ggc_mx): New overload.
7730         (gt_pch_nx): Likewise.
7731         (gt_pch_nx): Likewise.
7733 2017-05-03  Jeff Law  <law@redhat.com>
7735         PR tree-optimization/78496
7736         * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
7737         from simplify_cond_using_ranges.  Split off code to walk
7738         backwards through casts into ...
7739         (simplify_cond_using_ranges_2): New function.
7740         (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
7741         (execute_vrp): After identifying jump threads, call
7742         simplify_cond_using_ranges_2.
7744 2017-05-03  Jan Hubicka  <hubicka@ucw.cz>
7746         PR bootstrap/80609
7747         * ipa-inline.h (inline_summary): Add ctor.
7748         (create_ggc): Do not use ggc_cleared_alloc.
7750 2017-05-03  Jeff Downs  <heydowns@somuchpressure.net>
7751             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7753         * gcc.c (handle_braces): Support escaping in switch matching
7754         text.
7755         * doc/invoke.texi (Spec Files): Document it.
7756         Remove superfluous @code markup in items.
7758 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
7760         * diagnostic-show-locus.c (struct column_range): New struct.
7761         (get_affected_columns): New function.
7762         (get_printed_columns): New function.
7763         (struct correction): New struct.
7764         (correction::ensure_capacity): New function.
7765         (correction::ensure_terminated): New function.
7766         (struct line_corrections): New struct.
7767         (line_corrections::~line_corrections): New dtor.
7768         (line_corrections::add_hint): New function.
7769         (layout::print_trailing_fixits): Reimplement in terms of the new
7770         classes.
7771         (selftest::test_overlapped_fixit_printing): New function.
7772         (selftest::diagnostic_show_locus_c_tests): Call it.
7774 2017-05-03  Nathan Sidwell  <nathan@acm.org>
7776         Canonicalize canonical type hashing
7777         * tree.h (type_hash_canon_hash): Declare.
7778         * tree.c (type_hash_list, attribute_hash_list): Move into
7779         type_hash_canon_hash.
7780         (build_type_attribute_qual_variant): Break out hash code calc into
7781         type_hash_canon_hash.
7782         (type_hash_canon_hash): New.  Generic type hash computation.
7783         (build_range_type_1, build_array_type_1, build_function_type,
7784         build_method_type_directly, build_offset_type, build_complex_type,
7785         make_vector_type): Call it.
7787 2017-05-03  Richard Biener  <rguenther@suse.de>
7789         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7790         When all DRs have unknown misaligned do not always peel
7791         when there is a store but apply the same costing model as if
7792         there were only loads.
7794 2017-05-03  Richard Biener  <rguenther@suse.de>
7796         Revert
7797         PR tree-optimization/80492
7798         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
7799         compare_base_decls returning dont-know properly.
7801 2017-05-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7803         * config/arm/iterators.md (CCSI): New mode iterator.
7804         (arch): New mode attribute.
7805         * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
7806         (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
7807         (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This.  Use CCSI
7808         code iterator for success result mode.
7809         * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
7810         the corresponding new insn generators.
7812 2017-05-03  Bin Cheng  <bin.cheng@arm.com>
7814         Revert r247509
7815         2017-05-02  Bin Cheng  <bin.cheng@arm.com>
7816         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
7818 2017-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
7820         * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
7821         (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
7822         (DDR_A): Wrap DDR argument in brackets.
7823         (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
7824         (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
7825         (DDR_REVERSED_P): Likewise.
7827 2017-05-03  Jakub Jelinek  <jakub@redhat.com>
7829         PR tree-optimization/79472
7830         * tree-switch-conversion.c (struct switch_conv_info): Add
7831         contiguous_range and default_case_nonstandard fields.
7832         (collect_switch_conv_info): Compute contiguous_range and
7833         default_case_nonstandard fields, don't clear final_bb if
7834         contiguous_range and only the default case doesn't have the required
7835         structure.
7836         (check_all_empty_except_final): Set default_case_nonstandard instead
7837         of failing if contiguous_range and the default case doesn't have empty
7838         block.
7839         (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
7840         and only the default case doesn't have the required constants.  Skip
7841         virtual phis.
7842         (gather_default_values): Skip virtual phis.  Allow non-NULL CASE_LOW
7843         if default_case_nonstandard.
7844         (build_constructors): Build constant 1 just once.  Assert that default
7845         values aren't inserted in between cases if contiguous_range.  Skip
7846         virtual phis.
7847         (build_arrays): Skip virtual phis.
7848         (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
7849         (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
7850         Handle virtual phis.
7851         (gen_inbound_check): Handle default_case_nonstandard case.
7852         (process_switch): Adjust check_final_bb caller.  Call
7853         gather_default_values with the first non-default case instead of
7854         default case if default_case_nonstandard.
7856 2017-05-02  Nathan Sidwell  <nathan@acm.org>
7858         * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
7859         check.  Fix formatting.
7861 2017-05-02  Jan Hubicka  <hubicka@ucw.cz>
7863         * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
7864         errors when comparing specialized and unspecialized times.
7866 2017-05-02  David Malcolm  <dmalcolm@redhat.com>
7868         * diagnostic-show-locus.c
7869         (layout::should_print_annotation_line_p): Make private.
7870         (layout::print_annotation_line): Make private.
7871         (layout::annotation_line_showed_range_p): Make private.
7872         (layout::show_ruler): Make private.
7873         (layout::print_source_line): Make private.  Pass in line and
7874         line_width, rather than calling location_get_source_line.  Drop
7875         returned value.
7876         (layout::print_leading_fixits): New method.
7877         (layout::print_any_fixits): Rename to...
7878         (layout::print_trailing_fixits): ...this, and make private.
7879         Don't print newline fixits.
7880         (diagnostic_show_locus): Move logic for printing one row into...
7881         (layout::print_line): ...this new function.  Move the
7882         location_get_source_line call and error-handling from
7883         print_source_line to here.  Call print_leading_fixits, and rename
7884         print_any_fixits to print_trailing_fixits.
7885         (selftest::test_fixit_insert_containing_newline): Update now that
7886         newlines are partially supported.
7887         (selftest::test_fixit_insert_containing_newline_2): New test.
7888         (selftest::test_fixit_replace_containing_newline): Update comments.
7889         (selftest::diagnostic_show_locus_c_tests): Call the new test.
7890         * edit-context.c (class added_line): New class.
7891         (class edited_line): Describe newline handling in comment.
7892         (edited_line::actually_edited_p): New method.
7893         (edited_line::print_content): Delete redundant decl.
7894         (edited_line::m_predecessors): New field.
7895         (edited_file::print_content): Call edited_line::print_content.
7896         (edited_file::print_diff): Update to support newlines.
7897         (edited_file::print_diff_hunk): Likewise.
7898         (edited_file::print_run_of_changed_lines): New function.
7899         (edited_file::print_diff_line): Convert to...
7900         (print_diff_line): ...this.
7901         (edited_file::get_effective_line_count): New function.
7902         (edited_line::edited_line): Initialize new field m_predecessors.
7903         (edited_line::~edited_line): Clean up m_predecessors.
7904         (edited_line::apply_fixit): Handle newlines.
7905         (edited_line::get_effective_line_count): New function.
7906         (edited_line::print_content): New function.
7907         (edited_line::print_diff_lines): New function.
7908         (selftest::test_applying_fixits_insert_containing_newline): New
7909         test.
7910         (selftest::test_applying_fixits_replace_containing_newline): New
7911         test.
7912         (selftest::insert_line): New function.
7913         (selftest::test_applying_fixits_multiple_lines): Add example of
7914         inserting a line.
7915         (selftest::edit_context_c_tests): Call the new tests.
7917 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
7919         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
7920         parameter cand.  Update dump information.
7921         (get_computation_cost): Update uses.
7923 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
7925         * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
7926         (get_computation_aff): Reorder parameters.  Use get_computation_aff_1.
7927         (get_computation_at, rewrite_use_address): Update use of
7928         get_computation_aff.
7930 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
7932         * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
7933         (get_computation): Delete.
7934         (get_computation_cost): Implement like get_computation_cost_at.
7935         Use get_computation_at.
7936         (get_computation_cost_at): Delete.
7937         (rewrite_use_nonlinear_expr): Use get_computation_at.
7938         (rewrite_use_compare, remove_unused_ivs): Ditto.
7940 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
7942         * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
7944 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
7946         * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
7947         (ivopts_global_cost_for_size): Rename parameter and update uses.
7948         (iv_ca_recount_cost): Update uses.
7949         (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
7950         candidates seperately in n_invs and n_cands.
7951         (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
7953 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
7955         * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
7956         (find_inv_vars_cb): New.
7957         (find_depends): Renamed to ...
7958         (find_inv_vars): ... this.
7959         (add_candidate_1, force_var_cost): Call find_inv_vars.
7960         (split_address_cost, determine_group_iv_cost_cond): Ditto.
7962 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
7964         * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
7965         inv_vars.  Add inv_exprs.
7966         (struct iv_cand): Rename depends_on to inv_vars.
7967         (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
7968         max_inv_var_id/n_inv_var_uses.  Move max_inv_expr_id around.
7969         Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
7970         (dump_cand): Dump inv_vars.
7971         (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
7972         (record_invariant, find_depends, add_candidate_1): Ditto.
7973         (set_group_iv_cost, force_var_cost): Ditto.
7974         (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
7975         (get_computation_cost_at, get_computation_cost): Ditto.
7976         (determine_group_iv_cost_generic): Ditto.
7977         (determine_group_iv_cost_address): Ditto.
7978         (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
7979         (determine_group_iv_costs): Ditto.
7980         (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
7981         (iv_ca_set_remove_invariants): Renamed to ...
7982         (iv_ca_set_remove_invs): ... this.  Support inv_vars and inv_exprs.
7983         (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
7984         (iv_ca_set_add_invariants):  Renamed to ...
7985         (iv_ca_set_add_invs): ... this.  Support inv_vars and inv_exprs.
7986         (iv_ca_set_cp): Use iv_ca_set_add_invs.
7987         (iv_ca_has_deps): Support inv_vars and inv_exprs.
7988         (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
7989         (create_new_ivs): Remove useless dump.
7991 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
7993         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
7994         iv_cand code.
7995         (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
7996         (iv_ca_set_no_cp, create_new_iv): Ditto.
7998 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
8000         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
8002 2017-05-02  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
8004         * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
8005         function tree_check2.
8007 2017-05-02  Martin Liska  <mliska@suse.cz>
8009         * doc/gcov.texi: Add missing preposition.
8010         * gcov.c (function_info::function_info): Properly fill up
8011         all member variables.
8013 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
8015         * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
8017 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
8019         * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
8021 2017-05-02  Martin Liska  <mliska@suse.cz>
8023         PR lto/77954.
8024         * lto-streamer-in.c (lto_read_tree_1): Remove
8025         LTO_STREAMER_DEBUG.
8026         * lto-streamer.c (struct tree_hash_entry): Likewise.
8027         (struct tree_entry_hasher): Likewise.
8028         (tree_entry_hasher::hash): Likewise.
8029         (tree_entry_hasher::equal): Likewise.
8030         (lto_streamer_init): Likewise.
8031         (lto_orig_address_map): Likewise.
8032         (lto_orig_address_get): Likewise.
8033         (lto_orig_address_remove): Likewise.
8034         * lto-streamer.h: Likewise.
8035         * tree-streamer-in.c (streamer_alloc_tree): Likewise.
8036         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
8038 2017-05-02  Sebastian Peryt  <sebastian.peryt@intel.com>
8040         * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
8041         (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
8042         (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
8043         (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
8044         (mm_maskz_sub_round_ss, _mm_mask_add_sd)
8045         (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
8046         (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
8047         (mm_maskz_sub_ss): New intrinsics.
8048         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
8049         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
8050         * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
8051         (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
8052         (__builtin_ia32_subss_mask_round): New builtins.
8053         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
8054         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
8055         * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
8056         Renamed to ...
8057         (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
8058         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
8059         Changed to ...
8060         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
8061         ... this.
8063 2017-05-02  Martin Jambor  <mjambor@suse.cz>
8065         PR tree-optimization/78687
8066         * tree-sra.c (access): New field parent.
8067         (process_subtree_disqualification): New function.
8068         (disqualify_candidate): Call it.
8069         (build_accesses_from_assign): Reset write flag if creating an
8070         assighnment link.
8071         (build_access_subtree): Fill in parent field and also prpagate
8072         down grp_write flag.
8073         (create_artificial_child_access): New parameter set_grp_write, set
8074         grp_write to its value.
8075         (propagate_subaccesses_across_link): Also propagate grp_write flag
8076         values.
8077         (propagate_all_subaccesses): Push the closest parent back to work
8078         queue if add_access_to_work_queue returned true.
8080 2017-05-02  Richard Biener  <rguenther@suse.de>
8082         * common.opt (fstrict-overflow): Alias negative to fwrapv.
8083         * doc/invoke.texi (fstrict-overflow): Remove all traces of
8084         -fstrict-overflow documentation.
8085         * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
8086         (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
8087         flag_strict_overflow.
8088         * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
8089         * lto-opts.c (lto_write_options): Do not stream it.
8090         * lto-wrapper.c (merge_and_complain): Do not handle it.
8091         * opts.c (default_options_table): Do not set -fstrict-overflow.
8092         (finish_options): Likewise do not clear it when sanitizing.
8093         * simplify-rtx.c (simplify_const_relational_operation): Do not
8094         test flag_strict_overflow.
8096 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
8098         * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
8099         using enabled attribute.
8100         (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
8101         (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
8102         (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
8103         (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
8104         (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
8105         (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
8106         (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
8107         (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
8108         (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
8109         (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
8111 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
8113         * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
8115 2017-05-02  Richard Biener  <rguenther@suse.de>
8117         PR tree-optimization/80591
8118         Revert
8119         2017-04-10  Richard Biener  <rguenther@suse.de>
8121         * tree-ssa-structalias.c (find_func_aliases): Properly handle
8122         asm inputs.
8124 2017-05-02  Richard Biener  <rguenther@suse.de>
8126         PR tree-optimization/80549
8127         * tree-cfgcleanup.c (mfb_keep_latches): New helper.
8128         (cleanup_tree_cfg_noloop): Create forwarders to known loop
8129         headers if they do not have a preheader.
8131 2017-05-02  Martin Liska  <mliska@suse.cz>
8133         PR other/80589
8134         * common.opt: Fix typo.
8135         * doc/invoke.texi: Likewise.
8137 2017-05-01  Jan Beulich  <jbeulich@suse.com>
8139         * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
8140         swapping, add (x,x,m,x,n) alternative.
8142 2017-05-01  Nathan Sidwell  <nathan@acm.org>
8144         * calls.c (combine_pending_stack_adjustment_and_call): Remove
8145         unnecessary unadjusted_alignment check.
8147 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
8149         PR c++/80038
8150         * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
8151         operations here.
8152         * gimplify.c (gimplify_cilk_detach): New function.
8153         (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
8154         * tree-core.h: Document EXPR_CILK_SPAWN.
8155         * tree.h (EXPR_CILK_SPAWN): Define.
8157 2017-05-01  David Malcolm  <dmalcolm@redhat.com>
8159         * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
8160         to use new fixit_hint representation, using the "replace" logic.
8161         (get_line_span_for_fixit_hint): Likewise.
8162         (layout::print_any_fixits): Likewise.
8163         (selftest::test_one_liner_many_fixits): Rename to...
8164         (selftest::test_one_liner_many_fixits_1): ...this, and update
8165         comment and expected output to reflect that the multiple fix-it
8166         hints are now consolidated into one insertion.
8167         (selftest::test_one_liner_many_fixits_2): New test.
8168         (selftest::test_diagnostic_show_locus_one_liner): Update for
8169         above.
8170         (selftest::test_fixit_consolidation): Update for fix-it API
8171         change.
8172         * diagnostic.c (print_parseable_fixits): Likewise.
8173         * edit-context.c (edited_line::m_line_events): Convert from
8174         auto_vec <line_event *> to auto_vec <line_event>.
8175         (class line_event): Convert from abstract base class to a concrete
8176         class, taking over the role of replace_event.
8177         (class insert_event): Delete.
8178         (class replace_event): Rename to class line_event.  Convert to
8179         half-open range.
8180         (edit_context::add_fixits): Reimplement.
8181         (edit_context::apply_insert): Delete.
8182         (edit_context::apply_replace): Rename to...
8183         (edit_context::apply_fixit): ...this.  Convert to half-open range.
8184         (edited_file::apply_insert): Delete.
8185         (edited_file::apply_replace): Rename to...
8186         (edited_file::apply_fixit): ...this.
8187         (edited_line::~edited_line): Drop deletion of events.
8188         (edited_line::apply_insert): Delete.
8189         (edited_line::apply_replace): Rename to...
8190         (edited_line::apply_fixit): ...this.  Convert to half-open range.
8191         Update for change to type of m_line_events.
8192         * edit-context.h (edit_context::apply_insert): Delete.
8193         (edit_context::apply_replace): Rename to...
8194         (edit_context::apply_fixit): ...this.
8196 2017-05-01  Martin Sebor  <msebor@redhat.com>
8198         * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
8199         known.
8201 2017-05-01  Uros Bizjak  <ubizjak@gmail.com>
8203         PR target/68491
8204         * config/i386/cpuid.h (__get_cpuid): Always return 0 when
8205         __get_cpuid_max returns 0.
8206         (__get_cpuid_count): Ditto.
8208 2017-05-01  Eric Botcazou  <ebotcazou@adacore.com>
8210         * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
8211         replacement expression is another instance of one of its arguments.
8213 2017-05-01  Jakub Jelinek  <jakub@redhat.com>
8215         PR target/79430
8216         * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
8217         check for stack push/pop autoinc.
8218         * config/i386/i386.c (ix86_agi_dependent): Return false
8219         if the only reason why modified_in_p returned true is that
8220         addr is SP based and set_insn is a push or pop.
8222 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
8224         * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
8225         overflow check.
8227 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
8229         PR ipa/79224
8230         * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
8231         (account_size_time): Use two predicates - exec_pred and
8232         nonconst_pred_ptr.
8233         (evaluate_conditions_for_known_args): Compute both clause and
8234         nonspec_clause.
8235         (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
8236         (inline_summary_t::duplicate): Update.
8237         (estimate_function_body_sizes): Caluculate exec and nonconst predicates
8238         separately.
8239         (compute_inline_parameters): Likewise.
8240         (estimate_edge_size_and_time): Update caluclation of time.
8241         (estimate_node_size_and_time): Compute both time and nonspecialized
8242         time.
8243         (estimate_ipcp_clone_size_and_time): Update.
8244         (inline_merge_summary): Update.
8245         (do_estimate_edge_time): Update.
8246         (do_estimate_edge_size): Update.
8247         (do_estimate_edge_hints): Update.
8248         (inline_read_section, inline_write_summary): Stream both new predicates.
8249         * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
8250         as argument.
8251         (compute_inlined_call_time): Cleanup.
8252         (big_speedup_p): Update.
8253         (edge_badness): Update.
8254         * ipa-inline.h (INLINE_TIME_SCALE): Remove.
8255         (size_time_entry): Replace predicate by exec_predicate and
8256         nonconst_predicate.
8257         (edge_growth_cache_entry): Cache both time nad nonspecialized time.
8258         (estimate_edge_time): Return also nonspec_time.
8259         (reset_edge_growth_cache): Update.
8261 2017-04-29  Jakub Jelinek  <jakub@redhat.com>
8263         PR rtl-optimization/80491
8264         * ifcvt.c (noce_process_if_block): When looking for x setter
8265         with missing else_bb, don't check only the insn right before
8266         cond_earliest, but look for the last insn that x is modified in
8267         within the same bb.
8269         PR rtl-optimization/80491
8270         * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
8272 2017-04-29  Marc Glisse  <marc.glisse@inria.fr>
8274         PR tree-optimization/80487
8275         * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
8277 2017-04-29  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8279         PR tree-optimization/79697
8280         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
8281         is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
8282         (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
8283         BUILT_IN_STRNDUP.
8284         * gimple-fold.c (gimple_fold_builtin_realloc): New function.
8285         (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
8287 2017-04-28  Martin Sebor  <msebor@redhat.com>
8289         PR tree-optimization/80523
8290         * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
8291         (init_target_to_host_charmap, target_to_host, target_strtol10): New
8292         functions.
8293         (maybe_warn, format_directive, parse_directive): Use new functions.
8294         (pass_sprintf_length::execute): Call init_target_to_host_charmap.
8296 2017-04-28  Marc Glisse  <marc.glisse@inria.fr>
8298         * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
8300 2017-04-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8302         * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
8303         target_header_dir): Set correctly.
8304         * configure: Regenerated.
8305         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
8306         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
8307         instead of SYSTEM_HEADER_DIR.
8309 2017-04-28  Jan Hubicka  <hubicka@ucw.cz>
8311         * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
8312         (estimate_local_effects): Likewise.
8313         * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
8314         edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
8315         * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
8316         estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
8317         do_estimate_edge_time, estimate_edge_time): Likewise.
8318         * ipa-inline-analysis.c (estimate_node_size_and_time,
8319         estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
8320         (estimate_time_after_inlining): Remove.
8322 2017-04-28  Martin Liska  <mliska@suse.cz>
8324         * doc/gcov.texi: Enhance documentation of gcov.
8326 2017-04-28  Martin Liska  <mliska@suse.cz>
8328         * doc/gcov.texi: Sort options in alphabetic order.
8329         * doc/gcov-dump.texi: Likewise.
8330         * doc/gcov-tool.texi: Likewise.
8331         * gcov.c (print_usage): Likewise.
8332         * gcov-dump.c (print_usage): Likewise.
8333         * gcov-tool.c (print_merge_usage_message): Likewise.
8334         (print_rewrite_usage_message): Likewise.
8335         (print_overlap_usage_message): Likewise.
8337 2017-04-28  Martin Liska  <mliska@suse.cz>
8339         PR gcov-profile/53915
8340         * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
8342 2017-04-28  Martin Liska  <mliska@suse.cz>
8344         PR gcov-profile/79891
8345         * gcov.c (add_line_counts): Assign BBs to lines just if the BB
8346         is marked by compiler as living on a line.
8347         (get_cycles_count): Remove usage of the union.
8348         (output_intermediate_file): Likewise.
8349         (find_source): Fix GNU coding style.
8350         (accumulate_line_counts): Remove old non-all block mode.
8351         (output_lines): Remove usage of the union.
8352         * profile.c (output_location): Include all BBs, even if
8353         belonging to a same line (and file) as a previous BB.
8355 2017-04-28  Martin Liska  <mliska@suse.cz>
8357         * gcov.c (process_args): Handle new argument 'w'.
8358         (read_graph_file): Assign ID to BBs.
8359         (output_branch_count): Display BB # if verbose flag is set.
8360         (output_lines): Likewise for arcs.
8361         (print_usage): Add '--verbose' option help.
8362         * doc/gcov.texi: Document --verbose (-w) option.
8364 2017-04-28  Martin Liska  <mliska@suse.cz>
8366         * gcov.c (struct block_location_info): New struct.
8367         (process_file): Fill up the new structure.
8368         (read_graph_file): Replace usage of encoding by the newly added
8369         struct.
8370         (add_line_counts): Likewise.
8371         (accumulate_line_counts): Remove usage of the union.
8372         (function_info::function_info): New function.
8373         (function_info::~function_info): Likewise.
8374         (process_file): Call delete instead of release_function.
8375         (release_function): Release the function.
8376         (release_structures): Call delete instead of release_function.
8377         (solve_flow_graph): Replace usage of num_blocks.
8378         (find_exception_blocks): Likewise.
8379         (output_lines): Fix GNU coding style.
8381 2017-04-28  Martin Liska  <mliska@suse.cz>
8383         PR driver/56469
8384         * coverage.c (coverage_remove_note_file): New function.
8385         * coverage.h: Declare the function.
8386         * toplev.c (finalize): Clean if an error has been seen.
8388 2017-04-28  Martin Liska  <mliska@suse.cz>
8390         PR gcov-profile/80031
8391         * gcov-dump.c (tag_blocks): Just print number of basic blocks.
8392         * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
8393         * gcov.c (read_graph_file): Read just number of blocks.
8394         * profile.c (branch_prob): Do not stream 0 flags per a basic
8395         block.
8397 2017-04-28  Martin Liska  <mliska@suse.cz>
8399         * gcov-dump.c (tag_*): Add new argument to declarations.
8400         (dump_gcov_file): Likewise.
8401         (tag_blocks): Add and use new argument depth.
8402         (tag_arcs): Likewise.
8403         (tag_lines): Likewise.
8404         (tag_counters): Likewise.
8405         (tag_summary): Likewise.
8406         (dump_working_sets): Use depth to do a proper indentation.
8408 2017-04-28  Jakub Jelinek  <jakub@redhat.com>
8410         PR bootstrap/80531
8411         * cgraph.h (symtab_node::debug_symtab): No longer inline.
8412         * symtab.c (symtab_node::debug_symtab): Move definition here.
8414 2017-04-28  Richard Biener  <rguenther@suse.de>
8416         * lto-streamer.h (LTO_major_version): Bump to 7.
8418 2017-04-28  Richard Biener  <rguenther@suse.de>
8420         * tree-vrp.c (assert_info): New struct.
8421         (add_assert_info): New helper.
8422         (register_edge_assert_for_2): Refactor to add asserts to a vector
8423         of assert_info.
8424         (register_edge_assert_for_1): Likewise.
8425         (register_edge_assert_for): Likewise.
8426         (finish_register_edge_assert_for): New helper actually registering
8427         asserts where live on edge.
8428         (find_conditional_asserts): Adjust.
8429         (find_switch_asserts): Likewise.
8430         (evrp_dom_walker::try_find_new_range): Generalize.
8431         (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
8433 2017-04-27  Marek Polacek  <polacek@redhat.com>
8435         PR sanitizer/80349
8436         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
8437         arg10 and arg11 to itype.
8439 2017-04-27  Jonathan Wakely  <jwakely@redhat.com>
8441         * doc/extend.texi (Object Size Checking): Improve grammar.
8443 2017-04-27  Richard Earnshaw  <rearnsha@arm.com>
8445         PR target/80530
8446         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
8447         that the logic for permitting reciprocal estimates matches that
8448         in use_rsqrt_p.
8450 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
8452         PR c++/80534
8453         * tree.c (type_cache_hasher::equal): Only compare
8454         TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
8455         (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
8456         non-aggregate element types.
8457         * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
8458         about the flag on ARRAY_TYPEs in the comment, formatting fix.
8460 2017-04-27  Richard Biener  <rguenther@suse.de>
8462         PR middle-end/80533
8463         * emit-rtl.c (set_mem_attributes_minus_bitpos): When
8464         stripping ARRAY_REFs from MEM_EXPR make sure we're not
8465         keeping a reference to a trailing array.
8467 2017-04-27  Richard Biener  <rguenther@suse.de>
8469         PR middle-end/80539
8470         * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
8471         being in loop-closed SSA form conservatively.
8472         (chrec_fold_multiply_poly_poly): Likewise.
8474 2017-04-27  Tamar Christina  <tamar.christina@arm.com>
8476         PR middle-end/79665
8477         * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
8478         CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
8480 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
8482         PR target/77728
8483         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
8484         (aarch64_function_arg_alignment): Return unsigned int again, but still
8485         ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
8486         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
8487         Don't emit -Wpsabi note.
8488         (aarch64_function_arg_boundary): Likewise.
8489         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
8490         caller.
8492 2017-04-26  Nathan Sidwell  <nathan@acm.org>
8494         * tree.h (crc32_unsigned_n): Declare.
8495         (crc32_unsigned, crc32_unsigned): Make inline.
8496         * tree.c (crc32_unsigned_bits): Replace with ...
8497         (crc32_unsigned_n): ... this.
8498         (crc32_unsigned, crc32_byte): Remove.
8499         (crc32_string): Remove unnecessary braces.
8501 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
8503         * ipa-cp.c (estimate_local_effects): Convert sreal to int.
8504         * ipa-inline-analysis.c (MAX_TIME): Remove.
8505         (account_size_time): Use sreal for time.
8506         (dump_inline_summary): Update.
8507         (estimate_function_body_sizes): Update.
8508         (estimate_edge_size_and_time): Update.
8509         (estimate_calls_size_and_time): Update.
8510         (estimate_node_size_and_time): Update.
8511         (inline_merge_summary): Update.
8512         (inline_update_overall_summary): Update.
8513         (estimate_time_after_inlining): Update.
8514         (inline_read_section): Update.
8515         (inline_write_summary): Update.
8516         * ipa-inline.c (compute_uninlined_call_time): Update.
8517         (compute_inlined_call_time): Update.
8518         (recursive_inlining): Update.
8519         (inline_small_functions): Update.
8520         (dump_overall_stats): Update.
8521         * ipa-inline.h: Include sreal.h.
8522         (size_time_entry): Turn time to sreal.
8523         (inline_summary): Turn self_time nad time to sreal.
8525 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
8527         * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
8528         data-streamer.h
8529         (sreal::stream_out, sreal::stream_in): New.
8530         * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
8532 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
8534         * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
8535         environment.
8537 2017-04-25  Uros Bizjak  <ubizjak@gmail.com>
8539         PR target/70799
8540         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
8541         Handle ASHIFTRT.
8542         (dimode_scalar_chain::compute_convert_gain): Ditto.
8543         (dimode_scalar_chain::make_vector_copies): Ditto.
8544         (dimode_scalar_chain::convert_reg): Ditto.
8545         (dimode_scalar_chain::convert_insn): Ditto.
8546         * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
8547         (VI248_AVX512BW_1): New mode iterator.
8548         (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
8549         <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
8550         mode iterator.
8552 2017-04-25  Martin Sebor  <msebor@redhat.com>
8554         PR tree-optimization/80497
8555         * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
8556         constants are representable in HOST_WIDE_INT.
8557         (parse_directive): Ditto.
8559 2017-04-25  Martin Sebor  <msebor@redhat.com>
8561         PR bootstrap/80486
8562         * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
8563         (new_zero_array): Adjust signature.
8564         (dom_info::dom_init): Used unsigned rather that size_t.
8565         (dom_info::dom_info): Same.
8567 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8568             Jakub Jelinek  <jakub@redhat.com>
8570         PR target/77728
8571         * config/arm/arm.c: Include gimple.h.
8572         (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
8573         returns negative, increment ncrn only if it returned positive.
8574         (arm_needs_doubleword_align): Return int instead of bool,
8575         ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
8576         members, but if there is any such non-FIELD_DECL
8577         > PARM_BOUNDARY aligned decl, return -1 instead of false.
8578         (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
8579         returns negative, increment nregs only if it returned positive.
8580         (arm_setup_incoming_varargs): Likewise.
8581         (arm_function_arg_boundary): Emit -Wpsabi note if
8582         arm_needs_doubleword_align returns negative, return
8583         DOUBLEWORD_ALIGNMENT only if it returned positive.
8585 2017-04-25  Marek Polacek  <polacek@redhat.com>
8587         PR sanitizer/80349
8588         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
8589         first argument to type.
8591 2017-04-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
8593         PR target/80482
8594         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
8595         type checks to test for compatibility instead of equality.
8597 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8598             Jakub Jelinek  <jakub@redhat.com>
8600         PR target/77728
8601         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
8602         type.
8603         (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
8604         struct.  Ignore DECL_ALIGN of decls other than FIELD_DECL for
8605         the alignment computation, but return their maximum in warn_alignment.
8606         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
8607         Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
8608         is smaller.
8609         (aarch64_function_arg_boundary): Likewise.  Simplify using MIN/MAX.
8610         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
8611         caller.
8613 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
8615         * config/arc/simdext.md (dmpyh): Fix typo.
8617 2017-04-25  Richard Biener  <rguenther@suse.de>
8619         PR tree-optimization/80492
8620         * alias.c (compare_base_decls): Handle registers with asm
8621         specification conservatively.
8622         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
8623         compare_base_decls returning dont-know properly.
8625 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
8627         * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
8628         (legitimate_offset_address_p): New function.
8629         (arc_legitimate_address_p): Use above function.
8631 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
8633         * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
8635 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
8637         * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
8638         ACCH registers whenever they are available.
8640 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
8642         * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
8643         double regs fix when not used.
8645 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
8647         * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
8648         core registers.
8649         (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
8650         (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
8652 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
8654         * config/arc/arc.c (arc_output_addsi): Check for h-register class
8655         when emitting short ADD instructions.
8657 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
8659         * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
8660         constraint.
8661         (cmpsi_cc_c_insn): Likewise.
8662         (cbranchsi4_scratch): Compute proper instruction length using
8663         compact_hreg_operand.
8664         * config/arc/predicates.md (compact_hreg_operand): New predicate.
8666 2017-04-25  Richard Biener  <rguenther@suse.de>
8668         PR middle-end/80509
8669         * passes.c (pass_manager::pass_manager): Initialize
8670         m_name_to_pass_map.
8672 2017-04-25  Richard Biener  <rguenther@suse.de>
8674         PR tree-optimization/79201
8675         * tree-ssa-sink.c (statement_sink_location): Handle calls.
8677 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8679         PR target/80464
8680         * config/s390/vector.md: Split MEM->GPR vector moves for
8681         non-s_operand addresses.
8683 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8685         PR target/79895
8686         * config/s390/predicates.md (reload_const_wide_int_operand): New
8687         predicate.
8688         * config/s390/s390.md ("movti"): Remove d/P alternative.
8689         ("movti_bigconst"): New pattern definition.
8691 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8693         PR target/80080
8694         * s390-protos.h (s390_expand_cs_hqi): Removed.
8695         (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
8696         * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
8697         modes as well as CCZ1mode and CCZmode.
8698         (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
8699         signature of s390_emit_compare_and_swap.
8700         (s390_expand_cs_hqi): Likewise, make static.
8701         (s390_expand_cs_tdsi): Generate an explicit compare before trying
8702         compare-and-swap, in some cases.
8703         (s390_expand_cs): Wrapper function.
8704         (s390_expand_atomic_exchange_tdsi): New backend specific expander for
8705         atomic_exchange.
8706         (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
8707         * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
8708         patterns for small and large integers.  Forbid symref memory operands.
8709         Move expander to s390.c.  Require cc register.
8710         ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
8711         ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
8712         ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
8713         ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
8714         symref memory operands.  Remove CC mode and call s390_match_ccmode
8715         instead.
8716         ("atomic_exchange<mode>"): Allow and implement all integer modes.
8718 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8720         * config/s390/s390.md (define_peephole2): New peephole to help
8721         combining the load-and-test pattern with volatile memory.
8723 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8725         * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
8726         with CCZmode for TARGET_Z196.
8728 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
8730         PR rtl-optimization/80501
8731         * combine.c (make_compound_operation_int): Set subreg_code to SET
8732         even for AND with mask of the sign bit of mode.
8734         PR rtl-optimization/80500
8735         * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
8736         sum's initial value.
8738 2017-04-25  Julian Brown  <julian@codesourcery.com>
8739             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
8741         * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
8743 2017-04-25  Marc Glisse  <marc.glisse@inria.fr>
8745         * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
8747 2017-04-25  Julian Brown  <julian@codesourcery.com>
8748             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
8750         * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
8751         (thunderx2t99_sha): New Reservation.
8753 2017-04-25  Julian Brown  <julian@codesourcery.com>
8754             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
8756         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
8757         type for 1-element load.
8759 2017-04-24  Marc Glisse  <marc.glisse@inria.fr>
8761         * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
8763 2017-04-24  Martin Jambor  <mjambor@suse.cz>
8765         PR tree-optimization/80293
8766         * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
8767         char arrays not totally scalarizable if it is false.
8768         (analyze_all_variable_accesses): Pass correct value in the new
8769         parameter.  Add a statistics counter.
8771 2017-04-24  Jan Hubicka  <hubicka@ucw.cz>
8773         PR middle-end/79931
8774         * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
8776 2017-04-24  Richard Biener  <rguenther@suse.de>
8778         PR tree-optimization/80494
8779         * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
8780         out for complex types.
8782 2017-04-24  Richard Biener  <rguenther@suse.de>
8784         * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
8785         * tree-ssa-sccvn.c (print_scc): Print SCC size.
8786         (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
8787         (DFS): Adjust and never fail.
8788         (sccvn_dom_walker::fail): Remove.
8789         (sccvn_dom_walker::before_dom_children): Adjust.
8790         (run_scc_vn): Likewise and never fail.
8791         * tree-ssa-pre.c (pass_pre::execute): Adjust.
8792         (pass_fre::execute): Likewise.
8794 2017-04-24  Richard Biener  <rguenther@suse.de>
8796         PR tree-optimization/79725
8797         * tree-ssa-sink.c (statement_sink_location): Return whether
8798         failure reason was zero uses.  Move that check later.
8799         (sink_code_in_bb): Deal with zero uses by removing the stmt
8800         if possible.
8802 2017-04-24  Richard Biener  <rguenther@suse.de>
8804         PR c++/2972
8805         * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
8806         pointer-based references.
8808 2017-04-24  Richard Biener  <rguenther@suse.de>
8810         PR bootstrap/79814
8811         * pass_manager.h (pass_manager::operator new): Remove.
8812         (pass_manager::operator delete): Likewise.
8813         * passes.c (pass_manager::operator new): Remove.
8814         (pass_manager::operator delete): Likewise.
8815         (pass_manager::pass_manager): Zero individual pass members.
8817 2017-04-23  Uros Bizjak  <ubizjak@gmail.com>
8819         PR target/70799
8820         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
8821         <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
8822         Check "XEXP (src, 1)" operand here.
8823         <case PLUS, case MINUS, case IOR, case XOR, case AND>:
8824         Check "XEXP (src, 1)" operand here.
8825         (dimode_scalar_chain::make_vector_copies): Detect count register
8826         of a shift instruction.  Zero extend count register from QImode
8827         to DImode to satisfy vector shift pattern count operand predicate.
8828         Substitute vector shift count operand with a DImode copy.
8829         (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
8830         vector register.
8832 2017-04-21  Uros Bizjak  <ubizjak@gmail.com>
8834         * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
8835         Remove UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
8836         (*insvqi_1_mem_rex64): Move above insv<mode>_1.  Remove
8837         UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
8838         (UNSPEC_NOREX_MEM): Remove definition.
8840 2017-04-21  Richard Biener  <rguenther@suse.de>
8842         PR tree-optimization/79547
8843         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8844         Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
8845         bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
8846         without any constraints.
8848 2017-04-21  Richard Biener  <rguenther@suse.de>
8850         PR tree-optimization/78847
8851         * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
8853 2017-04-21  Richard Biener  <rguenther@suse.de>
8855         * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
8856         (build_distinct_type_copy): Likewise.
8857         (build_variant_type_copy): Likewise.
8858         * tree.c (build_qualified_type): Pass down mem-stat info.
8859         (build_distinct_type_copy): Likewise.
8860         (build_variant_type_copy): Likewise.
8862 2017-04-21  Richard Biener  <rguenther@suse.de>
8864         PR tree-optimization/80237
8865         * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
8866         defaulted to NULL.
8867         (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
8868         for a simplified result.
8870 2016-04-21  Richard Biener  <rguenther@suse.de>
8872         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
8873         sth as strict as a simple_iv but a chrec without symbols and an
8874         operand defined in the loop we are peeling (and not some subloop).
8875         (propagate_constants_for_unrolling): Propagate all constants.
8877 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
8879         PR target/79804
8880         * config/i386/i386.c (print_reg): Remove assert for disalowed
8881         regno values, call output_operand_lossage instead.
8883 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
8885         PR target/78090
8886         * config/i386/constraints.md (Yc): New register constraint.
8887         * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
8888         Use Yc constraint for alternative 2 of operand 0.  Remove
8889         preferred_for_speed attribute.
8891 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
8893         * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
8894         lastprivate clauses in SIMT case.
8896 2017-04-20  Volker Reichelt  <v.reichelt@netcologne.de>
8898         * doc/invoke.texi (-Wextra-semi): Document new warning option.
8900 2017-04-20  Richard Biener  <rguenther@suse.de>
8902         PR tree-optimization/57796
8903         * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
8904         as N scalar stores.
8905         (vect_model_load_cost): Cost gathers as N scalar loads.
8907 2017-04-20  Richard Biener  <rguenther@suse.de>
8909         * ggc-page.c (ggc_allocated_p): Rename to ...
8910         (safe_lookup_page_table_entry): ... this and return the lookup
8911         result.
8912         (gt_ggc_m_S): Use safe_lookup_page_table_entry.
8914 2017-04-20  Richard Biener  <rguenther@suse.de>
8916         PR tree-optimization/80453
8917         * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
8918         * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
8919         from the conditions.
8920         (vn_phi_eq): Pass them down.
8921         (vn_phi_lookup): Record them.
8922         (vn_phi_insert): Likewise.
8924 2017-04-20  Matthew Fortune  <matthew.fortune@imgtec.com>
8926         * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
8927         uninitialized variable warning to avoid buffer overrun.
8929 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
8931         PR other/71250
8932         * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
8933         is suppressed for '{ 0 }' in C.
8935 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
8937         * BASE-VER: Set to 8.0.0.
8939 2017-04-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8941         * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
8942         priority .init_array and .fini_array section with SECTION_NOTYPE
8943         flag.
8945 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
8947         PR middle-end/80423
8948         * tree.h (build_array_type): Add typeless_storage default argument.
8949         * tree.c (type_cache_hasher::equal): Also compare
8950         TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
8951         (build_array_type): Add typeless_storage argument, set
8952         TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
8953         recursive call.
8954         (build_nonshared_array_type): Adjust build_array_type_1 caller.
8955         (build_array_type): Likewise.  Add typeless_storage argument.
8957 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
8958             Jakub Jelinek  <jakub@redhat.com>
8960         PR tree-optimization/80426
8961         * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
8962         operation on symbolic operands, also compute the overflow for the
8963         invariant part when the operation degenerates into a negation.
8965 2017-04-19  Jakub Jelinek  <jakub@redhat.com>
8967         PR debug/80461
8968         * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
8969         Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
8971         PR debug/80436
8972         * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
8974 2017-04-19  Georg-Johann Lay  <avr@gjlay.de>
8976         PR target/80462
8977         * config/avr/avr.c (tree.h): Include it.
8978         (cgraph.h): Include it.
8979         (avr_encode_section_info): Don't warn for uninitialized progmem
8980         variable if it's just an alias.
8982 2017-04-19  Richard Biener  <rguenther@suse.de>
8984         PR ipa/65972
8985         * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
8986         when needed by AutoPGO.
8988 2017-04-19  Paulo J. Matos  <paulo@matos-sorge.com>
8990         PR lto/50345
8991         * doc/lto.texi: Remove an extra 'that'.
8993 2017-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
8995         PR rtl-optimization/80429
8996         * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
8997         are only used in debug insns.
8999 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
9000             Vladimir Makarov  <vmakarov@redhat.com>
9002         * config/sparc/predicates.md (input_operand): Add comment.  Return
9003         true for any memory operand when LRA is in progress.
9004         * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
9006 2017-04-18  Jeff Law  <law@redhat.com>
9008         PR target/74563
9009         * mips.md ({return,simple_return}_internal): Do not overwrite
9010         operands[0].
9012 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
9014         PR tree-optimization/80443
9015         * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
9016         instead of adding 1, subtract -1 and similarly instead of subtracting
9017         1 add -1.
9019 2017-04-18  Richard Sandiford  <richard.sandiford@arm.com>
9021         PR rtl-optimization/80357
9022         * haifa-sched.c (tmp_bitmap): New variable.
9023         (model_recompute): Handle duplicate use records.
9024         (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
9025         (free_global_sched_pressure_data): Free it.
9027 2017-04-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9029         Revert:
9030         2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9031         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
9032         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
9033         instead of SYSTEM_HEADER_DIR.
9035 2017-04-18  Jeff Law  <law@redhat.com>
9037         PR middle-end/80422
9038         * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
9039         predecessors after walking up the insn chain.
9041 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
9043         PR debug/80263
9044         * dwarf2out.c (modified_type_die): Try harder not to emit internal
9045         sizetype type into debug info.
9047 2017-04-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
9049         PR target/80099
9050         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
9051         unneeded test for TARGET_UPPER_REGS_SF.
9052         * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
9054 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
9056         PR sanitizer/80444
9057         * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
9058         instead of gsi_after_labels.
9060 2017-04-18  Jeff Law  <law@redhat.com>
9062         * regcprop.c (maybe_mode_change): Avoid creating copies of the
9063         stack pointer.
9065         Revert:
9066         2017-04-13  Jeff Law  <law@redhat.com>
9067         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
9068         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
9070 2017-04-18  Georg-Johann Lay  <avr@gjlay.de>
9072         PR target/79453
9073         * config/avr/avr.c (intl.h): Include it.
9074         (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
9076 2017-04-18  Martin Liska  <mliska@suse.cz>
9078         PR gcov-profile/78783
9079         * gcov-tool.c (gcov_output_files): Validate that destination
9080         file is either removed by the tool or by a user.
9082 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
9083             Guy Benyei  <guybe@mellanox.com>
9085         * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
9086         block, and do not negate it, the stored id is already negative.
9088 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
9090         * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
9092 2017-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9094         PR target/80098
9095         * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
9096         masks of options that should be turned off if the VSX vector
9097         options are turned off.
9098         (OTHER_P8_VECTOR_MASKS): Likewise.
9099         (OTHER_VSX_VECTOR_MASKS): Likewise.
9100         * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
9101         rs6000_disable_incompatible_switches to validate no type switches
9102         like -mvsx.
9103         (rs6000_incompatible_switch): New function to disallow turning on
9104         other vector options if -mno-vsx, -mno-power8-vector, or
9105         -mno-power9-vector are specified.
9107 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
9109         * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
9111 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
9113         * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
9114         * config/arc/arc.c (arc_decl_pretend_args): Likewise.
9115         * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
9116         (ARG_POINTER_CFA_OFFSET): Likewise.
9118 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
9120         * config/arc/arc.c (arc_mode_dependent_address_p): Relax
9121         conditions to take advantage of various optimizations.
9123 2017-04-13  Jeff Law  <law@redhat.com>
9125         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
9126         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
9127         (zero_extendsidi2_dext): Likewise.
9129 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
9131         PR sanitizer/80403
9132         * fold-const.c (fold_ternary_loc): Revert
9133         use op0 instead of fold_convert_loc (loc, type, arg0) part of
9134         2017-04-12 change.
9136 2017-04-13  Vladimir Makarov  <vmakarov@redhat.com>
9138         PR rtl-optimization/80343
9139         * lra-remat.c (update_scratch_ops): Assign original hard reg to
9140         new scratch pseudo.
9142 2017-04-13  Denis Khalikov <d.khalikov@partner.samsung.com>
9144         PR sanitizer/80414
9145         * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
9146         to ubsan_encode_value.
9148 2017-04-13  Jeff Law  <law@redhat.com>
9150         * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
9151         appearing in DEBUG_INSNs.
9153 2017-04-13  Martin Liska  <mliska@suse.cz>
9155         PR gcov-profile/80413
9156         * gcov-io.c (gcov_write_string): Copy to buffer just when
9157         allocated size is greater than zero.
9159 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
9161         PR debug/80321
9162         * dwarf2out.c (decls_for_scope): Ignore declarations of
9163         current_function_decl in BLOCK_NONLOCALIZED_VARS.
9165 2017-04-12  Jan Hubicka  <hubicka@ucw.cz>
9167         PR lto/69953
9168         * ipa-visibility.c (non_local_p): Fix typos.
9169         (localize_node): When localizing symbol in same comdat group,
9170         dissolve the group only when we know external symbols are going
9171         to be privatized.
9172         (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
9174 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
9176         PR tree-optimization/79390
9177         * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
9178         order does not result in usable sequence, retry with reversed operand
9179         order.
9181         PR sanitizer/80403
9182         PR sanitizer/80404
9183         PR sanitizer/80405
9184         * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
9185         to fold_build2_loc.  Convert TREE_OPERAND (tem, 0) to type.  Use
9186         op0 instead of fold_convert_loc (loc, type, arg0).
9188 2017-04-12  Jeff Law  <law@redhat.com>
9190         * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
9191         has a delay slot in the generated code.
9193         * config/cris/cris.md (cris_preferred_reload_class): Return
9194         GENNONACR_REGS rather than GENERAL_REGS.
9196 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
9198         PR c/80163
9199         * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
9200         vs. ZERO_EXTEND based on signedness of treeop0's type rather than
9201         signedness of the result type.
9203 2017-04-12  Richard Biener  <rguenther@suse.de>
9204             Jeff Law  <law@redhat.com>
9206         PR tree-optimization/80359
9207         * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
9208         trim stores to TARGET_MEM_REFs.
9210 2017-04-12  Richard Biener  <rguenther@suse.de>
9212         PR tree-optimization/79390
9213         * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
9214         threading case even more.
9216 2017-04-12  Segher Boessenkool  <segher@kernel.crashing.org>
9218         PR target/80382
9219         * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
9220         for quad_address_p for TImode, instead of just not indexed_address.
9222 2017-04-12  Richard Biener  <rguenther@suse.de>
9223             Bernd Edlinger  <bernd.edlinger@hotmail.de>
9225         PR middle-end/79671
9226         * alias.c (component_uses_parent_alias_set_from): Handle
9227         TYPE_TYPELESS_STORAGE.
9228         (get_alias_set): Likewise.
9229         * tree-core.h (tree_type_common): Add typeless_storage flag.
9230         * tree.h (TYPE_TYPELESS_STORAGE): New macro.
9231         * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
9232         for types containing members with TYPE_TYPELESS_STORAGE.
9233         (place_field): Likewise.
9234         (layout_type): Likewise for ARRAY_TYPE.
9235         * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
9236         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
9237         TYPE_TYPELESS_STORAGE.
9238         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
9240 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
9242         PR sanitizer/80349
9243         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
9244         first argument to type.
9246 2017-04-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9248         PR target/80376
9249         PR target/80315
9250         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
9251         CONST0_RTX (mode) rather than const0_rtx where appropriate.
9252         (rs6000_expand_binop_builtin): Likewise.
9253         (rs6000_expand_ternop_builtin): Likewise; also add missing
9254         vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
9255         vshasigma built-ins.
9256         * doc/extend.texi: Document that vec_xxpermdi's third argument
9257         must be a constant.
9259 2017-04-11  Uros Bizjak  <ubizjak@gmail.com>
9261         * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
9262         Use shift_const cost parameter when calculating gain of STV shifts.
9264 2017-04-11  Vladimir Makarov  <vmakarov@redhat.com>
9266         PR rtl-optimization/70478
9267         * lra-constraints.c (process_alt_operands): Check memory for
9268         disfavoring memory insn operand.
9270 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
9272         PR middle-end/80100
9273         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
9274         left shift in unsigned HOST_WIDE_INT type.
9276         PR rtl-optimization/80385
9277         * simplify-rtx.c (simplify_unary_operation_1): Don't transform
9278         (not (neg X)) into (plus X -1) for complex or non-integral modes.
9280         PR libgomp/80394
9281         * omp-low.c (scan_omp_task): Don't optimize away empty tasks
9282         if they have any depend clauses.
9284 2017-04-11  Martin Liska  <mliska@suse.cz>
9286         PR ipa/80212
9287         * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
9288         * ipa-split.c (split_function): Create a local comdat symbol
9289         if caller is in a comdat group.
9291 2017-04-11  Martin Liska  <mliska@suse.cz>
9293         PR ipa/80212
9294         * ipa-cp.c (determine_versionability): Handle calls_comdat_local
9295         flags.
9297 2017-04-11  Martin Sebor  <msebor@redhat.com>
9299         PR middle-end/80364
9300         * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
9301         always use the int type.  Use INTEGRAL_TYPE_P() rather than testing
9302         for INTEGER_TYPE.
9303         (directive::set_width, directive::set_precision, format_character):
9304         Adjust.
9305         (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
9306         INTEGER_TYPE.
9308 2017-04-11  Richard Earnshaw  <rearnsha@arm.com>
9310         PR target/80389
9311         * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
9312         conflict, set target->arch_name instead of target->cpu_name.
9314 2017-04-11  Richard Biener  <rguenther@suse.de>
9316         PR tree-optimization/80374
9317         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
9318         build_zero_cst, remove fold_convertible_p check again.
9320 2017-04-11  Martin Liska  <mliska@suse.cz>
9322         PR sanitizer/70878
9323         * ubsan.c (instrument_object_size): Do not instrument register
9324         variables.
9326 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
9328         PR target/80381
9329         * config/i386/i386-builtin-types.def
9330         (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
9331         V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
9332         V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
9333         V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
9334         V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
9335         V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
9336         V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
9337         V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
9338         V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
9339         V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
9340         V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
9341         V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
9342         V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
9343         V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
9344         V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
9345         V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
9346         V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
9347         V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
9348         * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
9349         __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
9350         __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
9351         __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
9352         __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
9353         __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
9354         __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
9355         __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
9356         __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
9357         __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
9358         __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
9359         __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
9360         __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
9361         __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
9362         __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
9363         __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
9364         __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
9365         __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
9366         __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
9367         __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
9368         __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
9369         __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
9370         __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
9371         __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
9372         __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
9373         __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
9374         __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
9375         __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
9376         aliases.
9377         * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
9378         flag to second_arg_count, handle 4 argument function type _COUNT
9379         aliases, handle second_arg_count on second argument rather than last.
9381 2017-04-10  Jeff Law  <law@redhat.com>
9383         PR tree-optimization/80374
9384         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
9385         record anything if we can not convert integer_zero_node to the
9386         desired type.
9388 2017-04-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9390         PR target/80108
9391         * config/rs6000/rs6000.c (rs6000_option_override_internal):
9392         Enhance special handling given to the TARGET_P9_MINMAX option in
9393         relation to certain other options.
9395 2017-04-10  Bin Cheng  <bin.cheng@arm.com>
9397         PR tree-optimization/80153
9398         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
9399         remove POINTER_PLUS_EXPR's base part directly, rather than through
9400         aff_tree.
9402 2017-04-10  Richard Biener  <rguenther@suse.de>
9403             Bin Cheng  <bin.cheng@arm.com>
9405         PR tree-optimization/80153
9406         * tree-affine.c (aff_combination_to_tree): Get base pointer from
9407         the first element of pointer type aff_tree.  Build result expr in
9408         aff_tree's type.
9409         (add_elt_to_tree): Convert to type unconditionally.  Remove other
9410         fold_convert calls.
9411         * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
9412         (rewrite_use_nonlinear_expr): Check invariant using iv information.
9414 2017-04-10  Richard Biener  <rguenther@suse.de>
9416         * tree-ssa-structalias.c (find_func_aliases): Properly handle
9417         asm inputs.
9419 2017-04-10  Vladimir Makarov  <vmakarov@redhat.com>
9421         PR rtl-optimization/70478
9422         * lra-constraints.c (curr_small_class_check): New.
9423         (update_and_check_small_class_inputs): New.
9424         (process_alt_operands): Update curr_small_class_check.  Disfavor
9425         alternative insn memory operands.  Check available regs for small
9426         class operands.
9428 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
9430         PR target/80057
9431         * config/mips/mips.opt (-mvirt): Update description.
9432         * doc/invoke.texi (-mvirt): Likewise.
9434 2017-04-10  Richard Biener  <rguenther@suse.de>
9436         PR middle-end/80362
9437         * fold-const.c (fold_binary_loc): Look at unstripped ops when
9438         looking for NEGATE_EXPR in -A / -B to A / B folding.
9440 2017-04-10  Martin Liska  <mliska@suse.cz>
9442         PR gcov-profile/80224
9443         * gcov.c (print_usage): Fix usage string.
9444         (get_gcov_intermediate_filename): Remove.
9445         (output_gcov_file): Use both for normal and intermediate format.
9446         (generate_results): Do not initialize special file for
9447         intermediate format.
9449 2017-04-10  Richard Biener  <rguenther@suse.de>
9451         PR tree-optimization/80304
9452         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
9453         for safelen.
9455 2017-04-10  Nathan Sidwell  <nathan@acm.org>
9457         PR target/79905
9458         * config/rs6000/rs6000.c (rs6000_vector_type): New.
9459         (rs6000_init_builtins): Use it.
9461 2016-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9463         * config/arm/arm.md (<mrc>): Add mode to SET source.
9464         (<mrrc>): Likewise.
9466 2017-04-10  Richard Biener  <rguenther@suse.de>
9468         PR middle-end/80344
9469         * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
9471 2017-04-10  Jakub Jelinek  <jakub@redhat.com>
9473         PR target/80324
9474         * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
9475         _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
9476         _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
9477         _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
9478         _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
9479         _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
9480         _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
9481         _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
9482         _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
9483         _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
9484         _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
9485         _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
9486         _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
9487         _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
9488         _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
9489         _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
9490         _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
9491         _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
9492         _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
9493         _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
9494         _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
9495         _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
9496         _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
9498 2017-04-08  Vladimir Makarov  <vmakarov@redhat.com>
9500         PR rtl-optimization/70478
9501         * lra-constraints.c: Reverse the last patch.
9503 2017-04-08  Andreas Tobler  <andreast@gcc.gnu.org>
9505         * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
9506         Add comment for WCHAR_T.
9508 2017-04-08  Martin Liska  <mliska@suse.cz>
9510         Revert:
9511         2017-04-07  Martin Liska  <mliska@suse.cz>
9513         PR ipa/80212
9514         * ipa-split.c (split_function): Add function part to a same comdat
9515         group.
9517 2017-04-08  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
9519         PR target/80358
9520         * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
9522 2017-04-07  Pat Haugen  <pthaugen@us.ibm.com>
9524         * rs6000/rs6000.c (vec_load_pendulum): Rename...
9525         (vec_pairing): ...to this.
9526         (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
9527         (rs6000_sched_init): Adjust for name change.
9528         (struct rs6000_sched_context): Likewise.
9529         (rs6000_init_sched_context): Likewise.
9530         (rs6000_set_sched_context): Likewise.
9532 2017-04-07  Jakub Jelinek  <jakub@redhat.com>
9534         PR target/80322
9535         PR target/80323
9536         PR target/80325
9537         PR target/80326
9538         * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
9539         intrinsics.
9540         * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
9541         _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
9542         _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
9544 2017-04-07  Andreas Tobler  <andreast@gcc.gnu.org>
9546         * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
9548 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
9550         PR rtl-optimization/70703
9551         * ira-color.c (update_conflict_hard_regno_costs): Use
9552         int64_t instead of HOST_WIDE_INT.
9554 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
9556         PR rtl-optimization/70478
9557         * lra-constraints.c (process_alt_operands): Disfavor alternative
9558         insn memory operands.
9560 2017-04-07  Jeff Law  <law@redhat.com>
9562         * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
9563         CALL and NOTE_INSN_CALL_ARG_LOCATION.
9565 2017-04-07  Martin Liska  <mliska@suse.cz>
9567         PR target/79889
9568         * config/aarch64/aarch64.c (aarch64_process_target_attr):
9569         Show error message instead of an ICE.
9571 2017-04-07  Martin Liska  <mliska@suse.cz>
9573         PR ipa/80212
9574         * ipa-split.c (split_function): Add function part to a same comdat
9575         group.
9577 2017-04-07  Richard Biener  <rguenther@suse.de>
9579         PR middle-end/80341
9580         * tree.c (get_unwidened): Also handle ! for_type case for
9581         INTEGER_CSTs.
9582         * convert.c (do_narrow): Split out from ...
9583         (convert_to_integer_1): ... here.  Do not pass final truncation
9584         type to get_unwidened for TRUNC_DIV_EXPR.
9586 2017-04-07  Richard Biener  <rguenther@suse.de>
9588         * tree-affine.c (wide_int_ext_for_comb): Take type rather
9589         than aff_tree.
9590         (aff_combination_const): Adjust.
9591         (aff_combination_scale): Likewise.
9592         (aff_combination_add_elt): Likewise.
9593         (aff_combination_add_cst): Likewise.
9594         (aff_combination_convert): Likewise.
9595         (add_elt_to_tree): Likewise.  Remove unused argument.
9596         (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
9598 2017-04-07  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9600         * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
9601         definition.
9602         * config/arm/arm.c (arm_default_short_enums): Use
9603         ARM_DEFAULT_SHORT_ENUMS.
9604         * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
9606 2017-04-06  Jakub Jelinek  <jakub@redhat.com>
9608         PR debug/80234
9609         * dwarf2out.c (gen_member_die): Handle C++17 inline static data
9610         members with redundant out-of-class redeclaration.
9612 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
9614         PR target/80286
9615         * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
9616         * config/i386/i386.md (*zero_extendsidi2):
9617         Add (?*x,*x) and (?*v,*v) alternatives.
9619 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
9621         PR target/79733
9622         * config/i386/i386.c (ix86_expand_builtin)
9623         <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
9624         mode from insn data. Convert operands to insn operand mode.
9625         Copy operands that don't satisfy insn predicate to a register.
9627 2017-04-06  Sam Thursfield  <sam.thursfield@codethink.co.uk>
9629         * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
9630         Update comments.
9632 2017-04-06  Richard Biener  <rguenther@suse.de>
9634         PR tree-optimization/80334
9635         * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
9636         preserve alignment of accesses.
9638 2017-04-06  Richard Biener  <rguenther@suse.de>
9640         PR tree-optimization/80262
9641         * tree-sra.c (build_ref_for_offset): Preserve address-space
9642         information.
9643         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
9644         Drop useless address-space information on MEM_REF offsets.
9646 2017-04-05  Andreas Schwab  <schwab@linux-m68k.org>
9648         * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
9650 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
9652         PR rtl-optimization/70703
9653         * ira-color.c (update_conflict_hard_regno_costs): Use
9654         HOST_WIDE_INT instead of long.
9656 2017-04-05  Uros Bizjak  <ubizjak@gmail.com>
9658         PR target/80298
9659         * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
9660         not defined for x86_64 target.  Add -mmmx target option when __SSE2__
9661         is not defined.
9662         * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
9663         for x86_64 target.  Handle -m3dnowa option.
9665 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
9667         PR rtl-optimization/70703
9668         * ira-color.c (update_costs_from_allocno): Use the smallest mode.
9669         (update_conflict_hard_regno_costs): Use long instead of unsigned
9670         arithmetic for cost calculation.
9672 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
9673             Bernd Edlinger  <bernd.edlinger@hotmail.de>
9675         PR sanitizer/80308
9676         * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
9677         for big endian.
9679 2017-04-05  Eric Botcazou  <ebotcazou@adacore.com>
9681         PR target/78002
9682         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
9683         ptr_mode with Pmode throughout.
9684         * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
9685         into probe_stack_range and use DImode.
9687 2017-04-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9689         PR target/79890
9690         * config/s390/s390.c (s390_register_info_gprtofpr): Return if
9691         call_eh_return is true.
9693 2017-04-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9695         * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
9696         Initialize last_match_fntype_index.
9698 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
9700         PR target/80310
9701         * tree-nvr.c: Include internal-fn.h.
9702         (pass_return_slot::execute): Ignore internal calls without
9703         direct optab.
9705 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
9706             Richard Biener  <rguenther@suse.de>
9708         PR c++/80297
9709         * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
9710         captures used multiple times, except for the last use.
9711         * generic-match-head.c: Include gimplify.h.
9713 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
9715         PR tree-optimization/79390
9716         * target.h (struct noce_if_info): Declare.
9717         * targhooks.h (default_noce_conversion_profitable_p): Declare.
9718         * target.def (noce_conversion_profitable_p): New target hook.
9719         * ifcvt.h (struct noce_if_info): New type, moved from ...
9720         * ifcvt.c (struct noce_if_info): ... here.
9721         (noce_conversion_profitable_p): Renamed to ...
9722         (default_noce_conversion_profitable_p): ... this.  No longer
9723         static nor inline.
9724         (noce_try_store_flag_constants, noce_try_addcc,
9725         noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
9726         noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
9727         instead of noce_conversion_profitable_p.
9728         * config/i386/i386.c: Include ifcvt.h.
9729         (ix86_option_override_internal): Don't override
9730         PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
9731         (ix86_noce_conversion_profitable_p): New function.
9732         (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
9733         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
9734         * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
9735         * doc/tm.texi: Regenerated.
9737 2017-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9739         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
9740         correction.
9742 2017-04-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9744         PR target/80307
9745         * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
9746         instructions for small multiply cores.
9748 2017-04-04  Jeff Law  <law@redhat.com>
9750         * config/mips/mips.c (mips_multi_add): Zero initialize the newly
9751         added member.
9752         (mips_expand_vec_perm_const): Initialize elements in orig_perm
9753         that are not set by the loop over the elements.
9755 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
9757         PR target/80286
9758         * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
9759         int mode, convert_modes it to mode as unsigned, otherwise use
9760         lowpart_subreg to mode rather than SImode.
9761         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
9762         ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
9763         Use DImode instead of SImode for the shift count operand.
9764         * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
9765         Likewise.
9767 2017-04-04  Richard Biener  <rguenther@suse.de>
9769         PR middle-end/80281
9770         * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
9771         arithmetic done for the negate or the plus.  Simplify.
9772         (A - (-B) -> A + B): Likewise.
9773         * fold-const.c (split_tree): Make sure to not negate pointers.
9775 2017-04-04  Segher Boessenkool  <segher@kernel.crashing.org>
9777         PR rtl-optimization/60818
9778         * simplify-rtx.c (simplify_binary_operation_1): Do not replace
9779         a compare of comparisons with the thing compared if this results
9780         in a different machine mode.
9782 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
9784         * alias.c (base_alias_check): Fix typo in comment.
9785         * cgraph.h (class ipa_polymorphic_call_context): Likewise.
9786         * cgraphunit.c (symbol_table::compile): Likewise.
9787         * collect2.c (maybe_run_lto_and_relink): Likewise.
9788         * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
9789         * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
9790         * config/avr/avr.c (avr_map_op_t): Likewise.
9791         * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
9792         * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
9793         * config/epiphany/epiphany.md (movcc): Likewise.
9794         * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
9795         * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
9796         Likewise.
9797         * config/mips/mips.c (mips_save_restore_reg): Likewise.
9798         * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
9799         * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
9800         * config/sh/sh.c (sh_rtx_costs): Likewise.
9801         * fold-const.c (fold_truth_andor): Likewise.
9802         * genautomata.c (collapse_flag): Likewise.
9803         * gengtype.h (struct type::u::s): Likewise.
9804         * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
9805         * input.c (FORMAT_AMOUNT): Likewise.
9806         * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
9807         (known_aggs_to_agg_replacement_list): Likewise.
9808         * ipa-inline-analysis.c: Likewise.
9809         * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
9810         * ipa-polymorphic-call.c
9811         (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
9812         * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
9813         * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
9814         Likewise.
9815         * modulo-sched.c (apply_reg_moves): Likewise.
9816         * omp-expand.c (build_omp_regions_1): Likewise.
9817         * trans-mem.c (struct tm_wrapper_hasher): Likewise.
9818         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
9819         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
9820         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
9821         * value-prof.c: Likewise.
9822         * var-tracking.c (val_reset): Likewise.
9824 2017-04-03  Richard Biener  <rguenther@suse.de>
9826         PR tree-optimization/80275
9827         * fold-const.c (split_address_to_core_and_offset): Handle
9828         POINTER_PLUS_EXPR.
9830 2017-04-03  Eric Botcazou  <ebotcazou@adacore.com>
9832         * tree-nested.c (get_descriptor_type): Make sure that the alignment of
9833         descriptors is at least equal to that of functions.
9835 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
9837         * config/i386/sse.md (movdi_to_sse): Add missing DONE.
9839 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
9841         PR target/80250
9842         * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
9843         (mov<IMOD4:mode>): New expander.
9844         (*mov<IMOD4:mode>_internal): New insn and split pattern.
9846 2017-03-31  Segher Boessenkool  <segher@kernel.crashing.org>
9848         PR rtl-optimization/79405
9849         * fwprop.c (propagations_left): New variable.
9850         (forward_propagate_into): Decrement it.
9851         (fwprop_init): Initialize it.
9852         (fw_prop): If the variable has reached zero, stop propagating.
9853         (fwprop_addr): Ditto.
9855 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
9857         PR debug/79255
9858         * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
9859         a FUNCTION_DECL, pass it as decl instead of origin to
9860         process_scope_var.
9862 2017-03-31  Alexander Monakov  <amonakov@ispras.ru>
9864         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
9865         string.
9867 2017-03-31  Pat Haugen  <pthaugen@us.ibm.com>
9869         PR target/80107
9870         * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
9871         TARGET_VSX_SMALL_INTEGER.
9873 2017-03-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9875         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
9876         reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
9878 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
9880         * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
9881         extraction from odd-numbered MSA register.
9883 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
9885         PR middle-end/80173
9886         * expmed.c (store_bit_field_1): Don't attempt to create
9887         a word subreg out of hard registers wider than word if they
9888         have HARD_REGNO_NREGS of 1 for their mode.
9890         PR middle-end/80163
9891         * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
9892         conversions to integer types wider than word and pointer.
9894         PR debug/80025
9895         * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
9896         (rtx_equal_for_cselib_p): Pass 0 to it.
9897         * cselib.c (cselib_hasher::equal): Likewise.
9898         (rtx_equal_for_cselib_1): Add depth argument.  If depth
9899         is 128, don't look up VALUE locs and punt.  Increment
9900         depth in recursive calls when walking VALUE locs.
9902 2017-03-31  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9904         * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
9905         (make_gcov_file_name): Use the canonical path name for generating
9906         the MD5 value.
9907         (read_line): Fix handling of files with ascii null bytes.
9909 2017-03-30  Matthew Fortune  <matthew.fortune@imgtec.com>
9911         * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
9912         to initialise a vector register instead
9913         of using a const_int.
9915 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
9917         PR translation/80189
9918         * gimplify.c (omp_default_clause): Use %qs instead of %s in
9919         diagnostic messages.
9921 2017-03-30  Peter Bergner  <bergner@vnet.ibm.com>
9923         PR target/80246
9924         * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
9925         (dfp_diex_<mode>): Update mode of operand 1.
9926         * doc/extend.texi (dxex, dxexq): Document change to return type.
9927         (diex, diexq): Document change to argument type.
9929 2017-03-30  Martin Jambor  <mjambor@suse.cz>
9931         PR ipa/77333
9932         * cgraph.h (cgraph_build_function_type_skip_args): Declare.
9933         * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
9934         it reflects the signature changes performed at the callee side.
9935         * cgraphclones.c (build_function_type_skip_args): Make public, renamed
9936         to cgraph_build_function_type_skip_args.
9937         (build_function_decl_skip_args): Adjust call to the above function.
9939 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
9941         PR target/80206
9942         * config/i386/sse.md
9943         (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
9944         register as dest whenever it is a MEM not rtx_equal_p to the
9945         corresponding dup operand, and when forcing into reg move the
9946         reg into the memory afterwards.
9947         (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
9948         Likewise.  Use <ssehalfvecmode> instead of <ssequartermode>
9949         for the force_reg mode.
9950         (avx512vl_vextractf128<mode>): Use register as dest either
9951         always when a MEM, or when it is a MEM not rtx_equal_p to the
9952         corresponding dup operand, or even not when it is a CONST_VECTOR
9953         depending on the mode and lo vs. hi.
9954         (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
9955         parens.
9956         (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
9957         (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
9958         Likewise.  Require that operands[2] is even.
9959         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
9960         Remove extraneous parens.  Require that operands[2] is a multiple
9961         of 4.
9962         (vec_extract_lo_<mode><mask_name>): Don't bother testing if
9963         operands[0] is a MEM if <mask_applied>, the predicates/constraints
9964         disallow memory then.
9966 2017-03-30  Richard Biener  <rguenther@suse.de>
9968         PR tree-optimization/77498
9969         * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
9970         to non-constants over backedges.
9972 2017-03-29  Segher Boessenkool  <segher@kernel.crashing.org>
9974         PR rtl-optimization/80233
9975         * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
9976         as last_combined_insn.  Do not test for BARRIER_P separately.
9978 2017-03-29  Andreas Schwab  <schwab@suse.de>
9980         PR ada/80146
9981         * calls.c (prepare_call_address): Convert funexp to Pmode before
9982         copying to temp reg.
9984 2017-03-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9986         PR tree-optimization/80158
9987         * gimple-ssa-strength-reduction.c (replace_mult_candidate):
9988         Handle possible future case of more than one alternate
9989         interpretation.
9990         (replace_rhs_if_not_dup): Likewise.
9991         (replace_one_candidate): Likewise.
9993 2017-03-28  Vladimir Makarov  <vmakarov@redhat.com>
9995         PR rtl-optimization/80193
9996         * ira.c (ira): Do not check allocation for LRA.
9998 2017-03-28  Alexander Monakov  <amonakov@ispras.ru>
10000         * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
10001         (nvptx_output_simt_exit): Declare.
10002         * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
10003         cfun->machine->unisimt_location.  Handle NULL unisimt_predicate.
10004         (init_softstack_frame): Move initialization of crtl->is_leaf to...
10005         (nvptx_declare_function_name): ...here.  Emit declaration of local
10006         memory space buffer for omp_simt_enter insn.
10007         (nvptx_output_unisimt_switch): New.
10008         (nvptx_output_softstack_switch): New.
10009         (nvptx_output_simt_enter): New.
10010         (nvptx_output_simt_exit): New.
10011         * config/nvptx/nvptx.h (struct machine_function): New fields
10012         has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
10013         * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
10014         (UNSPECV_SIMT_EXIT): Ditto.
10015         (omp_simt_enter_insn): New insn.
10016         (omp_simt_enter): New expansion.
10017         (omp_simt_exit): New insn.
10018         * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
10020         * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
10021         (expand_GOMP_SIMT_ENTER_ALLOC): New.
10022         (expand_GOMP_SIMT_EXIT): New.
10023         * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
10024         (GOMP_SIMT_ENTER_ALLOC): Ditto.
10025         (GOMP_SIMT_EXIT): Ditto.
10026         * target-insns.def (omp_simt_enter): New insn.
10027         (omp_simt_exit): Ditto.
10028         * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
10029         simt_dlist.
10030         (lower_rec_simd_input_clauses): Implement SIMT privatization.
10031         (lower_rec_input_clauses): Likewise.
10032         (lower_lastprivate_clauses): Handle SIMT privatization.
10034         * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
10035         (ompdevlow_adjust_simt_enter): New.
10036         (find_simtpriv_var_op): New.
10037         (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
10038         IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
10040         * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
10041         * tree-inline.c (expand_call_inline): Handle SIMT privatization.
10042         (copy_decl_for_dup_finish): Ditto.
10044         * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
10046 2017-03-28  Uros Bizjak  <ubizjak@gmail.com>
10048         PR target/53383
10049         * config/i386/i386.c (ix86_option_override_internal): Always
10050         allow -mpreferred-stack-boundary=3 for 64-bit targets.
10052 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
10054         * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
10056 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
10058         * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
10059         mark new edge's irreducible flag accordign to it.
10060         (vect_do_peeling): Check loop preheader edge's irreducible flag
10061         and pass it to function slpeel_add_loop_guard.
10063 2017-03-28  Richard Sandiford  <richard.sandiford@arm.com>
10065         PR tree-optimization/80218
10066         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
10067         Update block frequencies and counts.
10069 2017-03-28  Richard Biener  <rguenther@suse.de>
10071         PR tree-optimization/78644
10072         * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
10073         of a simplification result we may not use it at all.
10075 2017-03-28  Richard Biener  <rguenther@suse.de>
10077         PR ipa/80205
10078         * tree-inline.c (copy_phis_for_bb): Do not create PHI node
10079         without arguments, generate default definition of a SSA name.
10081 2017-03-28  Richard Biener  <rguenther@suse.de>
10083         PR middle-end/80222
10084         * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
10085         TYPE_REF_CAN_ALIAS_ALL references.
10086         * fold-const.c (fold_indirect_ref_1): Likewise.
10088 2017-03-28  Martin Liska  <mliska@suse.cz>
10090         PR ipa/80104
10091         * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
10092         thunk call as DECL_GIMPLE_REG_P when vector or complex type.
10094 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
10095             Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>
10097         * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
10098         (EXTRA_SPECS): Define.
10099         (SUBTARGET_EXTRA_SPECS): Likewise.
10100         (SUBTARGET_CPP_SPEC): Likewise.
10101         * config/arc/elf.h (EXTRA_SPECS): Renamed to
10102         SUBTARGET_EXTRA_SPECS.
10103         * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
10105 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
10107         * config/arc/simdext.md (vst64_insn): Update pattern.
10108         (vld32wh_insn): Likewise.
10109         (vld32wl_insn): Likewise.
10110         (vld64_insn): Likewise.
10111         (vld32_insn): Likewise.
10113 2017-03-28  Marek Polacek  <polacek@redhat.com>
10115         PR sanitizer/80067
10116         * fold-const.c (fold_comparison): Use protected_set_expr_location
10117         instead of SET_EXPR_LOCATION.
10119 2017-03-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
10121         * tree.c (add_expr): Avoid name lookup warning.
10123 2017-03-27  Jeff Law  <law@redhat.com>
10125         PR tree-optimization/80216
10126         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
10127         function name.  Limit recursion depth.
10128         (record_temporary_equivalences): Corresponding changes.
10130 2017-03-27  Jonathan Wakely  <jwakely@redhat.com>
10132         * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
10133         covered first.
10135 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
10137         PR target/80102
10138         * reg-notes.def (REG_CFA_NOTE): Define.  Use it for CFA related
10139         notes.
10140         * cfgcleanup.c (reg_note_cfa_p): New array.
10141         (insns_have_identical_cfa_notes): New function.
10142         (old_insns_match_p): Don't cross-jump in between /f
10143         and non-/f instructions.  If both i1 and i2 are frame related,
10144         verify all CFA notes, their order and content.
10146 2017-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
10148         PR target/78543
10149         * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
10150         HImode and SImode with zero extend to DImode to one insn.
10151         (bswap<mode>2_extenddi): Likewise.
10152         (bswapsi2_extenddi): Likewise.
10153         (bswaphi2_extendsi): Likewise.
10154         (bswaphi2): Combine bswap HImode and SImode into one insn.
10155         Separate memory insns from swapping register.
10156         (bswapsi2): Likewise.
10157         (bswap<mode>2): Likewise.
10158         (bswaphi2_internal): Delete, no longer used.
10159         (bswapsi2_internal): Likewise.
10160         (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
10161         store, and gpr<-gpr swap insns.
10162         (bswap<mode>2_store): Likewise.
10163         (bswaphi2_reg): Register only splitter, combine with the splitter.
10164         (bswaphi2 splitter): Likewise.
10165         (bswapsi2_reg): Likewise.
10166         (bswapsi2 splitter): Likewise.
10167         (bswapdi2): If we have the LDBRX and STDBRX instructions, split
10168         the insns into load, store, and register/register insns.
10169         (bswapdi2_ldbrx): Likewise.
10170         (bswapdi2_load): Likewise.
10171         (bswapdi2_store): Likewise.
10172         (bswapdi2_reg): Likewise.
10174 2017-03-27  Gunther Nikl  <gnikl@users.sourceforge.net>
10176         * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
10177         (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
10179 2017-03-27  Kelvin Nilsen  <kelvin@gcc.gnu.org>
10181         PR target/80103
10182         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
10183         add comments.
10184         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10185         special handling for target option conflicts between dform
10186         options (-mpower9-dform, -mpower9-dform-vector,
10187         -mpower9-dform-scalar) and -mno-direct-move.
10189 2017-03-27  Richard Biener  <rguenther@suse.de>
10191         PR tree-optimization/80181
10192         * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
10194 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
10196         * config/arc/predicates.md (move_double_src_operand): Replace the
10197         call to move_double_src_operand with a call to address_operand.
10199 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
10201         * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
10202         * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
10203         * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
10205 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
10207         * config/arc/predicates.md (long_immediate_loadstore_operand):
10208         Consider scaled addresses cases.
10210 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
10212         * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
10213         restored when in interrupt.
10214         * config/arc/arc.md (simple_return): ARCv2 rtie instruction
10215         doesn't have delay slot.
10217 2017-03-27  Richard Biener  <rguenther@suse.de>
10219         PR ipa/79776
10220         * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
10221         inlined thunk clones.
10223 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
10225         PR sanitizer/80168
10226         * asan.c (instrument_derefs): Copy over last operand from
10227         original COMPONENT_REF to the new COMPONENT_REF with
10228         DECL_BIT_FIELD_REPRESENTATIVE.
10229         * ubsan.c (instrument_object_size): Likewise.
10231 2017-03-27  Richard Biener  <rguenther@suse.de>
10233         PR tree-optimization/80170
10234         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
10235         sure DR/SCEV didnt fold in constants we do not see when looking
10236         at the reference base alignment.
10238 2017-03-27  Richard Biener  <rguenther@suse.de>
10240         PR middle-end/80171
10241         * gimple-fold.c (fold_ctor_reference): Properly guard against
10242         NULL return value from canonicalize_constructor_val.
10244 2017-03-25  Uros Bizjak  <ubizjak@gmail.com>
10246         PR target/80180
10247         * config/i386/i386.c (ix86_expand_builtin)
10248         <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
10249         flags reg setting and flags reg using instructions.
10250         <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto.  Use non-flags reg
10251         clobbering instructions to zero extend op2.
10253 2017-03-25  Gerald Pfeifer  <gerald@pfeifer.com>
10255         * doc/install.texi (Configuration) <--with-aix-soname>:
10256         Update link to AIX ld.
10258 2017-03-25  Bernd Schmidt  <bschmidt@redhat.com>
10260         PR rtl-optimization/80160
10261         PR rtl-optimization/80159
10262         * lra-assigns.c (must_not_spill_p): Tighten new test to also take
10263         reg_alternate_class into account.
10265 2017-03-24  Vladimir Makarov  <vmakarov@redhat.com>
10267         PR target/80148
10268         * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
10269         to consider in curr_insn_transform.
10271 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
10273         * genrecog.c (validate_pattern): Add VEC_SELECT validation.
10274         * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
10275         and emit_mode_inner.
10277 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10279         * config/s390/s390-builtins.def: Add VXE builtins.  Add a flags
10280         argument to the overloaded builtin variants.  Use the new flag to
10281         deprecate certain builtin variants.
10282         * config/s390/s390-builtin-types.def: Add new builtin types.
10283         * config/s390/s390-builtins.h: Support new flags field for
10284         overloaded builtins.
10285         * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
10286         (s390_macro_to_expand): Enable vector float data type.
10287         (s390_cpu_cpp_builtins_internal): Indicate support of the new
10288         builtins by incrementing the __VEC__ version number.
10289         (s390_expand_overloaded_builtin): Support expansion of vec_xl and
10290         vec_xst.
10291         (s390_resolve_overloaded_builtin): Emit error messages depending
10292         on the builtin flags.
10293         * config/s390/s390.c (s390_expand_builtin): Support additional
10294         flags argument.  Change error message to match the messages
10295         emitted in s390-c.c.
10296         * config/s390/s390.md: New UNSPEC_* constants.
10297         (op_type): Add new instruction types.
10298         * config/s390/vecintrin.h: Add new builtins and test data class
10299         constants.
10300         * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
10301         (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
10302         (VEC_INEXACT, VEC_NOINEXACT): New constants.
10303         ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
10304         ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
10305         ("vec_mergel<mode>"): V_HW -> VEC_HW.
10307         ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
10308         ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
10309         ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
10310         ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
10312         ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
10313         ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
10314         ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
10315         ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
10317         ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
10318         ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
10319         ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
10320         ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
10321         ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
10322         ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
10323         ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
10325         ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
10326         ("vec_scatter_element<V_HW_4:mode>_DI")
10327         ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
10328         ("vec_fpint<mode>", "vflls")
10329         ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
10330         ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
10331         ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
10332         ("*vec_cmphe<mode>_cc"): ... these.
10334         ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
10335         mode constant instead of magic value.
10337 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10339         * config/s390/s390.c (s390_expand_vec_compare): Support other
10340         vector floating point modes than just V2DF.
10341         (s390_expand_vcond): Likewise.
10342         (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
10343         (s390_cannot_change_mode_class): Prevent mode changes between TF
10344         and V1TF in vector registers.
10345         * config/s390/s390.md (DF, SF): New mode attributes.
10346         ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
10347         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
10348         SFmode support for VRs.
10349         * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
10350         vector fp modes.
10351         (VFT, VF_HW): New mode iterators.
10352         (vw, sdx): New mode attributes.
10353         ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
10354         ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
10355         ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
10356         ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
10357         ("vec_unorderedv2df"): Adjust the v2df only patterns to support
10358         also the new vector floating point modes.  Renaming to ...
10360         ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
10361         ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
10362         ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
10363         ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
10364         ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
10365         ("vec_unordered<mode>"): ... these.
10367         ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
10368         ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
10369         ("*vec_extendv2df"): New insn definitions.
10371 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10373         * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
10374         ("mulditi3_2", "*muldi3_sign"): New patterns.
10375         ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
10376         rename the pattern definition.
10378 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10380         * config/s390/s390.md ("indirect_jump"): Turn insn definition into
10381         expander.
10382         ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
10384 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10386         * config/s390/s390.c (s390_expand_vec_init): Use vllezl
10387         instruction if possible.
10388         * config/s390/vector.md (vec_halfnumelts): New mode
10389         attribute.
10390         ("*vec_vllezlf<mode>"): New pattern.
10392 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10394         * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
10395         ("popcountv4si2", "popcountv2di2"): Rename to ...
10396         ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
10397         ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
10398         condition.
10399         ("popcount<mode>2_vxe"): New pattern.
10401 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10403         * common/config/s390/s390-common.c (processor_flags_table): Add
10404         arch12.
10405         * config.gcc: Add arch12.
10406         * config/s390/driver-native.c (s390_host_detect_local_cpu):
10407         Default to arch12 for unknown CPU model numbers.
10408         * config/s390/s390-builtins.def: Add B_VXE builtin flag.
10409         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
10410         PROCESSOR_max sanity check.
10411         * config/s390/s390-opts.h (enum processor_type): Add
10412         PROCESSOR_ARCH12.
10413         * config/s390/s390.c (processor_table): Add arch12.
10414         (s390_expand_builtin): Add check for B_VXE flag.
10415         (s390_issue_rate): Add PROCESSOR_ARCH12.
10416         (s390_get_sched_attrmask): Likewise.
10417         (s390_get_unit_mask): Likewise.
10418         (s390_sched_score): Enable z13 scheduling for arch12.
10419         (s390_sched_reorder): Likewise.
10420         (s390_sched_variable_issue): Likewise.
10421         * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
10422         PF_VXE.
10423         (s390_tune_attr): Use z13 scheduling also for arch12.
10424         (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
10425         (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
10426         (TARGET_VXE_P): New macros.
10427         * config/s390/s390.md: Add arch12 to cpu attribute.  Add arch12
10428         and vxe to cpu_facility.  Add arch12 and vxe to enabled attribute.
10429         * config/s390/s390.opt: Add arch12 as processor_type.
10431 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10433         * config/s390/s390.md
10434         ("fixuns_truncdddi2", "fixuns_trunctddi2")
10435         ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
10436         ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
10438         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
10439         Rename expanders to ...
10441         ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
10442         ("fixuns_truncdddi2_emu"): ... these.
10444         ("fixuns_trunc<mode>si2_emu"): New expander.
10446         ("*fixuns_truncdfdi2_z13"): Rename to ...
10447         ("*fixuns_truncdfdi2_vx"): ... this.
10449 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10451         * config/s390/2964.md: Remove the single element vector compare
10452         instructions which are no longer used.
10453         * config/s390/s390.c (s390_select_ccmode): Remove handling of
10454         vector CCmodes.
10455         (s390_canonicalize_comparison): Remove handling of DFmode
10456         compares.
10457         (s390_expand_vec_compare_scalar): Remove function.
10458         (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
10459         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
10460         pattern.
10461         ("*cmp<mode>_ccs"): Add wfcdb instruction.
10463 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10465         * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
10466         FP zero.
10467         ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
10468         will anyway by matched by mov<mode>_64dfp.
10470 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10472         * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
10473         vlef/vstef.  Add missing operand to vleif.
10475 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10477         * config/s390/s390.c (s390_expand_vec_init): Enable vector load
10478         pair for all vector types with 64 bit elements.
10479         * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
10480         * config/s390/vector.md (V_HW_64): ... here.
10481         (V_128_NOSINGLE): New mode iterator.
10482         ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
10483         ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
10484         ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
10485         ("*vec_load_pairv2di"): Change to ...
10486         ("*vec_load_pair<mode>"): ... this one.
10488 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10490         * config/s390/constraints.md: Add comments.
10491         (jKK): Reject element sizes > 8 bytes.
10492         * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
10493         s_operands.
10494         * config/s390/s390.md: Add the s_operand checks formerly in
10495         s390_split_ok_p to various splitters where they are still
10496         required.
10497         * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
10498         for 128 bit vectors.  Plus two splitters.
10500 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10502         * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
10503         the file.
10505 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10507         PR target/79893
10508         * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
10509         error if the boundary argument is not constant.
10511 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
10513         PR rtl-optimization/80112
10514         * loop-doloop.c (doloop_condition_get): Don't check condition
10515         if cmp isn't SET with IF_THEN_ELSE src.
10517 2017-03-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10519         PR tree-optimization/80158
10520         * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
10521         replacing a candidate statement, also replace it for the
10522         candidate's alternate interpretation.
10523         (replace_rhs_if_not_dup): Likewise.
10524         (replace_one_candidate): Likewise.
10526 2017-03-24  Richard Biener  <rguenther@suse.de>
10528         PR tree-optimization/80167
10529         * graphite-isl-ast-to-gimple.c
10530         (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
10531         properly.
10532         (translate_isl_ast_to_gimple::get_rename): Likewise.
10534 2017-03-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
10536         * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
10537         handling of certain combinations of target options, including the
10538         combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
10539         -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
10541 2017-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10543         PR target/71436
10544         * config/arm/arm.md (*load_multiple): Add reload_completed to
10545         matching condition.
10547 2017-03-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10548             Richard Biener  <rguenth@suse.de>
10550         PR tree-optimization/79908
10551         PR tree-optimization/80136
10552         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
10553         been cast away, gimplify_and_add suffices.
10555 2017-03-23  Markus Trippelsdorf  <markus@trippelsdorf.de>
10557         * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
10559 2017-03-23  Richard Biener  <rguenther@suse.de>
10561         PR tree-optimization/80032
10562         * gimplify.c (gimple_push_cleanup): Forced unconditional
10563         cleanups still have to go to the conditional_cleanups
10564         sequence.
10566 2017-03-22  Jakub Jelinek  <jakub@redhat.com>
10568         PR tree-optimization/80072
10569         * tree-ssa-reassoc.c (struct operand_entry): Change id field type
10570         to unsigned int.
10571         (next_operand_entry_id): Change type to unsigned int.
10572         (sort_by_operand_rank): Make sure to return the right return value
10573         even if unsigned fields are bigger than INT_MAX.
10574         (struct oecount): Change cnt and id type to unsigned int.
10575         (oecount_hasher::equal): Formatting fix.
10576         (oecount_cmp): Make sure to return the right return value
10577         even if unsigned fields are bigger than INT_MAX.
10578         (undistribute_ops_list): Change next_oecount_id type to unsigned int.
10580         PR c++/80129
10581         * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
10582         TREE_READONLY on result if writing it more than once.
10584         PR sanitizer/80110
10585         * doc/invoke.texi (-fsanitize=thread): Document that with
10586         -fnon-call-exceptions atomics are not able to throw
10587         exceptions.
10589         PR sanitizer/80110
10590         * tsan.c: Include tree-eh.h.
10591         (instrument_builtin_call): Call maybe_clean_eh_stmt or
10592         maybe_clean_or_replace_eh_stmt where needed.
10593         (instrument_memory_accesses): Add cfg_changed argument.
10594         Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
10595         if it returned true.
10596         (tsan_pass): Adjust caller.  Return TODO_cleanup_cfg if cfg_changed.
10598         PR rtl-optimization/63191
10599         * config/i386/i386.c (ix86_delegitimize_address): Turn into small
10600         wrapper function, moved the whole old content into ...
10601         (ix86_delegitimize_address_1): ... this.  New inline function.
10602         (ix86_find_base_term): Use ix86_delegitimize_address_1 with
10603         true as last argument instead of ix86_delegitimize_address.
10605 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
10607         * config/aarch64/aarch64.c (generic_branch_cost): Copy
10608         cortexa57_branch_cost.
10610 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
10612         * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
10614 2017-03-21  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
10616         PR target/80123
10617         * doc/md.texi (Constraints): Document wA constraint.
10618         * config/rs6000/constraints.md (wA): New.
10619         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
10620         (rs6000_init_hard_regno_mode_ok): Init wA constraint.
10621         * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
10622         * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
10624 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
10626         PR c++/80029
10627         * gimplify.c (is_oacc_declared): New function.
10628         (oacc_default_clause): Use it to set default flags for acc declared
10629         variables inside parallel regions.
10630         (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
10631         declared variables.
10632         (gimplify_oacc_declare): Gimplify the declare clauses.  Add the
10633         declare attribute to any decl as necessary.
10635 2017-03-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10637         PR target/80082
10638         * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
10639         (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
10640         * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
10641         (arm_arch_lpae): This.
10642         * config/arm/arm.c (arm_arch7ve): Rename into ...
10643         (arm_arch_lpae): This.  Define it in term of isa_bit_lpae.
10644         * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
10645         arm_arch_lpae.
10647 2017-03-22  Martin Liska  <mliska@suse.cz>
10649         PR target/79906
10650         * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
10651         error message instead of an ICE.
10653 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10655         * doc/extend.texi (6.11 Additional Floating Types): Revise.
10657 2017-03-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
10659         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
10660         comments.
10661         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10662         comments.
10664 2017-03-21  Martin Sebor  <msebor@redhat.com>
10666         * doc/extend.texi: Use "cannot" instead of "can't."
10667         * doc/hostconfig.texi: Same.
10668         * doc/install.texi: Same.
10669         * doc/invoke.texi: Same.
10670         * doc/loop.texi: Same.
10671         * doc/md.texi: Same.
10672         * doc/objc.texi: Same.
10673         * doc/rtl.texi: Same.
10674         * doc/tm.texi: Same.
10675         * doc/tm.texi.in: Same.
10676         * doc/trouble.texi: Same.
10678 2017-03-21  Alexandre Oliva <aoliva@redhat.com>
10680         PR debug/63238
10681         * dwarf2out.c (struct checksum_attributes): Add at_alignment.
10682         (collect_checksum_attributes): Set it.
10683         (die_checksum_ordered): Use it.
10685 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10687         PR tree-optimization/79908
10688         * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
10689         change: For a VA_ARG whose LHS has been cast away, use
10690         force_gimple_operand to construct the side effects.
10692 2017-03-21  David Malcolm  <dmalcolm@redhat.com>
10694         PR translation/80001
10695         * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
10696         more amenable to translation.
10697         (oacc_loop_auto_partitions): Likewise.
10699 2017-03-21  Marek Polacek  <polacek@redhat.com>
10700             Martin Sebor  <msebor@redhat.com>
10702         PR tree-optimization/80109
10703         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
10704         on INTEGRAL_TYPE_P.
10706 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
10707             Segher Boessenkool  <segher@kernel.crashing.org>
10709         PR target/80125
10710         * combine.c (can_combine_p): Revert the 2017-03-20 change, only
10711         check reg_used_between_p between insn and one of succ or succ2
10712         depending on if succ is artificial insn not inserted into insn
10713         stream.
10715 2017-03-21  Martin Liska  <mliska@suse.cz>
10717         PR gcov-profile/80081
10718         * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
10719         * doc/gcc.texi: Include gcov-dump stuff.
10720         * doc/gcov-dump.texi: New file.
10722 2017-03-21  Toma Tabacu  <toma.tabacu@imgtec.com>
10724         PR rtl-optimization/79150
10725         * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
10726         conditional jump, if the jump is the last insn of the loop.
10728 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10729             Richard Biener  <rguenth@suse.de>
10731         PR tree-optimization/79908
10732         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
10733         been cast away, use force_gimple_operand to construct the side
10734         effects.
10736 2017-03-21  Martin Liska  <mliska@suse.cz>
10738         PR libfortran/79956
10739         * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
10740         to NULL.
10742 2017-03-21  Brad Spengler <spender@grsecurity.net>
10744         PR plugins/80094
10745         * plugin.c (htab_hash_plugin): New function.
10746         (add_new_plugin): Use it and adjust.
10747         (parse_plugin_arg_opt): Adjust.
10748         (init_one_plugin): Likewise.
10750 2017-03-21  Richard Biener  <rguenther@suse.de>
10752         PR tree-optimization/80032
10753         * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
10754         if set force the cleanup to happen unconditionally.
10755         (gimplify_target_expr): Push inserted clobbers with force_uncond
10756         to avoid them being removed by control-dependent DCE.
10758 2017-03-21  Richard Biener  <rguenther@suse.de>
10760         PR tree-optimization/80122
10761         * tree-inline.c (copy_bb): Do not expans va-arg packs or
10762         va_arg_pack_len when the inlined call stmt requires pack
10763         expansion itself.
10764         * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
10766 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
10768         PR sanitizer/78158
10769         * tsan.c (instrument_builtin_call): If the memory model argument
10770         is not a constant, assume it is valid.
10772         PR c/67338
10773         * fold-const.c (round_up_loc): Negate divisor in unsigned type to
10774         avoid UB.
10776 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
10778         PR rtl-optimization/79910
10779         * combine.c (can_combine_p): Do not allow combining an I0 or I1
10780         if its dest is used by an insn before I2 (other than the combined
10781         insns themselves, which are properly handled already).
10783 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
10785         Revert:
10786         2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
10788         * combine.c (record_used_regs): New static function.
10789         (try_combine): Handle situations where there is an additional
10790         instruction between I2 and I3 which needs to have a LOG_LINK
10791         updated.
10793         Revert:
10794         2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
10796         * combine.c (try_combine): Delete redundant i1 test.  Call
10797         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
10799 2017-03-20  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
10801         PR target/80083
10802         * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
10803         alternatives 13/14.
10805 2017-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10807         PR tree-optimization/80054
10808         * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
10809         the optimization if a PHI or any of its arguments is not dominated
10810         by the candidate's basis.  Use gphi* rather than gimple* as
10811         appropriate.
10812         (replace_profitable_candidates): Clean up a gimple* variable that
10813         should be a gphi* variable.
10815 2017-03-20  Martin Sebor  <msebor@redhat.com>
10817         PR c++/52477
10818         * doc/extend.texi (attribute constructor): Document present limitation.
10820 2017-03-20  Kelvin Nilsen  <kelvin@gcc.gnu.org>
10822         PR target/79963
10823         * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
10824         __POWER9_VECTOR__ #ifdef control, change template definition to
10825         use Power9-specific built-in function.
10826         (vec_any_eq): Likewise.
10827         * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
10828         to control outcomes from this test.
10829         (vector_ae_<mode>p): For VEC_F modes, likewise.
10831 2017-03-20  Ian Lance Taylor  <iant@google.com>
10833         * config/i386/i386.c (ix86_function_regparm): Save an extra
10834         register for -fsplit-stack with DECL_STATIC_CHAIN.
10836 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
10838         PR target/79912
10839         * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
10840         (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
10842 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
10844         * config/riscv/riscv.c (riscv_print_operand): Use "fence
10845         iorw,ow".
10846         * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
10847         iorw,iorw".
10849 2017-03-20  Marek Polacek  <polacek@redhat.com>
10851         PR sanitizer/80063
10852         * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
10854 2017-03-20  Richard Biener  <rguenther@suse.de>
10856         PR tree-optimization/80113
10857         * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
10858         allocate extra SSA name for PHI def.
10859         (add_close_phis_to_outer_loops): Likewise.
10860         (add_close_phis_to_merge_points): Likewise.
10861         (copy_loop_close_phi_args): Likewise.
10862         (copy_cond_phi_nodes): Likewise.
10864 2017-03-20  Martin Liska  <mliska@suse.cz>
10866         PR middle-end/79753
10867         * tree-chkp.c (chkp_build_returned_bound): Do not build
10868         returned bounds for a LHS that's not a BOUNDED_P type.
10870 2017-03-20  Martin Liska  <mliska@suse.cz>
10872         PR target/79769
10873         PR target/79770
10874         * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
10875         COMPLEX_CST and VECTOR_CST.
10877 2017-03-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10879         PR target/78857
10880         * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
10881         target operand.  A new splitter adds the clobber statement in case
10882         the target operand is dead anyway.
10884 2017-03-19  Gerald Pfeifer  <gerald@pfeifer.com>
10886         * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
10887         to age-old versions of binutils and glibc.
10889 2017-03-18  Segher Boessenkool  <segher@kernel.crashing.org>
10891         * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
10893 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
10895         * doc/contrib.texi (Contributors): Add Segher Boessenkool.
10897 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
10899         * doc/install.texi (Specific) <arm-*-eabi>: Remove old
10900         requirement for binutils 2.13.
10902 2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
10904         * combine.c (try_combine): Delete redundant i1 test.  Call
10905         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
10907 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com
10909         * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
10910         riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
10911         contents.
10912         <riscv64-*-elf>: Re-arrange section
10913         <riscv32-*-elf>: Add a note about requiring binutils 2.28.
10914         <riscv32-*-linux>: Likewise.
10915         <riscv64-*-elf>: Likewise
10916         <riscv64-*-linux>: Likewise.
10918 2017-03-17  Richard Earnshaw  <rearnsha@arm.com>
10920         PR target/80052
10921         * aarch64.opt(verbose-cost-dump): Fix typo.
10923 2017-03-17  Pat Haugen  <pthaugen@us.ibm.com>
10925         PR target/79951
10926         * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
10927         for VECTOR_UNIT_VSX_P (<MODE>mode) too.
10929 2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
10931         * reload.c (find_reloads): When reloading a nonoffsettable address,
10932         use RELOAD_OTHER for it and its address reloads.
10934         PR rtl-optimization/79910
10935         * combine.c (record_used_regs): New static function.
10936         (try_combine): Handle situations where there is an additional
10937         instruction between I2 and I3 which needs to have a LOG_LINK
10938         updated.
10940 2017-03-17  Jeff Law  <law@redhat.com>
10942         PR tree-optimization/71437
10943         * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
10944         conditional in the hash table first.
10945         (vrp_dom_walker::before_dom_children): Extract condition from
10946         ASSERT_EXPR.  Record condition, its inverion and any implied
10947         conditions as well.
10949 2017-03-17  Marek Polacek  <polacek@redhat.com>
10950             Markus Trippelsdorf  <markus@trippelsdorf.de>
10952         PR tree-optimization/80079
10953         * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
10954         m_stores_head.
10956 2017-03-17  Richard Biener  <rguenther@suse.de>
10958         PR middle-end/80075
10959         * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
10960         Properly verify the LHS before the RHS possibly claims to be
10961         handled.
10962         (stmt_could_throw_p): Hande gimple conds fully here.  Clobbers
10963         do not throw.
10965 2017-03-17  Martin Jambor  <mjambor@suse.cz>
10967         * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
10968         (List of -O2 options): Likewise.
10969         (-fipa-bit-cp): Replace "ipa" with "interprocedural."
10970         (-fipa-vrp) New.
10972 2017-03-17  Tom de Vries  <tom@codesourcery.com>
10974         * gcov-dump.c (print_usage): Print bug_report_url.
10976 2017-03-17  Richard Biener  <rguenther@suse.de>
10978         PR middle-end/80050
10979         * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
10980         (parser::peek): Likewise.
10982 2017-03-17  Richard Biener  <rguenther@suse.de>
10984         PR tree-optimization/80048
10985         * sese.c (free_sese_info): Properly release rename_map and
10986         copied_bb_map elements.
10988 2017-03-16  Alexandre Oliva <aoliva@redhat.com>
10990         * gimple-ssa-store-merging.c (struct imm_store_chain_info):
10991         Add linked-list forward and backlinks.  Insert on
10992         construction, remove on destruction.
10993         (class pass_store_merging): Add m_stores_head field.
10994         (pass_store_merging::terminate_and_process_all_chains):
10995         Iterate over m_stores_head list.
10996         (pass_store_merging::terminate_all_aliasing_chains):
10997         Likewise.
10998         (pass_store_merging::execute): Check for debug stmts first.
10999         Push new chains onto the m_stores_head stack.
11001 2017-03-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
11003         PR target/71294
11004         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
11005         SPLAT operation on ISA 2.07 64-bit systems that have direct move,
11006         but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
11008 2017-03-16  Jeff Law  <law@redhat.com>
11010         PR tree-optimization/71437
11011         * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
11012         member function.  Implementation moved into after_dom_children
11013         member function and into the threader's thread_outgoing_edges
11014         function.
11015         (dom_opt_dom_walker::after_dom_children): Simplify by moving
11016         some code into new thread_outgoing_edges.
11017         * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
11018         definition.  Simplify marker handling (do it here).   Assume we always
11019         have the available expression and the const/copies tables.
11020         (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
11021         and tree-vrp.c
11022         * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
11023         * tree-vrp.c (equiv_stack): No longer file scoped.
11024         (vrp_dom_walker): New class.
11025         (vrp_dom_walker::before_dom_children): New member function.
11026         (vrp_dom_walker::after_dom_children): Likewise.
11027         (identify_jump_threads):  Setup domwalker.  Use it rather than
11028         walking edges in a random order by hand.  Simplify setup/finalization.
11029         (finalize_jump_threads): Remove.
11030         (vrp_finalize): Do not call identify_jump_threads here.
11031         (execute_vrp): Do it here instead and call thread_through_all_blocks
11032         here too.
11034         PR tree-optimization/71437
11035         * tree-ssa-dom.c (pfn_simplify): Add basic_block argument.  All
11036         callers changed.
11037         (simplify_stmt_for_jump_threading): Add basic_block argument.  All
11038         callers changed.
11039         (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
11040         (dom_opt_dom_walker::thread_across_edge): Remove
11041         handle_dominating_asserts argument.  All callers changed.
11042         (record_temporary_equivalences_from_stmts_at_dest): Corresponding
11043         changes.  Remove calls to lhs_of_dominating_assert.  Other
11044         uses of handle_dominating_asserts turn into unconditional code
11045         (simplify_control_stmt_condition_1): Likewise.
11046         (simplify_control_stmt_condition): Likewise.
11047         (thread_through_normal_block, thread_across_edge): Likewise.
11048         * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
11049         * tree-vrp.c (lhs_of_dominating_assert): Move here.  Return original
11050         object if it is not an SSA_NAME.
11051         (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
11052         before calling into the VRP specific simplifiers.
11053         (identify_jump_threads): Remove handle_dominating_asserts
11054         argument.
11056 2017-03-16  Jakub Jelinek  <jakub@redhat.com>
11058         PR fortran/79886
11059         * tree-diagnostic.c (default_tree_printer): No longer static.
11060         * tree-diagnostic.h (default_tree_printer): New prototype.
11062 2017-03-16  Tamar Christina  <tamar.christina@arm.com>
11064         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
11065         Change ins into fmov.
11067 2017-03-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11069         * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
11070         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
11071         Use h_con constraint for operand 1.
11072         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
11073         (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
11075 2017-03-15  Jeff Law  <law@redhat.com>
11077         PR tree-optimization/71437
11078         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
11079         (record_temporary_equivalences): Use it.
11081         PR tree-optimization/71437
11082         * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
11083         tree-ssa-scopedtables.
11084         (lookup_avail_expr, build_and_record_new_cond): Likewise.
11085         (record_conditions, record_cond, vuse_eq): Likewise.
11086         (record_edge_info): Adjust to API tweak of record_conditions.
11087         (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
11088         (record_temporary_equivalences, optimize_stmt): Likewise.
11089         (eliminate_redundant_computations): Likewise.
11090         (record_equivalences_from_stmt): Likewise.
11091         * tree-ssa-scopedtables.c: Include options.h and params.h.
11092         (vuse_eq): New function, moved from tree-ssa-dom.c
11093         (build_and_record_new_cond): Likewise.
11094         (record_conditions): Likewise.  Accept vector of conditions rather
11095         than edge_equivalence structure for first argument.
11096         for the first argument.
11097         (avail_exprs_stack::lookup_avail_expr): New member function, moved
11098         from tree-ssa-dom.c.
11099         (avail_exprs_stack::record_cond): Likewise.
11100         * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
11101         from tree-ssa-dom.c.
11102         (avail_exprs_stack): Add new member functions lookup_avail_expr
11103         and record_cond.
11104         (record_conditions): Declare.
11106 2017-03-15  Vladimir Makarov  <vmakarov@redhat.com>
11108         PR target/80017
11109         * lra-constraints.c (process_alt_operands): Increase reject for
11110         reloading an input/output operand.
11112 2017-03-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
11114         PR target/79038
11115         * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
11116         insns to convert from signed/unsigned char/short to IEEE 128-bit
11117         floating point.
11118         (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
11120 2017-03-15  Uros Bizjak  <ubizjak@gmail.com>
11122         PR target/80019
11123         * config/i386/i386.c (ix86_vector_duplicate_value): Create
11124         subreg of inner mode for values already in registers.
11126 2017-03-15  Bernd Schmidt  <bschmidt@redhat.com>
11128         * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
11129         iteration reg is used after the loop.
11131 2017-03-14  Martin Sebor  <msebor@redhat.com>
11133         PR tree-optimization/79800
11134         * gimple-ssa-sprintf.c (format_floating: Add argument.  Handle
11135         precision in negative-positive range.
11136         (format_floating): Call non-const overload with adjusted precision.
11138 2017-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
11140         PR target/79947
11141         * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
11142         -mpowerpc-gfxopt.
11144 2017-03-14  Martin Sebor  <msebor@redhat.com>
11146         PR middle-end/80020
11147         * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
11148         * builtins.def (aligned_alloc): Use it.
11150         PR c/79936
11151         * Makefile.in (GTFILES): Add calls.c.
11152         * calls.c: Include "gt-calls.h".
11154 2017-03-14  Bernd Schmidt  <bschmidt@redhat.com>
11156         PR rtl-optimization/79728
11157         * regs.h (struct target_regs): New field
11158         x_contains_allocatable_regs_of_mode.
11159         (contains_allocatable_regs_of_mode): New macro.
11160         * reginfo.c (init_reg_sets_1): Initialize it, and change
11161         contains_reg_of_mode so it includes global regs as well.
11162         * reload.c (push_reload): Use contains_allocatable_regs_of_mode
11163         rather than contains_regs_of_mode.
11165 2017-03-14  Martin Liska  <mliska@suse.cz>
11167         * doc/invoke.texi: Document options that can't be combined with
11168         -fcheck-pointer-bounds.
11170 2017-03-14  Martin Liska  <mliska@suse.cz>
11172         PR middle-end/79831
11173         * doc/invoke.texi (-Wchkp): Document the option.
11175 2017-03-14  Martin Liska  <mliska@suse.cz>
11177         * Makefile.in: Install gcov-dump.
11179 2017-03-14  Martin Liska  <mliska@suse.cz>
11181         * multiple_target.c (expand_target_clones): Bail out for
11182         an invalid attribute.
11184 2017-03-14  Richard Biener  <rguenther@suse.de>
11186         * alias.c (struct alias_set_entry): Pack properly.
11187         * cfgloop.h (struct loop): Likewise.
11188         * cse.c (struct set): Likewise.
11189         * ipa-utils.c (struct searchc_env): Likewise.
11190         * loop-invariant.c (struct invariant): Likewise.
11191         * lra-remat.c (struct cand): Likewise.
11192         * recog.c (struct change_t): Likewise.
11193         * rtl.h (struct address_info): Likewise.
11194         * symbol-summary.h (function_summary): Likewise.
11195         * tree-loop-distribution.c (struct partition): Likewise.
11196         * tree-object-size.c (struct object_size_info): Likewise.
11197         * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
11198         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
11199         * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
11200         * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
11201         * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
11202         * tree-vectorizer.h (struct _loop_vec_info): Likewise.
11203         (struct _stmt_vec_info): Likewise.
11205 2017-03-14  Martin Liska  <mliska@suse.cz>
11207         PR target/79892
11208         * multiple_target.c (create_dispatcher_calls): Check that
11209         a target can create a function dispatcher.
11211 2017-03-14  Martin Liska  <mliska@suse.cz>
11213         PR lto/66295
11214         * multiple_target.c (expand_target_clones): Drop local.local
11215         flag for default implementation.
11217 2017-03-14  Richard Biener  <rguenther@suse.de>
11219         PR tree-optimization/80030
11220         * tree-vect-stmts.c (vectorizable_store): Plug memleak.
11222 2017-03-13  Kito Cheng  <kito.cheng@gmail.com>
11224         * config/riscv/riscv.c (riscv_emit_float_compare>: Use
11225         gcc_fallthrough() instead of __attribute__((fallthrough));
11227 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
11229         * doc/gcc.texi: Remove "up" link to (DIR).
11230         * doc/gccint.texi: Ditto.
11232 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
11234         * doc/install.texi (Specific) <avr>: Remove reference to
11235         binutils 2.13.
11237 2017-03-13  Jeff Law  <law@redhat.com>
11239         * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
11240         attribute rather than comments.
11242         * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
11243         match_scratch operand is highest.
11245 2017-03-13  Martin Liska  <mliska@suse.cz>
11247         PR middle-end/78339
11248         * ipa-pure-const.c (warn_function_noreturn): If the declarations
11249         is a CHKP clone, use original declaration.
11251 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
11253         * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
11254         (arc_conditional_register_usage): Use a different allocation order
11255         when optimizing for size.
11256         * common/config/arc/arc-common.c (arc_option_optimization_table):
11257         Section anchors default on when optimizing for size.
11259 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
11261         * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
11263 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
11265         * config/arc/arc.c (arc_output_addsi): Emit code density adds.
11266         * config/arc/arc.md (cpu_facility): Add cd variant.
11267         (*movqi_insn): Add code density variant.
11268         (*movhi_insn): Likewise.
11269         (*movqi_insn): Likewise.
11270         (*addsi3_mixed): Likewise.
11271         (subsi3_insn): Likewise.
11273 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
11275         * config/arc/arc.md (movsi_cond_exec): Update constraint.
11277 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
11279         * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
11280         expressions with MINUS and UNARY ops.
11282 2017-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11284         PR target/79911
11285         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
11286         Rename to...
11287         (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
11288         between vec_select and vector argument.
11289         (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
11290         (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
11291         (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
11292         (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
11293         (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
11294         (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
11296 2017-03-13  Richard Biener  <rguenther@suse.de>
11298         PR other/79991
11299         * params.def (vect-max-peeling-for-alignment): Fix typo.
11301 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
11303         * doc/install.texi (Specific) <mips-*-*>: Remove description of
11304         issue that only occurred with binutils below 2.18.
11306 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
11308         * doc/install.texi (Specific) <cris-axis-elf>: No longer
11309         refer to binutils 2.11/2.12 minimum.
11311 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
11313         * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
11314         ftp.kernel.org and simplify binutils requirement.
11316 2017-03-11  Gerald Pfeifer  <gerald@pfeifer.com>
11318         * doc/invoke.texi (Warning Options): Fix spelling of link-time
11319         optimization.
11320         (Optimize Options): Ditto.  Also remove redundancy.
11322 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
11324         PR translation/79848
11325         * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
11326         "%qs".
11327         * ipa-pure-const.c (suggest_attribute): Likewise.  Convert _
11328         to G_ to avoid double translation.
11330 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
11332         PR translation/79923
11333         * auto-profile.c (get_combined_location): Convert leading
11334         character of diagnostics to lower case and remove trailing period.
11335         (read_profile): Likewise for various diagnostics.
11336         * config/arm/arm.c (arm_option_override): Remove trailing period
11337         from various diagnostics.
11338         * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
11339         (msp430_expand_delay_cycles): Likewise.
11341 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
11343         PR target/79925
11344         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
11345         full command-line argument, rather than just "str".
11346         (aarch64_validate_march): Likewise.
11347         (aarch64_validate_mtune): Likewise.
11349 2017-03-10  Bernd Schmidt  <bschmidt@redhat.com>
11351         PR rtl-optimization/78911
11352         * lra-assigns.c (must_not_spill_p): New function.
11353         (spill_for): Use it.
11355 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
11357         PR tree-optimization/79981
11358         * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
11359         ATOMIC_COMPARE_EXCHANGE ifn result.
11360         (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
11361         IFN_ATOMIC_COMPARE_EXCHANGE.
11363 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
11365         PR driver/79875
11366         * opts.c (parse_sanitizer_options): Add missing question mark to
11367         "did you mean" message.
11369 2017-03-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11371         * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
11372         built-in.
11373         (VMULEUH_UNS): Likewise.
11374         (VMULOUB_UNS): Likewise.
11375         (VMULOUH_UNS): Likewise.
11376         * config/rs6000/rs6000.c (builtin_function_type): Remove
11377         references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
11379 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
11381         PR bootstrap/79952
11382         * read-rtl-function.c (function_reader::read_rtx_operand): Update
11383         x with result of extra_parsing_for_operand_code_0.
11384         (function_reader::extra_parsing_for_operand_code_0): Convert
11385         return type from void to rtx, returning x.  When reading
11386         SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
11387         larger size containing struct block_symbol.
11389 2017-03-10  Segher Boessenkool  <segher@kernel.crashing.org>
11391         * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
11392         -mfloat128-hardware without -m64.
11394 2017-03-10  Will Schmidt <will_schmidt@vnet.ibm.com>
11396         PR target/79941
11397         * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
11398         entries to the case statement that marks unsigned arguments to
11399         overloaded functions.
11401 2017-03-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
11403         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
11404         two typographic errors in the handling of TARGET_UPPER_REGS_DI.
11406 2017-03-10  Pat Haugen  <pthaugen@us.ibm.com>
11408         PR target/79907
11409         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
11410         TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
11412 2017-03-10  Martin Liska  <mliska@suse.cz>
11414         PR target/65705
11415         PR target/69804
11416         * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
11417         * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
11418         FIELD != NULL.
11420 2017-03-10  Olivier Hainque  <hainque@adacore.com>
11422         * tree-switch-conversion (array_value_type): Start by resetting
11423         candidate type to it's main variant.
11425 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
11427         PR rtl-optimization/79909
11428         * combine.c (try_combine): Use simplify_replace_rtx on individual
11429         CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
11430         of the whole CALL_INSN_FUNCTION_USAGE.
11432         PR tree-optimization/79972
11433         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
11434         get_range_info on SSA_NAMEs.  Formatting fixes.
11436 2017-03-10  Richard Biener  <rguenther@suse.de>
11437             Jakub Jelinek  <jakub@redhat.com>
11439         PR tree-optimization/77975
11440         * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
11441         edge to be constant.
11442         (get_val_for): For constant x return it.  Formatting fix.
11443         (loop_niter_by_eval): Avoid pointless looping if the next iteration
11444         would use the same bases as the current one.
11446 2017-03-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11448         * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
11449         instead of vec_select for V1TImode.
11450         * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
11451         longer needed.
11452         (VSX_LE_128): Add V1TI to this mode iterator.
11453         (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
11454         (*vsx_le_perm_store_<mode>): Likewise.
11455         (pre-reload splitter for VSX stores): Likewise.
11456         (post-reload splitter for VSX stores): Likewise.
11457         (*vsx_xxpermdi2_le_<mode>): Likewise.
11458         (*vsx_lxvd2x2_le_<mode>): Likewise.
11459         (*vsx_stxvd2x2_le_<mode>): Likewise.
11461 2017-03-09  Michael Eager  <eager@eagercon.com>
11463         Correct failures with --enable-checking=yes,rtl.
11465         * config/microblaze/microblaze.c (microblaze_expand_shift):
11466         Replace GET_CODE test with CONST_INT_P and INTVAL test with
11467         test for const0_rtx.
11468         * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
11469         lshrsi3_byone): Replace INTVAL with test for const1_rtx.
11471 2017-03-09  Richard Biener  <rguenther@suse.de>
11473         PR tree-optimization/79977
11474         * graphite-scop-detection.c (scop_detection::merge_sese):
11475         Handle the case of extra exits to blocks dominating the entry.
11477 2017-03-09  Toma Tabacu  <toma.tabacu@imgtec.com>
11479         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
11480         Document rdynamic.
11482 2017-03-09  Vladimir Makarov  <vmakarov@redhat.com>
11484         PR rtl-optimization/79949
11485         * lra-constraints.c (process_alt_operands): Check memory when
11486         trying to predict a cycle.  Print about the overall increase.
11488 2017-03-09  Richard Biener  <rguenther@suse.de>
11490         PR middle-end/79971
11491         * gimple-expr.c (useless_type_conversion_p): Preserve
11492         TYPE_SATURATING for fixed-point types.
11494 2017-03-09  Richard Biener  <rguenther@suse.de>
11496         PR ipa/79970
11497         * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
11498         alignment of BLKmode params.
11500 2017-03-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11502         PR target/79913
11503         * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
11504         (VALL_NO_V2Q): Likewise.
11505         (VDQF_DF): Delete.
11506         * config/aarch64/aarch64-simd.md
11507         (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
11508         iterator.
11509         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
11510         VALL_NO_V2Q mode iterator.
11511         (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
11513 2017-03-09  Martin Liska  <mliska@suse.cz>
11515         PR tree-optimization/79631
11516         * tree-chkp-opt.c (chkp_is_constant_addr): Call
11517         tree_int_cst_sign_bit just for INTEGER constants.
11519 2017-03-09  Martin Liska  <mliska@suse.cz>
11521         PR target/65705
11522         PR target/69804
11523         * toplev.c (process_options): Disable -fcheck-pointer-bounds with
11524         sanitizers.
11526 2017-03-09  Marek Polacek  <polacek@redhat.com>
11528         PR c++/79672
11529         * tree.c (inchash::add_expr): Handle TREE_VEC.
11531 2017-03-09  Martin Liska  <mliska@suse.cz>
11533         PR ipa/79764
11534         (chkp_narrow_size_and_offset): New function.
11535         (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
11536         (void chkp_parse_bit_field_ref): New function.
11537         (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
11538         (chkp_process_stmt): Use chkp_parse_bit_field_ref.
11540 2017-03-09  Martin Liska  <mliska@suse.cz>
11542         PR ipa/79761
11543         * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
11544         (chkp_find_bounds_1): Remove gcc_unreachable.
11546 2017-03-09  Jakub Jelinek  <jakub@redhat.com>
11548         PR sanitizer/79944
11549         * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
11550         BUILT_IN_SYNC*, determine the access type from the size suffix and
11551         always build a MEM_REF with that type.  Handle forgotten
11552         BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
11554         PR target/79932
11555         * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
11556         _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
11557         _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
11558         _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
11559         _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
11560         _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
11561         _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
11562         _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
11563         _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
11564         _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
11565         _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
11566         _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
11567         _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
11568         _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
11569         _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
11570         _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
11571         _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
11572         _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
11573         _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
11574         _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
11575         _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
11576         _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
11577         _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
11578         _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
11579         _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
11580         _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
11581         _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
11582         _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
11583         _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
11584         _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
11585         definitions outside of __OPTIMIZE__ guarded section.
11587         PR target/79932
11588         * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
11589         _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
11590         _mm512_packus_epi32, _mm512_maskz_packus_epi32,
11591         _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
11592         guarded section.
11594 2017-03-09  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11596         * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
11597         ("vfenez<mode>"): Add missing constraints.
11599 2017-03-08  Martin Sebor  <msebor@redhat.com>
11601         PR target/79928
11602         * config/nds32/nds32.c (nds32_option_override):
11603         Fix misspelled diagnostic.
11605 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
11607         PR c/79940
11608         * gimplify.c (gimplify_omp_for): Replace index var in outer
11609         taskloop statement with an artificial variable and add
11610         OMP_CLAUSE_PRIVATE clause for it.
11612 2017-03-08  Richard Biener  <rguenther@suse.de>
11614         PR tree-optimization/79955
11615         * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
11616         for accesses that are completely outside of the variable.
11618 2017-03-08  Andrew Haley  <aph@redhat.com>
11620         PR tree-optimization/79943
11621         * tree-ssa-loop-split.c (compute_new_first_bound): When
11622         calculating the new upper bound, (END-BEG) should be added, not
11623         subtracted.
11625 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
11627         * config/avr/avr.md (setmemhi): Make sure match_dup
11628         operand number comes before match_scratch.
11630 2017-03-08  Richard Biener  <rguenther@suse.de>
11632         PR tree-optimization/79920
11633         * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
11634         with ncopies == 1 to ...
11635         (vect_transform_slp_perm_load): ... here.  Properly compute
11636         all element loads by iterating VF times over the group.  Do
11637         not handle ncopies (computed in a broken way) in
11638         vect_create_mask_and_perm.
11640 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
11642         PR sanitizer/79904
11643         * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
11644         is a uniform vector, use uniform_vector_p return value instead of
11645         building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
11647 2017-03-07  Marek Polacek  <polacek@redhat.com>
11649         PR middle-end/79809
11650         * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
11651         (alloca_call_type): Likewise.
11653 2017-03-07  Martin Liska  <mliska@suse.cz>
11655         * gcov.c (process_args): Put comment to correct location.
11657 2017-03-07  Martin Liska  <mliska@suse.cz>
11659         PR middle-end/68270
11660         * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
11661         Use array_at_struct_end_p instead of DECL_CHAIN (field).
11662         (chkp_narrow_bounds_for_field): Likewise.
11663         (chkp_parse_array_and_component_ref): Pass one more argument to
11664         call.
11666 2017-03-07  Richard Biener  <rguenther@suse.de>
11668         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
11669         preheaders.
11671 2017-03-07  Segher Boessenkool  <segher@kernel.crashing.org>
11673         * config/i386/i386.c (ix86_local_alignment): Align most aggregates
11674         of 16 bytes and more to 16 bytes, not those of 16 bits and more.
11676 2017-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11678         PR c/79855
11679         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
11680         to end of description.
11681         (PARAM_MAX_STORES_TO_MERGE): Likewise.
11683 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
11685         PR rtl-optimization/79901
11686         * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
11687         ...
11688         (*avx512f_<code><mode>3<mask_name>): ... this.
11689         (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
11690         iterator instead of VI8_AVX2_AVX512BW.
11692         PR rtl-optimization/79901
11693         * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
11694         min/max expander, expand it using expand_vec_cond_expr.
11696         PR sanitizer/79897
11697         * ubsan.c (ubsan_encode_value): Call mark_addressable on the
11698         temporary.
11700 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
11702         PR c++/79821
11703         * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
11704         to void * for PCH reasons.
11705         * dwarf2out.c (output_loc_operands, output_die): Cast
11706         v.val_vec.array to unsigned char *.
11708 2017-03-06  John David Anglin  <danglin@gcc.gnu.org>
11710         PR target/77850
11711         * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
11712         vector types.
11714 2017-03-06  Vladimir Makarov  <vmakarov@redhat.com>
11716         PR rtl-optimization/79571
11717         * lra-constraints.c (process_alt_operands): Calculate static
11718         reject and subtract it from overall when only addresses will be
11719         reloaded.
11721 2017-03-06  Julia Koval  <julia.koval@intel.com>
11723         PR target/79793
11724         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
11725         incoming stack boundary to 128 for 64-bit targets.
11727 2017-03-06  Richard Biener  <rguenther@suse.de>
11729         PR tree-optimization/79894
11730         * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
11731         to NULL after folding it.
11733 2017-03-06  Richard Biener  <rguenther@suse.de>
11735         PR tree-optimization/79824
11736         * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
11737         check disabling peeling for gaps.
11739 2017-03-06  Toma Tabacu  <toma.tabacu@imgtec.com>
11741         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
11742         attributes): Document gettimeofday.
11744 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
11746         * config/s390/s390.c (s390_option_override_internal): Set
11747         PARAM_MIN_VECT_LOOP_BOUND
11749 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
11751         * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
11752         * config/s390/s390.md: Likewise.
11754 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
11756         PR target/79812
11757         * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
11758         (<avx2_avx512>_perm<mode>): Rename to ...
11759         (avx2_perm<mode>): ... this.  Use VI8F_256 iterator instead
11760         of VI8F_256_512.
11761         (<avx512>_perm<mode>_mask): Rename to ...
11762         (avx512vl_perm<mode>_mask): ... this.  Use VI8F_256 iterator instead
11763         of VI8F_256_512.
11764         (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
11765         (avx2_perm<mode>_1<mask_name): ... this.  Use VI8F_256 iterator
11766         instead of VI8F_256_512.
11767         (avx512f_perm<mode>): New define_expand.
11768         (avx512f_perm<mode>_mask): Likewise.
11769         (avx512f_perm<mode>_1<mask_name>): New define_insn.
11770         (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
11772 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
11774         * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
11775         msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
11776         if_then_else.
11777         (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
11779 2017-03-06  Martin Liska  <mliska@suse.cz>
11781         PR sanitize/79783
11782         * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
11783         when having a SSA NAME w/o VAR_DECL assigned to it.
11785 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
11787         * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
11788         msa_dpsub_<su>_d): Fix MODE for vec_select.
11790 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
11792         * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
11793         argument.
11794         * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
11796 2017-03-06  Richard Biener  <rguenther@suse.de>
11798         * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
11799         * plugin.c (register_plugin_info): Likewise.
11800         * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
11802 2017-03-05  Jakub Jelinek  <jakub@redhat.com>
11804         * config/i386/sse.md (sse_storehps, sse_storelps,
11805         avx_<castmode><avxsizesuffix>_<castmode>,
11806         avx512f_<castmode><avxsizesuffix>_<castmode>,
11807         avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
11808         in condition that at least one operand is not a MEM.
11810 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
11812         PR middle-end/79805
11813         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
11814         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
11815         ECF_NOTHROW.
11816         * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
11817         gimple_call_nothrow_p flag based on whether original builtin can throw.
11818         If it can, emit following stmts on the fallthrough edge.
11819         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
11820         don't create new bb if inserting just debug stmts on the edge, try to
11821         insert them on the fallthru bb or just reset debug stmts.
11823 2017-03-03  Segher Boesssenkool  <segher@kernel.crashing.org>
11825         PR target/43763
11826         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
11827         restore recog_data (including the operand rtxes inside it) around
11828         the call to get_insn_template.
11830 2017-03-03  Martin Sebor  <msebor@redhat.com>
11832         PR tree-optimization/79699
11833         * context.c (context::~context): Free MPFR caches to avoid
11834         a memory leak on program exit.
11836 2017-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11838         * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
11839         Use wide_int::ulow () instead of .elt (0).
11841 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
11843         * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
11844         (*pushxf): Limit oF constraint to 32bit targets and add oC
11845         constraint for 64bit targets.
11846         (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
11847         (*pushdf): Change rmF constraint to rmC.
11849 2017-03-03  Martin Liska  <mliska@suse.cz>
11851         * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
11852         Remove unused variable.
11854 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
11856         PR target/79807
11857         * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
11858         is a memory operand, increase num_memory.
11859         (ix86_expand_args_builtin): Likewise.
11861 2017-03-03  Jan Hubicka  <jh@suse.cz>
11863         PR lto/79760
11864         * ipa-devirt.c (maybe_record_node): Properly handle
11865         __cxa_pure_virtual visibility.
11867 2017-03-03  Martin Liska  <mliska@suse.cz>
11869         PR tree-optimization/79803
11870         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
11871         assert.
11872         (pass_loop_prefetch::execute): Disabled optimization if an
11873         assumption about L1 cache size is not met.
11875 2017-03-03  Martin Liska  <mliska@suse.cz>
11877         PR rtl-optimization/79574
11878         * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
11879         (hash_scan_set): Likewise.
11880         (dump_hash_table): Likewise.
11881         (hoist_code): Likewise.
11883 2017-03-03  Richard Biener  <rguenther@suse.de>
11885         * fixed-value.c (fixed_from_string): Restore use of elt (1)
11886         in place of uhigh ().
11887         (fixed_convert_from_real): Likewise.
11889 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
11891         PR target/79514
11892         * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
11894 2017-03-03  Richard Biener  <rguenther@suse.de>
11896         PR middle-end/79818
11897         * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
11898         TYPE_OVERFLOW_UNDEFINED check.
11900 2017-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11902         * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
11903         numbers.
11904         (vector_ae_<mode>_p): Likewise.
11905         (vector_nez_<mode>_p): Likewise.
11906         (vector_ne_v2di_p): Likewise.
11907         (vector_ae_v2di_p): Likewise.
11908         (vector_ne_<mode>_p): Likewise.
11909         * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
11910         numbers.
11911         (vsx_tsqrt<mode>2_fe): Likewise.
11913 2017-03-02  Uros Bizjak  <ubizjak@gmail.com>
11915         PR target/79514
11916         * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
11918 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
11920         PR rtl-optimization/79780
11921         * cprop.c (one_cprop_pass): When second and further conditional trap
11922         in a single basic block is turned into an unconditional trap, turn it
11923         into a deleted note to avoid RTL verification failures.
11925 2017-03-02  Richard Biener  <rguenther@suse.de>
11927         * fold-const.c (const_binop): Use ulow () instead of elt (0).
11929 2017-03-02  Richard Biener  <rguenther@suse.de>
11931         PR tree-optimization/79345
11932         PR c++/42000
11933         * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
11934         param and abort the walk, returning -1 if it is hit.
11935         (walk_aliased_vdefs): Take a limit param and pass it on.
11936         * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
11937         defaulting to 0 and return a signed int.
11938         * tree-ssa-uninit.c (struct check_defs_data): New struct.
11939         (check_defs): New helper.
11940         (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
11941         about uninitialized memory.
11942         * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
11943         bogus uninitialized warning.
11944         (fixed_convert_from_real): Likewise.
11946 2017-03-02  Bin Cheng  <bin.cheng@arm.com>
11948         PR tree-optimization/66768
11949         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
11950         iv_use if base object can't be determined.
11952 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
11954         PR tree-optimization/79345
11955         * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
11956         * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
11957         (get_pattern_stats): Initialize it.
11958         * genemit.c (gen_expand): Verify match_scratch numbers come after
11959         match_operand/match_dup numbers.
11960         * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
11961         match_scratch numbers.
11962         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
11963         Likewise.
11964         * config/s390/s390.md (trunctdsd2): Likewise.
11966 2017-03-02  Richard Biener  <rguenther@suse.de>
11968         * wide-int.h (wide_int_storage::operator=): Implement in terms
11969         of wi::copy.
11971 2017-03-02  Richard Biener  <rguenther@suse.de>
11973         PR tree-optimization/79777
11974         * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
11975         the to insert expression to sth existing.
11977 2017-03-01  Martin Sebor  <msebor@redhat.com>
11979         PR middle-end/79692
11980         * gimple-ssa-sprintf.c
11981         (directive::known_width_and_precision): New function.
11982         (format_integer): Use it.
11983         (get_mpfr_format_length): Consider the full range of precision
11984         when computing %g output with the # flag.  Set the likely byte
11985         count to 3 rather than 1 when precision is indeterminate.
11986         (format_floating): Correct the lower bound of precision.
11988 2017-03-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11990         * doc/invoke.texi: Document default code model for 64-bit Linux.
11992 2017-03-01  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
11994         PR target/79752
11995         * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
11996         udiv rather than div since input pattern is unsigned.
11998 2017-03-01  Uros Bizjak  <ubizjak@gmail.com>
12000         * config/i386/i386.c (print_reg): Warn for values of
12001         unsupported size in integer register.
12003 2017-03-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
12005         PR target/79439
12006         * config/rs6000/predicates.md (current_file_function_operand): Do
12007         not allow self calls to be local if the function is replaceable.
12009 2017-03-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12011         PR target/79395
12012         * config/rs6000/altivec.h (vec_ctz and others): Change the
12013         preprocessor macro that controls conditional compilation from
12014         _ARCH_PWR9 to __POWER9_VECTOR__.
12015         (vec_all_ne): Change parameterization of __altivec_scalar_pred
12016         macro expansion under preprocessor #ifdef __POWER9_VECTOR__
12017         control (instead of _ARCH_PWR9 control) so that template
12018         definition uses power9-specific function.
12019         (vec_any_eq): Likewise.
12020         (vec_all_ne): Change macro definition to use a power9-specific
12021         expansion under #ifdef __POWER9_VECTOR__ control (instead of
12022         _ARCH_PWR9 control).
12023         (vec_any_eq) Likewise.
12024         * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
12025         expansion for CMPNEF to remove support for xvcmpnesp instruction.
12026         (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
12027         support for xvcmpnedp instruction.
12028         (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
12029         macro expansion so that Power9 implementation of vec_all_ne does
12030         not use the AltiVec predicate framework.
12031         (VCMPNEH_P): Likewise.
12032         (VCMPNEW_P): Likewise.
12033         (VCMPNED_P): Likewise.
12034         (VCMPNEFP_P): Likewise.
12035         (VCMPNEDP_P): Likewise.
12036         (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
12037         implementation of vec_any_eq to not use AltiVec predicate
12038         framework.
12039         (VCMPAEH_P): Likewise.
12040         (VCMPAEW_P): Likewise.
12041         (VCMPAED_P): Likewise.
12042         (VCMPAEFP_P): Likewise.
12043         (VCMPAEDP_P): Likewise.
12044         (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
12045         BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
12046         not use the AltiVec predicate framework.
12047         (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
12048         of vec_any_eq to not use AltiVec predicate framework.
12049         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
12050         support for predefined __POWER9_VECTOR__ macro to indicate that
12051         Power9 instruction selection is enabled.
12052         (altivec_overloaded_builtins): Remove extraneous
12053         ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
12054         function argument types RS6000_BTI_bool_V16QI and
12055         RS6000_BTI_bool_V16QI.  Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
12056         entry for overloaded function argument types RS6000_BTI_bool_V4SI
12057         andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB.  Remove
12058         two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
12059         P9V_BUILTIN_CMPNEF to force use of instructions not specific to
12060         Power9 for implementations of vec_cmpne.  Change the signature for
12061         all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
12062         (representing vec_all_ne) to remove the previously described first
12063         argument of type RS6000_BTI_INTSI, as this was an artifact of
12064         reliance on the AltiVec predicate framework, which is no longer
12065         used in the implementation of these functions.  Add
12066         P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
12067         function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
12068         since, unlike the AltiVec predicate framework implementation, we
12069         do not share function descriptors between vec_alle and vec_anyeq.
12070         (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
12071         set of modes that receive special treatment even when
12072         TARGET_P9_VECTOR is true.  The special treatment emits code that
12073         does not depend on Power9 instructions.
12074         * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
12075         define_expand to not rely on AltiVec predicate framework.
12076         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
12077         function.
12078         (vector_ne_v2di_p): Change this define_expand to not rely on
12079         AltiVec predicate framework.
12080         (vector_ae_v2di_p): New define_expand to represent vec_any_eq
12081         function.
12082         (vector_ne_<mode>_p): Change this define_expand to not rely on
12083         AltiVec predicate framework.
12084         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
12085         function.
12086         * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
12087         (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
12088         define_insn pattern.
12089         (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
12090         define_insn pattern because the xvcmpne<VSs>. instruction is not
12091         supported.
12092         (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
12093         instruction is not supported.
12095 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
12097         * config/nvptx/nvptx.c: Include intl.h.
12099 2017-03-01  Martin Jambor  <mjambor@suse.cz>
12101         PR lto/78140
12102         * ipa-prop.h (ipa_bits): Removed field known.
12103         (ipa_jump_func): Removed field vr_known.  Changed fields bits and m_vr
12104         to pointers.  Adjusted their comments to warn about their sharing.
12105         (ipcp_transformation_summary): Change bits to a vector of pointers.
12106         (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
12107         (ipa_get_ipa_bits_for_value): Declare.
12108         * tree-vrp.h (value_range): Mark as GTY((for_user)).
12109         * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
12110         (ipa_bits_hash_table): Likewise.
12111         (ipa_vr_ggc_hash_traits): Likewise.
12112         (ipa_vr_hash_table): Likewise.
12113         (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
12114         being pointers and vr_known being removed.
12115         (ipa_set_jf_unknown): Likewise.
12116         (ipa_get_ipa_bits_for_value): New function.
12117         (ipa_set_jfunc_bits): Likewise.
12118         (ipa_get_value_range): New overloaded functions.
12119         (ipa_set_jfunc_vr): Likewise.
12120         (ipa_compute_jump_functions_for_edge): Use the above functions to
12121         construct bits and vr parts of jump functions.
12122         (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
12123         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
12124         exist.
12125         (ipcp_grow_transformations_if_necessary): Also allocate
12126         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
12127         exist.
12128         (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
12129         them.  Fix too long lines.
12130         (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
12131         vr_known being removed.
12132         (ipa_read_jump_function): Use new setter functions to construct bits
12133         and vr parts of jump functions or set them to NULL.
12134         (write_ipcp_transformation_info): Adjust for bits being pointers.
12135         (read_ipcp_transformation_info): Likewise.
12136         (ipcp_update_bits): Likewise.  Fix excessively long lines a trailing
12137         space.
12138         Include gt-ipa-prop.h.
12139         * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
12140         being pointers.
12141         (ipcp_store_bits_results): Likewise.
12142         (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
12143         Do not write to existing jump functions but use a temporary instead.
12145 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
12147         PR c++/79681
12148         * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
12149         attempt to use its first operand as BIT_FIELD_REF base.
12151 2017-03-01  Richard Biener  <rguenther@suse.de>
12153         PR middle-end/79721
12154         * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
12155         interpolating formula in wrapping arithmetic.
12156         (chrec_apply): Convert chrec_evaluate return value to wanted type.
12158 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
12160         PR tree-optimization/79734
12161         * tree-vect-generic.c (expand_vector_condition): Optimize
12162         AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
12163         Handle VEC_COND_EXPR where comparison has different inner width from
12164         type's inner width.
12166 2017-02-28  Sandra Loosemore  <sandra@codesourcery.com>
12168         * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
12169         markup, and similar issues.  Remove @opindex entries for things
12170         that aren't options.  Add missing -mmpy-option entries.
12172 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
12174         PR tree-optimization/79737
12175         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
12176         a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
12177         tmpbuf[byte_size - 1].  Call natice_encode_expr with byte_size - 1
12178         instead of byte_size.  Formatting fix.
12179         (shift_bytes_in_array_right): Formatting fix.
12181 2017-02-28  Eric Botcazou  <ebotcazou@adacore.com>
12183         PR target/79749
12184         * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
12185         condition on optimize for the leaf function test.
12187 2017-02-28  Martin Liska  <mliska@suse.cz>
12189         PR lto/79625
12190         * read-rtl-function.c (function_reader::handle_unknown_directive):
12191         Bail out when one uses -flto.
12193 2017-02-28  Martin Liska  <mliska@suse.cz>
12195         * common.opt: Replace space with tabular for options of <number>
12196         type.
12197         * config/i386/i386.opt: Show <number> value for
12198         -mlarge-data-threshold.
12199         * opts.c (print_filtered_help): Do not display number in hexadecimal
12200         format.
12202 2017-02-28  Martin Liska  <mliska@suse.cz>
12204         * common.opt: Fix --help=option -Q for options which are of
12205         an enum type.
12207 2017-02-28  Uros Bizjak  <ubizjak@gmail.com>
12209         * config/i386/i386.c (print_reg): Error out for values
12210         of 8-bit size in invalid integer register.
12212 2017-02-28  Martin Sebor  <msebor@redhat.com>
12214         PR tree-optimization/79691
12215         * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
12217 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
12219         PR target/79729
12220         * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
12221         gcc_unreachable with output_operand_lossage.
12223 2017-02-28  Richard Biener  <rguenther@suse.de>
12225         PR tree-optimization/79740
12226         * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
12227         inserts.
12228         (visit_nary_op): Insert the nary into the hashtable if we
12229         pattern-matched sth.
12230         * tree-ssa-pre.c (eliminate_insert): Robustify.
12232 2017-02-28  Richard Biener  <rguenther@suse.de>
12234         PR middle-end/79731
12235         * fold-const.c (decode_field_reference): Reject out-of-bound
12236         accesses.
12238 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
12240         * config/i386/i386.c: Include intl.h.
12241         (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
12242         instead of just cond ? "..." : "...".
12243         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
12244         * coverage.c (read_counts_file): Likewise.
12245         * omp-offload.c: Include intl.h.
12246         (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
12247         of just cond ? "..." : "...".
12248         * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
12249         of just cond ? "..." : "...".
12251 2017-02-28  Richard Earnshaw  <rearnsha@arm.com>
12253         PR target/79742
12254         * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
12255         entry, if present.
12256         * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
12257         'tune for' CPU name.
12258         * config/arm/arm-cpu-data.h: Regenerated.
12260 2017-02-28  Richard Biener  <rguenther@suse.de>
12262         PR tree-optimization/79732
12263         * tree-inline.c (expand_call_inline): Do not shadow var.
12265 2017-02-28  Richard Biener  <rguenther@suse.de>
12267         PR tree-optimization/79723
12268         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
12269         address-space properly.
12271 2017-02-28  Thomas Schwinge  <thomas@codesourcery.com>
12273         * doc/optinfo.texi (Optimization groups): Fix option used for
12274         OPTGROUP_ALL.
12275         * doc/invoke.texi (-fopt-info): Document "omp".
12276         * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
12277         (OPTGROUP_ALL): Add OPTGROUP_OMP.
12278         * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
12279         * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
12280         * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
12282         * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP.  Adjust
12283         all users.
12284         * dumpfile.c (optgroup_options): Instead of "openmp", associate
12285         OPTGROUP_OMP with "omp".
12287 2017-02-27  Pat Haugen  <pthaugen@us.ibm.com>
12289         PR target/79544
12290         * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
12291         for arithmetic shift of unsigned V2DI.
12293 2017-02-27  Claudiu Zissulescu  <claziss@synopsys.com>
12295         * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
12296         arc/linux.h headers.
12297         * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
12298         (LINK_SPEC): Likewise.
12299         (ARC_TLS_EXTRA_START_SPEC): Likewise.
12300         (EXTRA_SPECS): Likewise.
12301         (STARTFILE_SPEC): Likewise.
12302         (ENDFILE_SPEC): Likewise.
12303         (LIB_SPEC): Likewise.
12304         (TARGET_SDATA_DEFAULT): Likewise.
12305         (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
12306         (MULTILIB_DEFAULTS): Likewise.
12307         (DWARF2_UNWIND_INFO): Likewise.
12308         * config/arc/big.h: New file.
12309         * config/arc/elf.h: Likewise.
12310         * config/arc/linux.h: Likewise.
12311         * config/arc/t-uClibc: Remove.
12313 2017-02-27  Bin Cheng  <bin.cheng@arm.com>
12315         PR tree-optimization/77536
12316         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
12317         (tree_transform_and_unroll_loop): Use above function to compute the
12318         estimated niter of unrolled loop and use it when scaling profile.
12319         Also use count info rather than frequency if it's non-zero.
12320         * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
12321         * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
12322         (vect_transform_loop): Call above function.
12324 2017-02-27  Richard Biener  <rguenther@suse.de>
12326         PR tree-optimization/45397
12327         * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
12328         * tree-ssa-sccvn.c (valueized_wider_op): New helper.
12329         (visit_nary_op): Add pattern matching for CSEing sign-changed
12330         or truncated operations with wider ones.
12332 2017-02-27  Richard Biener  <rguenther@suse.de>
12334         PR tree-optimization/79690
12335         * tree-vect-stmts.c (vectorizable_store): Use vector type
12336         built from the DR with address-space.
12338 2017-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
12340         * doc/invoke.texi (Optimize Options): Refine the description
12341         of asan-use-after-return.
12343 2017-02-25  Alan Modra  <amodra@gmail.com>
12345         PR rtl-optimization/79584
12346         * lra-constraints.c (base_to_reg): Reload ad->base, the entire
12347         base, not ad->base_term, the reg within base.  Remove assertion
12348         that ad->base == ad->base_term.  Replace gen_int_mode using
12349         bogus mode with const0_rtx.
12351 2017-02-25  Jakub Jelinek  <jakub@redhat.com>
12353         PR middle-end/79396
12354         * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
12355         FMA_EXPR like tcc_binary or tcc_unary.
12357         * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
12359         PR debug/77589
12360         * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
12361         bitfield.
12362         (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
12363         (output_loc_operands): Handle DW_OP_call_ref and
12364         DW_OP_GNU_variable_value.
12365         (struct variable_value_struct): New type.
12366         (struct variable_value_hasher): Likewise.
12367         (variable_value_hash): New variable.
12368         (string_types): Remove.
12369         (copy_loc_descr): New function.
12370         (add_loc_descr_to_each): Clarify comment.  Use copy_loc_descr.
12371         (prepend_loc_descr_to_each): New function.
12372         (add_loc_list): Fix comment typo.  Use prepend_loc_descr_to_each
12373         instead of add_loc_descr_to_each if the first argument is single
12374         location list and the second has multiple.
12375         (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
12376         (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
12377         when looking for variable value which doesn't have other location info.
12378         (loc_list_from_tree): Formatting fix.
12379         (gen_array_type_die): Simplify DW_AT_string_length handling.
12380         (adjust_string_types): Remove.
12381         (gen_subprogram_die): Don't call adjust_string_types nor test/set
12382         string_types.  Call resolve_variable_values.
12383         (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
12384         (resolve_addr_in_expr): Likewise.  Add A argument.
12385         (copy_deref_exprloc): Remove deref argument.  Adjust for the
12386         original expression being DW_OP_GNU_variable_value with optionally
12387         DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
12388         optionally after it.
12389         (optimize_string_length): Rework for DW_OP_GNU_variable_value.
12390         (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
12391         callers.  Set remove_AT_byte_size if removing DW_AT_string_length.
12392         (variable_value_hasher::hash, variable_value_hasher::equal): New
12393         methods.
12394         (resolve_variable_value_in_expr, resolve_variable_value,
12395         resolve_variable_values, note_variable_value_in_expr,
12396         note_variable_value): New functions.
12397         (dwarf2out_early_finish): Call note_variable_value on all toplevel
12398         DIEs.
12400 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
12402         PR c/79677
12403         * opts.h (handle_generated_option): Add GENERATED_P argument.
12404         * opts-common.c (handle_option): Adjust function comment.
12405         (handle_generated_option): Add GENERATED_P argument, pass it to
12406         handle_option.
12407         (control_warning_option): Pass false to handle_generated_option
12408         GENERATED_P.
12409         * opts.c (maybe_default_option): Pass true to handle_generated_option
12410         GENERATED_P.
12411         * optc-gen.awk: Likewise.
12413 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
12415         * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
12416         a REG, look at the REG it is a SUBREG of.
12417         (splitter for cmpeqsi_t): Ditto.
12419 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
12421         * config/pa/pa.c (pa_combine_instructions): Do not share RTL.  Make
12422         the special USEs with the pattern of the insn, not the insn itself.
12424 2017-02-24  Matthew Fortune  <matthew.fortune@imgtec.com>
12426         PR target/79473
12427         * doc/invoke.texi: Document -mload-store-pairs.
12429 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
12430             Sandra Loosemore  <sandra@codesourcery.com>
12432         * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
12433         argument isn't a CONST_INT.
12434         (nios2_alternate_compare_const): Assert op is a CONST_INT.
12435         (nios2_valid_compare_const_p): Assert op is a CONST_INT.
12436         (nios2_validate_compare): Bypass alternate compare logic if *op2
12437         is not a CONST_INT.
12438         (ldstwm_operation_p): Return false if first_base is not a REG or
12439         if first_offset is not a CONST_INT.
12441 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
12443         * config/cris/cris.md: Use correct operand in a define_peephole2.
12445 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
12447         * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
12449 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
12451         * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
12452         this_insn if it is an INSN or JUMP_INSN.
12453         (force_offsettable): Look at base, not at addr.
12454         * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
12455         on things that aren't necessarily CONST_INTs.
12457 2017-02-24  Uros Bizjak  <ubizjak@gmail.com>
12459         * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
12460         -mfpmath=sse is the default also for x86-32 targets with SSE2
12461         instruction set when @option{-ffast-math} is enabled
12463 2017-02-24  Jeff Law  <law@redhat.com>
12465         PR rtl-optimizatoin/79286
12466         * ira.c (update_equiv_regs): Drop may_trap_p exception to
12467         dominance test.
12469 2017-02-24  Richard Biener  <rguenther@suse.de>
12471         PR tree-optimization/79389
12472         * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
12473         debug insns.
12475 2017-02-24  Aldy Hernandez  <aldyh@redhat.com>
12477         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
12478         function comment to reflect reality.
12479         (loop_exits_before_overflow): Fix typo in function description.
12481 2017-02-24  Richard Biener  <rguenther@suse.de>
12483         PR tree-optimization/79389
12484         * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
12485         properly that a threading opportunity exists.  Detect conditional
12486         copy/constant propagation opportunities.
12488 2017-02-23  Eric Botcazou  <ebotcazou@adacore.com>
12490         * config/visium/visium.md (type): Add trap.
12491         (b): New mode attribute.
12492         (*btst): Rename into...
12493         (*btst<mode>): ...this and adjust.
12494         (*cbranchsi4_btst_insn): Rename into...
12495         (*cbranch<mode>4_btst_insn): ...this and adjust.
12496         (trap): New define_insn.
12498 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
12500         PR tree-optimization/79389
12501         * ifcvt.c (struct noce_if_info): Add rev_cond field.
12502         (noce_reversed_cond_code): New function.
12503         (noce_emit_store_flag): Use rev_cond if non-NULL instead of
12504         reversed_comparison_code.  Formatting fix.
12505         (noce_try_store_flag): Test rev_cond != NULL in addition to
12506         reversed_comparison_code.
12507         (noce_try_store_flag_constants): Likewise.
12508         (noce_try_store_flag_mask): Likewise.
12509         (noce_try_addcc): Use rev_cond if non-NULL instead of
12510         reversed_comparison_code.
12511         (noce_try_cmove_arith): Likewise.  Formatting fixes.
12512         (noce_try_minmax, noce_try_abs): Clear rev_cond.
12513         (noce_find_if_block): Initialize rev_cond.
12514         (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
12515         instead of false as last argument never attempt to reverse it
12516         afterwards.
12518 2017-02-23  Bin Cheng  <bin.cheng@arm.com>
12520         PR tree-optimization/79663
12521         * tree-predcom.c (combine_chains): Process refs in reverse order
12522         only for ZERO length chains, and add explaining comment.
12524 2017-02-23  Jeff Law  <law@redhat.com>
12526         PR tree-optimization/79578
12527         * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
12528         in call to operand_equal_p.
12530 2017-01-23  Dominique d'Humieres  <dominiq@lps.ens.fr>
12532         PR target/71017
12533         * config/i386/cpuid.h: Fix another undefined behavior.
12535 2017-02-23  Richard Biener  <rguenther@suse.de>
12537         PR tree-optimization/79683
12538         * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
12539         vector types for data-refs.
12541 2017-02-23  Martin Liska  <mliska@suse.cz>
12543         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
12545 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
12547         PR middle-end/79665
12548         * internal-fn.c (get_range_pos_neg): Moved to ...
12549         * tree.c (get_range_pos_neg): ... here.  No longer static.
12550         * tree.h (get_range_pos_neg): New prototype.
12551         * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
12552         are known to be in between 0 and signed maximum inclusive, try to
12553         expand both unsigned and signed divmod and use the cheaper one from
12554         those.
12556 2017-02-22  Jeff Law  <law@redhat.com>
12558         PR tree-optimization/79578
12559         * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
12560         to compare base operands.
12562 2017-02-22  Segher Boessenkool  <segher@kernel.crashing.org>
12564         PR target/79211
12565         * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
12566         gpc_reg_operand instead of fpr_reg_operand.
12568 2017-02-22  Sameera Deshpande  <sameera.deshpande@imgtec.com>
12570         * config/mips/mips.c (mips_return_in_memory): Force FP
12571         vector types to be returned in memory for o32 ABI.
12573 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
12575         * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
12576         instead of DW_TAG_member for static data member declarations and don't
12577         set no_linkage_name for static inline data members.
12578         (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
12579         to DW_TAG_member.
12581 2017-02-22  Martin Liska  <mliska@suse.cz>
12583         * doc/invoke.texi: Replace inequality signs with square brackets
12584         for -Wnormalized.
12586 2017-02-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12588         PR tree-optimization/68644
12589         * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
12591 2017-02-22  Matthew Fortune  <matthew.fortune@imgtec.com>
12593         PR target/78660
12594         * lra-constraints.c (simplify_operand_subreg): Handle
12595         WORD_REGISTER_OPERATIONS targets.
12597 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
12599         PR target/70465
12600         * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
12601         and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
12602         elimination by swapping fld*.
12604 2017-02-22  Richard Biener  <rguenther@suse.de>
12606         PR tree-optimization/79673
12607         * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
12608         convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
12609         irrelevant address-space qualifiers and avoiding a
12610         ADDR_SPACE_CONVERT_EXPR from fold_convert.
12612 2017-02-22  Richard Biener  <rguenther@suse.de>
12614         PR tree-optimization/79666
12615         * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
12616         to not symbolically negate if that may introduce undefined
12617         overflow.
12619 2017-02-22  Martin Liska  <mliska@suse.cz>
12621         PR lto/79587
12622         * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
12623         * data-streamer-out.c (streamer_write_gcov_count_stream):
12624         Likewise.
12625         * value-prof.c (stream_out_histogram_value): Make assert more
12626         precise based on type of counter.
12628 2017-02-21  Uros Bizjak  <ubizjak@gmail.com>
12630         PR target/79593
12631         * config/i386/i386.md (standard_x87sse_constant_load splitter):
12632         Use nonimmediate_operand instead of memory_operand for operand 1.
12633         (float-extend standard_x87sse_constant_load splitter): Ditto.
12635 2017-02-21  Jeff Law  <law@redhat.com>
12637         PR tree-optimization/79621
12638         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
12639         blocks with edges to themselves.
12641 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
12643         PR target/79633
12644         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
12645         is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
12646         Use gimple_call_builtin_p.
12648         PR target/79570
12649         * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
12650         on temporarily removed DEBUG_INSNs.
12652         PR tree-optimization/79649
12653         * tree-loop-distribution.c (classify_partition): Give up on
12654         non-generic address space loads/stores.
12656 2017-02-21  Aldy Hernandez  <aldyh@redhat.com>
12658         * doc/loop.texi (Loop manipulation): Remove nonexistent
12659         tree_ssa_loop_version from the documentation.
12660         * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
12662 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
12664         PR target/79494
12665         * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
12666         make_reg_eh_region_note_nothrow_nononlocal on call_insn.
12667         * config/rs6000/rs6000.c: Include except.h.
12668         (rs6000_expand_split_stack_prologue): Call
12669         make_reg_eh_region_note_nothrow_nononlocal on the call insn.
12671 2017-02-21  Martin Jambor  <mjambor@suse.cz>
12673         PR lto/79579
12674         * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
12675         have been analyzed.
12677 2017-02-21  Martin Jambor  <mjambor@suse.cz>
12679         * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
12680         for backward compatibility only.
12681         * doc/invoke.texi (Option Summary): Remove all references to
12682         -fipa-cp-alignment.
12684 2017-02-21  Matthew Fortune  <matthew.fortune@imgtec.com>
12686         PR target/78660
12687         Revert:
12688         2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
12690         * lra-constraints.c (curr_insn_transform): Handle
12691         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
12693 2017-02-21  Martin Liska  <mliska@suse.cz>
12695         * config/i386/i386.opt: Replace -masm-dialect with -masm.
12697 2017-02-21  Thomas Schwinge  <thomas@codesourcery.com>
12699         PR translation/79638
12700         * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
12702 2017-02-21  Eric Botcazou  <ebotcazou@adacore.com>
12704         PR ada/67205
12705         * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
12706         (arm_function_ok_for_sibcall): Return false for an indirect call by
12707         descriptor if all the argument registers are used.
12708         (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
12709         alignment of the function.
12711 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
12713         PR tree-optimization/61441
12714         * simplify-rtx.c (simplify_const_unary_operation): For
12715         -fsignaling-nans and sNaN operand, return NULL_RTX rather than
12716         the sNaN unmodified.
12718 2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12720         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
12721         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
12722         instead of SYSTEM_HEADER_DIR.
12724 2017-02-20  Gerald Pfeifer  <gerald@pfeifer.com>
12725             Martin LiÅ¡ka  <mliska@suse.cz>
12727         * doc/invoke.texi (use-after-scope-direct-emission-threshold):
12728         Fix typos and grammar, use active voice, and clarify.
12730 2017-02-20  Marek Polacek  <polacek@redhat.com>
12732         PR middle-end/79537
12733         * gimplify.c (gimplify_expr): Handle unused *&&L;.
12735         PR sanitizer/79558
12736         * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
12738 2017-02-20  Jakub Jelinek  <jakub@redhat.com>
12740         PR target/79568
12741         * config/i386/i386.c (ix86_expand_builtin): Handle
12742         OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
12743         ix86_builtins_isa[fcode].isa as a requirement of those
12744         flags and any other flag in the bitmask.
12745         (ix86_init_mmx_sse_builtins): Use 0 instead of
12746         ~OPTION_MASK_ISA_64BIT as mask.
12747         * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
12748         __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
12749         __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
12750         __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
12752 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
12754         PR target/78012
12755         * lra-constraints.c (split_reg): Check requested split mode
12756         is supported by the register.
12758 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
12760         * lra-constraints.c (simplify_operand_subreg): Remove early
12761         return false.
12763 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
12765         PR target/78660
12766         * lra-constraints.c (curr_insn_transform): Tighten condition
12767         for converting SUBREG reloads from OP_OUT to OP_INOUT.
12769 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
12771         PR target/78660
12772         * lra-constraints.c (curr_insn_transform): Handle
12773         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
12775 2017-02-19  Uros Bizjak  <ubizjak@gmail.com>
12777         Revert:
12778         2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
12780         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
12782 2017-02-19  Jonathan Wakely  <jwakely@redhat.com>
12784         PR c++/69523
12785         * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
12786         description.
12788 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12790         * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
12791         for FMA_EXPR.
12793 2017-02-18  Jakub Jelinek  <jakub@redhat.com>
12795         * final.c (last_columnnum, override_columnnum): New variables.
12796         (final_start_function): Set last_columnnum, pass it to begin_prologue
12797         hook and pass 0 to dwarf2out_begin_prologue.
12798         (final_scan_insn): Update override_columnnum.  Pass last_columnnum
12799         to source_line debug hook.
12800         (notice_source_line): Compute last_columnnum and for debug_column_info
12801         return true on column changes.
12802         * debug.h (struct gcc_debug_hooks): Add column argument to
12803         source_line and begin_prologue hooks.
12804         (debug_nothing_int_charstar_int_bool): Remove prototype.
12805         (debug_nothing_int_int_charstar,
12806         debug_nothing_int_int_charstar_int_bool): New prototypes.
12807         (dwarf2out_begin_prologue): Add column argument.
12808         * debug.c (do_nothing_debug_hooks): Adjust source_line and
12809         begin_prologue hooks.
12810         (debug_nothing_int_charstar_int_bool): Remove.
12811         (debug_nothing_int_int_charstar,
12812         debug_nothing_int_int_charstar_int_bool): New functions.
12813         * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
12814         through to dwarf2out_source_line.
12815         (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
12816         (dwarf2out_source_line): Add column argument, emit it if requested.
12817         * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
12818         arguments.
12819         * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
12820         * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
12821         * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
12822         through to dwarf2out_begin_prologue.
12823         (vmsdbgout_source_line): Add column argument, pass it through to
12824         dwarf2out_source_line.
12825         * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
12826         dbxout_source_line caller.
12827         (dbxout_source_line): Add column argument.
12829         * common.opt (gno-column-info, gcolumn-info): New options.
12830         * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
12831         (check_die): Also test for multiple DW_AT_decl_column attributes.
12832         (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
12833         DW_AT_decl_column if requested.
12834         (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
12835         if requested.
12836         (gen_variable_die): Likewise.
12837         (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
12838         * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
12840         PR target/79569
12841         * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
12842         * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
12843         (ix86_handle_option): Handle OPT_m3dnowa.
12844         * doc/invoke.texi (-m3dnowa): Document.
12845         * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
12846         -m3dnowa instead of -m3dnow -march=athlon.
12848         PR target/79559
12849         * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
12850         instead of gcc_assert for K, r and R code checks.  Formatting fixes.
12852 2017-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12854         PR target/79261
12855         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
12856         support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
12857         * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
12858         generator for vsx_xxpermdi_<mode>_be.
12859         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
12860         force big-endian semantics.
12861         (vsx_xxpermdi_<mode>_be): New define_expand with same
12862         implementation as previous version of vsx_xxpermdi_<mode>.
12864 2017-02-17  Jakub Jelinek  <jakub@redhat.com>
12866         PR tree-optimization/79327
12867         * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
12868         variable, its initialization and use.
12870 2017-02-17  Julia Koval  <julia.koval@intel.com>
12872         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
12873         (OPTION_MASK_ISA_PKU_UNSET): New.
12874         (ix86_handle_option): Handle -mrdpid.
12875         * config/i386/cpuid.h (bit_RDPID): New.
12876         * config/i386/driver-i386.c (host_detect_local_cpu):
12877         Detect RDPID feature.
12878         * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
12879         * config/i386/i386-c.c (ix86_target_macros_internal):
12880         Handle RDPID flag.
12881         * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
12882         (ix86_valid_target_attribute_inner_p): Add "rdpid".
12883         (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
12884         * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
12885         * config/i386/i386.md (define_insn "rdpid"): New.
12886         * config/i386/i386.opt Add -mrdpid.
12887         * config/i386/immintrin.h (_rdpid_u32): New.
12889 2017-02-17  Vladimir Makarov  <vmakarov@redhat.com>
12891         PR rtl-optimization/79541
12892         * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
12893         instead of transforming it into USE.
12895 2017-02-17  Segher Boessenkool  <segher@kernel.crashing.org>
12897         * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
12898         If HONOR_SNANS (SFmode) force the input to a register.
12899         (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
12900         (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
12901         an frsp or similar insn.
12903 2017-02-17  Martin Liska  <mliska@suse.cz>
12905         PR rtl-optimization/79577
12906         * params.def (selsched-max-sched-times): Increase minimum to 1.
12908 2017-02-17  Martin Liska  <mliska@suse.cz>
12910         PR rtl-optimization/79574
12911         * gcse.c (want_to_gcse_p): Prevent integer overflow.
12913 2017-02-17  Martin Liska  <mliska@suse.cz>
12915         PR tree-optimization/79529
12916         * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
12917         ssa_defined_default_def_p to handle cases which are implicitly
12918         defined.
12919         * tree-ssa.c (ssa_defined_default_def_p): New function.
12920         (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
12921         which are implicitly defined.
12922         * tree-ssa.h (ssa_defined_default_def_p): Declare.
12924 2017-02-17  Richard Biener  <rguenther@suse.de>
12926         PR middle-end/79576
12927         * params.def (max-ssa-name-query-depth): Limit to 10.
12929 2017-02-17  Richard Biener  <rguenther@suse.de>
12931         PR tree-optimization/79552
12932         * tree-ssa-structalias.c (visit_loadstore): Properly verify
12933         default defs.
12935 2017-02-17  Richard Biener  <rguenther@suse.de>
12937         PR bootstrap/79567
12938         * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
12940 2017-02-17  Marek Polacek  <polacek@redhat.com>
12942         PR middle-end/79536
12943         * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
12944         (fold_negate_expr): New wrapper.
12946 2017-02-16  Sandra Loosemore  <sandra@codesourcery.com>
12948         * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]: 
12949         Correct terminology and de-emphasize pre-standard behavior.
12951 2017-02-16  Alan Modra  <amodra@gmail.com>
12953         PR rtl-optimization/79286
12954         * ira.c (def_dominates_uses): New function.
12955         (update_equiv_regs): Don't create an equivalence for insns that
12956         may trap where the register def does not dominate the use.
12958 2017-02-16  Vladimir Makarov  <vmakarov@redhat.com>
12960         PR rtl-optimization/78127
12961         * lra.c (lra): Call lra_eliminate before finish the loop after
12962         lra_constraint.
12964 2017-02-16  Richard Biener  <rguenther@suse.de>
12966         * graphite.h: Do not include isl/isl_val_gmp.h, instead include
12967         isl/isl_val.h.
12968         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
12969         (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
12970         * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
12971         (isl_val_int_from_wi): New function.
12972         (extract_affine_gmp): Rename to ...
12973         (extract_affine_wi): ... this, take a widest_int.
12974         (extract_affine_int): Just wrap extract_affine_wi.
12975         (add_param_constraints): Use isl_val_int_from_wi.
12976         (add_loop_constraints): Likewise, and extract_affine_wi.
12978 2017-02-15  Jeff Law  <law@redhat.com>
12980         PR middle-end/79521
12981         * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
12982         ira_init_register_move_cost_if_necessary.
12984 2017-02-15  Martin Sebor  <msebor@redhat.com>
12986         PR middle-end/32003
12987         * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
12988         removed in a prior commit.
12990 2017-02-15  Bin Cheng  <bin.cheng@arm.com>
12992         PR tree-optimization/79347
12993         * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
12994         counters during peeling.
12996 2017-02-15  Thomas Schwinge  <thomas@codesourcery.com>
12998         * Makefile.in (site.exp): Remove "set ISLVER".
13000 2017-02-15  Jakub Jelinek  <jakub@redhat.com>
13002         PR target/79487
13003         * real.c (real_from_integer): Call real_convert even for decimal.
13005 2017-02-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13007         PR target/79421
13008         * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
13010 2017-02-14  Andrew Pinski  <apinski@cavium.com>
13012         * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
13013         cores and change the partno/implementer to be correct.
13014         (thunderx2t99p1): New core which replaces thunderx2t99 and still has
13015         the 'B" as the implementer.
13016         * config/aarch64/aarch64-tune.md: Regenerate.
13018 2017-02-14  Carl Love  <cel@us.ibm.com>
13020         * config/rs6000/rs6000.c: Add case statement entry to make the
13021         xvcvuxdsp built-in argument unsigned.
13022         * config/rs6000/vsx.md: Fix the source and return operand types so they
13023         match the instruction definitions from the ISA document.  Fix typo
13024         in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
13025         statement.
13027 2017-02-14  Vladimir Makarov  <vmakarov@redhat.com>
13029         PR target/79282
13030         * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
13031         member early_clobber_alts.
13032         * lra-lives.c (reg_early_clobber_p): New.
13033         (process_bb_lives): Use it.
13034         * lra.c (new_insn_reg): New arg early_clobber_alts.  Use it.
13035         (debug_operand_data): Initialize early_clobber_alts.
13036         (setup_operand_alternative): Set up early_clobber_alts.
13037         (collect_non_operand_hard_regs): Ditto.  Pass early clobber
13038         alternatives to new_insn_reg.
13039         (add_regs_to_insn_regno_info): Add arg early_clobber_alts.  Use
13040         it.
13041         (lra_update_insn_regno_info): Pass the new arg.
13043 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
13045         PR middle-end/79505
13046         * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
13047         (new_oacc_loop_raw): Don't clear already cleared fields.
13049         PR target/79481
13050         * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
13051         _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
13052         _mm512_prefetch_i64gather_ps): New inline functions and macros.
13054 2017-02-14  Uros Bizjak  <ubizjak@gmail.com>
13056         PR target/79495
13057         * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
13059 2017-02-14  H.J. Lu  <hongjiu.lu@intel.com>
13061         PR target/79498
13062         * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
13063         the extra instruction to the right place to store 128-bit constant
13064         when needed.
13066 2017-02-14  Martin Sebor  <msebor@redhat.com>
13068         PR middle-end/79448
13069         * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
13070           warning for strings of unknown length.
13072 2017-02-13  Segher Boessenkool  <segher@kernel.crashing.org>
13074         * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
13076 2017-02-14  Jeff Law  <law@redhat.com>
13078         PR target/79404
13079         * ira-costs.c (scan_one_insn): Initialize register move costs
13080         for pseudos seen in USE/CLOBBER insns.
13082         PR tree-optimization/79095
13083         * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
13084         if the numerator has the range ~[0,0] make the resultant range ~[0,0].
13085         (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
13086         if the operands are known to be not equal, then the resulting range
13087         is ~[0,0].
13088         (intersect_ranges): If the new range is ~[0,0] and the old range is
13089         wide, then prefer ~[0,0].
13090         * tree-vrp.c (overflow_comparison_p_1): New function.
13091         (overflow_comparison_p): New function.
13092         * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
13093         if NAME is used in an overflow test.
13094         (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
13095         overflow check that can be expressed as an equality test, then adjust
13096         ops to be that equality test.
13098 2017-02-14  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13100         * config/s390/s390-builtin-types.def: Remove flags argument.
13101         * config/s390/s390.c (s390_init_builtins): Likewise.
13103 2017-02-14  Martin Liska  <mliska@suse.cz>
13105         * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
13106         vector.  Fix trailing white spaces.
13108 2017-02-14  James Greenhalgh  <james.greenhalgh@arm.com>
13110         * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
13111         HFmode.
13113 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13115         PR rtl-optimization/68664
13116         * config/arm/arm.c (arm_sched_can_speculate_insn):
13117         New function.  Declare prototype.
13118         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
13120 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13122         PR rtl-optimization/68664
13123         * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
13124         New function.
13125         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
13127 2017-02-14  Amit Pawar  <amit.pawar@amd.com>
13129         * config/i386/i386.c (znver1_cost): Fix the alignment for function and
13130         max skip bytes for function, loop and jump.
13132 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13134         * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
13135         ABS_EXPR for gimple dump.
13137 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
13139         PR target/79462
13140         * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
13142         PR tree-optimization/79408
13143         * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
13144         case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
13145         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
13146         also if rhs1 is INTEGER_CST.
13148 2017-02-14  Richard Biener  <rguenther@suse.de>
13150         PR middle-end/79432
13151         * tree-into-ssa.c (insert_phi_nodes): When the function can
13152         have abnormal edges rewrite SSA names with broken use-def
13153         dominance out of SSA and register them for PHI insertion.
13155 2017-02-13  Martin Sebor  <msebor@redhat.com>
13157         PR middle-end/79496
13158         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
13159         clearing info.nowrite flag when snprintf size argument is a range.
13161 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
13163         * cprop.c (cprop_jump): Add missing space in string literal.
13164         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
13165         (get_constraint_for_component_ref): Likewise.
13166         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
13167         * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
13168         * lra-constraints.c (process_alt_operands): Likewise.
13169         * ipa-inline.c (inline_small_functions): Likewise.
13170         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
13171         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
13172         * trans-mem.c (diagnose_tm_1_op): Likewise.
13173         * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
13174         (grid_parallel_clauses_gridifiable): Likewise.
13176         * config/nvptx/mkoffload.c (process): Add space in between
13177         , and %d.
13179         * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
13180         "MOD4_SSE_REGS" and "ALL_REGS".
13182         * spellcheck.c (test_data): Add , in between "foo" and "food".
13184 2017-02-13  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
13186         PR target/79449
13187         * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
13188         boundary crossing check and subsequent code generation agree.
13190 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13192         * config/aarch64/aarch64.c (has_memory_op): Delete.
13193         (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
13194         has_memory_op.
13196 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
13198         PR rtl-optimization/79388
13199         PR rtl-optimization/79450
13200         * combine.c (distribute_notes): When removing TEM_INSN for which
13201         corresponding dest has last value recorded, invalidate that last
13202         value.
13204 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13206         * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
13207         of explicit '@'.  Add missing assembly comment marker on branch costs
13208         printout.
13210 2017-02-13  Nathan Sidwell  <nathan@acm.org>
13212         * gengtype-lex.l (<in_struct>): Add '/'.
13214 2017-02-13  Martin Liska  <mliska@suse.cz>
13216         PR c/79471
13217         * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
13219 2017-02-13  Richard Biener  <rguenther@suse.de>
13221         * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
13222         Remove.
13223         * configure: Re-generate.
13224         * config.in: Likewise.
13225         * graphite-dependences.c: Simplify as if
13226         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
13227         * graphite-isl-ast-to-gimple.c: Likewise.
13228         * graphite-optimize-isl.c: Likewise.
13229         * graphite-poly.c: Likewise.
13230         * graphite-sese-to-poly.c: Likewise.
13231         * graphite.h: Likewise.
13232         * toplev.c: Include isl/version.h and use isl_version () for
13233         printing the ISL version.
13234         * doc/install.texi: Update ISL requirement.
13236 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
13238         * doc/standards.texi (Standards): Update reference to
13239         Objective-C 2.0.
13241 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
13243         * doc/extend.texi (Named Address Spaces): sourceware.org now
13244         defaults to https.
13245         * doc/install.texi (Binaries): Ditto.
13246         (Specific): Ditto.
13248 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
13250         * doc/cpp.texi: Replace "stringify"/"stringification" with C
13251         standard terminology "stringize"/"stringizing" throughout.
13252         * doc/cppinternals.texi: Likewise.
13254 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
13256         * doc/extend.texi: Fix some spelling mistakes and typos.
13257         * doc/invoke.texi: Likewise.
13259 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
13261         PR ipa/79224
13262         * params.def (inline-min-speedup) Change from 10 to 8.
13264 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
13266         * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
13267         4.5.
13269 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
13271         PR ipa/79224
13272         * ipa-inline-analysis.c (get_minimal_bb): New function.
13273         (record_modified): Use it.
13274         (remap_edge_change_prob): Handle also ancestor functions.
13276 2017-02-11  Gerald Pfeifer  <gerald@pfeifer.com>
13278         * doc/contrib.texi (Contributors): Remove broken link into
13279         the Mauve CVS repository.
13281 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
13283         PR middle-end/79454
13284         * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
13285         result computation whenever lhs doesn't have vector mode, not
13286         just when it has BLKmode.
13288 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
13290         * doc/makefile.texi (profiledbootstrap): Refer to the
13291         installation instructions only in textual form.
13293 2017-02-10  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
13295         PR target/79295
13296         * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
13298 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
13300         * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
13301         (Specific): Update mingw-w64 reference.
13302         (Binaries): Ditto.
13303         (Specific): Remove broken link to Renesas RX processor.
13305 2017-02-10  Richard Biener  <rguenther@suse.de>
13307         * toplev.c (process_options): Do not mention obsolete graphite
13308         options when printing sorry message about missing graphite support.
13309         Mention -floop-nest-optimize.
13311 2017-02-10  Christophe Lyon  <christophe.lyon@linaro.org>
13313         * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
13314         (vtst_p16): Likewise.
13315         (vtstq_p8): Likewise.
13316         (vtstq_p16): Likewise.
13317         (vtst_p64): New.
13318         (vtstq_p64): Likewise.
13319         * config/arm/arm_neon.h (vgetq_lane_p64): New.
13320         (vset_lane_p64): New.
13321         (vsetq_lane_p64): New.
13323 2017-02-10  Jakub Jelinek  <jakub@redhat.com>
13325         PR tree-optimization/79411
13326         * tree-ssa-reassoc.c (is_reassociable_op): Return false if
13327         stmt operands are SSA_NAMEs used in abnormal phis.
13328         (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
13329         phis.
13331 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
13333         PR ipa/70795
13334         * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
13335         flag if needed.
13337 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
13339         * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
13341 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
13343         * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
13344         to avoid warning.
13346         PR c/79413
13347         * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
13348         not arbitrary TREE_CONSTANT.
13350         PR c/79431
13351         * gimplify.c (gimplify_adjust_omp_clauses): Ignore
13352         "omp declare target link" attribute unless is_global_var.
13353         * omp-offload.c (find_link_var_op): Likewise.
13355 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
13356             Chung-Lin Tang  <cltang@codesourcery.com>
13358         * gimplify.c (gimplify_scan_omp_clauses): No special handling for
13359         OMP_CLAUSE_TILE.
13360         (gimplify_adjust_omp_clauses): Don't delete TILE.
13361         (gimplify_omp_for): Deal with TILE.
13362         * internal-fn.c (expand_GOACC_TILE): New function.
13363         * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
13364         (GOACC_TILE): New.
13365         * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
13366         (expand_oacc_collapse_init): Add LOC paramter.  Initialize tile
13367         element fields.
13368         (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
13369         avoid DIV for outermost collapse var.
13370         (expand_oacc_for): Insert tile element loop as needed.  Adjust.
13371         Remove out of date comments, fix whitespace.
13372         * omp-general.c (omp_extract_for_data): Deal with tiling.
13373         * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
13374         adjust OLF_DIM_BASE value.
13375         (struct omp_for_data): Add tiling field.
13376         * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
13377         (lower_oacc_head_mark): Add OLF_TILE as appropriate.  Ensure 2 levels
13378         for auto loops.  Remove default auto determining, moved to
13379         oacc_loop_fixed_partitions.
13380         * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
13381         stmts, add e_mask field.
13382         (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
13383         (oacc_thread_numbers): Use oacc_dim_call.
13384         (oacc_xform_tile): New.
13385         (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
13386         (finish_oacc_loop): Adjust for ifns vector.
13387         (oacc_loop_discover_walk): Append loop abstraction sites to list,
13388         add case for GOACC_TILE fns.
13389         (oacc_loop_xform_loop): Delete.
13390         (oacc_loop_process): Iterate over call list directly, and add
13391         handling for GOACC_TILE fns.
13392         (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
13393         dump partitioning.
13394         (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
13395         vector partitioning to outer loops.  Assign 2 partitions to loops
13396         when available. Add TILE handling.
13397         (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
13398         (execite_oacc_device_lower): Process GOACC_TILE fns,
13399         ignore unknown specs.
13400         * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
13401         * tree.c (omp_clause_num_ops): Adjust TILE ops.
13402         * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
13404 2017-02-09  Gerald Pfeifer  <gerald@pfeifer.com>
13406         * configure.ac (ACX_BUGURL): Update.
13407         * configure: Regenerate.
13409 2017-02-09  Richard Biener  <rguenther@suse.de>
13411         PR tree-optimization/69823
13412         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
13413         Properly enumerate all BBs in the region.  Use auto_vec/auto_bitmap.
13415 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
13417         * config/arc/arc-c.def: Add __NPS400__ definition.
13418         * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
13419         (TARGET_NPS400): Define.
13421 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
13423         * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
13424         file.
13425         (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
13426         pointer, arch_info.
13427         (arc_cpu_types): Fill the arch_info field with a pointer into the
13428         arc_arch_types table.
13429         (arc_selected_cpu): Declare.
13430         * config/arc/arc.c (arc_selected_cpu): Make global.
13431         (arc_selected_arch): Delete.
13432         (arc_base_cpu): Delete.
13433         (arc_override_options): Remove references to deleted variables,
13434         update access to arch information.
13435         (ARC_OPT): Update access to arch information.
13436         (ARC_OPTX): Likewise.
13437         * config/arc/arc.h (arc_base_cpu): Remove declaration.
13438         (TARGET_ARC600): Update access to arch information.
13439         (TARGET_ARC601): Likewise.
13440         (TARGET_ARC700): Likewise.
13441         (TARGET_EM): Likewise.
13442         (TARGET_HS): Likewise.
13443         * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
13444         information.
13446 2017-02-08  Pat Haugen  <pthaugen@us.ibm.com>
13448         PR target/78604
13449         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
13450         condition/operands for integer GE/LE/GEU/LEU operations.
13452 2017-02-08  Segher Boessenkool  <segher@kernel.crashing.org>
13454         PR translation/79397
13455         * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
13456         of AltiVec.
13458 2017-02-08  Martin Jambor  <mjambor@suse.cz>
13460         PR ipa/79375
13461         * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
13462         whether allocation happened.
13463         (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
13464         nothing was allocated.
13466 2017-02-08  Jakub Jelinek  <jakub@redhat.com>
13468         PR tree-optimization/79408
13469         * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
13470         constant, but SSA_NAME with a known integer range, use the minimum
13471         of that range instead of op1 to determine if modulo can be replaced
13472         with its first operand.
13474 2016-02-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13476         * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
13478 2017-02-08  Richard Biener  <rguenther@suse.de>
13480         PR tree-optimization/71824
13481         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
13482         Check all loops contained in the merged region.
13484 2017-02-07  Andrew Pinski  <apinski@cavium.com>
13486         * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
13488 2017-02-07  Andrew Pinski  <apinski@cavium.com>
13490         * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
13491         (thunderxt88): Likewise.
13492         (thunderxt81): Disable LSE and change v8.1 to v8.
13493         (thunderxt83): Likewise.
13495 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
13496             Richard Biener  <rguenther@suse.de>
13498         PR middle-end/79399
13499         * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
13500         type from int to size_t.
13501         * ira-costs.c (struct_costs_size): Change type from int to size_t.
13503 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
13505         PR rtl-optimization/79386
13506         * cprop.c (bypass_conditional_jumps): Initialize
13507         bypass_last_basic_block already before splitting bbs after
13508         unconditional traps...
13509         (bypass_conditional_jumps): ... rather than here.
13511         PR target/79299
13512         * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
13513         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
13514         *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
13515         fix -masm=intel patterns.
13517 2017-02-07  Richard Biener  <rguenther@suse.de>
13519         PR tree-optimization/79256
13520         PR middle-end/79278
13521         * builtins.c (get_object_alignment_2): Use min_align_of_type
13522         to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
13523         and ADJUST_FIELD_ALIGN.
13525         * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
13526         type parameter.
13527         * doc/tm.texi: Regenerate.
13528         * stor-layout.c (layout_decl): Adjust.
13529         (update_alignment_for_field): Likewise.
13530         (place_field): Likewise.
13531         (min_align_of_type): Likewise.
13532         * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
13533         * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
13534         * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
13535         * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
13536         * config/frv/frv.c (frv_adjust_field_align): Likewise.
13537         * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
13538         * config/i386/i386.c (x86_field_alignment): Likewise.
13539         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
13540         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
13541         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
13542         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
13543         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
13544         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
13545          Likewise.
13547         Revert
13548         2017-01-30  Richard Biener  <rguenther@suse.de>
13550         PR tree-optimization/79256
13551         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
13552         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
13553         alignment on TYPE.
13555 2017-02-07  Toma Tabacu  <toma.tabacu@imgtec.com>
13557         * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
13558         argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
13559         builtins to SImode and emit a zero-extend, if necessary.
13561 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
13563         * docs/invoke.texi (RISC-V Options): Alphabetize.
13565 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
13567         * doc/invoke.texi (RISC-V Options): Use two spaces to separate
13568         options.
13570 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
13572         * config/riscv/riscv.c: New file.
13573         * gcc/common/config/riscv/riscv-common.c: Likewise.
13574         * config.gcc: Likewise.
13575         * config/riscv/constraints.md: Likewise.
13576         * config/riscv/elf.h: Likewise.
13577         * config/riscv/generic.md: Likewise.
13578         * config/riscv/linux.h: Likewise.
13579         * config/riscv/multilib-generator: Likewise.
13580         * config/riscv/peephole.md: Likewise.
13581         * config/riscv/pic.md: Likewise.
13582         * config/riscv/predicates.md: Likewise.
13583         * config/riscv/riscv-builtins.c: Likewise.
13584         * config/riscv/riscv-c.c: Likewise.
13585         * config/riscv/riscv-ftypes.def: Likewise.
13586         * config/riscv/riscv-modes.def: Likewise.
13587         * config/riscv/riscv-opts.h: Likewise.
13588         * config/riscv/riscv-protos.h: Likewise.
13589         * config/riscv/riscv.h: Likewise.
13590         * config/riscv/riscv.md: Likewise.
13591         * config/riscv/riscv.opt: Likewise.
13592         * config/riscv/sync.md: Likewise.
13593         * config/riscv/t-elf-multilib: Likewise.
13594         * config/riscv/t-linux: Likewise.
13595         * config/riscv/t-linux-multilib: Likewise.
13596         * config/riscv/t-riscv: Likewise.
13597         * configure.ac: Likewise.
13598         * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
13599         Waterman as RISC-V maintainers.
13600         * doc/install.texi: Add RISC-V entries.
13601         * doc/invoke.texi: Add RISC-V options section.
13602         * doc/md.texi: Add RISC-V constraints section.
13603         * configure: Regenerated.
13605 2017-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
13607         PR target/66144
13608         * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
13609         false values to be constant vectors with all 0 or all 1 bits set.
13610         (vcondu<mode><mode>): Likewise.
13611         * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
13612         predicate.
13613         (fpmask_comparison_operator): Update comment.
13614         (vecint_comparison_operator): New predicate.
13615         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
13616         vector conditionals when the true and false values are constant
13617         vectors with all 0 bits or all 1 bits set.
13619 2017-02-06  Martin Sebor  <msebor@redhat.com>
13621         PR  tree-optimization/79376
13622         * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
13624 2017-02-06  Uros Bizjak  <ubizjak@gmail.com>
13626         * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
13627         explicit subreg RTX with operand 1.  Use VECTOR_MODE_P predicate
13628         to simplify split condition.
13630 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
13632         * omp-expand.c (oxpand_omp_atomic_fetch_op,
13633         expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
13634         false.
13636 2017-02-06  Segher Boessenkool  <segher@kernel.crashing.org>
13638         PR rtl-optimization/68664
13639         * target.def (can_speculate_insn): New hook.
13640         * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
13641         * doc/tm.texi: Regenerate.
13642         * sched-rgn.c (can_schedule_ready_p): Use the new hook.
13643         * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
13644         (rs6000_sched_can_speculate_insn): New function.
13646 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
13648         PR tree-optimization/79284
13649         * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
13650         * tree-vect-stmts.c (vect_get_vec_def_for_operand,
13651         vectorizable_mask_load_store, vectorizable_operation,
13652         vect_is_simple_cond, get_same_sized_vectype): Use it instead
13653         of comparing TREE_CODE of a type against BOOLEAN_TYPE.
13654         * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
13655         vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
13656         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
13657         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
13658         Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
13659         is_gimple_assign (stmt).  Replace another such test with
13660         is_gimple_assign (stmt).
13662 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
13664         PR target/78883
13665         * config/avr/avr.c (rtl-iter.h): Include it.
13666         (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
13667         (avr_legitimate_combined_insn): ...and implementation.
13669 2017-02-06  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13671         * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
13672         * config/s390/s390.c (s390_const_operand_ok)
13673         (s390_canonicalize_comparison, s390_extract_part)
13674         (s390_single_part, s390_contiguous_bitmask_nowrap_p)
13675         (s390_contiguous_bitmask_p, s390_rtx_costs)
13676         (legitimize_pic_address): Likewise.
13677         * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
13678         * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
13679         ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
13680         ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
13681         * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
13683 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
13685         * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
13686         REGNO($0) == REGNO($1).
13688 2017-02-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13690         * config/s390/linux.h(SIZE_TYPE): Add comment.
13692 2017-02-06  Julian Brown  <julian@codesourcery.com>
13693             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
13694             Virendra Pathak  <virendra.pathak@broadcom.com>
13696         * config/aarch64/aarch64-cores.def: Change the scheduler
13697         to Thunderx2t99.
13698         * config/aarch64/aarch64.md: Include thunderx2t99.md.
13699         * config/aarch64/thunderx2t99.md: New file.
13701 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
13703         * doc/standards.texi (Go Language): Update link to language
13704         standard.
13706 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
13708         * tree-eh.c (lower_resx): Sanitize profile.
13709         (cleanup_empty_eh_move_lp): Likewise.
13711 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
13713         PR tree-ssa/79347
13714         * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
13715         ELSE_PROB.
13716         * cfgloopmanip.h (loop_version): Update prototype.
13717         * modulo-sched.c (sms_schedule): Update call of loop_version.
13718         * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
13719         * tree-parloops.c (gen_parallel_loop): Likewise.
13720         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
13721         * tree-ssa-loop-split.c (split_loop): Likewise.
13722         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
13723         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
13725 2017-02-05  Martin Liska  <mliska@suse.cz>
13727         PR bootstrap/78985
13728         * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
13729         variable to NULL.
13730         (print_operand_address): Initialize a struct to zero.
13732 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
13734         * doc/contrib.texi (Contributors): Refer to Hans Boehm's
13735         garbage collector only in textual form.
13737 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
13739         * doc/extend.texi (x86 specific memory model extensions for
13740         transactional memory): Simplify a phrase.
13742 2017-02-05  Eric Botcazou  <ebotcazou@adacore.com>
13744         PR target/79353
13745         * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
13746         'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
13747         (atomic_storedi_1): Likewise.
13749 2017-02-04  Jakub Jelinek  <jakub@redhat.com>
13751         PR tree-optimization/79338
13752         * tree-parloops.c (gather_scalar_reductions): Don't call
13753         vect_analyze_loop_form for loop->inner before destroying loop's
13754         loop_vinfo.
13756 2017-02-03  Martin Sebor  <msebor@redhat.com>
13758         PR tree-optimization/79327
13759         * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
13760         when precision has resulted in leading zeros.
13761         (format_integer): Adjust the likely counter to assume an unknown
13762         argument that may be zero is non-zero.
13764 2017-02-03  Jason Merrill  <jason@redhat.com>
13766         PR c++/78689
13767         * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
13768         avoid copying non-taken branch.
13770 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
13772         PR tree-optimization/79340
13773         * tree-vect-loop.c (vectorizable_reduction): Release
13774         vec_defs elements after safe_splicing them into other vectors.
13775         Formatting fixes.
13777         PR tree-optimization/79327
13778         * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
13779         true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
13780         dirtype.
13781         (format_integer): Use wide_int_to_tree instead of build_int_cst
13782         + to_?hwi.  If argmin is NULL, just set argmin and argmax to
13783         TYPE_{MIN,MAX}_VALUE of argtype.  Simplify and fix computation
13784         of shortest and longest sequence.
13786 2017-02-03  Uros Bizjak  <ubizjak@gmail.com>
13788         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
13789         Use pextrd for TARGET_SSE4_1 when creating scalar copy.
13791 2017-02-03  Walter Lee  <walt@tilera.com>
13793         PR target/78862
13794         * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
13795         after initial stackframe link reg save.
13796         * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
13798 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
13800         PR target/79354
13801         * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
13802         wu for stxssp alternative.
13804 2017-02-03  Martin Sebor  <msebor@redhat.com>
13806         PR tree-optimization/79352
13807         * gimple-fold.c (get_range_strlen): Add argument.
13808         (get_range_strlen): Change return type to bool.
13809         (get_maxval_strlen): Pass in a dummy argument.
13810         * gimple-fold.h (get_range_strlen): Change return type to bool.
13811         * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
13812         * tree.h (array_at_struct_end_p): Add argument.
13813         * tree.c (array_at_struct_end_p): Handle it.
13815 2017-02-03  Martin Liska  <mliska@suse.cz>
13817         PR lto/66295
13818         * multiple_target.c (create_dispatcher_calls): Redirect edge
13819         from a caller of a dispatcher.
13820         (expand_target_clones): Make the clones local.
13821         (ipa_target_clone): Do both target clones and resolvers.
13822         (ipa_dispatcher_calls): Remove the pass.
13823         (pass_dispatcher_calls::gate): Likewise.
13824         (make_pass_dispatcher_calls): Likewise.
13825         * passes.def (pass_target_clone): Put as very first IPA early
13826         pass.
13828 2017-02-03  Martin Liska  <mliska@suse.cz>
13830         * symtab.c (symtab_node::binds_to_current_def_p): Bail out
13831         in case of a function with ifunc attribute.
13833 2017-02-03  Martin Liska  <mliska@suse.cz>
13835         * cgraph.c (cgraph_node::dump): Dump function version info.
13836         * symtab.c (symtab_node::dump_base): Add missing new line.
13838 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
13840         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
13841         (ifcombine_ifandif): Use it.
13843 2017-02-03  Martin Liska  <mliska@suse.cz>
13845         * doc/invoke.texi: Document default value for
13846         use-after-scope-direct-emission-threshold.
13848 2017-02-03  Martin Liska  <mliska@suse.cz>
13850         PR tree-optimization/79339
13851         * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
13852         (format_floating): Likewise.
13854 2017-02-03  Martin Liska  <mliska@suse.cz>
13856         PR ipa/79337
13857         * ipa-prop.c (ipa_node_params_t::insert): Remove current
13858         implementation.
13859         (ipa_node_params_t::remove): Likewise.
13860         * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
13861         initialization from removed ipa_node_params_t::insert.
13862         (ipa_node_params::~ipa_node_params): Move from removed
13863         ipa_node_params_t::release.
13864         * symbol-summary.h (symbol_summary::m_released): New member.
13865         Do not release a summary twice.  Do not allow to call finalizer
13866         for types of a summary that live in GGC memory.
13868 2017-02-02  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
13870         * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
13871         cmp_branch fusion.
13873 2017-02-02  Martin Sebor  <msebor@redhat.com>
13875         PR middle-end/79275
13876         * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
13877         (format_string): Tighten up the range of output for non-constant
13878         strings and correct the expected range for wide non-constant strings.
13880 2017-02-02  Martin Sebor  <msebor@redhat.com>
13882         * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
13884         PR middle-end/32003
13885         * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
13886         index.
13887         (-fdump-tree-@var): Add to index and document how to come up
13888         with pass-specific option and dump file names.
13889         (-fdump-passes): Clarify where to look for output.
13891 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
13893         PR middle-end/77445
13894         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
13895         statistics of the analyzed path; allow threading for speed when
13896         any of BBs along the path are optimized for speed.
13898 2017-02-02  Eric Botcazou  <ebotcazou@adacore.com>
13900         PR middle-end/78468
13901         * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
13902         settings of the virtual registers.
13904         Revert again
13905         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13907         * explow.c (get_dynamic_stack_size): Take known alignment of stack
13908         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
13909         needed.
13911 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13913         * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
13914         ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
13916 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13918         * config/s390/s390.md: Add missing comments with the expanded
13919         mnemonics.
13920         * config/s390/vector.md: Likewise.
13921         * config/s390/vx-builtins.md: Likewise.
13923 2017-02-02  Jakub Jelinek  <jakub@redhat.com>
13925         PR target/79197
13926         * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
13927         (fixuns_trunc<mode>di2): ... this, remove previous expander.  Put all
13928         conditions on a single line.
13930 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13932         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
13933         __S390_VX__ to __VX__.
13935 2017-02-01  Andrew Pinski  <apinski@cavium.com>
13937         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
13938         stmt_info to record_stmt_cost.
13939         (vect_get_known_peeling_cost): Pass stmt_info if known to
13940         record_stmt_cost.
13941         * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
13942         cpu_vector_cost field into
13943         scalar_int_stmt_cost and scalar_fp_stmt_cost.  Split vec_stmt_cost
13944         field into vec_int_stmt_cost and vec_fp_stmt_cost.
13945         * config/aarch64/aarch64.c (generic_vector_cost): Update for the
13946         splitting of scalar_stmt_cost and vec_stmt_cost.
13947         (thunderx_vector_cost): Likewise.
13948         (cortexa57_vector_cost): LIkewise.
13949         (exynosm1_vector_cost): Likewise.
13950         (xgene1_vector_cost): Likewise.
13951         (thunderx2t99_vector_cost): Improve after the splitting of the two
13952         fields.
13953         (aarch64_builtin_vectorization_cost): Update for the splitting of
13954         scalar_stmt_cost and vec_stmt_cost.
13956 2017-02-01  Torvald Riegel  <triegel@redhat.com>
13957             Richard Henderson  <rth@redhat.com>
13959         * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
13960         conditional on existance of a fast atomic load.
13961         * optabs-query.c (can_atomic_load_p): New function.
13962         * optabs-query.h (can_atomic_load_p): Declare it.
13963         * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
13964         no fast atomic load is available for the particular size of access.
13965         (expand_atomic_compare_and_swap): Likewise.
13966         (expand_atomic_load): Likewise.
13967         (expand_atomic_store): Likewise.
13968         (expand_atomic_fetch_op): Likewise.
13969         * testsuite/lib/target-supports.exp
13970         (check_effective_target_sync_int_128): Remove x86 because it provides
13971         no fast atomic load.
13972         (check_effective_target_sync_int_128_runtime): Likewise.
13974 2017-02-01  Richard Biener  <rguenther@suse.de>
13976         * graphite.c: Include tree-vectorizer.h for find_loop_location.
13977         (graphite_transform_loops): Provide opt-info for optimized nests.
13978         * tree-parloop.c (parallelize_loops): Provide opt-info for
13979         parallelized loops.
13981 2017-02-01  Richard Biener  <rguenther@suse.de>
13983         PR middle-end/79315
13984         * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
13985         was not set before.
13987 2017-02-01  Richard Biener  <rguenther@suse.de>
13989         PR tree-optimization/71824
13990         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
13991         Verify the loops are valid in the merged SESE region.
13992         (scop_detection::can_represent_loop_1): Check analyzing the
13993         evolution of the number of iterations in the region succeeds.
13995 2017-01-31  Ian Lance Taylor  <iant@golang.org>
13997         * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
13998         REG_ARGS_SIZE note to 32-bit push insns and call insn.
14000 2017-01-31  David Malcolm  <dmalcolm@redhat.com>
14002         PR preprocessor/79210
14003         * input.c (get_substring_ranges_for_loc): Replace line_width
14004         assertion with error-handling.
14006 2017-01-31  Richard Biener  <rguenther@suse.de>
14008         PR tree-optimization/77318
14009         * graphite-sese-to-poly.c (extract_affine): Fix assert.
14010         (create_pw_aff_from_tree): Take loop parameter.
14011         (add_condition_to_pbb): Pass loop of the condition to
14012         create_pw_aff_from_tree.
14014 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
14016         * config/s390/s390.c (s390_asan_shadow_offset): New function.
14017         (TARGET_ASAN_SHADOW_OFFSET): Redefine.
14019 2017-01-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
14021         PR target/78597
14022         PR target/79038
14023         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
14024         no longer used.
14025         (convert_int_to_float128): Likewise.
14026         * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
14027         (convert_int_to_float128): Likewise.
14028         * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
14029         (UNSPEC_IEEE128_CONVERT): Likewise.
14030         (floatsi<mode>2, FLOAT128 iterator): Bypass calling
14031         rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
14032         Use local variables for IBM extended format.
14033         (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
14034         (fix_trunc<mode>si2_fprs): Likewise.
14035         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
14036         (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
14037         (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
14038         to know that we can now have integers of all sizes in vector
14039         registers.
14040         (fix<uns>_<mode>di2_hw): Likewise.
14041         (float<uns>_<mode>si2_hw): Likewise.
14042         (fix_<mode>si2_hw): Likewise.
14043         (fixuns_<mode>si2_hw): Likewise.
14044         (float<uns>_<mode>di2_hw): Likewise.
14045         (float_<mode>di2_hw): Likewise.
14046         (float_<mode>si2_hw): Likewise.
14047         (floatuns_<mode>di2_hw): Likewise.
14048         (floatuns_<mode>si2_hw): Likewise.
14049         (xscvqp<su>wz_<mode>): Delete, no longer used.
14050         (xscvqp<su>dz_<mode>): Likewise.
14051         (xscv<su>dqp_<mode>): Likewise.
14052         (ieee128_mfvsrd_64bit): Likewise.
14053         (ieee128_mfvsrd_32bit): Likewise.
14054         (ieee128_mfvsrwz): Likewise.
14055         (ieee128_mtvsrw): Likewise.
14056         (ieee128_mtvsrd_64bit): Likewise.
14057         (ieee128_mtvsrd_32bit): Likewise.
14059 2017-01-31  Martin Liska  <mliska@suse.cz>
14061         PR ipa/79285
14062         * ipa-prop.c (ipa_free_all_node_params): Call release method
14063         instead of ~sumbol_summary to not to trigger double times
14064         dtor of hash_map.
14066 2017-01-31  Aldy Hernandez  <aldyh@redhat.com>
14068         PR tree-optimization/71691
14069         * bitmap.h (class auto_bitmap): New.
14070         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
14071         is_maybe_undefined instead of ssa_undefined_value_p.
14073 2017-01-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14075         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
14076         __S390_ARCH_LEVEL__ to __ARCH__.
14078 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
14080         PR tree-optimization/79267
14081         * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
14082         if should_remove_lhs_p is true.
14084 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
14086         PR debug/63238
14087         * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
14088         (add_alignment_attribute): New.
14089         (base_type_die): Add alignment attribute.
14090         (subrange_type_die): Likewise.
14091         (modified_type_die): Likewise.
14092         (gen_array_type_die): Likewise.
14093         (gen_descr_array_type_die: Likewise.
14094         (gen_enumeration_type_die): Likewise.
14095         (gen_subprogram_die): Likewise.
14096         (gen_variable_die): Likewise.
14097         (gen_field_die): Likewise.
14098         (gen_ptr_to_mbr_type_die): Likewise.
14099         (gen_struct_or_union_type_die): Likewise.
14100         (gen_subroutine_type_die): Likewise.
14101         (gen_typedef_die): Likewise.
14102         (base_type_cmp): Compare alignment attribute.
14104 2017-01-30  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
14106         PR target/79170
14107         * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
14108         (setb_unsigned) New pattern for setb with CCUNS.
14109         * config/rs6000/rs6000.c (expand_block_compare): Use a different
14110         subfc./subfe sequence to avoid overflow problems.  Generate a
14111         shorter sequence with cmpld/setb for power9.
14112         * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
14113         for generating subfc. instruction.
14114         (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
14115         now uses this instruction.
14117 2017-01-30  Ian Lance Taylor  <iant@google.com>
14119         PR debug/79289
14120         * dwarf2out.c (gen_type_die_with_usage): When picking a variant
14121         for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
14123 2017-01-30  Martin Sebor  <msebor@redhat.com>
14125         * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
14126         Move constant to the right of a relational operator.
14127         (get_mpfr_format_length, format_character, format_string): Ditto.
14128         (should_warn_p, maybe_warn): Same.
14130         * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
14132 2017-01-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
14134         PR lto/79061
14135         * asan.c (get_translation_unit_decl): Remove function.
14136         (asan_add_global): Force has_dynamic_init to zero in LTO mode.
14138 2017-01-30  Martin Liska  <mliska@suse.cz>
14140         PR gcov-profile/79259
14141         * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
14142         -fprofile-generate.
14144 2017-01-30  Martin Liska  <mliska@suse.cz>
14146         PR bootstrap/78985
14147         * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
14148         Initialize variables with NULL value.
14150 2017-01-30  Richard Earnshaw  <rearnsh@arm.com>
14152         PR target/79260
14153         * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
14154         tm_p_file.
14155         * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
14157 2017-01-30  Richard Biener  <rguenther@suse.de>
14159         PR tree-optimization/79276
14160         * tree-vrp.c (process_assert_insertions): Properly adjust common
14161         when removing a duplicate.
14163         * gcc.dg/torture/pr79276.c: New testcase.
14165 2017-01-30  Richard Biener  <rguenther@suse.de>
14167         PR tree-optimization/79256
14168         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
14169         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
14170         alignment on TYPE.
14171         * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
14173 2017-01-30  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14175         PR target/79240
14176         * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
14177         ("*r<noxa>sbg_<mode>_sll_bitmask")
14178         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
14179         ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
14180         Use contiguous_bitmask_nowrap_operand.
14182 2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14184         PR target/79268
14185         * config/rs6000/altivec.h (vec_xl): Revise #define.
14186         (vec_xst): Likewise.
14188 2017-01-27  Uros Bizjak  <ubizjak@gmail.com>
14190         * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
14192 2017-01-27  Bernd Schmidt  <bschmidt@redhat.com>
14194         PR rtl-optimization/79194
14195         * cprop.c (one_cprop_pass): Move deletion of code after unconditional
14196         traps before call to bypass_conditional_jumps.
14198 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
14200         PR tree-optimization/71374
14201         * lra-constraints.c (check_conflict_input_operands): New.
14202         (match_reload): Use it.
14204 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
14206         PR target/79131
14207         * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
14208         account to calculate conflict_set.
14210 2017-01-27  Bin Cheng  <bin.cheng@arm.com>
14212         PR rtl-optimization/78559
14213         * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
14214         other_insn in combine.
14216 2017-01-27  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
14218         * builtin-types.def: Use unsigned_char_type_node for BT_UINT8.  Use
14219         uint16_type_node for BT_UINT16.
14221 2017-01-27  David Malcolm  <dmalcolm@redhat.com>
14223         * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
14224         "RTL Tests" to menu.
14225         (GIMPLE Tests): New node.
14226         (RTL Tests): New node.
14228 2017-01-27  Richard Biener  <rguenther@suse.de>
14230         PR tree-optimization/79245
14231         * tree-loop-distribution.c (distribute_loop): Apply cost
14232         modeling also to detected patterns.
14234 2017-01-27  Richard Biener  <rguenther@suse.de>
14236         PR tree-optimization/71433
14237         * tree-vrp.c (register_new_assert_for): Revert earlier changes.
14238         (compare_assert_loc): New function.
14239         (process_assert_insertions): Sort and optimize assert locations
14240         to remove duplicates and push down identical assertions on
14241         edges to their destination block.
14243 2017-01-27  Richard Biener  <rguenther@suse.de>
14245         PR tree-optimization/79244
14246         * tree-vrp.c (remove_range_assertions): Forcefully propagate
14247         out SSA names even if abnormal.
14249 2017-01-27  Jakub Jelinek  <jakub@redhat.com>
14251         * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
14252         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
14253         instead of MPFR_RNDN.
14255 2017-01-27  Richard Earnshaw  <rearnsha@arm.com>
14257         PR target/79239
14258         * arm.c (arm_option_override): Don't call build_target_option_node
14259         until after doing all option overrides.
14260         (arm_valid_target_attribute_tree): Likewise.
14262 2017-01-27  Martin Liska  <mliska@suse.cz>
14264         * doc/invoke.texi (-fprofile-arcs): Document profiling support
14265         for {cd}tors and C++ {cd}tors.
14267 2017-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14269         * config/s390/s390.md ("*setmem_long_and")
14270         ("*setmem_long_and_31z"): Use zero_extend instead of and.
14272 2017-01-26  Martin Sebor  <msebor@redhat.com>
14274         * gimple-ssa-sprintf.c (format_floating): Simplify the computation
14275         of precision.
14277 2017-01-26  Martin Sebor  <msebor@redhat.com>
14279         * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
14280         HAVE_DFmode before using XFmode or DFmode.
14281         (parse_directive): Avoid using the z length modifier to avoid
14282         the ISO C++98 does not support the â€˜z’ gnu_printf length modifier.
14284         PR middle-end/78703
14285         * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
14286         to accept adjustment as an array.
14287         (get_int_range): New function.
14288         (struct directive): Make width and prec arrays.
14289         (directive::set_width, directive::set_precision): Call get_int_range.
14290         (format_integer, format_floating): Handle width and precision ranges.
14291         (format_string, parse_directive): Same.
14293 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
14295         PR debug/79129
14296         * dwarf2out.c (generate_skeleton_bottom_up): For children with
14297         comdat_type_p set, just clone them, but keep the children in the
14298         original DIE.
14300         PR debug/78835
14301         * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
14302         which have direct callers with -fvar-tracking-assignments enabled
14303         in the current TU.
14304         (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
14305         inside of type units.
14307 2017-01-26  Martin Sebor  <msebor@redhat.com>
14309         PR middle-end/78703
14310         * gimple-ssa-sprintf.c (struct result_range): Add likely and
14311         unlikely counters.
14312         (struct format_result): Replace number_chars, number_chars_min,
14313         and number_chars_max with a single member of struct result_range.
14314         Remove bounded.
14315         (format_result::operator+=): Adjust.
14316         (struct fmtresult): Remove bounded.  Handle likely and unlikely
14317         counters.
14318         (fmtresult::adjust_for_width_or_precision): New function.
14319         (fmtresult:type_max_digits): New function.
14320         (bytes_remaining): Handle likely and unlikely counters.
14321         (min_bytes_remaining): Remove.
14322         (format_percent): Simplify.
14323         (format_integer, format_floating): Set likely and unlikely counters.
14324         (get_string_length, format_character, format_string): Same.
14325         (format_plain, should_warn_p): New function.
14326         (maybe_warn): Call should_warn_p.  Update diagnostic messages
14327         and handle those for all directives, including plain strings.
14328         (format_directive): Handle likely and unlikely counters.
14329         Remove unnecessary quoting from diagnostics.  Add an informational
14330         note.
14331         (add_bytes): Remove.
14332         (pass_sprintf_length::compute_format_length): Simplify.
14333         (try_substitute_return_value): Handle likely and unlikely counters.
14335 2017-01-26  Carl Love  <cel@us.ibm.com>
14337         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
14338         bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
14340 2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>
14342         PR target/79131
14343         * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
14344         endianess for subregs into account.
14345         * lra-constraints.c (lra_constraints): Do risky transformations
14346         always on the first iteration.
14347         * lra-lives.c (check_pseudos_live_through_calls): Add arg
14348         last_call_used_reg_set.
14349         (process_bb_lives): Define and use last_call_used_reg_set.
14350         * lra.c (lra): Always continue after lra_constraints on the first
14351         iteration.
14353 2017-01-26  Kirill Yukhin  <kirill.yukhin@gmail.com>
14355         * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
14356         constant.
14357         * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
14359 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
14361         * config/i386/avx512fintrin.h (_ktest_mask16_u8,
14362         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
14363         * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
14364         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
14365         * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
14366         __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
14367         OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
14368         * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
14369         (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
14371 2017-01-26  Marek Polacek  <polacek@redhat.com>
14373         PR c/79199
14374         * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
14375         for the third operand.
14377 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
14379         PR middle-end/79236
14380         * omp-low.c (struct omp_context): Add simt_stmt field.
14381         (scan_omp_for): Return omp_context *.
14382         (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
14383         context to the _simt_ SIMD stmt.
14384         (lower_omp_for): For combined SIMD with sibling _simt_
14385         SIMD, make sure to use the same decls in _looptemp_
14386         clauses as in the sibling.
14388 2017-01-26  David Sherwood  <david.sherwood@arm.com>
14390         PR middle-end/79212
14391         * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
14392         all contexts.
14394 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
14396         PR target/70465
14397         * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
14398         emit fld b; fld a; if possible.
14400         * brig-builtins.def: Update copyright years.
14401         * config/arm/arm_acle_builtins.def: Update copyright years.
14403 2017-01-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
14405         PR target/79179
14406         * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
14407         constraint instead of o for the stxsd instruction.
14409 2017-01-25  Carl Love  <cel@us.ibm.com>
14411         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
14412         of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
14414 2017-01-25  Jonathan Wakely  <jwakely@redhat.com>
14416         * doc/invoke.texi (C++ Dialect Options): Fix typo.
14418 2017-01-25  Richard Biener  <rguenther@suse.de>
14420         PR tree-optimization/69264
14421         * target.def (vector_alignment_reachable): Improve documentation.
14422         * doc/tm.texi: Regenerate.
14423         * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
14424         and add a comment.
14425         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
14426         earlier changes with respect to TYPE_USER_ALIGN.
14427         (vector_alignment_reachable_p): Likewise.  Improve dumping.
14429 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14431         PR target/79145
14432         * config/arm/arm.md (xordi3): Force constant operand into a register
14433         for TARGET_IWMMXT.
14435 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14437         * doc/invoke.texi (-fstore-merging): Correct default optimization
14438         levels at which it is enabled.
14439         (-O): Move -fstore-merging from list to...
14440         (-O2): ... Here.
14442 2017-01-25  Richard Biener  <rguenther@suse.de>
14444         PR debug/78363
14445         * omp-expand.c: Include debug.h.
14446         (expand_omp_taskreg): Make sure to generate early debug before
14447         outlining anything from a function.
14448         (expand_omp_target): Likewise.
14449         (grid_expand_target_grid_body): Likewise.
14451 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
14453         PR lto/79061
14454         * asan.c (get_translation_unit_decl): New function.
14455         (asan_add_global): Extract modules file name from globals
14456         TRANSLATION_UNIT_DECL name.
14458 2017-01-24  Eric Botcazou  <ebotcazou@adacore.com>
14460         PR target/77439
14461         * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
14462         for long calls with APCS frame and VFP.
14464 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
14466         * cfg.c (original_copy_tables_initialized_p): New function.
14467         * cfg.h (original_copy_tables_initialized_p): New decl.
14468         * cfgrtl.c (relink_block_chain): Guard the call to
14469         free_original_copy_tables with a call to
14470         original_copy_tables_initialized_p.
14471         * cgraph.h (symtab_node::native_rtl_p): New decl.
14472         * cgraphunit.c (symtab_node::native_rtl_p): New function.
14473         (symtab_node::needed_p): Don't assert for early assembly output
14474         for __RTL functions.
14475         (cgraph_node::finalize_function): Set "force_output" for __RTL
14476         functions.
14477         (cgraph_node::analyze): Bail out early for __RTL functions.
14478         (analyze_functions): Update assertion to support __RTL functions.
14479         (cgraph_node::expand): Bail out early for __RTL functions.
14480         * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
14481         __RTL functions.
14482         * function.h (struct function): Update comment for field
14483         "pass_startwith".
14484         * gimple-expr.c: Include "tree-pass.h".
14485         (gimple_has_body_p): Return false for __RTL functions.
14486         * Makefile.in (OBJS): Add run-rtl-passes.o.
14487         * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
14488         accessor.
14489         (gcc::pass_manager::get_clean_slate): New accessor.
14490         * passes.c: Include "insn-addr.h".
14491         (should_skip_pass_p): Add logging.  Update logic for running
14492         "expand" to be compatible with both __GIMPLE and __RTL.  Guard
14493         property-provider override so it is only done for gimple passes.
14494         Don't skip dfinit.
14495         (skip_pass): New function.
14496         (execute_one_pass): Call skip_pass when skipping passes.
14497         * read-md.c (md_reader::read_char): Support filtering
14498         the input to a subset of line numbers.
14499         (md_reader::md_reader): Initialize fields
14500         m_first_line and m_last_line.
14501         (md_reader::read_file_fragment): New function.
14502         * read-md.h (md_reader::read_file_fragment): New decl.
14503         (md_reader::m_first_line): New field.
14504         (md_reader::m_last_line): New field.
14505         * read-rtl-function.c (function_reader::create_function): Only
14506         create cfun if it doesn't already exist.  Set PROP_rtl on cfun's
14507         curr_properties.  Set DECL_INITIAL to a dummy block.
14508         (read_rtl_function_body_from_file_range): New function.
14509         * read-rtl-function.h (read_rtl_function_body_from_file_range):
14510         New decl.
14511         * run-rtl-passes.c: New file.
14512         * run-rtl-passes.h: New file.
14514 2017-01-24  Jeff Law  <law@redhat.com>
14516         * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
14517         buffer size.
14519 2017-01-24  Bin Cheng  <bin.cheng@arm.com>
14521         PR tree-optimization/79159
14522         * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
14523         (record_nonwrapping_iv): Improve boundary using above function if no
14524         value range information.
14526 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
14527             Martin Jambor  <mjambor@suse.cz>
14529         * brig-builtins.def: New file.
14530         * builtins.def (DEF_HSAIL_BUILTIN): New macro.
14531         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
14532         (DEF_HSAIL_SAT_BUILTIN): Likewise.
14533         (DEF_HSAIL_INTR_BUILTIN): Likewise.
14534         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
14535         * builtin-types.def (BT_INT8): New.
14536         (BT_INT16): Likewise.
14537         (BT_UINT8): Likewise.
14538         (BT_UINT16): Likewise.
14539         (BT_FN_ULONG): Likewise.
14540         (BT_FN_UINT_INT): Likewise.
14541         (BT_FN_UINT_ULONG): Likewise.
14542         (BT_FN_UINT_LONG): Likewise.
14543         (BT_FN_UINT_PTR): Likewise.
14544         (BT_FN_ULONG_PTR): Likewise.
14545         (BT_FN_INT8_FLOAT): Likewise.
14546         (BT_FN_INT16_FLOAT): Likewise.
14547         (BT_FN_UINT32_FLOAT): Likewise.
14548         (BT_FN_UINT16_FLOAT): Likewise.
14549         (BT_FN_UINT8_FLOAT): Likewise.
14550         (BT_FN_UINT64_FLOAT): Likewise.
14551         (BT_FN_UINT16_UINT32): Likewise.
14552         (BT_FN_UINT32_UINT16): Likewise.
14553         (BT_FN_UINT16_UINT16_UINT16): Likewise.
14554         (BT_FN_INT_PTR_INT): Likewise.
14555         (BT_FN_UINT_PTR_UINT): Likewise.
14556         (BT_FN_LONG_PTR_LONG): Likewise.
14557         (BT_FN_ULONG_PTR_ULONG): Likewise.
14558         (BT_FN_VOID_UINT64_UINT64): Likewise.
14559         (BT_FN_UINT8_UINT8_UINT8): Likewise.
14560         (BT_FN_INT8_INT8_INT8): Likewise.
14561         (BT_FN_INT16_INT16_INT16): Likewise.
14562         (BT_FN_INT_INT_INT): Likewise.
14563         (BT_FN_UINT_FLOAT_UINT): Likewise.
14564         (BT_FN_FLOAT_UINT_UINT): Likewise.
14565         (BT_FN_ULONG_UINT_UINT): Likewise.
14566         (BT_FN_ULONG_UINT_PTR): Likewise.
14567         (BT_FN_ULONG_ULONG_ULONG): Likewise.
14568         (BT_FN_UINT_UINT_UINT): Likewise.
14569         (BT_FN_VOID_UINT_PTR): Likewise.
14570         (BT_FN_UINT_UINT_PTR: Likewise.
14571         (BT_FN_UINT32_UINT64_PTR): Likewise.
14572         (BT_FN_INT_INT_UINT_UINT): Likewise.
14573         (BT_FN_UINT_UINT_UINT_UINT): Likewise.
14574         (BT_FN_UINT_UINT_UINT_PTR): Likewise.
14575         (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
14576         (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
14577         (BT_FN_LONG_LONG_UINT_UINT): Likewise.
14578         (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
14579         (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
14580         (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
14581         (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
14582         (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
14583         (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
14584         * doc/frontends.texi: List BRIG FE.
14585         * doc/install.texi (Testing): Add BRIG tesring requirements.
14586         * doc/invoke.texi (Overall Options): Mention BRIG.
14587         * doc/standards.texi (Standards): Doucment BRIG HSA version.
14589 2017-01-24  Richard Biener  <rguenther@suse.de>
14591         PR translation/79208
14592         * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
14594 2017-01-24  Martin Jambor  <mjambor@suse.cz>
14596         PR bootstrap/79198
14597         * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
14598         * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
14599         and known_contexts.
14601 2017-01-24  Aldy Hernandez  <aldyh@redhat.com>
14603         PR middle-end/79123
14604         * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
14605         casts from signed to unsigned really don't have a range.
14607 2017-01-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
14609         * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
14610         GMP_RNDx for compatiblity.
14612 2017-01-24  Martin Liska  <mliska@suse.cz>
14614         PR bootstrap/79132
14615         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
14616         that would prevent us to call alloca with -1 as argument.
14618 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
14620         * dwarf2out.c (output_compilation_unit_header, output_file_names):
14621         Avoid -Wformat-security warning.
14623 2017-01-23  Andrew Pinski  <apinski@cavium.com>
14625         * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
14626         cost table.
14628 2017-01-23  Martin Sebor  <msebor@redhat.com>
14630         PR middle-end/78703
14631         * gimple-ssa-sprintf.c (warn_level): New global.
14632         (format_integer): Use it here and throughout the rest of the file.
14633         Use the same switch to compute sign as base.
14634         (maybe_warn): New function.
14635         (format_directive): Factor out warnings into maybe_warn.
14636         Add debugging output.  Use warn_level.
14637         (add_bytes): Use warn_level.
14638         (pass_sprintf_length::compute_format_length): Add debugging output.
14639         (try_substitute_return_value): Same.
14640         (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
14642         PR middle-end/78703
14643         * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
14644         (struct fmtresult, format_integer, format_floating): Adjust.
14645         (fmtresult::fmtresult): Set max correctly in two argument ctor.
14646         (get_string_length, format_string,format_directive): Same.
14647         (pass_sprintf_length::compute_format_length): Same.
14648         (try_substitute_return_value): Simplify slightly.
14650         PR middle-end/78703
14651         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
14652         (fmtresult::operator+=): Outlined.
14653         (struct fmtresult): Add ctors.
14654         (struct conversion_spec): Rename...
14655         (struct directive): ...to this.  Add and remove data members.
14656         (directive::set_width, directive::set_precision): New functions.
14657         (format_percent): Use fmtresult ctor.
14658         (get_width_and_precision): Remove.
14659         (format_integer): Make naming changes.  Avoid computing width and
14660         precision.
14661         (format_floating): Same.  Adjust indentation.
14662         (format_character, format_none): New functions.
14663         (format_string): Moved character handling to format_character.
14664         (format_directive): Remove arguments, change return type.
14665         (parse_directive): New function.
14666         (pass_sprintf_length::compute_format_length): Move directive
14667         parsing to parse_directive.
14669 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
14671         * tree.h (assign_assembler_name_if_neeeded): Rename to ...
14672         (assign_assembler_name_if_needed): ... this.
14673         * tree.c (assign_assembler_name_if_neeeded): Rename to ...
14674         (assign_assembler_name_if_needed): ... this.
14675         (free_lang_data_in_cgraph): Adjust callers.
14676         * cgraphunit.c (cgraph_node::analyze): Likewise.
14677         * omp-expand.c (expand_omp_taskreg, expand_omp_target):
14678         Likewise.
14680 2017-01-23  Richard Biener  <rguenther@suse.de>
14682         PR tree-optimization/79088
14683         PR tree-optimization/79188
14684         * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
14685         resetting loop bounds after last path deletion.  Reset loop
14686         bounds of the target loop, make code match the comments.
14687         * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
14688         Make sure loops need no fixups.
14690 2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
14692         * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
14693         exponent support with double type for first argument.
14694         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
14695         type returned by __builtin_vec_extract_sig,
14696         __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
14697         functions from "vector int" to "vector unsigned int" or from
14698         "vector long long int" to "vector unsigned long long int".
14699         Changed type returned by __builtin_vec_extract_exp,
14700         __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
14701         functions from "vector int" to "vector unsigned int" or from
14702         "vector long long int" to "vector unsigned long long int".
14703         Changed return type of __builtin_vec_test_data_class,
14704         __builtin_vec_test_data_class_sp, and
14705         __builtin_vec_test_data_class_dp from "vector int" to
14706         "vector bool int" or from "vector long long int" to "vector bool
14707         long long int" and changed second argument type from "unsigned
14708         int" to "int".  Added new overloaded function forms "vector float
14709         __builtin_vec_insert_exp (vector float, vector unsigned int)" and
14710         "vector float __builtin_vec_insert_exp_sp (vector float, vector
14711         unsigned int)" and "vector double __builtin_vec_insert_exp (vector
14712         double, vector unsigned long long int)" and "vector double
14713         __builtin_vec_insert_exp_dp (vector double, vector unsigned long
14714         long int)".  Changed return type of
14715         __builtin_scalar_test_data_class and
14716         __builtin_scalar_test_data_class_sp and
14717         __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
14718         int" and changed second argument from "unsigned int" to "int".
14719         Changed type returned by __builtin_scalar_test_neg,
14720         __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
14721         from "int" to "bool int".  Added new overloaded function form
14722         "double __builtin_scalar_insert_exp (double, unsigned long long int)".
14723         * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
14724         exponent double-precision with floating point first argument.
14725         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
14726         documentation of scalar_test_data_class, scalar_test_neg,
14727         scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
14728         vector_extract_exp, vec_extract_sig, vec_insert_exp, and
14729         vec_test_data_class built-in functions to reflect refinements in
14730         their type signatures.
14732 2017-01-23  Andreas Tobler  <andreast@gcc.gnu.org>
14734         * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
14735         size of buf.
14736         (aarch64_elf_asm_destructor): Likewise.
14738 2017-01-23  Bernd Schmidt  <bschmidt@redhat.com>
14740         PR rtl-optimization/78634
14741         * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
14742         (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
14743         * ifcvt.c (noce_try_cmove): Add missing cost check.
14745         PR rtl-optimization/71724
14746         * combine.c (if_then_else_cond): Look for situations where it is
14747         beneficial to undo the work of one of the recursive calls.
14749 2017-01-23  Bin Cheng  <bin.cheng@arm.com>
14751         PR tree-optimization/70754
14752         * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
14753         (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE.  Insert
14754         combined stmt before it if not NULL.
14755         (combine_chains): Process refs reversely and compute dominance point
14756         for root ref.
14758 2017-01-23  Martin Liska  <mliska@suse.cz>
14760         PR tree-optimization/79196
14761         * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
14762         (fold_strstr_to_strncmp): ... this.  Fold the pattern to strncmp
14763         instead of memcmp.
14764         (strlen_optimize_stmt): Call the renamed function.
14766 2017-01-23  Michael Matz  <matz@suse.de>
14768         PR tree-optimization/78384
14769         * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
14771 2017-01-23  Richard Biener  <rguenther@suse.de>
14773         PR tree-optimization/79186
14774         * tree-vrp.c (register_new_assert_for): Make sure we've seen
14775         both incoming edges before moving an assert.
14777 2017-01-23  Martin Jambor  <mjambor@suse.cz>
14779         * ipa-prop.c (load_from_param_1): Removed.
14780         (load_from_unmodified_param): Bits from load_from_param_1 put back
14781         here.
14782         (load_from_param): Removed.
14783         (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
14784         with stmt.  Reverted back to use of load_from_unmodified_param.
14786 2017-01-23  Martin Jambor  <mjambor@suse.cz>
14788         PR ipa/79108
14789         * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
14790         (ipa_node_params): Annotate with GTY((for_user)).  Make descriptors
14791         field a pointer to garbage collected vector, mark lattices and
14792         ipcp_orig_node with GTY((skip)).
14793         (ipa_get_param_count): Adjust to descriptors being a pointer.
14794         (ipa_get_param): Likewise.
14795         (ipa_get_type): Likewise.
14796         (ipa_get_param_move_cost): Likewise.
14797         (ipa_set_param_used): Likewise.
14798         (ipa_get_controlled_uses): Likewise.
14799         (ipa_set_controlled_uses): Likewise.
14800         (ipa_is_param_used): Likewise.
14801         (ipa_node_params_t): Move into garbage collector.  New methods insert
14802         and remove.
14803         (ipa_node_params_sum): Annotate wth GTY(()).
14804         (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
14805         garbage collected.
14806         (ipa_load_from_parm_agg): Adjust declaration.
14807         * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
14808         * ipa-profile.c (ipa_profile): Likewise.
14809         * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
14810         (ipa_populate_param_decls): Make descriptors parameter garbage
14811         collected.
14812         (ipa_dump_param): Adjust to descriptors being a pointer.
14813         (ipa_alloc_node_params): Likewise.
14814         (ipa_initialize_node_params): Likewise.
14815         (load_from_param_1): Make descriptors parameter garbage collected.
14816         (load_from_unmodified_param): Likewise.
14817         (load_from_param): Likewise.
14818         (ipa_load_from_parm_agg): Likewise.
14819         (ipa_node_params::~ipa_node_params): Removed.
14820         (ipa_free_all_node_params): Remove call to delete operator.
14821         (ipa_node_params_t::insert): New.
14822         (ipa_node_params_t::remove): Likewise.
14823         (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
14824         copy known_csts and known_contexts vectors.
14825         (ipa_read_node_info): Adjust to descriptors being a pointer.
14826         (ipcp_modif_dom_walker): Make m_descriptors field garbage
14827         collected.
14828         (ipcp_transform_function): Make descriptors variable garbage
14829         collected.
14831 2017-01-23  Andrew Senkevich  <andrew.senkevich@intel.com>
14833         * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
14834         * config/i386/avx512dqintrin.h: Ditto.
14835         * config/i386/avx512fintrin.h: Ditto.
14836         * gcc/config/i386/i386.c: Handle new builtins.
14837         * config/i386/i386-builtin.def: Add new builtins.
14838         * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
14839         (UNSPEC_KORTEST, UNSPEC_KTEST): New.
14841 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
14842             Martin Liska  <mliska@suse.cz>
14844         * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
14845         * asan.c (asan_expand_poison_ifn): Support stores and use
14846         appropriate ASAN report function.
14847         * internal-fn.c (expand_ASAN_POISON_USE): New function.
14848         * internal-fn.def (ASAN_POISON_USE): Declare.
14849         * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
14850         (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
14851         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
14852         ASAN_POISON calls w/o LHS.
14853         * tree-ssa.c (execute_update_addresses_taken): Create clobber
14854         for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
14855         from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
14856         * gimplify.c (asan_poison_variables): Add attribute
14857         use_after_scope_memory to variables that really needs to live
14858         in memory.
14859         * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
14860         having the attribute.
14862 2017-01-23  Martin Liska  <mliska@suse.cz>
14864         * asan.c (create_asan_shadow_var): New function.
14865         (asan_expand_poison_ifn): Likewise.
14866         * asan.h (asan_expand_poison_ifn): New declaration.
14867         * internal-fn.c (expand_ASAN_POISON): Likewise.
14868         * internal-fn.def (ASAN_POISON): New builtin.
14869         * sanopt.c (pass_sanopt::execute): Expand
14870         asan_expand_poison_ifn.
14871         * tree-inline.c (copy_decl_for_dup_finish): Make function
14872         external.
14873         * tree-inline.h (copy_decl_for_dup_finish): Likewise.
14874         * tree-ssa.c (is_asan_mark_p): New function.
14875         (execute_update_addresses_taken): Rewrite local variables
14876         (identified just by use-after-scope as addressable) into SSA.
14878 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
14880         * doc/install.texi (Specific): opensource.apple.com uses https
14881         now. Remove trailing slash.
14883 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
14885         * README.Portability: Remove note on an Irix compatibility issue.
14887 2017-01-22  Dimitry Andric <dim@FreeBSD.org>
14889         * gcov.c (INCLUDE_ALGORITHM): Define.
14890         (INCLUDE_VECTOR): Define.
14891         No longer include <vector> and <algorithm> directly.
14893 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
14895         * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
14896         to https.
14897         * doc/invoke.texi (Code Gen Options): Ditto.
14899 2017-01-21  Jan Hubicka  <hubicka@ucw.cz>
14901         PR lto/78407
14902         * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
14904 2017-01-21  Bernd Schmidt  <bschmidt@redhat.com>
14906         rtl-optimization/79125
14907         * cprop.c (local_cprop_pass): Handle cases where we make an
14908         unconditional trap.
14910 2017-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
14912         PR target/61729
14913         PR target/77850
14914         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
14915         read from, for big endian.
14917 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
14919         * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
14920         register pauth builtins for LP64 only.
14922 2017-01-20  Marek Polacek  <polacek@redhat.com>
14924         PR c/79152
14925         * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
14926         non-case labels.
14928 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
14930         * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
14931         of safelen status.
14932         * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
14933         * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
14934         * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
14936 2017-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14938         PR target/71270
14939         * config/arm/arm.c (neon_valid_immediate): Reject vector constants
14940         in big-endian mode when they are not a single duplicated value.
14942 2017-01-20  Richard Biener  <rguenther@suse.de>
14944         * BASE-VER: Bump to 7.0.1.
14946 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
14948         * omp-low.c (omplow_simd_context): New struct.  Use it...
14949         (lower_rec_simd_input_clauses): ...here and...
14950         (lower_rec_input_clauses): ...here to hold common data.  Adjust all
14951         references to idx, lane, max_vf, is_simt.
14953 2017-01-20  Graham Markall  <graham.markall@embecosm.com>
14955         * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
14956         mcpu=nps400.
14958 2017-01-20  Martin Jambor  <mjambor@suse.cz>
14960         * hsa.h: Renaed to hsa-common.h.  Adjusted a comment.
14961         * hsa.c: Renaed to hsa-common.c.  Change include of gt-hsa.h to
14962         gt-hsa-common.h.
14963         * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
14964         (GTFILES): Rename hsa.c to hsa-common.c.
14965         * hsa-brig.c: Change include of hsa.h to hsa-common.h.
14966         * hsa-dump.c: Likewise.
14967         * hsa-gen.c: Likewise.
14968         * hsa-regalloc.c: Likewise.
14969         * ipa-hsa.c: Likewise.
14970         * omp-expand.c: Likewise.
14971         * omp-low.c: Likewise.
14972         * toplev.c: Likewise.
14974 2017-01-20  Marek Polacek  <polacek@redhat.com>
14976         PR c/64279
14977         * doc/invoke.texi: Document -Wduplicated-branches.
14978         * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
14979         COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
14980         POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
14981         STATEMENT_LIST, and RETURN_EXPR.  For non-pure non-const functions
14982         return 0 only when not OEP_LEXICOGRAPHIC.
14983         (fold_build_cleanup_point_expr): Use the expression
14984         location when building CLEANUP_POINT_EXPR.
14985         * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
14986         * tree.c (add_expr): Handle error_mark_node.
14988 2017-01-20  Martin Liska  <mliska@suse.cz>
14990         PR lto/69188
14991         * tree-profile.c (init_ic_make_global_vars): Do not call
14992         finalize_decl.
14993         (gimple_init_gcov_profiler): Likewise.
14995 2017-01-20  Martin Liska  <mliska@suse.cz>
14997         PR ipa/71190
14998         * cgraph.h (maybe_create_reference): Remove argument and
14999         update comment.
15000         * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
15001         argument.
15002         * ipa-cp.c (create_specialized_node): Likewise.
15003         * symtab.c (symtab_node::maybe_create_reference): Handle
15004         VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
15006 2017-01-20  Martin Liska  <mliska@suse.cz>
15008         * read-rtl-function.c (function_reader::create_function): Use
15009         build_decl instread of build_decl_stat.
15011 2017-01-20  Andrew Senkevich  <andrew.senkevich@intel.com>
15013         * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
15014         * config/i386/avx512dqintrin.h: Ditto.
15015         * config/i386/avx512fintrin.h: Ditto.
15016         * config/i386/i386-builtin-types.def: Add new types.
15017         * gcc/config/i386/i386.c: Handle new types.
15018         * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
15019         (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
15020         (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
15021         (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
15022         (__builtin_ia32_kshiftridi): New.
15023         * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
15025 2017-01-19  Segher Boessenkool  <segher@kernel.crashing.org>
15027         PR target/78875
15028         PR target/79140
15029         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
15030         define to rs6000_init_stack_protect_guard.
15031         (rs6000_init_stack_protect_guard): New function.
15033 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
15034             Yunqiang Su  <yunqiang.su@imgtec.com>
15036         * config.gcc (supported_defaults): Add madd4.
15037         (with_madd4): Add validation.
15038         (all_defaults): Add madd4.
15039         * config/mips/mips.opt (mmadd4): New option.
15040         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
15041         mmadd4.
15042         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
15043         __mips_no_madd4.
15044         (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
15045         (ISA_HAS_FUSED_MADD4): Likewise.
15046         * gcc/doc/invoke.texi (-mmadd4): Document the new option.
15047         * gcc/doc/install.texi (--with-madd4): Document the new option.
15049 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
15051         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
15052         entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
15053         AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
15054         (aarch64_init_pauth_hint_builtins): New.
15055         (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
15056         (aarch64_expand_builtin): Expand new builtins.
15058 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
15060         * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
15061         * combine-stack-adj.c (no_unhandled_cfa): Handle
15062         REG_CFA_TOGGLE_RA_MANGLE.
15063         * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
15064         * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
15065         info for return address signing.
15066         (aarch64_expand_epilogue): Likewise.
15068 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
15070         * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
15071         * config/aarch64/aarch64-protos.h
15072         (aarch64_return_address_signing_enabled): New declaration.
15073         * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
15074         New function.
15075         (aarch64_expand_prologue): Sign return address before it's pushed onto
15076         stack.
15077         (aarch64_expand_epilogue): Authenticate return address fetched from
15078         stack.
15079         (aarch64_override_options): Sanity check for ILP32 and ISA level.
15080         (aarch64_attributes): New function attributes for "sign-return-address".
15081         * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
15082         UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
15083         ("*do_return"): Generate combined instructions according to key index.
15084         ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
15085         * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
15086         iterators.
15087         (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
15088         * config/aarch64/aarch64.opt (msign-return-address=): New.
15089         * doc/extend.texi (AArch64 Function Attributes): Documents
15090         "sign-return-address=".
15091         * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
15093 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
15095         * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
15096         overall option summary.
15098 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
15100         * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
15101         * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
15102         AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
15103         * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
15105 2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
15107         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
15108         -mpower9-minmax by default for -mcpu=power9.
15109         (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
15110         128-bit floating point.
15112 2017-01-20  Alan Modra  <amodra@gmail.com>
15114         * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
15115         optimizing for size.
15117 2017-01-20  Alan Modra  <amodra@gmail.com>
15119         PR target/79144
15120         * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
15121         for strcmp and strncmp from corresponding builtin decl.
15123 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
15125         * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
15126         instead of i386/rtems-64.h.
15127         * config/i386/rtems-64.h: Remove.
15129 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
15131         PR target/78478
15132         Revert:
15133         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
15135         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
15137 2017-01-19  Tamar Christina  <tamar.christina@arm.com>
15139         * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
15140         Change int to HOST_WIDE_INT.
15141         * config/aarch64/aarch64-protos.h
15142         (aarch64_simd_gen_const_vector_dup): Likewise.
15143         * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
15145 2017-01-19  David Malcolm  <dmalcolm@redhat.com>
15147         * langhooks-def.h (lhd_type_for_size): New decl.
15148         (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
15149         * langhooks.c (lhd_type_for_size): New function, taken from
15150         lto_type_for_size.
15152 2017-01-19  Pat Haugen  <pthaugen@us.ibm.com>
15154         * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
15155         define_bypass for CR latency.
15156         (power9-cracked-alu): Update bypass latency and remove power9-branch.
15157         (power9-alu2): Add define_bypass for CR latency.
15158         (power9-cmp): New.
15159         (power9-mul): Update insn latency.
15160         (power9-mul-compare): Update insn latency, bypass latency and remove
15161         power9-branch.
15163 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15165         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
15166         Delete.
15167         * config/aarch64/aarch64.md
15168         (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
15169         aarch64_nopcrelative_literal_loads.
15170         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
15172 2017-01-19  Chenghua Xu  <paul.hua.gm@gmail.com>
15174         * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
15175         TARGET_LOONGSON_3A.
15176         (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
15178 2017-01-19  Doug Gilmore  <doug.gilmore@imgtec.com>
15180         PR target/78176
15181         * config.gcc (supported_defaults): Add lxc1-sxc1.
15182         (with_lxc1_sxc1): Add validation.
15183         (all_defaults): Add lxc1-sxc1.
15184         * config/mips/mips.opt (mlxc1-sxc1): New option.
15185         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
15186         mlxc1-sxc1.
15187         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
15188         __mips_no_lxc1_sxc1.
15189         (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
15190         * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
15191         * doc/install.texi (--with-lxc1-sxc1): Document the new option.
15193 2017-01-19  Richard Biener  <rguenther@suse.de>
15195         PR tree-optimization/72488
15196         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
15197         sure to restore SSA info.
15198         * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
15200 2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
15202         PR rtl-optimization/79121
15203         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
15204         of the inner type when shifting an extended value.
15206 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
15208         PR lto/78407
15209         * symtab.c (symtab_node::equal_address_to): Fix comparing of
15210         interposable aliases.
15212 2017-01-18  Peter Bergner  <bergner@vnet.ibm.com>
15214         PR target/78516
15215         * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
15216         Use the evmergelohi instruction.
15217         (mov_si<mode>_e500_subreg4_2_le): Likewise.
15218         (mov_sitf_e500_subreg8_2_be): Likewise.
15219         (mov_sitf_e500_subreg12_2_le): Likewise.
15220         (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
15221         (mov_si<mode>_e500_subreg4_2_be): Likewise.
15222         (mov_sitf_e500_subreg8_2_le): Likewise.
15223         (mov_sitf_e500_subreg12_2_be): Likewise.
15225 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15227         * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
15228         attribute from vecsimple to vecperm.
15229         (altivec_vbpermq2): Likewise.
15231 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15233         PR target/79040
15234         * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
15236 2017-01-18  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
15237         * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
15238         * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
15239         strcmp. Fix bug where comparison didn't stop with zero byte. Fix
15240         case where N arg is SIZE_MAX.
15241         * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
15242         (cmpstrsi): Add pattern.
15244 2017-01-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
15246         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15247         __builtin_vec_revb builtins.
15248         * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
15249         built-in functions to support generation of the ISA 3.0 XXBR<x>
15250         vector byte reverse instructions.
15251         (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
15252         (P9V_BUILTIN_XXBRD_V2DI): Likewise.
15253         (P9V_BUILTIN_XXBRD_V2DF): Likewise.
15254         (P9V_BUILTIN_XXBGW_V4SI): Likewise.
15255         (P9V_BUILTIN_XXBGW_V4SF): Likewise.
15256         (P9V_BUILTIN_XXBGH_V8HI): Likewise.
15257         (P9V_BUILTIN_VEC_REVB): Likewise.
15258         * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
15259         generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
15260         (p9_xxbrq_v16qi): Likewise.
15261         (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
15262         (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
15263         (p9_xxbrh_v8hi): Likewise.
15264         * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
15265         * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
15266         vec_revb built-in functions.
15268 2017-01-18  Uros Bizjak  <ubizjak@gmail.com>
15270         PR rtl-optimization/78952
15271         * config/i386/i386.md (any_extract): New code iterator.
15272         (*insvqi_2): Use any_extract for source operand.
15273         (*insvqi_3): Use any_shiftrt for source operand.
15275 2017-01-18  Wilco Dijkstra  <wdijkstr@arm.com>
15277         * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
15278         New function.
15279         (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
15281 2017-01-18  Matthias Klose  <doko@ubuntu.com>
15283         * doc/install.texi: Allow default for --with-target-bdw-gc-include.
15285 2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15287         * config/rs6000/altivec.h (vec_bperm): Change #define.
15288         * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
15289         (altivec_vbpermq2): New define_insn.
15290         (altivec_vbpermd): Likewise.
15291         * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
15292         function interface.
15293         (VBPERMD): Likewise.
15294         (VBPERM): New polymorphic function interface.
15295         * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
15296         Add entries for P9V_BUILTIN_VEC_VBPERM.
15297         * doc/extend.texi: Add interfaces for vec_bperm.
15299 2017-01-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15301         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
15302         first letter of error messages.
15303         (s390_resolve_overloaded_builtin): Likewise.
15304         * config/s390/s390.c (s390_expand_builtin): Likewise.
15305         (s390_invalid_arg_for_unprototyped_fn): Likewise.
15306         (s390_valid_target_attribute_inner_p): Likewise.
15307         * config/s390/s390.md ("tabort"): Likewise.
15309 2017-01-18  Toma Tabacu  <toma.tabacu@imgtec.com>
15311         * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
15312         (ISA_AVOID_DIV_HILO): New macro.
15313         (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
15314         (ISA_HAS_DDIV): Likewise.
15316 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
15318         * doc/invoke.texi (fabi-version): Correct number of occurrences.
15320 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
15322         * doc/invoke.texi (fabi-version): Spelling fix.
15324 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
15326         PR c++/70182
15327         * doc/invoke.texi (fabi-version): Mention mangling fix for
15328         operator names.
15330 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
15332         PR c++/77489
15333         * doc/invoke.texi (fabi-version): Document discriminator mangling.
15335 2017-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
15337         PR target/78875
15338         * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
15339         * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
15340         the new options.
15341         * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
15342         flexible settings.
15343         (stack_protect_test): Ditto.
15344         * config/rs6000/rs6000.opt (mstack-protector-guard=,
15345         mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
15346         options.
15347         * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
15348         Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
15349         -mstack-protector-guard-offset=.
15350         (RS/6000 and PowerPC Options): Ditto.
15352 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
15354         * config/i386/i386.h (MASK_CLASS_P): New define.
15355         * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
15356         there are no registers from different register sets also when
15357         mask registers are used.  Update function comment.
15358         * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
15359         to (*k/*r) and (*k/*km) alternatives.
15361 2017-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
15363         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
15364         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
15365         (EH_RETURN_HANDLER_RTX): New define.
15366         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
15367         Force frame pointer in EH return functions.
15368         (aarch64_expand_epilogue): Add barrier for eh_return.
15369         (aarch64_final_eh_return_addr): Remove.
15370         (aarch64_eh_return_handler_rtx): New function.
15371         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
15372         Remove.
15373         (aarch64_eh_return_handler_rtx): New prototype.
15375 2017-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15377         * config/rs6000/altivec.h (vec_rlmi): New #define.
15378         (vec_vrlnm): Likewise.
15379         (vec_rlnm): Likewise.
15380         * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
15381         (UNSPEC_VRLNM): Likewise.
15382         (VIlong): New mode iterator.
15383         (altivec_vrl<VI_char>mi): New define_insn.
15384         (altivec_vrl<VI_char>nm): Likewise.
15385         * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
15386         function entry.
15387         (VRLDNM): Likewise.
15388         (RLNM): New polymorphic function entry.
15389         (VRLWMI): New monomorphic function entry.
15390         (VRLDMI): Likewise.
15391         (RLMI): New polymorphic function entry.
15392         * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
15393         new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
15394         * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
15395         vec_vrlnm.
15397 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
15399         PR debug/78839
15400         * dwarf2out.c (field_byte_offset): Restore the
15401         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
15402         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
15403         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
15404         of build2 + fold.
15406 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
15408         PR ada/67205
15409         * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
15411 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
15413         PR debug/71669
15414         * dwarf2out.c (add_data_member_location_attribute): For constant
15415         offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
15416         instead of DW_AT_data_member_location, DW_AT_bit_offset and
15417         DW_AT_byte_size attributes.
15419 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
15421         * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
15422         after forcing to constant memory when the code model is medium.
15424 2017-01-17  Julia Koval  <julia.koval@intel.com>
15426         PR target/76731
15427         * config/i386/avx512fintrin.h
15428         (_mm512_i32gather_ps): Change __addr type to void const*.
15429         (_mm512_mask_i32gather_ps): Ditto.
15430         (_mm512_i32gather_pd): Ditto.
15431         (_mm512_mask_i32gather_pd): Ditto.
15432         (_mm512_i64gather_ps): Ditto.
15433         (_mm512_mask_i64gather_ps): Ditto.
15434         (_mm512_i64gather_pd): Ditto.
15435         (_mm512_mask_i64gather_pd): Ditto.
15436         (_mm512_i32gather_epi32): Ditto.
15437         (_mm512_mask_i32gather_epi32): Ditto.
15438         (_mm512_i32gather_epi64): Ditto.
15439         (_mm512_mask_i32gather_epi64): Ditto.
15440         (_mm512_i64gather_epi32): Ditto.
15441         (_mm512_mask_i64gather_epi32): Ditto.
15442         (_mm512_i64gather_epi64): Ditto.
15443         (_mm512_mask_i64gather_epi64): Ditto.
15444         (_mm512_i32scatter_ps): Change __addr type to void*.
15445         (_mm512_mask_i32scatter_ps): Ditto.
15446         (_mm512_i32scatter_pd): Ditto.
15447         (_mm512_mask_i32scatter_pd): Ditto.
15448         (_mm512_i64scatter_ps): Ditto.
15449         (_mm512_mask_i64scatter_ps): Ditto.
15450         (_mm512_i64scatter_pd): Ditto.
15451         (_mm512_mask_i64scatter_pd): Ditto.
15452         (_mm512_i32scatter_epi32): Ditto.
15453         (_mm512_mask_i32scatter_epi32): Ditto.
15454         (_mm512_i32scatter_epi64): Ditto.
15455         (_mm512_mask_i32scatter_epi64): Ditto.
15456         (_mm512_i64scatter_epi32): Ditto.
15457         (_mm512_mask_i64scatter_epi32): Ditto.
15458         (_mm512_i64scatter_epi64): Ditto.
15459         (_mm512_mask_i64scatter_epi64): Ditto.
15460         * config/i386/avx512pfintrin.h
15461         (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
15462         (_mm512_mask_prefetch_i32gather_ps): Ditto.
15463         (_mm512_mask_prefetch_i64gather_pd): Ditto.
15464         (_mm512_mask_prefetch_i64gather_ps): Ditto.
15465         (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
15466         (_mm512_prefetch_i32scatter_ps): Ditto.
15467         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
15468         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
15469         (_mm512_prefetch_i64scatter_pd): Ditto.
15470         (_mm512_prefetch_i64scatter_ps): Ditto.
15471         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
15472         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
15473         * config/i386/avx512vlintrin.h
15474         (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
15475         (_mm_mmask_i32gather_ps): Ditto.
15476         (_mm256_mmask_i32gather_pd): Ditto.
15477         (_mm_mmask_i32gather_pd): Ditto.
15478         (_mm256_mmask_i64gather_ps): Ditto.
15479         (_mm_mmask_i64gather_ps): Ditto.
15480         (_mm256_mmask_i64gather_pd): Ditto.
15481         (_mm_mmask_i64gather_pd): Ditto.
15482         (_mm256_mmask_i32gather_epi32): Ditto.
15483         (_mm_mmask_i32gather_epi32): Ditto.
15484         (_mm256_mmask_i32gather_epi64): Ditto.
15485         (_mm_mmask_i32gather_epi64): Ditto.
15486         (_mm256_mmask_i64gather_epi32): Ditto.
15487         (_mm_mmask_i64gather_epi32): Ditto.
15488         (_mm256_mmask_i64gather_epi64): Ditto.
15489         (_mm_mmask_i64gather_epi64): Ditto.
15490         (_mm256_i32scatter_ps): Change __addr type to void*.
15491         (_mm256_mask_i32scatter_ps): Ditto.
15492         (_mm_i32scatter_ps): Ditto.
15493         (_mm_mask_i32scatter_ps): Ditto.
15494         (_mm256_i32scatter_pd): Ditto.
15495         (_mm256_mask_i32scatter_pd): Ditto.
15496         (_mm_i32scatter_pd): Ditto.
15497         (_mm_mask_i32scatter_pd): Ditto.
15498         (_mm256_i64scatter_ps): Ditto.
15499         (_mm256_mask_i64scatter_ps): Ditto.
15500         (_mm_i64scatter_ps): Ditto.
15501         (_mm_mask_i64scatter_ps): Ditto.
15502         (_mm256_i64scatter_pd): Ditto.
15503         (_mm256_mask_i64scatter_pd): Ditto.
15504         (_mm_i64scatter_pd): Ditto.
15505         (_mm_mask_i64scatter_pd): Ditto.
15506         (_mm256_i32scatter_epi32): Ditto.
15507         (_mm256_mask_i32scatter_epi32): Ditto.
15508         (_mm_i32scatter_epi32): Ditto.
15509         (_mm_mask_i32scatter_epi32): Ditto.
15510         (_mm256_i32scatter_epi64): Ditto.
15511         (_mm256_mask_i32scatter_epi64): Ditto.
15512         (_mm_i32scatter_epi64): Ditto.
15513         (_mm_mask_i32scatter_epi64): Ditto.
15514         (_mm256_i64scatter_epi32): Ditto.
15515         (_mm256_mask_i64scatter_epi32): Ditto.
15516         (_mm_i64scatter_epi32): Ditto.
15517         (_mm_mask_i64scatter_epi32): Ditto.
15518         (_mm256_i64scatter_epi64): Ditto.
15519         (_mm256_mask_i64scatter_epi64): Ditto.
15520         (_mm_i64scatter_epi64): Ditto.
15521         (_mm_mask_i64scatter_epi64): Ditto.
15522         * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
15523         (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
15524         (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
15525         (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
15526         (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
15527         (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
15528         (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
15529         (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
15530         (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
15531         (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
15532         (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
15533         (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
15534         (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
15535         (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
15536         (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
15537         (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
15538         (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
15539         (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
15540         (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
15541         (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
15542         (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
15543         (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
15544         (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
15545         (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
15546         (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
15547         (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
15548         (VOID_QI_V8DI_PCINT_INT_INT): Remove.
15549         (V16SF_V16SF_PCVOID_V16SI_HI_INT,  V8DF_V8DF_PCVOID_V8SI_QI_INT)
15550         (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
15551         (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
15552         (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
15553         (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
15554         (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
15555         (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
15556         (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
15557         (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
15558         (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
15559         (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
15560         (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
15561         (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
15562         (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
15563         (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
15564         (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
15565         (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
15566         (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
15567         (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
15568         (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
15569         (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
15570         (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
15571         (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
15572         (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
15573         (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
15574         (VOID_QI_V8DI_PCVOID_INT_INT): Add.
15575         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
15576         definitions accordingly.
15578 2017-01-17  Kito Cheng  <kito.cheng@gmail.com>
15579             Kuan-Lin Chen  <kuanlinchentw@gmail.com>
15581         PR target/79079
15582         * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
15583         gen_lowpart.
15585 2017-01-17  Vladimir Makarov  <vmakarov@redhat.com>
15587         PR target/79058
15588         * ira-conflicts.c (ira_build_conflicts): Update total conflict
15589         hard regs for inner regno.
15591 2017-01-17  Martin Liska  <mliska@suse.cz>
15593         PR ipa/71207
15594         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
15595         assumption and add comment.
15597 2017-01-17  Nathan Sidwell  <nathan@acm.org>
15599         * ipa-visibility.c (localize_node): New function, broken out of ...
15600         (function_and_variable_visibility): ... here. Call it.
15602 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
15604         PR middle-end/77445
15605         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
15606         correctly set frequency of oudgoing edge.
15607         (duplicate_thread_path): Fix profile updating.
15609 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
15611         PR other/79046
15612         * configure.ac: Add GCC_BASE_VER.
15613         * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
15614         version from BASE-VER file.
15615         (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
15616         (gcc.o): Depend on $(BASEVER).
15617         * common.opt (dumpfullversion): New option.
15618         * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
15619         * doc/invoke.texi: Document -dumpfullversion.
15620         * doc/install.texi: Document --with-gcc-major-version-only.
15621         * configure: Regenerated.
15623 2017-01-17  Richard Biener  <rguenther@suse.de>
15625         PR tree-optimization/71433
15626         * tree-vrp.c (register_new_assert_for): Merge same asserts
15627         on all incoming edges.
15628         (process_assert_insertions_for): Handle insertions at the
15629         beginning of BBs.
15631 2017-01-17  Gerald Pfeifer  <gerald@pfeifer.com>
15633         * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
15634         * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
15636 2017-01-17  Kaz Kojima  <kkojima@gcc.gnu.org>
15638         PR target/78633
15639         * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
15640         RTL sharing.
15642 2017-01-17  Alan Modra  <amodra@gmail.com>
15644         PR target/79066
15645         * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
15646         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
15647         symbolic stack limit when pic.
15649 2017-01-16  Martin Sebor  <msebor@redhat.com>
15651         PR tree-optimization/78608
15652         * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
15654 2017-01-16  Jeff Law  <law@redhat.com>
15656         Revert:
15657         2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
15658         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
15659         for several include directories that may be relative to sysroot.
15660         * config/i386/x-mingw32 (gplus_includedir): Define.
15661         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
15662         (native_system_includedir): Likewise.
15663         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
15664         override if TARGET_SYSTEM_ROOT is defined.
15665         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
15667         PR tree-optimization/79090
15668         PR tree-optimization/33562
15669         PR tree-optimization/61912
15670         PR tree-optimization/77485
15671         * tree-ssa-dse.c (compute_trims): Accept STMT argument.  Dump STMT
15672         and computed trims into the dump file.
15674 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
15676         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
15678 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
15680         PR c/79089
15681         * gimplify.c (gimplify_init_constructor): If want_value and
15682         object == lhs, unshare lhs to avoid invalid tree sharing.  Formatting
15683         fix.
15685         PR target/79080
15686         * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
15687         sequence.  Formatting fixes.
15688         (doloop_optimize): Formatting fixes.
15690         PR driver/49726
15691         * gcc.c (debug_level_greater_than_spec_func): New function.
15692         (static_spec_functions): Add debug-level-gt spec function.
15693         (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
15694         !g0.
15695         * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
15696         * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
15697         * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
15698         gpubnames, ggnu-pubnames, gno-record-gcc-switches,
15699         grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
15700         gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
15702 2017-01-16  Uros Bizjak  <ubizjak@gmail.com>
15704         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
15705         QImode fixups to general and mask registers only.
15707 2017-01-16  Carl Love  <cel@us.ibm.com>
15709         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
15710         for built-in functions
15711         vector signed char vec_nabs (vector signed char)
15712         vector signed short vec_nabs (vector signed short)
15713         vector signed int vec_nabs (vector signed int)
15714         vector signed long long vec_nabs (vector signed long long)
15715         vector float vec_nabs (vector float)
15716         vector double vec_nabs (vector double)
15717         * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
15718         and NABS overload.
15719         * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
15720         * config/rs6000/altivec.h: New define for vec_nabs built-in function.
15721         * doc/extend.texi: Update the documentation file for the new built-in
15722         functions.
15724 2017-01-16  Martin Sebor  <msebor@redhat.com>
15726         * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
15727         message.
15729 2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15731         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
15732         UNSPEC_VSX__XXSPLTD to require special splat handling.
15734 2017-01-16  David Malcolm  <dmalcolm@redhat.com>
15736         PR bootstrap/78616
15737         * system.h: Poison strndup.
15739 2017-01-16  Alan Modra  <amodra@gmail.com>
15741         PR target/79098
15742         * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
15743         use a switch.
15745 2017-01-16  Georg-Johann Lay  <avr@gjlay.de>
15747         * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
15749 2017-01-15  Uros Bizjak  <ubizjak@gmail.com>
15751         * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
15752         call recog here.  Assert that INSN_CODE (insn) is non-negative.
15754 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
15756         PR target/72749
15757         * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
15758         fallthrough.
15759         * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
15760         in the currently scheduled RTL fragment.
15762 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
15764         PR rtl-optimization/78751
15765         * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
15766         give up.
15768 2017-01-14  Jeff Law  <law@redhat.com>
15770         PR tree-optimization/79090
15771         * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
15772         variable length stores.
15773         (compute_trims): Delete dead assignment to *trim_tail.
15774         (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
15775         zero length.
15777 2017-01-14  Bernd Schmidt  <bschmidt@redhat.com>
15779         PR rtl-optimization/78626
15780         PR rtl-optimization/78727
15781         * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
15782         of a block, and split such blocks after everything else is finished.
15784 2017-01-14  Alan Modra  <amodra@gmail.com>
15786         PR target/72749
15787         * combine.c (recog_for_combine_1): Set INSN_CODE before calling
15788         target legitimate_combined_insn.
15789         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
15790         (rs6000_legitimate_combined_insn): New function.
15791         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
15792         all uses.
15793         (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
15794         (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
15795         (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
15797 2017-01-14  Gerald Pfeifer  <gerald@pfeifer.com>
15799         * doc/frontends.texi (G++ and GCC): Remove references to Java.
15801 2017-01-13  Jeff Law  <law@redhat.com>
15803         PR tree-optimization/33562
15804         PR tree-optimization/61912
15805         PR tree-optimization/77485
15806         * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
15807         a statement.
15808         (delete_dead_assignment): Likewise.
15809         (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
15810         statement to delete_dead_call and delete_dead_assignment.
15812 2017-01-13  David Malcolm  <dmalcolm@redhat.com>
15814         PR c/78304
15815         * substring-locations.c (format_warning_va): Strengthen case 1 so
15816         that both endpoints of the substring must be within the format
15817         range for just the substring to be printed.
15819 2017-01-13  Uros Bizjak  <ubizjak@gmail.com>
15821         * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
15822         * config/i386/i386.c (ix86_target_string): Add missing options
15823         to isa_opts and reorder options by implied ISAs.  Rename isa_opts2 to
15824         isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
15825         flags_other and ix86_target_other to flags2_other.  Display unknown
15826         isa2 options.
15827         (ix86_valid_target_attribute_inner_p): Add missing options and
15828         reorder options by implied ISAs, as in ix86_target_string.
15830 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
15832         * hash-table.h (hash_table::too_empty_p): New function.
15833         (hash_table::expand): Use it.
15834         (hash_table::traverse): Likewise.
15835         (hash_table::empty_slot): Use sizeof (value_type) instead of
15836         sizeof (PTR) to convert bytes to elements.  Shrink the table
15837         if the current size is excessive for the current number of
15838         elements.
15840 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
15842         * ira-costs.c (record_reg_classes): Break from the inner loop
15843         early once alt_fail is known to be true.  Update outer loop
15844         handling accordingly.
15846 2017-01-13  Jeff Law  <law@redhat.com>
15848         * tree-ssa-dse.c (decrement_count): New function.
15849         (increment_start_addr, maybe_trim_memstar_call): Likewise.
15850         (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
15851         when we know the partially dead statement is a mem* function.
15853         PR tree-optimization/61912
15854         PR tree-optimization/77485
15855         * tree-ssa-dse.c: Include expr.h.
15856         (maybe_trim_constructor_store): New function.
15857         (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
15859         PR tree-optimization/33562
15860         PR tree-optimization/61912
15861         PR tree-optimization/77485
15862         * doc/invoke.texi: Document new dse-max-object-size param.
15863         * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
15864         * tree-ssa-dse.c: Include params.h.
15865         (dse_store_status): New enum.
15866         (initialize_ao_ref_for_dse): New, partially extracted from
15867         dse_optimize_stmt.
15868         (valid_ao_ref_for_dse, normalize_ref): New.
15869         (setup_live_bytes_from_ref, compute_trims): Likewise.
15870         (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
15871         (maybe_trim_partially_dead_store): Likewise.
15872         (maybe_trim_complex_store): Likewise.
15873         (dse_classify_store): Renamed from dse_possibly_dead_store_p.
15874         Track what bytes live from the original store.  Return tri-state
15875         for dead, partially dead or live.
15876         (dse_dom_walker): Add constructor, destructor and new private members.
15877         (delete_dead_call, delete_dead_assignment): New extracted from
15878         dse_optimize_stmt.
15879         (dse_optimize_stmt): Make a member of dse_dom_walker.
15880         Use initialize_ao_ref_for_dse.
15882         PR tree-optimization/33562
15883         PR tree-optimization/61912
15884         PR tree-optimization/77485
15885         * sbitmap.h (bitmap_count_bits): Prototype.
15886         (bitmap_clear_range, bitmap_set_range): Likewise.
15887         * sbitmap.c (bitmap_clear_range): New function.
15888         (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
15890 2017-01-13  Martin Liska  <mliska@suse.cz>
15892         PR ipa/79043
15893         * function.c (set_cfun): Add new argument force.
15894         * function.h (set_cfun): Likewise.
15895         * ipa-inline-transform.c (inline_call): Use the function when
15896         strict alising from is dropped for function we inline to.
15898 2017-01-13  Richard Biener  <rguenther@suse.de>
15900         * tree-pretty-print.c (dump_generic_node): Fix inverted condition
15901         for dumping GIMPLE INTEGER_CSTs.
15903 2017-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15905         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
15906         to 201112L since C++17.
15908 2017-01-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
15910         PR sanitizer/78887
15911         * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
15912         if -fsanitize=kernel-address is present.
15914 2017-01-13  Richard Biener  <rguenther@suse.de>
15916         * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
15917         as _Literal ( type ) number in case usual suffixes do not
15918         preserve all information.
15920 2017-01-13  Richard Biener  <rguenther@suse.de>
15922         PR tree-optimization/77283
15923         * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
15924         and ssa-iterators.h.
15925         (is_feasible_trace): Implement a cost model based on joiner
15926         PHI node uses.
15928 2017-01-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
15930         PR target/79004
15931         * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
15932         char or short to __float128/_Float128 directly.
15934 2017-01-12  Martin Sebor  <msebor@redhat.com>
15936         to -Wformat-overflow.
15937         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
15938         (min_bytes_remaining): Same.
15939         (get_string_length): Same.
15940         (format_string): Same.
15941         (format_directive): Same.
15942         (add_bytes): Same.
15943         (pass_sprintf_length::handle_gimple_call): Same.
15945 2017-01-12  Jakub Jelinek  <jakub@redhat.com>
15947         * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
15948         info.nowrite calls with no lhs that can't throw.  Return bool
15949         whether gsi_remove has been called or not.
15950         (pass_sprintf_length::handle_gimple_call): Return bool whether
15951         try_substitute_return_value called gsi_remove.  Formatting fix.
15952         (pass_sprintf_length::execute): Don't use gsi_remove if
15953         handle_gimple_call returned true.
15955         PR bootstrap/79069
15956         * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
15957         be removed due to side-effects, don't remove following barrier nor
15958         turn the successor edge into fallthru edge.
15960 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15962         PR target/79044
15963         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
15964         element-reversing loads and stores as not swappable.
15966 2017-01-12  Nathan Sidwell  <nathan@acm.org>
15967             Nicolai Stange  <nicstange@gmail.com>
15969         * combine.c (try_combine): Don't ignore result of overlap checking
15970         loop.  Combine overlap & asm check into single loop.
15972 2017-01-12  Richard Biener  <rguenther@suse.de>
15974         * tree-pretty-print.c (dump_generic_node): Provide -gimple
15975         variant for MEM_REF.  Sanitize INTEGER_CST for -gimple.
15977 2017-01-12  Richard Biener  <rguenther@suse.de>
15979         * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
15980         and TS_TARGET_OPTION directly derive from TS_BASE.
15981         * tree-core.h (tree_optimization_option): Derive from tree_base.
15982         (tree_target_option): Likewise.
15984 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
15986         * config/i386/i386.c (memory_address_length): Increase len
15987         only when rip_relative_addr_p returns false.
15989 2017-01-11  Julia Koval  <julia.koval@intel.com>
15991         * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
15992         (OPTION_MASK_ISA_SGX_SET): New.
15993         (ix86_handle_option): Handle OPT_msgx.
15994         * config.gcc: Added sgxintrin.h.
15995         * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
15996         * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
15997         * config/i386/i386.c (ix86_target_string): Add -msgx.
15998         (PTA_SGX): New.
15999         (ix86_option_override_internal): Handle new options.
16000         (ix86_valid_target_attribute_inner_p): Add sgx.
16001         * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
16002         * config/i386/i386.opt: Add msgx.
16003         * config/i386/sgxintrin.h: New file.
16004         * config/i386/x86intrin.h: Add sgxintrin.h.
16006 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
16008         PR c++/71537
16009         * fold-const.c (maybe_nonzero_address): Return 1 for function
16010         local objects.
16011         (tree_single_nonzero_warnv_p): Don't handle function local objects
16012         here.
16014         PR c++/72813
16015         * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
16016         of c-header.
16018 2017-01-11  David Malcolm  <dmalcolm@redhat.com>
16020         PR driver/78877
16021         * opts.c: Include "spellcheck.h"
16022         (struct string_fragment): New struct.
16023         (struct edit_distance_traits<const string_fragment &>): New
16024         struct.
16025         (get_closest_sanitizer_option): New function.
16026         (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
16028 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
16030         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
16031         by 12.
16032         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
16033         DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
16034         (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
16035         (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
16036         for initial die_offset if dwarf_split_debug_info.
16037         (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
16038         initial next_die_offset if dwo_id is non-NULL.  Don't emit padding
16039         fields.
16040         (output_skeleton_debug_sections): Formatting fix.  Use
16041         DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
16042         DWARF_COMPILE_UNIT_HEADER_SIZE.  Don't emit padding.
16044 2017-01-11  Wilco Dijkstra  <wdijkstr@arm.com>
16046         * config/arm/cortex-a53.md: Add bypasses for
16047         cortex_a53_r2f_cvt.
16048         (cortex_a53_r2f): Only use for transfers.
16049         (cortex_a53_f2r): Likewise.
16050         (cortex_a53_r2f_cvt): Add reservation for conversions.
16051         (cortex_a53_f2r_cvt): Likewise.
16053 2017-01-11  Tamar Christina  <tamar.christina@arm.com>
16055         * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
16056         to all inlined functions, change static to extern.
16058 2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
16060         PR target/78253
16061         * config/arm/arm.c (legitimize_pic_address): Handle reference to
16062         weak symbol.
16063         (arm_assemble_integer): Likewise.
16065 2017-01-11  Richard Earnshaw  <rearnsha@arm.com>
16067         * config.gcc: Use new awk script to check CPU, FPU and architecture
16068         parameters for --with-... options.
16069         * config/arm/parsecpu.awk: New file
16070         * config/arm/arm-cpus.in: New file.
16071         * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
16072         files.
16073         * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
16074         files.
16075         * config/arm/t-arm: Update dependency rules.
16076         * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
16077         of processing .def files.
16078         * config/arm/genopt.sh: Deleted.
16079         * config/arm/gentune.sh: Deleted.
16080         * config/arm/arm-cores.def: Deleted.
16081         * config/arm/arm-arches.def: Deleted.
16082         * config/arm/arm-fpus.def: Deleted.
16083         * config/arm/arm-tune.md: Regenerated.
16084         * config/arm/arm-tables.opt: Regenerated.
16085         * config/arm/arm-cpu.h: New generated file.
16086         * config/arm/arm-cpu-data.h: New generated file.
16087         * config/arm/arm-cpu-cdata.h: New generated file.
16089 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
16091         PR lto/79042
16092         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
16093         bit.
16094         (input_varpool_node): Unpack dynamically_initialized bit.
16096 2017-01-11  Eric Botcazou  <ebotcazou@adacore.com>
16098         PR rtl-optimization/79032
16099         * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
16100         the alignment of the adjusted memory reference against that of MODE,
16101         instead of the alignment of the original memory reference.
16103 2017-01-11  Martin Jambor  <mjambor@suse.cz>
16105         * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
16106         test.
16107         * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
16108         decorated functions.
16110 2017-01-11  Richard Biener  <rguenther@suse.de>
16112         * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
16113         set range/nonnull info for PHI results.  Do not set it on
16114         stmts marked for removal.
16116 2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
16118         * expr.c (store_field): In the bitfield case, fetch the return value
16119         from the registers before applying a single big-endian adjustment.
16120         Always do a final load for a BLKmode value not larger than a word.
16122 2017-01-10  David Malcolm  <dmalcolm@redhat.com>
16124         PR c++/77949
16125         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
16126         that we correctly handle column numbers greater than
16127         LINE_MAP_MAX_COLUMN_NUMBER.
16129 2017-01-10  Martin Sebor  <msebor@redhat.com>
16131         PR middle-end/78245
16132         * gimple-ssa-sprintf.c (get_destination_size): Call
16133         {init,fini}object_sizes.
16134         * tree-object-size.c (addr_object_size): Adjust.
16135         (pass_through_call): Adjust.
16136         (pass_object_sizes::execute): Adjust.
16137         * tree-object-size.h (fini_object_sizes): Declare.
16139 2017-01-10  Martin Sebor  <msebor@redhat.com>
16141         PR tree-optimization/78775
16142         * builtins.c (get_size_range): Move...
16143         * calls.c: ...to here.
16144         (alloc_max_size): Accept zero argument.
16145         (operand_signed_p): Remove.
16146         (maybe_warn_alloc_args_overflow): Call get_size_range.
16147         * calls.h (get_size_range): Declare.
16149 2017-01-10  Joe Seymour  <joe.s@somniumtech.com>
16151         * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
16152         from TI's devices.csv file as of September 2016.
16153         * config/msp430/msp430.c (msp430_mcu_data): Likewise.
16155 2017-01-10  Sandra Loosemore  <sandra@codesourcery.com>
16157         * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
16158         * doc/invoke.texi: Likewise.
16159         * doc/md.texi: Likewise.
16160         * doc/objc.texi: Likewise.
16162 2017-01-10  Joshua Conner  <joshconner@google.com>
16164         * config/arm/fuchsia-elf.h: New file.
16165         * config/fuchsia.h: New file.
16166         * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
16167         (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
16168         targets.
16169         * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
16171 2016-01-10  Richard Biener  <rguenther@suse.de>
16173         PR tree-optimization/79034
16174         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
16175         Propagate out degenerate PHIs in the joiner.
16177 2017-01-10  Martin Liska  <mliska@suse.cz>
16179         * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
16180         (sort_congruence_classes_by_decl_uid): Likewise.
16181         (sort_congruence_class_groups_by_decl_uid): Likewise.
16182         (sem_item_optimizer::merge_classes): Sort class, groups in these
16183         classes and members in the groups by DECL_UID of declarations.
16184         This would make merge operations stable.
16186 2017-01-10  Martin Liska  <mliska@suse.cz>
16188         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
16189         usage of m_classes_vec.
16190         (sem_item_optimizer::~sem_item_optimizer):  Likewise.
16191         (sem_item_optimizer::get_group_by_hash): Likewise.
16192         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
16193         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
16194         (sem_item_optimizer::verify_classes): Likewise.
16195         (sem_item_optimizer::process_cong_reduction): Likewise.
16196         (sem_item_optimizer::dump_cong_classes): Likewise.
16197         (sem_item_optimizer::merge_classes): Likewise.
16198         * ipa-icf.h (congruence_class_hash): Rename from
16199         congruence_class_group_hash.  Remove declaration of m_classes_vec.
16201 2017-01-10  Andrew Senkevich  <andrew.senkevich@intel.com>
16203         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
16204         OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
16205         * config.gcc: Add avx512vpopcntdqintrin.h.
16206         * config/i386/avx512vpopcntdqintrin.h: New.
16207         * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
16208         * config/i386/i386-builtin-types.def: Add new types.
16209         * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
16210         __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
16211         __builtin_ia32_vpopcountq_v8di_mask): New.
16212         * config/i386/i386-c.c (ix86_target_macros_internal): Define
16213         __AVX512VPOPCNTDQ__.
16214         * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
16215         (PTA_AVX512VPOPCNTDQ): Define.
16216         * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
16217         TARGET_AVX512VPOPCNTDQ_P): Define.
16218         * config/i386/i386.opt: Add mavx512vpopcntdq.
16219         * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
16220         * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
16222 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
16224         PR middle-end/77484
16225         * predict.def (PRED_CALL): Set to 67.
16227 2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
16229         * expr.c (store_field): In the bitfield case, if the value comes from
16230         a function call and is of an aggregate type returned in registers, do
16231         not modify the field mode; extract the value in all cases if the mode
16232         is BLKmode and the size is not larger than a word.
16234 2017-01-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
16236         PR target/71017
16237         * config/i386/cpuid.h: Fix undefined behavior.
16239 2017-01-04  Jeff Law  <law@redhat.com>
16241         PR tree-optimization/79007
16242         PR tree-optimization/67955
16243         * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
16244         conservative for pt.null when flag_non_call_exceptions is on.
16246 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
16248         PR translation/79019
16249         PR translation/79020
16250         * params.def (PARAM_INLINE_MIN_SPEEDUP,
16251         PARAM_IPA_CP_SINGLE_CALL_PENALTY,
16252         PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
16253         in descriptions.
16254         * config/avr/avr.opt (maccumulate-args): Likewise.
16255         * config/msp430/msp430.opt (mwarn-mcu): Likewise.
16256         * common.opt (freport-bug): Likewise.
16257         * cif-code.def (CIF_FINAL_ERROR): Likewise.
16258         * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
16259         * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
16260         translatable string.
16261         * config/i386/i386.c (function_value_32): Likewise.
16262         * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
16263         * config/msp430/msp430.c (msp430_option_override, msp430_attr):
16264         Likewise.
16265         * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
16266         * common/config/msp430/msp430-common.c (msp430_handle_option):
16267         Likewise.
16268         * symtab.c (symtab_node::verify_base): Likewise.
16269         * opts.c (set_debug_level): Likewise.
16270         * tree.c (verify_type_variant): Likewise.  Fix typo in comment.
16271         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
16272         missing whitespace to translatable strings.
16273         * config/avr/avr.md (bswapsi2): Fix typo in comment.
16274         * config/sh/superh.h: Likewise.
16275         * config/i386/xopintrin.h: Likewise.
16276         * config/i386/znver1.md: Likewise.
16277         * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
16278         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
16279         * double-int.h (struct double_int): Likewise.
16280         * double-int.c (div_and_round_double): Likewise.
16281         * wide-int.cc: Likewise.
16282         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
16283         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
16284         * cfgcleanup.c (crossjumps_occured): Renamed to ...
16285         (crossjumps_occurred): ... this.
16286         (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
16287         Adjust all uses.
16289         PR tree-optimization/78899
16290         * tree-if-conv.c (version_loop_for_if_conversion): Instead of
16291         returning bool return struct loop *, NULL for failure and the new
16292         loop on success.
16293         (versionable_outer_loop_p): Don't version outer loop if it has
16294         dont_vectorized bit set.
16295         (tree_if_conversion): When versioning outer loop, ensure
16296         tree_if_conversion is performed also on the inner loop of the
16297         non-vectorizable outer loop copy.
16298         * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix.  Fold
16299         LOOP_VECTORIZED in inner loop of the scalar outer loop and
16300         prevent vectorization of it.
16301         (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
16302         the outer loop vectorization of the non-scalar version is attempted
16303         before vectorization of the inner loop in scalar version.  If
16304         outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
16305         vectorization of its inner loop.
16306         * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
16307         has 2 inner loops, rename also on edges from bb whose single pred
16308         is outer_loop->header.  Fix typo in function comment.
16310 2017-01-09  Martin Sebor  <msebor@redhat.com>
16312         PR bootstrap/79033
16313         * asan.c (asan_emit_stack_protection): Increase local buffer size
16314         to avoid snprintf truncation warning.
16316 2017-01-09  Andrew Pinski  <apinski@cavium.com>
16318         * config/aarch64/aarch64-cores.def: Add thunderx2t99.  Change vulcan
16319         to reference thunderx2t99 for the tuning structure
16320         * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
16321         Rename to ...
16322         (thunderx2t99_extra_costs): This.
16323         * config/aarch64/aarch64-tune.md: Regenerate.
16324         * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
16325         (vulcan_addrcost_table): This.
16326         (vulcan_regmove_cost): Rename to ...
16327         (thunderx2t99_regmove_cost): This.
16328         (vulcan_vector_cost): Rename to ...
16329         (thunderx2t99_vector_cost): this.
16330         (vulcan_branch_cost): Rename to ...
16331         (thunderx2t99_branch_cost): This.
16332         (vulcan_tunings): Rename to ...
16333         (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
16334         * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
16336 2017-01-09  Martin Jambor  <mjambor@suse.cz>
16338         PR ipa/78365
16339         PR ipa/78599
16340         * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
16341         * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
16342         (propagate_vr_accross_jump_function): Use the above function for all
16343         value range computations for pass-through jump functions and type
16344         converasion from explicit value range values.
16345         (ipcp_propagate_stage): Do not attempt to deduce types of formal
16346         parameters from TYPE_ARG_TYPES.
16347         * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
16348         (ipa_write_node_info): Stream type of the actual argument.
16349         (ipa_read_node_info): Likewise. Also remove trailing whitespace.
16351 2017-01-09  Martin Liska  <mliska@suse.cz>
16353         PR pch/78970
16354         * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
16355         (lookup_compiler): Do not show error message with have_E.
16357 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
16359         PR tree-optimization/78938
16360         * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
16361         where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
16362         BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
16363         {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR.  Formatting
16364         fixes.
16366 2017-01-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16368         * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
16369         is const0_rtx.
16371 2017-01-09  Richard Biener  <rguenther@suse.de>
16373         PR tree-optimization/78997
16374         * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
16375         name condition properly.
16377 2017-01-09  Richard Biener  <rguenther@suse.de>
16379         PR debug/79000
16380         * dwarf2out.c (is_cxx): New overload with context.
16381         (is_naming_typedef_decl): Use it.
16383 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
16385         * invoke.texi (Option Summary): Correct spacing in option lists
16386         and add line breaks to fix over-long lines.
16388 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
16390         PR middle-end/17660
16392         * extend.texi (Common Variable Attributes): Add xref to GCC
16393         Internals manual to explain mode attribute keywords.
16395 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
16397         PR other/16519
16398         * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
16399         and Preprocessor Options.
16400         (Options for Linking): Document -pthread here....
16401         (RS/6000 and PowerPC Options): ...not here.
16402         (Solaris 2 Options): ...or here.
16403         * doc/cppopts.texi: Document -pthread.
16405 2017-01-08  Martin Sebor  <msebor@redhat.com>
16407         PR middle-end/77708
16408         * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
16409         * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
16410         New member functions.
16411         (format_directive): Used them.
16412         (add_bytes): Same.
16413         (pass_sprintf_length::handle_gimple_call): Same.
16414         * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
16415         to avoid truncation for any argument.
16416         (extract_affine_mul): Same.
16417         * tree.c (get_file_function_name): Same.
16419 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
16421         PR middle-end/77484
16422         * predict.def (PRED_INDIR_CALL): Set to 86.
16424 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
16426         PR preprocessor/54124
16427         * doc/cppopts.texi: Reformat -d subtable to list the full name
16428         of the options.  Add cross-reference to the docs for the general
16429         compiler -d options.
16430         * doc/invoke.texi (Developer Options): Add cross-reference to the
16431         preprocessor-specific -d option documentation.
16433 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
16435         PR preprocessor/13498
16436         * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
16437         redudant material, and reflect new command-line options.
16438         (System Headers): Likewise.
16440 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
16442         * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
16443         -isystem, and -idirafter.  Copy-edit.
16444         * doc/cppopts.texi: Copy-edit.  Remove contradiction about
16445         default for -ftrack-macro-expansion.  Delete obsolete and
16446         badly-formatted implementation details about -fdebug-cpp output.
16447         * doc/cppwarnopts.texi: Copy-edit.
16449 2017-01-07  David Malcolm  <dmalcolm@redhat.com>
16451         PR c++/72803
16452         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
16453         that the transition from a max line width >= 1<<10 to narrower
16454         lines works correctly.
16456 2017-01-07  Alexandre Oliva <aoliva@redhat.com>
16458         * doc/options.texi (PerFunction): New.
16459         * opt-functions.awk (switch_flags): Map both Optimization and
16460         PerFunction to CL_OPTIMIZATION.
16461         * opth-gen.awk: Test for PerFunction flag along with
16462         Optimization.
16463         * optc-save-gen.awk: Likewise.  Introduce var_opt_hash and set
16464         it only when the latter is present.  Skip those that don't in
16465         the hash function generator.
16466         * common.opt (fvar-tracking): Mark as PerFunction instead of
16467         Optimization.
16468         (fvar-tracking-assignments): Likewise.
16469         (fvar-tracking-assignments-toggle): Likewise.
16470         (fvar-tracking-uninit): Likewise.
16472 2017-01-07  Jakub Jelinek  <jakub@redhat.com>
16474         PR translation/79018
16475         * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
16476         the and store.
16478 2017-01-06  Mikael Pettersson  <mikpelinux@gmail.com>
16480         PR target/57583
16481         * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
16482         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
16483         TARGET_LONG_JUMP_TABLE_OFFSETS.
16484         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
16485         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
16486         * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
16487         (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
16488         * config/m68k/m68k.md (tablejump expander): Likewise.
16489         (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
16490         TARGET_LONG_JUMP_TABLE_OFFSETS.
16491         (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
16492         * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
16494 2017-01-06  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
16495             David Holsgrove <david.holsgrove@xilinx.com>
16497         * common/config/microblaze/microblaze-common.c
16498         (TARGET_EXCEPT_UNWIND_INFO): Remove.
16499         * config/microblaze/microblaze-protos.h (microblaze_eh_return):
16500         New prototype.
16501         * config/microblaze/microblaze.c (microblaze_must_save_register)
16502         (microblaze_expand_epilogue, microblaze_return_addr): Handle
16503         calls_eh_return.
16504         (microblaze_eh_return): New function.
16505         * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
16506         (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
16507         (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
16508         * config/microblaze/microblaze.md (eh_return): New pattern.
16510 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
16512         * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
16513         GCC_DIAGNOSTIC_STRINGIFY): Define.
16515         * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
16517 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
16519         * config/arm/arm.md (<mcrr>): New.
16520         (<mrrc>): New.
16521         * config/arm/arm.c (arm_arch5te): New.
16522         (arm_option_override): Set arm_arch5te.
16523         (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
16524         and mrrc2.
16525         * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
16526         (arm_mcrr_qualifiers): ... this. New.
16527         (MRRC_QUALIFIERS): Define to...
16528         (arm_mrrc_qualifiers): ... this. New.
16529         * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
16530         __arm_mrrc2): New.
16531         * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
16532         * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
16533         (MRRCI, mrrc, MRRC): New.
16534         * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
16535         VUNSPEC_MRRC2): New.
16537 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
16539         * config/arm/arm.md (<mcr>): New.
16540         (<mrc>): New.
16541         * config/arm/arm.c (arm_coproc_builtin_available): Add
16542         support for mcr, mrc, mcr2 and mrc2.
16543         * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
16544         (arm_mcr_qualifiers): ... this. New.
16545         (MRC_QUALIFIERS): Define to ...
16546         (arm_mrc_qualifiers): ... this. New.
16547         (MCR_QUALIFIERS): Define to ...
16548         (arm_mcr_qualifiers): ... this. New.
16549         * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
16550         __arm_mrc2): New.
16551         * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
16552         * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
16553         * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
16554         VUNSPEC_MRC2): New.
16556 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
16558         * config/arm/arm.md (*ldc): New.
16559         (*stc): New.
16560         (<ldc>): New.
16561         (<stc>): New.
16562         * config/arm/arm.c (arm_coproc_builtin_available): Add
16563         support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
16564         (arm_coproc_ldc_stc_legitimate_address): New.
16565         * config/arm/arm-builtins.c (arm_type_qualifiers): Add
16566         'qualifier_const_pointer'.
16567         (LDC_QUALIFIERS): Define to...
16568         (arm_ldc_qualifiers): ... this. New.
16569         (STC_QUALIFIERS): Define to...
16570         (arm_stc_qualifiers): ... this. New.
16571         * config/arm/arm-protos.h
16572         (arm_coproc_ldc_stc_legitimate_address): New.
16573         * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
16574         __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
16575         * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
16576         stc2, stcl, stc2l): New.
16577         * config/arm/constraints.md (Uz): New.
16578         * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
16579         * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
16580         VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
16581         VUNSPEC_STC2L): New.
16583 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
16585         * config/arm/arm.md (<cdp>): New.
16586         * config/arm/arm.c (neon_const_bounds): Rename this ...
16587         (arm_const_bounds): ... this.
16588         (arm_coproc_builtin_available): New.
16589         * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
16590         (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
16591         (CDP_QUALIFIERS): Define to...
16592         (arm_cdp_qualifiers): ... this. New.
16593         (void_UP): Define.
16594         (arm_expand_builtin_args): Add case for 6 arguments.
16595         * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
16596         (arm_const_bounds): ... this.
16597         (arm_coproc_builtin_available): New.
16598         * config/arm/arm_acle.h (__arm_cdp): New.
16599         (__arm_cdp2): New.
16600         * config/arm/arm_acle_builtins.def (cdp): New.
16601         (cdp2): New.
16602         * config/arm/iterators.md (CDPI,CDP,cdp): New.
16603         * config/arm/neon.md: Rename all 'neon_const_bounds' to
16604         'arm_const_bounds'.
16605         * config/arm/types.md (coproc): New.
16606         * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
16607         * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
16608         * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
16609         arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
16611 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
16613         * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
16614         (UBINOP_QUALIFIERS): New.
16615         (si_UP): Define.
16616         (acle_builtin_data): New. Change comment.
16617         (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
16618         ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
16619         ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
16620         arm_acle_builtins.def.
16621         (ARM_BUILTIN_ACLE_PATTERN_START): Define.
16622         (arm_init_acle_builtins): New.
16623         (CRC32_BUILTIN): Remove.
16624         (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
16625         crc32cb, crc32ch and crc32cw.
16626         (arm_init_crc32_builtins): Remove.
16627         (arm_init_builtins): Use arm_init_acle_builtins rather
16628         than arm_init_crc32_builtins.
16629         (arm_expand_acle_builtin): New.
16630         (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
16631         * config/arm/arm_acle_builtins.def: New.
16633 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
16635         * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
16636         (arm_builtin_datum): ... this.
16637         (arm_init_neon_builtin): Rename to ...
16638         (arm_init_builtin): ... this. Add a new parameters PREFIX
16639         and USE_SIG_IN_NAME.
16640         (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
16641         'arm_init_builtin'. Replace type 'neon_builtin_datum' with
16642         'arm_builtin_datum'.
16643         (arm_init_vfp_builtins): Likewise.
16644         (builtin_arg): Rename enum's replacing 'NEON_ARG' with
16645         'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
16646         (arm_expand_neon_args): Rename to ...
16647         (arm_expand_builtin_args): ... this. Rename builtin_arg
16648         enum values and differentiate between ARG_BUILTIN_MEMORY
16649         and ARG_BUILTIN_NEON_MEMORY.
16650         (arm_expand_neon_builtin_1): Rename to ...
16651         (arm_expand_builtin_1): ... this. Rename builtin_arg enum
16652         values, arm_expand_builtin_args and add bool parameter NEON.
16653         (arm_expand_neon_builtin): Use arm_expand_builtin_1.
16654         (arm_expand_vfp_builtin): Likewise.
16655         (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
16657 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
16659         PR middle-end/77484
16660         * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
16661         * predict.c (tree_estimate_probability_bb): Reverse direction of
16662         polymorphic call predictor.
16664 2017-01-06  David Malcolm  <dmalcolm@redhat.com>
16666         * passes.c (execute_one_pass): Split out pass-skipping logic into...
16667         (determine_pass_name_match): ...this new function and...
16668         (should_skip_pass_p): ...this new function.
16670 2017-01-06  Nathan Sidwell  <nathan@acm.org>
16672         * ipa-visibility.c (function_and_variable_visibility): Reformat
16673         comments and long lines.  Remove extrneous if.
16674         * symtab.c (symtab_node::make_decl_local): Fix code format.
16675         (symtab_node::set_section_for_node): Fix comment typo.
16677 2017-01-06  Martin Liska  <mliska@suse.cz>
16679         PR bootstrap/79003
16680         * lra-constraints.c: Rename invariant to lra_invariant.
16681         * predict.c (set_even_probabilities): Initialize e to NULL.
16683 2017-01-05  Martin Sebor  <msebor@redhat.com>
16685         PR tree-optimization/78910
16686         * gimple-ssa-sprintf.c (tree_digits): Add an argument.
16687         (format_integer): Correct off-by-one error in the handling
16688         of precision with negative numbers in signed conversions..
16690 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
16692         * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
16694 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
16696         PR tree-optimization/71016
16697         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
16698         factor_out_conditional_conversion.  Formatting fix.
16699         (factor_out_conditional_conversion): Add cond_stmt argument.
16700         If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
16701         cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
16702         Formatting fix.
16704 2017-01-05  David Malcolm  <dmalcolm@redhat.com>
16706         * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
16707         read-rtl-function.o, and selftest-rtl.o.
16708         * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
16709         (selftest::aarch64_test_loading_full_dump): New function.
16710         (selftest::aarch64_run_selftests): New function.
16711         (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
16712         selftest::aarch64_run_selftests.
16713         * config/i386/i386.c
16714         (selftest::ix86_test_loading_dump_fragment_1): New function.
16715         (selftest::ix86_test_loading_call_insn): New function.
16716         (selftest::ix86_test_loading_full_dump): New function.
16717         (selftest::ix86_test_loading_unspec): New function.
16718         (selftest::ix86_run_selftests): Call the new functions.
16719         * emit-rtl.c (maybe_set_max_label_num): New function.
16720         * emit-rtl.h (maybe_set_max_label_num): New decl.
16721         * function.c (instantiate_decls): Guard call to
16722         instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
16723         * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
16724         "static".
16725         * gensupport.c (gen_reader::gen_reader): Pass "false"
16726         for new "compact" param of rtx_reader.
16727         * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
16728         rather than an empty string for NULL strings.
16729         * read-md.c: Potentially include config.h rather than bconfig.h.
16730         Wrap include of errors.h with #ifdef GENERATOR_FILE.
16731         (have_error): New global, copied from errors.c.
16732         (md_reader::read_name): Rename to...
16733         (md_reader::read_name_1): ...this, adding "out_loc" param,
16734         and converting "missing name or number" to returning false, rather
16735         than failing.
16736         (md_reader::read_name): Reimplement in terms of read_name_1.
16737         (md_reader::read_name_or_nil): New function.
16738         (md_reader::read_string): Handle "(nil)" by returning NULL.
16739         (md_reader::md_reader): Add new param "compact".
16740         (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
16741         (md_reader::read_file): New method.
16742         * read-md.h (md_reader::md_reader): Add new param "compact".
16743         (md_reader::read_file): New method.
16744         (md_reader::is_compact): New accessor.
16745         (md_reader::read_name): Convert return type from void to file_location.
16746         (md_reader::read_name_or_nil): New decl.
16747         (md_reader::read_name_1): New decl.
16748         (md_reader::m_compact): New field.
16749         (noop_reader::noop_reader): Pass "false" for new "compact" param
16750         of rtx_reader.
16751         (rtx_reader::rtx_reader): Add new "compact" param.
16752         (rtx_reader::read_rtx_operand): Make virtual and convert return
16753         type from void to rtx.
16754         (rtx_reader::read_until): New decl.
16755         (rtx_reader::handle_any_trailing_information): New virtual function.
16756         (rtx_reader::postprocess): New virtual function.
16757         (rtx_reader::finalize_string): New virtual function.
16758         (rtx_reader::m_in_call_function_usage): New field.
16759         (rtx_reader::m_reuse_rtx_by_id): New field.
16760         * read-rtl-function.c: New file.
16761         * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
16762         * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
16763         (selftest::verify_three_block_rtl_cfg): New decl.
16764         * read-rtl-function.h: New file.
16765         * read-rtl.c: Potentially include config.h rather than bconfig.h.
16766         For host, include function.h, memmodel.h, and emit-rtl.h.
16767         (one_time_initialization): New function.
16768         (struct compact_insn_name): New struct.
16769         (compact_insn_names): New array.
16770         (find_code): Handle insn codes in compact dumps.
16771         (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
16772         (bind_subst_iter_and_attr): Likewise.
16773         (add_condition_to_string): Likewise.
16774         (add_condition_to_rtx): Likewise.
16775         (apply_attribute_uses): Likewise.
16776         (add_current_iterators): Likewise.
16777         (apply_iterators): Likewise.
16778         (initialize_iterators): Guard usage of apply_subst_iterator with
16779         #ifdef GENERATOR_FILE.
16780         (read_conditions): Wrap with #ifdef GENERATOR_FILE.
16781         (md_reader::read_mapping): Likewise.
16782         (add_define_attr_for_define_subst): Likewise.
16783         (add_define_subst_attr): Likewise.
16784         (read_subst_mapping): Likewise.
16785         (check_code_iterator): Likewise.
16786         (rtx_reader::read_rtx): Likewise.  Move one-time initialization
16787         logic to...
16788         (one_time_initialization): New function.
16789         (rtx_reader::read_until): New method.
16790         (read_flags): New function.
16791         (parse_reg_note_name): New function.
16792         (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
16793         Handle reuse_rtx ids.
16794         Wrap iterator lookup within #ifdef GENERATOR_FILE.
16795         Add parsing support for RTL dumps, mirroring the special-cases in
16796         print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
16797         values, and calling handle_any_trailing_information.
16798         (rtx_reader::read_rtx_operand): Convert return type from void
16799         to rtx, returning return_rtx.  Handle case 'e'.  Call
16800         finalize_string on XSTR and XTMPL fields.
16801         (rtx_reader::read_nested_rtx):  Handle dumps in which trailing
16802          "(nil)" values were omitted.  Call the postprocess vfunc on the
16803         return_rtx.
16804         (rtx_reader::rtx_reader): Add new "compact" param and pass to base
16805         class ctor.  Initialize m_in_call_function_usage.  Call
16806         one_time_initialization.
16807         * rtl-tests.c (selftest::test_uncond_jump): Call
16808         set_new_first_and_last_insn.
16809         * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
16810         * selftest-rtl.c: New file.
16811         * selftest-rtl.h (class selftest::rtl_dump_test): New class.
16812         (selftest::get_insn_by_uid): New decl.
16813         * selftest-run-tests.c (selftest::run_tests): Call
16814         read_rtl_function_c_tests.
16815         * selftest.h  (selftest::read_rtl_function_c_tests): New decl.
16816         * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
16817         dumps.
16819 2017-01-05  Uros Bizjak  <ubizjak@gmail.com>
16821         * config/i386/i386.md (*testqi_ext_3): No need to handle memory
16822         operands in a special way.  Assert that pos+len <= mode precision.
16824 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
16826         * common.opt (fvect-cost-model): Remove RejectNegative flag, use
16827         3 argument Alias with unlimited for the negative form.
16828         (fno-vect-cost-model): Removed.
16830 2017-01-05  Martin Liska  <mliska@suse.cz>
16832         * hsa-gen.c (gen_hsa_divmod): New function.
16833         (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
16835 2017-01-05  Martin Liska  <mliska@suse.cz>
16837         PR pch/78970
16838         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
16839         header.
16841 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16843         * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
16844         small constant length operands.
16846 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16848         * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
16849         between loop iterations.
16851 2017-01-05  Martin Liska  <mliska@suse.cz>
16853         PR sanitizer/78815
16854         * gimplify.c (gimplify_decl_expr): Compare to
16855         asan_poisoned_variables instread of checking flags.
16856         (gimplify_target_expr): Likewise.
16857         (gimplify_expr): Likewise.
16858         (gimplify_function_tree): Conditionally initialize
16859         asan_poisoned_variables.
16861 2017-01-04  Jeff Law  <law@redhat.com>
16863         PR tree-optimizatin/78812
16864         * rtl.h (contains_mem_rtx_p): Prototype.
16865         * ifcvt.c (containts_mem_rtx_p): Move from here to...
16866         * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
16867         * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
16868         and prune MEMs that are not at the toplevel of a SET_SRC rtx.  Look
16869         through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
16871 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
16873         * input.c (assert_char_at_range): Default-initialize actual_range.
16875 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
16877         * df-scan.c (df_ref_create_structure): Make regno unsigned,
16878         to match the caller.
16880 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
16882         * cfgexpand.c (expand_gimple_basic_block): Disregard debug
16883         insns after final jump in test to emit dummy move.
16885 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
16887         * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
16888         * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
16890 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
16892         * multiple_target.c (create_dispatcher_calls): Init e_next.
16893         * tree-ssa-loop-split.c (split_loop): Init border.
16894         * tree-vect-loop.c (vect_determine_vectorization_factor): Init
16895         scalar_type.
16897 2017-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
16899         PR target/71977
16900         PR target/70568
16901         PR target/78823
16902         * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
16903         (altivec_register_operand): Do not return true if the operand
16904         contains a SUBREG mixing SImode and SFmode.
16905         (vsx_register_operand): Likewise.
16906         (vsx_reg_sfsubreg_ok): New predicate.
16907         (vfloat_operand): Do not return true if the operand contains a
16908         SUBREG mixing SImode and SFmode.
16909         (vint_operand): Likewise.
16910         (vlogical_operand): Likewise.
16911         (gpc_reg_operand): Likewise.
16912         (int_reg_operand): Likewise.
16913         * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
16914         * config/rs6000/rs6000.c (valid_sf_si_move): New function to
16915         determine if a MOVSI or MOVSF operation contains SUBREGs that mix
16916         SImode and SFmode.
16917         (rs6000_emit_move_si_sf_subreg): New helper function.
16918         (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
16919         fixup SUBREGs involving SImode and SFmode.
16920         * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
16921         numbers for the new peephole2 optimization.
16922         (peephole2 for SFmode unions): New peephole2 to optimize cases in
16923         the GLIBC math library that do AND/IOR/XOR operations on single
16924         precision floating point.
16925         * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
16926         target macros to say whether we need to avoid SUBREGs mixing
16927         SImode and SFmode.
16928         (TARGET_ALLOW_SF_SUBREG): Likewise.
16929         * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
16930         (UNSPEC_SI_FROM_SF): Likewise.
16931         (iorxor): Change spacing.
16932         (and_ior_xor): New iterator for AND, IOR, and XOR.
16933         (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
16934         (movdi_from_sf_zero_ext): Likewise.
16935         (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
16936         instead of gpc_reg_operand.  Add SImode/SFmode SUBREG support.
16937         (movsf_from_si): New insn for SImode/SFmode SUBREG support.
16938         (fma<mode>4): Use gpc_reg_operand instead of register_operand.
16939         (fms<mode>4): Likewise.
16940         (fnma<mode>4): Likewise.
16941         (fnms<mode>4): Likewise.
16942         (nfma<mode>4): Likewise.
16943         (nfms<mode>4): Likewise.
16945 2017-01-04  Marek Polacek  <polacek@redhat.com>
16947         PR c++/64767
16948         * doc/invoke.texi: Document -Wpointer-compare.
16950 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
16952         * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
16953         RejectNegative.
16955         * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
16956         descriptions for -gdwarf-5 and emit them as uleb128 instead of
16957         2-byte data.
16959 2017-01-04  Kelvin Nilsen  <kelvin@gcc.gnu.org>
16961         PR target/78056
16962         * doc/sourcebuild.texi (PowerPC-specific attributes): Add
16963         documentation of the powerpc_popcntb_ok attribute.
16964         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
16965         code to issue warning messages if a requested CPU configuration is
16966         not supported by the binary (assembler and loader) toolchain.
16967         (spe_init_builtins): Add two assertions to prevent ICE if attempt is
16968         made to define a built-in function that has been disabled.
16969         (paired_init_builtins): Add assertion to prevent ICE if attempt is
16970         made to define a built-in function that has been disabled.
16971         (altivec_init_builtins): Add comment explaining why definition
16972         of the DST built-in functions is not preceded by an assertion
16973         check.  Add assertions to prevent ICE if attempts are made to
16974         define an altivec predicate or an abs* built-in function that has
16975         been disabled.
16976         (htm_init_builtins): Add comment explaining why definition of the
16977         htm built-in functions is not preceded by an assertion check.
16979 2017-01-04  Jeff Law  <law@redhat.com>
16981         PR tree-optimizatin/67955
16982         * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
16983         Allow any SSA_VAR_P as the base objects.  Use integer_zerop.  Verify
16984         the points-to solution does not include pt_null.  Use DECL_PT_UID
16985         unconditionally.
16987 2017-01-04  Uros Bizjak  <ubizjak@gmail.com>
16989         * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
16990         Use gen_int_mode instead of gen_lopwart for const_int operands.
16992 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
16994         PR tree-optimization/71563
16995         * match.pd: Simplify X << Y into X if Y is known to be 0 or
16996         out of range value - has low bits known to be zero.
16998 2017-01-04  Alan Modra  <amodra@gmail.com>
17000         * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
17001         * configure: Regenerate.
17002         * config.in: Regenerate.
17004 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
17006         PR bootstrap/77569
17007         * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
17008         a substring of the message, but strcmp with the whole message.  Ifdef
17009         ENABLE_NLS, translate the message first using dgettext.
17011 2017-01-03  Jeff Law  <law@redhat.com>
17013         PR tree-optimizatin/78856
17014         * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
17015         (mark_threaded_blocks): Remove code to truncate thread paths that
17016         cross multiple loop headers.  Instead invalidate the cached loop
17017         iteration information and handle case of a thread path walking
17018         into an irreducible region.
17020 2017-01-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
17022         PR target/78900
17023         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
17024         assertions.  Add support for doing the signbit if the IEEE 128-bit
17025         floating point value is in a GPR.
17026         * config/rs6000/rs6000.md (Fsignbit): Delete.
17027         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
17028         Update the length attribute if the value is in a GPR.
17029         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
17030         the sign or zero extension instruction, since the value is always 0/1.
17031         (signbit<mode>2_dm2): Delete using <Fsignbit>.
17033         PR target/78953
17034         * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
17035         extracting SImode to a GPR register so that we can generate a
17036         store, limit the vector to be in a traditional Altivec register
17037         for the vextuwrx instruction.
17039 2017-01-03  Ian Lance Taylor  <iant@google.com>
17041         * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
17043 2017-01-03  Martin Sebor  <msebor@redhat.com>
17045         PR tree-optimization/78696
17046         * gimple-ssa-sprintf.c (format_floating): Correct handling of
17047         precision.  Use MPFR for %f for greater fidelity.  Correct handling
17048         of %g.
17049         (pass_sprintf_length::compute_format_length): Set width and precision
17050         specified by asrerisk to void_node for vararg functions.
17051         (try_substitute_return_value): Adjust dump output.
17053 2017-01-03  David Edelsohn  <dje.gcc@gmail.com>
17055         * doc/invoke.texi (RS6000 options): LRA is enabled by default.
17057 2017-01-03  Eric Botcazou  <ebotcazou@adacore.com>
17059         * doc/invoke.texi (SPARC options): Document -mlra as the default.
17060         * config/sparc/sparc.c (sparc_option_override): Force LRA unless
17061         -mlra/-mno-lra was passed to the compiler.
17063 2017-01-03  James Cowgill  <James.Cowgill@imgtec.com>
17065         PR rtl-optimization/65618
17066         * emit-rtl.c (try_split): Move initialization of "before" and
17067         "after" to just before the call to emit_insn_after_setloc.
17069 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
17071         * doc/md.texi (Standard Names): Remove reference to Java frontend.
17073 2017-01-03  Pierre-Marie de Rodat  <derodat@adacore.com>
17075         * dwarf2out.c (gen_enumeration_type_die): When
17076         -gno-strict-dwarf, add a DW_AT_encoding attribute.
17078 2017-01-03  Jakub Jelinek  <jakub@redhat.com>
17080         PR tree-optimization/78965
17081         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
17082         Change first argument from const call_info & to call_info &.  For %n
17083         set info.nowrite to false.
17085         PR middle-end/78901
17086         * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
17087         possibly throwing calls.
17089         * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
17090         and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
17091         and fns handling, rather than in a separate case SSA_NAME.
17093 2017-01-02  Jeff Law  <law@redhat.com>
17095         * config/darwin-driver.c (darwin_driver_init): Const-correctness
17096         fixes for first_period and second_period variables.
17098 2017-01-02  Uros Bizjak  <ubizjak@gmail.com>
17100         PR target/78967
17101         * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
17102         (*insvqi_1): New insn pattern.
17103         (*insvqi_1_mem_rex64): Ditto.
17104         (*insvqi_2): Ditto.
17105         (*insvqi_3): Rename from *insvqi.
17107         (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
17109 2017-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
17111         * doc/cfg.texi (Edges): Remove reference to Java.
17112         (Maintaining the CFG): Ditto.
17114 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
17116         PR middle-end/77674
17117         * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
17118         transparent aliases.
17120 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
17122         PR middle-end/77484
17123         * predict.def (PRED_CALL): Update hitrate.
17124         (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
17125         * predict.c (tree_estimate_probability_bb): Split CALL predictor
17126         into direct/indirect/polymorphic variants.
17128 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
17130         Update copyright years.
17132         * gcc.c (process_command): Update copyright notice dates.
17133         * gcov-dump.c (print_version): Ditto.
17134         * gcov.c (print_version): Ditto.
17135         * gcov-tool.c (print_version): Ditto.
17136         * gengtype.c (create_file): Ditto.
17137         * doc/cpp.texi: Bump @copying's copyright year.
17138         * doc/cppinternals.texi: Ditto.
17139         * doc/gcc.texi: Ditto.
17140         * doc/gccint.texi: Ditto.
17141         * doc/gcov.texi: Ditto.
17142         * doc/install.texi: Ditto.
17143         * doc/invoke.texi: Ditto.
17145 Copyright (C) 2017 Free Software Foundation, Inc.
17147 Copying and distribution of this file, with or without modification,
17148 are permitted in any medium without royalty provided the copyright
17149 notice and this notice are preserved.