PR middle-end/81005
[official-gcc.git] / gcc / ChangeLog
blobada9d7d3688f1e7993ed7be757ed9927d8625a42
1 2017-06-08  Jakub Jelinek  <jakub@redhat.com>
3         PR middle-end/81005
4         * ubsan.c (instrument_null): Avoid pointless code temporary.
5         (pass_ubsan::execute): Instrument aggregate arguments of calls.
7 2017-06-08  Uros Bizjak  <ubizjak@gmail.com>
9         PR target/81015
10         Revert:
11         2016-12-14  Uros Bizjak  <ubizjak@gmail.com>
13         PR target/59874
14         * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
15         (*clzhi2): Ditto.
17 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
19         * predict.c (unlikely_executed_edge_p): Move ahead.
20         (probably_never_executed_edge_p): Use it.
22 2017-06-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
24         PR middle-end/79988
25         * tree-chkp.c (chkp_gimple_call_builtin_p): Remove
26         gimple_call_builtin_p call.
28 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
30         * system.h (fancy_abort): Annotate by ATTRIBUTE_COLD.
31         * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
32         rtl_check_failed_type2, rtl_check_failed_code1,
33         rtl_check_failed_code2, rtl_check_failed_code_mode,
34         rtl_check_failed_block_symbol, cwi_check_failed_bounds,
35         rtvec_check_failed_bounds, rtl_check_failed_flag,
36         _fatal_insn_not_found, _fatal_insn): Likewise.
37         * tree.h (tree_contains_struct_check_failed,
38         tree_check_failed, tree_not_check_failed,
39         tree_class_check_failed, tree_range_check_failed,
40         tree_not_class_check_failed, tree_int_cst_elt_check_failed,
41         tree_vec_elt_check_failed, phi_node_elt_check_failed,
42         tree_operand_check_failed, omp_clause_check_failed,
43         omp_clause_operand_check_failed, omp_clause_range_check_failed):
44         Likewise.
46 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
48         * cgraph.c (cgraph_edge::maybe_hot_p): Do not check
49         flag_branch_probabilities.
50         * ipa-inline.c (edge_badness): Likewise.
51         * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
52         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
53         * predict.c (maybe_hot_frequency_p): Likewise.
54         (probably_never_executed): Likewise.
55         * sched-ebb.c (schedule_ebbs): Likewise.
56         * sched-rgn.c (find_single_block_region): Likewise.
57         * tracer.c (tail_duplicate): Likewise.
59 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
61         * opts.c (finish_options): x_flag_reorder_blocks_and_partition no
62         longer requires x_flag_profile_use.
64 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
66         * cfgrtl.c (cfg_layout_initialize): Check crtl->has_bb_partition
67         instead of flag_reorder_blocks_and_partition.
68         * dbxout.c (dbxout_function_end): Likewise.
69         * dwarf2out.c (gen_subprogram_die): Likewise.
70         * haifa-sched.c (sched_create_recovery_edges): Likewise.
71         * hw-doloop.c (reorg_loops): Likewise.
72         * varasm.c (assemble_start_function,
73         assemble_end_function): Likewise.
74         (decide_function_section): Do not check for
75         flag_reorder_blocks_and_partition.
77 2017-06-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
79         * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
80         New function.
81         (chkp_get_hard_register_fake_addr_expr): Ditto.
82         (chkp_build_addr_expr): Add check for hard reg case.
83         (chkp_parse_array_and_component_ref): Ditto.
84         (chkp_find_bounds_1): Ditto.
85         (chkp_process_stmt): Don't generate bounds store for
86         hard reg case.
88 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
90         * predict.c (maybe_hot_bb_p): Do not check profile status.
91         (maybe_hot_edge_p): Likewise.
92         (probably_never_executed): Check for zero counts even if profile
93         is not read.
94         (unlikely_executed_edge_p): New function.
95         (unlikely_executed_stmt_p): New function.
96         (unlikely_executed_bb_p): New function.
97         (set_even_probabilities): Use unlikely predicates.
98         (combine_predictions_for_bb): Likewise.
99         (predict_paths_for_bb): Likewise.
100         (predict_paths_leading_to_edge): Likewise.
101         (determine_unlikely_bbs): New function.
102         (estimate_bb_frequencies): Use it.
103         (compute_function_frequency): Use zero counts even if profile is
104         not read.
105         * profile-count.h: Fix typo.
107 2017-08-08  Julia Koval  <julia.koval@intel.com>
109         * config/i386/avx512bwintrin.h (_mm512_mask_cvtepi16_storeu_epi8,
110         _mm512_mask_cvtsepi16_storeu_epi8,
111         _mm512_mask_cvtusepi16_storeu_epi8): New intrinsics.
112         * config/i386/avx512vlbwintrin.h (_mm256_mask_cvtepi16_storeu_epi8,
113         _mm_mask_cvtsepi16_storeu_epi8, _mm256_mask_cvtsepi16_storeu_epi8,
114         _mm_mask_cvtusepi16_storeu_epi8, _mm256_mask_cvtusepi16_storeu_epi8,
115         _mm_mask_cvtepi16_storeu_epi8): New intrinsics.
116         * config/i386/i386-builtin-types.def (PV8Q, V8QI): New pointer type.
117         (VOID_FTYPE_PV32QI_V32HI_USI, VOID_FTYPE_PV8QI_V8HI_UQI,
118         VOID_FTYPE_PV16QI_V16HI_UHI): New function types.
119         * config/i386/i386-builtin.def (__builtin_ia32_pmovwb128mem_mask,
120         __builtin_ia32_pmovwb256mem_mask, __builtin_ia32_pmovswb128mem_mask,
121         __builtin_ia32_pmovswb256mem_mask, __builtin_ia32_pmovuswb128mem_mask,
122         __builtin_ia32_pmovuswb256mem_mask,
123         __builtin_ia32_pmovuswb512mem_mask, __builtin_ia32_pmovswb512mem_mask)
124         __builtin_ia32_pmovwb512mem_mask): New builtins.
126 2017-08-08  Julia Koval  <julia.koval@intel.com>
128         PR target/73350,80862
129         * config/i386/subst.md (round): Fix round pattern.
130         * config/i386/i386.c (ix86_erase_embedded_rounding):
131         Fix erasing rounding for the fixed pattern.
133 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
135         * cfgbuild.c (find_many_sub_basic_blocks): Fix thinko.
137 2017-06-08  Martin Liska  <mliska@suse.cz>
139         PR gcov-profile/80911
140         * gcov.c (block_info::block_info): New constructor.
142 2017-06-08  Tamar Christina  <tamar.christina@arm.com>
144         PR middle-end/77925
145         PR middle-end/77926
146         PR middle-end/66462
148         * gcc/builtins.c (fold_builtin_fpclassify): Remove.
149         (fold_builtin_interclass_mathfn): Remove.
150         (expand_builtin): Add builtins to lowering list.
151         (fold_builtin_n): Remove fold_builtin_varargs.
152         (fold_builtin_varargs): Remove.
153         * gcc/builtins.def (BUILT_IN_ISZERO, BUILT_IN_ISSUBNORMAL): New.
154         * gcc/real.h (get_min_float): New.
155         (real_format): Add is_ieee_compatible field.
156         * gcc/real.c (get_min_float): New.
157         (ieee_single_format): Set is_ieee_compatible flag.
158         * gcc/gimple-low.c (lower_stm): Define BUILT_IN_FPCLASSIFY,
159         CASE_FLT_FN (BUILT_IN_ISINF), BUILT_IN_ISINFD32, BUILT_IN_ISINFD64,
160         BUILT_IN_ISINFD128, BUILT_IN_ISNAND32, BUILT_IN_ISNAND64,
161         BUILT_IN_ISNAND128, BUILT_IN_ISNAN, BUILT_IN_ISNORMAL, BUILT_IN_ISZERO,
162         BUILT_IN_ISSUBNORMAL, CASE_FLT_FN (BUILT_IN_FINITE), BUILT_IN_FINITED32
163         BUILT_IN_FINITED64, BUILT_IN_FINITED128, BUILT_IN_ISFINITE.
164         (lower_builtin_fpclassify, is_nan, is_normal, is_infinity): New.
165         (is_zero, is_subnormal, is_finite, use_ieee_int_mode): Likewise.
166         (lower_builtin_isnan, lower_builtin_isinfinite): Likewise.
167         (lower_builtin_isnormal, lower_builtin_iszero): Likewise.
168         (lower_builtin_issubnormal, lower_builtin_isfinite): Likewise.
169         (emit_tree_cond, get_num_as_int, emit_tree_and_return_var): New.
170         (mips_single_format): Likewise.
171         (motorola_single_format): Likewise.
172         (spu_single_format): Likewise.
173         (ieee_double_format): Likewise.
174         (mips_double_format): Likewise.
175         (motorola_double_format): Likewise.
176         (ieee_extended_motorola_format): Likewise.
177         (ieee_extended_intel_128_format): Likewise.
178         (ieee_extended_intel_96_round_53_format): Likewise.
179         (ibm_extended_format): Likewise.
180         (mips_extended_format): Likewise.
181         (ieee_quad_format): Likewise.
182         (mips_quad_format): Likewise.
183         (vax_f_format): Likewise.
184         (vax_d_format): Likewise.
185         (vax_g_format): Likewise.
186         (decimal_single_format): Likewise.
187         (decimal_quad_format): Likewise.
188         (iee_half_format): Likewise.
189         (mips_single_format): Likewise.
190         (arm_half_format): Likewise.
191         (real_internal_format): Likewise.
192         * gcc/doc/extend.texi: Add documentation for built-ins.
193         * gcc/c/c-typeck.c (convert_arguments): Add BUILT_IN_ISZERO
194         and BUILT_IN_ISSUBNORMAL.
196 2017-06-07  Carl Love  <cel@us.ibm.com>
198         * config/rs6000/rs6000-c: The return type of the following
199         built-in functions was implemented as int not long long.  Fix sign
200         of return value for the unsigned version of vec_mulo and vec_mule.
201         vector unsigned long long vec_bperm (vector unsigned long long,
202                                              vector unsigned char)
203         vector signed long long vec_mule (vector signed int,
204                                           vector signed int)
205         vector unsigned long long vec_mule (vector unsigned int,
206                                             vector unsigned int)
207         vector signed long long vec_mulo (vector signed int,
208                                           vector signed int)
209         vector unsigned long long vec_mulo (vector unsigned int,
210                                             vector unsigned int)
211         * doc/extend.texi: Fix the documentation for the built-in
212         functions.
214 2017-06-07  Carl Love  <cel@us.ibm.com>
216         PR target/80982
217         * config/rs6000/altivec.md (double<mode>2): Fix the implementation of
218         for BE.
220 2017-06-07  Carl Love  <cel@us.ibm.com>
222         * config/rs6000/altivec.md: Fix argument swizzle in vec_doublel
223         support, Generate       doublehv for signed int/float for BE case only.
225 2017-06-07  Alexander Monakov  <amonakov@ispras.ru>
227         * doc/invoke.texi (mcx16): Rewrite.
229 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
231         * config/rs6000/predicates.md (rs6000_nonimmediate_operand): Delete.
232         * config/rs6000/rs6000.md (*movsi_internal1, movsi_from_sf,
233         *mov<mode>_softfloat, and an anonymous splitter): Use
234         nonimmediate_operand instead of rs6000_nonimmediate_operand.
236 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
238         * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE_ACC and
239         SPEFSCR registers.
240         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
241         (enum rs6000_reg_type): Delete SPE_ACC_TYPE and SPEFSCR_REG_TYPE.
242         (rs6000_debug_reg_global): Adjust.
243         (rs6000_init_hard_regno_mode_ok): Adjust.
244         (rs6000_dbx_register_number): Adjust.
245         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change to 115.
246         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
247         Remove SPE_ACC and SPEFSCR.
248         (REG_ALLOC_ORDER): Ditto.
249         (FRAME_POINTER_REGNUM): Change to 111.
250         (enum reg_class): Remove the SPE_ACC and SPEFSCR registers.
251         (REG_CLASS_NAMES): Ditto.
252         (REG_CLASS_CONTENTS): Delete the SPE_ACC and SPEFSCR registers.
253         (REGISTER_NAMES): Ditto.
254         (ADDITIONAL_REG_NAMES): Ditto.
255         (rs6000_reg_names): Ditto.
256         * config/rs6000/rs6000.md: Renumber some register number
257         define_constants.
259 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
261         * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE high
262         registers.
263         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
264         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change from 149
265         to 117.
266         (DWARF_REG_TO_UNWIND_COLUMN): Do not define.
267         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
268         Delete the SPE high registers.
269         (REG_ALLOC_ORDER): Ditto.
270         (enum reg_class): Remove SPE_HIGH_REGS.
271         (REG_CLASS_NAMES): Ditto.
272         (REG_CLASS_CONTENTS): Delete the SPE high registers.
273         (REGISTER_NAMES): Ditto.
274         (rs6000_reg_names): Ditto.
275         * doc/tm.texi.in: Remove SPE as example.
276         * doc/tm.texi: Regenerate.
278 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
280         * config/rs6000/8540.md (ppc8540_brinc): Delete.
281         * config/rs6000/e500mc.md (e500mc_brinc): Delete.
282         * config/rs6000/e500mc64.md (e500mc64_brinc): Delete.
283         * config/rs6000/rs6000.md (type): Remove "brinc".
285 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
287         * config.gcc (powerpc*-*-*): Don't add spe.h to extra_headers.
288         (powerpc*-linux*spe*): Use ${cpu_type} instead of rs6000.
289         * config/rs6000/linuxspe.h: Delete file.
290         * config/rs6000/rs6000.md: Don't include spe.md.
291         * config/rs6000/spe.h: Delete file.
292         * config/rs6000/spe.md: Delete file.
293         * config/rs6000/t-rs6000: Remove spe.md.
295 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
297         * config/rs6000/predicates.md (reg_or_mem_operand): Reformat.
298         (reg_or_none500mem_operand): Delete.
299         * config/rs6000/rs6000.md (extendsfdf2): Use reg_or_mem_operand
300         instead of reg_or_none500mem_operand.
302 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
304         * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
305         handling of SPE flags.
306         * config/rs6000/rs6000.opt (-mspe, -mspe=no, -mspe=yes): Delete.
308 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
310         * config/rs6000/rs6000-common.c (rs6000_handle_option): Remove
311         SPE ABI handling.
312         * config/rs6000/paired.md (paired_negv2sf2): Rename to negv2sf2.
313         (paired_absv2sf2, paired_addv2sf3, paired_subv2sf3, paired_mulv2sf3,
314         paired_divv2sf3): Similar.
315         * config/rs6000/predicates.md: Replace TARGET_SPE, TARGET_SPE_ABI,
316         SPE_VECTOR_MODE and SPE_HIGH_REGNO_P by 0; simplify.
317         * config/rs6000/rs6000-builtin.def: Delete RS6000_BUILTIN_E and
318         RS6000_BUILTIN_S.
319         Delete BU_SPE_1, BU_SPE_2, BU_SPE_3, BU_SPE_E, BU_SPE_P, and BU_SPE_X.
320         Rename the paired_* instruction patterns.
321         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Do not
322         define __SPE__.
323         * config/rs6000/rs6000-protos.h (invalid_e500_subreg): Delete.
324         * config/rs6000/rs6000.c: Delete RS6000_BUILTIN_E and RS6000_BUILTIN_S.
325         (struct rs6000_stack): Delete fields spe_gp_save_offset, spe_gp_size,
326         spe_padding_size, and spe_64bit_regs_used.  Replace TARGET_SPE and
327         TARGET_SPE_ABI with 0, simplify.  Replace SPE_VECTOR_MODE with
328         PAIRED_VECTOR_MODE.
329         (struct machine_function): Delete field spe_insn_chain_scanned_p.
330         (spe_func_has_64bit_regs_p): Delete.
331         (spe_expand_predicate_builtin): Delete.
332         (spe_expand_evsel_builtin): Delete.
333         (TARGET_DWARF_REGISTER_SPAN): Do not define.
334         (TARGET_MEMBER_TYPE_FORCES_BLK): Do not define.
335         (invalid_e500_subreg): Delete.
336         (rs6000_legitimize_address): Always force_reg op2 as well, for
337         paired single memory accesses.
338         (rs6000_member_type_forces_blk): Delete.
339         (rs6000_spe_function_arg): Delete.
340         (rs6000_expand_unop_builtin): Delete SPE handling.
341         (rs6000_expand_binop_builtin): Ditto.
342         (spe_expand_stv_builtin): Delete.
343         (bdesc_2arg_spe): Delete.
344         (spe_expand_builtin): Delete.
345         (spe_expand_predicate_builtin): Delete.
346         (spe_expand_evsel_builtin): Delete.
347         (rs6000_invalid_builtin): Remove RS6000_BTM_SPE handling.
348         (spe_init_builtins): Delete.
349         (spe_func_has_64bit_regs_p): Delete.
350         (savres_routine_name): Delete "info" parameter.  Adjust callers.
351         (rs6000_emit_stack_reset): Ditto.
352         (rs6000_dwarf_register_span): Delete.
353         * config/rs6000/rs6000.h (TARGET_SPE_ABI, TARGET_SPE,
354         UNITS_PER_SPE_WORD, SPE_HIGH_REGNO_P, SPE_SIMD_REGNO_P,
355         SPE_VECTOR_MODE, RS6000_BTM_SPE, RS6000_BUILTIN_E, RS6000_BUILTIN_S):
356         Delete.
357         * config/rs6000/rs6000.md (FIRST_SPE_HIGH_REGNO, LAST_SPE_HIGH_REGNO):
358         Delete.
359         * config/rs6000/rs6000.opt (-mabi=spe, -mabi=no-spe): Delete.
360         * config/rs6000/spe.md: Delete every pattern that uses TARGET_SPE.
361         * config/rs6000/vector.md (absv2sf2, negv2sf2, addv2sf3, subv2sf3,
362         mulv2sf3, divv2sf3): Delete expanders.
364 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
366         config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Delete.
368 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
370         * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit): Delete.
371         * config/rs6000/rs6000.c: Ditto.
373 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
375         * config/rs6000/predicated.md (rs6000_cbranch_operator): Delete.
376         * config/rs6000/rs6000.md: Replace rs6000_cbranch_operator by
377         comparison_operator.
379 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
381         * config/rs6000/rs6000.c: Remove everything related to -mfloat-gprs.
382         * config/rs6000/rs6000.opt: Ditto.
383         * config/rs6000/t-rtems: Ditto.
385 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
387         * config/rs6000/predicates.md: Replace TARGET_E500_DOUBLE and
388         TARGET_E500_SINGLE by 0, simplify.
389         * config/rs6000/rs6000.c: Ditto.
390         (rs6000_option_override_internal): Delete CHECK_E500_OPTIONS.
391         (spe_build_register_parallel): Delete.
392         * config/rs6000/rs6000.h: Delete TARGET_E500_SINGLE,
393         TARGET_E500_DOUBLE, and CHECK_E500_OPTIONS.
394         * config/rs6000/rs6000.md: Replace TARGET_E500_DOUBLE,
395         TARGET_E500_SINGLE, and <E500_CONVERT> by 0, simplify.
396         (E500_CONVERT): Delete.
397         * config/rs6000/spe.md: Remove many patterns and all define_constants.
399 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
401         * config/rs6000/darwin.md: Replace TARGET_FPRS by 1 and simplify.
402         * config/rs6000/dfp.md: Ditto.
403         (negdd2, *negdd2_fpr): Merge.
404         (absdd2, *absdd2_fpr): Merge.
405         (negtd2, *negtd2_fpr): Merge.
406         (abstd2, *abstd2_fpr): Merge.
407         * config/rs6000/e500.h: Delete file.
408         * config/rs6000/predicates.md (rs6000_cbranch_operator): Replace
409         TARGET_FPRS by 1 and simplify.
410         * config/rs6000/rs6000-c.c: Ditto.
411         * config/rs6000/rs6000.c: Ditto.  Also replace TARGET_SF_SPE and
412         TARGET_DF_SPE by 0.
413         * config/rs6000/rs6000.h: Ditto.  Delete TARGET_SF_SPE and
414         TARGET_DF_SPE.
415         * config/rs6000/rs6000.md: Ditto.
416         (floatdidf2, *floatdidf2_fpr): Merge.
417         (move_from_CR_gt_bit): Delete.
418         * config/rs6000/spe.md: Replace TARGET_FPRS by 1 and simplify.
419         (E500_CR_IOR_COMPARE): Delete.
420         (All patterns that require !TARGET_FPRS): Delete.
421         * config/rs6000/vsx.md: Replace TARGET_FPRS by 1 and simplify.
423 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
425         * passes.def (pass_iv_canon): Move before pass_loop_distribution.
427 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
429         * graphds.c (add_edge): Intitialize edge's attached data.
430         (foll_in_subgraph, dfs_fst_edge, dfs_next_edge): New function
431         pointer parameter.  Call pointed function on each edge during
432         graph traversing.  Skip traversing the edge when the function
433         returns true.
434         (graphds_dfs, graphds_scc): Ditto.
435         (for_each_edge): New parameter.  Pass the new parameter to callback
436         function.
437         * graphds.h (skip_edge_callback): New function pointer type.
438         (graphds_dfs, graphds_scc): New function pointer parameter.
439         (graphds_edge_callback, for_each_edge): New parameter.
441 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
443         * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Factor
444         out code checking if runtime alias check is possible to below ...
445         Call the new function.
446         * tree-data-ref.c (runtime_alias_check_p): ... to new function.
447         * tree-data-ref.h (runtime_alias_check_p): New decalaration.
449 2017-06-07  Marek Polacek  <polacek@redhat.com>
451         PR sanitizer/80932
452         * fold-const.c (extract_muldiv_1) <case MINUS_EXPR>: Add
453         TYPE_OVERFLOW_WRAPS check. 
455 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
457         * tree-vect-loop-manip.c (vect_do_peeling): Don't skip vector loop
458         if versioning is required.
459         * tree-vect-loop.c (vect_analyze_loop_2): Merge niter check for loop
460         peeling with the check for versioning.
462 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
464         * tree-vectorizer.h (vect_build_loop_niters): New parameter.
465         * tree-vect-loop-manip.c (vect_build_loop_niters): New parameter.
466         Set true to new parameter if new ssa variable is defined.
467         (vect_gen_vector_loop_niters): Refactor.  Set range information
468         for the new vector loop bound variable.
469         (vect_do_peeling): Ditto.
471 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
473         * tree-affine.c (ssa.h): Include header file.
474         (tree_to_aff_combination): Handle (T1)(X - CST) when inner type
475         has wrapping overflow behavior.
477 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
479         * tree-affine.c (tree_to_aff_combination): Handle (T1)(X + X).
481 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
483         (aff_combination_expand): Move (T1)(X *+- CST) simplification to ...
484         (tree_to_aff_combination): ... here.
486 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
488         * tree-ssa-loop-ivopts.c (ivopts_estimate_reg_pressure): New
489         reg_pressure model function.
490         (ivopts_global_cost_for_size): Delete.
491         (determine_set_costs, iv_ca_recount_cost): Call new model function
492         ivopts_estimate_reg_pressure.
494 2017-06-07  Tamar Christina  <tamar.christina@arm.com>
496         * config/aarch64/aarch64.c (aarch64_rtx_costs): Make sdiv more expensive than udiv.
497         Remove floating point cases from mod.
499 2017-06-07  Tamar Christina  <tamar.christina@arm.com>
501         * config/arm/aarch-cost-tables.h (cortexa53_extra_cost): Increase idiv cost.
503 2017-06-07  Tamar Christina  <tamar.christina@arm.com>
505         * config/aarch64/aarch64.md
506         (copysignsf3): Fix mask generation.
508 2017-06-07  Jakub Jelinek  <jakub@redhat.com>
510         * dumpfile.h (enum tree_dump_index): Rename TDI_generic to
511         TDI_gimple.
512         (class dump_manager): Add register_dumps method.
513         * dumpfile.c: Include langhooks.h.
514         (dump_files): Use 0 instead of 3/4/5 for TDI_{original,gimple,nested}.
515         (FIRST_AUTO_NUMBERED_DUMP): Decrease to 1.
516         (FIRST_ME_AUTO_NUMBERED_DUMP): Define.
517         (dump_manager::dump_register): Start with 512 entries instead of 32.
518         (dump_manager::register_dumps): New method.
519         * toplev.c (general_init): Instead of invoking register_dumps
520         langhook, invoke register_dumps method on the dump manager.
521         * gimplify.c (gimplify_function_tree): Use TDI_gimple instead of
522         TDI_generic.
524 2017-06-07  Richard Sandiford  <richard.sandiford@linaro.org>
526         * doc/md.texi: Clarify the restrictions on a define_insn condition.
527         Say that # requires an associated define_split to exist, and that
528         the define_split must be suitable for use after register allocation.
530 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
532         * cfgbuild.c (find_bb_boundaries): Initialize profile of split blocks.
533         (compute_outgoing_frequencies): Also initialize zero counts.
534         (find_many_sub_basic_blocks): Do not produce uninitialized profile
535         around loops; preserve more of profile when nothing changes.
537 2017-06-06  Jim Wilson  <jim.wilson@linaro.org>
539         * config/aarch64/aarch64-cost-tables.h (qdf24xx_extra_costs): Move to
540         here.
541         * config/arm/aarch-cost-tables.h (qdf24xx_extra_costs): From here.
542         * config/arm/arm-cpu-cdata.h: Regenerate.
543         * config/arm/arm-cpu-data.h, config/arm/arm-cpu.h: Likewise.
544         * config/arm/arm-tables.opt, config/arm/arm-tune.md: Likewise.
545         * config/arm/arm-cpus.in: Delete falkor and qdf24xx entries.
546         * config/arm/arm.c (arm_qdf24xx_tune): Delete.
547         * config/arm/bpabi.h (BE8_LINK_SPEC): Delete falkor and qdf24xx
548         support.
549         * config/arm/t-aprofile (MULTILIB_MATCHES): Delete falkor and qdf24xx
550         support.
551         * config/arm/t-rmprofile: Likewise.
552         * doc/invoke.texi (ARM Options): Drop falkor and qdf24xx support.
554 2017-06-06  David S. Miller  <davem@davemloft.net>
556         PR target/80968
557         * config/sparc/sparc.c (sparc_expand_prologue): Emit frame
558         blockage if function uses alloca.
560 2017-06-06  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
562         * tree-ssa-loop-prefetch.c (struct mem_ref_group, struct mem_ref):
563         New "uid" fields to hold pretty-print IDs of group and ref.
564         Memory references are now identified as <group_id>:<ref_id>
565         instead of using [random] addresses.
566         (dump_mem_details): Simplify, no functional change.
567         (dump_mem_ref): Simplify and make output more concise.
568         Replace couple of fprintf's throughout code with calls to dump_mem_ref.
569         (find_or_create_group): Initialize group uid.
570         (record_ref): Initialize ref uid.  Improve debug output.
571         (prune_group_by_reuse, should_issue_prefetch_p,)
572         (should_issue_prefetch_p, schedule_prefetches, issue_prefetch_ref,)
573         (mark_nontemporal_store, determine_loop_nest_reuse):
574         Improve debug output.
576 2017-06-06  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
578         * dbgcnt.def (prefetch): New debug counter.
579         * tree-ssa-loop-prefetch.c (dbgcnt.h): New include.
580         (schedule_prefetches): Stop issueing prefetches if debug counter
581         tripped.
583 2017-06-06  Tom de Vries  <tom@codesourcery.com>
585         * doc/sourcebuild.texi (Testsuites, C Language Testsuites,
586         gcc.c-torture/compile): Remove mention of NO_LABEL_VALUES in fixme.
588 2017-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
590         * config/aarch64/atomics.md (atomic_compare_and_swap<mode> expander):
591         Use aarch64_reg_or_zero predicate for operand 4.
592         (aarch64_compare_and_swap<mode> define_insn_and_split):
593         Use aarch64_reg_or_zero predicate for operand 3.  Add 'Z' constraint.
594         (aarch64_store_exclusive<mode>): Likewise for operand 2.
596 2017-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
598         * config/arm/arm.c (arm_compute_save_reg_mask): Rename into ...
599         (arm_compute_save_core_reg_mask): This.
600         (thumb1_compute_save_reg_mask): Rename into ...
601         (thumb1_compute_save_core_reg_mask): This.
602         (arm_compute_save_reg0_reg12_mask): Adapt comment.
603         (arm_compute_frame_layout): Likewise.
605 2017-06-06  Richard Biener  <rguenther@suse.de>
607         PR tree-optimization/80974
608         * tree-ssa-sccvn.c (set_ssa_val_to): Do not change but only
609         keep or clear leaders SSA info.
611 2017-06-06  Tom de Vries  <tom@codesourcery.com>
613         * config/nvptx/nvptx.c (split_mode_p): New function.
614         (nvptx_declare_function_name, nvptx_print_operand): Use split_mode_p.
616 2017-06-06  Tom de Vries  <tom@codesourcery.com>
618         * config/nvptx/nvptx.c (nvptx_print_operand): Use maybe_split_mode.
620 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
622         PR bootstrap/80978
623         * tree-cfg.c (execute_fixup_cfg): Fix condition on when to rescale
624         profile.
626 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
628         * shrink-wrap.c (handle_simple_exit): Update profile.
629         (try_shrink_wrapping): Upate profile.
631 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
633         * predict.c (tree_estimate_probability_bb): Add LOCAL_ONLY.
634         (tree_guess_outgoing_edge_probabilities): New.
635         * predict.h (tree_guess_outgoing_edge_probabilities): Declare.
636         * tree-cfg.c (gimple_find_sub_bbs): Propagate profile.
638 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
640         * ipa-split.c (split_function): Initialize return bb profile.
642 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
644         * profile.c (compute_branch_probabilities): Also initialize
645         EXIT_BLOCK profile.
647 2017-06-06  Richard Biener  <rguenther@suse.de>
649         PR tree-optimization/80928
650         * tree-vect-loop.c (vect_update_vf_for_slp): Amend dumps.
651         (vect_analyze_loop_operations): Properly guard analysis for
652         pure SLP case.
653         (vect_transform_loop): Likewise.
654         (vect_analyze_loop_2): Also reset SLP type on PHIs.
655         (vect_model_induction_cost): Do not cost for pure SLP.
656         (vectorizable_induction): Pass in SLP node, implement SLP vectorization
657         of induction in inner loop vectorization.
658         * tree-vect-slp.c (vect_create_new_slp_node): Handle PHIs.
659         (vect_get_and_check_slp_defs): Handle vect_induction_def.
660         (vect_build_slp_tree): Likewise.  Handle PHIs as terminating the
661         recursion.
662         (vect_analyze_slp_cost_1): Cost induction.
663         (vect_detect_hybrid_slp_stmts): Handle PHIs.
664         (vect_get_slp_vect_defs): Likewise.
665         * tree-vect-stmts.c (vect_analyze_stmt): Handle induction.
666         (vect_transform_stmt): Handle SLP reductions.
667         * tree-vectorizer.h (vectorizable_induction): Adjust.
669 2017-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
671         * config/rs6000/rs6000.c (make_resolver_func): Update
672         init_lowered_empty_function call.
674 2017-06-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
676         * doc/invoke.texi: Document the -fprofile-abs-path option.
677         * common.opt (fprofile-abs-path): New option.
678         * gcov-io.h (gcov_write_filename): Declare.
679         * gcov-io.c (gcov_write_filename): New function.
680         * coverage.c (coverage_begin_function): Use gcov_write_filename.
681         * profile.c (output_location): Likewise.
683 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
685         * shring-wrap.c: Revert accidental commit.
687 2017-06-05  Volker Reichelt  <v.reichelt@netcologne.de>
689         * doc/invoke.texi (-Wduplicated-branches): Add to warning list.
691 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
693         * cfgexpand.c (expand_gimple_tailcall): Initialize profile of
694         new edge.
695         * ipa-inline.c (want_inline_self_recursive_call_p): Watch for missing
696         profile in callgraph edge.
697         * profile-count.h (apply_probability): If THIS is 0, then result is 0
698         (apply_scale): Likewise.
699         * tree-inline.c (copy_bb, copy_edges_for_bb, copy_cfg_body):
700         Also scale profile when inlining function with zero profile.
701         (initialize_cfun): Update exit block profile even when it is zero.
702         * tree-ssa-threadupdate.c (clear_counts_path): Handle correctly case
703         when profile is read.
705 2017-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
707         * config/rs6000/rs6000.c (toplevel): Include attribs.h.
708         (CLONE_*): New constants to define the processors we can generate
709         code for with the target_clone attribute.
710         (rs6000_clone_map): New array to identify which clone processors
711         the current program is running on.
712         (TARGET_COMPARE_VERSION_PRIORITY): Define to enable the
713         target_clone attribute.
714         (TARGET_GENERATE_VERSION_DISPATCHER_BODY): Likewise.
715         (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): Likewise.
716         (TARGET_OPTION_FUNCTION_VERSIONS): Likewise.
717         (cpu_expand_builtin): Add support for target_clone attribute.
718         (rs6000_valid_attribute_p): Allow "default" attribute.
719         (get_decl_name): New debug function to simplify printing the
720         current function name in debugging statements.
721         (rs6000_clone_priority): New functions to support the target_clone
722         attribute, and be able to generate code to switch between ISA 2.05
723         through ISA 3.0 (power6 through power9).
724         (rs6000_compare_version_priority): Likewise.
725         (rs6000_get_function_versions_dispatcher): Likewise.
726         (make_resolver_func): Likewise.
727         (add_condition_to_bb): Likewise.
728         (dispatch_function_versions): Likewise.
729         (rs6000_generate_version_dispatcher_body): Likewise.
730         (rs6000_can_inline_p): Call get_decl_name for debugging usage.
731         (fusion_gpr_load_p): Fix a spacing issue.
732         * doc/extend.texi (Common Function Attributes): Document that the
733         PowerPC supports the target_clone attribute.
735 2017-06-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
737         * config/arm/arm.h: explain F symbol found in description of ARM
738         register allocation in its legend.
740 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
742         * config/mips/frame-header-opt.c: Include profile-count.h.
743         * config/riscv/riscv.c: Include profile-count.h
745 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
747         * tree-ssa-loop-im.c (execute_sm_if_changed): Add FLAG_BBS parameter;
748         update profile.
749         (sm_set_flag_if_changed): Add bbs field.
750         (execute_sm_if_changed_flag_set): Pass BBS.
751         (execute_sm): Update.
753 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
755         * config/aarch64/aarch64-simd.md (aarch64_store_lane0<mode>):
756         New pattern.
758 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
760         * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): New define_insn.
761         (peephole2): New peephole2 to emit the above.
762         * config/aarch64/predicates.md (aarch64_sub_immediate): New predicate.
764 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
766         * config/aarch64/aarch64.c (define_peephole2 above
767         *sub_<shift>_<mode>): New peephole.
769 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
771         * config/i386/i386.c (make_resolver_func): Update.
772         * Makefile.in: Add profile-count.h and profile-count.o
773         * auto-profile.c (afdo_indirect_call): Update to new API.
774         (afdo_set_bb_count): Update.
775         (afdo_propagate_edge): Update.
776         (afdo_propagate_circuit): Update.
777         (afdo_calculate_branch_prob): Update.
778         (afdo_annotate_cfg): Update.
779         * basic-block.h: Include profile-count.h
780         (struct edge_def): Turn count to profile_count.
781         (struct basic_block_def): Likewie.
782         (REG_BR_PROB_BASE): Move to profile-count.h
783         (RDIV): Move to profile-count.h
784         * bb-reorder.c (max_entry_count): Turn to profile_count.
785         (find_traces): Update.
786         (rotate_loop):Update.
787         (connect_traces):Update.
788         (sanitize_hot_paths):Update.
789         * bt-load.c (migrate_btr_defs): Update.
790         * cfg.c (RDIV): Remove.
791         (init_flow): Use alloc_block.
792         (alloc_block): Uninitialize count.
793         (unchecked_make_edge): Uninitialize count.
794         (check_bb_profile): Update.
795         (dump_edge_info): Update.
796         (dump_bb_info): Update.
797         (update_bb_profile_for_threading): Update.
798         (scale_bbs_frequencies_int): Update.
799         (scale_bbs_frequencies_gcov_type): Update.
800         (scale_bbs_frequencies_profile_count): New.
801         * cfg.h (update_bb_profile_for_threading): Update.
802         (scale_bbs_frequencies_profile_count): Declare.
803         * cfgbuild.c (compute_outgoing_frequencies): Update.
804         (find_many_sub_basic_blocks): Update.
805         * cfgcleanup.c (try_forward_edges): Update.
806         (try_crossjump_to_edge): Update.
807         * cfgexpand.c (expand_gimple_tailcall): Update.
808         (construct_exit_block): Update.
809         * cfghooks.c (verify_flow_info): Update.
810         (dump_bb_for_graph): Update.
811         (split_edge): Update.
812         (make_forwarder_block): Update.
813         (duplicate_block): Update.
814         (account_profile_record): Update.
815         * cfgloop.c (find_subloop_latch_edge_by_profile): Update.
816         (get_estimated_loop_iterations): Update.
817         * cfgloopanal.c (expected_loop_iterations_unbounded): Update.
818         (single_likely_exit): Update.
819         * cfgloopmanip.c (scale_loop_profile): Update.
820         (loopify): Update.
821         (set_zero_probability): Update.
822         (lv_adjust_loop_entry_edge): Update.
823         * cfgrtl.c (force_nonfallthru_and_redirect): Update.
824         (purge_dead_edges): Update.
825         (rtl_account_profile_record): Update.
826         * cgraph.c (cgraph_node::create): Uninitialize count.
827         (symbol_table::create_edge): Uninitialize count.
828         (cgraph_update_edges_for_call_stmt_node): Update.
829         (cgraph_edge::dump_edge_flags): Update.
830         (cgraph_node::dump): Update.
831         (cgraph_edge::maybe_hot_p): Update.
832         * cgraph.h: Include profile-count.h
833         (create_clone), create_edge, create_indirect_edge): Update.
834         (cgraph_node): Turn count to profile_count.
835         (cgraph_edge0: Likewise.
836         (make_speculative, clone): Update.
837         (create_edge): Update.
838         (init_lowered_empty_function): Update.
839         * cgraphclones.c (cgraph_edge::clone): Update.
840         (duplicate_thunk_for_node): Update.
841         (cgraph_node::create_clone): Update.
842         * cgraphunit.c (cgraph_node::analyze): Update.
843         (cgraph_node::expand_thunk): Update.
844         * final.c (dump_basic_block_info): Update.
845         * gimple-streamer-in.c (input_bb): Update.
846         * gimple-streamer-out.c (output_bb): Update.
847         * graphite.c (print_global_statistics): Update.
848         (print_graphite_scop_statistics): Update.
849         * hsa-brig.c: Include basic-block.h.
850         * hsa-dump.c: Include basic-block.h.
851         * hsa-gen.c (T sum_slice): Update.
852         (convert_switch_statements):Update.
853         * hsa-regalloc.c: Include basic-block.h.
854         * ipa-chkp.c (chkp_produce_thunks): Update.
855         * ipa-cp.c (struct caller_statistics): Update.
856         (init_caller_stats): Update.
857         (gather_caller_stats): Update.
858         (ipcp_cloning_candidate_p): Update.
859         (good_cloning_opportunity_p): Update.
860         (get_info_about_necessary_edges): Update.
861         (dump_profile_updates): Update.
862         (update_profiling_info): Update.
863         (update_specialized_profile): Update.
864         (perhaps_add_new_callers): Update.
865         (decide_about_value): Update.
866         (ipa_cp_c_finalize): Update.
867         * ipa-devirt.c (struct odr_type_warn_count): Update.
868         (struct decl_warn_count): Update.
869         (struct final_warning_record): Update.
870         (possible_polymorphic_call_targets): Update.
871         (ipa_devirt): Update.
872         * ipa-fnsummary.c (redirect_to_unreachable): Update.
873         * ipa-icf.c (sem_function::merge): Update.
874         * ipa-inline-analysis.c (do_estimate_edge_time): Update.
875         * ipa-inline.c (compute_uninlined_call_time): Update.
876         (compute_inlined_call_time): Update.
877         (want_inline_small_function_p): Update.
878         (want_inline_self_recursive_call_p): Update.
879         (edge_badness): Update.
880         (lookup_recursive_calls): Update.
881         (recursive_inlining): Update.
882         (inline_small_functions): Update.
883         (dump_overall_stats): Update.
884         (dump_inline_stats): Update.
885         * ipa-profile.c (ipa_profile_generate_summary): Update.
886         (ipa_propagate_frequency): Update.
887         (ipa_profile): Update.
888         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
889         * ipa-utils.c (ipa_merge_profiles): Update.
890         * loop-doloop.c (doloop_modify): Update.
891         * loop-unroll.c (report_unroll): Update.
892         (unroll_loop_runtime_iterations): Update.
893         * lto-cgraph.c (lto_output_edge): Update.
894         (lto_output_node): Update.
895         (input_node): Update.
896         (input_edge): Update.
897         (merge_profile_summaries): Update.
898         * lto-streamer-in.c (input_cfg): Update.
899         * lto-streamer-out.c (output_cfg): Update.
900         * mcf.c (create_fixup_graph): Update.
901         (adjust_cfg_counts): Update.
902         (sum_edge_counts): Update.
903         * modulo-sched.c (sms_schedule): Update.
904         * postreload-gcse.c (eliminate_partially_redundant_load): Update.
905         * predict.c (maybe_hot_count_p): Update.
906         (probably_never_executed): Update.
907         (dump_prediction): Update.
908         (combine_predictions_for_bb): Update.
909         (propagate_freq): Update.
910         (handle_missing_profiles): Update.
911         (counts_to_freqs): Update.
912         (rebuild_frequencies): Update.
913         (force_edge_cold): Update.
914         * predict.h: Include profile-count.h
915         (maybe_hot_count_p, counts_to_freqs): UPdate.
916         * print-rtl-function.c: Do not include cfg.h
917         * print-rtl.c: Include basic-block.h
918         * profile-count.c: New file.
919         * profile-count.h: New file.
920         * profile.c (is_edge_inconsistent): Update.
921         (correct_negative_edge_counts): Update.
922         (is_inconsistent): Update.
923         (set_bb_counts): Update.
924         (read_profile_edge_counts): Update.
925         (compute_frequency_overlap): Update.
926         (compute_branch_probabilities): Update; Initialize and deinitialize
927         gcov_count tables.
928         (branch_prob): Update.
929         * profile.h (bb_gcov_counts, edge_gcov_counts): New.
930         (edge_gcov_count): New.
931         (bb_gcov_count): New.
932         * shrink-wrap.c (try_shrink_wrapping): Update.
933         * tracer.c (better_p): Update.
934         * trans-mem.c (expand_transaction): Update.
935         (ipa_tm_insert_irr_call): Update.
936         (ipa_tm_insert_gettmclone_call): Update.
937         * tree-call-cdce.c: Update.
938         * tree-cfg.c (gimple_duplicate_sese_region): Update.
939         (gimple_duplicate_sese_tail): Update.
940         (gimple_account_profile_record): Update.
941         (execute_fixup_cfg): Update.
942         * tree-inline.c (copy_bb): Update.
943         (copy_edges_for_bb): Update.
944         (initialize_cfun): Update.
945         (freqs_to_counts): Update.
946         (copy_cfg_body): Update.
947         (expand_call_inline): Update.
948         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
949         * tree-ssa-loop-ivcanon.c (unloop_loops): Update.
950         (try_unroll_loop_completely): Update.
951         (try_peel_loop): Update.
952         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
953         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Update.
954         * tree-ssa-loop-split.c (connect_loops): Update.
955         * tree-ssa-loop-unswitch.c (hoist_guard): Update.
956         * tree-ssa-reassoc.c (branch_fixup): Update.
957         * tree-ssa-tail-merge.c (replace_block_by): Update.
958         * tree-ssa-threadupdate.c (create_block_for_threading): Update.
959         (compute_path_counts): Update.
960         (update_profile): Update.
961         (recompute_probabilities): Update.
962         (update_joiner_offpath_counts): Update.
963         (estimated_freqs_path): Update.
964         (freqs_to_counts_path): Update.
965         (clear_counts_path): Update.
966         (ssa_fix_duplicate_block_edges): Update.
967         (duplicate_thread_path): Update.
968         * tree-switch-conversion.c (case_bit_test_cmp): Update.
969         (struct switch_conv_info): Update.
970         * tree-tailcall.c (decrease_profile): Update.
971         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
972         * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
973         * value-prof.c (check_counter): Update.
974         (gimple_divmod_fixed_value): Update.
975         (gimple_mod_pow2): Update.
976         (gimple_mod_subtract): Update.
977         (gimple_ic_transform): Update.
978         (gimple_stringop_fixed_value): Update.
979         * value-prof.h (gimple_ic): Update.
981 2017-06-02  Carl Love  <cel@us.ibm.com>
983         * config/rs6000/rs6000-c: Add support for built-in functions
984         vector double vec_doublee (vector signed int);
985         vector double vec_doublee (vector unsigned int);
986         vector double vec_doublee (vector float);
987         vector double vec_doubleh (vector signed int);
988         vector double vec_doubleh (vector unsigned int);
989         vector double vec_doubleh (vector float);
990         vector double vec_doublel (vector signed int);
991         vector double vec_doublel (vector unsigned int);
992         vector double vec_doublel (vector float);
993         vector double vec_doubleo (vector signed int);
994         vector double vec_doubleo (vector unsigned int);
995         vector double vec_doubleo (vector float);.
996         * config/rs6000/rs6000-builtin.def: Add definitions for DOUBLEE,
997         DOUBLEO, DOUBLEH, DOUBLEL, UNS_DOUBLEO, UNS_DOUBLEE, UNS_DOUBLEH,
998         UNS_DOUBLEL.
999         * config/rs6000/altivec.md: Add code generator for doublee<mode>2,
1000         unsdoubleev4si2, doubleo<mode>2, unsdoubleov4si2, doubleh<mode>2,
1001         unsdoublehv4si2, doublel<mode>2, unsdoublelv4si2, add mode attribute
1002         VS_sxwsp.
1003         * config/rs6000/altivec.h: Add define for vec_doublee, vec_doubleo,
1004         vec_doublel, vec_doubleh.
1005         * doc/extend.texi: Update the built-in documentation file for the
1006         new built-in functions.
1008 2017-06-02  David Malcolm  <dmalcolm@redhat.com>
1010         PR jit/80954
1011         * ipa-inline-analysis.c (free_growth_caches): Set
1012         edge_removal_hook_holder to NULL after removing it.
1014 2017-06-02  Sudakshina Das  <sudi.das@arm.com>
1016         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
1017         comparision with zero.
1019 2017-06-02  Will Schmidt  <will_schmidt@vnet.ibm.com>
1020         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
1021         for early expansion of vec_min and vec_max builtins.
1022         (builtin_function_type): Add min/max unsigned variants to those
1023         identified as having unsigned arguments.
1025 2017-06-02  Olivier Hainque  <hainque@adacore.com>
1027         * config/vx-common.h (DWARF_UNWIND_INFO): Switch #define to 1.
1029 2017-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1031         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
1032         Use VALL_F16 iterator rather than VALL.
1034 2017-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1036         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap):
1037         Emit CBNZ inside loop when doing a strong exchange and comparing
1038         against zero.  Generate the CC flags after the loop.
1040 2017-06-02  David Edelsohn  <dje.gcc@gmail.com>
1042         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE_STR): New.
1043         (dl_section_ref): New.
1044         (dwarf2out_finish): Copy debug_line_section_label to dl_section_ref.
1045         On AIX, append an expression to subtract the size of the
1046         section length to dl_section_ref.
1048 2017-06-02  Will Schmidt  <will_schmidt@vnet.ibm.com>
1050         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
1051         for early expansion of vector absolute builtins.
1053 2017-06-02  Richard Biener  <rguenther@suse.de>
1055         * tree-vect-slp.c (vect_detect_hybrid_slp_2): Match up
1056         what we consider a relevant use stmt with vect_detect_hybrid_slp_stmts.
1058 2017-06-02  Richard Biener  <rguenther@suse.de>
1060         PR tree-optimization/80948
1061         * tree-tailcall.c (find_tail_calls): Track stmts to move in
1062         stmt order as well.
1064 2017-06-02  Richard Biener  <rguenther@suse.de>
1066         * tree-vect-loop.c (vect_analyze_loop_operations): Not relevant
1067         PHIs are ok.
1068         * tree-vect-stmts.c (process_use): Do not mark backedge defs
1069         for inductions as relevant.
1071 2017-06-02  Richard Biener  <rguenther@suse.de>
1073         * tree-vect-loop.c (get_initial_def_for_induction): Inline into ...
1074         (vectorizable_induction): ... this.  Remove dead code.
1076 2017-06-02  Eric Botcazou  <ebotcazou@adacore.com>
1078         * builtins. (expand_builtin_alloca): Remove second parameter and
1079         infer its value from the first parameter instead.
1080         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust call to above.
1082 2017-06-02  Jakub Jelinek  <jakub@redhat.com>
1084         PR rtl-optimization/80903
1085         * loop-doloop.c (add_test): Unshare sequence.
1087 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1089         * doc/invoke.texi: Document the -Wsizeof-pointer-div warning.
1091 2017-06-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1093         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers): Make
1094         static.
1095         (xlogue_layout::get_stack_space_used, xlogue_layout::s_instances,
1096         xlogue_layout::get_instance, logue_layout::xlogue_layout,
1097         sp_valid_at, fp_valid_at, choose_basereg): Formatting.
1098         (xlogue_layout::get_stub_rtx): Make static.
1099         (xlogue_layout::get_stub_name): Avoid const-cast, make static.
1100         (xlogue_layout::compute_stub_managed_regs): Rename to...
1101         (xlogue_layout::count_stub_managed_regs): ...this.
1102         (xlogue_layout::is_stub_managed_reg): New function.
1103         (xlogue_layout::m_stub_names): Rename to...
1104         (xlogue_layout::s_stub_names): ...this, make static.
1105         (xlogue_layout::STUB_INDEX_OFFSET, xlogue_layout::MIN_REGS,
1106         xlogue_layout::MAX_REGS, xlogue_layout::MAX_EXTRA_REGS,
1107         xlogue_layout::VARIANT_COUNT, xlogue_layout::STUB_NAME_MAX_LEN,
1108         xlogue_layout::s_stub_names): Instantiate statics.
1109         (stub_managed_regs): Remove.
1110         (ix86_save_reg): Use xlogue_layout::compute_stub_managed_regs.
1111         (disable_call_ms2sysv_xlogues): Rename to...
1112         (warn_once_call_ms2sysv_xlogues): ...this, and warn only once.
1113         (ix86_initial_elimination_offset, ix86_expand_call): Fix call_ms2sysv
1114         warning logic.
1115         (ix86_static_chain): Make sure that ix86_static_chain_on_stack can't
1116         change after reload_completed.
1117         (ix86_can_use_return_insn_p): Use the ix86_frame data structure
1118         directly.
1119         (ix86_expand_prologue): Likewise.
1120         (ix86_expand_epilogue): Likewise.
1121         (ix86_expand_split_stack_prologue): Likewise.
1122         (ix86_compute_frame_layout): Remove frame parameter ...
1123         (TARGET_COMPUTE_FRAME_LAYOUT): ... and export it as a target hook.
1124         (ix86_finalize_stack_realign_flags): Call ix86_compute_frame_layout
1125         only if necessary.
1126         (ix86_init_machine_status): Don't set use_fast_prologue_epilogue_nregs.
1127         (ix86_frame): Move from here ...
1128         * config/i386/i386.h (ix86_frame): ... to here.
1129         (machine_function): Remove use_fast_prologue_epilogue_nregs, cache the
1130         complete ix86_frame data structure instead.  Remove some_ld_name.
1132 2017-06-01  Pierre-Marie de Rodat  <derodat@adacore.com>
1134         * dwarf2out.c (dwarf2out_late_global_decl): Add locations for
1135         symbols that hold a DECL_VALUE_EXPR.
1137 2017-06-01  Martin Jambor  <mjambor@suse.cz>
1139         PR tree-optimization/80898
1140         * tree-sra.c (process_subtree_disqualification): Removed.
1141         (disqualify_candidate): Do not acll
1142         process_subtree_disqualification.
1143         (subtree_mark_written_and_enqueue): New function.
1144         (propagate_all_subaccesses): Set grp_write of LHS subtree if the
1145         RHS has been disqualified and re-queue LHS if necessary.  Apart
1146         from that, ignore disqualified RHS.
1148 2017-06-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1150         * config/s390/s390.c (s390_emit_epilogue): Disable early return
1151         address fetch for z10 or later.
1153 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
1155         * config/arc/arc.md (tst_movb): Add guard when splitting.
1157 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
1159         * config/arc/arc.c (arc_can_eliminate): Test against
1160         arc_frame_pointer_needed.
1162 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
1164         * config/arc/arc.c (arc_expand_prologue): Emit a special barrier
1165         to prevent store reordering.
1166         * config/arc/arc.md (UNSPEC_ARC_STKTIE): Define.
1167         (type): Add block type.
1168         (stack_tie): Define special instruction to be used in
1169         expand_prologue.
1171 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
1173         * config/arc/arc.md (commutative_binary_comparison): Remove 'I'
1174         constraint. It is not valid for the pattern.
1175         (noncommutative_binary_comparison): Likewise.
1177 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
1179         * config/arc/simdext.md (movv2hi_insn): Change predicate to avoid
1180         scaled addresses.
1182 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
1184         * config/arc/arc.c (arc_conditional_register_usage): Allow r30 to
1185         be used by the reg-alloc.
1187 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
1189         * config/arc/arc.md (mulsi3): Avoid use of hard registers before
1190         reg-alloc when having mul64 or mul32x16 instructions.
1191         (mulsidi3): Likewise.
1192         (umulsidi3): Likewise.
1193         (mulsi32x16): New pattern.
1194         (mulsi64): Likewise.
1195         (mulsidi64): Likewise.
1196         (umulsidi64): Likewise.
1197         (MUL32x16_REG): Define.
1198         (mul64_600): Use MUL32x16_REG.
1199         (mac64_600): Likewise.
1200         (umul64_600): Likewise.
1201         (umac64_600): Likewise.
1203 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
1205         * config/arc/arc.md (mulsi3_700): Make it commutative.
1207 2017-06-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
1209         * config/sparc/sparc.md (*zero_extendsidi2_insn_sp64): Set insn
1210         type for movstouw.
1211         (*sign_extendsidi2_insn): Likewise for movstosw.
1213 2017-06-01  Pierre-Marie de Rodat  <derodat@adacore.com>
1215         * dwarf2out.c (get_discr_value): Call the get_debug_type hook on
1216         the type of the input discriminant value.  Convert the
1217         discriminant value of signedness vary.
1219 2017-06-01  Volker Reichelt  <v.reichelt@netcologne.de>
1221         * doc/invoke.texi (-Wcatch-value): Document new shortcut.
1222         Add to -Wall section.
1224 2017-06-01  Richard Biener  <rguenther@suse.de>
1226         PR middle-end/66313
1227         * fold-const.c (fold_plusminus_mult_expr): If the factored
1228         factor may be zero use a wrapping type for the inner operation.
1229         * tree-tailcall.c (independent_of_stmt_p): Pass in to_move bitmap
1230         and handle moved defs.
1231         (process_assignment): Properly guard the unary op case.  Return a
1232         tri-state indicating that moving the stmt before the call may allow
1233         to continue.  Pass through to_move.
1234         (find_tail_calls): Handle moving unrelated defs before
1235         the call.
1237 2017-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
1239         PR target/80618
1240         * config/rs6000/vector.md (*vector_uneq<mode>): Write the nor in the
1241         splitter result in the canonical way.
1243 2017-05-31  Uros Bizjak  <ubizjak@gmail.com>
1245         * config/i386/i386.md (*zero_extendsidi2): Enable alternative (?r, *Yj)
1246         also for 32bit target.  Update insn attributes.
1247         (zero-extendsidi2 splitter): Allow all registers for operand 1.
1249 2017-05-31  Sebastian Peryt  <sebastian.peryt@intel.com>
1251         * config/i386/avx512fintrin.h (_mm_mask_max_sd)
1252         (_mm_maskz_max_sd, _mm_mask_max_ss, _mm_maskz_max_ss)
1253         (_mm_mask_min_sd, _mm_maskz_min_sd, _mm_mask_min_ss)
1254         (_mm_maskz_min_ss): New intrinsics.
1256 2017-05-31  Martin Liska  <mliska@suse.cz>
1258         * tree-vect-loop.c (vect_create_epilog_for_reduction):
1259         Change comment style to one we normally use.
1260         (vectorizable_reduction): Likewise.
1261         (vectorizable_induction): Likewise.
1262         * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
1263         (vectorizable_call): Likewise.
1264         (vectorizable_simd_clone_call): Likewise.
1265         (vectorizable_conversion): Likewise.
1266         (vectorizable_assignment): Likewise.
1267         (vectorizable_shift): Likewise.
1268         (vectorizable_operation): Likewise.
1269         (vectorizable_store): Likewise.
1270         (vectorizable_load): Likewise.
1271         * tree-vectorizer.h: Likewise.
1273 2017-05-31  Alexander Monakov  <amonakov@ispras.ru>
1275         * passes.c (emergency_dump_function): New.
1276         * tree-pass.h (emergency_dump_function): Declare.
1277         * plugin.c (plugins_internal_error_function): Remove.
1278         * plugin.h (plugins_internal_error_function): Remove declaration.
1279         * toplev.c (internal_error_function): New static function.  Use it...
1280         (general_init): ...here.
1282 2017-05-31  Graham Markall  <graham.markall@embecosm.com>
1284         * config/arc/arc.c (arc_print_operand): Handle constant operands.
1285         (arc_rtx_costs): Add costs for new patterns.
1286         * config/arc/arc.md: Additional *add_n and *sub_n patterns.
1287         * config/arc/predicates.md: Add _1_2_3_operand predicate.
1289 2017-05-31  Richard Sandiford  <richard.sandiford@linaro.org>
1291         * tree-ssa-strlen.c (get_next_strinfo): New function.
1292         (get_stridx_plus_constant): Use it.
1293         (zero_length_string): Likewise.
1294         (adjust_related_strinfos): Likewise.
1295         (adjust_last_stmt): Likewise.
1297 2017-05-31  Richard Biener  <rguenther@suse.de>
1299         PR target/80880
1300         * config/i386/i386.c (ix86_expand_builtin): Remove assert
1301         for arg being an SSA name when expanding IX86_BUILTIN_BNDRET.
1303 2017-05-31  Richard Sandiford  <richard.sandiford@linaro.org>
1305         * tree-vect-data-refs.c (vect_find_same_alignment_drs): Remove
1306         loop_vinfo argument and use of dependence distance vectors.
1307         Check instead whether the two references differ only in their
1308         initial value and assume that they have the same alignment if the
1309         difference is a multiple of the vector alignment.
1310         (vect_analyze_data_refs_alignment): Update call accordingly.
1312 2017-05-31  Martin Liska  <mliska@suse.cz>
1314         PR target/79155
1315         * config/i386/cpuid.h: Fix typo in a comment in cpuid.h.
1317 2017-05-31  Bin Cheng  <bin.cheng@arm.com>
1319         * tree-vect-loop-manip.c (create_intersect_range_checks_index)
1320         (create_intersect_range_checks): Move from ...
1321         * tree-data-ref.c (create_intersect_range_checks_index)
1322         (create_intersect_range_checks): ... to here.
1323         (create_runtime_alias_checks): New function factored from ...
1324         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): ...
1325         here.  Call above function.
1326         * tree-data-ref.h (create_runtime_alias_checks): New function.
1328 2017-05-31  Bin Cheng  <bin.cheng@arm.com>
1330         * tree-data-ref.c (prune_runtime_alias_test_list): Relax minimal
1331         segment length for dr_b and compute it in wide_int.
1333 2017-05-31  Richard Biener  <rguenther@suse.de>
1335         PR tree-optimization/80906
1336         * graphite-isl-ast-to-gimple.c (copy_loop_close_phi_nodes): Get
1337         and pass through iv_map.
1338         (copy_bb_and_scalar_dependences): Adjust.
1339         (translate_pending_phi_nodes): Likewise.
1340         (copy_loop_close_phi_args): Handle code-generating IVs instead
1341         of ICEing.
1343 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
1345         * diagnostic-color.c (color_dict): Add "type-diff".
1346         (parse_gcc_colors): Update comment.
1347         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
1348         -fdiagnostics-show-template-tree and -fno-elide-type.
1349         (GCC_COLORS): Add type-diff to example.
1350         (type-diff=): New.
1351         (-fdiagnostics-show-template-tree): New.
1352         (-fno-elide-type): New.
1353         * pretty-print.c (pp_format): Pass quote and formatters[argno] to
1354         the pp_format_decoder callback.  Call any m_format_postprocessor's
1355         "handle" method.
1356         (pretty_printer::pretty_printer): Initialize
1357         m_format_postprocessor.
1358         (pretty_printer::~pretty_printer): Delete any
1359         m_format_postprocessor.
1360         * pretty-print.h (printer_fn): Add bool and const char ** parameters.
1361         (class format_postprocessor): New class.
1362         (struct pretty_printer::format_decoder): Document the new parameters.
1363         (struct pretty_printer::m_format_postprocessor): New field.
1364         * tree-diagnostic.c (default_tree_printer): Update for new
1365         bool and const char ** params.
1366         * tree-diagnostic.h (default_tree_printer): Likewise.
1368 2017-05-30  Segher Boessenkool  <segher@kernel.crashing.org>
1370         * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand): Delete.
1371         (lwa_operand): Delete rs6000_gen_cell_microcode test.
1372         * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
1373         rs6000_gen_cell_microcode code.
1374         (rs6000_final_prescan_insn): Delete.
1375         (rs6000_opt_vars): Delete the "gen-cell-microcode" and
1376         "warn-cell-microcode" entries.
1377         * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Delete.
1378         * config/rs6000/rs6000.md: Delete rs6000_gen_cell_microcode tests
1379         throughout.  Change cc_reg_not_micro_cr0_operand to
1380         cc_reg_not_cr0_operand throughout.
1381         (*extendhi<mode>2_noload): Delete.
1382         * config/rs6000/rs6000.opt (mgen-cell-microcode): Replace by stub.
1383         (mwarn-cell-microcode): Delete.
1384         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
1385         -mgen-cell-microcode and -mwarn-cell-microcode.
1387 2017-05-30  Uros Bizjak  <ubizjak@gmail.com>
1389         PR target/80833
1390         * config/i386/constraints.md (Yd): New constraint.
1391         (Ye): Ditto.
1392         * config/i386/i386.md (*movti_internal): Add (?r, Ye)
1393         and (?Yd, r) alternatives.  Update insn attributes.
1394         * config/i386/i386.md (*movti_internal): Add (?r, *Ye)
1395         and (?*Yd, r) alternatives.  Update insn attributes.
1396         (double-mode inter-unit splitters): Add new GR<->XMM splitters.
1398 2017-05-30  Pierre-Marie de Rodat  <derodat@adacore.com>
1400         * gimplify.c (gimplify_modify_expr): Don't create a
1401         DECL_DEBUG_EXPR link if *FROM_P does not belong to the current
1402         function.
1404 2017-05-30  Wilco Dijkstra  <wdijkstr@arm.com>
1406         * config/arm/arm-builtins.c (arm_expand_builtin): Remove const.
1408 2017-05-30  Richard Biener  <rguenther@suse.de>
1410         * tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type
1411         and reduc_def fields.
1412         (STMT_VINFO_REDUC_TYPE): New define.
1413         (STMT_VINFO_REDUC_DEF): Likewise.
1414         (vect_force_simple_reduction): Adjust prototype.
1415         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Adjust.
1416         (vect_is_simple_reduction): Remove check_reduction argument.
1417         (vect_force_simple_reduction): Adjust and set
1418         STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
1419         (vectorizable_reduction): Do not re-do reduction analysis
1420         but use STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
1421         * tree-parloops.c (gather_scalar_reductions): Adjust.
1423 2017-05-30  Richard Biener  <rguenther@suse.de>
1425         PR middle-end/80901
1426         * cfgexpand.c (expand_gimple_cond): Match up loop fixup with
1427         split_edge code.
1429 2017-05-24  Robin Dapp  <rdapp@linux.vnet.ibm.com>
1431         * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
1432         Introduce unknown_misalignment parameter and remove vf.
1433         (vect_peeling_hash_get_lowest_cost):
1434         Pass unknown_misalignment parameter.
1435         (vect_enhance_data_refs_alignment):
1436         Fix unsupportable data ref treatment.
1438 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
1440         * tree-vect-data-refs.c (vect_get_data_access_cost):
1441         Workaround for SLP handling.
1442         (vect_enhance_data_refs_alignment):
1443         Compute costs for doing no peeling at all, compare to the best
1444         peeling costs so far and avoid peeling if cheaper.
1446 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
1448         * tree-vect-data-refs.c (vect_peeling_hash_choose_best_peeling):
1449         Return peeling info and set costs to zero for unlimited cost
1450         model.
1451         (vect_enhance_data_refs_alignment): Also inspect all datarefs
1452         with unknown misalignment. Compute and costs for unknown
1453         misalignment, compare them to the costs for known misalignment
1454         and choose the cheapest for peeling.
1456 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
1458         * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Rename.
1459         (vect_get_peeling_costs_all_drs): Create function.
1460         (vect_peeling_hash_get_lowest_cost):
1461         Use vect_get_peeling_costs_all_drs.
1462         (vect_peeling_supportable): Create function.
1463         (vect_enhance_data_refs_alignment): Use vect_peeling_supportable.
1465 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
1467         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Create
1468         DR_HAS_NEGATIVE_STEP.
1469         (vect_update_misalignment_for_peel): Define DR_MISALIGNMENT.
1470         (vect_enhance_data_refs_alignment): Use.
1471         (vect_duplicate_ssa_name_ptr_info): Use.
1472         * tree-vectorizer.h (dr_misalignment): Use.
1473         (known_alignment_for_access_p): Use.
1475 2017-05-30  Jozef Lawrynowicz  <jozef.l@somniumtech.com>
1477         PR target/78838
1478         * config/msp430/msp430.c (gen_prefix): Return NULL when section name is
1479         .lowtext.
1480         (has_section_name): New function.
1482 2017-05-30  Martin Liska  <mliska@suse.cz>
1484         PR other/80909
1485         * auto-profile.c (get_function_decl_from_block): Fix
1486         parenthesis.
1488 2017-05-30  Richard Biener  <rguenther@suse.de>
1490         PR middle-end/80876
1491         * cfgexpand.c (expand_gimple_cond): Fixup preserving loops again.
1493 2017-05-30  Martin Liska  <mliska@suse.cz>
1495         * dumpfile.c: Use newly added macro DUMP_FILE_INFO.
1496         * dumpfile.h (struct dump_file_info): Remove ctors.
1498 2017-05-30  Martin Liska  <mliska@suse.cz>
1500         * predict.def: Fix GNU coding style.
1502 2017-05-29  Max Filippov  <jcmvbkbc@gmail.com>
1504         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
1505         Mark 'to' argument with ATTRIBUTE_UNUSED.
1507 2017-05-29  Max Filippov  <jcmvbkbc@gmail.com>
1509         * config/xtensa/xtensa.c (xtensa_emit_call): Use
1510         HOST_WIDE_INT_PRINT_HEX instead of 0x%lx format string.
1511         (print_operand): Use HOST_WIDE_INT_PRINT_DEC instead of %ld
1512         format string.
1514 2017-05-29  Eric Botcazou  <ebotcazou@adacore.com>
1516         * doc/install.texi (Options specification): Restore entry of
1517         --enable-sjlj-exceptions.
1519 2017-05-27  Michael Eager  <eager@eagercon.com>
1521         Revert:
1522         2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
1524         See https://gcc.gnu.org/ml/gcc/2017-05/msg00221.html.
1526         * config/microblaze/microblaze.h
1527         (FIXED_REGISTERS): Update in macro.
1528         (CALL_USED_REGISTERS): Update in macro.
1530 2017-05-27  François-Xavier Coudett  <fxcoudert@gcc.gnu.org>
1532         * doc/install.texi: Add links to macOS binary distributions.
1534 2017-05-27  Jakub Jelinek  <jakub@redhat.com>
1536         PR bootstrap/80887
1537         Revert:
1538         2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
1540         * match.pd ((A +- CST1) +- CST2): Allow some conversions.
1542 2017-05-26  Martin Liska  <mliska@suse.cz>
1544         * dumpfile.h (enum dump_kind): Renumber TDF_* flags to be contiguous.
1546 2017-05-26  Martin Liska  <mliska@suse.cz>
1548         * cfg.c (check_bb_profile): Do not use TDF_COMMENT and print
1549         always leading ';; '.
1550         (dump_bb_info): Likewise.
1551         (brief_dump_cfg): Likewise.
1552         * cfgrtl.c (print_rtl_with_bb): Do not use TDF_COMMENT.
1553         * dumpfile.c: Remove usage of TDF_VERBOSE.
1554         * dumpfile.h (enum dump_kind): Likewise.
1555         (dump_gimple_bb_header): Do not use TDF_COMMENT.
1556         * print-tree.c (debug_verbose): Remove.
1557         * tree-cfg.c (gimple_dump_cfg): Do not use TDF_COMMENT.
1558         (dump_function_to_file): Remove dumps guarded with TDF_VERBOSE.
1559         * tree-diagnostic.c (default_tree_printer): Replace
1560         TDF_DIAGNOSTIC with TDF_SLIM.
1562 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
1564         * tree-vect-loop-manip.c (create_intersect_range_checks_index): Pass
1565         in parameter loop, rather than loop_vinfo.
1566         (create_intersect_range_checks): Ditto.
1567         (vect_create_cond_for_alias_checks): Update call to above functions.
1569 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
1571         PR tree-optimization/80815
1572         * tree-data-ref.c (prune_runtime_alias_test_list): Simplify condition
1573         for merging runtime alias checks.  Handle negative DR_STEPs.
1575 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
1577         * tree-vect-data-refs.c (Operator==, comp_dr_with_seg_len_pair):
1578         Move from ...
1579         * tree-data-ref.c (Operator==, comp_dr_with_seg_len_pair): To here.
1580         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Factor
1581         out code pruning runtime alias checks.
1582         * tree-data-ref.c (prune_runtime_alias_test_list): New function
1583         factored out from above.
1584         * tree-vectorizer.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
1585         Move from ...
1586         * tree-data-ref.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
1587         ... to here.
1588         (prune_runtime_alias_test_list): New decalaration.
1590 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
1592         * tree-vect-data-refs.c (compare_tree): Rename and move ...
1593         * tree-data-ref.c (data_ref_compare_tree): ... to here.
1594         * tree-data-ref.h (data_ref_compare_tree): New decalaration.
1595         * tree-vect-data-refs.c (dr_group_sort_cmp): Update uses.
1596         (operator==, comp_dr_with_seg_len_pair): Ditto.
1597         (vect_prune_runtime_alias_test_list): Ditto.
1599 2017-05-26  Martin Liska  <mliska@suse.cz>
1601         PR ipa/80663
1602         * params.def: Bound partial-inlining-entry-probability param.
1604 2017-05-26  Marek Polacek  <polacek@redhat.com>
1606         PR sanitizer/80875
1607         * fold-const.c (fold_binary_loc) <case MULT_EXPR>: Check if OP1
1608         can be negated.
1610 2017-05-26  Richard Biener  <rguenther@suse.de>
1612         PR tree-optimization/80842
1613         * tree-ssa-ccp.c (set_lattice_value): Always meet with the old
1614         value.
1616 2017-05-26  Richard Biener  <rguenther@suse.de>
1618         PR tree-optimization/80844
1619         * tree-vectorizer.c (adjust_simduid_builtins): Propagate results.
1621 2017-05-25  Sebastian Peryt  <sebastian.peryt@intel.com>
1623         * doc/md.texi (Machine Constraints): Update x86 family
1624         machine constraints section to match 'config/i386/constraints.md'.
1626 2017-05-25  Volker Reichelt  <v.reichelt@netcologne.de>
1628         * doc/invoke.texi (-Wcatch-value=): Document new warning option.
1630 2017-05-25  Nathan Sidwell  <nathan@acm.org>
1632         * doc/invoke.texi (--enable-languages): Update documentation.
1634 2017-05-25  Martin Liska  <mliska@suse.cz>
1636         * dumpfile.c: Add TDF_FOLDING.
1637         * dumpfile.h (enum dump_kind): Likewise.
1638         * genmatch.c (dt_simplify::gen_1): Use it.
1640 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
1642         * match.pd (view_convert (convert@0 @1)): Handle zero-extension.
1644 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
1646         * match.pd ((A +- CST1) +- CST2): Allow some conversions.
1647         * tree.c (drop_tree_overflow): Handle COMPLEX_CST and VECTOR_CST.
1649 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
1651         * fold-const.c (fold_binary_loc) [(A & C) == D]: Remove transformation.
1652         * match.pd (X == C): Rewrite it here.
1653         (with_possible_nonzero_bits, with_possible_nonzero_bits2,
1654         with_certain_nonzero_bits2): New predicates.
1655         * tree-ssanames.c (get_nonzero_bits): Handle INTEGER_CST.
1657 2017-05-24  Nathan Sidwell  <nathan@acm.org>
1659         * lto-streamer-in.c (lto_input_data_block): Adjust T const cast to
1660         avoid warning.
1662         * auto-profile.c (afdo_propagate): Adjust T const cast to avoid
1663         warning.
1665 2017-05-24  Segher Boessenkool  <segher@kernel.crashing.org>
1667         * config/powerpcspe: New port.  Files are copied from the rs6000
1668         port, with "rs6000" in filenames replaced by "powerpcspe".
1670 2017-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
1672         PR rtl-optimization/80754
1673         * lra-remat.c (do_remat): Add overlap checks for dst_regno.
1675 2017-05-24  Sheldon Lobo  <smlobo@sheldon.us.oracle.com>
1677         * config/sparc/sparc.md (length): Return the correct value for -mflat
1678         sibcalls to match output_sibcall.
1680 2017-05-24  Segher Boessenkool  <segher@kernel.crashing.org>
1682         PR bootstrap/80860
1683         PR bootstrap/80843
1684         * config/rs6000/rs6000.c (struct machine_function): Add new field
1685         n_components.
1686         (rs6000_get_separate_components): Init that field, use it.
1687         (rs6000_components_for_bb): Use the field.
1689 2017-05-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1691         * config/arm/arm.c (arm_expand_prologue): Fix typo in comment.
1693 2017-05-24  Peter Bergner  <bergner@vnet.ibm.com>
1695         PR middle-end/80823
1696         * tree-cfg.c (group_case_labels_stmt): Delete increment of "i";
1698 2017-05-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1700         PR target/80725
1701         * config/s390/s390.c (s390_check_qrst_address): Check incoming
1702         address against address_operand predicate.
1703         * config/s390/s390.md ("*indirect_jump"): Swap alternatives.
1705 2017-05-24  Eric Botcazou  <ebotcazou@adacore.com>
1707         * var-tracking.c (track_expr_p): Do not return 0 for tracked record
1708         parameters passed indirectly.
1710 2017-05-23  Uros Bizjak  <ubizjak@gmail.com>
1712         * config/i386/i386.md (*movdi_internal): Remove SSE4
1713         alternative 18 (?r, *v).  Update insn attributes.
1714         (*movsi_internal): Remove SSE4 alternative 13 (?r, *v).
1715         Update insn attributes.
1716         (*zero_extendsidi2): Remove SSE4 alternative (?r, *x).
1717         Update insn attributes.
1718         * config/i386/sse.md (vec_extract<ssevecmodelower>_0): Remove SSE4
1719         alternative 1 (r, v). Remove isa attribute.
1720         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
1721         Always move value through stack for !TARGET_INTER_UNIT_MOVES_TO_VEC
1722         and !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
1724 2017-05-23  Tom de Vries  <tom@codesourcery.com>
1726         * doc/sourcebuild.texi (Directives, Verify compiler message): Document
1727         dg-line directive.
1729 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
1731         * cgraphunit.c (symbol_table::process_new_functions): Update.
1732         * ipa-fnsummary.c (pass_data_inline_parameters): Remove.
1733         (inline_generate_summary): Rename to ...
1734         (ipa_fn_summary_generate): ... this one.
1735         (inline_read_summary): Rename to ...
1736         (ipa_fn_summary_read): ... this one.
1737         (inline_write_summary): Rename to ...
1738         (ipa_fn_summary_write): ... this one.
1739         (inline_free_summary): Rename to ...
1740         (ipa_free_fn_summary): ... this one.
1741         (pass_data_local_fn_summary, pass_local_fn_summary,
1742         make_pass_local_fn_summary, pass_data_ipa_free_fn_summary,
1743         pass_ipa_free_fn_summary, make_pass_ipa_free_fn_summary,
1744         pass_data_ipa_fn_summary, pass_ipa_fn_summary,
1745         make_pass_ipa_fn_summary): New.
1746         * ipa-fnsummary.h (inline_generate_summary, inline_read_summary,
1747         inline_write_summary, inline_free_summary): Remove.
1748         (ipa_free_fn_summary) : New.
1749         * ipa-inline.c (ipa_inline): Update.
1750         (pass_ipa_inline): Do not generate summaries.
1751         * ipa.c (pass_data_ipa_free_fn_summary, pass_ipa_free_fn_summary):
1752         Remove.
1753         * passes.def: Replace pass_inline_parameters by pass_local_fn_summary
1754         and add pass_ipa_fn_summary.
1755         * tree-pass.h (make_pass_ipa_fn_summary, make_pass_local_fn_summary):
1756         New.
1757         (make_pass_inline_parameters): Remove.
1759 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
1761         * omp-low.c (struct omp_context): Remove "default_kind" member.
1762         Adjust all users.
1764         * omp-offload.c (execute_oacc_device_lower): Remove the
1765         parallelism dimensions function attributes for unparallelized
1766         OpenACC kernels constructs.
1768 2017-05-23  Martin Liska  <mliska@suse.cz>
1770         * cgraph.c (cgraph_node::get_create): Use symtab_node::dump_{asm_,}name
1771         functions.
1772         (cgraph_edge::make_speculative): Likewise.
1773         (cgraph_edge::resolve_speculation): Likewise.
1774         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
1775         (cgraph_node::dump): Likewise.
1776         * cgraph.h: Likewise.
1777         * cgraphunit.c (analyze_functions): Likewise.
1778         (symbol_table::compile): Likewise.
1779         * ipa-cp.c (print_all_lattices): Likewise.
1780         (determine_versionability): Likewise.
1781         (initialize_node_lattices): Likewise.
1782         (ipcp_verify_propagated_values): Likewise.
1783         (estimate_local_effects): Likewise.
1784         (update_profiling_info): Likewise.
1785         (create_specialized_node): Likewise.
1786         (perhaps_add_new_callers): Likewise.
1787         (decide_about_value): Likewise.
1788         (decide_whether_version_node): Likewise.
1789         (identify_dead_nodes): Likewise.
1790         (ipcp_store_bits_results): Likewise.
1791         * ipa-devirt.c (dump_targets): Likewise.
1792         (ipa_devirt): Likewise.
1793         * ipa-icf.c (sem_item::dump): Likewise.
1794         (sem_function::equals): Likewise.
1795         (sem_variable::equals): Likewise.
1796         (sem_item_optimizer::read_section): Likewise.
1797         (sem_item_optimizer::execute): Likewise.
1798         (congruence_class::dump): Likewise.
1799         * ipa-inline-analysis.c (dump_ipa_call_summary): Likewise.
1800         (dump_inline_summary): Likewise.
1801         (estimate_node_size_and_time): Likewise.
1802         (inline_analyze_function): Likewise.
1803         * ipa-inline-transform.c (inline_call): Likewise.
1804         * ipa-inline.c (report_inline_failed_reason): Likewise.
1805         (want_early_inline_function_p): Likewise.
1806         (edge_badness): Likewise.
1807         (update_edge_key): Likewise.
1808         (inline_small_functions): Likewise.
1809         * ipa-profile.c (ipa_profile): Likewise.
1810         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
1811         (ipa_make_edge_direct_to_target): Likewise.
1812         (remove_described_reference): Likewise.
1813         (ipa_impossible_devirt_target): Likewise.
1814         (propagate_controlled_uses): Likewise.
1815         (ipa_print_node_params): Likewise.
1816         (ipcp_transform_function): Likewise.
1817         * ipa-pure-const.c (pure_const_read_summary): Likewise.
1818         (propagate_pure_const): Likewise.
1819         * ipa-reference.c (generate_summary): Likewise.
1820         (read_write_all_from_decl): Likewise.
1821         (propagate): Likewise.
1822         (ipa_reference_read_optimization_summary): Likewise.
1823         * ipa-utils.c (ipa_merge_profiles): Likewise.
1824         * ipa.c (walk_polymorphic_call_targets): Likewise.
1825         (symbol_table::remove_unreachable_nodes): Likewise.
1826         (ipa_single_use): Likewise.
1827         * passes.c (execute_todo): Likewise.
1828         * predict.c (drop_profile): Likewise.
1829         * symtab.c (symtab_node::get_dump_name): New function.
1830         (symtab_node::dump_name): Likewise.
1831         (symtab_node::dump_asm_name): Likewise.
1832         (symtab_node::dump_references): Likewise.
1833         (symtab_node::dump_referring): Likewise.
1834         (symtab_node::dump_base): Likewise.
1835         (symtab_node::debug_symtab): Likewise.
1836         * tree-sra.c (convert_callers_for_node): Likewise.
1837         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
1838         * value-prof.c (init_node_map): Likewise.
1840 2017-05-23  Martin Liska  <mliska@suse.cz>
1842         * cgraph.h: Move symtab_node::dump_table to symbol_table::dump
1843         and symtab_node::debug_symtab to symbol_table::debug.
1844         * cgraphunit.c (analyze_functions): Use the renamed function.
1845         (symbol_table::compile): Likewise.
1846         * ipa-cp.c (ipcp_verify_propagated_values): Likewise.
1847         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
1848         * passes.c (execute_todo): Likewise.
1849         * symtab.c (symbol_table::dump): New function.
1850         * tree-ssa-structalias.c (ipa_pta_execute): Use the renamed function.
1852 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
1854         * ipa-fnsummary.c (estimate_node_size_and_time): Do not sanity check
1855         that nonconst implies exec.
1857 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
1859         * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
1860         inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
1861         (inline_edge_summary_vec): Turn into ...
1862         (ipa_call_summaries): ... this one.
1863         (redirect_to_unreachable, edge_set_predicate,
1864         evaluate_properties_for_edge, inline_summary_alloc,
1865         reset_ipa_call_summary, reset_inline_summary,
1866         inline_summary_t::duplicate): Update.
1867         (inline_edge_duplication_hook): Turn to ...
1868         (ipa_call_summary_t::duplicate): ... this one.
1869         (inline_edge_removal_hook): Turn to ...
1870         (ipa_call_summary_t::remove): ... this one.
1871         (dump_inline_edge_summary): Turn to ...
1872         (dump_ipa_call_summary): ... this one.
1873         (estimate_function_body_sizes): Update.
1874         (inline_update_callee_summaries): Update.
1875         (remap_edge_change_prob): Update.
1876         (remap_edge_summaries): Update.
1877         (inline_merge_summary): Update.
1878         (do_estimate_edge_time): Update.
1879         (inline_generate_summary): Update.
1880         (inline_read_section): Update.
1881         (inline_read_summary): Update.
1882         (inline_free_summary): Update.
1883         * ipa-inline.c (can_inline_edge_p): Update.
1884         (compute_inlined_call_time): Update.
1885         (want_inline_small_function_p): Update.
1886         (edge_badness): Update.
1887         (early_inliner): Update.
1888         * ipa-inline.h (inline_edge_summary): Turn to ...
1889         (ipa_call_summary): ... this one.
1890         (ipa_call_summary_t): New class.
1891         (inline_edge_summary_t, inline_edge_summary_vec): Remove.
1892         (ipa_call_summaries): New.
1893         (inline_edge_summary): Remove.
1894         (estimate_edge_growth): Update.
1895         * ipa-profile.c (ipa_propagate_frequency_1): Update.
1896         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
1897         * ipa-split.c (execute_split_functions): Update.
1898         * ipa.c (symbol_table::remove_unreachable_nodes): Update.
1900 2017-05-23  Tom de Vries  <tom@codesourcery.com>
1902         * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
1903         attributes): Document rdrand effective target.
1905 2017-05-23  Tom de Vries  <tom@codesourcery.com>
1907         * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
1908         attributes): Sort alphabetically.
1910 2017-05-23  Georg-Johann Lay  <avr@gjlay.de>
1912         * config/avr/genmultilib.awk: Use gsub instead of gensub.
1914 2017-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
1916         PR target/80718
1917         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Split
1918         V2DF/V2DI splat into two separate patterns, one that handles
1919         registers, and the other that only handles memory.  Drop support
1920         for splatting from a GPR on ISA 2.07 and then splitting the
1921         splat into direct move and splat.
1922         (vsx_splat_<mode>_reg): Likewise.
1923         (vsx_splat_<mode>_mem): Likewise.
1925 2017-05-22  Segher Boessenkool  <segher@kernel.crashing.org>
1927         * cfgcleanup.c (bb_is_just_return): Allow CLOBBERs.
1929 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
1931         PR middle-end/80809
1932         * omp-low.c (finish_taskreg_remap): New function.
1933         (finish_taskreg_scan): If unit size of ctx->record_type
1934         is non-constant, unshare the size expression and replace
1935         decls in it with possible outer var refs.
1937         PR middle-end/80809
1938         * gimplify.c (omp_add_variable): For GOVD_DEBUG_PRIVATE use
1939         GOVD_SHARED rather than GOVD_PRIVATE with it.
1940         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Expect
1941         GOVD_SHARED rather than GOVD_PRIVATE with GOVD_DEBUG_PRIVATE.
1943         PR middle-end/80853
1944         * omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
1945         as last argument to build_outer_var_ref for pointer bases of array
1946         section reductions.
1948 2017-05-19  Martin Sebor  <msebor@redhat.com>
1950         * print-tree.c (print_node): Print DECL_READ_P flag.
1952 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
1954         * Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h
1955         * auto-profile.c: Replace ipa-inline.h by ipa-fnsummary.h
1956         * cgraph.c: Likewise.
1957         * cgraphunit.c: Likewise.
1958         * gengtype.c: Likewise.
1959         * ipa-cp.c: Likewise.
1960         * ipa-devirt.c: Likewise.
1961         * ipa-icf.c: Likewise.
1962         * ipa-predicate.c: Likewise.
1963         * ipa-profile.c: Likewise.
1964         * ipa-prop.c: Likewise.
1965         * ipa-split.c: Likewise.
1966         * ipa.c: Likewise.
1967         * ipa-inline-analysis.c (inline_summaries, ipa_call_summaries,
1968         edge_predicate_pool, dump_inline_hints,
1969         inline_summary::account_size_time, redirect_to_unreachable,
1970         edge_set_predicate, set_hint_predicate,
1971         evaluate_conditions_for_known_args, evaluate_properties_for_edge,
1972         inline_summary_alloc, ipa_call_summary::reset, inline_summary::reset,
1973         inline_summary_t::remove, remap_hint_predicate_after_duplication,
1974         inline_summary_t::duplicate, ipa_call_summary_t::duplicate,
1975         ipa_call_summary_t::remove, initialize_growth_caches,
1976         free_growth_caches, dump_ipa_call_summary, dump_inline_summary,
1977         debug_inline_summary, dump_inline_summaries, initialize_inline_failed,
1978         mark_modified, unmodified_parm_1, unmodified_parm,
1979         unmodified_parm_or_parm_agg_item, eliminated_by_inlining_prob,
1980         set_cond_stmt_execution_predicate, set_switch_stmt_execution_predicate,
1981         compute_bb_predicates, will_be_nonconstant_expr_predicate,
1982         will_be_nonconstant_predicate, record_modified_bb_info,
1983         get_minimal_bb, record_modified, param_change_prob,
1984         phi_result_unknown_predicate, predicate_for_phi_result,
1985         array_index_predicate, clobber_only_eh_bb_p, fp_expression_p,
1986         estimate_function_body_sizes, compute_inline_parameters,
1987         compute_inline_parameters_for_curren, pass_data_inline_parameters,
1988         estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,
1989         inline_update_callee_summaries, remap_edge_change_prob,
1990         remap_edge_summaries, remap_hint_predicate, inline_merge_summary,
1991         inline_update_overall_summary, inline_indirect_intraprocedural_analysis,
1992         inline_analyze_function, inline_summary_t::insert,
1993         inline_generate_summary, read_ipa_call_summary, inline_read_section,
1994         inline_read_summary, write_ipa_call_summary, inline_write_summary,
1995         inline_free_summary): Move to ipa-fnsummary.h
1996         (predicate_t): Remove.
1997         * ipa-fnsummary.c: New file.
1998         * ipa-inline.h:  Do not include sreal.h and ipa-predicate.h
1999         (enum inline_hints_vals, inline_hints, agg_position_info,
2000         INLINE_SIZE_SCALE, size_time_entry, inline_summary, inline_summary_t,
2001         inline_summaries, ipa_call_summary, ipa_call_summary_t,
2002         ipa_call_summaries, debug_inline_summary, dump_inline_summaries,
2003         dump_inline_summary, dump_inline_hints, inline_generate_summary,
2004         inline_read_summary, inline_write_summary, inline_free_summary,
2005         inline_analyze_function, initialize_inline_failed,
2006         inline_merge_summary, inline_update_overall_summary,
2007         compute_inline_parameters): Move to ipa-fnsummary.h
2008         * ipa-fnsummary.h: New file.
2009         * ipa-inline-transform.h: Include ipa-inline.h.
2010         * ipa-inline.c: LIkewise.
2012 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
2014         * ipa-inline.c (edge_badness): Use inlined_time instead of
2015         inline_summaries->get.
2017 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
2019         * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
2021 2017-05-22  Nathan Sidwell  <nathan@acm.org>
2023         * doc/invoke.texi (fdump-translation-unit): Delete documentation.
2024         (fdump-lang): Document 'raw' option.
2025         * dumpfile.h (TDI_tu): Delete.
2026         * dumpfile.c (dump_files): Remove translation-unit.
2027         (FIRST_AUTO_NUMBERED_DUMP): Decrement.
2029 2017-05-22  Georg-Johann Lay  <avr@gjlay.de>
2031         * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
2032         command option from $(AWK) call.
2033         * config/avr/genmultilib.awk: Simplify and rewrite so that it
2034         generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
2035         [FORMAT]: Remove handling of variable.
2036         * config/avr/t-multilib: Regenerate.
2038 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
2040         * ipa-inline-analysis.c (inline_summary::reset): Do not reset
2041         self_time.
2042         (dump_inline_summary): Do not print self_time.
2043         (estimate_function_body_sizes): Do not set self_time.
2044         (compute_inline_parameters): Likewise.
2045         (inline_read_section, inline_write_summary): Do not stream self_time.
2046         * ipa-inline.h (inline_summary): Drop self_time.
2048 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
2050         * ipa-inline-analysis.c (account_size_time): Rename to ...
2051         (inline_summary::account_size_time): ... this one.
2052         (reset_ipa_call_summary): Turn to ...
2053         (ipa_call_summary::reset): ... this one.
2054         (reset_inline_summary): Turn to ...
2055         (inline_summary::reset): ... this one.
2056         (inline_summary_t::remove): Update.
2057         (inline_summary_t::duplicate): Update.
2058         (ipa_call_summary_t::remove): Update.
2059         (dump_inline_summary): Update.
2060         (estimate_function_body_sizes): Update.
2061         (compute_inline_parameters): Update.
2062         (estimate_node_size_and_time): Update.
2063         (inline_merge_summary): Update.
2064         (inline_update_overall_summary): Update.
2065         (inline_read_section): Update.
2066         (inline_write_summary): Update.
2067         * ipa-inline.h (inline_summary): Rename entry to size_time_table;
2068         add account_size_time and reset member functions.
2069         (ipa_call_summary): Add reset function.
2070         * ipa-predicate.h (predicate::operator &): Constify.
2072 2017-05-22  Richard Biener  <rguenther@suse.de>
2074         * df-scan.c (df_insn_refs_verify): Speedup when not verifying.
2076 2017-05-19  Jason Merrill  <jason@redhat.com>
2078         * tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
2080 2017-05-19  Marek Polacek  <polacek@redhat.com>
2082         PR sanitizer/80800
2083         * fold-const.c (extract_muldiv_1) <case TRUNC_DIV_EXPR>: Add
2084         TYPE_OVERFLOW_WRAPS checks.
2086 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
2088         * tree-core.h (enum omp_clause_default_kind): Add
2089         "OMP_CLAUSE_DEFAULT_PRESENT".
2090         * tree-pretty-print.c (dump_omp_clause): Handle it.
2091         * gimplify.c (enum gimplify_omp_var_data): Add
2092         "GOVD_MAP_FORCE_PRESENT".
2093         (gimplify_adjust_omp_clauses_1): Map it to
2094         "GOMP_MAP_FORCE_PRESENT".
2095         (oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
2097         * gimplify.c (oacc_default_clause): Clarify.
2099 2017-05-19  Nathan Sidwell  <nathan@acm.org>
2101         LANG_HOOK_REGISTER_DUMPS
2102         * toplev.c (general_init): Call register dump lang hook.
2103         * doc/invoke.texi: Document -fdump-lang option family.
2104         * dumpfile.c (dump_files): Remove class dump here.
2105         (FIRST_AUTO_NUMBERED_DUMP): Adjust.
2106         * dumpfile.h (tree_dump_index): Remove TDI_class.
2107         * langhooks-def.h (lhd_register_dumps): Declare.
2108         (LANG_HOOKS_REGISTER_DUMPS): Define.
2109         (LANG_HOOKS_INITIALIZER): Add it.
2110         * langhooks.c (lhd_register_dumps): Define.
2111         * langhooks.h (struct lang_hooks): Add register_dumps.
2113 2017-05-19  Nathan Sidwell  <nathan@acm.org>
2115         * context.h (context::set_passes): New.
2116         * context.c (context::context): Do not create pass manager.
2117         * toplev.c (general_init): Create pass manager here.
2119 2017-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
2121         * config/rs6000/rs6000.md (splitter to load of -1 and mask): Don't
2122         use this splitter if two add or or instructions would also work for
2123         the constant we want to generate.
2125 2017-05-19  Richard Biener  <rguenther@suse.de>
2127         PR build/80821
2128         * genmatch.c (dt_node::gen_kids_1): Add missing scope around
2129         predicate evaluation.
2131 2017-05-19  Jan Hubicka  <hubicka@ucw.cz>
2133         * ipa-inline.h (ipa_call_summary): Turn sizes into signed;
2134         add ctor.
2135         * ipa-inline.c (want_inline_small_function_p): Do not cast to
2136         unsigned.
2138 2017-05-19  Jan Hubicka  <hubicka@ucw.cz>
2140         * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
2141         inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
2142         (inline_edge_summary_vec): Turn into ...
2143         (ipa_call_summaries): ... this one.
2144         (redirect_to_unreachable, edge_set_predicate,
2145         evaluate_properties_for_edge, inline_summary_alloc,
2146         reset_ipa_call_summary, reset_inline_summary,
2147         inline_summary_t::duplicate): Update.
2148         (inline_edge_duplication_hook): Turn to ...
2149         (ipa_call_summary_t::duplicate): ... this one.
2150         (inline_edge_removal_hook): Turn to ...
2151         (ipa_call_summary_t::remove): ... this one.
2152         (dump_inline_edge_summary): Turn to ...
2153         (dump_ipa_call_summary): ... this one.
2154         (estimate_function_body_sizes): Update.
2155         (inline_update_callee_summaries): Update.
2156         (remap_edge_change_prob): Update.
2157         (remap_edge_summaries): Update.
2158         (inline_merge_summary): Update.
2159         (do_estimate_edge_time): Update.
2160         (inline_generate_summary): Update.
2161         (inline_read_section): Update.
2162         (inline_read_summary): Update.
2163         (inline_free_summary): Update.
2164         * ipa-inline.c (can_inline_edge_p): Update.
2165         (compute_inlined_call_time): Update.
2166         (want_inline_small_function_p): Update.
2167         (edge_badness): Update.
2168         (early_inliner): Update.
2169         * ipa-inline.h (inline_edge_summary): Turn to ...
2170         (ipa_call_summary): ... this one.
2171         (ipa_call_summary_t): New class.
2172         (inline_edge_summary_t, inline_edge_summary_vec): Remove.
2173         (ipa_call_summaries): New.
2174         (inline_edge_summary): Remove.
2175         (estimate_edge_growth): Update.
2176         * ipa-profile.c (ipa_propagate_frequency_1): Update.
2177         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
2178         * ipa-split.c (execute_split_functions): Update.
2179         * ipa.c (symbol_table::remove_unreachable_nodes): Update.
2181 2017-05-19  Richard Biener  <rguenther@suse.de>
2183         PR middle-end/80764
2184         * cfgexpand.c (expand_gimple_cond): Fix loop fixup.
2186 2017-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
2188         * config/rs6000/rs6000.c (struct machine_function): Add field
2189         fpr_is_wrapped_separately.
2190         (rs6000_get_separate_components): Use 64 components.  Handle the
2191         new FPR components.
2192         (rs6000_components_for_bb): Handle the FPR components.
2193         (rs6000_emit_prologue_components): Handle the FPR components.
2194         (rs6000_emit_epilogue_components): Handle the FPR components.
2195         (rs6000_set_handled_components): Handle the FPR components.
2196         (rs6000_emit_prologue): Don't output prologue code for those FPRs
2197         that are already separately shrink-wrapped.
2198         (rs6000_emit_epilogue): Don't output epilogue code for those FPRs
2199         that are already separately shrink-wrapped.
2201 2017-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
2203         PR target/80510
2204         * config/rs6000/predicates.md (simple_offsettable_mem_operand):
2205         New predicate.
2207         * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
2208         (define_peephole2 for Altivec d-form load): Add peepholes to catch
2209         cases where the register allocator uses a move and an offsettable
2210         memory operation to/from a FPR register on ISA 2.06/2.07.
2211         (define_peephole2 for Altivec d-form store): Likewise.
2213 2017-05-18  Uros Bizjak  <ubizjak@gmail.com>
2215         PR target/80799
2216         * config/i386/mmx.md (*mov<mode>_internal): Enable
2217         alternatives 11, 12, 13 and 14 also for 32bit targets.
2218         Remove alternatives 15, 16, 17 and 18.
2219         * config/i386/sse.md (vec_concatv2di): Change
2220         alternative (!x, *y) to (x, ?!*Yn).
2222 2017-05-18  Paolo Carlini  <paolo.carlini@oracle.com>
2224         * dumpfile.h (enum dump_kind): Remove stray comma.
2226 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
2228         * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
2229         * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
2230         predicate::num_conditions
2231         (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
2232         (CHANGED): turn into predicate::changed.
2233         (agg_position_info): Move to ipa-predicate.h
2234         (add_condition, predicate::add_clause, predicate::operator &=,
2235         predicate::or_with, predicate::evaluate, predicate::probability,
2236         dump_condition, dump_clause, predicate::dump,
2237         predicate::remap_after_duplication, predicate::remap_after_inlining,
2238         predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
2239         (evaluate_conditions_for_known_args): Update.
2240         (set_cond_stmt_execution_predicate): Update.
2241         * ipa-inline.h: Include ipa-predicate.h
2242         (condition, inline_param_summary, conditions, agg_position_info,
2243         predicate): Move to ipa-predicate.h
2244         * ipa-predicate.c: New file.
2245         * ipa-predicate.h: New file.
2247 2017-05-18  Wilco Dijkstra  <wdijkstr@arm.com>
2249         * final.c (leaf_function_p): Check we are not in a sequence.
2251 2017-05-18  Martin Liska  <mliska@suse.cz>
2253         * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
2254         * dumpfile.c (dump_register): Use new enum dump_kind.
2255         (get_dump_file_name): Likewise.
2256         (dump_enable_all): Likewise.
2257         (dump_switch_p_1): Likewise.
2258         (enable_rtl_dump_file): Remove usage of TDF_RTL.
2259         * dumpfile.h (enum dump_kind): New enum type.
2260         (struct dump_file_info): Create constructor and
2261         format fields and comments.
2262         * passes.c (pass_manager::register_one_dump_file):
2263         Use num dump_kind.
2264         * statistics.c (statistics_early_init): Likewise.
2265         * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
2266         TDF_TREE with TDF_SLIM.
2267         (gather_memory_references_ref): Likewise.
2269 2017-05-18  Martin Liska  <mliska@suse.cz>
2271         * vec.h (struct vnull): Use it.
2273 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
2275         * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
2276         (true_predicate, false_predicate, true_predicate_p,
2277         false_predicate_p): Remove.
2278         (single_cond_predicate, not_inlined_predicate): Turn to member function
2279         in ipa-inline.h
2280         (add_condition): Update.
2281         (add_clause): Turn to...
2282         (predicate::add_clause): ... this one; update; allow passing NULL
2283         as parameter.
2284         (and_predicates): Turn to ...
2285         (predicate::operator &=): ... this one.
2286         (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
2287         (or_predicates): Turn to ...
2288         (predicate::or_with): ... this one.
2289         (evaluate_predicate): Turn to ...
2290         (predicate::evaluate): ... this one.
2291         (predicate_probability): Turn to ...
2292         (predicate::probability): ... this one.
2293         (dump_condition): Update.
2294         (dump_predicate): Turn to ...
2295         (predicate::dump): ... this one.
2296         (account_size_time): Update.
2297         (edge_set_predicate): Update.
2298         (set_hint_predicate): UPdate.
2299         (evaluate_conditions_for_known_args): Update.
2300         (evaluate_properties_for_edge): Update.
2301         (remap_predicate_after_duplication): Turn to...
2302         (predicate::remap_after_duplication): ... this one.
2303         (remap_hint_predicate_after_duplication): Update.
2304         (inline_summary_t::duplicate): UPdate.
2305         (dump_inline_edge_summary): Update.
2306         (dump_inline_summary): Update.
2307         (set_cond_stmt_execution_predicate): Update.
2308         (set_switch_stmt_execution_predicate): Update.
2309         (compute_bb_predicates): Update.
2310         (will_be_nonconstant_expr_predicate): Update.
2311         (will_be_nonconstant_predicate): Update.
2312         (phi_result_unknown_predicate): Update.
2313         (predicate_for_phi_result): Update.
2314         (array_index_predicate): Update.
2315         (estimate_function_body_sizes): Update.
2316         (estimate_node_size_and_time): Update.
2317         (estimate_ipcp_clone_size_and_time): Update.
2318         (remap_predicate): Rename to ...
2319         (predicate::remap_after_inlining): ... this one.
2320         (remap_hint_predicate): Update.
2321         (inline_merge_summary): Update.
2322         (inline_update_overall_summary): Update.
2323         (estimate_size_after_inlining): Update.
2324         (read_predicate): Rename to ...
2325         (predicate::stream_in): ... this one.
2326         (read_inline_edge_summary): Update.
2327         (write_predicate): Rename to ...
2328         (predicate::stream_out): ... this one.
2329         (write_inline_edge_summary): Update.
2330         * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
2331         (clause_t): Turn to uint32_t
2332         (predicate): Turn to class; implement constructor and operators
2333         ==, !=, &
2334         (size_time_entry): Update.
2335         (inline_summary): Update.
2336         (inline_edge_summary): Update.
2338 2017-05-18  Marc Glisse  <marc.glisse@inria.fr>
2340         * fold-const.c (fold_binary_loc): Move transformation...
2341         * match.pd (C - X CMP X): ... here.
2343 2017-05-18  Sheldon Lobo  <sheldon.lobo@oracle.com>
2345         * config/sparc/sparc.c (sparc_option_override): Set function
2346         alignment for -mcpu=niagara7 to 64 to match the I$ line.
2347         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
2348         latency to 1.
2349         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
2350         latency to 2.
2351         * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
2353 2017-05-18  Marek Polacek  <polacek@redhat.com>
2355         PR sanitizer/80797
2356         * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
2357         (pass_ubsan::execute): Call gimple_assign_single_p instead of
2358         gimple_assign_load_p.
2360 2017-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
2362         PR middle-end/80692
2363         * real.c (do_compare): Give decimal_do_compare preference over
2364         comparing just the signs.
2366 2017-05-17  Uros Bizjak  <ubizjak@gmail.com>
2368         * doc/md.texi (Canonicalization of Instructions): Describe the
2369         canonical form of instructions that inherently set a condition
2370         code register.
2372 2017-05-17  Peter Bergner  <bergner@vnet.ibm.com>
2374         PR middle-end/80775
2375         * tree-cfg.c: Move deletion of unreachable case statements to after
2376         the merging of consecutive case labels.
2378 2017-05-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2380         * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
2381         readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
2382         restoring of callee-saved registers.
2384 2017-05-17  Eric Botcazou  <ebotcazou@adacore.com>
2386         * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
2387         * config/visium/visium.c (single_set_and_flags): Likewise.
2388         * config/visium/visium.md (Substitutions): Likewise.
2390 2017-05-17  Martin Liska  <mliska@suse.cz>
2392         * cfg.c: Introduce dump_flags_t type and
2393         use it instead of int type.
2394         * cfg.h: Likewise.
2395         * cfghooks.c: Likewise.
2396         * cfghooks.h (struct cfg_hooks): Likewise.
2397         * cfgrtl.c: Likewise.
2398         * cfgrtl.h: Likewise.
2399         * cgraph.c (cgraph_node::get_body): Likewise.
2400         * coretypes.h: Likewise.
2401         * domwalk.c: Likewise.
2402         * domwalk.h: Likewise.
2403         * dumpfile.c (struct dump_option_value_info): Likewise.
2404         (dump_enable_all): Likewise.
2405         (dump_switch_p_1): Likewise.
2406         (opt_info_switch_p): Likewise.
2407         * dumpfile.h (enum tree_dump_index): Likewise.
2408         (struct dump_file_info): Likewise.
2409         * genemit.c: Likewise.
2410         * generic-match-head.c: Likewise.
2411         * gengtype.c (open_base_files): Likewise.
2412         * gimple-pretty-print.c: Likewise.
2413         * gimple-pretty-print.h: Likewise.
2414         * graph.c (print_graph_cfg): Likewise.
2415         * graphite-scop-detection.c (dot_all_sese): Likewise.
2416         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
2417         * loop-unroll.c (report_unroll): Likewise.
2418         * passes.c (pass_manager::register_one_dump_file): Likewise.
2419         * print-tree.c: Likewise.
2420         * statistics.c: Likewise.
2421         * tree-cfg.c: Likewise.
2422         * tree-cfg.h: Likewise.
2423         * tree-dfa.c: Likewise.
2424         * tree-dfa.h: Likewise.
2425         * tree-dump.c (dump_function): Likewise.
2426         * tree-dump.h (struct dump_info): Likewise.
2427         * tree-pretty-print.c: Likewise.
2428         * tree-pretty-print.h: Likewise.
2429         * tree-ssa-live.c: Likewise.
2430         * tree-ssa-live.h: Likewise.
2431         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
2432         * tree-vect-loop.c: Likewise.
2433         * tree-vect-slp.c: Likewise.
2435 2017-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
2436             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2438         PR tree-optimization/80457
2439         * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
2440         of all arguments to a statement as scalar_to_vec operations.
2441         (vectorizable_call): Adjust call to vect_model_simple_cost for
2442         new parameter.
2443         (vectorizable_conversion): Likewise.
2444         (vectorizable_assignment): Likewise.
2445         (vectorizable_shift): Likewise.
2446         (vectorizable_operation): Likewise.
2447         (vectorizable_comparison): Likewise.
2448         (vect_is_simple_cond): Record the def types for operands.
2449         (vectorizable_condition): Likewise, call vect_model_simple_cost.
2450         * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
2451         for statement argument count.
2453 2017-05-16  Carl Love  <cel@us.ibm.com>
2455         * config/rs6000/rs6000-c: Add support for built-in functions
2456         vector unsigned long long vec_bperm (vector unsigned long long,
2457                                              vector unsigned char)
2458         vector signed long long vec_mule (vector signed int,
2459                                           vector signed int)
2460         vector unsigned long long vec_mule (vector unsigned int,
2461                                             vector unsigned int)
2462         vector signed long long vec_mulo (vector signed int,
2463                                           vector signed int)
2464         vector unsigned long long vec_mulo (vector unsigned int,
2465                                             vector unsigned int)
2466         vector signed char vec_sldw (vector signed char,
2467                                      vector signed char,
2468                                      const int)
2469         vector unsigned char vec_sldw (vector unsigned char,
2470                                        vector unsigned char,
2471                                        const int)
2472         vector signed short vec_sldw (vector signed short,
2473                                       vector signed short,
2474                                       const int)
2475         vector unsigned short vec_sldw (vector unsigned short,
2476                                         vector unsigned short,
2477                                         const int)
2478         vector signed int vec_sldw (vector signed int,
2479                                     vector signed int,
2480                                     const int)
2481         vector unsigned int vec_sldw (vector unsigned int,
2482                                       vector unsigned int,
2483                                       const int)
2484         vector signed long long vec_sldw (vector signed long long,
2485                                           vector signed long long,
2486                                           const int)
2487         vector unsigned long long vec_sldw (vector unsigned long long,
2488                                             vector unsigned long long,
2489                                             const int)
2490         * config/rs6000/rs6000-c: Add support for built-in functions
2491         * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
2492         * config/rs6000/altivec.h: Add defintion for vec_sldw.
2493         * doc/extend.texi: Update the built-in documentation for the
2494         new built-in functions.
2496 2017-05-16  Marek Polacek  <polacek@redhat.com>
2498         PR sanitizer/80536
2499         PR sanitizer/80386
2500         * tree.c (save_expr): Don't fold the expression.
2502 2017-05-16  Uros Bizjak  <ubizjak@gmail.com>
2504         * config/i386/i386.md (*movsi_internal): Split (?rm,*y) alternative
2505         to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
2506         and (?*y,m).  Update insn attributes.
2508 2017-05-16  Martin Liska  <mliska@suse.cz>
2510         * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
2511         flags argument of print_gimple_stmt, print_gimple_expr,
2512         print_generic_stmt and print_generic_expr.
2513         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
2514         * coretypes.h: Likewise.
2515         * except.c (dump_eh_tree): Likewise.
2516         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
2517         * gimple-pretty-print.h: Likewise.
2518         * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
2519         (backprop::push_to_worklist): Likewise.
2520         (backprop::pop_from_worklist): Likewise.
2521         (backprop::process_use): Likewise.
2522         (backprop::intersect_uses): Likewise.
2523         (note_replacement): Likewise.
2524         * gimple-ssa-store-merging.c
2525         (pass_store_merging::terminate_all_aliasing_chains): Likewise.
2526         (imm_store_chain_info::coalesce_immediate_stores): Likewise.
2527         (pass_store_merging::execute): Likewise.
2528         * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
2529         (ssa_base_cand_dump_callback): Likewise.
2530         (dump_incr_vec): Likewise.
2531         (replace_refs): Likewise.
2532         (replace_mult_candidate): Likewise.
2533         (create_add_on_incoming_edge): Likewise.
2534         (create_phi_basis): Likewise.
2535         (insert_initializers): Likewise.
2536         (all_phi_incrs_profitable): Likewise.
2537         (introduce_cast_before_cand): Likewise.
2538         (replace_one_candidate): Likewise.
2539         * gimplify.c (gimplify_expr): Likewise.
2540         * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
2541         (set_rename): Likewise.
2542         (rename_uses): Likewise.
2543         (copy_loop_phi_nodes): Likewise.
2544         (add_close_phis_to_merge_points): Likewise.
2545         (copy_loop_close_phi_args): Likewise.
2546         (copy_cond_phi_args): Likewise.
2547         (graphite_copy_stmts_from_block): Likewise.
2548         (translate_pending_phi_nodes): Likewise.
2549         * graphite-poly.c (print_pdr): Likewise.
2550         (dump_gbb_cases): Likewise.
2551         (dump_gbb_conditions): Likewise.
2552         (print_scop_params): Likewise.
2553         * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
2554         (build_cross_bb_scalars_use): Likewise.
2555         (gather_bbs::before_dom_children): Likewise.
2556         * hsa-dump.c (dump_hsa_immed): Likewise.
2557         * ipa-cp.c (print_ipcp_constant_value): Likewise.
2558         (get_replacement_map): Likewise.
2559         * ipa-inline-analysis.c (dump_condition): Likewise.
2560         (estimate_function_body_sizes): Likewise.
2561         * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
2562         (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
2563         * ipa-prop.c (ipa_dump_param): Likewise.
2564         (ipa_print_node_jump_functions_for_edge): Likewise.
2565         (ipa_modify_call_arguments): Likewise.
2566         (ipa_modify_expr): Likewise.
2567         (ipa_dump_param_adjustments): Likewise.
2568         (ipa_dump_agg_replacement_values): Likewise.
2569         (ipcp_modif_dom_walker::before_dom_children): Likewise.
2570         * ipa-pure-const.c (check_stmt): Likewise.
2571         (pass_nothrow::execute): Likewise.
2572         * ipa-split.c (execute_split_functions): Likewise.
2573         * omp-offload.c (dump_oacc_loop_part): Likewise.
2574         (dump_oacc_loop): Likewise.
2575         * trans-mem.c (tm_log_emit): Likewise.
2576         (tm_memopt_accumulate_memops): Likewise.
2577         (dump_tm_memopt_set): Likewise.
2578         (dump_tm_memopt_transform): Likewise.
2579         * tree-cfg.c (gimple_verify_flow_info): Likewise.
2580         (print_loop): Likewise.
2581         * tree-chkp-opt.c (chkp_print_addr): Likewise.
2582         (chkp_gather_checks_info): Likewise.
2583         (chkp_get_check_result): Likewise.
2584         (chkp_remove_check_if_pass): Likewise.
2585         (chkp_use_outer_bounds_if_possible): Likewise.
2586         (chkp_reduce_bounds_lifetime): Likewise.
2587         * tree-chkp.c (chkp_register_addr_bounds): Likewise.
2588         (chkp_mark_completed_bounds): Likewise.
2589         (chkp_register_incomplete_bounds): Likewise.
2590         (chkp_mark_invalid_bounds): Likewise.
2591         (chkp_maybe_copy_and_register_bounds): Likewise.
2592         (chkp_build_returned_bound): Likewise.
2593         (chkp_get_bound_for_parm): Likewise.
2594         (chkp_build_bndldx): Likewise.
2595         (chkp_get_bounds_by_definition): Likewise.
2596         (chkp_generate_extern_var_bounds): Likewise.
2597         (chkp_get_bounds_for_decl_addr): Likewise.
2598         * tree-chrec.c (chrec_apply): Likewise.
2599         * tree-data-ref.c (dump_data_reference): Likewise.
2600         (dump_subscript): Likewise.
2601         (dump_data_dependence_relation): Likewise.
2602         (analyze_overlapping_iterations): Likewise.
2603         * tree-inline.c (expand_call_inline): Likewise.
2604         (tree_function_versioning): Likewise.
2605         * tree-into-ssa.c (dump_defs_stack): Likewise.
2606         (dump_currdefs): Likewise.
2607         (dump_names_replaced_by): Likewise.
2608         (dump_update_ssa): Likewise.
2609         (update_ssa): Likewise.
2610         * tree-object-size.c (pass_object_sizes::execute): Likewise.
2611         * tree-parloops.c (build_new_reduction): Likewise.
2612         (try_create_reduction_list): Likewise.
2613         (ref_conflicts_with_region): Likewise.
2614         (oacc_entry_exit_ok_1): Likewise.
2615         (oacc_entry_exit_single_gang): Likewise.
2616         * tree-pretty-print.h: Likewise.
2617         * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
2618         (get_scalar_evolution): Likewise.
2619         (add_to_evolution): Likewise.
2620         (get_loop_exit_condition): Likewise.
2621         (analyze_evolution_in_loop): Likewise.
2622         (analyze_initial_condition): Likewise.
2623         (analyze_scalar_evolution): Likewise.
2624         (instantiate_scev): Likewise.
2625         (number_of_latch_executions): Likewise.
2626         (gather_chrec_stats): Likewise.
2627         (final_value_replacement_loop): Likewise.
2628         (scev_const_prop): Likewise.
2629         * tree-sra.c (dump_access): Likewise.
2630         (disqualify_candidate): Likewise.
2631         (create_access): Likewise.
2632         (reject): Likewise.
2633         (maybe_add_sra_candidate): Likewise.
2634         (create_access_replacement): Likewise.
2635         (analyze_access_subtree): Likewise.
2636         (analyze_all_variable_accesses): Likewise.
2637         (sra_modify_assign): Likewise.
2638         (initialize_constant_pool_replacements): Likewise.
2639         (find_param_candidates): Likewise.
2640         (decide_one_param_reduction): Likewise.
2641         (replace_removed_params_ssa_names): Likewise.
2642         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
2643         * tree-ssa-copy.c (dump_copy_of): Likewise.
2644         (copy_prop_visit_cond_stmt): Likewise.
2645         * tree-ssa-dce.c (mark_operand_necessary): Likewise.
2646         * tree-ssa-dom.c (pass_dominator::execute): Likewise.
2647         (record_equivalences_from_stmt): Likewise.
2648         * tree-ssa-dse.c (compute_trims): Likewise.
2649         (delete_dead_call): Likewise.
2650         (delete_dead_assignment): Likewise.
2651         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
2652         (forward_propagate_into_cond): Likewise.
2653         (pass_forwprop::execute): Likewise.
2654         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
2655         * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
2656         Likewise.
2657         (move_computations_worker): Likewise.
2658         (execute_sm): Likewise.
2659         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
2660         (remove_exits_and_undefined_stmts): Likewise.
2661         (remove_redundant_iv_tests): Likewise.
2662         * tree-ssa-loop-ivopts.c (dump_use): Likewise.
2663         (adjust_iv_update_pos): Likewise.
2664         * tree-ssa-math-opts.c (bswap_replace): Likewise.
2665         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
2666         (value_replacement): Likewise.
2667         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
2668         * tree-ssa-pre.c (print_pre_expr): Likewise.
2669         (get_representative_for): Likewise.
2670         (create_expression_by_pieces): Likewise.
2671         (insert_into_preds_of_block): Likewise.
2672         (eliminate_insert): Likewise.
2673         (eliminate_dom_walker::before_dom_children): Likewise.
2674         (eliminate): Likewise.
2675         (remove_dead_inserted_code): Likewise.
2676         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
2677         * tree-ssa-reassoc.c (get_rank): Likewise.
2678         (eliminate_duplicate_pair): Likewise.
2679         (eliminate_plus_minus_pair): Likewise.
2680         (eliminate_not_pairs): Likewise.
2681         (undistribute_ops_list): Likewise.
2682         (eliminate_redundant_comparison): Likewise.
2683         (update_range_test): Likewise.
2684         (optimize_range_tests_var_bound): Likewise.
2685         (optimize_vec_cond_expr): Likewise.
2686         (rewrite_expr_tree): Likewise.
2687         (rewrite_expr_tree_parallel): Likewise.
2688         (linearize_expr): Likewise.
2689         (break_up_subtract): Likewise.
2690         (linearize_expr_tree): Likewise.
2691         (attempt_builtin_powi): Likewise.
2692         (attempt_builtin_copysign): Likewise.
2693         (transform_stmt_to_copy): Likewise.
2694         (transform_stmt_to_multiply): Likewise.
2695         (dump_ops_vector): Likewise.
2696         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
2697         (print_scc): Likewise.
2698         (set_ssa_val_to): Likewise.
2699         (visit_reference_op_store): Likewise.
2700         (visit_use): Likewise.
2701         (sccvn_dom_walker::before_dom_children): Likewise.
2702         (run_scc_vn): Likewise.
2703         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
2704         Likewise.
2705         (expr_hash_elt::print): Likewise.
2706         (const_and_copies::pop_to_marker): Likewise.
2707         (const_and_copies::record_const_or_copy_raw): Likewise.
2708         * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
2709         * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
2710         (dump_predicates): Likewise.
2711         (find_uninit_use): Likewise.
2712         (warn_uninitialized_phi): Likewise.
2713         (pass_late_warn_uninitialized::execute): Likewise.
2714         * tree-ssa.c (verify_vssa): Likewise.
2715         (verify_ssa): Likewise.
2716         (maybe_optimize_var): Likewise.
2717         * tree-vrp.c (dump_value_range): Likewise.
2718         (dump_all_value_ranges): Likewise.
2719         (dump_asserts_for): Likewise.
2720         (register_edge_assert_for_2): Likewise.
2721         (vrp_visit_cond_stmt): Likewise.
2722         (vrp_visit_switch_stmt): Likewise.
2723         (vrp_visit_stmt): Likewise.
2724         (vrp_visit_phi_node): Likewise.
2725         (simplify_cond_using_ranges_1): Likewise.
2726         (fold_predicate_in): Likewise.
2727         (evrp_dom_walker::before_dom_children): Likewise.
2728         (evrp_dom_walker::push_value_range): Likewise.
2729         (evrp_dom_walker::pop_value_range): Likewise.
2730         (execute_early_vrp): Likewise.
2732 2017-05-16  Richard Biener  <rguenther@suse.de>
2734         * dwarf2out.c (loc_list_from_tree_1): Do not create
2735         DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
2737 2017-05-16  Richard Biener  <rguenther@suse.de>
2739         * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
2740         just generated.
2741         (note_variable_value_in_expr): If we resolved the decl ref
2742         do not push to the stack.
2744 2017-05-16  Matthew Wahab  <matthew.wahab@arm.com>
2746         * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
2747         operations in fast-math mode.
2748         (vaddq_f16): Likewise.
2749         (vmul_f16): Likewise.
2750         (vmulq_f16): Likewise.
2751         (vsub_f16): Likewise.
2752         (vsubq_f16): Likewise.
2753         * config/arm/neon.md (add<mode>3): New.
2754         (sub<mode>3): New.
2755         (fma:<VH:mode>3): New.  Also remove outdated comment.
2756         (mul<mode>3): New.
2758 2017-05-16  Martin Liska  <mliska@suse.cz>
2760         PR ipa/79849.
2761         PR ipa/79850.
2762         * ipa-devirt.c (warn_types_mismatch): Fix typo.
2763         (odr_types_equivalent_p): Likewise.
2765 2017-05-15  Sylvestre Ledru  <sylvestre@debian.org>
2767         * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
2769 2017-05-15  Uros Bizjak  <ubizjak@gmail.com>
2771         PR target/80425
2772         * config/i386.i386.md (*zero_extendsidi2): Do not penalize
2773         non-interunit SSE move alternatives with '?'.
2774         (zero-extendsidi peephole2): New peephole to skip intermediate
2775         general register in SSE zero-extend sequence.
2777 2017-05-15  Jeff Law  <law@redhat.com>
2779         * reorg.c (relax_delay_slots): Create a new variable to hold
2780         the temporary target rather than clobbering TARGET_LABEL.
2782         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
2783         missing argument to extract_bit_field call.
2784         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
2786 2017-05-15  Martin Liska  <mliska@suse.cz>
2788         PR driver/31468
2789         * gcc.c (process_command): Do not allow empty argument of -o option.
2791 2017-05-15  Renlin Li  <renlin.li@arm.com>
2793         * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
2794         * config/aarch64/aarch64.c (aarch64_expand_call): Define.
2795         * config/aarch64/constraints.md (Usf): Add long call check.
2796         * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
2797         (call_value): Likewise.
2798         (sibcall): Likewise.
2799         (sibcall_value): Likewise.
2800         (call_insn): New.
2801         (call_value_insn): New.
2802         (sibcall_insn): Update rtx pattern.
2803         (sibcall_value_insn): Likewise.
2804         (call_internal): Remove.
2805         (call_value_internal): Likewise.
2806         (sibcall_internal): Likewise.
2807         (sibcall_value_internal): Likewise.
2808         (call_reg): Likewise.
2809         (call_symbol): Likewise.
2810         (call_value_reg): Likewise.
2811         (call_value_symbol): Likewise.
2813 2017-05-14  Krister Walfridsson  <krister.walfridsson@gmail.com>
2815         PR target/80600
2816         * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
2818 2017-05-14  Uros Bizjak  <ubizjak@gmail.com>
2820         * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
2821         compatible with CCGOCmode and with CCZmode.
2823 2017-05-14  Martin Sebor  <msebor@redhat.com>
2825         PR middle-end/77671
2826         * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
2827         (gimple_fold_builtin_snprintf): Same.
2828         * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
2829         (gimple_fold_builtin_snprintf): Same.
2830         * gimple-ssa-sprintf.c (get_format_string): Correct the detection
2831         of character types.
2832         (is_call_safe): New function.
2833         (try_substitute_return_value): Call it.
2834         (try_simplify_call): New function.
2835         (pass_sprintf_length::handle_gimple_call): Call it.
2837 2017-05-14  Martin Sebor  <msebor@redhat.com>
2839         PR middle-end/80669
2840         * builtins.c (expand_builtin_stpncpy): Simplify.
2842 2017-05-14  Daniel Santos  <daniel.santos@pobox.com>
2844         * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
2845         * config/i386/i386.h
2846         (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
2847         (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
2848         (struct machine_function): Add new members call_ms2sysv,
2849         call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
2850         (struct machine_frame_state): New fields sp_realigned and
2851         sp_realigned_offset.
2852         * config/i386/i386.c
2853         (enum xlogue_stub): New enum.
2854         (enum xlogue_stub_sets): New enum.
2855         (class xlogue_layout): New class.
2856         (struct ix86_frame): New fields stack_realign_allocate_offset,
2857         stack_realign_offset and outlined_save_offset.  Modify comments to
2858         detail stack layout when using out-of-line stubs.
2859         (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
2860         (ix86_option_override_internal): Add sorry() for TARGET_SEH and
2861         -mcall-ms2sysv-xlogues.
2862         (stub_managed_regs): New static variable.
2863         (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
2864         registers managed by out-of-line stub.
2865         (disable_call_ms2sysv_xlogues): New function.
2866         (ix86_compute_frame_layout): Modify re-alignment calculations, disable
2867         m->call_ms2sysv when appropriate and compute frame layout for
2868         out-of-line stubs.
2869         (sp_valid_at, fp_valid_at): New inline functions.
2870         (choose_basereg): New function.
2871         (choose_baseaddr): Add align parameter, use choose_basereg and modify
2872         all callers.
2873         (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
2874         Use align parameter of choose_baseaddr to generated aligned SSE movs
2875         when possible.
2876         (pro_epilogue_adjust_stack): Modify to track
2877         machine_frame_state::sp_realigned.
2878         (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
2879         (ix86_nsaved_sseregs): Likewise.
2880         (ix86_emit_save_regs): Likewise.
2881         (ix86_emit_save_regs_using_mov): Likewise.
2882         (ix86_emit_save_sse_regs_using_mov): Likewise.
2883         (get_scratch_register_on_entry): Likewise.
2884         (gen_frame_set): New function.
2885         (gen_frame_load): Likewise.
2886         (gen_frame_store): Likewise.
2887         (emit_outlined_ms2sysv_save): Likewise.
2888         (emit_outlined_ms2sysv_restore): Likewise.
2889         (ix86_expand_prologue): Modify stack re-alignment code and call
2890         emit_outlined_ms2sysv_save when appropriate.
2891         (ix86_emit_leave): Clear machine_frame_state::sp_realigned.  Add
2892         parameter rtx_insn *insn, which allows the function to be used to only
2893         generate the notes.
2894         (ix86_expand_epilogue): Modify validity checks of frame and stack
2895         pointers, and call emit_outlined_ms2sysv_restore when appropriate.
2896         (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
2897         * config/i386/predicates.md
2898         (save_multiple): New predicate.
2899         (restore_multiple): Likewise.
2900         * config/i386/sse.md
2901         (save_multiple<mode>): New pattern.
2902         (save_multiple_realign<mode>): Likewise.
2903         (restore_multiple<mode>): Likewise.
2904         (restore_multiple_and_return<mode>): Likewise.
2905         (restore_multiple_leave_return<mode>): Likewise.
2906         * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
2908 2017-05-14  Julia Koval  <julia.koval@intel.com>
2910         * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
2911         * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
2912         (__builtin_ia32_xsetbv): New builtins.
2913         * config/i386/i386.c (ix86_expand_special_args_builtin):
2914         Process new types.
2915         (ix86_expand_builtin): Special expand for new intrinsics.
2916         * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
2917         (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
2918         * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
2920 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2922         * cfganal.c (inverted_post_order_compute): Change argument type
2923         to vec *.
2924         * cfganal.h (inverted_post_order_compute): Adjust prototype.
2925         * df-core.c (rest_of_handle_df_initialize): Adjust.
2926         (rest_of_handle_df_finish): Likewise.
2927         (df_analyze_1): Likewise.
2928         (df_analyze): Likewise.
2929         (loop_inverted_post_order_compute): Change argument to be a vec *.
2930         (df_analyze_loop): Adjust.
2931         (df_get_n_blocks): Likewise.
2932         (df_get_postorder): Likewise.
2933         * df.h (struct df_d): Change field to be a vec.
2934         * lcm.c (compute_laterin): Adjust.
2935         (compute_available): Likewise.
2936         * lra-lives.c (lra_create_live_ranges_1): Likewise.
2937         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
2938         * tree-ssa-pre.c (compute_antic): Likewise.
2940 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2942         * cfganal.c (connect_infinite_loops_to_exit): Adjust.
2943         (depth_first_search::depth_first_search): Change structure init
2944         function to this constructor.
2945         (depth_first_search::add_bb): Rename function to this member.
2946         (depth_first_search::execute): Likewise.
2947         (flow_dfs_compute_reverse_finish): Adjust.
2949 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2951         * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
2952         (longest_simple_path): Likewise.
2953         * shrink-wrap.c (spread_components): Likewise.
2954         (disqualify_problematic_components): Likewise.
2955         (emit_common_heads_for_components): Likewise.
2956         (emit_common_tails_for_components): Likewise.
2957         (insert_prologue_epilogue_for_components): Likewise.
2959 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2961         * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
2962         auto_sbitmap.
2964 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2966         * df-core.c (df_set_blocks): Start using auto_bitmap.
2967         (df_compact_blocks): Likewise.
2968         * df-problems.c (df_rd_confluence_n): Likewise.
2969         * df-scan.c (df_insn_rescan_all): Likewise.
2970         (df_process_deferred_rescans): Likewise.
2971         (df_update_entry_block_defs): Likewise.
2972         (df_update_exit_block_uses): Likewise.
2973         (df_entry_block_bitmap_verify): Likewise.
2974         (df_exit_block_bitmap_verify): Likewise.
2975         (df_scan_verify): Likewise.
2976         * lra-constraints.c (lra_constraints): Likewise.
2977         (undo_optional_reloads): Likewise.
2978         (lra_undo_inheritance): Likewise.
2979         * lra-remat.c (calculate_gen_cands): Likewise.
2980         (do_remat): Likewise.
2981         * lra-spills.c (assign_spill_hard_regs): Likewise.
2982         (spill_pseudos): Likewise.
2983         * tree-ssa-pre.c (bitmap_set_and): Likewise.
2984         (bitmap_set_subtract_values): Likewise.
2986 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2988         * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
2989         management with auto_bitmap.
2990         (fix_inter_tick): Likewise.
2991         (fix_recovery_deps): Likewise.
2992         * ira.c (add_store_equivs): Likewise.
2993         (find_moveable_pseudos): Likewise.
2994         (split_live_ranges_for_shrink_wrap): Likewise.
2995         * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
2996         (rtx_reuse_manager::seen_def_p): Likewise.
2997         (rtx_reuse_manager::set_seen_def): Likewise.
2998         * print-rtl.h (class rtx_reuse_manager): Likewise.
3000 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3002         * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
3003         lifetime.
3004         (migrate_btr_def): Likewise.
3005         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
3006         * df-core.c (loop_post_order_compute): Likewise.
3007         (loop_inverted_post_order_compute): Likewise.
3008         * hsa-common.h: Likewise.
3009         * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
3010         * init-regs.c (initialize_uninitialized_regs): Likewise.
3011         * ipa-inline.c (resolve_noninline_speculation): Likewise.
3012         (inline_small_functions): Likewise.
3013         * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
3014         * ira.c (combine_and_move_insns): Likewise.
3015         (build_insn_chain): Likewise.
3016         * loop-invariant.c (find_invariants): Likewise.
3017         * lower-subreg.c (propagate_pseudo_copies): Likewise.
3018         * predict.c (tree_predict_by_opcode): Likewise.
3019         (predict_paths_leading_to): Likewise.
3020         (predict_paths_leading_to_edge): Likewise.
3021         (estimate_loops_at_level): Likewise.
3022         (estimate_loops): Likewise.
3023         * shrink-wrap.c (try_shrink_wrapping): Likewise.
3024         (spread_components): Likewise.
3025         * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
3026         * tree-loop-distribution.c (rdg_build_partitions): Likewise.
3027         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
3028         * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
3029         * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
3030         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
3031         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
3032         * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
3033         (mark_threaded_blocks): Likewise.
3034         (thread_through_all_blocks): Likewise.
3035         * tree-ssa.c (verify_ssa): Likewise.
3036         (execute_update_addresses_taken): Likewise.
3037         * tree-ssanames.c (verify_ssaname_freelists): Likewise.
3039 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3041         * cfganal.c (mark_dfs_back_edges): Replace manual stack with
3042         auto_vec.
3043         (post_order_compute): Likewise.
3044         (inverted_post_order_compute): Likewise.
3045         (pre_and_rev_post_order_compute_fn): Likewise.
3047 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3049         * genrecog.c (int_set::int_set): Explicitly construct our
3050         auto_vec base class.
3051         * vec.h (auto_vec::auto_vec): New constructor.
3053 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3055         * bitmap.h (class auto_bitmap): New constructor taking
3056         bitmap_obstack * argument.
3058 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3060         * bitmap.h (class auto_bitmap): Change type of m_bits to
3061         bitmap_head, and adjust ctor / dtor and member operators.
3063 2017-05-13  Uros Bizjak  <ubizjak@gmail.com>
3065         * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
3066         when returned register mode doesn't match original mode.
3068 2017-05-12  Jeff Law  <law@redhat.com>
3069             Jakub Jelinek  <jakub@redhat.com>
3071         * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
3072         we look for cc setter after the compare-elim changes.
3073         * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
3074         within the vector to match what compare-elim now expects.
3075         (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
3076         (xorsi3_flags, one_cmplsi2_flags): Likewise.
3078         * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
3079         after the compare-elim changes.
3080         * config/rx/rx.md (abssi2_flags): Fix order of patterns within
3081         the vector to match what compare-elim now expects.
3082         (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
3083         (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
3084         (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
3085         (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
3086         (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
3088         * config/visium/visium.c (single_set_and_flags): Fix where
3089         we look for cc setter after the compare-elim changes.
3090         * config/visium/visium.md (flags_subst_logic): Fix order of patterns
3091         with the vector to match what compare-elim now expects.
3092         (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
3093         (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
3094         (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
3095         (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
3096         (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
3097         (neg<mode>2_insn_set_overflow): Likewise.
3099 2017-05-12  Jim Wilson  <jim.wilson@linaro.org>
3101         PR middle-end/79794
3102         * expmed.c (extract_bit_field_1): Add alt_rtl argument.  Before
3103         maybe_expand_insn call, set ops[0].target.  If still set after call,
3104         set alt_rtl.  Add extra arg to recursive calls.
3105         (extract_bit_field): Add alt_rtl argument.  Pass to
3106         extract_bit_field.
3107         * expmed.h (extract_bit_field): Fix prototype.
3108         * expr.c (emit_group_load_1, copy_blkmode_from_reg)
3109         (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
3110         to extract_bit_field_calls.
3111         (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
3112         Pass alt_rtl to extract_bit_field calls.
3113         * calls.c (store_unaligned_arguments_into_psuedos)
3114         load_register_parameters): Pass extra NULL to extract_bit_field calls.
3115         * optabs.c (maybe_legitimize_operand): Clear op->target when call
3116         gen_reg_rtx.
3117         * optabs.h (struct expand_operand): Add target bitfield.
3119 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
3121         * compare-elim.c (try_eliminate_compare): Canonicalize
3122         operation with embedded compare to
3123         [(set (reg:CCM) (compare:CCM (operation) (immediate)))
3124          (set (reg) (operation)].
3126         * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
3128 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
3130         PR target/80723
3131         * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
3132         cost of adding a carry flag for ADC instruction.
3133         [case MINUS]: Ignore the cost of subtracting a carry flag
3134         for SBB instruction.
3136 2017-05-12  Steven Munroe  <munroesj@gcc.gnu.org>
3138         * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
3139         and x86intrin.h
3140         * config/rs6000/bmiintrin.h: New file.
3141         * config/rs6000/bmi2intrin.h: New file.
3142         * config/rs6000/x86intrin.h: New file.
3144 2017-05-12  Jeff Law  <law@redhat.com>
3146         * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
3147         markers.
3149 2017-05-12  Peter Bergner  <bergner@vnet.ibm.com>
3151         PR middle-end/80707
3152         * tree-cfg.c: Remove cfg edges of unreachable case statements.
3154 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
3156         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
3157         early expansion of vector divide builtins.
3158         (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
3159         builtins identified as having unsigned arguments.
3161 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
3163         * config/rs6000/rs6000.c (gimple-fold.h): New #include.
3164         (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
3165         expansion of vector logical operations (and, andc, or, xor,
3166         nor, orc, nand).
3168 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
3170         * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
3171         * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
3173 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
3175         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
3176         early GIMPLE expansion of vector multiplies.
3178 2017-05-12  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
3180         * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
3181         TARGET_HAVE_MOVT conditional.
3182         (movt splitter): Likewise.
3184 2017-05-12  Richard Biener  <rguenther@suse.de>
3186         * tree-ssa-sccvn.h (has_VN_INFO): Declare.
3187         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3188         Fold all stmts not inplace.
3190 2017-05-12  Richard Biener  <rguenther@suse.de>
3192         PR tree-optimization/80713
3193         * tree-ssa-pre.c (remove_dead_inserted_code): Clear
3194         inserted_exprs bit for not removed stmts.
3196 2017-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3198         PR middle-end/69921
3199         * tree-parloops.c (create_parallel_loop): Set "oacc kernels
3200         parallelized" attribute for parallelized OpenACC kernels.
3201         * omp-offload.c (execute_oacc_device_lower): Use it.
3203         * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
3204         Set "oacc kernels" attribute.
3205         * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
3206         parameter.  Adjust all users.
3207         (oacc_fn_attrib_kernels_p): Remove function.
3208         * omp-offload.c (execute_oacc_device_lower): Look for "oacc
3209         kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
3210         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
3211         * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
3212         assert "oacc kernels" attribute is set.
3214 2017-05-11  Carl Love  <cel@us.ibm.com>
3216         * config/rs6000/rs6000-c: Add support for built-in functions
3217         vector unsigned char vec_popcnt (vector signed char)
3218         vector unsigned char vec_popcnt (vector unsigned char)
3219         vector unsigned short vec_popcnt (vector signed short)
3220         vector unsigned short vec_popcnt (vector unsigned short)
3221         vector unsigned int vec_popcnt (vector signed int)
3222         vector unsigned int vec_popcnt (vector unsigned int)
3223         vector unsigned long long vec_popcnt (vector signed long long)
3224         vector unsigned long long vec_popcnt (vector unsigned long long)
3225         vector signed long long vec_slo (vector signed long long,
3226                                          vector signed char)
3227         vector signed long long vec_slo (vector signed long long,
3228                                          vector unsigned char)
3229         vector unsigned long long vec_slo (vector unsigned long long,
3230                                            vector signed char)
3231         vector unsigned long long vec_slo (vector unsigned long long,
3232                                            vector unsigned char)
3233         * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
3234         VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
3235         * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
3236         vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
3237         * doc/extend.texi: Update the built-in documentation file for the
3238         new built-in functions.
3240 2017-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
3242         * attribs.h (sorted_attr_string): Move machine independent
3243         functions for target clone support from the i386 port to common
3244         code.  Rename ix86_function_versions to common_function_versions.
3245         Rename make_name to make_unique_name.
3246         (common_function_versions): Likewise.
3247         (make_unique_name): Likewise.
3248         (make_dispatcher_decl): Likewise.
3249         (is_function_default_version): Likewise.
3250         * attribs.c (attr_strcmp): Likewise.
3251         (sorted_attr_string): Likewise.
3252         (common_function_versions): Likewise.
3253         (make_unique_name): Likewise.
3254         (make_dispatcher_decl): Likewise.
3255         (is_function_default_version): Likewise.
3256         * config/i386/i386.c (attr_strcmp): Likewise.
3257         (sorted_attr_string): Likewise.
3258         (ix86_function_versions): Likewise.
3259         (make_name): Likewise.
3260         (make_dispatcher_decl): Likewise.
3261         (is_function_default_version): Likewise.
3262         (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
3264 2017-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3266         PR target/80695
3267         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
3268         Account for direct move costs for vec_construct of integer
3269         vectors.
3271 2017-05-11  Uros Bizjak  <ubizjak@gmail.com>
3273         PR target/80706
3274         * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
3275         (UNSPEC_STX_ATOMIC): Ditto.
3276         (loaddi_via_sse): New insn.
3277         (storedi_via_sse): Ditto.
3278         (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
3279         Update corresponding peephole2 patterns.
3280         (atomic_storedi_fpu): Ditto.
3282 2017-05-11  Julia Koval  <julia.koval@intel.com>
3284         * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
3285         (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
3286         New intrinsics.
3287         * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
3288         (__builtin_ia32_rsqrt14ss_mask): New builtins.
3289         * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
3291 2017-05-11  Nathan Sidwell  <nathan@acm.org>
3293         * graphite-poly.c: Include dumpfile.h.
3295         * dumpfle.h (dump_function): Declare here ...
3296         * tree-dump.h (dump_function): ... not here.
3297         * dumpfile.c: #include tree-cfg.h.
3298         (dump_function): Move here from ...
3299         * tree-dump.c (dump_function): ... here.
3300         * gimplify.c: #include splay-tree.h, not tree-dump.h.
3301         * graphite-poly.c: Don't include tree-dump.h.
3302         * cgraphclones.c: Include dumpfile.h not tree-dump.h.
3303         * print-tree.c: Likewise.
3304         * stor-layout.c: Likewise.
3305         * tree-nested.c: Likewise.
3307         * dumpfile.c (dump_start): Use TDF_FLAGS.
3308         (dump_enable_all): Fix TDF_KIND check thinko.
3310 2017-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3312         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3313         array entries to represent two legal parameterizations of the
3314         overloaded __builtin_cmpb function, as represented by the
3315         P6_OV_BUILTIN_CMPB constant.
3316         (altivec_resolve_overloaded_builtin): Add special case handling
3317         for the __builtin_cmpb function, as represented by the
3318         P6_OV_BUILTIN_CMPB constant.
3319         * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
3320         (BU_P6_64BIT_2): New macro.
3321         (BU_P6_OVERLOAD_2): New macro
3322         (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
3323         (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
3324         (CMPB): Add overload support to represent both 32-bit and 64-bit
3325         compare-bytes function.
3326         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
3327         support for TARGET_CMPB.
3328         * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
3329         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
3330         documentation of the __builtin_cmpb overloaded built-in function.
3332 2017-05-11  Richard Biener  <rguenther@suse.de>
3334         PR tree-optimization/80705
3335         * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
3336         bases are not vectorizable.
3338 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
3340         * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
3341         when counting register pressure.
3343 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
3345         * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
3346         (iv_ca_more_deps): Renamed to ...
3347         (iv_ca_compare_deps): ... this.
3348         (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
3350 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
3352         * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
3353         to ...
3354         (determine_group_iv_costs): ... here.
3355         (find_inv_vars_cb): Record inv var if it's not recorded before.
3357 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
3359         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
3360         (get_shiftadd_cost): Ditto.
3362 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
3364         * tree-ssa-address.c: Include header file.
3365         (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
3366         address.
3367         (add_to_parts): Refactor.
3368         (addr_to_parts): New parameter.  Update use of move_hint_to_base.
3369         (create_mem_ref): Update use of addr_to_parts.  Re-associate addr
3370         in new order.
3372 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
3374         PR tree-optimization/53090
3375         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
3376         COMP_IV_EXPR_2.
3377         (extract_cond_operands): Detect condition with IV on both sides
3378         and return COMP_IV_EXPR_2.
3379         (find_interesting_uses_cond): Add iv_use for both IVs in condition.
3380         (rewrite_use_compare): Simplify by removing call to function
3381         extract_cond_operands.
3383 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
3385         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
3386         (extract_cond_operands): Detect condition comparing against non-
3387         invariant bound and return appropriate enum value.
3388         (find_interesting_uses_cond): Update use of extract_cond_operands.
3389         Handle its return value accordingly.
3390         (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
3392 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
3394         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
3395         nonlinear iv_use computation in loop invariant sensitive way.
3397 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
3399         * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
3400         (find_iv_candidates): Call relate_compare_use_with_all_cands.
3402 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
3404         * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
3405         (dump_cand): Support iv_cand.inv_exprs.
3406         (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
3407         for candidates.
3408         (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
3409         iv_cand.inv_exprs.
3411 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
3413         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
3414         from ...
3415         * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
3416         as local function.  Include necessary header files.
3417         * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
3419 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
3421         * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
3423 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
3425         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
3426         operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
3427         RSHIFT_EXPR and BIT_NOT_EXPR.
3429 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
3431         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
3432         (adjust_setup_cost): New parameter supporting round up adjustment.
3433         (struct address_cost_data): Delete.
3434         (force_expr_to_var_cost): Don't bound cost with spill_cost.
3435         (split_address_cost, ptr_difference_cost): Delete.
3436         (difference_cost, compare_aff_trees, record_inv_expr): Delete.
3437         (struct ainc_cost_data): New struct.
3438         (get_address_cost_ainc): New function.
3439         (get_address_cost, get_computation_cost): Reimplement.
3440         (determine_group_iv_cost_address): Record inv_expr for all uses of
3441         a group.
3442         (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
3443         (iv_ca_has_deps): Reimplemented to ...
3444         (iv_ca_more_deps): ... this.  Check if NEW_CP introduces more deps
3445         than OLD_CP.
3446         (iv_ca_extend): Call iv_ca_more_deps.
3448 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
3450         * tree-ssa-address.c (struct mem_address): Move to header file.
3451         (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
3452         * tree-ssa-address.h (struct mem_address): Move from C file.
3453         (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
3455 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
3457         * tree-affine.h (aff_combination_type): New interface.
3458         (aff_combination_zero_p): Remove static.
3459         (aff_combination_const_p): New interface.
3460         (aff_combination_singleton_var_p): New interfaces.
3462 2017-05-11  Richard Biener  <rguenther@suse.de>
3464         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3465         Skip unreachable blocks and destinations.
3466         (eliminate): Move stmt removal and fixup ...
3467         (fini_eliminate): ... here.  Skip inserted exprs.
3468         (pass_pre::execute): Move fini_pre after fini_eliminate.
3469         * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
3470         (tail_merge_optimize): Run cleanup_tree_cfg if requested by
3471         PRE to get rid of dead code that has invalid SSA form and
3472         split critical edges again.
3474 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
3476         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
3478 2017-05-11  Richard Biener  <rguenther@suse.de>
3480         * passes.c (execute_function_todo): Verify loops if they are
3481         said to be up-to-date.
3482         * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
3483         * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
3485 2017-05-10  John David Anglin  <danglin@gcc.gnu.org>
3487         PR target/80090
3488         * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
3489         handle calling assemble_external ourself.
3491         PR target/79027
3492         * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
3493         modes with zero size.  Enhance comment.
3495 2017-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3497         * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
3498         built-ins for vec_xl and vec_xst with short and char pointer
3499         arguments.
3501 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
3503         * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
3504         (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
3505         (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
3506         (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
3507         (_mm_maskz_min_round_ss): New intrinsics.
3508         * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
3509         (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
3510         * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
3511         (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
3512         (__builtin_ia32_minss_mask_round): New builtins.
3513         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
3514         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
3515         * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
3516         Rename to ...
3517         (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
3518         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
3519         Change to ...
3520         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
3521         ... this.
3523 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
3525         * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
3526         (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
3527         (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
3528         (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
3529         (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
3530         (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
3531         (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
3532         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
3533         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
3534         * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
3535         (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
3536         (__builtin_ia32_mulss_mask_round): New builtins.
3537         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
3538         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
3539         * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
3540         Rename to ...
3541         (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
3542         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
3543         Change to ...
3544         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
3545         ... this.
3547 2017-05-10  Julia Koval  <julia.koval@intel.com>
3549         * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
3550         (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
3551         (_mm256_setr_m128i): New intrinsics.
3553 2017-05-10  Julia Koval  <julia.koval@intel.com>
3555         * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
3556         (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
3557         (_mm_maskz_rcp14_ss): New intrinsics.
3558         * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
3559         (__builtin_ia32_rcp14ss_mask): New builtins.
3560         * config/i386/sse.md (srcp14<mode>_mask): New pattern.
3562 2017-05-10  Peter Bergner  <bergner@vnet.ibm.com>
3564         PR tree-optimization/51513
3565         * tree-cfg.c (gimple_seq_unreachable_p): New function.
3566         (assert_unreachable_fallthru_edge_p): Use it.
3567         (group_case_labels_stmt): Likewise.
3568         * tree-cfg.h: Prototype it.
3569         * stmt.c: Include cfghooks.h and tree-cfg.h.
3570         (emit_case_dispatch_table) <gap_label>: New local variable.
3571         Use it to fill dispatch table gaps.
3572         Test for default_label before updating probabilities.
3573         (expand_case) <default_label>: Remove unneeded initialization.
3574         Test for unreachable default case statement and remove its edge.
3575         Set default_label accordingly.
3576         * tree-ssa-ccp.c (optimize_unreachable): Update comment.
3578 2017-05-10  Carl Love  <cel@us.ibm.com>
3580         * config/rs6000/rs6000-c: Add support for built-in functions
3581         vector signed char      vec_neg (vector signed char)
3582         vector signed short int vec_neg (vector short int)
3583         vector signed int       vec_neg (vector signed int)
3584         vector signed long long vec_neg (vector signed long long)
3585         vector float            vec_neg (vector float)
3586         vector double           vec_neg (vector double)
3587         * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
3588         overload.
3589         * config/rs6000/altivec.h: Add define for vec_neg
3590         * doc/extend.texi: Update the built-in documentation for the
3591         new built-in functions.
3593 2017-05-10  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3595         PR tree-optimization/77644
3596         * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
3598 2017-05-10  Nathan Sidwell  <nathan@acm.org>
3600         * dumpfile.h (TDI_lang_all): New.
3601         (TDF_KIND): New. Renumber others
3602         (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
3603         than bits.
3604         * dumpfile.c (dump_files): Mark language dumps as TDF_LANG.  add
3605         lang-all.
3606         (get_dump_file_name): Adjust suffix generation.
3607         (dump_enable_all): Use TDF_KIND.
3608         * doc/invoke.texi (-fdump-lang-all): Document.
3610         * dumpfile.h: Tabify.
3612 2017-05-10  Wilco Dijkstra  <wdijkstr@arm.com>
3614         PR target/80671
3615         * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
3616         Move member access before delete.
3618 2017-05-10  Alexandre Oliva <aoliva@redhat.com>
3620         * tree-inline.c (expand_call_inline): Split block at stmt
3621         before the call.
3623 2017-05-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
3625         PR target/68163
3626         * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
3627         are now unused after splitting mov{sf,sd}_hardfloat.
3628         (f32_lr2): Likewise.
3629         (f32_lm): Likewise.
3630         (f32_lm2): Likewise.
3631         (f32_li): Likewise.
3632         (f32_li2): Likewise.
3633         (f32_lv): Likewise.
3634         (f32_sr): Likewise.
3635         (f32_sr2): Likewise.
3636         (f32_sm): Likewise.
3637         (f32_sm2): Likewise.
3638         (f32_si): Likewise.
3639         (f32_si2): Likewise.
3640         (f32_sv): Likewise.
3641         (f32_dm): Likewise.
3642         (f32_vsx): Likewise.
3643         (f32_av): Likewise.
3644         (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
3645         For movsf, order stores so the VSX stores occur before the GPR
3646         store which encourages the register allocator to use a traditional
3647         FPR instead of a GPR.  For movsd, order the stores so that the GPR
3648         store comes before the VSX stores to allow the power6 to work.
3649         This is due to the power6 not having a 32-bit integer store
3650         instruction from a FPR.
3651         (movsf_hardfloat): Likewise.
3652         (movsd_hardfloat): Likewise.
3654 2017-05-09  Martin Sebor  <msebor@redhat.com>
3656         PR translation/80280
3657         * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
3658         added in r247778.
3660         PR translation/80280
3661         * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
3662         data member added in r247778.
3663         (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
3665 2017-05-09  Nathan Sidwell  <nathan@acm.org>
3667         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
3669         * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
3670         typedefs.
3672 2017-05-09  Marek Polacek  <polacek@redhat.com>
3674         * doc/invoke.texi: Fix typo.
3676 2017-05-09  Richard Biener  <rguenther@suse.de>
3678         * tree-vrp.c (vrp_val_is_max): Adjust comment.
3679         (vrp_val_is_min): Likewise.
3680         (set_value_range_to_value): Likewise.
3681         (set_value_range_to_nonnegative): Likewise.
3682         (gimple_assign_nonzero_p): Likewise.
3683         (gimple_stmt_nonzero_p): Likewise.
3684         (vrp_int_const_binop): Likewise.  Remove unreachable case.
3685         (adjust_range_with_scev): Adjust comments.
3686         (compare_range_with_value): Likewise.
3687         (extract_range_from_phi_node): Likewise.
3688         (test_for_singularity): Likewise.
3690 2017-05-09  Richard Biener  <rguenther@suse.de>
3692         * tree-vrp.c (get_single_symbol): Add assert that we don't
3693         get overflowed constants as invariant part.
3694         (compare_values_warnv): Add comment before the TREE_NO_WARNING
3695         checks.  Use wi::cmp instead of recursing for integer constants.
3696         (compare_values): Just ignore whether we assumed undefined
3697         overflow instead of failing the compare.
3698         (extract_range_for_var_from_comparison_expr): Add comment before the
3699         TREE_NO_WARNING sets.
3700         (test_for_singularity): Likewise.
3701         (extract_range_from_comparison): Do not disable optimization
3702         when we assumed undefined overflow.
3703         (extract_range_basic): Remove init of unused var.
3705 2017-05-09  Richard Biener  <rguenther@suse.de>
3707         * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
3708         (extract_range_from_multiplicative_op_1): Adjust.
3709         (extract_range_from_binary_expr_1): Use int_const_binop.
3711 2017-05-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3713         PR target/80101
3714         * config/rs6000/power6.md: Replace store_data_bypass_p calls with
3715         rs6000_store_data_bypass_p in seven define_bypass directives and
3716         in several comments.
3717         * config/rs6000/rs6000-protos.h: Add prototype for
3718         rs6000_store_data_bypass_p function.
3719         * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
3720         function implements slightly different (rs6000-specific) semantics
3721         than store_data_bypass_p, returning false rather than aborting
3722         with assertion error when arguments do not satisfy the
3723         requirements of store data bypass.
3724         (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
3725         rs6000_store_data_bypass_p.
3727 2017-05-08  Max Filippov  <jcmvbkbc@gmail.com>
3729         * config/xtensa/xtensa-protos.h
3730         (xtensa_initial_elimination_offset): New declaration.
3731         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
3732         New function. Move its body from the INITIAL_ELIMINATION_OFFSET
3733         macro definition, add case for FRAME_POINTER_REGNUM when
3734         FRAME_GROWS_DOWNWARD.
3735         * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
3736         (INITIAL_ELIMINATION_OFFSET): Replace body with call to
3737         xtensa_initial_elimination_offset.
3739 2017-05-08  Nathan Sidwell  <nathan@acm.org>
3741         * doc/invoke.texi: Alphabetize -fdump options.
3743 2017-05-08  Martin Sebor  <msebor@redhat.com>
3745         PR translation/80280
3746         * config/sol2-c.c (solaris_pragma_align): Correct quoting.
3748 2017-05-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3750         * target.def (compute_frame_layout): New optional target hook.
3751         * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
3752         * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
3753         * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
3754         target hook.
3755         * reload1.c (verify_initial_elim_offsets): Likewise.
3756         * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
3757         (use_simple_return_p): Call arm_compute_frame_layout if needed.
3758         (arm_get_frame_offsets): Split up into this ...
3759         (arm_compute_frame_layout): ... and this function.
3761 2017-05-08  Richard Sandiford  <richard.sandiford@arm.com>
3763         * config/aarch64/constraints.md (Usa): New constraint.
3764         * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
3766 2017-05-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3768         * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
3769         with_multilib_list after it has been checked.
3771 2017-05-08  Richard Biener  <rguenther@suse.de>
3773         * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
3774         (bitmap_set_subtract_values): Likewise.
3776 2017-05-08  Richard Biener  <rguenther@suse.de>
3778         * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
3779         (gimple_assign_nonzero): ... this and remove strict_overflow_p
3780         argument.
3781         (gimple_stmt_nonzero_warnv_p): Rename to ...
3782         (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
3783         argument.
3784         (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
3785         (extract_range_basic): Adjust, do not disable propagation on
3786         strict overflow sensitive simplification.
3787         (vrp_visit_cond_stmt): Likewise.
3789 2017-05-05  Jan Hubicka  <hubicka@ucw.cz>
3791         * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
3792         body size unconditionally.
3794 2017-05-07  Jeff Law  <law@redhat.com>
3796         Revert:
3797         2017-05-06  Jeff Law  <law@redhat.com>
3798         PR tree-optimization/78496
3799         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
3800         code.
3802         PR tree-optimization/78496
3803         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
3804         (simplify_stmt_using_ranges): Call it.
3805         (vrp_dom_walker::before_dom_children): Extract equivalences
3806         from an ASSERT_EXPR with an equality comparison against a
3807         constant.
3809 2017-05-06  Jeff Law  <law@redhat.com>
3811         PR tree-optimization/78496
3812         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
3813         code.
3815         PR tree-optimization/78496
3816         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
3817         (simplify_stmt_using_ranges): Call it.
3818         (vrp_dom_walker::before_dom_children): Extract equivalences
3819         from an ASSERT_EXPR with an equality comparison against a
3820         constant.
3822 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
3824         * lra-constraints.c (lra_copy_reg_equiv): New function.
3825         (split_reg): Use it to copy equivalence information from the
3826         original register to the spill register.
3828 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
3830         PR rtl-optimization/75964
3831         * simplify-rtx.c (simplify_const_relational_operation): Remove
3832         invalid handling of comparisons of integer ABS.
3834 2017-05-06  Uros Bizjak  <ubizjak@gmail.com>
3836         * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
3837         initialize to zero.
3838         (init_regs): Remove declaration.
3839         (function_arg_advance_32): Initialize error_p as boolean variable.
3841 2017-05-05  Nathan Sidwell  <nathan@acm.org>
3843         * store-motion.c (remove_reachable_equiv_notes): Reformat long
3844         lines.  Use for (;;).
3846 2017-05-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3848         * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
3849         (rs6000_init_cost): Initialize rs6000_vect_nonmem.
3850         (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
3851         (rs6000_finish_cost): Avoid vectorizing simple copy loops with
3852         VF=2 that require versioning.
3854 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
3856         * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
3857         int.
3859 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
3861         * diagnostic.h (diagnostic_override_option_index): Convert from
3862         macro to inline function.
3864 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
3866         * diagnostic.c (last_module_changed_p): New function.
3867         (set_last_module): New function.
3868         (diagnostic_report_current_module): Convert macro usage to
3869         the above functions.
3870         * diagnostic.h (diagnostic_context::last_module): Strengthen
3871         from const line_map * to const line_map_ordinary *.
3872         (diagnostic_last_module_changed): Delete macro.
3873         (diagnostic_set_last_module): Delete macro.
3875 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
3877         * diagnostic.c (diagnostic_impl): Replace report_diagnostic
3878         with diagnostic_report_diagnostic.
3879         (diagnostic_n_impl_richloc): Likewise.
3880         * diagnostic.h (report_diagnostic): Delete macro.
3881         * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
3882         with diagnostic_report_diagnostic.
3883         * substring-locations.c (format_warning_va): Likewise.
3885 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
3887         * diagnostic.c (diagnostic_report_diagnostic): Eliminate
3888         save/restor of format_spec.  Move option-printing code to...
3889         (print_option_information): ...this new function, and
3890         reimplement by simply printing to the pretty_printer,
3891         rather than appending to the format string.
3893 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
3895         * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
3896         handling logic into...
3897         (update_effective_level_from_pragmas): ...this new function.
3899 2017-05-04  Andrew Waterman  <andrew@sifive.com>
3901         * config/riscv/riscv.opt (mstrict-align): New option.
3902         * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it.  Update comment.
3903         (SLOW_UNALIGNED_ACCESS): Define.
3904         (riscv_slow_unaligned_access): Declare.
3905         * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
3906         field.
3907         (riscv_slow_unaligned_access): New variable.
3908         (rocket_tune_info): Set slow_unaligned_access to true.
3909         (optimize_size_tune_info): Set slow_unaligned_access to false.
3910         (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
3911         (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
3912         (riscv_option_override): Set riscv_slow_unaligned_access.
3913         * doc/invoke.texi: Add -mstrict-align to RISC-V.
3915 2017-05-04  Kito Cheng  <kito.cheng@gmail.com>
3917         * config/riscv/riscv.md: Unify indentation.
3919 2017-05-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
3921         PR target/79038
3922         PR target/79202
3923         PR target/79203
3924         * config/rs6000/rs6000.md (u code attribute): Add FIX and
3925         UNSIGNED_FIX.
3926         (extendsi<mode>2): Add support for doing sign extension via
3927         VUPKHSW and XXPERMDI if the value is in Altivec registers and we
3928         don't have ISA 3.0 instructions.
3929         (extendsi<mode>2 splitter): Likewise.
3930         (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
3931         generate the normal insns since SImode can now go in vector
3932         registers.  Disallow the special UNSPECs needed for previous
3933         machines to hide SImode being used.  Add new insns
3934         fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
3935         (fix_trunc<mode>si2_stfiwx): Likewise.
3936         (fix_trunc<mode>si2_internal): Likewise.
3937         (fixuns_trunc<mode>si2): Likewise.
3938         (fixuns_trunc<mode>si2_stfiwx): Likewise.
3939         (fctiw<u>z_<mode>_smallint): Likewise.
3940         (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
3941         of floating point to 32-bit integer from doing a direct move to
3942         the GPR registers to do a store.
3943         (fctiwz_<mode>): Break long line.
3945 2017-05-05  Bin Cheng  <bin.cheng@arm.com>
3947         * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
3948         * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
3949         (addr_list, addr_offset_valid_p): New.
3950         (split_address_groups): Check offset validity with above function.
3951         (gt-tree-ssa-loop-ivopts.h): Include header file.
3953 2017-05-05  Nathan Sidwell  <nathan@acm.org>
3955         * config.gcc (arm*-*-*): Add missing 'fi'.
3957 2017-05-05  Steve Ellcey  <sellcey@cavium.com>
3959         * doc/invoke.texi (-fopt-info): Explicitly say order of options
3960         included in -fopt-info does not matter.
3961         * doc/optinfo.texi (-fopt-info): Fix description of default
3962         behavour. Explicitly say order of options included in -fopt-info
3963         does not matter.
3965 2017-05-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3967         * config.gcc: Allow combinations of aprofile and rmprofile values for
3968         --with-multilib-list.
3969         * config/arm/t-multilib: New file.
3970         * config/arm/t-aprofile: Remove initialization of MULTILIB_*
3971         variables.  Remove setting of ISA and floating-point ABI in
3972         MULTILIB_OPTIONS and MULTILIB_DIRNAMES.  Set architecture and FPU in
3973         MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
3974         and MULTILIB_DIRNAMES respectively.  Add comment to introduce all
3975         matches.  Add architecture matches for marvel-pj4 and generic-armv7-a
3976         CPU options.
3977         * config/arm/t-rmprofile: Likewise except for the matches changes.
3978         * doc/install.texi (--with-multilib-list): Document the combination of
3979         aprofile and rmprofile values and warn about pitfalls in doing that.
3981 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
3983         * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
3984         (movdi_aarch64): Likewise.
3986 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
3988         PR tree-optimization/80632
3989         * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
3990         field.
3991         (build_arrays): Initialize it for virtual phis.
3992         (fix_phi_nodes): Use it for virtual phis.
3994         PR tree-optimization/80558
3995         * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
3996         [x, y] op z into [x op, y op z] for op & or | if conditions
3997         are met.
3999 2017-05-05  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4000             Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
4002         PR target/71607
4003         * config/arm/arm.md (use_literal_pool): Remove.
4004         (64-bit immediate split): No longer takes cost into consideration
4005         if arm_disable_literal_pool is enabled.
4006         * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
4007         used when arm_disable_literal_pool is enabled.
4008         (arm_max_const_double_inline_cost): Remove use of
4009         arm_disable_literal_pool.
4010         (push_minipool_fix): Add assert.
4011         (arm_reorg): Add return if arm_disable_literal_pool is enabled.
4012         * config/arm/vfp.md (no_literal_pool_df_immediate): New.
4013         (no_literal_pool_sf_immediate): New.
4015 2017-05-05  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4017         PR tree-optimization/80613
4018         * tree-ssa-dce.c (propagate_necessity): Remove cases for
4019         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
4021 2017-05-05  Richard Biener  <rguenther@suse.de>
4023         * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
4025 2017-05-05  Georg-Johann Lay  <avr@gjlay.de>
4027         * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
4028         of this flag from insn conditions due to removal from r247495.
4030 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
4032         * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
4033         New function.
4034         (arm_early_store_addr_dep_ptr): Likewise.
4035         * config/arm/aarch-common-protos.h
4036         (arm_early_load_addr_dep_ptr): Add prototype.
4037         (arm_early_store_addr_dep_ptr): Likewise.
4038         * config/arm/cortex-a53.md: Add new bypasses.
4040 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
4042         * tree.c (next_type_uid): Change type to unsigned.
4043         (type_hash_canon): Decrement back next_type_uid if
4044         freeing a type node with the highest TYPE_UID.  For INTEGER_TYPEs
4045         also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
4046         if possible.
4048 2017-05-04  Martin Sebor  <msebor@redhat.com>
4050         * builtins.c: Fix a trivial typo in a comment.
4052         PR middle-end/79234
4053         * builtins.c (check_sizes): Adjust to handle reading past the end.
4054         Avoid printing excessive upper bound of ranges.  Use %E to print
4055         tree nodes instead of converting them to %wu.
4056         (expand_builtin_memchr): New function.
4057         (compute_dest_size): Rename...
4058         (compute_objsize): ...to this.
4059         (expand_builtin_memcpy): Adjust.
4060         (expand_builtin_mempcpy): Adjust.
4061         (expand_builtin_strcat): Adjust.
4062         (expand_builtin_strcpy): Adjust.
4063         (check_strncat_sizes): Adjust.
4064         (expand_builtin_strncat): Adjust.
4065         (expand_builtin_strncpy): Adjust and simplify.
4066         (expand_builtin_memset): Adjust.
4067         (expand_builtin_bzero): Adjust.
4068         (expand_builtin_memcmp): Adjust.
4069         (expand_builtin): Handle memcmp.
4070         (maybe_emit_chk_warning): Check strncat just once.
4072 2017-05-04  Martin Sebor  <msebor@redhat.com>
4074         PR preprocessor/79214
4075         PR middle-end/79222
4076         PR middle-end/79223
4077         * builtins.c (check_sizes): Add inlining context and issue
4078         warnings even when -Wno-system-headers is set.
4079         (check_strncat_sizes): Same.
4080         (expand_builtin_strncat): Same.
4081         (expand_builtin_memmove): New function.
4082         (expand_builtin_stpncpy): Same.
4083         (expand_builtin): Handle memmove and stpncpy.
4085 2017-05-04  Bin Cheng  <bin.cheng@arm.com>
4087         * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
4088         which is not used any more.
4090 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
4092         * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
4094 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
4096         * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
4097         (cortexa53_tunings): Likewise.
4098         (cortexa57_tunings): Likewise.
4099         (cortexa72_tunings): Likewise.
4100         (cortexa73_tunings): Likewise.
4102 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
4104         * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
4105         Set loop alignment to 8.
4107 2017-05-04  Martin Sebor  <msebor@redhat.com>
4109         PR translation/80280
4110         * builtins.c (expand_builtin_object_size): Add missing quoting to
4111         %D and like directives.
4112         * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
4113         (hsa_type_for_tree_type): Same.
4114         (verify_function_arguments): Same.
4115         * symtab.c (symbol_table::change_decl_assembler_name): Same.
4116         * varasm.c (get_section): Same.
4117         (mark_weak): Same.
4119 2017-05-04  Martin Sebor  <msebor@redhat.com>
4121         PR translation/80280
4122         * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
4124 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
4126         * config/aarch64/aarch64.c (generic_addrcost_table):
4127         Change HI/TI mode setting.
4129 2017-05-04  Martin Jambor  <mjambor@suse.cz>
4131         PR tree-optimization/80622
4132         * tree-sra.c (comes_initialized_p): New function.
4133         (build_accesses_from_assign): Only set write lazily when
4134         comes_initialized_p is false.
4135         (analyze_access_subtree): Use comes_initialized_p.
4136         (propagate_subaccesses_across_link): Assert !comes_initialized_p
4137         instead of testing for PARM_DECL.
4139 2017-05-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4141         * config/aarch64/aarch64.md (prefetch); Adjust predicate and
4142         constraint on operand 0 to allow more general addressing modes.
4143         Adjust output template.
4144         * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
4145         New function.
4146         * config/aarch64/aarch64-protos.h
4147         (aarch64_address_valid_for_prefetch_p): Declare prototype.
4148         * config/aarch64/constraints.md (Dp): New address constraint.
4149         * config/aarch64/predicates.md (aarch64_prefetch_operand): New
4150         predicate.
4152 2017-05-04  Jan Hubicka  <hubicka@ucw.cz>
4154         * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
4155         update use of estimate_ipcp_clone_size_and_time.
4156         (estimate_local_effects): Update use of
4157         estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
4158         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
4159         * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
4160         Return nonspecialized time.
4162 2017-05-04  Richard Biener  <rguenther@suse.de>
4164         * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
4165         for the last VUSE which def dominates the PHI.  Directly call
4166         maybe_skip_until.
4167         (get_continuation_for_phi_1): Remove.
4169 2017-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
4171         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
4172         to explain the use of truncating division.  Cap the number of
4173         iterations to the maximum given by nb_iterations_upper_bound,
4174         if defined.
4176 2017-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4178         * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
4179         * configure: Regenerate.
4180         * config.in: Regenerate.
4181         * config/i386/driver-mingw32.c: new file.
4182         * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
4183         * config.host: Link driver-mingw32.o on MinGW host.
4184         * doc/install.texi: Document new --enable-mingw-wildcard configure
4185         option.
4187 2017-05-04  Marek Polacek  <polacek@redhat.com>
4189         PR tree-optimization/80612
4190         * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
4192 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
4193             Andre Simoes Dias Vieira  <andre.simoesdiasvieira@arm.com>
4195         * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
4196         (movt splitter): Likewise.
4197         * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
4198         to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
4199         (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
4200         block for Thumb-1 with MOVT.
4201         (thumb2_legitimate_address_p): Move code block ...
4202         (can_avoid_literal_pool_for_label_p): ... into this new function.
4203         (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
4204         literal pool.
4205         (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
4206         * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
4207         "M-profile targets with the MOVT instruction".
4209 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
4211         * gcc/config/arm/arm-builtins.c (arm_init_builtins): Rename
4212         __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
4213         __builtin_arm_stfscr to __builtin_arm_set_fpscr.
4215 2017-05-04  Martin Liska  <mliska@suse.cz>
4217         * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
4218         variable cond_code.
4220 2017-05-04  Richard Biener  <rguenther@suse.de>
4222         * tree.c (array_at_struct_end_p): Handle arrays at struct
4223         end with flexarrays more conservatively.  Refactor and treat
4224         arrays of arrays or aggregates more strict.  Fix
4225         VIEW_CONVERT_EXPR handling.  Remove allow_compref argument.
4226         * tree.c (array_at_struct_end_p): Adjust prototype.
4227         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
4228         * gimple-fold.c (get_range_strlen): Likewise.
4229         * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
4231 2017-05-04  Richard Biener  <rguenther@suse.de>
4233         PR tree-optimization/31130
4234         * tree-vrp.c (needs_overflow_infinity): Remove as always returning
4235         false.
4236         (supports_overflow_infinity): Likewise.
4237         (is_negative_overflow_infinity): Likewise.
4238         (is_positive_overflow_infinity): Likewise.
4239         (is_overflow_infinity): Likewise.
4240         (stmt_overflow_infinity): Likewise.
4241         (overflow_infinity_range_p): Likewise.
4242         (usable_range_p): Remove as always returning true.
4243         (make_overflow_infinity): Remove.
4244         (negative_overflow_infinity): Likewise.
4245         (positive_overflow_infinity): Likewise.
4246         (avoid_overflow_infinity): Likewise.
4247         (set_value_range): Adjust accordingly.
4248         (set_value_range_to_nonnegative): Likewise, remove now unused
4249         overflow_infinity arg.
4250         (vrp_operand_equal_p): Adjust.
4251         (update_value_range): Likewise.
4252         (range_int_cst_singleton_p): Likewise.
4253         (operand_less_p): Likewise.
4254         (compare_values_warnv): Likewise.
4255         (extract_range_for_var_from_comparison_expr): Likewise.
4256         (vrp_int_const_binop): Likewise.
4257         (zero_nonzero_bits_from_vr): Likewise.
4258         (extract_range_from_multiplicative_op_1): Likewise.
4259         (extract_range_from_binary_expr_1): Likewise.
4260         (extract_range_from_unary_expr): Likewise.
4261         (extract_range_from_comparison): Likewise.
4262         (extract_range_basic): Likewise.
4263         (adjust_range_with_scev): Likewise.
4264         (compare_ranges): Likewise.
4265         (compare_range_with_value): Likewise.
4266         (dump_value_range): Likewise.
4267         (test_for_singularity): Likewise, remove strict_overflow_p parameter
4268         never used.
4269         (simplify_cond_using_ranges): Adjust.
4271 2017-05-04  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
4273         * brig-builtins.def: Added a builtin for class_f64.
4274         * builtin-types.def: Added a builtin type needed by class_f64.
4276 2017-05-03  Jason Merrill  <jason@redhat.com>
4278         * timevar.def: Add TV_CONSTEXPR.
4280 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
4282         * common.opt (fdiagnostics-parseable-fixits): Fix typo.
4284 2017-05-03  Martin Jambor  <mjambor@suse.cz>
4286         * ipa-prop.c (ipa_update_after_lto_read): Removed.
4287         * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
4288         * ipa-cp.c (ipcp_propagate_stage): Do not call
4289         ipa_update_after_lto_read.
4290         * ipa-inline.c (ipa_inline): Likewise.
4292 2017-05-03  Martin Jambor  <mjambor@suse.cz>
4294         * ipa-prop.h (ipa_edge_args): Make a class.  Mark with for_user GTY
4295         tag.  Added a default constructor and a destructor.
4296         (ipa_edge_args_sum_t): New class;
4297         (ipa_edge_args_sum): Declare.
4298         (ipa_edge_args_vector): Remove declaration.
4299         (IPA_EDGE_REF): Use ipa_edge_args_sum.
4300         (ipa_free_edge_args_substructures): Remove declaration.
4301         (ipa_check_create_edge_args): Use ipa_edge_args_sum.
4302         (ipa_edge_args_info_available_for_edge_p): Likewise.
4303         * ipa-prop.c (ipa_edge_args_vector): Removed.
4304         (edge_removal_hook_holder): Likewise.
4305         (edge_duplication_hook_holder): Likewise.
4306         (ipa_edge_args_sum): New variable.
4307         (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
4308         ipa_edge_args_vector.
4309         (ipa_free_edge_args_substructures): Likewise.
4310         (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
4311         ipa_edge_args_vector.
4312         (ipa_edge_removal_hook): Turned into method
4313         ipa_edge_args_sum_t::remove.
4314         (ipa_edge_duplication_hook): Turned into method
4315         ipa_edge_args_sum_t::duplicate.
4316         (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
4317         registering edge hooks.
4318         (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
4319         * ipa-inline-analysis.c (estimate_function_body_sizes): Test
4320         ipa_edge_args_sum instead of ipa_edge_args_vector.
4321         * ipa-profile.c (ipa_profile): Likewise.
4323 2017-05-03  Martin Jambor  <mjambor@suse.cz>
4325         * symbol-summary.h (function_summary): New method exists.
4326         (function_summary::symtab_removal): Deallocate through release.
4327         (call_summary): New class.
4328         (gt_ggc_mx): New overload.
4329         (gt_pch_nx): Likewise.
4330         (gt_pch_nx): Likewise.
4332 2017-05-03  Jeff Law  <law@redhat.com>
4334         PR tree-optimization/78496
4335         * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
4336         from simplify_cond_using_ranges.  Split off code to walk
4337         backwards through casts into ...
4338         (simplify_cond_using_ranges_2): New function.
4339         (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
4340         (execute_vrp): After identifying jump threads, call
4341         simplify_cond_using_ranges_2.
4343 2017-05-03  Jan Hubicka  <hubicka@ucw.cz>
4345         PR bootstrap/80609
4346         * ipa-inline.h (inline_summary): Add ctor.
4347         (create_ggc): Do not use ggc_cleared_alloc.
4349 2017-05-03  Jeff Downs  <heydowns@somuchpressure.net>
4350             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4352         * gcc.c (handle_braces): Support escaping in switch matching
4353         text.
4354         * doc/invoke.texi (Spec Files): Document it.
4355         Remove superfluous @code markup in items.
4357 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
4359         * diagnostic-show-locus.c (struct column_range): New struct.
4360         (get_affected_columns): New function.
4361         (get_printed_columns): New function.
4362         (struct correction): New struct.
4363         (correction::ensure_capacity): New function.
4364         (correction::ensure_terminated): New function.
4365         (struct line_corrections): New struct.
4366         (line_corrections::~line_corrections): New dtor.
4367         (line_corrections::add_hint): New function.
4368         (layout::print_trailing_fixits): Reimplement in terms of the new
4369         classes.
4370         (selftest::test_overlapped_fixit_printing): New function.
4371         (selftest::diagnostic_show_locus_c_tests): Call it.
4373 2017-05-03  Nathan Sidwell  <nathan@acm.org>
4375         Canonicalize canonical type hashing
4376         * tree.h (type_hash_canon_hash): Declare.
4377         * tree.c (type_hash_list, attribute_hash_list): Move into
4378         type_hash_canon_hash.
4379         (build_type_attribute_qual_variant): Break out hash code calc into
4380         type_hash_canon_hash.
4381         (type_hash_canon_hash): New.  Generic type hash computation.
4382         (build_range_type_1, build_array_type_1, build_function_type,
4383         build_method_type_directly, build_offset_type, build_complex_type,
4384         make_vector_type): Call it.
4386 2017-05-03  Richard Biener  <rguenther@suse.de>
4388         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4389         When all DRs have unknown misaligned do not always peel
4390         when there is a store but apply the same costing model as if
4391         there were only loads.
4393 2017-05-03  Richard Biener  <rguenther@suse.de>
4395         Revert
4396         PR tree-optimization/80492
4397         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
4398         compare_base_decls returning dont-know properly.
4400 2017-05-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4402         * config/arm/iterators.md (CCSI): New mode iterator.
4403         (arch): New mode attribute.
4404         * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
4405         (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
4406         (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This.  Use CCSI
4407         code iterator for success result mode.
4408         * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
4409         the corresponding new insn generators.
4411 2017-05-03  Bin Cheng  <bin.cheng@arm.com>
4413         Revert r247509
4414         2017-05-02  Bin Cheng  <bin.cheng@arm.com>
4415         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
4417 2017-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
4419         * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
4420         (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
4421         (DDR_A): Wrap DDR argument in brackets.
4422         (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
4423         (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
4424         (DDR_REVERSED_P): Likewise.
4426 2017-05-03  Jakub Jelinek  <jakub@redhat.com>
4428         PR tree-optimization/79472
4429         * tree-switch-conversion.c (struct switch_conv_info): Add
4430         contiguous_range and default_case_nonstandard fields.
4431         (collect_switch_conv_info): Compute contiguous_range and
4432         default_case_nonstandard fields, don't clear final_bb if
4433         contiguous_range and only the default case doesn't have the required
4434         structure.
4435         (check_all_empty_except_final): Set default_case_nonstandard instead
4436         of failing if contiguous_range and the default case doesn't have empty
4437         block.
4438         (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
4439         and only the default case doesn't have the required constants.  Skip
4440         virtual phis.
4441         (gather_default_values): Skip virtual phis.  Allow non-NULL CASE_LOW
4442         if default_case_nonstandard.
4443         (build_constructors): Build constant 1 just once.  Assert that default
4444         values aren't inserted in between cases if contiguous_range.  Skip
4445         virtual phis.
4446         (build_arrays): Skip virtual phis.
4447         (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
4448         (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
4449         Handle virtual phis.
4450         (gen_inbound_check): Handle default_case_nonstandard case.
4451         (process_switch): Adjust check_final_bb caller.  Call
4452         gather_default_values with the first non-default case instead of
4453         default case if default_case_nonstandard.
4455 2017-05-02  Nathan Sidwell  <nathan@acm.org>
4457         * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
4458         check.  Fix formatting.
4460 2017-05-02  Jan Hubicka  <hubicka@ucw.cz>
4462         * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
4463         errors when comparing specialized and unspecialized times.
4465 2017-05-02  David Malcolm  <dmalcolm@redhat.com>
4467         * diagnostic-show-locus.c
4468         (layout::should_print_annotation_line_p): Make private.
4469         (layout::print_annotation_line): Make private.
4470         (layout::annotation_line_showed_range_p): Make private.
4471         (layout::show_ruler): Make private.
4472         (layout::print_source_line): Make private.  Pass in line and
4473         line_width, rather than calling location_get_source_line.  Drop
4474         returned value.
4475         (layout::print_leading_fixits): New method.
4476         (layout::print_any_fixits): Rename to...
4477         (layout::print_trailing_fixits): ...this, and make private.
4478         Don't print newline fixits.
4479         (diagnostic_show_locus): Move logic for printing one row into...
4480         (layout::print_line): ...this new function.  Move the
4481         location_get_source_line call and error-handling from
4482         print_source_line to here.  Call print_leading_fixits, and rename
4483         print_any_fixits to print_trailing_fixits.
4484         (selftest::test_fixit_insert_containing_newline): Update now that
4485         newlines are partially supported.
4486         (selftest::test_fixit_insert_containing_newline_2): New test.
4487         (selftest::test_fixit_replace_containing_newline): Update comments.
4488         (selftest::diagnostic_show_locus_c_tests): Call the new test.
4489         * edit-context.c (class added_line): New class.
4490         (class edited_line): Describe newline handling in comment.
4491         (edited_line::actually_edited_p): New method.
4492         (edited_line::print_content): Delete redundant decl.
4493         (edited_line::m_predecessors): New field.
4494         (edited_file::print_content): Call edited_line::print_content.
4495         (edited_file::print_diff): Update to support newlines.
4496         (edited_file::print_diff_hunk): Likewise.
4497         (edited_file::print_run_of_changed_lines): New function.
4498         (edited_file::print_diff_line): Convert to...
4499         (print_diff_line): ...this.
4500         (edited_file::get_effective_line_count): New function.
4501         (edited_line::edited_line): Initialize new field m_predecessors.
4502         (edited_line::~edited_line): Clean up m_predecessors.
4503         (edited_line::apply_fixit): Handle newlines.
4504         (edited_line::get_effective_line_count): New function.
4505         (edited_line::print_content): New function.
4506         (edited_line::print_diff_lines): New function.
4507         (selftest::test_applying_fixits_insert_containing_newline): New
4508         test.
4509         (selftest::test_applying_fixits_replace_containing_newline): New
4510         test.
4511         (selftest::insert_line): New function.
4512         (selftest::test_applying_fixits_multiple_lines): Add example of
4513         inserting a line.
4514         (selftest::edit_context_c_tests): Call the new tests.
4516 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
4518         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
4519         parameter cand.  Update dump information.
4520         (get_computation_cost): Update uses.
4522 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
4524         * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
4525         (get_computation_aff): Reorder parameters.  Use get_computation_aff_1.
4526         (get_computation_at, rewrite_use_address): Update use of
4527         get_computation_aff.
4529 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
4531         * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
4532         (get_computation): Delete.
4533         (get_computation_cost): Implement like get_computation_cost_at.
4534         Use get_computation_at.
4535         (get_computation_cost_at): Delete.
4536         (rewrite_use_nonlinear_expr): Use get_computation_at.
4537         (rewrite_use_compare, remove_unused_ivs): Ditto.
4539 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
4541         * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
4543 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
4545         * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
4546         (ivopts_global_cost_for_size): Rename parameter and update uses.
4547         (iv_ca_recount_cost): Update uses.
4548         (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
4549         candidates seperately in n_invs and n_cands.
4550         (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
4552 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
4554         * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
4555         (find_inv_vars_cb): New.
4556         (find_depends): Renamed to ...
4557         (find_inv_vars): ... this.
4558         (add_candidate_1, force_var_cost): Call find_inv_vars.
4559         (split_address_cost, determine_group_iv_cost_cond): Ditto.
4561 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
4563         * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
4564         inv_vars.  Add inv_exprs.
4565         (struct iv_cand): Rename depends_on to inv_vars.
4566         (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
4567         max_inv_var_id/n_inv_var_uses.  Move max_inv_expr_id around.
4568         Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
4569         (dump_cand): Dump inv_vars.
4570         (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
4571         (record_invariant, find_depends, add_candidate_1): Ditto.
4572         (set_group_iv_cost, force_var_cost): Ditto.
4573         (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
4574         (get_computation_cost_at, get_computation_cost): Ditto.
4575         (determine_group_iv_cost_generic): Ditto.
4576         (determine_group_iv_cost_address): Ditto.
4577         (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
4578         (determine_group_iv_costs): Ditto.
4579         (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
4580         (iv_ca_set_remove_invariants): Renamed to ...
4581         (iv_ca_set_remove_invs): ... this.  Support inv_vars and inv_exprs.
4582         (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
4583         (iv_ca_set_add_invariants):  Renamed to ...
4584         (iv_ca_set_add_invs): ... this.  Support inv_vars and inv_exprs.
4585         (iv_ca_set_cp): Use iv_ca_set_add_invs.
4586         (iv_ca_has_deps): Support inv_vars and inv_exprs.
4587         (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
4588         (create_new_ivs): Remove useless dump.
4590 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
4592         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
4593         iv_cand code.
4594         (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
4595         (iv_ca_set_no_cp, create_new_iv): Ditto.
4597 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
4599         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
4601 2017-05-02  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
4603         * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
4604         function tree_check2.
4606 2017-05-02  Martin Liska  <mliska@suse.cz>
4608         * doc/gcov.texi: Add missing preposition.
4609         * gcov.c (function_info::function_info): Properly fill up
4610         all member variables.
4612 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
4614         * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
4616 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
4618         * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
4620 2017-05-02  Martin Liska  <mliska@suse.cz>
4622         PR lto/77954.
4623         * lto-streamer-in.c (lto_read_tree_1): Remove
4624         LTO_STREAMER_DEBUG.
4625         * lto-streamer.c (struct tree_hash_entry): Likewise.
4626         (struct tree_entry_hasher): Likewise.
4627         (tree_entry_hasher::hash): Likewise.
4628         (tree_entry_hasher::equal): Likewise.
4629         (lto_streamer_init): Likewise.
4630         (lto_orig_address_map): Likewise.
4631         (lto_orig_address_get): Likewise.
4632         (lto_orig_address_remove): Likewise.
4633         * lto-streamer.h: Likewise.
4634         * tree-streamer-in.c (streamer_alloc_tree): Likewise.
4635         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
4637 2017-05-02  Sebastian Peryt  <sebastian.peryt@intel.com>
4639         * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
4640         (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
4641         (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
4642         (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
4643         (mm_maskz_sub_round_ss, _mm_mask_add_sd)
4644         (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
4645         (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
4646         (mm_maskz_sub_ss): New intrinsics.
4647         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
4648         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
4649         * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
4650         (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
4651         (__builtin_ia32_subss_mask_round): New builtins.
4652         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
4653         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
4654         * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
4655         Renamed to ...
4656         (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
4657         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
4658         Changed to ...
4659         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
4660         ... this.
4662 2017-05-02  Martin Jambor  <mjambor@suse.cz>
4664         PR tree-optimization/78687
4665         * tree-sra.c (access): New field parent.
4666         (process_subtree_disqualification): New function.
4667         (disqualify_candidate): Call it.
4668         (build_accesses_from_assign): Reset write flag if creating an
4669         assighnment link.
4670         (build_access_subtree): Fill in parent field and also prpagate
4671         down grp_write flag.
4672         (create_artificial_child_access): New parameter set_grp_write, set
4673         grp_write to its value.
4674         (propagate_subaccesses_across_link): Also propagate grp_write flag
4675         values.
4676         (propagate_all_subaccesses): Push the closest parent back to work
4677         queue if add_access_to_work_queue returned true.
4679 2017-05-02  Richard Biener  <rguenther@suse.de>
4681         * common.opt (fstrict-overflow): Alias negative to fwrapv.
4682         * doc/invoke.texi (fstrict-overflow): Remove all traces of
4683         -fstrict-overflow documentation.
4684         * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
4685         (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
4686         flag_strict_overflow.
4687         * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
4688         * lto-opts.c (lto_write_options): Do not stream it.
4689         * lto-wrapper.c (merge_and_complain): Do not handle it.
4690         * opts.c (default_options_table): Do not set -fstrict-overflow.
4691         (finish_options): Likewise do not clear it when sanitizing.
4692         * simplify-rtx.c (simplify_const_relational_operation): Do not
4693         test flag_strict_overflow.
4695 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
4697         * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
4698         using enabled attribute.
4699         (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
4700         (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
4701         (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
4702         (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
4703         (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
4704         (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
4705         (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
4706         (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
4707         (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
4708         (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
4710 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
4712         * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
4714 2017-05-02  Richard Biener  <rguenther@suse.de>
4716         PR tree-optimization/80591
4717         Revert
4718         2017-04-10  Richard Biener  <rguenther@suse.de>
4720         * tree-ssa-structalias.c (find_func_aliases): Properly handle
4721         asm inputs.
4723 2017-05-02  Richard Biener  <rguenther@suse.de>
4725         PR tree-optimization/80549
4726         * tree-cfgcleanup.c (mfb_keep_latches): New helper.
4727         (cleanup_tree_cfg_noloop): Create forwarders to known loop
4728         headers if they do not have a preheader.
4730 2017-05-02  Martin Liska  <mliska@suse.cz>
4732         PR other/80589
4733         * common.opt: Fix typo.
4734         * doc/invoke.texi: Likewise.
4736 2017-05-01  Jan Beulich  <jbeulich@suse.com>
4738         * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
4739         swapping, add (x,x,m,x,n) alternative.
4741 2017-05-01  Nathan Sidwell  <nathan@acm.org>
4743         * calls.c (combine_pending_stack_adjustment_and_call): Remove
4744         unnecessary unadjusted_alignment check.
4746 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
4748         PR c++/80038
4749         * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
4750         operations here.
4751         * gimplify.c (gimplify_cilk_detach): New function.
4752         (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
4753         * tree-core.h: Document EXPR_CILK_SPAWN.
4754         * tree.h (EXPR_CILK_SPAWN): Define.
4756 2017-05-01  David Malcolm  <dmalcolm@redhat.com>
4758         * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
4759         to use new fixit_hint representation, using the "replace" logic.
4760         (get_line_span_for_fixit_hint): Likewise.
4761         (layout::print_any_fixits): Likewise.
4762         (selftest::test_one_liner_many_fixits): Rename to...
4763         (selftest::test_one_liner_many_fixits_1): ...this, and update
4764         comment and expected output to reflect that the multiple fix-it
4765         hints are now consolidated into one insertion.
4766         (selftest::test_one_liner_many_fixits_2): New test.
4767         (selftest::test_diagnostic_show_locus_one_liner): Update for
4768         above.
4769         (selftest::test_fixit_consolidation): Update for fix-it API
4770         change.
4771         * diagnostic.c (print_parseable_fixits): Likewise.
4772         * edit-context.c (edited_line::m_line_events): Convert from
4773         auto_vec <line_event *> to auto_vec <line_event>.
4774         (class line_event): Convert from abstract base class to a concrete
4775         class, taking over the role of replace_event.
4776         (class insert_event): Delete.
4777         (class replace_event): Rename to class line_event.  Convert to
4778         half-open range.
4779         (edit_context::add_fixits): Reimplement.
4780         (edit_context::apply_insert): Delete.
4781         (edit_context::apply_replace): Rename to...
4782         (edit_context::apply_fixit): ...this.  Convert to half-open range.
4783         (edited_file::apply_insert): Delete.
4784         (edited_file::apply_replace): Rename to...
4785         (edited_file::apply_fixit): ...this.
4786         (edited_line::~edited_line): Drop deletion of events.
4787         (edited_line::apply_insert): Delete.
4788         (edited_line::apply_replace): Rename to...
4789         (edited_line::apply_fixit): ...this.  Convert to half-open range.
4790         Update for change to type of m_line_events.
4791         * edit-context.h (edit_context::apply_insert): Delete.
4792         (edit_context::apply_replace): Rename to...
4793         (edit_context::apply_fixit): ...this.
4795 2017-05-01  Martin Sebor  <msebor@redhat.com>
4797         * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
4798         known.
4800 2017-05-01  Uros Bizjak  <ubizjak@gmail.com>
4802         PR target/68491
4803         * config/i386/cpuid.h (__get_cpuid): Always return 0 when
4804         __get_cpuid_max returns 0.
4805         (__get_cpuid_count): Ditto.
4807 2017-05-01  Eric Botcazou  <ebotcazou@adacore.com>
4809         * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
4810         replacement expression is another instance of one of its arguments.
4812 2017-05-01  Jakub Jelinek  <jakub@redhat.com>
4814         PR target/79430
4815         * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
4816         check for stack push/pop autoinc.
4817         * config/i386/i386.c (ix86_agi_dependent): Return false
4818         if the only reason why modified_in_p returned true is that
4819         addr is SP based and set_insn is a push or pop.
4821 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
4823         * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
4824         overflow check.
4826 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
4828         PR ipa/79224
4829         * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
4830         (account_size_time): Use two predicates - exec_pred and
4831         nonconst_pred_ptr.
4832         (evaluate_conditions_for_known_args): Compute both clause and
4833         nonspec_clause.
4834         (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
4835         (inline_summary_t::duplicate): Update.
4836         (estimate_function_body_sizes): Caluculate exec and nonconst predicates
4837         separately.
4838         (compute_inline_parameters): Likewise.
4839         (estimate_edge_size_and_time): Update caluclation of time.
4840         (estimate_node_size_and_time): Compute both time and nonspecialized
4841         time.
4842         (estimate_ipcp_clone_size_and_time): Update.
4843         (inline_merge_summary): Update.
4844         (do_estimate_edge_time): Update.
4845         (do_estimate_edge_size): Update.
4846         (do_estimate_edge_hints): Update.
4847         (inline_read_section, inline_write_summary): Stream both new predicates.
4848         * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
4849         as argument.
4850         (compute_inlined_call_time): Cleanup.
4851         (big_speedup_p): Update.
4852         (edge_badness): Update.
4853         * ipa-inline.h (INLINE_TIME_SCALE): Remove.
4854         (size_time_entry): Replace predicate by exec_predicate and
4855         nonconst_predicate.
4856         (edge_growth_cache_entry): Cache both time nad nonspecialized time.
4857         (estimate_edge_time): Return also nonspec_time.
4858         (reset_edge_growth_cache): Update.
4860 2017-04-29  Jakub Jelinek  <jakub@redhat.com>
4862         PR rtl-optimization/80491
4863         * ifcvt.c (noce_process_if_block): When looking for x setter
4864         with missing else_bb, don't check only the insn right before
4865         cond_earliest, but look for the last insn that x is modified in
4866         within the same bb.
4868         PR rtl-optimization/80491
4869         * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
4871 2017-04-29  Marc Glisse  <marc.glisse@inria.fr>
4873         PR tree-optimization/80487
4874         * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
4876 2017-04-29  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4878         PR tree-optimization/79697
4879         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
4880         is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
4881         (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
4882         BUILT_IN_STRNDUP.
4883         * gimple-fold.c (gimple_fold_builtin_realloc): New function.
4884         (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
4886 2017-04-28  Martin Sebor  <msebor@redhat.com>
4888         PR tree-optimization/80523
4889         * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
4890         (init_target_to_host_charmap, target_to_host, target_strtol10): New
4891         functions.
4892         (maybe_warn, format_directive, parse_directive): Use new functions.
4893         (pass_sprintf_length::execute): Call init_target_to_host_charmap.
4895 2017-04-28  Marc Glisse  <marc.glisse@inria.fr>
4897         * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
4899 2017-04-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4901         * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
4902         target_header_dir): Set correctly.
4903         * configure: Regenerated.
4904         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
4905         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
4906         instead of SYSTEM_HEADER_DIR.
4908 2017-04-28  Jan Hubicka  <hubicka@ucw.cz>
4910         * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
4911         (estimate_local_effects): Likewise.
4912         * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
4913         edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
4914         * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
4915         estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
4916         do_estimate_edge_time, estimate_edge_time): Likewise.
4917         * ipa-inline-analysis.c (estimate_node_size_and_time,
4918         estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
4919         (estimate_time_after_inlining): Remove.
4921 2017-04-28  Martin Liska  <mliska@suse.cz>
4923         * doc/gcov.texi: Enhance documentation of gcov.
4925 2017-04-28  Martin Liska  <mliska@suse.cz>
4927         * doc/gcov.texi: Sort options in alphabetic order.
4928         * doc/gcov-dump.texi: Likewise.
4929         * doc/gcov-tool.texi: Likewise.
4930         * gcov.c (print_usage): Likewise.
4931         * gcov-dump.c (print_usage): Likewise.
4932         * gcov-tool.c (print_merge_usage_message): Likewise.
4933         (print_rewrite_usage_message): Likewise.
4934         (print_overlap_usage_message): Likewise.
4936 2017-04-28  Martin Liska  <mliska@suse.cz>
4938         PR gcov-profile/53915
4939         * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
4941 2017-04-28  Martin Liska  <mliska@suse.cz>
4943         PR gcov-profile/79891
4944         * gcov.c (add_line_counts): Assign BBs to lines just if the BB
4945         is marked by compiler as living on a line.
4946         (get_cycles_count): Remove usage of the union.
4947         (output_intermediate_file): Likewise.
4948         (find_source): Fix GNU coding style.
4949         (accumulate_line_counts): Remove old non-all block mode.
4950         (output_lines): Remove usage of the union.
4951         * profile.c (output_location): Include all BBs, even if
4952         belonging to a same line (and file) as a previous BB.
4954 2017-04-28  Martin Liska  <mliska@suse.cz>
4956         * gcov.c (process_args): Handle new argument 'w'.
4957         (read_graph_file): Assign ID to BBs.
4958         (output_branch_count): Display BB # if verbose flag is set.
4959         (output_lines): Likewise for arcs.
4960         (print_usage): Add '--verbose' option help.
4961         * doc/gcov.texi: Document --verbose (-w) option.
4963 2017-04-28  Martin Liska  <mliska@suse.cz>
4965         * gcov.c (struct block_location_info): New struct.
4966         (process_file): Fill up the new structure.
4967         (read_graph_file): Replace usage of encoding by the newly added
4968         struct.
4969         (add_line_counts): Likewise.
4970         (accumulate_line_counts): Remove usage of the union.
4971         (function_info::function_info): New function.
4972         (function_info::~function_info): Likewise.
4973         (process_file): Call delete instead of release_function.
4974         (release_function): Release the function.
4975         (release_structures): Call delete instead of release_function.
4976         (solve_flow_graph): Replace usage of num_blocks.
4977         (find_exception_blocks): Likewise.
4978         (output_lines): Fix GNU coding style.
4980 2017-04-28  Martin Liska  <mliska@suse.cz>
4982         PR driver/56469
4983         * coverage.c (coverage_remove_note_file): New function.
4984         * coverage.h: Declare the function.
4985         * toplev.c (finalize): Clean if an error has been seen.
4987 2017-04-28  Martin Liska  <mliska@suse.cz>
4989         PR gcov-profile/80031
4990         * gcov-dump.c (tag_blocks): Just print number of basic blocks.
4991         * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
4992         * gcov.c (read_graph_file): Read just number of blocks.
4993         * profile.c (branch_prob): Do not stream 0 flags per a basic
4994         block.
4996 2017-04-28  Martin Liska  <mliska@suse.cz>
4998         * gcov-dump.c (tag_*): Add new argument to declarations.
4999         (dump_gcov_file): Likewise.
5000         (tag_blocks): Add and use new argument depth.
5001         (tag_arcs): Likewise.
5002         (tag_lines): Likewise.
5003         (tag_counters): Likewise.
5004         (tag_summary): Likewise.
5005         (dump_working_sets): Use depth to do a proper indentation.
5007 2017-04-28  Jakub Jelinek  <jakub@redhat.com>
5009         PR bootstrap/80531
5010         * cgraph.h (symtab_node::debug_symtab): No longer inline.
5011         * symtab.c (symtab_node::debug_symtab): Move definition here.
5013 2017-04-28  Richard Biener  <rguenther@suse.de>
5015         * lto-streamer.h (LTO_major_version): Bump to 7.
5017 2017-04-28  Richard Biener  <rguenther@suse.de>
5019         * tree-vrp.c (assert_info): New struct.
5020         (add_assert_info): New helper.
5021         (register_edge_assert_for_2): Refactor to add asserts to a vector
5022         of assert_info.
5023         (register_edge_assert_for_1): Likewise.
5024         (register_edge_assert_for): Likewise.
5025         (finish_register_edge_assert_for): New helper actually registering
5026         asserts where live on edge.
5027         (find_conditional_asserts): Adjust.
5028         (find_switch_asserts): Likewise.
5029         (evrp_dom_walker::try_find_new_range): Generalize.
5030         (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
5032 2017-04-27  Marek Polacek  <polacek@redhat.com>
5034         PR sanitizer/80349
5035         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
5036         arg10 and arg11 to itype.
5038 2017-04-27  Jonathan Wakely  <jwakely@redhat.com>
5040         * doc/extend.texi (Object Size Checking): Improve grammar.
5042 2017-04-27  Richard Earnshaw  <rearnsha@arm.com>
5044         PR target/80530
5045         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
5046         that the logic for permitting reciprocal estimates matches that
5047         in use_rsqrt_p.
5049 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
5051         PR c++/80534
5052         * tree.c (type_cache_hasher::equal): Only compare
5053         TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
5054         (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
5055         non-aggregate element types.
5056         * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
5057         about the flag on ARRAY_TYPEs in the comment, formatting fix.
5059 2017-04-27  Richard Biener  <rguenther@suse.de>
5061         PR middle-end/80533
5062         * emit-rtl.c (set_mem_attributes_minus_bitpos): When
5063         stripping ARRAY_REFs from MEM_EXPR make sure we're not
5064         keeping a reference to a trailing array.
5066 2017-04-27  Richard Biener  <rguenther@suse.de>
5068         PR middle-end/80539
5069         * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
5070         being in loop-closed SSA form conservatively.
5071         (chrec_fold_multiply_poly_poly): Likewise.
5073 2017-04-27  Tamar Christina  <tamar.christina@arm.com>
5075         PR middle-end/79665
5076         * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
5077         CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
5079 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
5081         PR target/77728
5082         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
5083         (aarch64_function_arg_alignment): Return unsigned int again, but still
5084         ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
5085         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
5086         Don't emit -Wpsabi note.
5087         (aarch64_function_arg_boundary): Likewise.
5088         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
5089         caller.
5091 2017-04-26  Nathan Sidwell  <nathan@acm.org>
5093         * tree.h (crc32_unsigned_n): Declare.
5094         (crc32_unsigned, crc32_unsigned): Make inline.
5095         * tree.c (crc32_unsigned_bits): Replace with ...
5096         (crc32_unsigned_n): ... this.
5097         (crc32_unsigned, crc32_byte): Remove.
5098         (crc32_string): Remove unnecessary braces.
5100 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
5102         * ipa-cp.c (estimate_local_effects): Convert sreal to int.
5103         * ipa-inline-analysis.c (MAX_TIME): Remove.
5104         (account_size_time): Use sreal for time.
5105         (dump_inline_summary): Update.
5106         (estimate_function_body_sizes): Update.
5107         (estimate_edge_size_and_time): Update.
5108         (estimate_calls_size_and_time): Update.
5109         (estimate_node_size_and_time): Update.
5110         (inline_merge_summary): Update.
5111         (inline_update_overall_summary): Update.
5112         (estimate_time_after_inlining): Update.
5113         (inline_read_section): Update.
5114         (inline_write_summary): Update.
5115         * ipa-inline.c (compute_uninlined_call_time): Update.
5116         (compute_inlined_call_time): Update.
5117         (recursive_inlining): Update.
5118         (inline_small_functions): Update.
5119         (dump_overall_stats): Update.
5120         * ipa-inline.h: Include sreal.h.
5121         (size_time_entry): Turn time to sreal.
5122         (inline_summary): Turn self_time nad time to sreal.
5124 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
5126         * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
5127         data-streamer.h
5128         (sreal::stream_out, sreal::stream_in): New.
5129         * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
5131 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
5133         * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
5134         environment.
5136 2017-04-25  Uros Bizjak  <ubizjak@gmail.com>
5138         PR target/70799
5139         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
5140         Handle ASHIFTRT.
5141         (dimode_scalar_chain::compute_convert_gain): Ditto.
5142         (dimode_scalar_chain::make_vector_copies): Ditto.
5143         (dimode_scalar_chain::convert_reg): Ditto.
5144         (dimode_scalar_chain::convert_insn): Ditto.
5145         * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
5146         (VI248_AVX512BW_1): New mode iterator.
5147         (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
5148         <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
5149         mode iterator.
5151 2017-04-25  Martin Sebor  <msebor@redhat.com>
5153         PR tree-optimization/80497
5154         * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
5155         constants are representable in HOST_WIDE_INT.
5156         (parse_directive): Ditto.
5158 2017-04-25  Martin Sebor  <msebor@redhat.com>
5160         PR bootstrap/80486
5161         * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
5162         (new_zero_array): Adjust signature.
5163         (dom_info::dom_init): Used unsigned rather that size_t.
5164         (dom_info::dom_info): Same.
5166 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5167             Jakub Jelinek  <jakub@redhat.com>
5169         PR target/77728
5170         * config/arm/arm.c: Include gimple.h.
5171         (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
5172         returns negative, increment ncrn only if it returned positive.
5173         (arm_needs_doubleword_align): Return int instead of bool,
5174         ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
5175         members, but if there is any such non-FIELD_DECL
5176         > PARM_BOUNDARY aligned decl, return -1 instead of false.
5177         (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
5178         returns negative, increment nregs only if it returned positive.
5179         (arm_setup_incoming_varargs): Likewise.
5180         (arm_function_arg_boundary): Emit -Wpsabi note if
5181         arm_needs_doubleword_align returns negative, return
5182         DOUBLEWORD_ALIGNMENT only if it returned positive.
5184 2017-04-25  Marek Polacek  <polacek@redhat.com>
5186         PR sanitizer/80349
5187         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
5188         first argument to type.
5190 2017-04-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
5192         PR target/80482
5193         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
5194         type checks to test for compatibility instead of equality.
5196 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5197             Jakub Jelinek  <jakub@redhat.com>
5199         PR target/77728
5200         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
5201         type.
5202         (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
5203         struct.  Ignore DECL_ALIGN of decls other than FIELD_DECL for
5204         the alignment computation, but return their maximum in warn_alignment.
5205         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
5206         Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
5207         is smaller.
5208         (aarch64_function_arg_boundary): Likewise.  Simplify using MIN/MAX.
5209         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
5210         caller.
5212 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
5214         * config/arc/simdext.md (dmpyh): Fix typo.
5216 2017-04-25  Richard Biener  <rguenther@suse.de>
5218         PR tree-optimization/80492
5219         * alias.c (compare_base_decls): Handle registers with asm
5220         specification conservatively.
5221         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
5222         compare_base_decls returning dont-know properly.
5224 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
5226         * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
5227         (legitimate_offset_address_p): New function.
5228         (arc_legitimate_address_p): Use above function.
5230 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
5232         * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
5234 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
5236         * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
5237         ACCH registers whenever they are available.
5239 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
5241         * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
5242         double regs fix when not used.
5244 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
5246         * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
5247         core registers.
5248         (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
5249         (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
5251 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
5253         * config/arc/arc.c (arc_output_addsi): Check for h-register class
5254         when emitting short ADD instructions.
5256 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
5258         * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
5259         constraint.
5260         (cmpsi_cc_c_insn): Likewise.
5261         (cbranchsi4_scratch): Compute proper instruction length using
5262         compact_hreg_operand.
5263         * config/arc/predicates.md (compact_hreg_operand): New predicate.
5265 2017-04-25  Richard Biener  <rguenther@suse.de>
5267         PR middle-end/80509
5268         * passes.c (pass_manager::pass_manager): Initialize
5269         m_name_to_pass_map.
5271 2017-04-25  Richard Biener  <rguenther@suse.de>
5273         PR tree-optimization/79201
5274         * tree-ssa-sink.c (statement_sink_location): Handle calls.
5276 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5278         PR target/80464
5279         * config/s390/vector.md: Split MEM->GPR vector moves for
5280         non-s_operand addresses.
5282 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5284         PR target/79895
5285         * config/s390/predicates.md (reload_const_wide_int_operand): New
5286         predicate.
5287         * config/s390/s390.md ("movti"): Remove d/P alternative.
5288         ("movti_bigconst"): New pattern definition.
5290 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5292         PR target/80080
5293         * s390-protos.h (s390_expand_cs_hqi): Removed.
5294         (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
5295         * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
5296         modes as well as CCZ1mode and CCZmode.
5297         (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
5298         signature of s390_emit_compare_and_swap.
5299         (s390_expand_cs_hqi): Likewise, make static.
5300         (s390_expand_cs_tdsi): Generate an explicit compare before trying
5301         compare-and-swap, in some cases.
5302         (s390_expand_cs): Wrapper function.
5303         (s390_expand_atomic_exchange_tdsi): New backend specific expander for
5304         atomic_exchange.
5305         (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
5306         * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
5307         patterns for small and large integers.  Forbid symref memory operands.
5308         Move expander to s390.c.  Require cc register.
5309         ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
5310         ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
5311         ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
5312         ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
5313         symref memory operands.  Remove CC mode and call s390_match_ccmode
5314         instead.
5315         ("atomic_exchange<mode>"): Allow and implement all integer modes.
5317 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5319         * config/s390/s390.md (define_peephole2): New peephole to help
5320         combining the load-and-test pattern with volatile memory.
5322 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5324         * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
5325         with CCZmode for TARGET_Z196.
5327 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
5329         PR rtl-optimization/80501
5330         * combine.c (make_compound_operation_int): Set subreg_code to SET
5331         even for AND with mask of the sign bit of mode.
5333         PR rtl-optimization/80500
5334         * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
5335         sum's initial value.
5337 2017-04-25  Julian Brown  <julian@codesourcery.com>
5338             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
5340         * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
5342 2017-04-25  Marc Glisse  <marc.glisse@inria.fr>
5344         * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
5346 2017-04-25  Julian Brown  <julian@codesourcery.com>
5347             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
5349         * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
5350         (thunderx2t99_sha): New Reservation.
5352 2017-04-25  Julian Brown  <julian@codesourcery.com>
5353             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
5355         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
5356         type for 1-element load.
5358 2017-04-24  Marc Glisse  <marc.glisse@inria.fr>
5360         * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
5362 2017-04-24  Martin Jambor  <mjambor@suse.cz>
5364         PR tree-optimization/80293
5365         * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
5366         char arrays not totally scalarizable if it is false.
5367         (analyze_all_variable_accesses): Pass correct value in the new
5368         parameter.  Add a statistics counter.
5370 2017-04-24  Jan Hubicka  <hubicka@ucw.cz>
5372         PR middle-end/79931
5373         * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
5375 2017-04-24  Richard Biener  <rguenther@suse.de>
5377         PR tree-optimization/80494
5378         * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
5379         out for complex types.
5381 2017-04-24  Richard Biener  <rguenther@suse.de>
5383         * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
5384         * tree-ssa-sccvn.c (print_scc): Print SCC size.
5385         (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
5386         (DFS): Adjust and never fail.
5387         (sccvn_dom_walker::fail): Remove.
5388         (sccvn_dom_walker::before_dom_children): Adjust.
5389         (run_scc_vn): Likewise and never fail.
5390         * tree-ssa-pre.c (pass_pre::execute): Adjust.
5391         (pass_fre::execute): Likewise.
5393 2017-04-24  Richard Biener  <rguenther@suse.de>
5395         PR tree-optimization/79725
5396         * tree-ssa-sink.c (statement_sink_location): Return whether
5397         failure reason was zero uses.  Move that check later.
5398         (sink_code_in_bb): Deal with zero uses by removing the stmt
5399         if possible.
5401 2017-04-24  Richard Biener  <rguenther@suse.de>
5403         PR c++/2972
5404         * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
5405         pointer-based references.
5407 2017-04-24  Richard Biener  <rguenther@suse.de>
5409         PR bootstrap/79814
5410         * pass_manager.h (pass_manager::operator new): Remove.
5411         (pass_manager::operator delete): Likewise.
5412         * passes.c (pass_manager::operator new): Remove.
5413         (pass_manager::operator delete): Likewise.
5414         (pass_manager::pass_manager): Zero individual pass members.
5416 2017-04-23  Uros Bizjak  <ubizjak@gmail.com>
5418         PR target/70799
5419         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
5420         <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
5421         Check "XEXP (src, 1)" operand here.
5422         <case PLUS, case MINUS, case IOR, case XOR, case AND>:
5423         Check "XEXP (src, 1)" operand here.
5424         (dimode_scalar_chain::make_vector_copies): Detect count register
5425         of a shift instruction.  Zero extend count register from QImode
5426         to DImode to satisfy vector shift pattern count operand predicate.
5427         Substitute vector shift count operand with a DImode copy.
5428         (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
5429         vector register.
5431 2017-04-21  Uros Bizjak  <ubizjak@gmail.com>
5433         * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
5434         Remove UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
5435         (*insvqi_1_mem_rex64): Move above insv<mode>_1.  Remove
5436         UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
5437         (UNSPEC_NOREX_MEM): Remove definition.
5439 2017-04-21  Richard Biener  <rguenther@suse.de>
5441         PR tree-optimization/79547
5442         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5443         Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
5444         bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
5445         without any constraints.
5447 2017-04-21  Richard Biener  <rguenther@suse.de>
5449         PR tree-optimization/78847
5450         * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
5452 2017-04-21  Richard Biener  <rguenther@suse.de>
5454         * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
5455         (build_distinct_type_copy): Likewise.
5456         (build_variant_type_copy): Likewise.
5457         * tree.c (build_qualified_type): Pass down mem-stat info.
5458         (build_distinct_type_copy): Likewise.
5459         (build_variant_type_copy): Likewise.
5461 2017-04-21  Richard Biener  <rguenther@suse.de>
5463         PR tree-optimization/80237
5464         * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
5465         defaulted to NULL.
5466         (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
5467         for a simplified result.
5469 2016-04-21  Richard Biener  <rguenther@suse.de>
5471         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
5472         sth as strict as a simple_iv but a chrec without symbols and an
5473         operand defined in the loop we are peeling (and not some subloop).
5474         (propagate_constants_for_unrolling): Propagate all constants.
5476 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
5478         PR target/79804
5479         * config/i386/i386.c (print_reg): Remove assert for disalowed
5480         regno values, call output_operand_lossage instead.
5482 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
5484         PR target/78090
5485         * config/i386/constraints.md (Yc): New register constraint.
5486         * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
5487         Use Yc constraint for alternative 2 of operand 0.  Remove
5488         preferred_for_speed attribute.
5490 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
5492         * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
5493         lastprivate clauses in SIMT case.
5495 2017-04-20  Volker Reichelt  <v.reichelt@netcologne.de>
5497         * doc/invoke.texi (-Wextra-semi): Document new warning option.
5499 2017-04-20  Richard Biener  <rguenther@suse.de>
5501         PR tree-optimization/57796
5502         * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
5503         as N scalar stores.
5504         (vect_model_load_cost): Cost gathers as N scalar loads.
5506 2017-04-20  Richard Biener  <rguenther@suse.de>
5508         * ggc-page.c (ggc_allocated_p): Rename to ...
5509         (safe_lookup_page_table_entry): ... this and return the lookup
5510         result.
5511         (gt_ggc_m_S): Use safe_lookup_page_table_entry.
5513 2017-04-20  Richard Biener  <rguenther@suse.de>
5515         PR tree-optimization/80453
5516         * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
5517         * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
5518         from the conditions.
5519         (vn_phi_eq): Pass them down.
5520         (vn_phi_lookup): Record them.
5521         (vn_phi_insert): Likewise.
5523 2017-04-20  Matthew Fortune  <matthew.fortune@imgtec.com>
5525         * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
5526         uninitialized variable warning to avoid buffer overrun.
5528 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
5530         PR other/71250
5531         * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
5532         is suppressed for '{ 0 }' in C.
5534 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
5536         * BASE-VER: Set to 8.0.0.
5538 2017-04-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5540         * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
5541         priority .init_array and .fini_array section with SECTION_NOTYPE
5542         flag.
5544 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
5546         PR middle-end/80423
5547         * tree.h (build_array_type): Add typeless_storage default argument.
5548         * tree.c (type_cache_hasher::equal): Also compare
5549         TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
5550         (build_array_type): Add typeless_storage argument, set
5551         TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
5552         recursive call.
5553         (build_nonshared_array_type): Adjust build_array_type_1 caller.
5554         (build_array_type): Likewise.  Add typeless_storage argument.
5556 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
5557             Jakub Jelinek  <jakub@redhat.com>
5559         PR tree-optimization/80426
5560         * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
5561         operation on symbolic operands, also compute the overflow for the
5562         invariant part when the operation degenerates into a negation.
5564 2017-04-19  Jakub Jelinek  <jakub@redhat.com>
5566         PR debug/80461
5567         * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
5568         Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
5570         PR debug/80436
5571         * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
5573 2017-04-19  Georg-Johann Lay  <avr@gjlay.de>
5575         PR target/80462
5576         * config/avr/avr.c (tree.h): Include it.
5577         (cgraph.h): Include it.
5578         (avr_encode_section_info): Don't warn for uninitialized progmem
5579         variable if it's just an alias.
5581 2017-04-19  Richard Biener  <rguenther@suse.de>
5583         PR ipa/65972
5584         * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
5585         when needed by AutoPGO.
5587 2017-04-19  Paulo J. Matos  <paulo@matos-sorge.com>
5589         PR lto/50345
5590         * doc/lto.texi: Remove an extra 'that'.
5592 2017-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
5594         PR rtl-optimization/80429
5595         * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
5596         are only used in debug insns.
5598 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
5599             Vladimir Makarov  <vmakarov@redhat.com>
5601         * config/sparc/predicates.md (input_operand): Add comment.  Return
5602         true for any memory operand when LRA is in progress.
5603         * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
5605 2017-04-18  Jeff Law  <law@redhat.com>
5607         PR target/74563
5608         * mips.md ({return,simple_return}_internal): Do not overwrite
5609         operands[0].
5611 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
5613         PR tree-optimization/80443
5614         * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
5615         instead of adding 1, subtract -1 and similarly instead of subtracting
5616         1 add -1.
5618 2017-04-18  Richard Sandiford  <richard.sandiford@arm.com>
5620         PR rtl-optimization/80357
5621         * haifa-sched.c (tmp_bitmap): New variable.
5622         (model_recompute): Handle duplicate use records.
5623         (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
5624         (free_global_sched_pressure_data): Free it.
5626 2017-04-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5628         Revert:
5629         2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5630         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
5631         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
5632         instead of SYSTEM_HEADER_DIR.
5634 2017-04-18  Jeff Law  <law@redhat.com>
5636         PR middle-end/80422
5637         * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
5638         predecessors after walking up the insn chain.
5640 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
5642         PR debug/80263
5643         * dwarf2out.c (modified_type_die): Try harder not to emit internal
5644         sizetype type into debug info.
5646 2017-04-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
5648         PR target/80099
5649         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
5650         unneeded test for TARGET_UPPER_REGS_SF.
5651         * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
5653 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
5655         PR sanitizer/80444
5656         * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
5657         instead of gsi_after_labels.
5659 2017-04-18  Jeff Law  <law@redhat.com>
5661         * regcprop.c (maybe_mode_change): Avoid creating copies of the
5662         stack pointer.
5664         Revert:
5665         2017-04-13  Jeff Law  <law@redhat.com>
5666         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
5667         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
5669 2017-04-18  Georg-Johann Lay  <avr@gjlay.de>
5671         PR target/79453
5672         * config/avr/avr.c (intl.h): Include it.
5673         (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
5675 2017-04-18  Martin Liska  <mliska@suse.cz>
5677         PR gcov-profile/78783
5678         * gcov-tool.c (gcov_output_files): Validate that destination
5679         file is either removed by the tool or by a user.
5681 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
5682             Guy Benyei  <guybe@mellanox.com>
5684         * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
5685         block, and do not negate it, the stored id is already negative.
5687 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
5689         * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
5691 2017-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5693         PR target/80098
5694         * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
5695         masks of options that should be turned off if the VSX vector
5696         options are turned off.
5697         (OTHER_P8_VECTOR_MASKS): Likewise.
5698         (OTHER_VSX_VECTOR_MASKS): Likewise.
5699         * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
5700         rs6000_disable_incompatible_switches to validate no type switches
5701         like -mvsx.
5702         (rs6000_incompatible_switch): New function to disallow turning on
5703         other vector options if -mno-vsx, -mno-power8-vector, or
5704         -mno-power9-vector are specified.
5706 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
5708         * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
5710 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
5712         * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
5713         * config/arc/arc.c (arc_decl_pretend_args): Likewise.
5714         * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
5715         (ARG_POINTER_CFA_OFFSET): Likewise.
5717 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
5719         * config/arc/arc.c (arc_mode_dependent_address_p): Relax
5720         conditions to take advantage of various optimizations.
5722 2017-04-13  Jeff Law  <law@redhat.com>
5724         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
5725         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
5726         (zero_extendsidi2_dext): Likewise.
5728 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
5730         PR sanitizer/80403
5731         * fold-const.c (fold_ternary_loc): Revert
5732         use op0 instead of fold_convert_loc (loc, type, arg0) part of
5733         2017-04-12 change.
5735 2017-04-13  Vladimir Makarov  <vmakarov@redhat.com>
5737         PR rtl-optimization/80343
5738         * lra-remat.c (update_scratch_ops): Assign original hard reg to
5739         new scratch pseudo.
5741 2017-04-13  Denis Khalikov <d.khalikov@partner.samsung.com>
5743         PR sanitizer/80414
5744         * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
5745         to ubsan_encode_value.
5747 2017-04-13  Jeff Law  <law@redhat.com>
5749         * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
5750         appearing in DEBUG_INSNs.
5752 2017-04-13  Martin Liska  <mliska@suse.cz>
5754         PR gcov-profile/80413
5755         * gcov-io.c (gcov_write_string): Copy to buffer just when
5756         allocated size is greater than zero.
5758 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
5760         PR debug/80321
5761         * dwarf2out.c (decls_for_scope): Ignore declarations of
5762         current_function_decl in BLOCK_NONLOCALIZED_VARS.
5764 2017-04-12  Jan Hubicka  <hubicka@ucw.cz>
5766         PR lto/69953
5767         * ipa-visibility.c (non_local_p): Fix typos.
5768         (localize_node): When localizing symbol in same comdat group,
5769         dissolve the group only when we know external symbols are going
5770         to be privatized.
5771         (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
5773 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
5775         PR tree-optimization/79390
5776         * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
5777         order does not result in usable sequence, retry with reversed operand
5778         order.
5780         PR sanitizer/80403
5781         PR sanitizer/80404
5782         PR sanitizer/80405
5783         * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
5784         to fold_build2_loc.  Convert TREE_OPERAND (tem, 0) to type.  Use
5785         op0 instead of fold_convert_loc (loc, type, arg0).
5787 2017-04-12  Jeff Law  <law@redhat.com>
5789         * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
5790         has a delay slot in the generated code.
5792         * config/cris/cris.md (cris_preferred_reload_class): Return
5793         GENNONACR_REGS rather than GENERAL_REGS.
5795 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
5797         PR c/80163
5798         * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
5799         vs. ZERO_EXTEND based on signedness of treeop0's type rather than
5800         signedness of the result type.
5802 2017-04-12  Richard Biener  <rguenther@suse.de>
5803             Jeff Law  <law@redhat.com>
5805         PR tree-optimization/80359
5806         * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
5807         trim stores to TARGET_MEM_REFs.
5809 2017-04-12  Richard Biener  <rguenther@suse.de>
5811         PR tree-optimization/79390
5812         * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
5813         threading case even more.
5815 2017-04-12  Segher Boessenkool  <segher@kernel.crashing.org>
5817         PR target/80382
5818         * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
5819         for quad_address_p for TImode, instead of just not indexed_address.
5821 2017-04-12  Richard Biener  <rguenther@suse.de>
5822             Bernd Edlinger  <bernd.edlinger@hotmail.de>
5824         PR middle-end/79671
5825         * alias.c (component_uses_parent_alias_set_from): Handle
5826         TYPE_TYPELESS_STORAGE.
5827         (get_alias_set): Likewise.
5828         * tree-core.h (tree_type_common): Add typeless_storage flag.
5829         * tree.h (TYPE_TYPELESS_STORAGE): New macro.
5830         * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
5831         for types containing members with TYPE_TYPELESS_STORAGE.
5832         (place_field): Likewise.
5833         (layout_type): Likewise for ARRAY_TYPE.
5834         * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
5835         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
5836         TYPE_TYPELESS_STORAGE.
5837         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
5839 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
5841         PR sanitizer/80349
5842         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
5843         first argument to type.
5845 2017-04-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5847         PR target/80376
5848         PR target/80315
5849         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
5850         CONST0_RTX (mode) rather than const0_rtx where appropriate.
5851         (rs6000_expand_binop_builtin): Likewise.
5852         (rs6000_expand_ternop_builtin): Likewise; also add missing
5853         vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
5854         vshasigma built-ins.
5855         * doc/extend.texi: Document that vec_xxpermdi's third argument
5856         must be a constant.
5858 2017-04-11  Uros Bizjak  <ubizjak@gmail.com>
5860         * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
5861         Use shift_const cost parameter when calculating gain of STV shifts.
5863 2017-04-11  Vladimir Makarov  <vmakarov@redhat.com>
5865         PR rtl-optimization/70478
5866         * lra-constraints.c (process_alt_operands): Check memory for
5867         disfavoring memory insn operand.
5869 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
5871         PR middle-end/80100
5872         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
5873         left shift in unsigned HOST_WIDE_INT type.
5875         PR rtl-optimization/80385
5876         * simplify-rtx.c (simplify_unary_operation_1): Don't transform
5877         (not (neg X)) into (plus X -1) for complex or non-integral modes.
5879         PR libgomp/80394
5880         * omp-low.c (scan_omp_task): Don't optimize away empty tasks
5881         if they have any depend clauses.
5883 2017-04-11  Martin Liska  <mliska@suse.cz>
5885         PR ipa/80212
5886         * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
5887         * ipa-split.c (split_function): Create a local comdat symbol
5888         if caller is in a comdat group.
5890 2017-04-11  Martin Liska  <mliska@suse.cz>
5892         PR ipa/80212
5893         * ipa-cp.c (determine_versionability): Handle calls_comdat_local
5894         flags.
5896 2017-04-11  Martin Sebor  <msebor@redhat.com>
5898         PR middle-end/80364
5899         * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
5900         always use the int type.  Use INTEGRAL_TYPE_P() rather than testing
5901         for INTEGER_TYPE.
5902         (directive::set_width, directive::set_precision, format_character):
5903         Adjust.
5904         (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
5905         INTEGER_TYPE.
5907 2017-04-11  Richard Earnshaw  <rearnsha@arm.com>
5909         PR target/80389
5910         * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
5911         conflict, set target->arch_name instead of target->cpu_name.
5913 2017-04-11  Richard Biener  <rguenther@suse.de>
5915         PR tree-optimization/80374
5916         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
5917         build_zero_cst, remove fold_convertible_p check again.
5919 2017-04-11  Martin Liska  <mliska@suse.cz>
5921         PR sanitizer/70878
5922         * ubsan.c (instrument_object_size): Do not instrument register
5923         variables.
5925 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
5927         PR target/80381
5928         * config/i386/i386-builtin-types.def
5929         (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
5930         V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
5931         V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
5932         V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
5933         V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
5934         V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
5935         V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
5936         V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
5937         V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
5938         V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
5939         V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
5940         V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
5941         V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
5942         V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
5943         V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
5944         V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
5945         V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
5946         V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
5947         * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
5948         __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
5949         __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
5950         __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
5951         __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
5952         __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
5953         __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
5954         __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
5955         __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
5956         __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
5957         __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
5958         __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
5959         __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
5960         __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
5961         __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
5962         __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
5963         __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
5964         __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
5965         __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
5966         __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
5967         __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
5968         __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
5969         __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
5970         __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
5971         __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
5972         __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
5973         __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
5974         __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
5975         aliases.
5976         * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
5977         flag to second_arg_count, handle 4 argument function type _COUNT
5978         aliases, handle second_arg_count on second argument rather than last.
5980 2017-04-10  Jeff Law  <law@redhat.com>
5982         PR tree-optimization/80374
5983         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
5984         record anything if we can not convert integer_zero_node to the
5985         desired type.
5987 2017-04-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5989         PR target/80108
5990         * config/rs6000/rs6000.c (rs6000_option_override_internal):
5991         Enhance special handling given to the TARGET_P9_MINMAX option in
5992         relation to certain other options.
5994 2017-04-10  Bin Cheng  <bin.cheng@arm.com>
5996         PR tree-optimization/80153
5997         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
5998         remove POINTER_PLUS_EXPR's base part directly, rather than through
5999         aff_tree.
6001 2017-04-10  Richard Biener  <rguenther@suse.de>
6002             Bin Cheng  <bin.cheng@arm.com>
6004         PR tree-optimization/80153
6005         * tree-affine.c (aff_combination_to_tree): Get base pointer from
6006         the first element of pointer type aff_tree.  Build result expr in
6007         aff_tree's type.
6008         (add_elt_to_tree): Convert to type unconditionally.  Remove other
6009         fold_convert calls.
6010         * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
6011         (rewrite_use_nonlinear_expr): Check invariant using iv information.
6013 2017-04-10  Richard Biener  <rguenther@suse.de>
6015         * tree-ssa-structalias.c (find_func_aliases): Properly handle
6016         asm inputs.
6018 2017-04-10  Vladimir Makarov  <vmakarov@redhat.com>
6020         PR rtl-optimization/70478
6021         * lra-constraints.c (curr_small_class_check): New.
6022         (update_and_check_small_class_inputs): New.
6023         (process_alt_operands): Update curr_small_class_check.  Disfavor
6024         alternative insn memory operands.  Check available regs for small
6025         class operands.
6027 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
6029         PR target/80057
6030         * config/mips/mips.opt (-mvirt): Update description.
6031         * doc/invoke.texi (-mvirt): Likewise.
6033 2017-04-10  Richard Biener  <rguenther@suse.de>
6035         PR middle-end/80362
6036         * fold-const.c (fold_binary_loc): Look at unstripped ops when
6037         looking for NEGATE_EXPR in -A / -B to A / B folding.
6039 2017-04-10  Martin Liska  <mliska@suse.cz>
6041         PR gcov-profile/80224
6042         * gcov.c (print_usage): Fix usage string.
6043         (get_gcov_intermediate_filename): Remove.
6044         (output_gcov_file): Use both for normal and intermediate format.
6045         (generate_results): Do not initialize special file for
6046         intermediate format.
6048 2017-04-10  Richard Biener  <rguenther@suse.de>
6050         PR tree-optimization/80304
6051         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
6052         for safelen.
6054 2017-04-10  Nathan Sidwell  <nathan@acm.org>
6056         PR target/79905
6057         * config/rs6000/rs6000.c (rs6000_vector_type): New.
6058         (rs6000_init_builtins): Use it.
6060 2016-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6062         * config/arm/arm.md (<mrc>): Add mode to SET source.
6063         (<mrrc>): Likewise.
6065 2017-04-10  Richard Biener  <rguenther@suse.de>
6067         PR middle-end/80344
6068         * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
6070 2017-04-10  Jakub Jelinek  <jakub@redhat.com>
6072         PR target/80324
6073         * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
6074         _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
6075         _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
6076         _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
6077         _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
6078         _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
6079         _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
6080         _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
6081         _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
6082         _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
6083         _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
6084         _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
6085         _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
6086         _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
6087         _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
6088         _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
6089         _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
6090         _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
6091         _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
6092         _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
6093         _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
6094         _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
6095         _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
6097 2017-04-08  Vladimir Makarov  <vmakarov@redhat.com>
6099         PR rtl-optimization/70478
6100         * lra-constraints.c: Reverse the last patch.
6102 2017-04-08  Andreas Tobler  <andreast@gcc.gnu.org>
6104         * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
6105         Add comment for WCHAR_T.
6107 2017-04-08  Martin Liska  <mliska@suse.cz>
6109         Revert:
6110         2017-04-07  Martin Liska  <mliska@suse.cz>
6112         PR ipa/80212
6113         * ipa-split.c (split_function): Add function part to a same comdat
6114         group.
6116 2017-04-08  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
6118         PR target/80358
6119         * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
6121 2017-04-07  Pat Haugen  <pthaugen@us.ibm.com>
6123         * rs6000/rs6000.c (vec_load_pendulum): Rename...
6124         (vec_pairing): ...to this.
6125         (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
6126         (rs6000_sched_init): Adjust for name change.
6127         (struct rs6000_sched_context): Likewise.
6128         (rs6000_init_sched_context): Likewise.
6129         (rs6000_set_sched_context): Likewise.
6131 2017-04-07  Jakub Jelinek  <jakub@redhat.com>
6133         PR target/80322
6134         PR target/80323
6135         PR target/80325
6136         PR target/80326
6137         * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
6138         intrinsics.
6139         * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
6140         _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
6141         _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
6143 2017-04-07  Andreas Tobler  <andreast@gcc.gnu.org>
6145         * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
6147 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
6149         PR rtl-optimization/70703
6150         * ira-color.c (update_conflict_hard_regno_costs): Use
6151         int64_t instead of HOST_WIDE_INT.
6153 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
6155         PR rtl-optimization/70478
6156         * lra-constraints.c (process_alt_operands): Disfavor alternative
6157         insn memory operands.
6159 2017-04-07  Jeff Law  <law@redhat.com>
6161         * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
6162         CALL and NOTE_INSN_CALL_ARG_LOCATION.
6164 2017-04-07  Martin Liska  <mliska@suse.cz>
6166         PR target/79889
6167         * config/aarch64/aarch64.c (aarch64_process_target_attr):
6168         Show error message instead of an ICE.
6170 2017-04-07  Martin Liska  <mliska@suse.cz>
6172         PR ipa/80212
6173         * ipa-split.c (split_function): Add function part to a same comdat
6174         group.
6176 2017-04-07  Richard Biener  <rguenther@suse.de>
6178         PR middle-end/80341
6179         * tree.c (get_unwidened): Also handle ! for_type case for
6180         INTEGER_CSTs.
6181         * convert.c (do_narrow): Split out from ...
6182         (convert_to_integer_1): ... here.  Do not pass final truncation
6183         type to get_unwidened for TRUNC_DIV_EXPR.
6185 2017-04-07  Richard Biener  <rguenther@suse.de>
6187         * tree-affine.c (wide_int_ext_for_comb): Take type rather
6188         than aff_tree.
6189         (aff_combination_const): Adjust.
6190         (aff_combination_scale): Likewise.
6191         (aff_combination_add_elt): Likewise.
6192         (aff_combination_add_cst): Likewise.
6193         (aff_combination_convert): Likewise.
6194         (add_elt_to_tree): Likewise.  Remove unused argument.
6195         (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
6197 2017-04-07  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6199         * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
6200         definition.
6201         * config/arm/arm.c (arm_default_short_enums): Use
6202         ARM_DEFAULT_SHORT_ENUMS.
6203         * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
6205 2017-04-06  Jakub Jelinek  <jakub@redhat.com>
6207         PR debug/80234
6208         * dwarf2out.c (gen_member_die): Handle C++17 inline static data
6209         members with redundant out-of-class redeclaration.
6211 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
6213         PR target/80286
6214         * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
6215         * config/i386/i386.md (*zero_extendsidi2):
6216         Add (?*x,*x) and (?*v,*v) alternatives.
6218 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
6220         PR target/79733
6221         * config/i386/i386.c (ix86_expand_builtin)
6222         <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
6223         mode from insn data. Convert operands to insn operand mode.
6224         Copy operands that don't satisfy insn predicate to a register.
6226 2017-04-06  Sam Thursfield  <sam.thursfield@codethink.co.uk>
6228         * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
6229         Update comments.
6231 2017-04-06  Richard Biener  <rguenther@suse.de>
6233         PR tree-optimization/80334
6234         * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
6235         preserve alignment of accesses.
6237 2017-04-06  Richard Biener  <rguenther@suse.de>
6239         PR tree-optimization/80262
6240         * tree-sra.c (build_ref_for_offset): Preserve address-space
6241         information.
6242         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
6243         Drop useless address-space information on MEM_REF offsets.
6245 2017-04-05  Andreas Schwab  <schwab@linux-m68k.org>
6247         * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
6249 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
6251         PR rtl-optimization/70703
6252         * ira-color.c (update_conflict_hard_regno_costs): Use
6253         HOST_WIDE_INT instead of long.
6255 2017-04-05  Uros Bizjak  <ubizjak@gmail.com>
6257         PR target/80298
6258         * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
6259         not defined for x86_64 target.  Add -mmmx target option when __SSE2__
6260         is not defined.
6261         * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
6262         for x86_64 target.  Handle -m3dnowa option.
6264 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
6266         PR rtl-optimization/70703
6267         * ira-color.c (update_costs_from_allocno): Use the smallest mode.
6268         (update_conflict_hard_regno_costs): Use long instead of unsigned
6269         arithmetic for cost calculation.
6271 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
6272             Bernd Edlinger  <bernd.edlinger@hotmail.de>
6274         PR sanitizer/80308
6275         * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
6276         for big endian.
6278 2017-04-05  Eric Botcazou  <ebotcazou@adacore.com>
6280         PR target/78002
6281         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
6282         ptr_mode with Pmode throughout.
6283         * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
6284         into probe_stack_range and use DImode.
6286 2017-04-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6288         PR target/79890
6289         * config/s390/s390.c (s390_register_info_gprtofpr): Return if
6290         call_eh_return is true.
6292 2017-04-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6294         * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
6295         Initialize last_match_fntype_index.
6297 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
6299         PR target/80310
6300         * tree-nvr.c: Include internal-fn.h.
6301         (pass_return_slot::execute): Ignore internal calls without
6302         direct optab.
6304 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
6305             Richard Biener  <rguenther@suse.de>
6307         PR c++/80297
6308         * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
6309         captures used multiple times, except for the last use.
6310         * generic-match-head.c: Include gimplify.h.
6312 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
6314         PR tree-optimization/79390
6315         * target.h (struct noce_if_info): Declare.
6316         * targhooks.h (default_noce_conversion_profitable_p): Declare.
6317         * target.def (noce_conversion_profitable_p): New target hook.
6318         * ifcvt.h (struct noce_if_info): New type, moved from ...
6319         * ifcvt.c (struct noce_if_info): ... here.
6320         (noce_conversion_profitable_p): Renamed to ...
6321         (default_noce_conversion_profitable_p): ... this.  No longer
6322         static nor inline.
6323         (noce_try_store_flag_constants, noce_try_addcc,
6324         noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
6325         noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
6326         instead of noce_conversion_profitable_p.
6327         * config/i386/i386.c: Include ifcvt.h.
6328         (ix86_option_override_internal): Don't override
6329         PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
6330         (ix86_noce_conversion_profitable_p): New function.
6331         (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
6332         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
6333         * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
6334         * doc/tm.texi: Regenerated.
6336 2017-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6338         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
6339         correction.
6341 2017-04-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6343         PR target/80307
6344         * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
6345         instructions for small multiply cores.
6347 2017-04-04  Jeff Law  <law@redhat.com>
6349         * config/mips/mips.c (mips_multi_add): Zero initialize the newly
6350         added member.
6351         (mips_expand_vec_perm_const): Initialize elements in orig_perm
6352         that are not set by the loop over the elements.
6354 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
6356         PR target/80286
6357         * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
6358         int mode, convert_modes it to mode as unsigned, otherwise use
6359         lowpart_subreg to mode rather than SImode.
6360         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
6361         ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
6362         Use DImode instead of SImode for the shift count operand.
6363         * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
6364         Likewise.
6366 2017-04-04  Richard Biener  <rguenther@suse.de>
6368         PR middle-end/80281
6369         * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
6370         arithmetic done for the negate or the plus.  Simplify.
6371         (A - (-B) -> A + B): Likewise.
6372         * fold-const.c (split_tree): Make sure to not negate pointers.
6374 2017-04-04  Segher Boessenkool  <segher@kernel.crashing.org>
6376         PR rtl-optimization/60818
6377         * simplify-rtx.c (simplify_binary_operation_1): Do not replace
6378         a compare of comparisons with the thing compared if this results
6379         in a different machine mode.
6381 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
6383         * alias.c (base_alias_check): Fix typo in comment.
6384         * cgraph.h (class ipa_polymorphic_call_context): Likewise.
6385         * cgraphunit.c (symbol_table::compile): Likewise.
6386         * collect2.c (maybe_run_lto_and_relink): Likewise.
6387         * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
6388         * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
6389         * config/avr/avr.c (avr_map_op_t): Likewise.
6390         * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
6391         * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
6392         * config/epiphany/epiphany.md (movcc): Likewise.
6393         * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
6394         * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
6395         Likewise.
6396         * config/mips/mips.c (mips_save_restore_reg): Likewise.
6397         * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
6398         * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
6399         * config/sh/sh.c (sh_rtx_costs): Likewise.
6400         * fold-const.c (fold_truth_andor): Likewise.
6401         * genautomata.c (collapse_flag): Likewise.
6402         * gengtype.h (struct type::u::s): Likewise.
6403         * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
6404         * input.c (FORMAT_AMOUNT): Likewise.
6405         * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
6406         (known_aggs_to_agg_replacement_list): Likewise.
6407         * ipa-inline-analysis.c: Likewise.
6408         * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
6409         * ipa-polymorphic-call.c
6410         (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
6411         * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
6412         * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
6413         Likewise.
6414         * modulo-sched.c (apply_reg_moves): Likewise.
6415         * omp-expand.c (build_omp_regions_1): Likewise.
6416         * trans-mem.c (struct tm_wrapper_hasher): Likewise.
6417         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
6418         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
6419         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
6420         * value-prof.c: Likewise.
6421         * var-tracking.c (val_reset): Likewise.
6423 2017-04-03  Richard Biener  <rguenther@suse.de>
6425         PR tree-optimization/80275
6426         * fold-const.c (split_address_to_core_and_offset): Handle
6427         POINTER_PLUS_EXPR.
6429 2017-04-03  Eric Botcazou  <ebotcazou@adacore.com>
6431         * tree-nested.c (get_descriptor_type): Make sure that the alignment of
6432         descriptors is at least equal to that of functions.
6434 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
6436         * config/i386/sse.md (movdi_to_sse): Add missing DONE.
6438 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
6440         PR target/80250
6441         * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
6442         (mov<IMOD4:mode>): New expander.
6443         (*mov<IMOD4:mode>_internal): New insn and split pattern.
6445 2017-03-31  Segher Boessenkool  <segher@kernel.crashing.org>
6447         PR rtl-optimization/79405
6448         * fwprop.c (propagations_left): New variable.
6449         (forward_propagate_into): Decrement it.
6450         (fwprop_init): Initialize it.
6451         (fw_prop): If the variable has reached zero, stop propagating.
6452         (fwprop_addr): Ditto.
6454 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
6456         PR debug/79255
6457         * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
6458         a FUNCTION_DECL, pass it as decl instead of origin to
6459         process_scope_var.
6461 2017-03-31  Alexander Monakov  <amonakov@ispras.ru>
6463         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
6464         string.
6466 2017-03-31  Pat Haugen  <pthaugen@us.ibm.com>
6468         PR target/80107
6469         * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
6470         TARGET_VSX_SMALL_INTEGER.
6472 2017-03-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6474         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
6475         reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
6477 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
6479         * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
6480         extraction from odd-numbered MSA register.
6482 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
6484         PR middle-end/80173
6485         * expmed.c (store_bit_field_1): Don't attempt to create
6486         a word subreg out of hard registers wider than word if they
6487         have HARD_REGNO_NREGS of 1 for their mode.
6489         PR middle-end/80163
6490         * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
6491         conversions to integer types wider than word and pointer.
6493         PR debug/80025
6494         * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
6495         (rtx_equal_for_cselib_p): Pass 0 to it.
6496         * cselib.c (cselib_hasher::equal): Likewise.
6497         (rtx_equal_for_cselib_1): Add depth argument.  If depth
6498         is 128, don't look up VALUE locs and punt.  Increment
6499         depth in recursive calls when walking VALUE locs.
6501 2017-03-31  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6503         * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
6504         (make_gcov_file_name): Use the canonical path name for generating
6505         the MD5 value.
6506         (read_line): Fix handling of files with ascii null bytes.
6508 2017-03-30  Matthew Fortune  <matthew.fortune@imgtec.com>
6510         * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
6511         to initialise a vector register instead
6512         of using a const_int.
6514 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
6516         PR translation/80189
6517         * gimplify.c (omp_default_clause): Use %qs instead of %s in
6518         diagnostic messages.
6520 2017-03-30  Peter Bergner  <bergner@vnet.ibm.com>
6522         PR target/80246
6523         * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
6524         (dfp_diex_<mode>): Update mode of operand 1.
6525         * doc/extend.texi (dxex, dxexq): Document change to return type.
6526         (diex, diexq): Document change to argument type.
6528 2017-03-30  Martin Jambor  <mjambor@suse.cz>
6530         PR ipa/77333
6531         * cgraph.h (cgraph_build_function_type_skip_args): Declare.
6532         * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
6533         it reflects the signature changes performed at the callee side.
6534         * cgraphclones.c (build_function_type_skip_args): Make public, renamed
6535         to cgraph_build_function_type_skip_args.
6536         (build_function_decl_skip_args): Adjust call to the above function.
6538 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
6540         PR target/80206
6541         * config/i386/sse.md
6542         (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
6543         register as dest whenever it is a MEM not rtx_equal_p to the
6544         corresponding dup operand, and when forcing into reg move the
6545         reg into the memory afterwards.
6546         (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
6547         Likewise.  Use <ssehalfvecmode> instead of <ssequartermode>
6548         for the force_reg mode.
6549         (avx512vl_vextractf128<mode>): Use register as dest either
6550         always when a MEM, or when it is a MEM not rtx_equal_p to the
6551         corresponding dup operand, or even not when it is a CONST_VECTOR
6552         depending on the mode and lo vs. hi.
6553         (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
6554         parens.
6555         (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
6556         (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
6557         Likewise.  Require that operands[2] is even.
6558         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
6559         Remove extraneous parens.  Require that operands[2] is a multiple
6560         of 4.
6561         (vec_extract_lo_<mode><mask_name>): Don't bother testing if
6562         operands[0] is a MEM if <mask_applied>, the predicates/constraints
6563         disallow memory then.
6565 2017-03-30  Richard Biener  <rguenther@suse.de>
6567         PR tree-optimization/77498
6568         * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
6569         to non-constants over backedges.
6571 2017-03-29  Segher Boessenkool  <segher@kernel.crashing.org>
6573         PR rtl-optimization/80233
6574         * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
6575         as last_combined_insn.  Do not test for BARRIER_P separately.
6577 2017-03-29  Andreas Schwab  <schwab@suse.de>
6579         PR ada/80146
6580         * calls.c (prepare_call_address): Convert funexp to Pmode before
6581         copying to temp reg.
6583 2017-03-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6585         PR tree-optimization/80158
6586         * gimple-ssa-strength-reduction.c (replace_mult_candidate):
6587         Handle possible future case of more than one alternate
6588         interpretation.
6589         (replace_rhs_if_not_dup): Likewise.
6590         (replace_one_candidate): Likewise.
6592 2017-03-28  Vladimir Makarov  <vmakarov@redhat.com>
6594         PR rtl-optimization/80193
6595         * ira.c (ira): Do not check allocation for LRA.
6597 2017-03-28  Alexander Monakov  <amonakov@ispras.ru>
6599         * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
6600         (nvptx_output_simt_exit): Declare.
6601         * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
6602         cfun->machine->unisimt_location.  Handle NULL unisimt_predicate.
6603         (init_softstack_frame): Move initialization of crtl->is_leaf to...
6604         (nvptx_declare_function_name): ...here.  Emit declaration of local
6605         memory space buffer for omp_simt_enter insn.
6606         (nvptx_output_unisimt_switch): New.
6607         (nvptx_output_softstack_switch): New.
6608         (nvptx_output_simt_enter): New.
6609         (nvptx_output_simt_exit): New.
6610         * config/nvptx/nvptx.h (struct machine_function): New fields
6611         has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
6612         * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
6613         (UNSPECV_SIMT_EXIT): Ditto.
6614         (omp_simt_enter_insn): New insn.
6615         (omp_simt_enter): New expansion.
6616         (omp_simt_exit): New insn.
6617         * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
6619         * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
6620         (expand_GOMP_SIMT_ENTER_ALLOC): New.
6621         (expand_GOMP_SIMT_EXIT): New.
6622         * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
6623         (GOMP_SIMT_ENTER_ALLOC): Ditto.
6624         (GOMP_SIMT_EXIT): Ditto.
6625         * target-insns.def (omp_simt_enter): New insn.
6626         (omp_simt_exit): Ditto.
6627         * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
6628         simt_dlist.
6629         (lower_rec_simd_input_clauses): Implement SIMT privatization.
6630         (lower_rec_input_clauses): Likewise.
6631         (lower_lastprivate_clauses): Handle SIMT privatization.
6633         * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
6634         (ompdevlow_adjust_simt_enter): New.
6635         (find_simtpriv_var_op): New.
6636         (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
6637         IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
6639         * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
6640         * tree-inline.c (expand_call_inline): Handle SIMT privatization.
6641         (copy_decl_for_dup_finish): Ditto.
6643         * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
6645 2017-03-28  Uros Bizjak  <ubizjak@gmail.com>
6647         PR target/53383
6648         * config/i386/i386.c (ix86_option_override_internal): Always
6649         allow -mpreferred-stack-boundary=3 for 64-bit targets.
6651 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
6653         * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
6655 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
6657         * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
6658         mark new edge's irreducible flag accordign to it.
6659         (vect_do_peeling): Check loop preheader edge's irreducible flag
6660         and pass it to function slpeel_add_loop_guard.
6662 2017-03-28  Richard Sandiford  <richard.sandiford@arm.com>
6664         PR tree-optimization/80218
6665         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
6666         Update block frequencies and counts.
6668 2017-03-28  Richard Biener  <rguenther@suse.de>
6670         PR tree-optimization/78644
6671         * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
6672         of a simplification result we may not use it at all.
6674 2017-03-28  Richard Biener  <rguenther@suse.de>
6676         PR ipa/80205
6677         * tree-inline.c (copy_phis_for_bb): Do not create PHI node
6678         without arguments, generate default definition of a SSA name.
6680 2017-03-28  Richard Biener  <rguenther@suse.de>
6682         PR middle-end/80222
6683         * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
6684         TYPE_REF_CAN_ALIAS_ALL references.
6685         * fold-const.c (fold_indirect_ref_1): Likewise.
6687 2017-03-28  Martin Liska  <mliska@suse.cz>
6689         PR ipa/80104
6690         * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
6691         thunk call as DECL_GIMPLE_REG_P when vector or complex type.
6693 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
6694             Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>
6696         * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
6697         (EXTRA_SPECS): Define.
6698         (SUBTARGET_EXTRA_SPECS): Likewise.
6699         (SUBTARGET_CPP_SPEC): Likewise.
6700         * config/arc/elf.h (EXTRA_SPECS): Renamed to
6701         SUBTARGET_EXTRA_SPECS.
6702         * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
6704 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
6706         * config/arc/simdext.md (vst64_insn): Update pattern.
6707         (vld32wh_insn): Likewise.
6708         (vld32wl_insn): Likewise.
6709         (vld64_insn): Likewise.
6710         (vld32_insn): Likewise.
6712 2017-03-28  Marek Polacek  <polacek@redhat.com>
6714         PR sanitizer/80067
6715         * fold-const.c (fold_comparison): Use protected_set_expr_location
6716         instead of SET_EXPR_LOCATION.
6718 2017-03-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
6720         * tree.c (add_expr): Avoid name lookup warning.
6722 2017-03-27  Jeff Law  <law@redhat.com>
6724         PR tree-optimization/80216
6725         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
6726         function name.  Limit recursion depth.
6727         (record_temporary_equivalences): Corresponding changes.
6729 2017-03-27  Jonathan Wakely  <jwakely@redhat.com>
6731         * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
6732         covered first.
6734 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
6736         PR target/80102
6737         * reg-notes.def (REG_CFA_NOTE): Define.  Use it for CFA related
6738         notes.
6739         * cfgcleanup.c (reg_note_cfa_p): New array.
6740         (insns_have_identical_cfa_notes): New function.
6741         (old_insns_match_p): Don't cross-jump in between /f
6742         and non-/f instructions.  If both i1 and i2 are frame related,
6743         verify all CFA notes, their order and content.
6745 2017-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
6747         PR target/78543
6748         * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
6749         HImode and SImode with zero extend to DImode to one insn.
6750         (bswap<mode>2_extenddi): Likewise.
6751         (bswapsi2_extenddi): Likewise.
6752         (bswaphi2_extendsi): Likewise.
6753         (bswaphi2): Combine bswap HImode and SImode into one insn.
6754         Separate memory insns from swapping register.
6755         (bswapsi2): Likewise.
6756         (bswap<mode>2): Likewise.
6757         (bswaphi2_internal): Delete, no longer used.
6758         (bswapsi2_internal): Likewise.
6759         (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
6760         store, and gpr<-gpr swap insns.
6761         (bswap<mode>2_store): Likewise.
6762         (bswaphi2_reg): Register only splitter, combine with the splitter.
6763         (bswaphi2 splitter): Likewise.
6764         (bswapsi2_reg): Likewise.
6765         (bswapsi2 splitter): Likewise.
6766         (bswapdi2): If we have the LDBRX and STDBRX instructions, split
6767         the insns into load, store, and register/register insns.
6768         (bswapdi2_ldbrx): Likewise.
6769         (bswapdi2_load): Likewise.
6770         (bswapdi2_store): Likewise.
6771         (bswapdi2_reg): Likewise.
6773 2017-03-27  Gunther Nikl  <gnikl@users.sourceforge.net>
6775         * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
6776         (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
6778 2017-03-27  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6780         PR target/80103
6781         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
6782         add comments.
6783         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
6784         special handling for target option conflicts between dform
6785         options (-mpower9-dform, -mpower9-dform-vector,
6786         -mpower9-dform-scalar) and -mno-direct-move.
6788 2017-03-27  Richard Biener  <rguenther@suse.de>
6790         PR tree-optimization/80181
6791         * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
6793 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
6795         * config/arc/predicates.md (move_double_src_operand): Replace the
6796         call to move_double_src_operand with a call to address_operand.
6798 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
6800         * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
6801         * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
6802         * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
6804 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
6806         * config/arc/predicates.md (long_immediate_loadstore_operand):
6807         Consider scaled addresses cases.
6809 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
6811         * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
6812         restored when in interrupt.
6813         * config/arc/arc.md (simple_return): ARCv2 rtie instruction
6814         doesn't have delay slot.
6816 2017-03-27  Richard Biener  <rguenther@suse.de>
6818         PR ipa/79776
6819         * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
6820         inlined thunk clones.
6822 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
6824         PR sanitizer/80168
6825         * asan.c (instrument_derefs): Copy over last operand from
6826         original COMPONENT_REF to the new COMPONENT_REF with
6827         DECL_BIT_FIELD_REPRESENTATIVE.
6828         * ubsan.c (instrument_object_size): Likewise.
6830 2017-03-27  Richard Biener  <rguenther@suse.de>
6832         PR tree-optimization/80170
6833         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
6834         sure DR/SCEV didnt fold in constants we do not see when looking
6835         at the reference base alignment.
6837 2017-03-27  Richard Biener  <rguenther@suse.de>
6839         PR middle-end/80171
6840         * gimple-fold.c (fold_ctor_reference): Properly guard against
6841         NULL return value from canonicalize_constructor_val.
6843 2017-03-25  Uros Bizjak  <ubizjak@gmail.com>
6845         PR target/80180
6846         * config/i386/i386.c (ix86_expand_builtin)
6847         <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
6848         flags reg setting and flags reg using instructions.
6849         <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto.  Use non-flags reg
6850         clobbering instructions to zero extend op2.
6852 2017-03-25  Gerald Pfeifer  <gerald@pfeifer.com>
6854         * doc/install.texi (Configuration) <--with-aix-soname>:
6855         Update link to AIX ld.
6857 2017-03-25  Bernd Schmidt  <bschmidt@redhat.com>
6859         PR rtl-optimization/80160
6860         PR rtl-optimization/80159
6861         * lra-assigns.c (must_not_spill_p): Tighten new test to also take
6862         reg_alternate_class into account.
6864 2017-03-24  Vladimir Makarov  <vmakarov@redhat.com>
6866         PR target/80148
6867         * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
6868         to consider in curr_insn_transform.
6870 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
6872         * genrecog.c (validate_pattern): Add VEC_SELECT validation.
6873         * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
6874         and emit_mode_inner.
6876 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6878         * config/s390/s390-builtins.def: Add VXE builtins.  Add a flags
6879         argument to the overloaded builtin variants.  Use the new flag to
6880         deprecate certain builtin variants.
6881         * config/s390/s390-builtin-types.def: Add new builtin types.
6882         * config/s390/s390-builtins.h: Support new flags field for
6883         overloaded builtins.
6884         * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
6885         (s390_macro_to_expand): Enable vector float data type.
6886         (s390_cpu_cpp_builtins_internal): Indicate support of the new
6887         builtins by incrementing the __VEC__ version number.
6888         (s390_expand_overloaded_builtin): Support expansion of vec_xl and
6889         vec_xst.
6890         (s390_resolve_overloaded_builtin): Emit error messages depending
6891         on the builtin flags.
6892         * config/s390/s390.c (s390_expand_builtin): Support additional
6893         flags argument.  Change error message to match the messages
6894         emitted in s390-c.c.
6895         * config/s390/s390.md: New UNSPEC_* constants.
6896         (op_type): Add new instruction types.
6897         * config/s390/vecintrin.h: Add new builtins and test data class
6898         constants.
6899         * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
6900         (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
6901         (VEC_INEXACT, VEC_NOINEXACT): New constants.
6902         ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
6903         ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
6904         ("vec_mergel<mode>"): V_HW -> VEC_HW.
6906         ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
6907         ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
6908         ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
6909         ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
6911         ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
6912         ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
6913         ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
6914         ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
6916         ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
6917         ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
6918         ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
6919         ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
6920         ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
6921         ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
6922         ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
6924         ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
6925         ("vec_scatter_element<V_HW_4:mode>_DI")
6926         ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
6927         ("vec_fpint<mode>", "vflls")
6928         ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
6929         ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
6930         ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
6931         ("*vec_cmphe<mode>_cc"): ... these.
6933         ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
6934         mode constant instead of magic value.
6936 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6938         * config/s390/s390.c (s390_expand_vec_compare): Support other
6939         vector floating point modes than just V2DF.
6940         (s390_expand_vcond): Likewise.
6941         (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
6942         (s390_cannot_change_mode_class): Prevent mode changes between TF
6943         and V1TF in vector registers.
6944         * config/s390/s390.md (DF, SF): New mode attributes.
6945         ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
6946         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
6947         SFmode support for VRs.
6948         * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
6949         vector fp modes.
6950         (VFT, VF_HW): New mode iterators.
6951         (vw, sdx): New mode attributes.
6952         ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
6953         ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
6954         ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
6955         ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
6956         ("vec_unorderedv2df"): Adjust the v2df only patterns to support
6957         also the new vector floating point modes.  Renaming to ...
6959         ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
6960         ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
6961         ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
6962         ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
6963         ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
6964         ("vec_unordered<mode>"): ... these.
6966         ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
6967         ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
6968         ("*vec_extendv2df"): New insn definitions.
6970 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6972         * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
6973         ("mulditi3_2", "*muldi3_sign"): New patterns.
6974         ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
6975         rename the pattern definition.
6977 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6979         * config/s390/s390.md ("indirect_jump"): Turn insn definition into
6980         expander.
6981         ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
6983 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6985         * config/s390/s390.c (s390_expand_vec_init): Use vllezl
6986         instruction if possible.
6987         * config/s390/vector.md (vec_halfnumelts): New mode
6988         attribute.
6989         ("*vec_vllezlf<mode>"): New pattern.
6991 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6993         * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
6994         ("popcountv4si2", "popcountv2di2"): Rename to ...
6995         ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
6996         ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
6997         condition.
6998         ("popcount<mode>2_vxe"): New pattern.
7000 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7002         * common/config/s390/s390-common.c (processor_flags_table): Add
7003         arch12.
7004         * config.gcc: Add arch12.
7005         * config/s390/driver-native.c (s390_host_detect_local_cpu):
7006         Default to arch12 for unknown CPU model numbers.
7007         * config/s390/s390-builtins.def: Add B_VXE builtin flag.
7008         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
7009         PROCESSOR_max sanity check.
7010         * config/s390/s390-opts.h (enum processor_type): Add
7011         PROCESSOR_ARCH12.
7012         * config/s390/s390.c (processor_table): Add arch12.
7013         (s390_expand_builtin): Add check for B_VXE flag.
7014         (s390_issue_rate): Add PROCESSOR_ARCH12.
7015         (s390_get_sched_attrmask): Likewise.
7016         (s390_get_unit_mask): Likewise.
7017         (s390_sched_score): Enable z13 scheduling for arch12.
7018         (s390_sched_reorder): Likewise.
7019         (s390_sched_variable_issue): Likewise.
7020         * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
7021         PF_VXE.
7022         (s390_tune_attr): Use z13 scheduling also for arch12.
7023         (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
7024         (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
7025         (TARGET_VXE_P): New macros.
7026         * config/s390/s390.md: Add arch12 to cpu attribute.  Add arch12
7027         and vxe to cpu_facility.  Add arch12 and vxe to enabled attribute.
7028         * config/s390/s390.opt: Add arch12 as processor_type.
7030 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7032         * config/s390/s390.md
7033         ("fixuns_truncdddi2", "fixuns_trunctddi2")
7034         ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
7035         ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
7037         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
7038         Rename expanders to ...
7040         ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
7041         ("fixuns_truncdddi2_emu"): ... these.
7043         ("fixuns_trunc<mode>si2_emu"): New expander.
7045         ("*fixuns_truncdfdi2_z13"): Rename to ...
7046         ("*fixuns_truncdfdi2_vx"): ... this.
7048 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7050         * config/s390/2964.md: Remove the single element vector compare
7051         instructions which are no longer used.
7052         * config/s390/s390.c (s390_select_ccmode): Remove handling of
7053         vector CCmodes.
7054         (s390_canonicalize_comparison): Remove handling of DFmode
7055         compares.
7056         (s390_expand_vec_compare_scalar): Remove function.
7057         (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
7058         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
7059         pattern.
7060         ("*cmp<mode>_ccs"): Add wfcdb instruction.
7062 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7064         * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
7065         FP zero.
7066         ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
7067         will anyway by matched by mov<mode>_64dfp.
7069 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7071         * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
7072         vlef/vstef.  Add missing operand to vleif.
7074 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7076         * config/s390/s390.c (s390_expand_vec_init): Enable vector load
7077         pair for all vector types with 64 bit elements.
7078         * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
7079         * config/s390/vector.md (V_HW_64): ... here.
7080         (V_128_NOSINGLE): New mode iterator.
7081         ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
7082         ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
7083         ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
7084         ("*vec_load_pairv2di"): Change to ...
7085         ("*vec_load_pair<mode>"): ... this one.
7087 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7089         * config/s390/constraints.md: Add comments.
7090         (jKK): Reject element sizes > 8 bytes.
7091         * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
7092         s_operands.
7093         * config/s390/s390.md: Add the s_operand checks formerly in
7094         s390_split_ok_p to various splitters where they are still
7095         required.
7096         * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
7097         for 128 bit vectors.  Plus two splitters.
7099 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7101         * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
7102         the file.
7104 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7106         PR target/79893
7107         * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
7108         error if the boundary argument is not constant.
7110 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
7112         PR rtl-optimization/80112
7113         * loop-doloop.c (doloop_condition_get): Don't check condition
7114         if cmp isn't SET with IF_THEN_ELSE src.
7116 2017-03-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7118         PR tree-optimization/80158
7119         * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
7120         replacing a candidate statement, also replace it for the
7121         candidate's alternate interpretation.
7122         (replace_rhs_if_not_dup): Likewise.
7123         (replace_one_candidate): Likewise.
7125 2017-03-24  Richard Biener  <rguenther@suse.de>
7127         PR tree-optimization/80167
7128         * graphite-isl-ast-to-gimple.c
7129         (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
7130         properly.
7131         (translate_isl_ast_to_gimple::get_rename): Likewise.
7133 2017-03-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7135         * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
7136         handling of certain combinations of target options, including the
7137         combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
7138         -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
7140 2017-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7142         PR target/71436
7143         * config/arm/arm.md (*load_multiple): Add reload_completed to
7144         matching condition.
7146 2017-03-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7147             Richard Biener  <rguenth@suse.de>
7149         PR tree-optimization/79908
7150         PR tree-optimization/80136
7151         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
7152         been cast away, gimplify_and_add suffices.
7154 2017-03-23  Markus Trippelsdorf  <markus@trippelsdorf.de>
7156         * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
7158 2017-03-23  Richard Biener  <rguenther@suse.de>
7160         PR tree-optimization/80032
7161         * gimplify.c (gimple_push_cleanup): Forced unconditional
7162         cleanups still have to go to the conditional_cleanups
7163         sequence.
7165 2017-03-22  Jakub Jelinek  <jakub@redhat.com>
7167         PR tree-optimization/80072
7168         * tree-ssa-reassoc.c (struct operand_entry): Change id field type
7169         to unsigned int.
7170         (next_operand_entry_id): Change type to unsigned int.
7171         (sort_by_operand_rank): Make sure to return the right return value
7172         even if unsigned fields are bigger than INT_MAX.
7173         (struct oecount): Change cnt and id type to unsigned int.
7174         (oecount_hasher::equal): Formatting fix.
7175         (oecount_cmp): Make sure to return the right return value
7176         even if unsigned fields are bigger than INT_MAX.
7177         (undistribute_ops_list): Change next_oecount_id type to unsigned int.
7179         PR c++/80129
7180         * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
7181         TREE_READONLY on result if writing it more than once.
7183         PR sanitizer/80110
7184         * doc/invoke.texi (-fsanitize=thread): Document that with
7185         -fnon-call-exceptions atomics are not able to throw
7186         exceptions.
7188         PR sanitizer/80110
7189         * tsan.c: Include tree-eh.h.
7190         (instrument_builtin_call): Call maybe_clean_eh_stmt or
7191         maybe_clean_or_replace_eh_stmt where needed.
7192         (instrument_memory_accesses): Add cfg_changed argument.
7193         Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
7194         if it returned true.
7195         (tsan_pass): Adjust caller.  Return TODO_cleanup_cfg if cfg_changed.
7197         PR rtl-optimization/63191
7198         * config/i386/i386.c (ix86_delegitimize_address): Turn into small
7199         wrapper function, moved the whole old content into ...
7200         (ix86_delegitimize_address_1): ... this.  New inline function.
7201         (ix86_find_base_term): Use ix86_delegitimize_address_1 with
7202         true as last argument instead of ix86_delegitimize_address.
7204 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
7206         * config/aarch64/aarch64.c (generic_branch_cost): Copy
7207         cortexa57_branch_cost.
7209 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
7211         * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
7213 2017-03-21  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
7215         PR target/80123
7216         * doc/md.texi (Constraints): Document wA constraint.
7217         * config/rs6000/constraints.md (wA): New.
7218         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
7219         (rs6000_init_hard_regno_mode_ok): Init wA constraint.
7220         * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
7221         * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
7223 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
7225         PR c++/80029
7226         * gimplify.c (is_oacc_declared): New function.
7227         (oacc_default_clause): Use it to set default flags for acc declared
7228         variables inside parallel regions.
7229         (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
7230         declared variables.
7231         (gimplify_oacc_declare): Gimplify the declare clauses.  Add the
7232         declare attribute to any decl as necessary.
7234 2017-03-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7236         PR target/80082
7237         * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
7238         (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
7239         * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
7240         (arm_arch_lpae): This.
7241         * config/arm/arm.c (arm_arch7ve): Rename into ...
7242         (arm_arch_lpae): This.  Define it in term of isa_bit_lpae.
7243         * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
7244         arm_arch_lpae.
7246 2017-03-22  Martin Liska  <mliska@suse.cz>
7248         PR target/79906
7249         * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
7250         error message instead of an ICE.
7252 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7254         * doc/extend.texi (6.11 Additional Floating Types): Revise.
7256 2017-03-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7258         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
7259         comments.
7260         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
7261         comments.
7263 2017-03-21  Martin Sebor  <msebor@redhat.com>
7265         * doc/extend.texi: Use "cannot" instead of "can't."
7266         * doc/hostconfig.texi: Same.
7267         * doc/install.texi: Same.
7268         * doc/invoke.texi: Same.
7269         * doc/loop.texi: Same.
7270         * doc/md.texi: Same.
7271         * doc/objc.texi: Same.
7272         * doc/rtl.texi: Same.
7273         * doc/tm.texi: Same.
7274         * doc/tm.texi.in: Same.
7275         * doc/trouble.texi: Same.
7277 2017-03-21  Alexandre Oliva <aoliva@redhat.com>
7279         PR debug/63238
7280         * dwarf2out.c (struct checksum_attributes): Add at_alignment.
7281         (collect_checksum_attributes): Set it.
7282         (die_checksum_ordered): Use it.
7284 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7286         PR tree-optimization/79908
7287         * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
7288         change: For a VA_ARG whose LHS has been cast away, use
7289         force_gimple_operand to construct the side effects.
7291 2017-03-21  David Malcolm  <dmalcolm@redhat.com>
7293         PR translation/80001
7294         * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
7295         more amenable to translation.
7296         (oacc_loop_auto_partitions): Likewise.
7298 2017-03-21  Marek Polacek  <polacek@redhat.com>
7299             Martin Sebor  <msebor@redhat.com>
7301         PR tree-optimization/80109
7302         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
7303         on INTEGRAL_TYPE_P.
7305 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
7306             Segher Boessenkool  <segher@kernel.crashing.org>
7308         PR target/80125
7309         * combine.c (can_combine_p): Revert the 2017-03-20 change, only
7310         check reg_used_between_p between insn and one of succ or succ2
7311         depending on if succ is artificial insn not inserted into insn
7312         stream.
7314 2017-03-21  Martin Liska  <mliska@suse.cz>
7316         PR gcov-profile/80081
7317         * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
7318         * doc/gcc.texi: Include gcov-dump stuff.
7319         * doc/gcov-dump.texi: New file.
7321 2017-03-21  Toma Tabacu  <toma.tabacu@imgtec.com>
7323         PR rtl-optimization/79150
7324         * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
7325         conditional jump, if the jump is the last insn of the loop.
7327 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7328             Richard Biener  <rguenth@suse.de>
7330         PR tree-optimization/79908
7331         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
7332         been cast away, use force_gimple_operand to construct the side
7333         effects.
7335 2017-03-21  Martin Liska  <mliska@suse.cz>
7337         PR libfortran/79956
7338         * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
7339         to NULL.
7341 2017-03-21  Brad Spengler <spender@grsecurity.net>
7343         PR plugins/80094
7344         * plugin.c (htab_hash_plugin): New function.
7345         (add_new_plugin): Use it and adjust.
7346         (parse_plugin_arg_opt): Adjust.
7347         (init_one_plugin): Likewise.
7349 2017-03-21  Richard Biener  <rguenther@suse.de>
7351         PR tree-optimization/80032
7352         * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
7353         if set force the cleanup to happen unconditionally.
7354         (gimplify_target_expr): Push inserted clobbers with force_uncond
7355         to avoid them being removed by control-dependent DCE.
7357 2017-03-21  Richard Biener  <rguenther@suse.de>
7359         PR tree-optimization/80122
7360         * tree-inline.c (copy_bb): Do not expans va-arg packs or
7361         va_arg_pack_len when the inlined call stmt requires pack
7362         expansion itself.
7363         * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
7365 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
7367         PR sanitizer/78158
7368         * tsan.c (instrument_builtin_call): If the memory model argument
7369         is not a constant, assume it is valid.
7371         PR c/67338
7372         * fold-const.c (round_up_loc): Negate divisor in unsigned type to
7373         avoid UB.
7375 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
7377         PR rtl-optimization/79910
7378         * combine.c (can_combine_p): Do not allow combining an I0 or I1
7379         if its dest is used by an insn before I2 (other than the combined
7380         insns themselves, which are properly handled already).
7382 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
7384         Revert:
7385         2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
7387         * combine.c (record_used_regs): New static function.
7388         (try_combine): Handle situations where there is an additional
7389         instruction between I2 and I3 which needs to have a LOG_LINK
7390         updated.
7392         Revert:
7393         2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
7395         * combine.c (try_combine): Delete redundant i1 test.  Call
7396         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
7398 2017-03-20  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
7400         PR target/80083
7401         * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
7402         alternatives 13/14.
7404 2017-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7406         PR tree-optimization/80054
7407         * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
7408         the optimization if a PHI or any of its arguments is not dominated
7409         by the candidate's basis.  Use gphi* rather than gimple* as
7410         appropriate.
7411         (replace_profitable_candidates): Clean up a gimple* variable that
7412         should be a gphi* variable.
7414 2017-03-20  Martin Sebor  <msebor@redhat.com>
7416         PR c++/52477
7417         * doc/extend.texi (attribute constructor): Document present limitation.
7419 2017-03-20  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7421         PR target/79963
7422         * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
7423         __POWER9_VECTOR__ #ifdef control, change template definition to
7424         use Power9-specific built-in function.
7425         (vec_any_eq): Likewise.
7426         * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
7427         to control outcomes from this test.
7428         (vector_ae_<mode>p): For VEC_F modes, likewise.
7430 2017-03-20  Ian Lance Taylor  <iant@google.com>
7432         * config/i386/i386.c (ix86_function_regparm): Save an extra
7433         register for -fsplit-stack with DECL_STATIC_CHAIN.
7435 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
7437         PR target/79912
7438         * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
7439         (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
7441 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
7443         * config/riscv/riscv.c (riscv_print_operand): Use "fence
7444         iorw,ow".
7445         * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
7446         iorw,iorw".
7448 2017-03-20  Marek Polacek  <polacek@redhat.com>
7450         PR sanitizer/80063
7451         * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
7453 2017-03-20  Richard Biener  <rguenther@suse.de>
7455         PR tree-optimization/80113
7456         * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
7457         allocate extra SSA name for PHI def.
7458         (add_close_phis_to_outer_loops): Likewise.
7459         (add_close_phis_to_merge_points): Likewise.
7460         (copy_loop_close_phi_args): Likewise.
7461         (copy_cond_phi_nodes): Likewise.
7463 2017-03-20  Martin Liska  <mliska@suse.cz>
7465         PR middle-end/79753
7466         * tree-chkp.c (chkp_build_returned_bound): Do not build
7467         returned bounds for a LHS that's not a BOUNDED_P type.
7469 2017-03-20  Martin Liska  <mliska@suse.cz>
7471         PR target/79769
7472         PR target/79770
7473         * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
7474         COMPLEX_CST and VECTOR_CST.
7476 2017-03-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7478         PR target/78857
7479         * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
7480         target operand.  A new splitter adds the clobber statement in case
7481         the target operand is dead anyway.
7483 2017-03-19  Gerald Pfeifer  <gerald@pfeifer.com>
7485         * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
7486         to age-old versions of binutils and glibc.
7488 2017-03-18  Segher Boessenkool  <segher@kernel.crashing.org>
7490         * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
7492 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
7494         * doc/contrib.texi (Contributors): Add Segher Boessenkool.
7496 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
7498         * doc/install.texi (Specific) <arm-*-eabi>: Remove old
7499         requirement for binutils 2.13.
7501 2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
7503         * combine.c (try_combine): Delete redundant i1 test.  Call
7504         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
7506 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com
7508         * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
7509         riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
7510         contents.
7511         <riscv64-*-elf>: Re-arrange section
7512         <riscv32-*-elf>: Add a note about requiring binutils 2.28.
7513         <riscv32-*-linux>: Likewise.
7514         <riscv64-*-elf>: Likewise
7515         <riscv64-*-linux>: Likewise.
7517 2017-03-17  Richard Earnshaw  <rearnsha@arm.com>
7519         PR target/80052
7520         * aarch64.opt(verbose-cost-dump): Fix typo.
7522 2017-03-17  Pat Haugen  <pthaugen@us.ibm.com>
7524         PR target/79951
7525         * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
7526         for VECTOR_UNIT_VSX_P (<MODE>mode) too.
7528 2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
7530         * reload.c (find_reloads): When reloading a nonoffsettable address,
7531         use RELOAD_OTHER for it and its address reloads.
7533         PR rtl-optimization/79910
7534         * combine.c (record_used_regs): New static function.
7535         (try_combine): Handle situations where there is an additional
7536         instruction between I2 and I3 which needs to have a LOG_LINK
7537         updated.
7539 2017-03-17  Jeff Law  <law@redhat.com>
7541         PR tree-optimization/71437
7542         * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
7543         conditional in the hash table first.
7544         (vrp_dom_walker::before_dom_children): Extract condition from
7545         ASSERT_EXPR.  Record condition, its inverion and any implied
7546         conditions as well.
7548 2017-03-17  Marek Polacek  <polacek@redhat.com>
7549             Markus Trippelsdorf  <markus@trippelsdorf.de>
7551         PR tree-optimization/80079
7552         * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
7553         m_stores_head.
7555 2017-03-17  Richard Biener  <rguenther@suse.de>
7557         PR middle-end/80075
7558         * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
7559         Properly verify the LHS before the RHS possibly claims to be
7560         handled.
7561         (stmt_could_throw_p): Hande gimple conds fully here.  Clobbers
7562         do not throw.
7564 2017-03-17  Martin Jambor  <mjambor@suse.cz>
7566         * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
7567         (List of -O2 options): Likewise.
7568         (-fipa-bit-cp): Replace "ipa" with "interprocedural."
7569         (-fipa-vrp) New.
7571 2017-03-17  Tom de Vries  <tom@codesourcery.com>
7573         * gcov-dump.c (print_usage): Print bug_report_url.
7575 2017-03-17  Richard Biener  <rguenther@suse.de>
7577         PR middle-end/80050
7578         * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
7579         (parser::peek): Likewise.
7581 2017-03-17  Richard Biener  <rguenther@suse.de>
7583         PR tree-optimization/80048
7584         * sese.c (free_sese_info): Properly release rename_map and
7585         copied_bb_map elements.
7587 2017-03-16  Alexandre Oliva <aoliva@redhat.com>
7589         * gimple-ssa-store-merging.c (struct imm_store_chain_info):
7590         Add linked-list forward and backlinks.  Insert on
7591         construction, remove on destruction.
7592         (class pass_store_merging): Add m_stores_head field.
7593         (pass_store_merging::terminate_and_process_all_chains):
7594         Iterate over m_stores_head list.
7595         (pass_store_merging::terminate_all_aliasing_chains):
7596         Likewise.
7597         (pass_store_merging::execute): Check for debug stmts first.
7598         Push new chains onto the m_stores_head stack.
7600 2017-03-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
7602         PR target/71294
7603         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
7604         SPLAT operation on ISA 2.07 64-bit systems that have direct move,
7605         but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
7607 2017-03-16  Jeff Law  <law@redhat.com>
7609         PR tree-optimization/71437
7610         * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
7611         member function.  Implementation moved into after_dom_children
7612         member function and into the threader's thread_outgoing_edges
7613         function.
7614         (dom_opt_dom_walker::after_dom_children): Simplify by moving
7615         some code into new thread_outgoing_edges.
7616         * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
7617         definition.  Simplify marker handling (do it here).   Assume we always
7618         have the available expression and the const/copies tables.
7619         (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
7620         and tree-vrp.c
7621         * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
7622         * tree-vrp.c (equiv_stack): No longer file scoped.
7623         (vrp_dom_walker): New class.
7624         (vrp_dom_walker::before_dom_children): New member function.
7625         (vrp_dom_walker::after_dom_children): Likewise.
7626         (identify_jump_threads):  Setup domwalker.  Use it rather than
7627         walking edges in a random order by hand.  Simplify setup/finalization.
7628         (finalize_jump_threads): Remove.
7629         (vrp_finalize): Do not call identify_jump_threads here.
7630         (execute_vrp): Do it here instead and call thread_through_all_blocks
7631         here too.
7633         PR tree-optimization/71437
7634         * tree-ssa-dom.c (pfn_simplify): Add basic_block argument.  All
7635         callers changed.
7636         (simplify_stmt_for_jump_threading): Add basic_block argument.  All
7637         callers changed.
7638         (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
7639         (dom_opt_dom_walker::thread_across_edge): Remove
7640         handle_dominating_asserts argument.  All callers changed.
7641         (record_temporary_equivalences_from_stmts_at_dest): Corresponding
7642         changes.  Remove calls to lhs_of_dominating_assert.  Other
7643         uses of handle_dominating_asserts turn into unconditional code
7644         (simplify_control_stmt_condition_1): Likewise.
7645         (simplify_control_stmt_condition): Likewise.
7646         (thread_through_normal_block, thread_across_edge): Likewise.
7647         * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
7648         * tree-vrp.c (lhs_of_dominating_assert): Move here.  Return original
7649         object if it is not an SSA_NAME.
7650         (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
7651         before calling into the VRP specific simplifiers.
7652         (identify_jump_threads): Remove handle_dominating_asserts
7653         argument.
7655 2017-03-16  Jakub Jelinek  <jakub@redhat.com>
7657         PR fortran/79886
7658         * tree-diagnostic.c (default_tree_printer): No longer static.
7659         * tree-diagnostic.h (default_tree_printer): New prototype.
7661 2017-03-16  Tamar Christina  <tamar.christina@arm.com>
7663         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
7664         Change ins into fmov.
7666 2017-03-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7668         * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
7669         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
7670         Use h_con constraint for operand 1.
7671         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
7672         (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
7674 2017-03-15  Jeff Law  <law@redhat.com>
7676         PR tree-optimization/71437
7677         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
7678         (record_temporary_equivalences): Use it.
7680         PR tree-optimization/71437
7681         * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
7682         tree-ssa-scopedtables.
7683         (lookup_avail_expr, build_and_record_new_cond): Likewise.
7684         (record_conditions, record_cond, vuse_eq): Likewise.
7685         (record_edge_info): Adjust to API tweak of record_conditions.
7686         (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
7687         (record_temporary_equivalences, optimize_stmt): Likewise.
7688         (eliminate_redundant_computations): Likewise.
7689         (record_equivalences_from_stmt): Likewise.
7690         * tree-ssa-scopedtables.c: Include options.h and params.h.
7691         (vuse_eq): New function, moved from tree-ssa-dom.c
7692         (build_and_record_new_cond): Likewise.
7693         (record_conditions): Likewise.  Accept vector of conditions rather
7694         than edge_equivalence structure for first argument.
7695         for the first argument.
7696         (avail_exprs_stack::lookup_avail_expr): New member function, moved
7697         from tree-ssa-dom.c.
7698         (avail_exprs_stack::record_cond): Likewise.
7699         * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
7700         from tree-ssa-dom.c.
7701         (avail_exprs_stack): Add new member functions lookup_avail_expr
7702         and record_cond.
7703         (record_conditions): Declare.
7705 2017-03-15  Vladimir Makarov  <vmakarov@redhat.com>
7707         PR target/80017
7708         * lra-constraints.c (process_alt_operands): Increase reject for
7709         reloading an input/output operand.
7711 2017-03-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
7713         PR target/79038
7714         * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
7715         insns to convert from signed/unsigned char/short to IEEE 128-bit
7716         floating point.
7717         (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
7719 2017-03-15  Uros Bizjak  <ubizjak@gmail.com>
7721         PR target/80019
7722         * config/i386/i386.c (ix86_vector_duplicate_value): Create
7723         subreg of inner mode for values already in registers.
7725 2017-03-15  Bernd Schmidt  <bschmidt@redhat.com>
7727         * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
7728         iteration reg is used after the loop.
7730 2017-03-14  Martin Sebor  <msebor@redhat.com>
7732         PR tree-optimization/79800
7733         * gimple-ssa-sprintf.c (format_floating: Add argument.  Handle
7734         precision in negative-positive range.
7735         (format_floating): Call non-const overload with adjusted precision.
7737 2017-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
7739         PR target/79947
7740         * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
7741         -mpowerpc-gfxopt.
7743 2017-03-14  Martin Sebor  <msebor@redhat.com>
7745         PR middle-end/80020
7746         * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
7747         * builtins.def (aligned_alloc): Use it.
7749         PR c/79936
7750         * Makefile.in (GTFILES): Add calls.c.
7751         * calls.c: Include "gt-calls.h".
7753 2017-03-14  Bernd Schmidt  <bschmidt@redhat.com>
7755         PR rtl-optimization/79728
7756         * regs.h (struct target_regs): New field
7757         x_contains_allocatable_regs_of_mode.
7758         (contains_allocatable_regs_of_mode): New macro.
7759         * reginfo.c (init_reg_sets_1): Initialize it, and change
7760         contains_reg_of_mode so it includes global regs as well.
7761         * reload.c (push_reload): Use contains_allocatable_regs_of_mode
7762         rather than contains_regs_of_mode.
7764 2017-03-14  Martin Liska  <mliska@suse.cz>
7766         * doc/invoke.texi: Document options that can't be combined with
7767         -fcheck-pointer-bounds.
7769 2017-03-14  Martin Liska  <mliska@suse.cz>
7771         PR middle-end/79831
7772         * doc/invoke.texi (-Wchkp): Document the option.
7774 2017-03-14  Martin Liska  <mliska@suse.cz>
7776         * Makefile.in: Install gcov-dump.
7778 2017-03-14  Martin Liska  <mliska@suse.cz>
7780         * multiple_target.c (expand_target_clones): Bail out for
7781         an invalid attribute.
7783 2017-03-14  Richard Biener  <rguenther@suse.de>
7785         * alias.c (struct alias_set_entry): Pack properly.
7786         * cfgloop.h (struct loop): Likewise.
7787         * cse.c (struct set): Likewise.
7788         * ipa-utils.c (struct searchc_env): Likewise.
7789         * loop-invariant.c (struct invariant): Likewise.
7790         * lra-remat.c (struct cand): Likewise.
7791         * recog.c (struct change_t): Likewise.
7792         * rtl.h (struct address_info): Likewise.
7793         * symbol-summary.h (function_summary): Likewise.
7794         * tree-loop-distribution.c (struct partition): Likewise.
7795         * tree-object-size.c (struct object_size_info): Likewise.
7796         * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
7797         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
7798         * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
7799         * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
7800         * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
7801         * tree-vectorizer.h (struct _loop_vec_info): Likewise.
7802         (struct _stmt_vec_info): Likewise.
7804 2017-03-14  Martin Liska  <mliska@suse.cz>
7806         PR target/79892
7807         * multiple_target.c (create_dispatcher_calls): Check that
7808         a target can create a function dispatcher.
7810 2017-03-14  Martin Liska  <mliska@suse.cz>
7812         PR lto/66295
7813         * multiple_target.c (expand_target_clones): Drop local.local
7814         flag for default implementation.
7816 2017-03-14  Richard Biener  <rguenther@suse.de>
7818         PR tree-optimization/80030
7819         * tree-vect-stmts.c (vectorizable_store): Plug memleak.
7821 2017-03-13  Kito Cheng  <kito.cheng@gmail.com>
7823         * config/riscv/riscv.c (riscv_emit_float_compare>: Use
7824         gcc_fallthrough() instead of __attribute__((fallthrough));
7826 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
7828         * doc/gcc.texi: Remove "up" link to (DIR).
7829         * doc/gccint.texi: Ditto.
7831 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
7833         * doc/install.texi (Specific) <avr>: Remove reference to
7834         binutils 2.13.
7836 2017-03-13  Jeff Law  <law@redhat.com>
7838         * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
7839         attribute rather than comments.
7841         * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
7842         match_scratch operand is highest.
7844 2017-03-13  Martin Liska  <mliska@suse.cz>
7846         PR middle-end/78339
7847         * ipa-pure-const.c (warn_function_noreturn): If the declarations
7848         is a CHKP clone, use original declaration.
7850 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
7852         * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
7853         (arc_conditional_register_usage): Use a different allocation order
7854         when optimizing for size.
7855         * common/config/arc/arc-common.c (arc_option_optimization_table):
7856         Section anchors default on when optimizing for size.
7858 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
7860         * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
7862 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
7864         * config/arc/arc.c (arc_output_addsi): Emit code density adds.
7865         * config/arc/arc.md (cpu_facility): Add cd variant.
7866         (*movqi_insn): Add code density variant.
7867         (*movhi_insn): Likewise.
7868         (*movqi_insn): Likewise.
7869         (*addsi3_mixed): Likewise.
7870         (subsi3_insn): Likewise.
7872 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
7874         * config/arc/arc.md (movsi_cond_exec): Update constraint.
7876 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
7878         * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
7879         expressions with MINUS and UNARY ops.
7881 2017-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7883         PR target/79911
7884         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
7885         Rename to...
7886         (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
7887         between vec_select and vector argument.
7888         (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
7889         (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
7890         (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
7891         (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
7892         (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
7893         (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
7895 2017-03-13  Richard Biener  <rguenther@suse.de>
7897         PR other/79991
7898         * params.def (vect-max-peeling-for-alignment): Fix typo.
7900 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
7902         * doc/install.texi (Specific) <mips-*-*>: Remove description of
7903         issue that only occurred with binutils below 2.18.
7905 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
7907         * doc/install.texi (Specific) <cris-axis-elf>: No longer
7908         refer to binutils 2.11/2.12 minimum.
7910 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
7912         * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
7913         ftp.kernel.org and simplify binutils requirement.
7915 2017-03-11  Gerald Pfeifer  <gerald@pfeifer.com>
7917         * doc/invoke.texi (Warning Options): Fix spelling of link-time
7918         optimization.
7919         (Optimize Options): Ditto.  Also remove redundancy.
7921 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
7923         PR translation/79848
7924         * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
7925         "%qs".
7926         * ipa-pure-const.c (suggest_attribute): Likewise.  Convert _
7927         to G_ to avoid double translation.
7929 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
7931         PR translation/79923
7932         * auto-profile.c (get_combined_location): Convert leading
7933         character of diagnostics to lower case and remove trailing period.
7934         (read_profile): Likewise for various diagnostics.
7935         * config/arm/arm.c (arm_option_override): Remove trailing period
7936         from various diagnostics.
7937         * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
7938         (msp430_expand_delay_cycles): Likewise.
7940 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
7942         PR target/79925
7943         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
7944         full command-line argument, rather than just "str".
7945         (aarch64_validate_march): Likewise.
7946         (aarch64_validate_mtune): Likewise.
7948 2017-03-10  Bernd Schmidt  <bschmidt@redhat.com>
7950         PR rtl-optimization/78911
7951         * lra-assigns.c (must_not_spill_p): New function.
7952         (spill_for): Use it.
7954 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
7956         PR tree-optimization/79981
7957         * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
7958         ATOMIC_COMPARE_EXCHANGE ifn result.
7959         (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
7960         IFN_ATOMIC_COMPARE_EXCHANGE.
7962 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
7964         PR driver/79875
7965         * opts.c (parse_sanitizer_options): Add missing question mark to
7966         "did you mean" message.
7968 2017-03-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7970         * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
7971         built-in.
7972         (VMULEUH_UNS): Likewise.
7973         (VMULOUB_UNS): Likewise.
7974         (VMULOUH_UNS): Likewise.
7975         * config/rs6000/rs6000.c (builtin_function_type): Remove
7976         references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
7978 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
7980         PR bootstrap/79952
7981         * read-rtl-function.c (function_reader::read_rtx_operand): Update
7982         x with result of extra_parsing_for_operand_code_0.
7983         (function_reader::extra_parsing_for_operand_code_0): Convert
7984         return type from void to rtx, returning x.  When reading
7985         SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
7986         larger size containing struct block_symbol.
7988 2017-03-10  Segher Boessenkool  <segher@kernel.crashing.org>
7990         * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
7991         -mfloat128-hardware without -m64.
7993 2017-03-10  Will Schmidt <will_schmidt@vnet.ibm.com>
7995         PR target/79941
7996         * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
7997         entries to the case statement that marks unsigned arguments to
7998         overloaded functions.
8000 2017-03-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8002         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
8003         two typographic errors in the handling of TARGET_UPPER_REGS_DI.
8005 2017-03-10  Pat Haugen  <pthaugen@us.ibm.com>
8007         PR target/79907
8008         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
8009         TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
8011 2017-03-10  Martin Liska  <mliska@suse.cz>
8013         PR target/65705
8014         PR target/69804
8015         * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
8016         * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
8017         FIELD != NULL.
8019 2017-03-10  Olivier Hainque  <hainque@adacore.com>
8021         * tree-switch-conversion (array_value_type): Start by resetting
8022         candidate type to it's main variant.
8024 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
8026         PR rtl-optimization/79909
8027         * combine.c (try_combine): Use simplify_replace_rtx on individual
8028         CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
8029         of the whole CALL_INSN_FUNCTION_USAGE.
8031         PR tree-optimization/79972
8032         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
8033         get_range_info on SSA_NAMEs.  Formatting fixes.
8035 2017-03-10  Richard Biener  <rguenther@suse.de>
8036             Jakub Jelinek  <jakub@redhat.com>
8038         PR tree-optimization/77975
8039         * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
8040         edge to be constant.
8041         (get_val_for): For constant x return it.  Formatting fix.
8042         (loop_niter_by_eval): Avoid pointless looping if the next iteration
8043         would use the same bases as the current one.
8045 2017-03-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8047         * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
8048         instead of vec_select for V1TImode.
8049         * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
8050         longer needed.
8051         (VSX_LE_128): Add V1TI to this mode iterator.
8052         (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
8053         (*vsx_le_perm_store_<mode>): Likewise.
8054         (pre-reload splitter for VSX stores): Likewise.
8055         (post-reload splitter for VSX stores): Likewise.
8056         (*vsx_xxpermdi2_le_<mode>): Likewise.
8057         (*vsx_lxvd2x2_le_<mode>): Likewise.
8058         (*vsx_stxvd2x2_le_<mode>): Likewise.
8060 2017-03-09  Michael Eager  <eager@eagercon.com>
8062         Correct failures with --enable-checking=yes,rtl.
8064         * config/microblaze/microblaze.c (microblaze_expand_shift):
8065         Replace GET_CODE test with CONST_INT_P and INTVAL test with
8066         test for const0_rtx.
8067         * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
8068         lshrsi3_byone): Replace INTVAL with test for const1_rtx.
8070 2017-03-09  Richard Biener  <rguenther@suse.de>
8072         PR tree-optimization/79977
8073         * graphite-scop-detection.c (scop_detection::merge_sese):
8074         Handle the case of extra exits to blocks dominating the entry.
8076 2017-03-09  Toma Tabacu  <toma.tabacu@imgtec.com>
8078         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
8079         Document rdynamic.
8081 2017-03-09  Vladimir Makarov  <vmakarov@redhat.com>
8083         PR rtl-optimization/79949
8084         * lra-constraints.c (process_alt_operands): Check memory when
8085         trying to predict a cycle.  Print about the overall increase.
8087 2017-03-09  Richard Biener  <rguenther@suse.de>
8089         PR middle-end/79971
8090         * gimple-expr.c (useless_type_conversion_p): Preserve
8091         TYPE_SATURATING for fixed-point types.
8093 2017-03-09  Richard Biener  <rguenther@suse.de>
8095         PR ipa/79970
8096         * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
8097         alignment of BLKmode params.
8099 2017-03-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8101         PR target/79913
8102         * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
8103         (VALL_NO_V2Q): Likewise.
8104         (VDQF_DF): Delete.
8105         * config/aarch64/aarch64-simd.md
8106         (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
8107         iterator.
8108         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
8109         VALL_NO_V2Q mode iterator.
8110         (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
8112 2017-03-09  Martin Liska  <mliska@suse.cz>
8114         PR tree-optimization/79631
8115         * tree-chkp-opt.c (chkp_is_constant_addr): Call
8116         tree_int_cst_sign_bit just for INTEGER constants.
8118 2017-03-09  Martin Liska  <mliska@suse.cz>
8120         PR target/65705
8121         PR target/69804
8122         * toplev.c (process_options): Disable -fcheck-pointer-bounds with
8123         sanitizers.
8125 2017-03-09  Marek Polacek  <polacek@redhat.com>
8127         PR c++/79672
8128         * tree.c (inchash::add_expr): Handle TREE_VEC.
8130 2017-03-09  Martin Liska  <mliska@suse.cz>
8132         PR ipa/79764
8133         (chkp_narrow_size_and_offset): New function.
8134         (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
8135         (void chkp_parse_bit_field_ref): New function.
8136         (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
8137         (chkp_process_stmt): Use chkp_parse_bit_field_ref.
8139 2017-03-09  Martin Liska  <mliska@suse.cz>
8141         PR ipa/79761
8142         * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
8143         (chkp_find_bounds_1): Remove gcc_unreachable.
8145 2017-03-09  Jakub Jelinek  <jakub@redhat.com>
8147         PR sanitizer/79944
8148         * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
8149         BUILT_IN_SYNC*, determine the access type from the size suffix and
8150         always build a MEM_REF with that type.  Handle forgotten
8151         BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
8153         PR target/79932
8154         * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
8155         _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
8156         _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
8157         _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
8158         _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
8159         _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
8160         _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
8161         _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
8162         _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
8163         _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
8164         _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
8165         _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
8166         _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
8167         _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
8168         _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
8169         _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
8170         _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
8171         _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
8172         _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
8173         _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
8174         _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
8175         _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
8176         _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
8177         _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
8178         _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
8179         _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
8180         _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
8181         _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
8182         _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
8183         _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
8184         definitions outside of __OPTIMIZE__ guarded section.
8186         PR target/79932
8187         * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
8188         _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
8189         _mm512_packus_epi32, _mm512_maskz_packus_epi32,
8190         _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
8191         guarded section.
8193 2017-03-09  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8195         * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
8196         ("vfenez<mode>"): Add missing constraints.
8198 2017-03-08  Martin Sebor  <msebor@redhat.com>
8200         PR target/79928
8201         * config/nds32/nds32.c (nds32_option_override):
8202         Fix misspelled diagnostic.
8204 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
8206         PR c/79940
8207         * gimplify.c (gimplify_omp_for): Replace index var in outer
8208         taskloop statement with an artificial variable and add
8209         OMP_CLAUSE_PRIVATE clause for it.
8211 2017-03-08  Richard Biener  <rguenther@suse.de>
8213         PR tree-optimization/79955
8214         * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
8215         for accesses that are completely outside of the variable.
8217 2017-03-08  Andrew Haley  <aph@redhat.com>
8219         PR tree-optimization/79943
8220         * tree-ssa-loop-split.c (compute_new_first_bound): When
8221         calculating the new upper bound, (END-BEG) should be added, not
8222         subtracted.
8224 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
8226         * config/avr/avr.md (setmemhi): Make sure match_dup
8227         operand number comes before match_scratch.
8229 2017-03-08  Richard Biener  <rguenther@suse.de>
8231         PR tree-optimization/79920
8232         * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
8233         with ncopies == 1 to ...
8234         (vect_transform_slp_perm_load): ... here.  Properly compute
8235         all element loads by iterating VF times over the group.  Do
8236         not handle ncopies (computed in a broken way) in
8237         vect_create_mask_and_perm.
8239 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
8241         PR sanitizer/79904
8242         * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
8243         is a uniform vector, use uniform_vector_p return value instead of
8244         building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
8246 2017-03-07  Marek Polacek  <polacek@redhat.com>
8248         PR middle-end/79809
8249         * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
8250         (alloca_call_type): Likewise.
8252 2017-03-07  Martin Liska  <mliska@suse.cz>
8254         * gcov.c (process_args): Put comment to correct location.
8256 2017-03-07  Martin Liska  <mliska@suse.cz>
8258         PR middle-end/68270
8259         * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
8260         Use array_at_struct_end_p instead of DECL_CHAIN (field).
8261         (chkp_narrow_bounds_for_field): Likewise.
8262         (chkp_parse_array_and_component_ref): Pass one more argument to
8263         call.
8265 2017-03-07  Richard Biener  <rguenther@suse.de>
8267         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
8268         preheaders.
8270 2017-03-07  Segher Boessenkool  <segher@kernel.crashing.org>
8272         * config/i386/i386.c (ix86_local_alignment): Align most aggregates
8273         of 16 bytes and more to 16 bytes, not those of 16 bits and more.
8275 2017-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8277         PR c/79855
8278         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
8279         to end of description.
8280         (PARAM_MAX_STORES_TO_MERGE): Likewise.
8282 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
8284         PR rtl-optimization/79901
8285         * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
8286         ...
8287         (*avx512f_<code><mode>3<mask_name>): ... this.
8288         (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
8289         iterator instead of VI8_AVX2_AVX512BW.
8291         PR rtl-optimization/79901
8292         * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
8293         min/max expander, expand it using expand_vec_cond_expr.
8295         PR sanitizer/79897
8296         * ubsan.c (ubsan_encode_value): Call mark_addressable on the
8297         temporary.
8299 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
8301         PR c++/79821
8302         * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
8303         to void * for PCH reasons.
8304         * dwarf2out.c (output_loc_operands, output_die): Cast
8305         v.val_vec.array to unsigned char *.
8307 2017-03-06  John David Anglin  <danglin@gcc.gnu.org>
8309         PR target/77850
8310         * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
8311         vector types.
8313 2017-03-06  Vladimir Makarov  <vmakarov@redhat.com>
8315         PR rtl-optimization/79571
8316         * lra-constraints.c (process_alt_operands): Calculate static
8317         reject and subtract it from overall when only addresses will be
8318         reloaded.
8320 2017-03-06  Julia Koval  <julia.koval@intel.com>
8322         PR target/79793
8323         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
8324         incoming stack boundary to 128 for 64-bit targets.
8326 2017-03-06  Richard Biener  <rguenther@suse.de>
8328         PR tree-optimization/79894
8329         * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
8330         to NULL after folding it.
8332 2017-03-06  Richard Biener  <rguenther@suse.de>
8334         PR tree-optimization/79824
8335         * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
8336         check disabling peeling for gaps.
8338 2017-03-06  Toma Tabacu  <toma.tabacu@imgtec.com>
8340         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
8341         attributes): Document gettimeofday.
8343 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
8345         * config/s390/s390.c (s390_option_override_internal): Set
8346         PARAM_MIN_VECT_LOOP_BOUND
8348 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
8350         * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
8351         * config/s390/s390.md: Likewise.
8353 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
8355         PR target/79812
8356         * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
8357         (<avx2_avx512>_perm<mode>): Rename to ...
8358         (avx2_perm<mode>): ... this.  Use VI8F_256 iterator instead
8359         of VI8F_256_512.
8360         (<avx512>_perm<mode>_mask): Rename to ...
8361         (avx512vl_perm<mode>_mask): ... this.  Use VI8F_256 iterator instead
8362         of VI8F_256_512.
8363         (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
8364         (avx2_perm<mode>_1<mask_name): ... this.  Use VI8F_256 iterator
8365         instead of VI8F_256_512.
8366         (avx512f_perm<mode>): New define_expand.
8367         (avx512f_perm<mode>_mask): Likewise.
8368         (avx512f_perm<mode>_1<mask_name>): New define_insn.
8369         (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
8371 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
8373         * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
8374         msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
8375         if_then_else.
8376         (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
8378 2017-03-06  Martin Liska  <mliska@suse.cz>
8380         PR sanitize/79783
8381         * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
8382         when having a SSA NAME w/o VAR_DECL assigned to it.
8384 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
8386         * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
8387         msa_dpsub_<su>_d): Fix MODE for vec_select.
8389 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
8391         * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
8392         argument.
8393         * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
8395 2017-03-06  Richard Biener  <rguenther@suse.de>
8397         * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
8398         * plugin.c (register_plugin_info): Likewise.
8399         * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
8401 2017-03-05  Jakub Jelinek  <jakub@redhat.com>
8403         * config/i386/sse.md (sse_storehps, sse_storelps,
8404         avx_<castmode><avxsizesuffix>_<castmode>,
8405         avx512f_<castmode><avxsizesuffix>_<castmode>,
8406         avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
8407         in condition that at least one operand is not a MEM.
8409 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
8411         PR middle-end/79805
8412         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
8413         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
8414         ECF_NOTHROW.
8415         * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
8416         gimple_call_nothrow_p flag based on whether original builtin can throw.
8417         If it can, emit following stmts on the fallthrough edge.
8418         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
8419         don't create new bb if inserting just debug stmts on the edge, try to
8420         insert them on the fallthru bb or just reset debug stmts.
8422 2017-03-03  Segher Boesssenkool  <segher@kernel.crashing.org>
8424         PR target/43763
8425         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
8426         restore recog_data (including the operand rtxes inside it) around
8427         the call to get_insn_template.
8429 2017-03-03  Martin Sebor  <msebor@redhat.com>
8431         PR tree-optimization/79699
8432         * context.c (context::~context): Free MPFR caches to avoid
8433         a memory leak on program exit.
8435 2017-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8437         * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
8438         Use wide_int::ulow () instead of .elt (0).
8440 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
8442         * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
8443         (*pushxf): Limit oF constraint to 32bit targets and add oC
8444         constraint for 64bit targets.
8445         (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
8446         (*pushdf): Change rmF constraint to rmC.
8448 2017-03-03  Martin Liska  <mliska@suse.cz>
8450         * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
8451         Remove unused variable.
8453 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
8455         PR target/79807
8456         * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
8457         is a memory operand, increase num_memory.
8458         (ix86_expand_args_builtin): Likewise.
8460 2017-03-03  Jan Hubicka  <jh@suse.cz>
8462         PR lto/79760
8463         * ipa-devirt.c (maybe_record_node): Properly handle
8464         __cxa_pure_virtual visibility.
8466 2017-03-03  Martin Liska  <mliska@suse.cz>
8468         PR tree-optimization/79803
8469         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
8470         assert.
8471         (pass_loop_prefetch::execute): Disabled optimization if an
8472         assumption about L1 cache size is not met.
8474 2017-03-03  Martin Liska  <mliska@suse.cz>
8476         PR rtl-optimization/79574
8477         * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
8478         (hash_scan_set): Likewise.
8479         (dump_hash_table): Likewise.
8480         (hoist_code): Likewise.
8482 2017-03-03  Richard Biener  <rguenther@suse.de>
8484         * fixed-value.c (fixed_from_string): Restore use of elt (1)
8485         in place of uhigh ().
8486         (fixed_convert_from_real): Likewise.
8488 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
8490         PR target/79514
8491         * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
8493 2017-03-03  Richard Biener  <rguenther@suse.de>
8495         PR middle-end/79818
8496         * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
8497         TYPE_OVERFLOW_UNDEFINED check.
8499 2017-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8501         * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
8502         numbers.
8503         (vector_ae_<mode>_p): Likewise.
8504         (vector_nez_<mode>_p): Likewise.
8505         (vector_ne_v2di_p): Likewise.
8506         (vector_ae_v2di_p): Likewise.
8507         (vector_ne_<mode>_p): Likewise.
8508         * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
8509         numbers.
8510         (vsx_tsqrt<mode>2_fe): Likewise.
8512 2017-03-02  Uros Bizjak  <ubizjak@gmail.com>
8514         PR target/79514
8515         * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
8517 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
8519         PR rtl-optimization/79780
8520         * cprop.c (one_cprop_pass): When second and further conditional trap
8521         in a single basic block is turned into an unconditional trap, turn it
8522         into a deleted note to avoid RTL verification failures.
8524 2017-03-02  Richard Biener  <rguenther@suse.de>
8526         * fold-const.c (const_binop): Use ulow () instead of elt (0).
8528 2017-03-02  Richard Biener  <rguenther@suse.de>
8530         PR tree-optimization/79345
8531         PR c++/42000
8532         * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
8533         param and abort the walk, returning -1 if it is hit.
8534         (walk_aliased_vdefs): Take a limit param and pass it on.
8535         * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
8536         defaulting to 0 and return a signed int.
8537         * tree-ssa-uninit.c (struct check_defs_data): New struct.
8538         (check_defs): New helper.
8539         (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
8540         about uninitialized memory.
8541         * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
8542         bogus uninitialized warning.
8543         (fixed_convert_from_real): Likewise.
8545 2017-03-02  Bin Cheng  <bin.cheng@arm.com>
8547         PR tree-optimization/66768
8548         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
8549         iv_use if base object can't be determined.
8551 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
8553         PR tree-optimization/79345
8554         * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
8555         * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
8556         (get_pattern_stats): Initialize it.
8557         * genemit.c (gen_expand): Verify match_scratch numbers come after
8558         match_operand/match_dup numbers.
8559         * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
8560         match_scratch numbers.
8561         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
8562         Likewise.
8563         * config/s390/s390.md (trunctdsd2): Likewise.
8565 2017-03-02  Richard Biener  <rguenther@suse.de>
8567         * wide-int.h (wide_int_storage::operator=): Implement in terms
8568         of wi::copy.
8570 2017-03-02  Richard Biener  <rguenther@suse.de>
8572         PR tree-optimization/79777
8573         * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
8574         the to insert expression to sth existing.
8576 2017-03-01  Martin Sebor  <msebor@redhat.com>
8578         PR middle-end/79692
8579         * gimple-ssa-sprintf.c
8580         (directive::known_width_and_precision): New function.
8581         (format_integer): Use it.
8582         (get_mpfr_format_length): Consider the full range of precision
8583         when computing %g output with the # flag.  Set the likely byte
8584         count to 3 rather than 1 when precision is indeterminate.
8585         (format_floating): Correct the lower bound of precision.
8587 2017-03-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8589         * doc/invoke.texi: Document default code model for 64-bit Linux.
8591 2017-03-01  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
8593         PR target/79752
8594         * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
8595         udiv rather than div since input pattern is unsigned.
8597 2017-03-01  Uros Bizjak  <ubizjak@gmail.com>
8599         * config/i386/i386.c (print_reg): Warn for values of
8600         unsupported size in integer register.
8602 2017-03-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
8604         PR target/79439
8605         * config/rs6000/predicates.md (current_file_function_operand): Do
8606         not allow self calls to be local if the function is replaceable.
8608 2017-03-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8610         PR target/79395
8611         * config/rs6000/altivec.h (vec_ctz and others): Change the
8612         preprocessor macro that controls conditional compilation from
8613         _ARCH_PWR9 to __POWER9_VECTOR__.
8614         (vec_all_ne): Change parameterization of __altivec_scalar_pred
8615         macro expansion under preprocessor #ifdef __POWER9_VECTOR__
8616         control (instead of _ARCH_PWR9 control) so that template
8617         definition uses power9-specific function.
8618         (vec_any_eq): Likewise.
8619         (vec_all_ne): Change macro definition to use a power9-specific
8620         expansion under #ifdef __POWER9_VECTOR__ control (instead of
8621         _ARCH_PWR9 control).
8622         (vec_any_eq) Likewise.
8623         * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
8624         expansion for CMPNEF to remove support for xvcmpnesp instruction.
8625         (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
8626         support for xvcmpnedp instruction.
8627         (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
8628         macro expansion so that Power9 implementation of vec_all_ne does
8629         not use the AltiVec predicate framework.
8630         (VCMPNEH_P): Likewise.
8631         (VCMPNEW_P): Likewise.
8632         (VCMPNED_P): Likewise.
8633         (VCMPNEFP_P): Likewise.
8634         (VCMPNEDP_P): Likewise.
8635         (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
8636         implementation of vec_any_eq to not use AltiVec predicate
8637         framework.
8638         (VCMPAEH_P): Likewise.
8639         (VCMPAEW_P): Likewise.
8640         (VCMPAED_P): Likewise.
8641         (VCMPAEFP_P): Likewise.
8642         (VCMPAEDP_P): Likewise.
8643         (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
8644         BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
8645         not use the AltiVec predicate framework.
8646         (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
8647         of vec_any_eq to not use AltiVec predicate framework.
8648         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
8649         support for predefined __POWER9_VECTOR__ macro to indicate that
8650         Power9 instruction selection is enabled.
8651         (altivec_overloaded_builtins): Remove extraneous
8652         ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
8653         function argument types RS6000_BTI_bool_V16QI and
8654         RS6000_BTI_bool_V16QI.  Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
8655         entry for overloaded function argument types RS6000_BTI_bool_V4SI
8656         andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB.  Remove
8657         two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
8658         P9V_BUILTIN_CMPNEF to force use of instructions not specific to
8659         Power9 for implementations of vec_cmpne.  Change the signature for
8660         all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
8661         (representing vec_all_ne) to remove the previously described first
8662         argument of type RS6000_BTI_INTSI, as this was an artifact of
8663         reliance on the AltiVec predicate framework, which is no longer
8664         used in the implementation of these functions.  Add
8665         P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
8666         function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
8667         since, unlike the AltiVec predicate framework implementation, we
8668         do not share function descriptors between vec_alle and vec_anyeq.
8669         (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
8670         set of modes that receive special treatment even when
8671         TARGET_P9_VECTOR is true.  The special treatment emits code that
8672         does not depend on Power9 instructions.
8673         * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
8674         define_expand to not rely on AltiVec predicate framework.
8675         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
8676         function.
8677         (vector_ne_v2di_p): Change this define_expand to not rely on
8678         AltiVec predicate framework.
8679         (vector_ae_v2di_p): New define_expand to represent vec_any_eq
8680         function.
8681         (vector_ne_<mode>_p): Change this define_expand to not rely on
8682         AltiVec predicate framework.
8683         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
8684         function.
8685         * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
8686         (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
8687         define_insn pattern.
8688         (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
8689         define_insn pattern because the xvcmpne<VSs>. instruction is not
8690         supported.
8691         (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
8692         instruction is not supported.
8694 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
8696         * config/nvptx/nvptx.c: Include intl.h.
8698 2017-03-01  Martin Jambor  <mjambor@suse.cz>
8700         PR lto/78140
8701         * ipa-prop.h (ipa_bits): Removed field known.
8702         (ipa_jump_func): Removed field vr_known.  Changed fields bits and m_vr
8703         to pointers.  Adjusted their comments to warn about their sharing.
8704         (ipcp_transformation_summary): Change bits to a vector of pointers.
8705         (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
8706         (ipa_get_ipa_bits_for_value): Declare.
8707         * tree-vrp.h (value_range): Mark as GTY((for_user)).
8708         * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
8709         (ipa_bits_hash_table): Likewise.
8710         (ipa_vr_ggc_hash_traits): Likewise.
8711         (ipa_vr_hash_table): Likewise.
8712         (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
8713         being pointers and vr_known being removed.
8714         (ipa_set_jf_unknown): Likewise.
8715         (ipa_get_ipa_bits_for_value): New function.
8716         (ipa_set_jfunc_bits): Likewise.
8717         (ipa_get_value_range): New overloaded functions.
8718         (ipa_set_jfunc_vr): Likewise.
8719         (ipa_compute_jump_functions_for_edge): Use the above functions to
8720         construct bits and vr parts of jump functions.
8721         (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
8722         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
8723         exist.
8724         (ipcp_grow_transformations_if_necessary): Also allocate
8725         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
8726         exist.
8727         (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
8728         them.  Fix too long lines.
8729         (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
8730         vr_known being removed.
8731         (ipa_read_jump_function): Use new setter functions to construct bits
8732         and vr parts of jump functions or set them to NULL.
8733         (write_ipcp_transformation_info): Adjust for bits being pointers.
8734         (read_ipcp_transformation_info): Likewise.
8735         (ipcp_update_bits): Likewise.  Fix excessively long lines a trailing
8736         space.
8737         Include gt-ipa-prop.h.
8738         * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
8739         being pointers.
8740         (ipcp_store_bits_results): Likewise.
8741         (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
8742         Do not write to existing jump functions but use a temporary instead.
8744 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
8746         PR c++/79681
8747         * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
8748         attempt to use its first operand as BIT_FIELD_REF base.
8750 2017-03-01  Richard Biener  <rguenther@suse.de>
8752         PR middle-end/79721
8753         * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
8754         interpolating formula in wrapping arithmetic.
8755         (chrec_apply): Convert chrec_evaluate return value to wanted type.
8757 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
8759         PR tree-optimization/79734
8760         * tree-vect-generic.c (expand_vector_condition): Optimize
8761         AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
8762         Handle VEC_COND_EXPR where comparison has different inner width from
8763         type's inner width.
8765 2017-02-28  Sandra Loosemore  <sandra@codesourcery.com>
8767         * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
8768         markup, and similar issues.  Remove @opindex entries for things
8769         that aren't options.  Add missing -mmpy-option entries.
8771 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
8773         PR tree-optimization/79737
8774         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
8775         a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
8776         tmpbuf[byte_size - 1].  Call natice_encode_expr with byte_size - 1
8777         instead of byte_size.  Formatting fix.
8778         (shift_bytes_in_array_right): Formatting fix.
8780 2017-02-28  Eric Botcazou  <ebotcazou@adacore.com>
8782         PR target/79749
8783         * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
8784         condition on optimize for the leaf function test.
8786 2017-02-28  Martin Liska  <mliska@suse.cz>
8788         PR lto/79625
8789         * read-rtl-function.c (function_reader::handle_unknown_directive):
8790         Bail out when one uses -flto.
8792 2017-02-28  Martin Liska  <mliska@suse.cz>
8794         * common.opt: Replace space with tabular for options of <number>
8795         type.
8796         * config/i386/i386.opt: Show <number> value for
8797         -mlarge-data-threshold.
8798         * opts.c (print_filtered_help): Do not display number in hexadecimal
8799         format.
8801 2017-02-28  Martin Liska  <mliska@suse.cz>
8803         * common.opt: Fix --help=option -Q for options which are of
8804         an enum type.
8806 2017-02-28  Uros Bizjak  <ubizjak@gmail.com>
8808         * config/i386/i386.c (print_reg): Error out for values
8809         of 8-bit size in invalid integer register.
8811 2017-02-28  Martin Sebor  <msebor@redhat.com>
8813         PR tree-optimization/79691
8814         * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
8816 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
8818         PR target/79729
8819         * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
8820         gcc_unreachable with output_operand_lossage.
8822 2017-02-28  Richard Biener  <rguenther@suse.de>
8824         PR tree-optimization/79740
8825         * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
8826         inserts.
8827         (visit_nary_op): Insert the nary into the hashtable if we
8828         pattern-matched sth.
8829         * tree-ssa-pre.c (eliminate_insert): Robustify.
8831 2017-02-28  Richard Biener  <rguenther@suse.de>
8833         PR middle-end/79731
8834         * fold-const.c (decode_field_reference): Reject out-of-bound
8835         accesses.
8837 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
8839         * config/i386/i386.c: Include intl.h.
8840         (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
8841         instead of just cond ? "..." : "...".
8842         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
8843         * coverage.c (read_counts_file): Likewise.
8844         * omp-offload.c: Include intl.h.
8845         (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
8846         of just cond ? "..." : "...".
8847         * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
8848         of just cond ? "..." : "...".
8850 2017-02-28  Richard Earnshaw  <rearnsha@arm.com>
8852         PR target/79742
8853         * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
8854         entry, if present.
8855         * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
8856         'tune for' CPU name.
8857         * config/arm/arm-cpu-data.h: Regenerated.
8859 2017-02-28  Richard Biener  <rguenther@suse.de>
8861         PR tree-optimization/79732
8862         * tree-inline.c (expand_call_inline): Do not shadow var.
8864 2017-02-28  Richard Biener  <rguenther@suse.de>
8866         PR tree-optimization/79723
8867         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
8868         address-space properly.
8870 2017-02-28  Thomas Schwinge  <thomas@codesourcery.com>
8872         * doc/optinfo.texi (Optimization groups): Fix option used for
8873         OPTGROUP_ALL.
8874         * doc/invoke.texi (-fopt-info): Document "omp".
8875         * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
8876         (OPTGROUP_ALL): Add OPTGROUP_OMP.
8877         * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
8878         * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
8879         * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
8881         * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP.  Adjust
8882         all users.
8883         * dumpfile.c (optgroup_options): Instead of "openmp", associate
8884         OPTGROUP_OMP with "omp".
8886 2017-02-27  Pat Haugen  <pthaugen@us.ibm.com>
8888         PR target/79544
8889         * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
8890         for arithmetic shift of unsigned V2DI.
8892 2017-02-27  Claudiu Zissulescu  <claziss@synopsys.com>
8894         * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
8895         arc/linux.h headers.
8896         * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
8897         (LINK_SPEC): Likewise.
8898         (ARC_TLS_EXTRA_START_SPEC): Likewise.
8899         (EXTRA_SPECS): Likewise.
8900         (STARTFILE_SPEC): Likewise.
8901         (ENDFILE_SPEC): Likewise.
8902         (LIB_SPEC): Likewise.
8903         (TARGET_SDATA_DEFAULT): Likewise.
8904         (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
8905         (MULTILIB_DEFAULTS): Likewise.
8906         (DWARF2_UNWIND_INFO): Likewise.
8907         * config/arc/big.h: New file.
8908         * config/arc/elf.h: Likewise.
8909         * config/arc/linux.h: Likewise.
8910         * config/arc/t-uClibc: Remove.
8912 2017-02-27  Bin Cheng  <bin.cheng@arm.com>
8914         PR tree-optimization/77536
8915         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
8916         (tree_transform_and_unroll_loop): Use above function to compute the
8917         estimated niter of unrolled loop and use it when scaling profile.
8918         Also use count info rather than frequency if it's non-zero.
8919         * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
8920         * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
8921         (vect_transform_loop): Call above function.
8923 2017-02-27  Richard Biener  <rguenther@suse.de>
8925         PR tree-optimization/45397
8926         * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
8927         * tree-ssa-sccvn.c (valueized_wider_op): New helper.
8928         (visit_nary_op): Add pattern matching for CSEing sign-changed
8929         or truncated operations with wider ones.
8931 2017-02-27  Richard Biener  <rguenther@suse.de>
8933         PR tree-optimization/79690
8934         * tree-vect-stmts.c (vectorizable_store): Use vector type
8935         built from the DR with address-space.
8937 2017-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
8939         * doc/invoke.texi (Optimize Options): Refine the description
8940         of asan-use-after-return.
8942 2017-02-25  Alan Modra  <amodra@gmail.com>
8944         PR rtl-optimization/79584
8945         * lra-constraints.c (base_to_reg): Reload ad->base, the entire
8946         base, not ad->base_term, the reg within base.  Remove assertion
8947         that ad->base == ad->base_term.  Replace gen_int_mode using
8948         bogus mode with const0_rtx.
8950 2017-02-25  Jakub Jelinek  <jakub@redhat.com>
8952         PR middle-end/79396
8953         * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
8954         FMA_EXPR like tcc_binary or tcc_unary.
8956         * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
8958         PR debug/77589
8959         * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
8960         bitfield.
8961         (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
8962         (output_loc_operands): Handle DW_OP_call_ref and
8963         DW_OP_GNU_variable_value.
8964         (struct variable_value_struct): New type.
8965         (struct variable_value_hasher): Likewise.
8966         (variable_value_hash): New variable.
8967         (string_types): Remove.
8968         (copy_loc_descr): New function.
8969         (add_loc_descr_to_each): Clarify comment.  Use copy_loc_descr.
8970         (prepend_loc_descr_to_each): New function.
8971         (add_loc_list): Fix comment typo.  Use prepend_loc_descr_to_each
8972         instead of add_loc_descr_to_each if the first argument is single
8973         location list and the second has multiple.
8974         (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
8975         (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
8976         when looking for variable value which doesn't have other location info.
8977         (loc_list_from_tree): Formatting fix.
8978         (gen_array_type_die): Simplify DW_AT_string_length handling.
8979         (adjust_string_types): Remove.
8980         (gen_subprogram_die): Don't call adjust_string_types nor test/set
8981         string_types.  Call resolve_variable_values.
8982         (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
8983         (resolve_addr_in_expr): Likewise.  Add A argument.
8984         (copy_deref_exprloc): Remove deref argument.  Adjust for the
8985         original expression being DW_OP_GNU_variable_value with optionally
8986         DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
8987         optionally after it.
8988         (optimize_string_length): Rework for DW_OP_GNU_variable_value.
8989         (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
8990         callers.  Set remove_AT_byte_size if removing DW_AT_string_length.
8991         (variable_value_hasher::hash, variable_value_hasher::equal): New
8992         methods.
8993         (resolve_variable_value_in_expr, resolve_variable_value,
8994         resolve_variable_values, note_variable_value_in_expr,
8995         note_variable_value): New functions.
8996         (dwarf2out_early_finish): Call note_variable_value on all toplevel
8997         DIEs.
8999 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
9001         PR c/79677
9002         * opts.h (handle_generated_option): Add GENERATED_P argument.
9003         * opts-common.c (handle_option): Adjust function comment.
9004         (handle_generated_option): Add GENERATED_P argument, pass it to
9005         handle_option.
9006         (control_warning_option): Pass false to handle_generated_option
9007         GENERATED_P.
9008         * opts.c (maybe_default_option): Pass true to handle_generated_option
9009         GENERATED_P.
9010         * optc-gen.awk: Likewise.
9012 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
9014         * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
9015         a REG, look at the REG it is a SUBREG of.
9016         (splitter for cmpeqsi_t): Ditto.
9018 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
9020         * config/pa/pa.c (pa_combine_instructions): Do not share RTL.  Make
9021         the special USEs with the pattern of the insn, not the insn itself.
9023 2017-02-24  Matthew Fortune  <matthew.fortune@imgtec.com>
9025         PR target/79473
9026         * doc/invoke.texi: Document -mload-store-pairs.
9028 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
9029             Sandra Loosemore  <sandra@codesourcery.com>
9031         * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
9032         argument isn't a CONST_INT.
9033         (nios2_alternate_compare_const): Assert op is a CONST_INT.
9034         (nios2_valid_compare_const_p): Assert op is a CONST_INT.
9035         (nios2_validate_compare): Bypass alternate compare logic if *op2
9036         is not a CONST_INT.
9037         (ldstwm_operation_p): Return false if first_base is not a REG or
9038         if first_offset is not a CONST_INT.
9040 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
9042         * config/cris/cris.md: Use correct operand in a define_peephole2.
9044 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
9046         * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
9048 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
9050         * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
9051         this_insn if it is an INSN or JUMP_INSN.
9052         (force_offsettable): Look at base, not at addr.
9053         * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
9054         on things that aren't necessarily CONST_INTs.
9056 2017-02-24  Uros Bizjak  <ubizjak@gmail.com>
9058         * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
9059         -mfpmath=sse is the default also for x86-32 targets with SSE2
9060         instruction set when @option{-ffast-math} is enabled
9062 2017-02-24  Jeff Law  <law@redhat.com>
9064         PR rtl-optimizatoin/79286
9065         * ira.c (update_equiv_regs): Drop may_trap_p exception to
9066         dominance test.
9068 2017-02-24  Richard Biener  <rguenther@suse.de>
9070         PR tree-optimization/79389
9071         * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
9072         debug insns.
9074 2017-02-24  Aldy Hernandez  <aldyh@redhat.com>
9076         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
9077         function comment to reflect reality.
9078         (loop_exits_before_overflow): Fix typo in function description.
9080 2017-02-24  Richard Biener  <rguenther@suse.de>
9082         PR tree-optimization/79389
9083         * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
9084         properly that a threading opportunity exists.  Detect conditional
9085         copy/constant propagation opportunities.
9087 2017-02-23  Eric Botcazou  <ebotcazou@adacore.com>
9089         * config/visium/visium.md (type): Add trap.
9090         (b): New mode attribute.
9091         (*btst): Rename into...
9092         (*btst<mode>): ...this and adjust.
9093         (*cbranchsi4_btst_insn): Rename into...
9094         (*cbranch<mode>4_btst_insn): ...this and adjust.
9095         (trap): New define_insn.
9097 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
9099         PR tree-optimization/79389
9100         * ifcvt.c (struct noce_if_info): Add rev_cond field.
9101         (noce_reversed_cond_code): New function.
9102         (noce_emit_store_flag): Use rev_cond if non-NULL instead of
9103         reversed_comparison_code.  Formatting fix.
9104         (noce_try_store_flag): Test rev_cond != NULL in addition to
9105         reversed_comparison_code.
9106         (noce_try_store_flag_constants): Likewise.
9107         (noce_try_store_flag_mask): Likewise.
9108         (noce_try_addcc): Use rev_cond if non-NULL instead of
9109         reversed_comparison_code.
9110         (noce_try_cmove_arith): Likewise.  Formatting fixes.
9111         (noce_try_minmax, noce_try_abs): Clear rev_cond.
9112         (noce_find_if_block): Initialize rev_cond.
9113         (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
9114         instead of false as last argument never attempt to reverse it
9115         afterwards.
9117 2017-02-23  Bin Cheng  <bin.cheng@arm.com>
9119         PR tree-optimization/79663
9120         * tree-predcom.c (combine_chains): Process refs in reverse order
9121         only for ZERO length chains, and add explaining comment.
9123 2017-02-23  Jeff Law  <law@redhat.com>
9125         PR tree-optimization/79578
9126         * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
9127         in call to operand_equal_p.
9129 2017-01-23  Dominique d'Humieres  <dominiq@lps.ens.fr>
9131         PR target/71017
9132         * config/i386/cpuid.h: Fix another undefined behavior.
9134 2017-02-23  Richard Biener  <rguenther@suse.de>
9136         PR tree-optimization/79683
9137         * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
9138         vector types for data-refs.
9140 2017-02-23  Martin Liska  <mliska@suse.cz>
9142         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
9144 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
9146         PR middle-end/79665
9147         * internal-fn.c (get_range_pos_neg): Moved to ...
9148         * tree.c (get_range_pos_neg): ... here.  No longer static.
9149         * tree.h (get_range_pos_neg): New prototype.
9150         * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
9151         are known to be in between 0 and signed maximum inclusive, try to
9152         expand both unsigned and signed divmod and use the cheaper one from
9153         those.
9155 2017-02-22  Jeff Law  <law@redhat.com>
9157         PR tree-optimization/79578
9158         * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
9159         to compare base operands.
9161 2017-02-22  Segher Boessenkool  <segher@kernel.crashing.org>
9163         PR target/79211
9164         * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
9165         gpc_reg_operand instead of fpr_reg_operand.
9167 2017-02-22  Sameera Deshpande  <sameera.deshpande@imgtec.com>
9169         * config/mips/mips.c (mips_return_in_memory): Force FP
9170         vector types to be returned in memory for o32 ABI.
9172 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
9174         * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
9175         instead of DW_TAG_member for static data member declarations and don't
9176         set no_linkage_name for static inline data members.
9177         (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
9178         to DW_TAG_member.
9180 2017-02-22  Martin Liska  <mliska@suse.cz>
9182         * doc/invoke.texi: Replace inequality signs with square brackets
9183         for -Wnormalized.
9185 2017-02-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9187         PR tree-optimization/68644
9188         * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
9190 2017-02-22  Matthew Fortune  <matthew.fortune@imgtec.com>
9192         PR target/78660
9193         * lra-constraints.c (simplify_operand_subreg): Handle
9194         WORD_REGISTER_OPERATIONS targets.
9196 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
9198         PR target/70465
9199         * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
9200         and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
9201         elimination by swapping fld*.
9203 2017-02-22  Richard Biener  <rguenther@suse.de>
9205         PR tree-optimization/79673
9206         * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
9207         convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
9208         irrelevant address-space qualifiers and avoiding a
9209         ADDR_SPACE_CONVERT_EXPR from fold_convert.
9211 2017-02-22  Richard Biener  <rguenther@suse.de>
9213         PR tree-optimization/79666
9214         * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
9215         to not symbolically negate if that may introduce undefined
9216         overflow.
9218 2017-02-22  Martin Liska  <mliska@suse.cz>
9220         PR lto/79587
9221         * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
9222         * data-streamer-out.c (streamer_write_gcov_count_stream):
9223         Likewise.
9224         * value-prof.c (stream_out_histogram_value): Make assert more
9225         precise based on type of counter.
9227 2017-02-21  Uros Bizjak  <ubizjak@gmail.com>
9229         PR target/79593
9230         * config/i386/i386.md (standard_x87sse_constant_load splitter):
9231         Use nonimmediate_operand instead of memory_operand for operand 1.
9232         (float-extend standard_x87sse_constant_load splitter): Ditto.
9234 2017-02-21  Jeff Law  <law@redhat.com>
9236         PR tree-optimization/79621
9237         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
9238         blocks with edges to themselves.
9240 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
9242         PR target/79633
9243         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
9244         is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
9245         Use gimple_call_builtin_p.
9247         PR target/79570
9248         * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
9249         on temporarily removed DEBUG_INSNs.
9251         PR tree-optimization/79649
9252         * tree-loop-distribution.c (classify_partition): Give up on
9253         non-generic address space loads/stores.
9255 2017-02-21  Aldy Hernandez  <aldyh@redhat.com>
9257         * doc/loop.texi (Loop manipulation): Remove nonexistent
9258         tree_ssa_loop_version from the documentation.
9259         * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
9261 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
9263         PR target/79494
9264         * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
9265         make_reg_eh_region_note_nothrow_nononlocal on call_insn.
9266         * config/rs6000/rs6000.c: Include except.h.
9267         (rs6000_expand_split_stack_prologue): Call
9268         make_reg_eh_region_note_nothrow_nononlocal on the call insn.
9270 2017-02-21  Martin Jambor  <mjambor@suse.cz>
9272         PR lto/79579
9273         * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
9274         have been analyzed.
9276 2017-02-21  Martin Jambor  <mjambor@suse.cz>
9278         * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
9279         for backward compatibility only.
9280         * doc/invoke.texi (Option Summary): Remove all references to
9281         -fipa-cp-alignment.
9283 2017-02-21  Matthew Fortune  <matthew.fortune@imgtec.com>
9285         PR target/78660
9286         Revert:
9287         2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
9289         * lra-constraints.c (curr_insn_transform): Handle
9290         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
9292 2017-02-21  Martin Liska  <mliska@suse.cz>
9294         * config/i386/i386.opt: Replace -masm-dialect with -masm.
9296 2017-02-21  Thomas Schwinge  <thomas@codesourcery.com>
9298         PR translation/79638
9299         * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
9301 2017-02-21  Eric Botcazou  <ebotcazou@adacore.com>
9303         PR ada/67205
9304         * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
9305         (arm_function_ok_for_sibcall): Return false for an indirect call by
9306         descriptor if all the argument registers are used.
9307         (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
9308         alignment of the function.
9310 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
9312         PR tree-optimization/61441
9313         * simplify-rtx.c (simplify_const_unary_operation): For
9314         -fsignaling-nans and sNaN operand, return NULL_RTX rather than
9315         the sNaN unmodified.
9317 2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9319         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
9320         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
9321         instead of SYSTEM_HEADER_DIR.
9323 2017-02-20  Gerald Pfeifer  <gerald@pfeifer.com>
9324             Martin LiÅ¡ka  <mliska@suse.cz>
9326         * doc/invoke.texi (use-after-scope-direct-emission-threshold):
9327         Fix typos and grammar, use active voice, and clarify.
9329 2017-02-20  Marek Polacek  <polacek@redhat.com>
9331         PR middle-end/79537
9332         * gimplify.c (gimplify_expr): Handle unused *&&L;.
9334         PR sanitizer/79558
9335         * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
9337 2017-02-20  Jakub Jelinek  <jakub@redhat.com>
9339         PR target/79568
9340         * config/i386/i386.c (ix86_expand_builtin): Handle
9341         OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
9342         ix86_builtins_isa[fcode].isa as a requirement of those
9343         flags and any other flag in the bitmask.
9344         (ix86_init_mmx_sse_builtins): Use 0 instead of
9345         ~OPTION_MASK_ISA_64BIT as mask.
9346         * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
9347         __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
9348         __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
9349         __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
9351 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
9353         PR target/78012
9354         * lra-constraints.c (split_reg): Check requested split mode
9355         is supported by the register.
9357 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
9359         * lra-constraints.c (simplify_operand_subreg): Remove early
9360         return false.
9362 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
9364         PR target/78660
9365         * lra-constraints.c (curr_insn_transform): Tighten condition
9366         for converting SUBREG reloads from OP_OUT to OP_INOUT.
9368 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
9370         PR target/78660
9371         * lra-constraints.c (curr_insn_transform): Handle
9372         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
9374 2017-02-19  Uros Bizjak  <ubizjak@gmail.com>
9376         Revert:
9377         2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
9379         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
9381 2017-02-19  Jonathan Wakely  <jwakely@redhat.com>
9383         PR c++/69523
9384         * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
9385         description.
9387 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9389         * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
9390         for FMA_EXPR.
9392 2017-02-18  Jakub Jelinek  <jakub@redhat.com>
9394         * final.c (last_columnnum, override_columnnum): New variables.
9395         (final_start_function): Set last_columnnum, pass it to begin_prologue
9396         hook and pass 0 to dwarf2out_begin_prologue.
9397         (final_scan_insn): Update override_columnnum.  Pass last_columnnum
9398         to source_line debug hook.
9399         (notice_source_line): Compute last_columnnum and for debug_column_info
9400         return true on column changes.
9401         * debug.h (struct gcc_debug_hooks): Add column argument to
9402         source_line and begin_prologue hooks.
9403         (debug_nothing_int_charstar_int_bool): Remove prototype.
9404         (debug_nothing_int_int_charstar,
9405         debug_nothing_int_int_charstar_int_bool): New prototypes.
9406         (dwarf2out_begin_prologue): Add column argument.
9407         * debug.c (do_nothing_debug_hooks): Adjust source_line and
9408         begin_prologue hooks.
9409         (debug_nothing_int_charstar_int_bool): Remove.
9410         (debug_nothing_int_int_charstar,
9411         debug_nothing_int_int_charstar_int_bool): New functions.
9412         * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
9413         through to dwarf2out_source_line.
9414         (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
9415         (dwarf2out_source_line): Add column argument, emit it if requested.
9416         * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
9417         arguments.
9418         * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
9419         * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
9420         * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
9421         through to dwarf2out_begin_prologue.
9422         (vmsdbgout_source_line): Add column argument, pass it through to
9423         dwarf2out_source_line.
9424         * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
9425         dbxout_source_line caller.
9426         (dbxout_source_line): Add column argument.
9428         * common.opt (gno-column-info, gcolumn-info): New options.
9429         * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
9430         (check_die): Also test for multiple DW_AT_decl_column attributes.
9431         (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
9432         DW_AT_decl_column if requested.
9433         (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
9434         if requested.
9435         (gen_variable_die): Likewise.
9436         (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
9437         * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
9439         PR target/79569
9440         * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
9441         * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
9442         (ix86_handle_option): Handle OPT_m3dnowa.
9443         * doc/invoke.texi (-m3dnowa): Document.
9444         * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
9445         -m3dnowa instead of -m3dnow -march=athlon.
9447         PR target/79559
9448         * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
9449         instead of gcc_assert for K, r and R code checks.  Formatting fixes.
9451 2017-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9453         PR target/79261
9454         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
9455         support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
9456         * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
9457         generator for vsx_xxpermdi_<mode>_be.
9458         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
9459         force big-endian semantics.
9460         (vsx_xxpermdi_<mode>_be): New define_expand with same
9461         implementation as previous version of vsx_xxpermdi_<mode>.
9463 2017-02-17  Jakub Jelinek  <jakub@redhat.com>
9465         PR tree-optimization/79327
9466         * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
9467         variable, its initialization and use.
9469 2017-02-17  Julia Koval  <julia.koval@intel.com>
9471         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
9472         (OPTION_MASK_ISA_PKU_UNSET): New.
9473         (ix86_handle_option): Handle -mrdpid.
9474         * config/i386/cpuid.h (bit_RDPID): New.
9475         * config/i386/driver-i386.c (host_detect_local_cpu):
9476         Detect RDPID feature.
9477         * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
9478         * config/i386/i386-c.c (ix86_target_macros_internal):
9479         Handle RDPID flag.
9480         * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
9481         (ix86_valid_target_attribute_inner_p): Add "rdpid".
9482         (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
9483         * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
9484         * config/i386/i386.md (define_insn "rdpid"): New.
9485         * config/i386/i386.opt Add -mrdpid.
9486         * config/i386/immintrin.h (_rdpid_u32): New.
9488 2017-02-17  Vladimir Makarov  <vmakarov@redhat.com>
9490         PR rtl-optimization/79541
9491         * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
9492         instead of transforming it into USE.
9494 2017-02-17  Segher Boessenkool  <segher@kernel.crashing.org>
9496         * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
9497         If HONOR_SNANS (SFmode) force the input to a register.
9498         (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
9499         (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
9500         an frsp or similar insn.
9502 2017-02-17  Martin Liska  <mliska@suse.cz>
9504         PR rtl-optimization/79577
9505         * params.def (selsched-max-sched-times): Increase minimum to 1.
9507 2017-02-17  Martin Liska  <mliska@suse.cz>
9509         PR rtl-optimization/79574
9510         * gcse.c (want_to_gcse_p): Prevent integer overflow.
9512 2017-02-17  Martin Liska  <mliska@suse.cz>
9514         PR tree-optimization/79529
9515         * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
9516         ssa_defined_default_def_p to handle cases which are implicitly
9517         defined.
9518         * tree-ssa.c (ssa_defined_default_def_p): New function.
9519         (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
9520         which are implicitly defined.
9521         * tree-ssa.h (ssa_defined_default_def_p): Declare.
9523 2017-02-17  Richard Biener  <rguenther@suse.de>
9525         PR middle-end/79576
9526         * params.def (max-ssa-name-query-depth): Limit to 10.
9528 2017-02-17  Richard Biener  <rguenther@suse.de>
9530         PR tree-optimization/79552
9531         * tree-ssa-structalias.c (visit_loadstore): Properly verify
9532         default defs.
9534 2017-02-17  Richard Biener  <rguenther@suse.de>
9536         PR bootstrap/79567
9537         * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
9539 2017-02-17  Marek Polacek  <polacek@redhat.com>
9541         PR middle-end/79536
9542         * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
9543         (fold_negate_expr): New wrapper.
9545 2017-02-16  Sandra Loosemore  <sandra@codesourcery.com>
9547         * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]: 
9548         Correct terminology and de-emphasize pre-standard behavior.
9550 2017-02-16  Alan Modra  <amodra@gmail.com>
9552         PR rtl-optimization/79286
9553         * ira.c (def_dominates_uses): New function.
9554         (update_equiv_regs): Don't create an equivalence for insns that
9555         may trap where the register def does not dominate the use.
9557 2017-02-16  Vladimir Makarov  <vmakarov@redhat.com>
9559         PR rtl-optimization/78127
9560         * lra.c (lra): Call lra_eliminate before finish the loop after
9561         lra_constraint.
9563 2017-02-16  Richard Biener  <rguenther@suse.de>
9565         * graphite.h: Do not include isl/isl_val_gmp.h, instead include
9566         isl/isl_val.h.
9567         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
9568         (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
9569         * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
9570         (isl_val_int_from_wi): New function.
9571         (extract_affine_gmp): Rename to ...
9572         (extract_affine_wi): ... this, take a widest_int.
9573         (extract_affine_int): Just wrap extract_affine_wi.
9574         (add_param_constraints): Use isl_val_int_from_wi.
9575         (add_loop_constraints): Likewise, and extract_affine_wi.
9577 2017-02-15  Jeff Law  <law@redhat.com>
9579         PR middle-end/79521
9580         * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
9581         ira_init_register_move_cost_if_necessary.
9583 2017-02-15  Martin Sebor  <msebor@redhat.com>
9585         PR middle-end/32003
9586         * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
9587         removed in a prior commit.
9589 2017-02-15  Bin Cheng  <bin.cheng@arm.com>
9591         PR tree-optimization/79347
9592         * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
9593         counters during peeling.
9595 2017-02-15  Thomas Schwinge  <thomas@codesourcery.com>
9597         * Makefile.in (site.exp): Remove "set ISLVER".
9599 2017-02-15  Jakub Jelinek  <jakub@redhat.com>
9601         PR target/79487
9602         * real.c (real_from_integer): Call real_convert even for decimal.
9604 2017-02-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9606         PR target/79421
9607         * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
9609 2017-02-14  Andrew Pinski  <apinski@cavium.com>
9611         * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
9612         cores and change the partno/implementer to be correct.
9613         (thunderx2t99p1): New core which replaces thunderx2t99 and still has
9614         the 'B" as the implementer.
9615         * config/aarch64/aarch64-tune.md: Regenerate.
9617 2017-02-14  Carl Love  <cel@us.ibm.com>
9619         * config/rs6000/rs6000.c: Add case statement entry to make the
9620         xvcvuxdsp built-in argument unsigned.
9621         * config/rs6000/vsx.md: Fix the source and return operand types so they
9622         match the instruction definitions from the ISA document.  Fix typo
9623         in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
9624         statement.
9626 2017-02-14  Vladimir Makarov  <vmakarov@redhat.com>
9628         PR target/79282
9629         * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
9630         member early_clobber_alts.
9631         * lra-lives.c (reg_early_clobber_p): New.
9632         (process_bb_lives): Use it.
9633         * lra.c (new_insn_reg): New arg early_clobber_alts.  Use it.
9634         (debug_operand_data): Initialize early_clobber_alts.
9635         (setup_operand_alternative): Set up early_clobber_alts.
9636         (collect_non_operand_hard_regs): Ditto.  Pass early clobber
9637         alternatives to new_insn_reg.
9638         (add_regs_to_insn_regno_info): Add arg early_clobber_alts.  Use
9639         it.
9640         (lra_update_insn_regno_info): Pass the new arg.
9642 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
9644         PR middle-end/79505
9645         * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
9646         (new_oacc_loop_raw): Don't clear already cleared fields.
9648         PR target/79481
9649         * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
9650         _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
9651         _mm512_prefetch_i64gather_ps): New inline functions and macros.
9653 2017-02-14  Uros Bizjak  <ubizjak@gmail.com>
9655         PR target/79495
9656         * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
9658 2017-02-14  H.J. Lu  <hongjiu.lu@intel.com>
9660         PR target/79498
9661         * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
9662         the extra instruction to the right place to store 128-bit constant
9663         when needed.
9665 2017-02-14  Martin Sebor  <msebor@redhat.com>
9667         PR middle-end/79448
9668         * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
9669           warning for strings of unknown length.
9671 2017-02-13  Segher Boessenkool  <segher@kernel.crashing.org>
9673         * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
9675 2017-02-14  Jeff Law  <law@redhat.com>
9677         PR target/79404
9678         * ira-costs.c (scan_one_insn): Initialize register move costs
9679         for pseudos seen in USE/CLOBBER insns.
9681         PR tree-optimization/79095
9682         * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
9683         if the numerator has the range ~[0,0] make the resultant range ~[0,0].
9684         (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
9685         if the operands are known to be not equal, then the resulting range
9686         is ~[0,0].
9687         (intersect_ranges): If the new range is ~[0,0] and the old range is
9688         wide, then prefer ~[0,0].
9689         * tree-vrp.c (overflow_comparison_p_1): New function.
9690         (overflow_comparison_p): New function.
9691         * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
9692         if NAME is used in an overflow test.
9693         (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
9694         overflow check that can be expressed as an equality test, then adjust
9695         ops to be that equality test.
9697 2017-02-14  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9699         * config/s390/s390-builtin-types.def: Remove flags argument.
9700         * config/s390/s390.c (s390_init_builtins): Likewise.
9702 2017-02-14  Martin Liska  <mliska@suse.cz>
9704         * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
9705         vector.  Fix trailing white spaces.
9707 2017-02-14  James Greenhalgh  <james.greenhalgh@arm.com>
9709         * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
9710         HFmode.
9712 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9714         PR rtl-optimization/68664
9715         * config/arm/arm.c (arm_sched_can_speculate_insn):
9716         New function.  Declare prototype.
9717         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
9719 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9721         PR rtl-optimization/68664
9722         * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
9723         New function.
9724         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
9726 2017-02-14  Amit Pawar  <amit.pawar@amd.com>
9728         * config/i386/i386.c (znver1_cost): Fix the alignment for function and
9729         max skip bytes for function, loop and jump.
9731 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9733         * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
9734         ABS_EXPR for gimple dump.
9736 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
9738         PR target/79462
9739         * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
9741         PR tree-optimization/79408
9742         * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
9743         case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
9744         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
9745         also if rhs1 is INTEGER_CST.
9747 2017-02-14  Richard Biener  <rguenther@suse.de>
9749         PR middle-end/79432
9750         * tree-into-ssa.c (insert_phi_nodes): When the function can
9751         have abnormal edges rewrite SSA names with broken use-def
9752         dominance out of SSA and register them for PHI insertion.
9754 2017-02-13  Martin Sebor  <msebor@redhat.com>
9756         PR middle-end/79496
9757         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
9758         clearing info.nowrite flag when snprintf size argument is a range.
9760 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
9762         * cprop.c (cprop_jump): Add missing space in string literal.
9763         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
9764         (get_constraint_for_component_ref): Likewise.
9765         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
9766         * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
9767         * lra-constraints.c (process_alt_operands): Likewise.
9768         * ipa-inline.c (inline_small_functions): Likewise.
9769         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
9770         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
9771         * trans-mem.c (diagnose_tm_1_op): Likewise.
9772         * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
9773         (grid_parallel_clauses_gridifiable): Likewise.
9775         * config/nvptx/mkoffload.c (process): Add space in between
9776         , and %d.
9778         * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
9779         "MOD4_SSE_REGS" and "ALL_REGS".
9781         * spellcheck.c (test_data): Add , in between "foo" and "food".
9783 2017-02-13  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
9785         PR target/79449
9786         * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
9787         boundary crossing check and subsequent code generation agree.
9789 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9791         * config/aarch64/aarch64.c (has_memory_op): Delete.
9792         (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
9793         has_memory_op.
9795 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
9797         PR rtl-optimization/79388
9798         PR rtl-optimization/79450
9799         * combine.c (distribute_notes): When removing TEM_INSN for which
9800         corresponding dest has last value recorded, invalidate that last
9801         value.
9803 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9805         * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
9806         of explicit '@'.  Add missing assembly comment marker on branch costs
9807         printout.
9809 2017-02-13  Nathan Sidwell  <nathan@acm.org>
9811         * gengtype-lex.l (<in_struct>): Add '/'.
9813 2017-02-13  Martin Liska  <mliska@suse.cz>
9815         PR c/79471
9816         * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
9818 2017-02-13  Richard Biener  <rguenther@suse.de>
9820         * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
9821         Remove.
9822         * configure: Re-generate.
9823         * config.in: Likewise.
9824         * graphite-dependences.c: Simplify as if
9825         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
9826         * graphite-isl-ast-to-gimple.c: Likewise.
9827         * graphite-optimize-isl.c: Likewise.
9828         * graphite-poly.c: Likewise.
9829         * graphite-sese-to-poly.c: Likewise.
9830         * graphite.h: Likewise.
9831         * toplev.c: Include isl/version.h and use isl_version () for
9832         printing the ISL version.
9833         * doc/install.texi: Update ISL requirement.
9835 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
9837         * doc/standards.texi (Standards): Update reference to
9838         Objective-C 2.0.
9840 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
9842         * doc/extend.texi (Named Address Spaces): sourceware.org now
9843         defaults to https.
9844         * doc/install.texi (Binaries): Ditto.
9845         (Specific): Ditto.
9847 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
9849         * doc/cpp.texi: Replace "stringify"/"stringification" with C
9850         standard terminology "stringize"/"stringizing" throughout.
9851         * doc/cppinternals.texi: Likewise.
9853 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
9855         * doc/extend.texi: Fix some spelling mistakes and typos.
9856         * doc/invoke.texi: Likewise.
9858 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
9860         PR ipa/79224
9861         * params.def (inline-min-speedup) Change from 10 to 8.
9863 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
9865         * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
9866         4.5.
9868 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
9870         PR ipa/79224
9871         * ipa-inline-analysis.c (get_minimal_bb): New function.
9872         (record_modified): Use it.
9873         (remap_edge_change_prob): Handle also ancestor functions.
9875 2017-02-11  Gerald Pfeifer  <gerald@pfeifer.com>
9877         * doc/contrib.texi (Contributors): Remove broken link into
9878         the Mauve CVS repository.
9880 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
9882         PR middle-end/79454
9883         * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
9884         result computation whenever lhs doesn't have vector mode, not
9885         just when it has BLKmode.
9887 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
9889         * doc/makefile.texi (profiledbootstrap): Refer to the
9890         installation instructions only in textual form.
9892 2017-02-10  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
9894         PR target/79295
9895         * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
9897 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
9899         * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
9900         (Specific): Update mingw-w64 reference.
9901         (Binaries): Ditto.
9902         (Specific): Remove broken link to Renesas RX processor.
9904 2017-02-10  Richard Biener  <rguenther@suse.de>
9906         * toplev.c (process_options): Do not mention obsolete graphite
9907         options when printing sorry message about missing graphite support.
9908         Mention -floop-nest-optimize.
9910 2017-02-10  Christophe Lyon  <christophe.lyon@linaro.org>
9912         * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
9913         (vtst_p16): Likewise.
9914         (vtstq_p8): Likewise.
9915         (vtstq_p16): Likewise.
9916         (vtst_p64): New.
9917         (vtstq_p64): Likewise.
9918         * config/arm/arm_neon.h (vgetq_lane_p64): New.
9919         (vset_lane_p64): New.
9920         (vsetq_lane_p64): New.
9922 2017-02-10  Jakub Jelinek  <jakub@redhat.com>
9924         PR tree-optimization/79411
9925         * tree-ssa-reassoc.c (is_reassociable_op): Return false if
9926         stmt operands are SSA_NAMEs used in abnormal phis.
9927         (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
9928         phis.
9930 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
9932         PR ipa/70795
9933         * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
9934         flag if needed.
9936 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
9938         * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
9940 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
9942         * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
9943         to avoid warning.
9945         PR c/79413
9946         * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
9947         not arbitrary TREE_CONSTANT.
9949         PR c/79431
9950         * gimplify.c (gimplify_adjust_omp_clauses): Ignore
9951         "omp declare target link" attribute unless is_global_var.
9952         * omp-offload.c (find_link_var_op): Likewise.
9954 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
9955             Chung-Lin Tang  <cltang@codesourcery.com>
9957         * gimplify.c (gimplify_scan_omp_clauses): No special handling for
9958         OMP_CLAUSE_TILE.
9959         (gimplify_adjust_omp_clauses): Don't delete TILE.
9960         (gimplify_omp_for): Deal with TILE.
9961         * internal-fn.c (expand_GOACC_TILE): New function.
9962         * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
9963         (GOACC_TILE): New.
9964         * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
9965         (expand_oacc_collapse_init): Add LOC paramter.  Initialize tile
9966         element fields.
9967         (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
9968         avoid DIV for outermost collapse var.
9969         (expand_oacc_for): Insert tile element loop as needed.  Adjust.
9970         Remove out of date comments, fix whitespace.
9971         * omp-general.c (omp_extract_for_data): Deal with tiling.
9972         * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
9973         adjust OLF_DIM_BASE value.
9974         (struct omp_for_data): Add tiling field.
9975         * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
9976         (lower_oacc_head_mark): Add OLF_TILE as appropriate.  Ensure 2 levels
9977         for auto loops.  Remove default auto determining, moved to
9978         oacc_loop_fixed_partitions.
9979         * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
9980         stmts, add e_mask field.
9981         (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
9982         (oacc_thread_numbers): Use oacc_dim_call.
9983         (oacc_xform_tile): New.
9984         (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
9985         (finish_oacc_loop): Adjust for ifns vector.
9986         (oacc_loop_discover_walk): Append loop abstraction sites to list,
9987         add case for GOACC_TILE fns.
9988         (oacc_loop_xform_loop): Delete.
9989         (oacc_loop_process): Iterate over call list directly, and add
9990         handling for GOACC_TILE fns.
9991         (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
9992         dump partitioning.
9993         (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
9994         vector partitioning to outer loops.  Assign 2 partitions to loops
9995         when available. Add TILE handling.
9996         (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
9997         (execite_oacc_device_lower): Process GOACC_TILE fns,
9998         ignore unknown specs.
9999         * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
10000         * tree.c (omp_clause_num_ops): Adjust TILE ops.
10001         * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
10003 2017-02-09  Gerald Pfeifer  <gerald@pfeifer.com>
10005         * configure.ac (ACX_BUGURL): Update.
10006         * configure: Regenerate.
10008 2017-02-09  Richard Biener  <rguenther@suse.de>
10010         PR tree-optimization/69823
10011         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
10012         Properly enumerate all BBs in the region.  Use auto_vec/auto_bitmap.
10014 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
10016         * config/arc/arc-c.def: Add __NPS400__ definition.
10017         * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
10018         (TARGET_NPS400): Define.
10020 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
10022         * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
10023         file.
10024         (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
10025         pointer, arch_info.
10026         (arc_cpu_types): Fill the arch_info field with a pointer into the
10027         arc_arch_types table.
10028         (arc_selected_cpu): Declare.
10029         * config/arc/arc.c (arc_selected_cpu): Make global.
10030         (arc_selected_arch): Delete.
10031         (arc_base_cpu): Delete.
10032         (arc_override_options): Remove references to deleted variables,
10033         update access to arch information.
10034         (ARC_OPT): Update access to arch information.
10035         (ARC_OPTX): Likewise.
10036         * config/arc/arc.h (arc_base_cpu): Remove declaration.
10037         (TARGET_ARC600): Update access to arch information.
10038         (TARGET_ARC601): Likewise.
10039         (TARGET_ARC700): Likewise.
10040         (TARGET_EM): Likewise.
10041         (TARGET_HS): Likewise.
10042         * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
10043         information.
10045 2017-02-08  Pat Haugen  <pthaugen@us.ibm.com>
10047         PR target/78604
10048         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
10049         condition/operands for integer GE/LE/GEU/LEU operations.
10051 2017-02-08  Segher Boessenkool  <segher@kernel.crashing.org>
10053         PR translation/79397
10054         * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
10055         of AltiVec.
10057 2017-02-08  Martin Jambor  <mjambor@suse.cz>
10059         PR ipa/79375
10060         * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
10061         whether allocation happened.
10062         (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
10063         nothing was allocated.
10065 2017-02-08  Jakub Jelinek  <jakub@redhat.com>
10067         PR tree-optimization/79408
10068         * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
10069         constant, but SSA_NAME with a known integer range, use the minimum
10070         of that range instead of op1 to determine if modulo can be replaced
10071         with its first operand.
10073 2016-02-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10075         * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
10077 2017-02-08  Richard Biener  <rguenther@suse.de>
10079         PR tree-optimization/71824
10080         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
10081         Check all loops contained in the merged region.
10083 2017-02-07  Andrew Pinski  <apinski@cavium.com>
10085         * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
10087 2017-02-07  Andrew Pinski  <apinski@cavium.com>
10089         * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
10090         (thunderxt88): Likewise.
10091         (thunderxt81): Disable LSE and change v8.1 to v8.
10092         (thunderxt83): Likewise.
10094 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
10095             Richard Biener  <rguenther@suse.de>
10097         PR middle-end/79399
10098         * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
10099         type from int to size_t.
10100         * ira-costs.c (struct_costs_size): Change type from int to size_t.
10102 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
10104         PR rtl-optimization/79386
10105         * cprop.c (bypass_conditional_jumps): Initialize
10106         bypass_last_basic_block already before splitting bbs after
10107         unconditional traps...
10108         (bypass_conditional_jumps): ... rather than here.
10110         PR target/79299
10111         * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
10112         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
10113         *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
10114         fix -masm=intel patterns.
10116 2017-02-07  Richard Biener  <rguenther@suse.de>
10118         PR tree-optimization/79256
10119         PR middle-end/79278
10120         * builtins.c (get_object_alignment_2): Use min_align_of_type
10121         to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
10122         and ADJUST_FIELD_ALIGN.
10124         * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
10125         type parameter.
10126         * doc/tm.texi: Regenerate.
10127         * stor-layout.c (layout_decl): Adjust.
10128         (update_alignment_for_field): Likewise.
10129         (place_field): Likewise.
10130         (min_align_of_type): Likewise.
10131         * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
10132         * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
10133         * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
10134         * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
10135         * config/frv/frv.c (frv_adjust_field_align): Likewise.
10136         * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
10137         * config/i386/i386.c (x86_field_alignment): Likewise.
10138         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
10139         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
10140         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
10141         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
10142         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
10143         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
10144          Likewise.
10146         Revert
10147         2017-01-30  Richard Biener  <rguenther@suse.de>
10149         PR tree-optimization/79256
10150         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
10151         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
10152         alignment on TYPE.
10154 2017-02-07  Toma Tabacu  <toma.tabacu@imgtec.com>
10156         * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
10157         argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
10158         builtins to SImode and emit a zero-extend, if necessary.
10160 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
10162         * docs/invoke.texi (RISC-V Options): Alphabetize.
10164 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
10166         * doc/invoke.texi (RISC-V Options): Use two spaces to separate
10167         options.
10169 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
10171         * config/riscv/riscv.c: New file.
10172         * gcc/common/config/riscv/riscv-common.c: Likewise.
10173         * config.gcc: Likewise.
10174         * config/riscv/constraints.md: Likewise.
10175         * config/riscv/elf.h: Likewise.
10176         * config/riscv/generic.md: Likewise.
10177         * config/riscv/linux.h: Likewise.
10178         * config/riscv/multilib-generator: Likewise.
10179         * config/riscv/peephole.md: Likewise.
10180         * config/riscv/pic.md: Likewise.
10181         * config/riscv/predicates.md: Likewise.
10182         * config/riscv/riscv-builtins.c: Likewise.
10183         * config/riscv/riscv-c.c: Likewise.
10184         * config/riscv/riscv-ftypes.def: Likewise.
10185         * config/riscv/riscv-modes.def: Likewise.
10186         * config/riscv/riscv-opts.h: Likewise.
10187         * config/riscv/riscv-protos.h: Likewise.
10188         * config/riscv/riscv.h: Likewise.
10189         * config/riscv/riscv.md: Likewise.
10190         * config/riscv/riscv.opt: Likewise.
10191         * config/riscv/sync.md: Likewise.
10192         * config/riscv/t-elf-multilib: Likewise.
10193         * config/riscv/t-linux: Likewise.
10194         * config/riscv/t-linux-multilib: Likewise.
10195         * config/riscv/t-riscv: Likewise.
10196         * configure.ac: Likewise.
10197         * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
10198         Waterman as RISC-V maintainers.
10199         * doc/install.texi: Add RISC-V entries.
10200         * doc/invoke.texi: Add RISC-V options section.
10201         * doc/md.texi: Add RISC-V constraints section.
10202         * configure: Regenerated.
10204 2017-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
10206         PR target/66144
10207         * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
10208         false values to be constant vectors with all 0 or all 1 bits set.
10209         (vcondu<mode><mode>): Likewise.
10210         * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
10211         predicate.
10212         (fpmask_comparison_operator): Update comment.
10213         (vecint_comparison_operator): New predicate.
10214         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
10215         vector conditionals when the true and false values are constant
10216         vectors with all 0 bits or all 1 bits set.
10218 2017-02-06  Martin Sebor  <msebor@redhat.com>
10220         PR  tree-optimization/79376
10221         * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
10223 2017-02-06  Uros Bizjak  <ubizjak@gmail.com>
10225         * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
10226         explicit subreg RTX with operand 1.  Use VECTOR_MODE_P predicate
10227         to simplify split condition.
10229 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
10231         * omp-expand.c (oxpand_omp_atomic_fetch_op,
10232         expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
10233         false.
10235 2017-02-06  Segher Boessenkool  <segher@kernel.crashing.org>
10237         PR rtl-optimization/68664
10238         * target.def (can_speculate_insn): New hook.
10239         * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
10240         * doc/tm.texi: Regenerate.
10241         * sched-rgn.c (can_schedule_ready_p): Use the new hook.
10242         * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
10243         (rs6000_sched_can_speculate_insn): New function.
10245 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
10247         PR tree-optimization/79284
10248         * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
10249         * tree-vect-stmts.c (vect_get_vec_def_for_operand,
10250         vectorizable_mask_load_store, vectorizable_operation,
10251         vect_is_simple_cond, get_same_sized_vectype): Use it instead
10252         of comparing TREE_CODE of a type against BOOLEAN_TYPE.
10253         * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
10254         vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
10255         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
10256         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
10257         Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
10258         is_gimple_assign (stmt).  Replace another such test with
10259         is_gimple_assign (stmt).
10261 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
10263         PR target/78883
10264         * config/avr/avr.c (rtl-iter.h): Include it.
10265         (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
10266         (avr_legitimate_combined_insn): ...and implementation.
10268 2017-02-06  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10270         * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
10271         * config/s390/s390.c (s390_const_operand_ok)
10272         (s390_canonicalize_comparison, s390_extract_part)
10273         (s390_single_part, s390_contiguous_bitmask_nowrap_p)
10274         (s390_contiguous_bitmask_p, s390_rtx_costs)
10275         (legitimize_pic_address): Likewise.
10276         * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
10277         * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
10278         ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
10279         ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
10280         * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
10282 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
10284         * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
10285         REGNO($0) == REGNO($1).
10287 2017-02-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10289         * config/s390/linux.h(SIZE_TYPE): Add comment.
10291 2017-02-06  Julian Brown  <julian@codesourcery.com>
10292             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
10293             Virendra Pathak  <virendra.pathak@broadcom.com>
10295         * config/aarch64/aarch64-cores.def: Change the scheduler
10296         to Thunderx2t99.
10297         * config/aarch64/aarch64.md: Include thunderx2t99.md.
10298         * config/aarch64/thunderx2t99.md: New file.
10300 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
10302         * doc/standards.texi (Go Language): Update link to language
10303         standard.
10305 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
10307         * tree-eh.c (lower_resx): Sanitize profile.
10308         (cleanup_empty_eh_move_lp): Likewise.
10310 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
10312         PR tree-ssa/79347
10313         * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
10314         ELSE_PROB.
10315         * cfgloopmanip.h (loop_version): Update prototype.
10316         * modulo-sched.c (sms_schedule): Update call of loop_version.
10317         * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
10318         * tree-parloops.c (gen_parallel_loop): Likewise.
10319         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
10320         * tree-ssa-loop-split.c (split_loop): Likewise.
10321         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
10322         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
10324 2017-02-05  Martin Liska  <mliska@suse.cz>
10326         PR bootstrap/78985
10327         * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
10328         variable to NULL.
10329         (print_operand_address): Initialize a struct to zero.
10331 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
10333         * doc/contrib.texi (Contributors): Refer to Hans Boehm's
10334         garbage collector only in textual form.
10336 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
10338         * doc/extend.texi (x86 specific memory model extensions for
10339         transactional memory): Simplify a phrase.
10341 2017-02-05  Eric Botcazou  <ebotcazou@adacore.com>
10343         PR target/79353
10344         * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
10345         'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
10346         (atomic_storedi_1): Likewise.
10348 2017-02-04  Jakub Jelinek  <jakub@redhat.com>
10350         PR tree-optimization/79338
10351         * tree-parloops.c (gather_scalar_reductions): Don't call
10352         vect_analyze_loop_form for loop->inner before destroying loop's
10353         loop_vinfo.
10355 2017-02-03  Martin Sebor  <msebor@redhat.com>
10357         PR tree-optimization/79327
10358         * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
10359         when precision has resulted in leading zeros.
10360         (format_integer): Adjust the likely counter to assume an unknown
10361         argument that may be zero is non-zero.
10363 2017-02-03  Jason Merrill  <jason@redhat.com>
10365         PR c++/78689
10366         * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
10367         avoid copying non-taken branch.
10369 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
10371         PR tree-optimization/79340
10372         * tree-vect-loop.c (vectorizable_reduction): Release
10373         vec_defs elements after safe_splicing them into other vectors.
10374         Formatting fixes.
10376         PR tree-optimization/79327
10377         * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
10378         true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
10379         dirtype.
10380         (format_integer): Use wide_int_to_tree instead of build_int_cst
10381         + to_?hwi.  If argmin is NULL, just set argmin and argmax to
10382         TYPE_{MIN,MAX}_VALUE of argtype.  Simplify and fix computation
10383         of shortest and longest sequence.
10385 2017-02-03  Uros Bizjak  <ubizjak@gmail.com>
10387         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
10388         Use pextrd for TARGET_SSE4_1 when creating scalar copy.
10390 2017-02-03  Walter Lee  <walt@tilera.com>
10392         PR target/78862
10393         * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
10394         after initial stackframe link reg save.
10395         * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
10397 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
10399         PR target/79354
10400         * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
10401         wu for stxssp alternative.
10403 2017-02-03  Martin Sebor  <msebor@redhat.com>
10405         PR tree-optimization/79352
10406         * gimple-fold.c (get_range_strlen): Add argument.
10407         (get_range_strlen): Change return type to bool.
10408         (get_maxval_strlen): Pass in a dummy argument.
10409         * gimple-fold.h (get_range_strlen): Change return type to bool.
10410         * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
10411         * tree.h (array_at_struct_end_p): Add argument.
10412         * tree.c (array_at_struct_end_p): Handle it.
10414 2017-02-03  Martin Liska  <mliska@suse.cz>
10416         PR lto/66295
10417         * multiple_target.c (create_dispatcher_calls): Redirect edge
10418         from a caller of a dispatcher.
10419         (expand_target_clones): Make the clones local.
10420         (ipa_target_clone): Do both target clones and resolvers.
10421         (ipa_dispatcher_calls): Remove the pass.
10422         (pass_dispatcher_calls::gate): Likewise.
10423         (make_pass_dispatcher_calls): Likewise.
10424         * passes.def (pass_target_clone): Put as very first IPA early
10425         pass.
10427 2017-02-03  Martin Liska  <mliska@suse.cz>
10429         * symtab.c (symtab_node::binds_to_current_def_p): Bail out
10430         in case of a function with ifunc attribute.
10432 2017-02-03  Martin Liska  <mliska@suse.cz>
10434         * cgraph.c (cgraph_node::dump): Dump function version info.
10435         * symtab.c (symtab_node::dump_base): Add missing new line.
10437 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
10439         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
10440         (ifcombine_ifandif): Use it.
10442 2017-02-03  Martin Liska  <mliska@suse.cz>
10444         * doc/invoke.texi: Document default value for
10445         use-after-scope-direct-emission-threshold.
10447 2017-02-03  Martin Liska  <mliska@suse.cz>
10449         PR tree-optimization/79339
10450         * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
10451         (format_floating): Likewise.
10453 2017-02-03  Martin Liska  <mliska@suse.cz>
10455         PR ipa/79337
10456         * ipa-prop.c (ipa_node_params_t::insert): Remove current
10457         implementation.
10458         (ipa_node_params_t::remove): Likewise.
10459         * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
10460         initialization from removed ipa_node_params_t::insert.
10461         (ipa_node_params::~ipa_node_params): Move from removed
10462         ipa_node_params_t::release.
10463         * symbol-summary.h (symbol_summary::m_released): New member.
10464         Do not release a summary twice.  Do not allow to call finalizer
10465         for types of a summary that live in GGC memory.
10467 2017-02-02  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
10469         * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
10470         cmp_branch fusion.
10472 2017-02-02  Martin Sebor  <msebor@redhat.com>
10474         PR middle-end/79275
10475         * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
10476         (format_string): Tighten up the range of output for non-constant
10477         strings and correct the expected range for wide non-constant strings.
10479 2017-02-02  Martin Sebor  <msebor@redhat.com>
10481         * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
10483         PR middle-end/32003
10484         * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
10485         index.
10486         (-fdump-tree-@var): Add to index and document how to come up
10487         with pass-specific option and dump file names.
10488         (-fdump-passes): Clarify where to look for output.
10490 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
10492         PR middle-end/77445
10493         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
10494         statistics of the analyzed path; allow threading for speed when
10495         any of BBs along the path are optimized for speed.
10497 2017-02-02  Eric Botcazou  <ebotcazou@adacore.com>
10499         PR middle-end/78468
10500         * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
10501         settings of the virtual registers.
10503         Revert again
10504         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10506         * explow.c (get_dynamic_stack_size): Take known alignment of stack
10507         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
10508         needed.
10510 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10512         * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
10513         ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
10515 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10517         * config/s390/s390.md: Add missing comments with the expanded
10518         mnemonics.
10519         * config/s390/vector.md: Likewise.
10520         * config/s390/vx-builtins.md: Likewise.
10522 2017-02-02  Jakub Jelinek  <jakub@redhat.com>
10524         PR target/79197
10525         * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
10526         (fixuns_trunc<mode>di2): ... this, remove previous expander.  Put all
10527         conditions on a single line.
10529 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10531         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
10532         __S390_VX__ to __VX__.
10534 2017-02-01  Andrew Pinski  <apinski@cavium.com>
10536         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
10537         stmt_info to record_stmt_cost.
10538         (vect_get_known_peeling_cost): Pass stmt_info if known to
10539         record_stmt_cost.
10540         * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
10541         cpu_vector_cost field into
10542         scalar_int_stmt_cost and scalar_fp_stmt_cost.  Split vec_stmt_cost
10543         field into vec_int_stmt_cost and vec_fp_stmt_cost.
10544         * config/aarch64/aarch64.c (generic_vector_cost): Update for the
10545         splitting of scalar_stmt_cost and vec_stmt_cost.
10546         (thunderx_vector_cost): Likewise.
10547         (cortexa57_vector_cost): LIkewise.
10548         (exynosm1_vector_cost): Likewise.
10549         (xgene1_vector_cost): Likewise.
10550         (thunderx2t99_vector_cost): Improve after the splitting of the two
10551         fields.
10552         (aarch64_builtin_vectorization_cost): Update for the splitting of
10553         scalar_stmt_cost and vec_stmt_cost.
10555 2017-02-01  Torvald Riegel  <triegel@redhat.com>
10556             Richard Henderson  <rth@redhat.com>
10558         * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
10559         conditional on existance of a fast atomic load.
10560         * optabs-query.c (can_atomic_load_p): New function.
10561         * optabs-query.h (can_atomic_load_p): Declare it.
10562         * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
10563         no fast atomic load is available for the particular size of access.
10564         (expand_atomic_compare_and_swap): Likewise.
10565         (expand_atomic_load): Likewise.
10566         (expand_atomic_store): Likewise.
10567         (expand_atomic_fetch_op): Likewise.
10568         * testsuite/lib/target-supports.exp
10569         (check_effective_target_sync_int_128): Remove x86 because it provides
10570         no fast atomic load.
10571         (check_effective_target_sync_int_128_runtime): Likewise.
10573 2017-02-01  Richard Biener  <rguenther@suse.de>
10575         * graphite.c: Include tree-vectorizer.h for find_loop_location.
10576         (graphite_transform_loops): Provide opt-info for optimized nests.
10577         * tree-parloop.c (parallelize_loops): Provide opt-info for
10578         parallelized loops.
10580 2017-02-01  Richard Biener  <rguenther@suse.de>
10582         PR middle-end/79315
10583         * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
10584         was not set before.
10586 2017-02-01  Richard Biener  <rguenther@suse.de>
10588         PR tree-optimization/71824
10589         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
10590         Verify the loops are valid in the merged SESE region.
10591         (scop_detection::can_represent_loop_1): Check analyzing the
10592         evolution of the number of iterations in the region succeeds.
10594 2017-01-31  Ian Lance Taylor  <iant@golang.org>
10596         * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
10597         REG_ARGS_SIZE note to 32-bit push insns and call insn.
10599 2017-01-31  David Malcolm  <dmalcolm@redhat.com>
10601         PR preprocessor/79210
10602         * input.c (get_substring_ranges_for_loc): Replace line_width
10603         assertion with error-handling.
10605 2017-01-31  Richard Biener  <rguenther@suse.de>
10607         PR tree-optimization/77318
10608         * graphite-sese-to-poly.c (extract_affine): Fix assert.
10609         (create_pw_aff_from_tree): Take loop parameter.
10610         (add_condition_to_pbb): Pass loop of the condition to
10611         create_pw_aff_from_tree.
10613 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
10615         * config/s390/s390.c (s390_asan_shadow_offset): New function.
10616         (TARGET_ASAN_SHADOW_OFFSET): Redefine.
10618 2017-01-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
10620         PR target/78597
10621         PR target/79038
10622         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
10623         no longer used.
10624         (convert_int_to_float128): Likewise.
10625         * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
10626         (convert_int_to_float128): Likewise.
10627         * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
10628         (UNSPEC_IEEE128_CONVERT): Likewise.
10629         (floatsi<mode>2, FLOAT128 iterator): Bypass calling
10630         rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
10631         Use local variables for IBM extended format.
10632         (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
10633         (fix_trunc<mode>si2_fprs): Likewise.
10634         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
10635         (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
10636         (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
10637         to know that we can now have integers of all sizes in vector
10638         registers.
10639         (fix<uns>_<mode>di2_hw): Likewise.
10640         (float<uns>_<mode>si2_hw): Likewise.
10641         (fix_<mode>si2_hw): Likewise.
10642         (fixuns_<mode>si2_hw): Likewise.
10643         (float<uns>_<mode>di2_hw): Likewise.
10644         (float_<mode>di2_hw): Likewise.
10645         (float_<mode>si2_hw): Likewise.
10646         (floatuns_<mode>di2_hw): Likewise.
10647         (floatuns_<mode>si2_hw): Likewise.
10648         (xscvqp<su>wz_<mode>): Delete, no longer used.
10649         (xscvqp<su>dz_<mode>): Likewise.
10650         (xscv<su>dqp_<mode>): Likewise.
10651         (ieee128_mfvsrd_64bit): Likewise.
10652         (ieee128_mfvsrd_32bit): Likewise.
10653         (ieee128_mfvsrwz): Likewise.
10654         (ieee128_mtvsrw): Likewise.
10655         (ieee128_mtvsrd_64bit): Likewise.
10656         (ieee128_mtvsrd_32bit): Likewise.
10658 2017-01-31  Martin Liska  <mliska@suse.cz>
10660         PR ipa/79285
10661         * ipa-prop.c (ipa_free_all_node_params): Call release method
10662         instead of ~sumbol_summary to not to trigger double times
10663         dtor of hash_map.
10665 2017-01-31  Aldy Hernandez  <aldyh@redhat.com>
10667         PR tree-optimization/71691
10668         * bitmap.h (class auto_bitmap): New.
10669         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
10670         is_maybe_undefined instead of ssa_undefined_value_p.
10672 2017-01-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10674         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
10675         __S390_ARCH_LEVEL__ to __ARCH__.
10677 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
10679         PR tree-optimization/79267
10680         * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
10681         if should_remove_lhs_p is true.
10683 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
10685         PR debug/63238
10686         * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
10687         (add_alignment_attribute): New.
10688         (base_type_die): Add alignment attribute.
10689         (subrange_type_die): Likewise.
10690         (modified_type_die): Likewise.
10691         (gen_array_type_die): Likewise.
10692         (gen_descr_array_type_die: Likewise.
10693         (gen_enumeration_type_die): Likewise.
10694         (gen_subprogram_die): Likewise.
10695         (gen_variable_die): Likewise.
10696         (gen_field_die): Likewise.
10697         (gen_ptr_to_mbr_type_die): Likewise.
10698         (gen_struct_or_union_type_die): Likewise.
10699         (gen_subroutine_type_die): Likewise.
10700         (gen_typedef_die): Likewise.
10701         (base_type_cmp): Compare alignment attribute.
10703 2017-01-30  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
10705         PR target/79170
10706         * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
10707         (setb_unsigned) New pattern for setb with CCUNS.
10708         * config/rs6000/rs6000.c (expand_block_compare): Use a different
10709         subfc./subfe sequence to avoid overflow problems.  Generate a
10710         shorter sequence with cmpld/setb for power9.
10711         * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
10712         for generating subfc. instruction.
10713         (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
10714         now uses this instruction.
10716 2017-01-30  Ian Lance Taylor  <iant@google.com>
10718         PR debug/79289
10719         * dwarf2out.c (gen_type_die_with_usage): When picking a variant
10720         for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
10722 2017-01-30  Martin Sebor  <msebor@redhat.com>
10724         * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
10725         Move constant to the right of a relational operator.
10726         (get_mpfr_format_length, format_character, format_string): Ditto.
10727         (should_warn_p, maybe_warn): Same.
10729         * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
10731 2017-01-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
10733         PR lto/79061
10734         * asan.c (get_translation_unit_decl): Remove function.
10735         (asan_add_global): Force has_dynamic_init to zero in LTO mode.
10737 2017-01-30  Martin Liska  <mliska@suse.cz>
10739         PR gcov-profile/79259
10740         * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
10741         -fprofile-generate.
10743 2017-01-30  Martin Liska  <mliska@suse.cz>
10745         PR bootstrap/78985
10746         * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
10747         Initialize variables with NULL value.
10749 2017-01-30  Richard Earnshaw  <rearnsh@arm.com>
10751         PR target/79260
10752         * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
10753         tm_p_file.
10754         * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
10756 2017-01-30  Richard Biener  <rguenther@suse.de>
10758         PR tree-optimization/79276
10759         * tree-vrp.c (process_assert_insertions): Properly adjust common
10760         when removing a duplicate.
10762         * gcc.dg/torture/pr79276.c: New testcase.
10764 2017-01-30  Richard Biener  <rguenther@suse.de>
10766         PR tree-optimization/79256
10767         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
10768         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
10769         alignment on TYPE.
10770         * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
10772 2017-01-30  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10774         PR target/79240
10775         * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
10776         ("*r<noxa>sbg_<mode>_sll_bitmask")
10777         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
10778         ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
10779         Use contiguous_bitmask_nowrap_operand.
10781 2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10783         PR target/79268
10784         * config/rs6000/altivec.h (vec_xl): Revise #define.
10785         (vec_xst): Likewise.
10787 2017-01-27  Uros Bizjak  <ubizjak@gmail.com>
10789         * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
10791 2017-01-27  Bernd Schmidt  <bschmidt@redhat.com>
10793         PR rtl-optimization/79194
10794         * cprop.c (one_cprop_pass): Move deletion of code after unconditional
10795         traps before call to bypass_conditional_jumps.
10797 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
10799         PR tree-optimization/71374
10800         * lra-constraints.c (check_conflict_input_operands): New.
10801         (match_reload): Use it.
10803 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
10805         PR target/79131
10806         * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
10807         account to calculate conflict_set.
10809 2017-01-27  Bin Cheng  <bin.cheng@arm.com>
10811         PR rtl-optimization/78559
10812         * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
10813         other_insn in combine.
10815 2017-01-27  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
10817         * builtin-types.def: Use unsigned_char_type_node for BT_UINT8.  Use
10818         uint16_type_node for BT_UINT16.
10820 2017-01-27  David Malcolm  <dmalcolm@redhat.com>
10822         * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
10823         "RTL Tests" to menu.
10824         (GIMPLE Tests): New node.
10825         (RTL Tests): New node.
10827 2017-01-27  Richard Biener  <rguenther@suse.de>
10829         PR tree-optimization/79245
10830         * tree-loop-distribution.c (distribute_loop): Apply cost
10831         modeling also to detected patterns.
10833 2017-01-27  Richard Biener  <rguenther@suse.de>
10835         PR tree-optimization/71433
10836         * tree-vrp.c (register_new_assert_for): Revert earlier changes.
10837         (compare_assert_loc): New function.
10838         (process_assert_insertions): Sort and optimize assert locations
10839         to remove duplicates and push down identical assertions on
10840         edges to their destination block.
10842 2017-01-27  Richard Biener  <rguenther@suse.de>
10844         PR tree-optimization/79244
10845         * tree-vrp.c (remove_range_assertions): Forcefully propagate
10846         out SSA names even if abnormal.
10848 2017-01-27  Jakub Jelinek  <jakub@redhat.com>
10850         * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
10851         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
10852         instead of MPFR_RNDN.
10854 2017-01-27  Richard Earnshaw  <rearnsha@arm.com>
10856         PR target/79239
10857         * arm.c (arm_option_override): Don't call build_target_option_node
10858         until after doing all option overrides.
10859         (arm_valid_target_attribute_tree): Likewise.
10861 2017-01-27  Martin Liska  <mliska@suse.cz>
10863         * doc/invoke.texi (-fprofile-arcs): Document profiling support
10864         for {cd}tors and C++ {cd}tors.
10866 2017-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10868         * config/s390/s390.md ("*setmem_long_and")
10869         ("*setmem_long_and_31z"): Use zero_extend instead of and.
10871 2017-01-26  Martin Sebor  <msebor@redhat.com>
10873         * gimple-ssa-sprintf.c (format_floating): Simplify the computation
10874         of precision.
10876 2017-01-26  Martin Sebor  <msebor@redhat.com>
10878         * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
10879         HAVE_DFmode before using XFmode or DFmode.
10880         (parse_directive): Avoid using the z length modifier to avoid
10881         the ISO C++98 does not support the â€˜z’ gnu_printf length modifier.
10883         PR middle-end/78703
10884         * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
10885         to accept adjustment as an array.
10886         (get_int_range): New function.
10887         (struct directive): Make width and prec arrays.
10888         (directive::set_width, directive::set_precision): Call get_int_range.
10889         (format_integer, format_floating): Handle width and precision ranges.
10890         (format_string, parse_directive): Same.
10892 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
10894         PR debug/79129
10895         * dwarf2out.c (generate_skeleton_bottom_up): For children with
10896         comdat_type_p set, just clone them, but keep the children in the
10897         original DIE.
10899         PR debug/78835
10900         * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
10901         which have direct callers with -fvar-tracking-assignments enabled
10902         in the current TU.
10903         (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
10904         inside of type units.
10906 2017-01-26  Martin Sebor  <msebor@redhat.com>
10908         PR middle-end/78703
10909         * gimple-ssa-sprintf.c (struct result_range): Add likely and
10910         unlikely counters.
10911         (struct format_result): Replace number_chars, number_chars_min,
10912         and number_chars_max with a single member of struct result_range.
10913         Remove bounded.
10914         (format_result::operator+=): Adjust.
10915         (struct fmtresult): Remove bounded.  Handle likely and unlikely
10916         counters.
10917         (fmtresult::adjust_for_width_or_precision): New function.
10918         (fmtresult:type_max_digits): New function.
10919         (bytes_remaining): Handle likely and unlikely counters.
10920         (min_bytes_remaining): Remove.
10921         (format_percent): Simplify.
10922         (format_integer, format_floating): Set likely and unlikely counters.
10923         (get_string_length, format_character, format_string): Same.
10924         (format_plain, should_warn_p): New function.
10925         (maybe_warn): Call should_warn_p.  Update diagnostic messages
10926         and handle those for all directives, including plain strings.
10927         (format_directive): Handle likely and unlikely counters.
10928         Remove unnecessary quoting from diagnostics.  Add an informational
10929         note.
10930         (add_bytes): Remove.
10931         (pass_sprintf_length::compute_format_length): Simplify.
10932         (try_substitute_return_value): Handle likely and unlikely counters.
10934 2017-01-26  Carl Love  <cel@us.ibm.com>
10936         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
10937         bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
10939 2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>
10941         PR target/79131
10942         * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
10943         endianess for subregs into account.
10944         * lra-constraints.c (lra_constraints): Do risky transformations
10945         always on the first iteration.
10946         * lra-lives.c (check_pseudos_live_through_calls): Add arg
10947         last_call_used_reg_set.
10948         (process_bb_lives): Define and use last_call_used_reg_set.
10949         * lra.c (lra): Always continue after lra_constraints on the first
10950         iteration.
10952 2017-01-26  Kirill Yukhin  <kirill.yukhin@gmail.com>
10954         * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
10955         constant.
10956         * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
10958 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
10960         * config/i386/avx512fintrin.h (_ktest_mask16_u8,
10961         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
10962         * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
10963         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
10964         * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
10965         __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
10966         OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
10967         * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
10968         (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
10970 2017-01-26  Marek Polacek  <polacek@redhat.com>
10972         PR c/79199
10973         * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
10974         for the third operand.
10976 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
10978         PR middle-end/79236
10979         * omp-low.c (struct omp_context): Add simt_stmt field.
10980         (scan_omp_for): Return omp_context *.
10981         (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
10982         context to the _simt_ SIMD stmt.
10983         (lower_omp_for): For combined SIMD with sibling _simt_
10984         SIMD, make sure to use the same decls in _looptemp_
10985         clauses as in the sibling.
10987 2017-01-26  David Sherwood  <david.sherwood@arm.com>
10989         PR middle-end/79212
10990         * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
10991         all contexts.
10993 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
10995         PR target/70465
10996         * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
10997         emit fld b; fld a; if possible.
10999         * brig-builtins.def: Update copyright years.
11000         * config/arm/arm_acle_builtins.def: Update copyright years.
11002 2017-01-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
11004         PR target/79179
11005         * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
11006         constraint instead of o for the stxsd instruction.
11008 2017-01-25  Carl Love  <cel@us.ibm.com>
11010         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
11011         of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
11013 2017-01-25  Jonathan Wakely  <jwakely@redhat.com>
11015         * doc/invoke.texi (C++ Dialect Options): Fix typo.
11017 2017-01-25  Richard Biener  <rguenther@suse.de>
11019         PR tree-optimization/69264
11020         * target.def (vector_alignment_reachable): Improve documentation.
11021         * doc/tm.texi: Regenerate.
11022         * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
11023         and add a comment.
11024         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
11025         earlier changes with respect to TYPE_USER_ALIGN.
11026         (vector_alignment_reachable_p): Likewise.  Improve dumping.
11028 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11030         PR target/79145
11031         * config/arm/arm.md (xordi3): Force constant operand into a register
11032         for TARGET_IWMMXT.
11034 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11036         * doc/invoke.texi (-fstore-merging): Correct default optimization
11037         levels at which it is enabled.
11038         (-O): Move -fstore-merging from list to...
11039         (-O2): ... Here.
11041 2017-01-25  Richard Biener  <rguenther@suse.de>
11043         PR debug/78363
11044         * omp-expand.c: Include debug.h.
11045         (expand_omp_taskreg): Make sure to generate early debug before
11046         outlining anything from a function.
11047         (expand_omp_target): Likewise.
11048         (grid_expand_target_grid_body): Likewise.
11050 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
11052         PR lto/79061
11053         * asan.c (get_translation_unit_decl): New function.
11054         (asan_add_global): Extract modules file name from globals
11055         TRANSLATION_UNIT_DECL name.
11057 2017-01-24  Eric Botcazou  <ebotcazou@adacore.com>
11059         PR target/77439
11060         * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
11061         for long calls with APCS frame and VFP.
11063 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
11065         * cfg.c (original_copy_tables_initialized_p): New function.
11066         * cfg.h (original_copy_tables_initialized_p): New decl.
11067         * cfgrtl.c (relink_block_chain): Guard the call to
11068         free_original_copy_tables with a call to
11069         original_copy_tables_initialized_p.
11070         * cgraph.h (symtab_node::native_rtl_p): New decl.
11071         * cgraphunit.c (symtab_node::native_rtl_p): New function.
11072         (symtab_node::needed_p): Don't assert for early assembly output
11073         for __RTL functions.
11074         (cgraph_node::finalize_function): Set "force_output" for __RTL
11075         functions.
11076         (cgraph_node::analyze): Bail out early for __RTL functions.
11077         (analyze_functions): Update assertion to support __RTL functions.
11078         (cgraph_node::expand): Bail out early for __RTL functions.
11079         * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
11080         __RTL functions.
11081         * function.h (struct function): Update comment for field
11082         "pass_startwith".
11083         * gimple-expr.c: Include "tree-pass.h".
11084         (gimple_has_body_p): Return false for __RTL functions.
11085         * Makefile.in (OBJS): Add run-rtl-passes.o.
11086         * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
11087         accessor.
11088         (gcc::pass_manager::get_clean_slate): New accessor.
11089         * passes.c: Include "insn-addr.h".
11090         (should_skip_pass_p): Add logging.  Update logic for running
11091         "expand" to be compatible with both __GIMPLE and __RTL.  Guard
11092         property-provider override so it is only done for gimple passes.
11093         Don't skip dfinit.
11094         (skip_pass): New function.
11095         (execute_one_pass): Call skip_pass when skipping passes.
11096         * read-md.c (md_reader::read_char): Support filtering
11097         the input to a subset of line numbers.
11098         (md_reader::md_reader): Initialize fields
11099         m_first_line and m_last_line.
11100         (md_reader::read_file_fragment): New function.
11101         * read-md.h (md_reader::read_file_fragment): New decl.
11102         (md_reader::m_first_line): New field.
11103         (md_reader::m_last_line): New field.
11104         * read-rtl-function.c (function_reader::create_function): Only
11105         create cfun if it doesn't already exist.  Set PROP_rtl on cfun's
11106         curr_properties.  Set DECL_INITIAL to a dummy block.
11107         (read_rtl_function_body_from_file_range): New function.
11108         * read-rtl-function.h (read_rtl_function_body_from_file_range):
11109         New decl.
11110         * run-rtl-passes.c: New file.
11111         * run-rtl-passes.h: New file.
11113 2017-01-24  Jeff Law  <law@redhat.com>
11115         * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
11116         buffer size.
11118 2017-01-24  Bin Cheng  <bin.cheng@arm.com>
11120         PR tree-optimization/79159
11121         * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
11122         (record_nonwrapping_iv): Improve boundary using above function if no
11123         value range information.
11125 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
11126             Martin Jambor  <mjambor@suse.cz>
11128         * brig-builtins.def: New file.
11129         * builtins.def (DEF_HSAIL_BUILTIN): New macro.
11130         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
11131         (DEF_HSAIL_SAT_BUILTIN): Likewise.
11132         (DEF_HSAIL_INTR_BUILTIN): Likewise.
11133         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
11134         * builtin-types.def (BT_INT8): New.
11135         (BT_INT16): Likewise.
11136         (BT_UINT8): Likewise.
11137         (BT_UINT16): Likewise.
11138         (BT_FN_ULONG): Likewise.
11139         (BT_FN_UINT_INT): Likewise.
11140         (BT_FN_UINT_ULONG): Likewise.
11141         (BT_FN_UINT_LONG): Likewise.
11142         (BT_FN_UINT_PTR): Likewise.
11143         (BT_FN_ULONG_PTR): Likewise.
11144         (BT_FN_INT8_FLOAT): Likewise.
11145         (BT_FN_INT16_FLOAT): Likewise.
11146         (BT_FN_UINT32_FLOAT): Likewise.
11147         (BT_FN_UINT16_FLOAT): Likewise.
11148         (BT_FN_UINT8_FLOAT): Likewise.
11149         (BT_FN_UINT64_FLOAT): Likewise.
11150         (BT_FN_UINT16_UINT32): Likewise.
11151         (BT_FN_UINT32_UINT16): Likewise.
11152         (BT_FN_UINT16_UINT16_UINT16): Likewise.
11153         (BT_FN_INT_PTR_INT): Likewise.
11154         (BT_FN_UINT_PTR_UINT): Likewise.
11155         (BT_FN_LONG_PTR_LONG): Likewise.
11156         (BT_FN_ULONG_PTR_ULONG): Likewise.
11157         (BT_FN_VOID_UINT64_UINT64): Likewise.
11158         (BT_FN_UINT8_UINT8_UINT8): Likewise.
11159         (BT_FN_INT8_INT8_INT8): Likewise.
11160         (BT_FN_INT16_INT16_INT16): Likewise.
11161         (BT_FN_INT_INT_INT): Likewise.
11162         (BT_FN_UINT_FLOAT_UINT): Likewise.
11163         (BT_FN_FLOAT_UINT_UINT): Likewise.
11164         (BT_FN_ULONG_UINT_UINT): Likewise.
11165         (BT_FN_ULONG_UINT_PTR): Likewise.
11166         (BT_FN_ULONG_ULONG_ULONG): Likewise.
11167         (BT_FN_UINT_UINT_UINT): Likewise.
11168         (BT_FN_VOID_UINT_PTR): Likewise.
11169         (BT_FN_UINT_UINT_PTR: Likewise.
11170         (BT_FN_UINT32_UINT64_PTR): Likewise.
11171         (BT_FN_INT_INT_UINT_UINT): Likewise.
11172         (BT_FN_UINT_UINT_UINT_UINT): Likewise.
11173         (BT_FN_UINT_UINT_UINT_PTR): Likewise.
11174         (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
11175         (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
11176         (BT_FN_LONG_LONG_UINT_UINT): Likewise.
11177         (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
11178         (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
11179         (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
11180         (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
11181         (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
11182         (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
11183         * doc/frontends.texi: List BRIG FE.
11184         * doc/install.texi (Testing): Add BRIG tesring requirements.
11185         * doc/invoke.texi (Overall Options): Mention BRIG.
11186         * doc/standards.texi (Standards): Doucment BRIG HSA version.
11188 2017-01-24  Richard Biener  <rguenther@suse.de>
11190         PR translation/79208
11191         * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
11193 2017-01-24  Martin Jambor  <mjambor@suse.cz>
11195         PR bootstrap/79198
11196         * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
11197         * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
11198         and known_contexts.
11200 2017-01-24  Aldy Hernandez  <aldyh@redhat.com>
11202         PR middle-end/79123
11203         * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
11204         casts from signed to unsigned really don't have a range.
11206 2017-01-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
11208         * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
11209         GMP_RNDx for compatiblity.
11211 2017-01-24  Martin Liska  <mliska@suse.cz>
11213         PR bootstrap/79132
11214         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
11215         that would prevent us to call alloca with -1 as argument.
11217 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
11219         * dwarf2out.c (output_compilation_unit_header, output_file_names):
11220         Avoid -Wformat-security warning.
11222 2017-01-23  Andrew Pinski  <apinski@cavium.com>
11224         * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
11225         cost table.
11227 2017-01-23  Martin Sebor  <msebor@redhat.com>
11229         PR middle-end/78703
11230         * gimple-ssa-sprintf.c (warn_level): New global.
11231         (format_integer): Use it here and throughout the rest of the file.
11232         Use the same switch to compute sign as base.
11233         (maybe_warn): New function.
11234         (format_directive): Factor out warnings into maybe_warn.
11235         Add debugging output.  Use warn_level.
11236         (add_bytes): Use warn_level.
11237         (pass_sprintf_length::compute_format_length): Add debugging output.
11238         (try_substitute_return_value): Same.
11239         (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
11241         PR middle-end/78703
11242         * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
11243         (struct fmtresult, format_integer, format_floating): Adjust.
11244         (fmtresult::fmtresult): Set max correctly in two argument ctor.
11245         (get_string_length, format_string,format_directive): Same.
11246         (pass_sprintf_length::compute_format_length): Same.
11247         (try_substitute_return_value): Simplify slightly.
11249         PR middle-end/78703
11250         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
11251         (fmtresult::operator+=): Outlined.
11252         (struct fmtresult): Add ctors.
11253         (struct conversion_spec): Rename...
11254         (struct directive): ...to this.  Add and remove data members.
11255         (directive::set_width, directive::set_precision): New functions.
11256         (format_percent): Use fmtresult ctor.
11257         (get_width_and_precision): Remove.
11258         (format_integer): Make naming changes.  Avoid computing width and
11259         precision.
11260         (format_floating): Same.  Adjust indentation.
11261         (format_character, format_none): New functions.
11262         (format_string): Moved character handling to format_character.
11263         (format_directive): Remove arguments, change return type.
11264         (parse_directive): New function.
11265         (pass_sprintf_length::compute_format_length): Move directive
11266         parsing to parse_directive.
11268 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
11270         * tree.h (assign_assembler_name_if_neeeded): Rename to ...
11271         (assign_assembler_name_if_needed): ... this.
11272         * tree.c (assign_assembler_name_if_neeeded): Rename to ...
11273         (assign_assembler_name_if_needed): ... this.
11274         (free_lang_data_in_cgraph): Adjust callers.
11275         * cgraphunit.c (cgraph_node::analyze): Likewise.
11276         * omp-expand.c (expand_omp_taskreg, expand_omp_target):
11277         Likewise.
11279 2017-01-23  Richard Biener  <rguenther@suse.de>
11281         PR tree-optimization/79088
11282         PR tree-optimization/79188
11283         * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
11284         resetting loop bounds after last path deletion.  Reset loop
11285         bounds of the target loop, make code match the comments.
11286         * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
11287         Make sure loops need no fixups.
11289 2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
11291         * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
11292         exponent support with double type for first argument.
11293         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
11294         type returned by __builtin_vec_extract_sig,
11295         __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
11296         functions from "vector int" to "vector unsigned int" or from
11297         "vector long long int" to "vector unsigned long long int".
11298         Changed type returned by __builtin_vec_extract_exp,
11299         __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
11300         functions from "vector int" to "vector unsigned int" or from
11301         "vector long long int" to "vector unsigned long long int".
11302         Changed return type of __builtin_vec_test_data_class,
11303         __builtin_vec_test_data_class_sp, and
11304         __builtin_vec_test_data_class_dp from "vector int" to
11305         "vector bool int" or from "vector long long int" to "vector bool
11306         long long int" and changed second argument type from "unsigned
11307         int" to "int".  Added new overloaded function forms "vector float
11308         __builtin_vec_insert_exp (vector float, vector unsigned int)" and
11309         "vector float __builtin_vec_insert_exp_sp (vector float, vector
11310         unsigned int)" and "vector double __builtin_vec_insert_exp (vector
11311         double, vector unsigned long long int)" and "vector double
11312         __builtin_vec_insert_exp_dp (vector double, vector unsigned long
11313         long int)".  Changed return type of
11314         __builtin_scalar_test_data_class and
11315         __builtin_scalar_test_data_class_sp and
11316         __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
11317         int" and changed second argument from "unsigned int" to "int".
11318         Changed type returned by __builtin_scalar_test_neg,
11319         __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
11320         from "int" to "bool int".  Added new overloaded function form
11321         "double __builtin_scalar_insert_exp (double, unsigned long long int)".
11322         * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
11323         exponent double-precision with floating point first argument.
11324         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
11325         documentation of scalar_test_data_class, scalar_test_neg,
11326         scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
11327         vector_extract_exp, vec_extract_sig, vec_insert_exp, and
11328         vec_test_data_class built-in functions to reflect refinements in
11329         their type signatures.
11331 2017-01-23  Andreas Tobler  <andreast@gcc.gnu.org>
11333         * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
11334         size of buf.
11335         (aarch64_elf_asm_destructor): Likewise.
11337 2017-01-23  Bernd Schmidt  <bschmidt@redhat.com>
11339         PR rtl-optimization/78634
11340         * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
11341         (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
11342         * ifcvt.c (noce_try_cmove): Add missing cost check.
11344         PR rtl-optimization/71724
11345         * combine.c (if_then_else_cond): Look for situations where it is
11346         beneficial to undo the work of one of the recursive calls.
11348 2017-01-23  Bin Cheng  <bin.cheng@arm.com>
11350         PR tree-optimization/70754
11351         * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
11352         (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE.  Insert
11353         combined stmt before it if not NULL.
11354         (combine_chains): Process refs reversely and compute dominance point
11355         for root ref.
11357 2017-01-23  Martin Liska  <mliska@suse.cz>
11359         PR tree-optimization/79196
11360         * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
11361         (fold_strstr_to_strncmp): ... this.  Fold the pattern to strncmp
11362         instead of memcmp.
11363         (strlen_optimize_stmt): Call the renamed function.
11365 2017-01-23  Michael Matz  <matz@suse.de>
11367         PR tree-optimization/78384
11368         * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
11370 2017-01-23  Richard Biener  <rguenther@suse.de>
11372         PR tree-optimization/79186
11373         * tree-vrp.c (register_new_assert_for): Make sure we've seen
11374         both incoming edges before moving an assert.
11376 2017-01-23  Martin Jambor  <mjambor@suse.cz>
11378         * ipa-prop.c (load_from_param_1): Removed.
11379         (load_from_unmodified_param): Bits from load_from_param_1 put back
11380         here.
11381         (load_from_param): Removed.
11382         (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
11383         with stmt.  Reverted back to use of load_from_unmodified_param.
11385 2017-01-23  Martin Jambor  <mjambor@suse.cz>
11387         PR ipa/79108
11388         * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
11389         (ipa_node_params): Annotate with GTY((for_user)).  Make descriptors
11390         field a pointer to garbage collected vector, mark lattices and
11391         ipcp_orig_node with GTY((skip)).
11392         (ipa_get_param_count): Adjust to descriptors being a pointer.
11393         (ipa_get_param): Likewise.
11394         (ipa_get_type): Likewise.
11395         (ipa_get_param_move_cost): Likewise.
11396         (ipa_set_param_used): Likewise.
11397         (ipa_get_controlled_uses): Likewise.
11398         (ipa_set_controlled_uses): Likewise.
11399         (ipa_is_param_used): Likewise.
11400         (ipa_node_params_t): Move into garbage collector.  New methods insert
11401         and remove.
11402         (ipa_node_params_sum): Annotate wth GTY(()).
11403         (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
11404         garbage collected.
11405         (ipa_load_from_parm_agg): Adjust declaration.
11406         * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
11407         * ipa-profile.c (ipa_profile): Likewise.
11408         * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
11409         (ipa_populate_param_decls): Make descriptors parameter garbage
11410         collected.
11411         (ipa_dump_param): Adjust to descriptors being a pointer.
11412         (ipa_alloc_node_params): Likewise.
11413         (ipa_initialize_node_params): Likewise.
11414         (load_from_param_1): Make descriptors parameter garbage collected.
11415         (load_from_unmodified_param): Likewise.
11416         (load_from_param): Likewise.
11417         (ipa_load_from_parm_agg): Likewise.
11418         (ipa_node_params::~ipa_node_params): Removed.
11419         (ipa_free_all_node_params): Remove call to delete operator.
11420         (ipa_node_params_t::insert): New.
11421         (ipa_node_params_t::remove): Likewise.
11422         (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
11423         copy known_csts and known_contexts vectors.
11424         (ipa_read_node_info): Adjust to descriptors being a pointer.
11425         (ipcp_modif_dom_walker): Make m_descriptors field garbage
11426         collected.
11427         (ipcp_transform_function): Make descriptors variable garbage
11428         collected.
11430 2017-01-23  Andrew Senkevich  <andrew.senkevich@intel.com>
11432         * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
11433         * config/i386/avx512dqintrin.h: Ditto.
11434         * config/i386/avx512fintrin.h: Ditto.
11435         * gcc/config/i386/i386.c: Handle new builtins.
11436         * config/i386/i386-builtin.def: Add new builtins.
11437         * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
11438         (UNSPEC_KORTEST, UNSPEC_KTEST): New.
11440 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
11441             Martin Liska  <mliska@suse.cz>
11443         * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
11444         * asan.c (asan_expand_poison_ifn): Support stores and use
11445         appropriate ASAN report function.
11446         * internal-fn.c (expand_ASAN_POISON_USE): New function.
11447         * internal-fn.def (ASAN_POISON_USE): Declare.
11448         * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
11449         (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
11450         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
11451         ASAN_POISON calls w/o LHS.
11452         * tree-ssa.c (execute_update_addresses_taken): Create clobber
11453         for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
11454         from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
11455         * gimplify.c (asan_poison_variables): Add attribute
11456         use_after_scope_memory to variables that really needs to live
11457         in memory.
11458         * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
11459         having the attribute.
11461 2017-01-23  Martin Liska  <mliska@suse.cz>
11463         * asan.c (create_asan_shadow_var): New function.
11464         (asan_expand_poison_ifn): Likewise.
11465         * asan.h (asan_expand_poison_ifn): New declaration.
11466         * internal-fn.c (expand_ASAN_POISON): Likewise.
11467         * internal-fn.def (ASAN_POISON): New builtin.
11468         * sanopt.c (pass_sanopt::execute): Expand
11469         asan_expand_poison_ifn.
11470         * tree-inline.c (copy_decl_for_dup_finish): Make function
11471         external.
11472         * tree-inline.h (copy_decl_for_dup_finish): Likewise.
11473         * tree-ssa.c (is_asan_mark_p): New function.
11474         (execute_update_addresses_taken): Rewrite local variables
11475         (identified just by use-after-scope as addressable) into SSA.
11477 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
11479         * doc/install.texi (Specific): opensource.apple.com uses https
11480         now. Remove trailing slash.
11482 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
11484         * README.Portability: Remove note on an Irix compatibility issue.
11486 2017-01-22  Dimitry Andric <dim@FreeBSD.org>
11488         * gcov.c (INCLUDE_ALGORITHM): Define.
11489         (INCLUDE_VECTOR): Define.
11490         No longer include <vector> and <algorithm> directly.
11492 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
11494         * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
11495         to https.
11496         * doc/invoke.texi (Code Gen Options): Ditto.
11498 2017-01-21  Jan Hubicka  <hubicka@ucw.cz>
11500         PR lto/78407
11501         * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
11503 2017-01-21  Bernd Schmidt  <bschmidt@redhat.com>
11505         rtl-optimization/79125
11506         * cprop.c (local_cprop_pass): Handle cases where we make an
11507         unconditional trap.
11509 2017-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
11511         PR target/61729
11512         PR target/77850
11513         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
11514         read from, for big endian.
11516 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
11518         * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
11519         register pauth builtins for LP64 only.
11521 2017-01-20  Marek Polacek  <polacek@redhat.com>
11523         PR c/79152
11524         * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
11525         non-case labels.
11527 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
11529         * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
11530         of safelen status.
11531         * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
11532         * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
11533         * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
11535 2017-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11537         PR target/71270
11538         * config/arm/arm.c (neon_valid_immediate): Reject vector constants
11539         in big-endian mode when they are not a single duplicated value.
11541 2017-01-20  Richard Biener  <rguenther@suse.de>
11543         * BASE-VER: Bump to 7.0.1.
11545 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
11547         * omp-low.c (omplow_simd_context): New struct.  Use it...
11548         (lower_rec_simd_input_clauses): ...here and...
11549         (lower_rec_input_clauses): ...here to hold common data.  Adjust all
11550         references to idx, lane, max_vf, is_simt.
11552 2017-01-20  Graham Markall  <graham.markall@embecosm.com>
11554         * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
11555         mcpu=nps400.
11557 2017-01-20  Martin Jambor  <mjambor@suse.cz>
11559         * hsa.h: Renaed to hsa-common.h.  Adjusted a comment.
11560         * hsa.c: Renaed to hsa-common.c.  Change include of gt-hsa.h to
11561         gt-hsa-common.h.
11562         * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
11563         (GTFILES): Rename hsa.c to hsa-common.c.
11564         * hsa-brig.c: Change include of hsa.h to hsa-common.h.
11565         * hsa-dump.c: Likewise.
11566         * hsa-gen.c: Likewise.
11567         * hsa-regalloc.c: Likewise.
11568         * ipa-hsa.c: Likewise.
11569         * omp-expand.c: Likewise.
11570         * omp-low.c: Likewise.
11571         * toplev.c: Likewise.
11573 2017-01-20  Marek Polacek  <polacek@redhat.com>
11575         PR c/64279
11576         * doc/invoke.texi: Document -Wduplicated-branches.
11577         * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
11578         COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
11579         POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
11580         STATEMENT_LIST, and RETURN_EXPR.  For non-pure non-const functions
11581         return 0 only when not OEP_LEXICOGRAPHIC.
11582         (fold_build_cleanup_point_expr): Use the expression
11583         location when building CLEANUP_POINT_EXPR.
11584         * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
11585         * tree.c (add_expr): Handle error_mark_node.
11587 2017-01-20  Martin Liska  <mliska@suse.cz>
11589         PR lto/69188
11590         * tree-profile.c (init_ic_make_global_vars): Do not call
11591         finalize_decl.
11592         (gimple_init_gcov_profiler): Likewise.
11594 2017-01-20  Martin Liska  <mliska@suse.cz>
11596         PR ipa/71190
11597         * cgraph.h (maybe_create_reference): Remove argument and
11598         update comment.
11599         * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
11600         argument.
11601         * ipa-cp.c (create_specialized_node): Likewise.
11602         * symtab.c (symtab_node::maybe_create_reference): Handle
11603         VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
11605 2017-01-20  Martin Liska  <mliska@suse.cz>
11607         * read-rtl-function.c (function_reader::create_function): Use
11608         build_decl instread of build_decl_stat.
11610 2017-01-20  Andrew Senkevich  <andrew.senkevich@intel.com>
11612         * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
11613         * config/i386/avx512dqintrin.h: Ditto.
11614         * config/i386/avx512fintrin.h: Ditto.
11615         * config/i386/i386-builtin-types.def: Add new types.
11616         * gcc/config/i386/i386.c: Handle new types.
11617         * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
11618         (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
11619         (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
11620         (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
11621         (__builtin_ia32_kshiftridi): New.
11622         * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
11624 2017-01-19  Segher Boessenkool  <segher@kernel.crashing.org>
11626         PR target/78875
11627         PR target/79140
11628         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
11629         define to rs6000_init_stack_protect_guard.
11630         (rs6000_init_stack_protect_guard): New function.
11632 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
11633             Yunqiang Su  <yunqiang.su@imgtec.com>
11635         * config.gcc (supported_defaults): Add madd4.
11636         (with_madd4): Add validation.
11637         (all_defaults): Add madd4.
11638         * config/mips/mips.opt (mmadd4): New option.
11639         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
11640         mmadd4.
11641         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
11642         __mips_no_madd4.
11643         (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
11644         (ISA_HAS_FUSED_MADD4): Likewise.
11645         * gcc/doc/invoke.texi (-mmadd4): Document the new option.
11646         * gcc/doc/install.texi (--with-madd4): Document the new option.
11648 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
11650         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
11651         entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
11652         AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
11653         (aarch64_init_pauth_hint_builtins): New.
11654         (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
11655         (aarch64_expand_builtin): Expand new builtins.
11657 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
11659         * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
11660         * combine-stack-adj.c (no_unhandled_cfa): Handle
11661         REG_CFA_TOGGLE_RA_MANGLE.
11662         * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
11663         * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
11664         info for return address signing.
11665         (aarch64_expand_epilogue): Likewise.
11667 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
11669         * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
11670         * config/aarch64/aarch64-protos.h
11671         (aarch64_return_address_signing_enabled): New declaration.
11672         * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
11673         New function.
11674         (aarch64_expand_prologue): Sign return address before it's pushed onto
11675         stack.
11676         (aarch64_expand_epilogue): Authenticate return address fetched from
11677         stack.
11678         (aarch64_override_options): Sanity check for ILP32 and ISA level.
11679         (aarch64_attributes): New function attributes for "sign-return-address".
11680         * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
11681         UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
11682         ("*do_return"): Generate combined instructions according to key index.
11683         ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
11684         * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
11685         iterators.
11686         (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
11687         * config/aarch64/aarch64.opt (msign-return-address=): New.
11688         * doc/extend.texi (AArch64 Function Attributes): Documents
11689         "sign-return-address=".
11690         * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
11692 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
11694         * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
11695         overall option summary.
11697 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
11699         * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
11700         * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
11701         AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
11702         * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
11704 2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
11706         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
11707         -mpower9-minmax by default for -mcpu=power9.
11708         (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
11709         128-bit floating point.
11711 2017-01-20  Alan Modra  <amodra@gmail.com>
11713         * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
11714         optimizing for size.
11716 2017-01-20  Alan Modra  <amodra@gmail.com>
11718         PR target/79144
11719         * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
11720         for strcmp and strncmp from corresponding builtin decl.
11722 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
11724         * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
11725         instead of i386/rtems-64.h.
11726         * config/i386/rtems-64.h: Remove.
11728 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
11730         PR target/78478
11731         Revert:
11732         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
11734         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
11736 2017-01-19  Tamar Christina  <tamar.christina@arm.com>
11738         * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
11739         Change int to HOST_WIDE_INT.
11740         * config/aarch64/aarch64-protos.h
11741         (aarch64_simd_gen_const_vector_dup): Likewise.
11742         * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
11744 2017-01-19  David Malcolm  <dmalcolm@redhat.com>
11746         * langhooks-def.h (lhd_type_for_size): New decl.
11747         (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
11748         * langhooks.c (lhd_type_for_size): New function, taken from
11749         lto_type_for_size.
11751 2017-01-19  Pat Haugen  <pthaugen@us.ibm.com>
11753         * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
11754         define_bypass for CR latency.
11755         (power9-cracked-alu): Update bypass latency and remove power9-branch.
11756         (power9-alu2): Add define_bypass for CR latency.
11757         (power9-cmp): New.
11758         (power9-mul): Update insn latency.
11759         (power9-mul-compare): Update insn latency, bypass latency and remove
11760         power9-branch.
11762 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11764         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
11765         Delete.
11766         * config/aarch64/aarch64.md
11767         (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
11768         aarch64_nopcrelative_literal_loads.
11769         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
11771 2017-01-19  Chenghua Xu  <paul.hua.gm@gmail.com>
11773         * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
11774         TARGET_LOONGSON_3A.
11775         (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
11777 2017-01-19  Doug Gilmore  <doug.gilmore@imgtec.com>
11779         PR target/78176
11780         * config.gcc (supported_defaults): Add lxc1-sxc1.
11781         (with_lxc1_sxc1): Add validation.
11782         (all_defaults): Add lxc1-sxc1.
11783         * config/mips/mips.opt (mlxc1-sxc1): New option.
11784         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
11785         mlxc1-sxc1.
11786         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
11787         __mips_no_lxc1_sxc1.
11788         (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
11789         * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
11790         * doc/install.texi (--with-lxc1-sxc1): Document the new option.
11792 2017-01-19  Richard Biener  <rguenther@suse.de>
11794         PR tree-optimization/72488
11795         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
11796         sure to restore SSA info.
11797         * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
11799 2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
11801         PR rtl-optimization/79121
11802         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
11803         of the inner type when shifting an extended value.
11805 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
11807         PR lto/78407
11808         * symtab.c (symtab_node::equal_address_to): Fix comparing of
11809         interposable aliases.
11811 2017-01-18  Peter Bergner  <bergner@vnet.ibm.com>
11813         PR target/78516
11814         * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
11815         Use the evmergelohi instruction.
11816         (mov_si<mode>_e500_subreg4_2_le): Likewise.
11817         (mov_sitf_e500_subreg8_2_be): Likewise.
11818         (mov_sitf_e500_subreg12_2_le): Likewise.
11819         (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
11820         (mov_si<mode>_e500_subreg4_2_be): Likewise.
11821         (mov_sitf_e500_subreg8_2_le): Likewise.
11822         (mov_sitf_e500_subreg12_2_be): Likewise.
11824 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11826         * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
11827         attribute from vecsimple to vecperm.
11828         (altivec_vbpermq2): Likewise.
11830 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11832         PR target/79040
11833         * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
11835 2017-01-18  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
11836         * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
11837         * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
11838         strcmp. Fix bug where comparison didn't stop with zero byte. Fix
11839         case where N arg is SIZE_MAX.
11840         * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
11841         (cmpstrsi): Add pattern.
11843 2017-01-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
11845         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11846         __builtin_vec_revb builtins.
11847         * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
11848         built-in functions to support generation of the ISA 3.0 XXBR<x>
11849         vector byte reverse instructions.
11850         (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
11851         (P9V_BUILTIN_XXBRD_V2DI): Likewise.
11852         (P9V_BUILTIN_XXBRD_V2DF): Likewise.
11853         (P9V_BUILTIN_XXBGW_V4SI): Likewise.
11854         (P9V_BUILTIN_XXBGW_V4SF): Likewise.
11855         (P9V_BUILTIN_XXBGH_V8HI): Likewise.
11856         (P9V_BUILTIN_VEC_REVB): Likewise.
11857         * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
11858         generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
11859         (p9_xxbrq_v16qi): Likewise.
11860         (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
11861         (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
11862         (p9_xxbrh_v8hi): Likewise.
11863         * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
11864         * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
11865         vec_revb built-in functions.
11867 2017-01-18  Uros Bizjak  <ubizjak@gmail.com>
11869         PR rtl-optimization/78952
11870         * config/i386/i386.md (any_extract): New code iterator.
11871         (*insvqi_2): Use any_extract for source operand.
11872         (*insvqi_3): Use any_shiftrt for source operand.
11874 2017-01-18  Wilco Dijkstra  <wdijkstr@arm.com>
11876         * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
11877         New function.
11878         (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
11880 2017-01-18  Matthias Klose  <doko@ubuntu.com>
11882         * doc/install.texi: Allow default for --with-target-bdw-gc-include.
11884 2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11886         * config/rs6000/altivec.h (vec_bperm): Change #define.
11887         * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
11888         (altivec_vbpermq2): New define_insn.
11889         (altivec_vbpermd): Likewise.
11890         * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
11891         function interface.
11892         (VBPERMD): Likewise.
11893         (VBPERM): New polymorphic function interface.
11894         * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
11895         Add entries for P9V_BUILTIN_VEC_VBPERM.
11896         * doc/extend.texi: Add interfaces for vec_bperm.
11898 2017-01-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11900         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
11901         first letter of error messages.
11902         (s390_resolve_overloaded_builtin): Likewise.
11903         * config/s390/s390.c (s390_expand_builtin): Likewise.
11904         (s390_invalid_arg_for_unprototyped_fn): Likewise.
11905         (s390_valid_target_attribute_inner_p): Likewise.
11906         * config/s390/s390.md ("tabort"): Likewise.
11908 2017-01-18  Toma Tabacu  <toma.tabacu@imgtec.com>
11910         * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
11911         (ISA_AVOID_DIV_HILO): New macro.
11912         (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
11913         (ISA_HAS_DDIV): Likewise.
11915 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
11917         * doc/invoke.texi (fabi-version): Correct number of occurrences.
11919 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
11921         * doc/invoke.texi (fabi-version): Spelling fix.
11923 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
11925         PR c++/70182
11926         * doc/invoke.texi (fabi-version): Mention mangling fix for
11927         operator names.
11929 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
11931         PR c++/77489
11932         * doc/invoke.texi (fabi-version): Document discriminator mangling.
11934 2017-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
11936         PR target/78875
11937         * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
11938         * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
11939         the new options.
11940         * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
11941         flexible settings.
11942         (stack_protect_test): Ditto.
11943         * config/rs6000/rs6000.opt (mstack-protector-guard=,
11944         mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
11945         options.
11946         * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
11947         Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
11948         -mstack-protector-guard-offset=.
11949         (RS/6000 and PowerPC Options): Ditto.
11951 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
11953         * config/i386/i386.h (MASK_CLASS_P): New define.
11954         * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
11955         there are no registers from different register sets also when
11956         mask registers are used.  Update function comment.
11957         * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
11958         to (*k/*r) and (*k/*km) alternatives.
11960 2017-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
11962         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
11963         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
11964         (EH_RETURN_HANDLER_RTX): New define.
11965         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
11966         Force frame pointer in EH return functions.
11967         (aarch64_expand_epilogue): Add barrier for eh_return.
11968         (aarch64_final_eh_return_addr): Remove.
11969         (aarch64_eh_return_handler_rtx): New function.
11970         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
11971         Remove.
11972         (aarch64_eh_return_handler_rtx): New prototype.
11974 2017-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11976         * config/rs6000/altivec.h (vec_rlmi): New #define.
11977         (vec_vrlnm): Likewise.
11978         (vec_rlnm): Likewise.
11979         * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
11980         (UNSPEC_VRLNM): Likewise.
11981         (VIlong): New mode iterator.
11982         (altivec_vrl<VI_char>mi): New define_insn.
11983         (altivec_vrl<VI_char>nm): Likewise.
11984         * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
11985         function entry.
11986         (VRLDNM): Likewise.
11987         (RLNM): New polymorphic function entry.
11988         (VRLWMI): New monomorphic function entry.
11989         (VRLDMI): Likewise.
11990         (RLMI): New polymorphic function entry.
11991         * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
11992         new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
11993         * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
11994         vec_vrlnm.
11996 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
11998         PR debug/78839
11999         * dwarf2out.c (field_byte_offset): Restore the
12000         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
12001         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
12002         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
12003         of build2 + fold.
12005 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
12007         PR ada/67205
12008         * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
12010 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
12012         PR debug/71669
12013         * dwarf2out.c (add_data_member_location_attribute): For constant
12014         offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
12015         instead of DW_AT_data_member_location, DW_AT_bit_offset and
12016         DW_AT_byte_size attributes.
12018 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
12020         * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
12021         after forcing to constant memory when the code model is medium.
12023 2017-01-17  Julia Koval  <julia.koval@intel.com>
12025         PR target/76731
12026         * config/i386/avx512fintrin.h
12027         (_mm512_i32gather_ps): Change __addr type to void const*.
12028         (_mm512_mask_i32gather_ps): Ditto.
12029         (_mm512_i32gather_pd): Ditto.
12030         (_mm512_mask_i32gather_pd): Ditto.
12031         (_mm512_i64gather_ps): Ditto.
12032         (_mm512_mask_i64gather_ps): Ditto.
12033         (_mm512_i64gather_pd): Ditto.
12034         (_mm512_mask_i64gather_pd): Ditto.
12035         (_mm512_i32gather_epi32): Ditto.
12036         (_mm512_mask_i32gather_epi32): Ditto.
12037         (_mm512_i32gather_epi64): Ditto.
12038         (_mm512_mask_i32gather_epi64): Ditto.
12039         (_mm512_i64gather_epi32): Ditto.
12040         (_mm512_mask_i64gather_epi32): Ditto.
12041         (_mm512_i64gather_epi64): Ditto.
12042         (_mm512_mask_i64gather_epi64): Ditto.
12043         (_mm512_i32scatter_ps): Change __addr type to void*.
12044         (_mm512_mask_i32scatter_ps): Ditto.
12045         (_mm512_i32scatter_pd): Ditto.
12046         (_mm512_mask_i32scatter_pd): Ditto.
12047         (_mm512_i64scatter_ps): Ditto.
12048         (_mm512_mask_i64scatter_ps): Ditto.
12049         (_mm512_i64scatter_pd): Ditto.
12050         (_mm512_mask_i64scatter_pd): Ditto.
12051         (_mm512_i32scatter_epi32): Ditto.
12052         (_mm512_mask_i32scatter_epi32): Ditto.
12053         (_mm512_i32scatter_epi64): Ditto.
12054         (_mm512_mask_i32scatter_epi64): Ditto.
12055         (_mm512_i64scatter_epi32): Ditto.
12056         (_mm512_mask_i64scatter_epi32): Ditto.
12057         (_mm512_i64scatter_epi64): Ditto.
12058         (_mm512_mask_i64scatter_epi64): Ditto.
12059         * config/i386/avx512pfintrin.h
12060         (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
12061         (_mm512_mask_prefetch_i32gather_ps): Ditto.
12062         (_mm512_mask_prefetch_i64gather_pd): Ditto.
12063         (_mm512_mask_prefetch_i64gather_ps): Ditto.
12064         (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
12065         (_mm512_prefetch_i32scatter_ps): Ditto.
12066         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
12067         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
12068         (_mm512_prefetch_i64scatter_pd): Ditto.
12069         (_mm512_prefetch_i64scatter_ps): Ditto.
12070         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
12071         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
12072         * config/i386/avx512vlintrin.h
12073         (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
12074         (_mm_mmask_i32gather_ps): Ditto.
12075         (_mm256_mmask_i32gather_pd): Ditto.
12076         (_mm_mmask_i32gather_pd): Ditto.
12077         (_mm256_mmask_i64gather_ps): Ditto.
12078         (_mm_mmask_i64gather_ps): Ditto.
12079         (_mm256_mmask_i64gather_pd): Ditto.
12080         (_mm_mmask_i64gather_pd): Ditto.
12081         (_mm256_mmask_i32gather_epi32): Ditto.
12082         (_mm_mmask_i32gather_epi32): Ditto.
12083         (_mm256_mmask_i32gather_epi64): Ditto.
12084         (_mm_mmask_i32gather_epi64): Ditto.
12085         (_mm256_mmask_i64gather_epi32): Ditto.
12086         (_mm_mmask_i64gather_epi32): Ditto.
12087         (_mm256_mmask_i64gather_epi64): Ditto.
12088         (_mm_mmask_i64gather_epi64): Ditto.
12089         (_mm256_i32scatter_ps): Change __addr type to void*.
12090         (_mm256_mask_i32scatter_ps): Ditto.
12091         (_mm_i32scatter_ps): Ditto.
12092         (_mm_mask_i32scatter_ps): Ditto.
12093         (_mm256_i32scatter_pd): Ditto.
12094         (_mm256_mask_i32scatter_pd): Ditto.
12095         (_mm_i32scatter_pd): Ditto.
12096         (_mm_mask_i32scatter_pd): Ditto.
12097         (_mm256_i64scatter_ps): Ditto.
12098         (_mm256_mask_i64scatter_ps): Ditto.
12099         (_mm_i64scatter_ps): Ditto.
12100         (_mm_mask_i64scatter_ps): Ditto.
12101         (_mm256_i64scatter_pd): Ditto.
12102         (_mm256_mask_i64scatter_pd): Ditto.
12103         (_mm_i64scatter_pd): Ditto.
12104         (_mm_mask_i64scatter_pd): Ditto.
12105         (_mm256_i32scatter_epi32): Ditto.
12106         (_mm256_mask_i32scatter_epi32): Ditto.
12107         (_mm_i32scatter_epi32): Ditto.
12108         (_mm_mask_i32scatter_epi32): Ditto.
12109         (_mm256_i32scatter_epi64): Ditto.
12110         (_mm256_mask_i32scatter_epi64): Ditto.
12111         (_mm_i32scatter_epi64): Ditto.
12112         (_mm_mask_i32scatter_epi64): Ditto.
12113         (_mm256_i64scatter_epi32): Ditto.
12114         (_mm256_mask_i64scatter_epi32): Ditto.
12115         (_mm_i64scatter_epi32): Ditto.
12116         (_mm_mask_i64scatter_epi32): Ditto.
12117         (_mm256_i64scatter_epi64): Ditto.
12118         (_mm256_mask_i64scatter_epi64): Ditto.
12119         (_mm_i64scatter_epi64): Ditto.
12120         (_mm_mask_i64scatter_epi64): Ditto.
12121         * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
12122         (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
12123         (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
12124         (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
12125         (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
12126         (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
12127         (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
12128         (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
12129         (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
12130         (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
12131         (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
12132         (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
12133         (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
12134         (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
12135         (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
12136         (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
12137         (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
12138         (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
12139         (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
12140         (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
12141         (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
12142         (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
12143         (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
12144         (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
12145         (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
12146         (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
12147         (VOID_QI_V8DI_PCINT_INT_INT): Remove.
12148         (V16SF_V16SF_PCVOID_V16SI_HI_INT,  V8DF_V8DF_PCVOID_V8SI_QI_INT)
12149         (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
12150         (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
12151         (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
12152         (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
12153         (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
12154         (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
12155         (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
12156         (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
12157         (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
12158         (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
12159         (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
12160         (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
12161         (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
12162         (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
12163         (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
12164         (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
12165         (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
12166         (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
12167         (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
12168         (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
12169         (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
12170         (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
12171         (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
12172         (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
12173         (VOID_QI_V8DI_PCVOID_INT_INT): Add.
12174         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
12175         definitions accordingly.
12177 2017-01-17  Kito Cheng  <kito.cheng@gmail.com>
12178             Kuan-Lin Chen  <kuanlinchentw@gmail.com>
12180         PR target/79079
12181         * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
12182         gen_lowpart.
12184 2017-01-17  Vladimir Makarov  <vmakarov@redhat.com>
12186         PR target/79058
12187         * ira-conflicts.c (ira_build_conflicts): Update total conflict
12188         hard regs for inner regno.
12190 2017-01-17  Martin Liska  <mliska@suse.cz>
12192         PR ipa/71207
12193         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
12194         assumption and add comment.
12196 2017-01-17  Nathan Sidwell  <nathan@acm.org>
12198         * ipa-visibility.c (localize_node): New function, broken out of ...
12199         (function_and_variable_visibility): ... here. Call it.
12201 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
12203         PR middle-end/77445
12204         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
12205         correctly set frequency of oudgoing edge.
12206         (duplicate_thread_path): Fix profile updating.
12208 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
12210         PR other/79046
12211         * configure.ac: Add GCC_BASE_VER.
12212         * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
12213         version from BASE-VER file.
12214         (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
12215         (gcc.o): Depend on $(BASEVER).
12216         * common.opt (dumpfullversion): New option.
12217         * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
12218         * doc/invoke.texi: Document -dumpfullversion.
12219         * doc/install.texi: Document --with-gcc-major-version-only.
12220         * configure: Regenerated.
12222 2017-01-17  Richard Biener  <rguenther@suse.de>
12224         PR tree-optimization/71433
12225         * tree-vrp.c (register_new_assert_for): Merge same asserts
12226         on all incoming edges.
12227         (process_assert_insertions_for): Handle insertions at the
12228         beginning of BBs.
12230 2017-01-17  Gerald Pfeifer  <gerald@pfeifer.com>
12232         * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
12233         * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
12235 2017-01-17  Kaz Kojima  <kkojima@gcc.gnu.org>
12237         PR target/78633
12238         * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
12239         RTL sharing.
12241 2017-01-17  Alan Modra  <amodra@gmail.com>
12243         PR target/79066
12244         * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
12245         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
12246         symbolic stack limit when pic.
12248 2017-01-16  Martin Sebor  <msebor@redhat.com>
12250         PR tree-optimization/78608
12251         * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
12253 2017-01-16  Jeff Law  <law@redhat.com>
12255         Revert:
12256         2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
12257         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
12258         for several include directories that may be relative to sysroot.
12259         * config/i386/x-mingw32 (gplus_includedir): Define.
12260         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
12261         (native_system_includedir): Likewise.
12262         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
12263         override if TARGET_SYSTEM_ROOT is defined.
12264         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
12266         PR tree-optimization/79090
12267         PR tree-optimization/33562
12268         PR tree-optimization/61912
12269         PR tree-optimization/77485
12270         * tree-ssa-dse.c (compute_trims): Accept STMT argument.  Dump STMT
12271         and computed trims into the dump file.
12273 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
12275         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
12277 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
12279         PR c/79089
12280         * gimplify.c (gimplify_init_constructor): If want_value and
12281         object == lhs, unshare lhs to avoid invalid tree sharing.  Formatting
12282         fix.
12284         PR target/79080
12285         * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
12286         sequence.  Formatting fixes.
12287         (doloop_optimize): Formatting fixes.
12289         PR driver/49726
12290         * gcc.c (debug_level_greater_than_spec_func): New function.
12291         (static_spec_functions): Add debug-level-gt spec function.
12292         (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
12293         !g0.
12294         * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
12295         * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
12296         * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
12297         gpubnames, ggnu-pubnames, gno-record-gcc-switches,
12298         grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
12299         gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
12301 2017-01-16  Uros Bizjak  <ubizjak@gmail.com>
12303         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
12304         QImode fixups to general and mask registers only.
12306 2017-01-16  Carl Love  <cel@us.ibm.com>
12308         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
12309         for built-in functions
12310         vector signed char vec_nabs (vector signed char)
12311         vector signed short vec_nabs (vector signed short)
12312         vector signed int vec_nabs (vector signed int)
12313         vector signed long long vec_nabs (vector signed long long)
12314         vector float vec_nabs (vector float)
12315         vector double vec_nabs (vector double)
12316         * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
12317         and NABS overload.
12318         * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
12319         * config/rs6000/altivec.h: New define for vec_nabs built-in function.
12320         * doc/extend.texi: Update the documentation file for the new built-in
12321         functions.
12323 2017-01-16  Martin Sebor  <msebor@redhat.com>
12325         * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
12326         message.
12328 2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12330         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
12331         UNSPEC_VSX__XXSPLTD to require special splat handling.
12333 2017-01-16  David Malcolm  <dmalcolm@redhat.com>
12335         PR bootstrap/78616
12336         * system.h: Poison strndup.
12338 2017-01-16  Alan Modra  <amodra@gmail.com>
12340         PR target/79098
12341         * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
12342         use a switch.
12344 2017-01-16  Georg-Johann Lay  <avr@gjlay.de>
12346         * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
12348 2017-01-15  Uros Bizjak  <ubizjak@gmail.com>
12350         * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
12351         call recog here.  Assert that INSN_CODE (insn) is non-negative.
12353 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
12355         PR target/72749
12356         * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
12357         fallthrough.
12358         * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
12359         in the currently scheduled RTL fragment.
12361 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
12363         PR rtl-optimization/78751
12364         * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
12365         give up.
12367 2017-01-14  Jeff Law  <law@redhat.com>
12369         PR tree-optimization/79090
12370         * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
12371         variable length stores.
12372         (compute_trims): Delete dead assignment to *trim_tail.
12373         (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
12374         zero length.
12376 2017-01-14  Bernd Schmidt  <bschmidt@redhat.com>
12378         PR rtl-optimization/78626
12379         PR rtl-optimization/78727
12380         * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
12381         of a block, and split such blocks after everything else is finished.
12383 2017-01-14  Alan Modra  <amodra@gmail.com>
12385         PR target/72749
12386         * combine.c (recog_for_combine_1): Set INSN_CODE before calling
12387         target legitimate_combined_insn.
12388         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
12389         (rs6000_legitimate_combined_insn): New function.
12390         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
12391         all uses.
12392         (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
12393         (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
12394         (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
12396 2017-01-14  Gerald Pfeifer  <gerald@pfeifer.com>
12398         * doc/frontends.texi (G++ and GCC): Remove references to Java.
12400 2017-01-13  Jeff Law  <law@redhat.com>
12402         PR tree-optimization/33562
12403         PR tree-optimization/61912
12404         PR tree-optimization/77485
12405         * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
12406         a statement.
12407         (delete_dead_assignment): Likewise.
12408         (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
12409         statement to delete_dead_call and delete_dead_assignment.
12411 2017-01-13  David Malcolm  <dmalcolm@redhat.com>
12413         PR c/78304
12414         * substring-locations.c (format_warning_va): Strengthen case 1 so
12415         that both endpoints of the substring must be within the format
12416         range for just the substring to be printed.
12418 2017-01-13  Uros Bizjak  <ubizjak@gmail.com>
12420         * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
12421         * config/i386/i386.c (ix86_target_string): Add missing options
12422         to isa_opts and reorder options by implied ISAs.  Rename isa_opts2 to
12423         isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
12424         flags_other and ix86_target_other to flags2_other.  Display unknown
12425         isa2 options.
12426         (ix86_valid_target_attribute_inner_p): Add missing options and
12427         reorder options by implied ISAs, as in ix86_target_string.
12429 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
12431         * hash-table.h (hash_table::too_empty_p): New function.
12432         (hash_table::expand): Use it.
12433         (hash_table::traverse): Likewise.
12434         (hash_table::empty_slot): Use sizeof (value_type) instead of
12435         sizeof (PTR) to convert bytes to elements.  Shrink the table
12436         if the current size is excessive for the current number of
12437         elements.
12439 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
12441         * ira-costs.c (record_reg_classes): Break from the inner loop
12442         early once alt_fail is known to be true.  Update outer loop
12443         handling accordingly.
12445 2017-01-13  Jeff Law  <law@redhat.com>
12447         * tree-ssa-dse.c (decrement_count): New function.
12448         (increment_start_addr, maybe_trim_memstar_call): Likewise.
12449         (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
12450         when we know the partially dead statement is a mem* function.
12452         PR tree-optimization/61912
12453         PR tree-optimization/77485
12454         * tree-ssa-dse.c: Include expr.h.
12455         (maybe_trim_constructor_store): New function.
12456         (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
12458         PR tree-optimization/33562
12459         PR tree-optimization/61912
12460         PR tree-optimization/77485
12461         * doc/invoke.texi: Document new dse-max-object-size param.
12462         * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
12463         * tree-ssa-dse.c: Include params.h.
12464         (dse_store_status): New enum.
12465         (initialize_ao_ref_for_dse): New, partially extracted from
12466         dse_optimize_stmt.
12467         (valid_ao_ref_for_dse, normalize_ref): New.
12468         (setup_live_bytes_from_ref, compute_trims): Likewise.
12469         (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
12470         (maybe_trim_partially_dead_store): Likewise.
12471         (maybe_trim_complex_store): Likewise.
12472         (dse_classify_store): Renamed from dse_possibly_dead_store_p.
12473         Track what bytes live from the original store.  Return tri-state
12474         for dead, partially dead or live.
12475         (dse_dom_walker): Add constructor, destructor and new private members.
12476         (delete_dead_call, delete_dead_assignment): New extracted from
12477         dse_optimize_stmt.
12478         (dse_optimize_stmt): Make a member of dse_dom_walker.
12479         Use initialize_ao_ref_for_dse.
12481         PR tree-optimization/33562
12482         PR tree-optimization/61912
12483         PR tree-optimization/77485
12484         * sbitmap.h (bitmap_count_bits): Prototype.
12485         (bitmap_clear_range, bitmap_set_range): Likewise.
12486         * sbitmap.c (bitmap_clear_range): New function.
12487         (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
12489 2017-01-13  Martin Liska  <mliska@suse.cz>
12491         PR ipa/79043
12492         * function.c (set_cfun): Add new argument force.
12493         * function.h (set_cfun): Likewise.
12494         * ipa-inline-transform.c (inline_call): Use the function when
12495         strict alising from is dropped for function we inline to.
12497 2017-01-13  Richard Biener  <rguenther@suse.de>
12499         * tree-pretty-print.c (dump_generic_node): Fix inverted condition
12500         for dumping GIMPLE INTEGER_CSTs.
12502 2017-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12504         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
12505         to 201112L since C++17.
12507 2017-01-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
12509         PR sanitizer/78887
12510         * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
12511         if -fsanitize=kernel-address is present.
12513 2017-01-13  Richard Biener  <rguenther@suse.de>
12515         * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
12516         as _Literal ( type ) number in case usual suffixes do not
12517         preserve all information.
12519 2017-01-13  Richard Biener  <rguenther@suse.de>
12521         PR tree-optimization/77283
12522         * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
12523         and ssa-iterators.h.
12524         (is_feasible_trace): Implement a cost model based on joiner
12525         PHI node uses.
12527 2017-01-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
12529         PR target/79004
12530         * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
12531         char or short to __float128/_Float128 directly.
12533 2017-01-12  Martin Sebor  <msebor@redhat.com>
12535         to -Wformat-overflow.
12536         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
12537         (min_bytes_remaining): Same.
12538         (get_string_length): Same.
12539         (format_string): Same.
12540         (format_directive): Same.
12541         (add_bytes): Same.
12542         (pass_sprintf_length::handle_gimple_call): Same.
12544 2017-01-12  Jakub Jelinek  <jakub@redhat.com>
12546         * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
12547         info.nowrite calls with no lhs that can't throw.  Return bool
12548         whether gsi_remove has been called or not.
12549         (pass_sprintf_length::handle_gimple_call): Return bool whether
12550         try_substitute_return_value called gsi_remove.  Formatting fix.
12551         (pass_sprintf_length::execute): Don't use gsi_remove if
12552         handle_gimple_call returned true.
12554         PR bootstrap/79069
12555         * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
12556         be removed due to side-effects, don't remove following barrier nor
12557         turn the successor edge into fallthru edge.
12559 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12561         PR target/79044
12562         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
12563         element-reversing loads and stores as not swappable.
12565 2017-01-12  Nathan Sidwell  <nathan@acm.org>
12566             Nicolai Stange  <nicstange@gmail.com>
12568         * combine.c (try_combine): Don't ignore result of overlap checking
12569         loop.  Combine overlap & asm check into single loop.
12571 2017-01-12  Richard Biener  <rguenther@suse.de>
12573         * tree-pretty-print.c (dump_generic_node): Provide -gimple
12574         variant for MEM_REF.  Sanitize INTEGER_CST for -gimple.
12576 2017-01-12  Richard Biener  <rguenther@suse.de>
12578         * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
12579         and TS_TARGET_OPTION directly derive from TS_BASE.
12580         * tree-core.h (tree_optimization_option): Derive from tree_base.
12581         (tree_target_option): Likewise.
12583 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
12585         * config/i386/i386.c (memory_address_length): Increase len
12586         only when rip_relative_addr_p returns false.
12588 2017-01-11  Julia Koval  <julia.koval@intel.com>
12590         * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
12591         (OPTION_MASK_ISA_SGX_SET): New.
12592         (ix86_handle_option): Handle OPT_msgx.
12593         * config.gcc: Added sgxintrin.h.
12594         * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
12595         * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
12596         * config/i386/i386.c (ix86_target_string): Add -msgx.
12597         (PTA_SGX): New.
12598         (ix86_option_override_internal): Handle new options.
12599         (ix86_valid_target_attribute_inner_p): Add sgx.
12600         * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
12601         * config/i386/i386.opt: Add msgx.
12602         * config/i386/sgxintrin.h: New file.
12603         * config/i386/x86intrin.h: Add sgxintrin.h.
12605 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
12607         PR c++/71537
12608         * fold-const.c (maybe_nonzero_address): Return 1 for function
12609         local objects.
12610         (tree_single_nonzero_warnv_p): Don't handle function local objects
12611         here.
12613         PR c++/72813
12614         * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
12615         of c-header.
12617 2017-01-11  David Malcolm  <dmalcolm@redhat.com>
12619         PR driver/78877
12620         * opts.c: Include "spellcheck.h"
12621         (struct string_fragment): New struct.
12622         (struct edit_distance_traits<const string_fragment &>): New
12623         struct.
12624         (get_closest_sanitizer_option): New function.
12625         (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
12627 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
12629         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
12630         by 12.
12631         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
12632         DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
12633         (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
12634         (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
12635         for initial die_offset if dwarf_split_debug_info.
12636         (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
12637         initial next_die_offset if dwo_id is non-NULL.  Don't emit padding
12638         fields.
12639         (output_skeleton_debug_sections): Formatting fix.  Use
12640         DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
12641         DWARF_COMPILE_UNIT_HEADER_SIZE.  Don't emit padding.
12643 2017-01-11  Wilco Dijkstra  <wdijkstr@arm.com>
12645         * config/arm/cortex-a53.md: Add bypasses for
12646         cortex_a53_r2f_cvt.
12647         (cortex_a53_r2f): Only use for transfers.
12648         (cortex_a53_f2r): Likewise.
12649         (cortex_a53_r2f_cvt): Add reservation for conversions.
12650         (cortex_a53_f2r_cvt): Likewise.
12652 2017-01-11  Tamar Christina  <tamar.christina@arm.com>
12654         * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
12655         to all inlined functions, change static to extern.
12657 2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
12659         PR target/78253
12660         * config/arm/arm.c (legitimize_pic_address): Handle reference to
12661         weak symbol.
12662         (arm_assemble_integer): Likewise.
12664 2017-01-11  Richard Earnshaw  <rearnsha@arm.com>
12666         * config.gcc: Use new awk script to check CPU, FPU and architecture
12667         parameters for --with-... options.
12668         * config/arm/parsecpu.awk: New file
12669         * config/arm/arm-cpus.in: New file.
12670         * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
12671         files.
12672         * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
12673         files.
12674         * config/arm/t-arm: Update dependency rules.
12675         * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
12676         of processing .def files.
12677         * config/arm/genopt.sh: Deleted.
12678         * config/arm/gentune.sh: Deleted.
12679         * config/arm/arm-cores.def: Deleted.
12680         * config/arm/arm-arches.def: Deleted.
12681         * config/arm/arm-fpus.def: Deleted.
12682         * config/arm/arm-tune.md: Regenerated.
12683         * config/arm/arm-tables.opt: Regenerated.
12684         * config/arm/arm-cpu.h: New generated file.
12685         * config/arm/arm-cpu-data.h: New generated file.
12686         * config/arm/arm-cpu-cdata.h: New generated file.
12688 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
12690         PR lto/79042
12691         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
12692         bit.
12693         (input_varpool_node): Unpack dynamically_initialized bit.
12695 2017-01-11  Eric Botcazou  <ebotcazou@adacore.com>
12697         PR rtl-optimization/79032
12698         * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
12699         the alignment of the adjusted memory reference against that of MODE,
12700         instead of the alignment of the original memory reference.
12702 2017-01-11  Martin Jambor  <mjambor@suse.cz>
12704         * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
12705         test.
12706         * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
12707         decorated functions.
12709 2017-01-11  Richard Biener  <rguenther@suse.de>
12711         * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
12712         set range/nonnull info for PHI results.  Do not set it on
12713         stmts marked for removal.
12715 2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
12717         * expr.c (store_field): In the bitfield case, fetch the return value
12718         from the registers before applying a single big-endian adjustment.
12719         Always do a final load for a BLKmode value not larger than a word.
12721 2017-01-10  David Malcolm  <dmalcolm@redhat.com>
12723         PR c++/77949
12724         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
12725         that we correctly handle column numbers greater than
12726         LINE_MAP_MAX_COLUMN_NUMBER.
12728 2017-01-10  Martin Sebor  <msebor@redhat.com>
12730         PR middle-end/78245
12731         * gimple-ssa-sprintf.c (get_destination_size): Call
12732         {init,fini}object_sizes.
12733         * tree-object-size.c (addr_object_size): Adjust.
12734         (pass_through_call): Adjust.
12735         (pass_object_sizes::execute): Adjust.
12736         * tree-object-size.h (fini_object_sizes): Declare.
12738 2017-01-10  Martin Sebor  <msebor@redhat.com>
12740         PR tree-optimization/78775
12741         * builtins.c (get_size_range): Move...
12742         * calls.c: ...to here.
12743         (alloc_max_size): Accept zero argument.
12744         (operand_signed_p): Remove.
12745         (maybe_warn_alloc_args_overflow): Call get_size_range.
12746         * calls.h (get_size_range): Declare.
12748 2017-01-10  Joe Seymour  <joe.s@somniumtech.com>
12750         * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
12751         from TI's devices.csv file as of September 2016.
12752         * config/msp430/msp430.c (msp430_mcu_data): Likewise.
12754 2017-01-10  Sandra Loosemore  <sandra@codesourcery.com>
12756         * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
12757         * doc/invoke.texi: Likewise.
12758         * doc/md.texi: Likewise.
12759         * doc/objc.texi: Likewise.
12761 2017-01-10  Joshua Conner  <joshconner@google.com>
12763         * config/arm/fuchsia-elf.h: New file.
12764         * config/fuchsia.h: New file.
12765         * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
12766         (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
12767         targets.
12768         * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
12770 2016-01-10  Richard Biener  <rguenther@suse.de>
12772         PR tree-optimization/79034
12773         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
12774         Propagate out degenerate PHIs in the joiner.
12776 2017-01-10  Martin Liska  <mliska@suse.cz>
12778         * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
12779         (sort_congruence_classes_by_decl_uid): Likewise.
12780         (sort_congruence_class_groups_by_decl_uid): Likewise.
12781         (sem_item_optimizer::merge_classes): Sort class, groups in these
12782         classes and members in the groups by DECL_UID of declarations.
12783         This would make merge operations stable.
12785 2017-01-10  Martin Liska  <mliska@suse.cz>
12787         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
12788         usage of m_classes_vec.
12789         (sem_item_optimizer::~sem_item_optimizer):  Likewise.
12790         (sem_item_optimizer::get_group_by_hash): Likewise.
12791         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
12792         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
12793         (sem_item_optimizer::verify_classes): Likewise.
12794         (sem_item_optimizer::process_cong_reduction): Likewise.
12795         (sem_item_optimizer::dump_cong_classes): Likewise.
12796         (sem_item_optimizer::merge_classes): Likewise.
12797         * ipa-icf.h (congruence_class_hash): Rename from
12798         congruence_class_group_hash.  Remove declaration of m_classes_vec.
12800 2017-01-10  Andrew Senkevich  <andrew.senkevich@intel.com>
12802         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
12803         OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
12804         * config.gcc: Add avx512vpopcntdqintrin.h.
12805         * config/i386/avx512vpopcntdqintrin.h: New.
12806         * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
12807         * config/i386/i386-builtin-types.def: Add new types.
12808         * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
12809         __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
12810         __builtin_ia32_vpopcountq_v8di_mask): New.
12811         * config/i386/i386-c.c (ix86_target_macros_internal): Define
12812         __AVX512VPOPCNTDQ__.
12813         * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
12814         (PTA_AVX512VPOPCNTDQ): Define.
12815         * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
12816         TARGET_AVX512VPOPCNTDQ_P): Define.
12817         * config/i386/i386.opt: Add mavx512vpopcntdq.
12818         * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
12819         * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
12821 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
12823         PR middle-end/77484
12824         * predict.def (PRED_CALL): Set to 67.
12826 2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
12828         * expr.c (store_field): In the bitfield case, if the value comes from
12829         a function call and is of an aggregate type returned in registers, do
12830         not modify the field mode; extract the value in all cases if the mode
12831         is BLKmode and the size is not larger than a word.
12833 2017-01-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
12835         PR target/71017
12836         * config/i386/cpuid.h: Fix undefined behavior.
12838 2017-01-04  Jeff Law  <law@redhat.com>
12840         PR tree-optimization/79007
12841         PR tree-optimization/67955
12842         * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
12843         conservative for pt.null when flag_non_call_exceptions is on.
12845 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
12847         PR translation/79019
12848         PR translation/79020
12849         * params.def (PARAM_INLINE_MIN_SPEEDUP,
12850         PARAM_IPA_CP_SINGLE_CALL_PENALTY,
12851         PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
12852         in descriptions.
12853         * config/avr/avr.opt (maccumulate-args): Likewise.
12854         * config/msp430/msp430.opt (mwarn-mcu): Likewise.
12855         * common.opt (freport-bug): Likewise.
12856         * cif-code.def (CIF_FINAL_ERROR): Likewise.
12857         * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
12858         * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
12859         translatable string.
12860         * config/i386/i386.c (function_value_32): Likewise.
12861         * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
12862         * config/msp430/msp430.c (msp430_option_override, msp430_attr):
12863         Likewise.
12864         * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
12865         * common/config/msp430/msp430-common.c (msp430_handle_option):
12866         Likewise.
12867         * symtab.c (symtab_node::verify_base): Likewise.
12868         * opts.c (set_debug_level): Likewise.
12869         * tree.c (verify_type_variant): Likewise.  Fix typo in comment.
12870         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
12871         missing whitespace to translatable strings.
12872         * config/avr/avr.md (bswapsi2): Fix typo in comment.
12873         * config/sh/superh.h: Likewise.
12874         * config/i386/xopintrin.h: Likewise.
12875         * config/i386/znver1.md: Likewise.
12876         * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
12877         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
12878         * double-int.h (struct double_int): Likewise.
12879         * double-int.c (div_and_round_double): Likewise.
12880         * wide-int.cc: Likewise.
12881         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
12882         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
12883         * cfgcleanup.c (crossjumps_occured): Renamed to ...
12884         (crossjumps_occurred): ... this.
12885         (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
12886         Adjust all uses.
12888         PR tree-optimization/78899
12889         * tree-if-conv.c (version_loop_for_if_conversion): Instead of
12890         returning bool return struct loop *, NULL for failure and the new
12891         loop on success.
12892         (versionable_outer_loop_p): Don't version outer loop if it has
12893         dont_vectorized bit set.
12894         (tree_if_conversion): When versioning outer loop, ensure
12895         tree_if_conversion is performed also on the inner loop of the
12896         non-vectorizable outer loop copy.
12897         * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix.  Fold
12898         LOOP_VECTORIZED in inner loop of the scalar outer loop and
12899         prevent vectorization of it.
12900         (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
12901         the outer loop vectorization of the non-scalar version is attempted
12902         before vectorization of the inner loop in scalar version.  If
12903         outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
12904         vectorization of its inner loop.
12905         * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
12906         has 2 inner loops, rename also on edges from bb whose single pred
12907         is outer_loop->header.  Fix typo in function comment.
12909 2017-01-09  Martin Sebor  <msebor@redhat.com>
12911         PR bootstrap/79033
12912         * asan.c (asan_emit_stack_protection): Increase local buffer size
12913         to avoid snprintf truncation warning.
12915 2017-01-09  Andrew Pinski  <apinski@cavium.com>
12917         * config/aarch64/aarch64-cores.def: Add thunderx2t99.  Change vulcan
12918         to reference thunderx2t99 for the tuning structure
12919         * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
12920         Rename to ...
12921         (thunderx2t99_extra_costs): This.
12922         * config/aarch64/aarch64-tune.md: Regenerate.
12923         * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
12924         (vulcan_addrcost_table): This.
12925         (vulcan_regmove_cost): Rename to ...
12926         (thunderx2t99_regmove_cost): This.
12927         (vulcan_vector_cost): Rename to ...
12928         (thunderx2t99_vector_cost): this.
12929         (vulcan_branch_cost): Rename to ...
12930         (thunderx2t99_branch_cost): This.
12931         (vulcan_tunings): Rename to ...
12932         (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
12933         * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
12935 2017-01-09  Martin Jambor  <mjambor@suse.cz>
12937         PR ipa/78365
12938         PR ipa/78599
12939         * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
12940         * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
12941         (propagate_vr_accross_jump_function): Use the above function for all
12942         value range computations for pass-through jump functions and type
12943         converasion from explicit value range values.
12944         (ipcp_propagate_stage): Do not attempt to deduce types of formal
12945         parameters from TYPE_ARG_TYPES.
12946         * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
12947         (ipa_write_node_info): Stream type of the actual argument.
12948         (ipa_read_node_info): Likewise. Also remove trailing whitespace.
12950 2017-01-09  Martin Liska  <mliska@suse.cz>
12952         PR pch/78970
12953         * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
12954         (lookup_compiler): Do not show error message with have_E.
12956 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
12958         PR tree-optimization/78938
12959         * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
12960         where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
12961         BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
12962         {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR.  Formatting
12963         fixes.
12965 2017-01-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12967         * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
12968         is const0_rtx.
12970 2017-01-09  Richard Biener  <rguenther@suse.de>
12972         PR tree-optimization/78997
12973         * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
12974         name condition properly.
12976 2017-01-09  Richard Biener  <rguenther@suse.de>
12978         PR debug/79000
12979         * dwarf2out.c (is_cxx): New overload with context.
12980         (is_naming_typedef_decl): Use it.
12982 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
12984         * invoke.texi (Option Summary): Correct spacing in option lists
12985         and add line breaks to fix over-long lines.
12987 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
12989         PR middle-end/17660
12991         * extend.texi (Common Variable Attributes): Add xref to GCC
12992         Internals manual to explain mode attribute keywords.
12994 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
12996         PR other/16519
12997         * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
12998         and Preprocessor Options.
12999         (Options for Linking): Document -pthread here....
13000         (RS/6000 and PowerPC Options): ...not here.
13001         (Solaris 2 Options): ...or here.
13002         * doc/cppopts.texi: Document -pthread.
13004 2017-01-08  Martin Sebor  <msebor@redhat.com>
13006         PR middle-end/77708
13007         * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
13008         * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
13009         New member functions.
13010         (format_directive): Used them.
13011         (add_bytes): Same.
13012         (pass_sprintf_length::handle_gimple_call): Same.
13013         * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
13014         to avoid truncation for any argument.
13015         (extract_affine_mul): Same.
13016         * tree.c (get_file_function_name): Same.
13018 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
13020         PR middle-end/77484
13021         * predict.def (PRED_INDIR_CALL): Set to 86.
13023 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
13025         PR preprocessor/54124
13026         * doc/cppopts.texi: Reformat -d subtable to list the full name
13027         of the options.  Add cross-reference to the docs for the general
13028         compiler -d options.
13029         * doc/invoke.texi (Developer Options): Add cross-reference to the
13030         preprocessor-specific -d option documentation.
13032 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
13034         PR preprocessor/13498
13035         * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
13036         redudant material, and reflect new command-line options.
13037         (System Headers): Likewise.
13039 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
13041         * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
13042         -isystem, and -idirafter.  Copy-edit.
13043         * doc/cppopts.texi: Copy-edit.  Remove contradiction about
13044         default for -ftrack-macro-expansion.  Delete obsolete and
13045         badly-formatted implementation details about -fdebug-cpp output.
13046         * doc/cppwarnopts.texi: Copy-edit.
13048 2017-01-07  David Malcolm  <dmalcolm@redhat.com>
13050         PR c++/72803
13051         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
13052         that the transition from a max line width >= 1<<10 to narrower
13053         lines works correctly.
13055 2017-01-07  Alexandre Oliva <aoliva@redhat.com>
13057         * doc/options.texi (PerFunction): New.
13058         * opt-functions.awk (switch_flags): Map both Optimization and
13059         PerFunction to CL_OPTIMIZATION.
13060         * opth-gen.awk: Test for PerFunction flag along with
13061         Optimization.
13062         * optc-save-gen.awk: Likewise.  Introduce var_opt_hash and set
13063         it only when the latter is present.  Skip those that don't in
13064         the hash function generator.
13065         * common.opt (fvar-tracking): Mark as PerFunction instead of
13066         Optimization.
13067         (fvar-tracking-assignments): Likewise.
13068         (fvar-tracking-assignments-toggle): Likewise.
13069         (fvar-tracking-uninit): Likewise.
13071 2017-01-07  Jakub Jelinek  <jakub@redhat.com>
13073         PR translation/79018
13074         * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
13075         the and store.
13077 2017-01-06  Mikael Pettersson  <mikpelinux@gmail.com>
13079         PR target/57583
13080         * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
13081         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
13082         TARGET_LONG_JUMP_TABLE_OFFSETS.
13083         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
13084         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
13085         * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
13086         (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
13087         * config/m68k/m68k.md (tablejump expander): Likewise.
13088         (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
13089         TARGET_LONG_JUMP_TABLE_OFFSETS.
13090         (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
13091         * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
13093 2017-01-06  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
13094             David Holsgrove <david.holsgrove@xilinx.com>
13096         * common/config/microblaze/microblaze-common.c
13097         (TARGET_EXCEPT_UNWIND_INFO): Remove.
13098         * config/microblaze/microblaze-protos.h (microblaze_eh_return):
13099         New prototype.
13100         * config/microblaze/microblaze.c (microblaze_must_save_register)
13101         (microblaze_expand_epilogue, microblaze_return_addr): Handle
13102         calls_eh_return.
13103         (microblaze_eh_return): New function.
13104         * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
13105         (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
13106         (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
13107         * config/microblaze/microblaze.md (eh_return): New pattern.
13109 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
13111         * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
13112         GCC_DIAGNOSTIC_STRINGIFY): Define.
13114         * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
13116 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
13118         * config/arm/arm.md (<mcrr>): New.
13119         (<mrrc>): New.
13120         * config/arm/arm.c (arm_arch5te): New.
13121         (arm_option_override): Set arm_arch5te.
13122         (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
13123         and mrrc2.
13124         * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
13125         (arm_mcrr_qualifiers): ... this. New.
13126         (MRRC_QUALIFIERS): Define to...
13127         (arm_mrrc_qualifiers): ... this. New.
13128         * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
13129         __arm_mrrc2): New.
13130         * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
13131         * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
13132         (MRRCI, mrrc, MRRC): New.
13133         * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
13134         VUNSPEC_MRRC2): New.
13136 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
13138         * config/arm/arm.md (<mcr>): New.
13139         (<mrc>): New.
13140         * config/arm/arm.c (arm_coproc_builtin_available): Add
13141         support for mcr, mrc, mcr2 and mrc2.
13142         * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
13143         (arm_mcr_qualifiers): ... this. New.
13144         (MRC_QUALIFIERS): Define to ...
13145         (arm_mrc_qualifiers): ... this. New.
13146         (MCR_QUALIFIERS): Define to ...
13147         (arm_mcr_qualifiers): ... this. New.
13148         * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
13149         __arm_mrc2): New.
13150         * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
13151         * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
13152         * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
13153         VUNSPEC_MRC2): New.
13155 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
13157         * config/arm/arm.md (*ldc): New.
13158         (*stc): New.
13159         (<ldc>): New.
13160         (<stc>): New.
13161         * config/arm/arm.c (arm_coproc_builtin_available): Add
13162         support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
13163         (arm_coproc_ldc_stc_legitimate_address): New.
13164         * config/arm/arm-builtins.c (arm_type_qualifiers): Add
13165         'qualifier_const_pointer'.
13166         (LDC_QUALIFIERS): Define to...
13167         (arm_ldc_qualifiers): ... this. New.
13168         (STC_QUALIFIERS): Define to...
13169         (arm_stc_qualifiers): ... this. New.
13170         * config/arm/arm-protos.h
13171         (arm_coproc_ldc_stc_legitimate_address): New.
13172         * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
13173         __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
13174         * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
13175         stc2, stcl, stc2l): New.
13176         * config/arm/constraints.md (Uz): New.
13177         * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
13178         * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
13179         VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
13180         VUNSPEC_STC2L): New.
13182 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
13184         * config/arm/arm.md (<cdp>): New.
13185         * config/arm/arm.c (neon_const_bounds): Rename this ...
13186         (arm_const_bounds): ... this.
13187         (arm_coproc_builtin_available): New.
13188         * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
13189         (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
13190         (CDP_QUALIFIERS): Define to...
13191         (arm_cdp_qualifiers): ... this. New.
13192         (void_UP): Define.
13193         (arm_expand_builtin_args): Add case for 6 arguments.
13194         * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
13195         (arm_const_bounds): ... this.
13196         (arm_coproc_builtin_available): New.
13197         * config/arm/arm_acle.h (__arm_cdp): New.
13198         (__arm_cdp2): New.
13199         * config/arm/arm_acle_builtins.def (cdp): New.
13200         (cdp2): New.
13201         * config/arm/iterators.md (CDPI,CDP,cdp): New.
13202         * config/arm/neon.md: Rename all 'neon_const_bounds' to
13203         'arm_const_bounds'.
13204         * config/arm/types.md (coproc): New.
13205         * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
13206         * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
13207         * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
13208         arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
13210 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
13212         * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
13213         (UBINOP_QUALIFIERS): New.
13214         (si_UP): Define.
13215         (acle_builtin_data): New. Change comment.
13216         (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
13217         ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
13218         ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
13219         arm_acle_builtins.def.
13220         (ARM_BUILTIN_ACLE_PATTERN_START): Define.
13221         (arm_init_acle_builtins): New.
13222         (CRC32_BUILTIN): Remove.
13223         (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
13224         crc32cb, crc32ch and crc32cw.
13225         (arm_init_crc32_builtins): Remove.
13226         (arm_init_builtins): Use arm_init_acle_builtins rather
13227         than arm_init_crc32_builtins.
13228         (arm_expand_acle_builtin): New.
13229         (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
13230         * config/arm/arm_acle_builtins.def: New.
13232 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
13234         * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
13235         (arm_builtin_datum): ... this.
13236         (arm_init_neon_builtin): Rename to ...
13237         (arm_init_builtin): ... this. Add a new parameters PREFIX
13238         and USE_SIG_IN_NAME.
13239         (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
13240         'arm_init_builtin'. Replace type 'neon_builtin_datum' with
13241         'arm_builtin_datum'.
13242         (arm_init_vfp_builtins): Likewise.
13243         (builtin_arg): Rename enum's replacing 'NEON_ARG' with
13244         'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
13245         (arm_expand_neon_args): Rename to ...
13246         (arm_expand_builtin_args): ... this. Rename builtin_arg
13247         enum values and differentiate between ARG_BUILTIN_MEMORY
13248         and ARG_BUILTIN_NEON_MEMORY.
13249         (arm_expand_neon_builtin_1): Rename to ...
13250         (arm_expand_builtin_1): ... this. Rename builtin_arg enum
13251         values, arm_expand_builtin_args and add bool parameter NEON.
13252         (arm_expand_neon_builtin): Use arm_expand_builtin_1.
13253         (arm_expand_vfp_builtin): Likewise.
13254         (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
13256 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
13258         PR middle-end/77484
13259         * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
13260         * predict.c (tree_estimate_probability_bb): Reverse direction of
13261         polymorphic call predictor.
13263 2017-01-06  David Malcolm  <dmalcolm@redhat.com>
13265         * passes.c (execute_one_pass): Split out pass-skipping logic into...
13266         (determine_pass_name_match): ...this new function and...
13267         (should_skip_pass_p): ...this new function.
13269 2017-01-06  Nathan Sidwell  <nathan@acm.org>
13271         * ipa-visibility.c (function_and_variable_visibility): Reformat
13272         comments and long lines.  Remove extrneous if.
13273         * symtab.c (symtab_node::make_decl_local): Fix code format.
13274         (symtab_node::set_section_for_node): Fix comment typo.
13276 2017-01-06  Martin Liska  <mliska@suse.cz>
13278         PR bootstrap/79003
13279         * lra-constraints.c: Rename invariant to lra_invariant.
13280         * predict.c (set_even_probabilities): Initialize e to NULL.
13282 2017-01-05  Martin Sebor  <msebor@redhat.com>
13284         PR tree-optimization/78910
13285         * gimple-ssa-sprintf.c (tree_digits): Add an argument.
13286         (format_integer): Correct off-by-one error in the handling
13287         of precision with negative numbers in signed conversions..
13289 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
13291         * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
13293 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
13295         PR tree-optimization/71016
13296         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
13297         factor_out_conditional_conversion.  Formatting fix.
13298         (factor_out_conditional_conversion): Add cond_stmt argument.
13299         If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
13300         cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
13301         Formatting fix.
13303 2017-01-05  David Malcolm  <dmalcolm@redhat.com>
13305         * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
13306         read-rtl-function.o, and selftest-rtl.o.
13307         * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
13308         (selftest::aarch64_test_loading_full_dump): New function.
13309         (selftest::aarch64_run_selftests): New function.
13310         (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
13311         selftest::aarch64_run_selftests.
13312         * config/i386/i386.c
13313         (selftest::ix86_test_loading_dump_fragment_1): New function.
13314         (selftest::ix86_test_loading_call_insn): New function.
13315         (selftest::ix86_test_loading_full_dump): New function.
13316         (selftest::ix86_test_loading_unspec): New function.
13317         (selftest::ix86_run_selftests): Call the new functions.
13318         * emit-rtl.c (maybe_set_max_label_num): New function.
13319         * emit-rtl.h (maybe_set_max_label_num): New decl.
13320         * function.c (instantiate_decls): Guard call to
13321         instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
13322         * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
13323         "static".
13324         * gensupport.c (gen_reader::gen_reader): Pass "false"
13325         for new "compact" param of rtx_reader.
13326         * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
13327         rather than an empty string for NULL strings.
13328         * read-md.c: Potentially include config.h rather than bconfig.h.
13329         Wrap include of errors.h with #ifdef GENERATOR_FILE.
13330         (have_error): New global, copied from errors.c.
13331         (md_reader::read_name): Rename to...
13332         (md_reader::read_name_1): ...this, adding "out_loc" param,
13333         and converting "missing name or number" to returning false, rather
13334         than failing.
13335         (md_reader::read_name): Reimplement in terms of read_name_1.
13336         (md_reader::read_name_or_nil): New function.
13337         (md_reader::read_string): Handle "(nil)" by returning NULL.
13338         (md_reader::md_reader): Add new param "compact".
13339         (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
13340         (md_reader::read_file): New method.
13341         * read-md.h (md_reader::md_reader): Add new param "compact".
13342         (md_reader::read_file): New method.
13343         (md_reader::is_compact): New accessor.
13344         (md_reader::read_name): Convert return type from void to file_location.
13345         (md_reader::read_name_or_nil): New decl.
13346         (md_reader::read_name_1): New decl.
13347         (md_reader::m_compact): New field.
13348         (noop_reader::noop_reader): Pass "false" for new "compact" param
13349         of rtx_reader.
13350         (rtx_reader::rtx_reader): Add new "compact" param.
13351         (rtx_reader::read_rtx_operand): Make virtual and convert return
13352         type from void to rtx.
13353         (rtx_reader::read_until): New decl.
13354         (rtx_reader::handle_any_trailing_information): New virtual function.
13355         (rtx_reader::postprocess): New virtual function.
13356         (rtx_reader::finalize_string): New virtual function.
13357         (rtx_reader::m_in_call_function_usage): New field.
13358         (rtx_reader::m_reuse_rtx_by_id): New field.
13359         * read-rtl-function.c: New file.
13360         * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
13361         * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
13362         (selftest::verify_three_block_rtl_cfg): New decl.
13363         * read-rtl-function.h: New file.
13364         * read-rtl.c: Potentially include config.h rather than bconfig.h.
13365         For host, include function.h, memmodel.h, and emit-rtl.h.
13366         (one_time_initialization): New function.
13367         (struct compact_insn_name): New struct.
13368         (compact_insn_names): New array.
13369         (find_code): Handle insn codes in compact dumps.
13370         (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
13371         (bind_subst_iter_and_attr): Likewise.
13372         (add_condition_to_string): Likewise.
13373         (add_condition_to_rtx): Likewise.
13374         (apply_attribute_uses): Likewise.
13375         (add_current_iterators): Likewise.
13376         (apply_iterators): Likewise.
13377         (initialize_iterators): Guard usage of apply_subst_iterator with
13378         #ifdef GENERATOR_FILE.
13379         (read_conditions): Wrap with #ifdef GENERATOR_FILE.
13380         (md_reader::read_mapping): Likewise.
13381         (add_define_attr_for_define_subst): Likewise.
13382         (add_define_subst_attr): Likewise.
13383         (read_subst_mapping): Likewise.
13384         (check_code_iterator): Likewise.
13385         (rtx_reader::read_rtx): Likewise.  Move one-time initialization
13386         logic to...
13387         (one_time_initialization): New function.
13388         (rtx_reader::read_until): New method.
13389         (read_flags): New function.
13390         (parse_reg_note_name): New function.
13391         (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
13392         Handle reuse_rtx ids.
13393         Wrap iterator lookup within #ifdef GENERATOR_FILE.
13394         Add parsing support for RTL dumps, mirroring the special-cases in
13395         print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
13396         values, and calling handle_any_trailing_information.
13397         (rtx_reader::read_rtx_operand): Convert return type from void
13398         to rtx, returning return_rtx.  Handle case 'e'.  Call
13399         finalize_string on XSTR and XTMPL fields.
13400         (rtx_reader::read_nested_rtx):  Handle dumps in which trailing
13401          "(nil)" values were omitted.  Call the postprocess vfunc on the
13402         return_rtx.
13403         (rtx_reader::rtx_reader): Add new "compact" param and pass to base
13404         class ctor.  Initialize m_in_call_function_usage.  Call
13405         one_time_initialization.
13406         * rtl-tests.c (selftest::test_uncond_jump): Call
13407         set_new_first_and_last_insn.
13408         * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
13409         * selftest-rtl.c: New file.
13410         * selftest-rtl.h (class selftest::rtl_dump_test): New class.
13411         (selftest::get_insn_by_uid): New decl.
13412         * selftest-run-tests.c (selftest::run_tests): Call
13413         read_rtl_function_c_tests.
13414         * selftest.h  (selftest::read_rtl_function_c_tests): New decl.
13415         * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
13416         dumps.
13418 2017-01-05  Uros Bizjak  <ubizjak@gmail.com>
13420         * config/i386/i386.md (*testqi_ext_3): No need to handle memory
13421         operands in a special way.  Assert that pos+len <= mode precision.
13423 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
13425         * common.opt (fvect-cost-model): Remove RejectNegative flag, use
13426         3 argument Alias with unlimited for the negative form.
13427         (fno-vect-cost-model): Removed.
13429 2017-01-05  Martin Liska  <mliska@suse.cz>
13431         * hsa-gen.c (gen_hsa_divmod): New function.
13432         (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
13434 2017-01-05  Martin Liska  <mliska@suse.cz>
13436         PR pch/78970
13437         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
13438         header.
13440 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13442         * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
13443         small constant length operands.
13445 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13447         * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
13448         between loop iterations.
13450 2017-01-05  Martin Liska  <mliska@suse.cz>
13452         PR sanitizer/78815
13453         * gimplify.c (gimplify_decl_expr): Compare to
13454         asan_poisoned_variables instread of checking flags.
13455         (gimplify_target_expr): Likewise.
13456         (gimplify_expr): Likewise.
13457         (gimplify_function_tree): Conditionally initialize
13458         asan_poisoned_variables.
13460 2017-01-04  Jeff Law  <law@redhat.com>
13462         PR tree-optimizatin/78812
13463         * rtl.h (contains_mem_rtx_p): Prototype.
13464         * ifcvt.c (containts_mem_rtx_p): Move from here to...
13465         * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
13466         * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
13467         and prune MEMs that are not at the toplevel of a SET_SRC rtx.  Look
13468         through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
13470 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
13472         * input.c (assert_char_at_range): Default-initialize actual_range.
13474 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
13476         * df-scan.c (df_ref_create_structure): Make regno unsigned,
13477         to match the caller.
13479 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
13481         * cfgexpand.c (expand_gimple_basic_block): Disregard debug
13482         insns after final jump in test to emit dummy move.
13484 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
13486         * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
13487         * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
13489 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
13491         * multiple_target.c (create_dispatcher_calls): Init e_next.
13492         * tree-ssa-loop-split.c (split_loop): Init border.
13493         * tree-vect-loop.c (vect_determine_vectorization_factor): Init
13494         scalar_type.
13496 2017-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
13498         PR target/71977
13499         PR target/70568
13500         PR target/78823
13501         * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
13502         (altivec_register_operand): Do not return true if the operand
13503         contains a SUBREG mixing SImode and SFmode.
13504         (vsx_register_operand): Likewise.
13505         (vsx_reg_sfsubreg_ok): New predicate.
13506         (vfloat_operand): Do not return true if the operand contains a
13507         SUBREG mixing SImode and SFmode.
13508         (vint_operand): Likewise.
13509         (vlogical_operand): Likewise.
13510         (gpc_reg_operand): Likewise.
13511         (int_reg_operand): Likewise.
13512         * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
13513         * config/rs6000/rs6000.c (valid_sf_si_move): New function to
13514         determine if a MOVSI or MOVSF operation contains SUBREGs that mix
13515         SImode and SFmode.
13516         (rs6000_emit_move_si_sf_subreg): New helper function.
13517         (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
13518         fixup SUBREGs involving SImode and SFmode.
13519         * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
13520         numbers for the new peephole2 optimization.
13521         (peephole2 for SFmode unions): New peephole2 to optimize cases in
13522         the GLIBC math library that do AND/IOR/XOR operations on single
13523         precision floating point.
13524         * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
13525         target macros to say whether we need to avoid SUBREGs mixing
13526         SImode and SFmode.
13527         (TARGET_ALLOW_SF_SUBREG): Likewise.
13528         * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
13529         (UNSPEC_SI_FROM_SF): Likewise.
13530         (iorxor): Change spacing.
13531         (and_ior_xor): New iterator for AND, IOR, and XOR.
13532         (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
13533         (movdi_from_sf_zero_ext): Likewise.
13534         (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
13535         instead of gpc_reg_operand.  Add SImode/SFmode SUBREG support.
13536         (movsf_from_si): New insn for SImode/SFmode SUBREG support.
13537         (fma<mode>4): Use gpc_reg_operand instead of register_operand.
13538         (fms<mode>4): Likewise.
13539         (fnma<mode>4): Likewise.
13540         (fnms<mode>4): Likewise.
13541         (nfma<mode>4): Likewise.
13542         (nfms<mode>4): Likewise.
13544 2017-01-04  Marek Polacek  <polacek@redhat.com>
13546         PR c++/64767
13547         * doc/invoke.texi: Document -Wpointer-compare.
13549 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
13551         * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
13552         RejectNegative.
13554         * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
13555         descriptions for -gdwarf-5 and emit them as uleb128 instead of
13556         2-byte data.
13558 2017-01-04  Kelvin Nilsen  <kelvin@gcc.gnu.org>
13560         PR target/78056
13561         * doc/sourcebuild.texi (PowerPC-specific attributes): Add
13562         documentation of the powerpc_popcntb_ok attribute.
13563         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
13564         code to issue warning messages if a requested CPU configuration is
13565         not supported by the binary (assembler and loader) toolchain.
13566         (spe_init_builtins): Add two assertions to prevent ICE if attempt is
13567         made to define a built-in function that has been disabled.
13568         (paired_init_builtins): Add assertion to prevent ICE if attempt is
13569         made to define a built-in function that has been disabled.
13570         (altivec_init_builtins): Add comment explaining why definition
13571         of the DST built-in functions is not preceded by an assertion
13572         check.  Add assertions to prevent ICE if attempts are made to
13573         define an altivec predicate or an abs* built-in function that has
13574         been disabled.
13575         (htm_init_builtins): Add comment explaining why definition of the
13576         htm built-in functions is not preceded by an assertion check.
13578 2017-01-04  Jeff Law  <law@redhat.com>
13580         PR tree-optimizatin/67955
13581         * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
13582         Allow any SSA_VAR_P as the base objects.  Use integer_zerop.  Verify
13583         the points-to solution does not include pt_null.  Use DECL_PT_UID
13584         unconditionally.
13586 2017-01-04  Uros Bizjak  <ubizjak@gmail.com>
13588         * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
13589         Use gen_int_mode instead of gen_lopwart for const_int operands.
13591 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
13593         PR tree-optimization/71563
13594         * match.pd: Simplify X << Y into X if Y is known to be 0 or
13595         out of range value - has low bits known to be zero.
13597 2017-01-04  Alan Modra  <amodra@gmail.com>
13599         * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
13600         * configure: Regenerate.
13601         * config.in: Regenerate.
13603 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
13605         PR bootstrap/77569
13606         * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
13607         a substring of the message, but strcmp with the whole message.  Ifdef
13608         ENABLE_NLS, translate the message first using dgettext.
13610 2017-01-03  Jeff Law  <law@redhat.com>
13612         PR tree-optimizatin/78856
13613         * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
13614         (mark_threaded_blocks): Remove code to truncate thread paths that
13615         cross multiple loop headers.  Instead invalidate the cached loop
13616         iteration information and handle case of a thread path walking
13617         into an irreducible region.
13619 2017-01-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
13621         PR target/78900
13622         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
13623         assertions.  Add support for doing the signbit if the IEEE 128-bit
13624         floating point value is in a GPR.
13625         * config/rs6000/rs6000.md (Fsignbit): Delete.
13626         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
13627         Update the length attribute if the value is in a GPR.
13628         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
13629         the sign or zero extension instruction, since the value is always 0/1.
13630         (signbit<mode>2_dm2): Delete using <Fsignbit>.
13632         PR target/78953
13633         * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
13634         extracting SImode to a GPR register so that we can generate a
13635         store, limit the vector to be in a traditional Altivec register
13636         for the vextuwrx instruction.
13638 2017-01-03  Ian Lance Taylor  <iant@google.com>
13640         * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
13642 2017-01-03  Martin Sebor  <msebor@redhat.com>
13644         PR tree-optimization/78696
13645         * gimple-ssa-sprintf.c (format_floating): Correct handling of
13646         precision.  Use MPFR for %f for greater fidelity.  Correct handling
13647         of %g.
13648         (pass_sprintf_length::compute_format_length): Set width and precision
13649         specified by asrerisk to void_node for vararg functions.
13650         (try_substitute_return_value): Adjust dump output.
13652 2017-01-03  David Edelsohn  <dje.gcc@gmail.com>
13654         * doc/invoke.texi (RS6000 options): LRA is enabled by default.
13656 2017-01-03  Eric Botcazou  <ebotcazou@adacore.com>
13658         * doc/invoke.texi (SPARC options): Document -mlra as the default.
13659         * config/sparc/sparc.c (sparc_option_override): Force LRA unless
13660         -mlra/-mno-lra was passed to the compiler.
13662 2017-01-03  James Cowgill  <James.Cowgill@imgtec.com>
13664         PR rtl-optimization/65618
13665         * emit-rtl.c (try_split): Move initialization of "before" and
13666         "after" to just before the call to emit_insn_after_setloc.
13668 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
13670         * doc/md.texi (Standard Names): Remove reference to Java frontend.
13672 2017-01-03  Pierre-Marie de Rodat  <derodat@adacore.com>
13674         * dwarf2out.c (gen_enumeration_type_die): When
13675         -gno-strict-dwarf, add a DW_AT_encoding attribute.
13677 2017-01-03  Jakub Jelinek  <jakub@redhat.com>
13679         PR tree-optimization/78965
13680         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
13681         Change first argument from const call_info & to call_info &.  For %n
13682         set info.nowrite to false.
13684         PR middle-end/78901
13685         * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
13686         possibly throwing calls.
13688         * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
13689         and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
13690         and fns handling, rather than in a separate case SSA_NAME.
13692 2017-01-02  Jeff Law  <law@redhat.com>
13694         * config/darwin-driver.c (darwin_driver_init): Const-correctness
13695         fixes for first_period and second_period variables.
13697 2017-01-02  Uros Bizjak  <ubizjak@gmail.com>
13699         PR target/78967
13700         * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
13701         (*insvqi_1): New insn pattern.
13702         (*insvqi_1_mem_rex64): Ditto.
13703         (*insvqi_2): Ditto.
13704         (*insvqi_3): Rename from *insvqi.
13706         (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
13708 2017-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
13710         * doc/cfg.texi (Edges): Remove reference to Java.
13711         (Maintaining the CFG): Ditto.
13713 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
13715         PR middle-end/77674
13716         * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
13717         transparent aliases.
13719 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
13721         PR middle-end/77484
13722         * predict.def (PRED_CALL): Update hitrate.
13723         (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
13724         * predict.c (tree_estimate_probability_bb): Split CALL predictor
13725         into direct/indirect/polymorphic variants.
13727 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
13729         Update copyright years.
13731         * gcc.c (process_command): Update copyright notice dates.
13732         * gcov-dump.c (print_version): Ditto.
13733         * gcov.c (print_version): Ditto.
13734         * gcov-tool.c (print_version): Ditto.
13735         * gengtype.c (create_file): Ditto.
13736         * doc/cpp.texi: Bump @copying's copyright year.
13737         * doc/cppinternals.texi: Ditto.
13738         * doc/gcc.texi: Ditto.
13739         * doc/gccint.texi: Ditto.
13740         * doc/gcov.texi: Ditto.
13741         * doc/install.texi: Ditto.
13742         * doc/invoke.texi: Ditto.
13744 Copyright (C) 2017 Free Software Foundation, Inc.
13746 Copying and distribution of this file, with or without modification,
13747 are permitted in any medium without royalty provided the copyright
13748 notice and this notice are preserved.