* tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
[official-gcc.git] / gcc / ChangeLog
blob25dc6faca8ef3e884bd4787be5962e3b83a7888a
1 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
3         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
4         nonlinear iv_use computation in loop invariant sensitive way.
6 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
8         * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
9         (find_iv_candidates): Call relate_compare_use_with_all_cands.
11 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
13         * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
14         (dump_cand): Support iv_cand.inv_exprs.
15         (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
16         for candidates.
17         (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
18         iv_cand.inv_exprs.
20 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
22         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
23         from ...
24         * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
25         as local function.  Include necessary header files.
26         * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
28 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
30         * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
32 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
34         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
35         operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
36         RSHIFT_EXPR and BIT_NOT_EXPR.
38 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
40         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
41         (adjust_setup_cost): New parameter supporting round up adjustment.
42         (struct address_cost_data): Delete.
43         (force_expr_to_var_cost): Don't bound cost with spill_cost.
44         (split_address_cost, ptr_difference_cost): Delete.
45         (difference_cost, compare_aff_trees, record_inv_expr): Delete.
46         (struct ainc_cost_data): New struct.
47         (get_address_cost_ainc): New function.
48         (get_address_cost, get_computation_cost): Reimplement.
49         (determine_group_iv_cost_address): Record inv_expr for all uses of
50         a group.
51         (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
52         (iv_ca_has_deps): Reimplemented to ...
53         (iv_ca_more_deps): ... this.  Check if NEW_CP introduces more deps
54         than OLD_CP.
55         (iv_ca_extend): Call iv_ca_more_deps.
57 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
59         * tree-ssa-address.c (struct mem_address): Move to header file.
60         (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
61         * tree-ssa-address.h (struct mem_address): Move from C file.
62         (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
64 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
66         * tree-affine.h (aff_combination_type): New interface.
67         (aff_combination_zero_p): Remove static.
68         (aff_combination_const_p): New interface.
69         (aff_combination_singleton_var_p): New interfaces.
71 2017-05-11  Richard Biener  <rguenther@suse.de>
73         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
74         Skip unreachable blocks and destinations.
75         (eliminate): Move stmt removal and fixup ...
76         (fini_eliminate): ... here.  Skip inserted exprs.
77         (pass_pre::execute): Move fini_pre after fini_eliminate.
78         * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
79         (tail_merge_optimize): Run cleanup_tree_cfg if requested by
80         PRE to get rid of dead code that has invalid SSA form and
81         split critical edges again.
83 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
85         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
87 2017-05-11  Richard Biener  <rguenther@suse.de>
89         * passes.c (execute_function_todo): Verify loops if they are
90         said to be up-to-date.
91         * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
92         * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
94 2017-05-10  John David Anglin  <danglin@gcc.gnu.org>
96         PR target/80090
97         * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
98         handle calling assemble_external ourself.
100         PR target/79027
101         * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
102         modes with zero size.  Enhance comment.
104 2017-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
106         * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
107         built-ins for vec_xl and vec_xst with short and char pointer
108         arguments.
110 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
112         * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
113         (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
114         (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
115         (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
116         (_mm_maskz_min_round_ss): New intrinsics.
117         * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
118         (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
119         * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
120         (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
121         (__builtin_ia32_minss_mask_round): New builtins.
122         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
123         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
124         * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
125         Rename to ...
126         (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
127         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
128         Change to ...
129         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
130         ... this.
132 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
134         * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
135         (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
136         (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
137         (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
138         (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
139         (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
140         (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
141         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
142         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
143         * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
144         (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
145         (__builtin_ia32_mulss_mask_round): New builtins.
146         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
147         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
148         * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
149         Rename to ...
150         (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
151         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
152         Change to ...
153         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
154         ... this.
156 2017-05-10  Julia Koval  <julia.koval@intel.com>
158         * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
159         (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
160         (_mm256_setr_m128i): New intrinsics.
162 2017-05-10  Julia Koval  <julia.koval@intel.com>
164         * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
165         (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
166         (_mm_maskz_rcp14_ss): New intrinsics.
167         * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
168         (__builtin_ia32_rcp14ss_mask): New builtins.
169         * config/i386/sse.md (srcp14<mode>_mask): New pattern.
171 2017-05-10  Peter Bergner  <bergner@vnet.ibm.com>
173         PR tree-optimization/51513
174         * tree-cfg.c (gimple_seq_unreachable_p): New function.
175         (assert_unreachable_fallthru_edge_p): Use it.
176         (group_case_labels_stmt): Likewise.
177         * tree-cfg.h: Prototype it.
178         * stmt.c: Include cfghooks.h and tree-cfg.h.
179         (emit_case_dispatch_table) <gap_label>: New local variable.
180         Use it to fill dispatch table gaps.
181         Test for default_label before updating probabilities.
182         (expand_case) <default_label>: Remove unneeded initialization.
183         Test for unreachable default case statement and remove its edge.
184         Set default_label accordingly.
185         * tree-ssa-ccp.c (optimize_unreachable): Update comment.
187 2017-05-10  Carl Love  <cel@us.ibm.com>
189         * config/rs6000/rs6000-c: Add support for built-in functions
190         vector signed char        vec_neg (vector signed char)
191         vector signed short int   vec_neg (vector short int)
192         vector signed int         vec_neg (vector signed int)
193         vector signed long long   vec_neg (vector signed long long)
194         vector float              vec_neg (vector float)
195         vector double             vec_neg (vector double)
196         * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
197         overload.
198         * config/rs6000/altivec.h: Add define for vec_neg
199         * doc/extend.texi: Update the built-in documentation for the
200         new built-in functions.
202 2017-05-10  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
204         PR tree-optimization/77644
205         * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
207 2017-05-10  Nathan Sidwell  <nathan@acm.org>
209         * dumpfile.h (TDI_lang_all): New.
210         (TDF_KIND): New. Renumber others
211         (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
212         than bits.
213         * dumpfile.c (dump_files): Mark language dumps as TDF_LANG.  add
214         lang-all.
215         (get_dump_file_name): Adjust suffix generation.
216         (dump_enable_all): Use TDF_KIND.
217         * doc/invoke.texi (-fdump-lang-all): Document.
219         * dumpfile.h: Tabify.
221 2017-05-10  Wilco Dijkstra  <wdijkstr@arm.com>
223         PR target/80671
224         * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
225         Move member access before delete.
227 2017-05-10  Alexandre Oliva <aoliva@redhat.com>
229         * tree-inline.c (expand_call_inline): Split block at stmt
230         before the call.
232 2017-05-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
234         PR target/68163
235         * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
236         are now unused after splitting mov{sf,sd}_hardfloat.
237         (f32_lr2): Likewise.
238         (f32_lm): Likewise.
239         (f32_lm2): Likewise.
240         (f32_li): Likewise.
241         (f32_li2): Likewise.
242         (f32_lv): Likewise.
243         (f32_sr): Likewise.
244         (f32_sr2): Likewise.
245         (f32_sm): Likewise.
246         (f32_sm2): Likewise.
247         (f32_si): Likewise.
248         (f32_si2): Likewise.
249         (f32_sv): Likewise.
250         (f32_dm): Likewise.
251         (f32_vsx): Likewise.
252         (f32_av): Likewise.
253         (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
254         For movsf, order stores so the VSX stores occur before the GPR
255         store which encourages the register allocator to use a traditional
256         FPR instead of a GPR.  For movsd, order the stores so that the GPR
257         store comes before the VSX stores to allow the power6 to work.
258         This is due to the power6 not having a 32-bit integer store
259         instruction from a FPR.
260         (movsf_hardfloat): Likewise.
261         (movsd_hardfloat): Likewise.
263 2017-05-09  Martin Sebor  <msebor@redhat.com>
265         PR translation/80280
266         * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
267         added in r247778.
269         PR translation/80280
270         * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
271         data member added in r247778.
272         (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
274 2017-05-09  Nathan Sidwell  <nathan@acm.org>
276         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
278         * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
279         typedefs.
281 2017-05-09  Marek Polacek  <polacek@redhat.com>
283         * doc/invoke.texi: Fix typo.
285 2017-05-09  Richard Biener  <rguenther@suse.de>
287         * tree-vrp.c (vrp_val_is_max): Adjust comment.
288         (vrp_val_is_min): Likewise.
289         (set_value_range_to_value): Likewise.
290         (set_value_range_to_nonnegative): Likewise.
291         (gimple_assign_nonzero_p): Likewise.
292         (gimple_stmt_nonzero_p): Likewise.
293         (vrp_int_const_binop): Likewise.  Remove unreachable case.
294         (adjust_range_with_scev): Adjust comments.
295         (compare_range_with_value): Likewise.
296         (extract_range_from_phi_node): Likewise.
297         (test_for_singularity): Likewise.
299 2017-05-09  Richard Biener  <rguenther@suse.de>
301         * tree-vrp.c (get_single_symbol): Add assert that we don't
302         get overflowed constants as invariant part.
303         (compare_values_warnv): Add comment before the TREE_NO_WARNING
304         checks.  Use wi::cmp instead of recursing for integer constants.
305         (compare_values): Just ignore whether we assumed undefined
306         overflow instead of failing the compare.
307         (extract_range_for_var_from_comparison_expr): Add comment before the
308         TREE_NO_WARNING sets.
309         (test_for_singularity): Likewise.
310         (extract_range_from_comparison): Do not disable optimization
311         when we assumed undefined overflow.
312         (extract_range_basic): Remove init of unused var.
314 2017-05-09  Richard Biener  <rguenther@suse.de>
316         * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
317         (extract_range_from_multiplicative_op_1): Adjust.
318         (extract_range_from_binary_expr_1): Use int_const_binop.
320 2017-05-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
322         PR target/80101
323         * config/rs6000/power6.md: Replace store_data_bypass_p calls with
324         rs6000_store_data_bypass_p in seven define_bypass directives and
325         in several comments.
326         * config/rs6000/rs6000-protos.h: Add prototype for
327         rs6000_store_data_bypass_p function.
328         * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
329         function implements slightly different (rs6000-specific) semantics
330         than store_data_bypass_p, returning false rather than aborting
331         with assertion error when arguments do not satisfy the
332         requirements of store data bypass.
333         (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
334         rs6000_store_data_bypass_p.
336 2017-05-08  Max Filippov  <jcmvbkbc@gmail.com>
338         * config/xtensa/xtensa-protos.h
339         (xtensa_initial_elimination_offset): New declaration.
340         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
341         New function. Move its body from the INITIAL_ELIMINATION_OFFSET
342         macro definition, add case for FRAME_POINTER_REGNUM when
343         FRAME_GROWS_DOWNWARD.
344         * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro
345         definition.
346         (INITIAL_ELIMINATION_OFFSET): Replace body with call to
347         xtensa_initial_elimination_offset.
349 2017-05-08  Nathan Sidwell  <nathan@acm.org>
351         * doc/invoke.texi: Alphabetize -fdump options.
353 2017-05-08  Martin Sebor  <msebor@redhat.com>
355         PR translation/80280
356         * config/sol2-c.c (solaris_pragma_align): Correct quoting.
358 2017-05-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
360         * target.def (compute_frame_layout): New optional target hook.
361         * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
362         * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
363         * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
364         target hook.
365         * reload1.c (verify_initial_elim_offsets): Likewise.
366         * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
367         (use_simple_return_p): Call arm_compute_frame_layout if needed.
368         (arm_get_frame_offsets): Split up into this ...
369         (arm_compute_frame_layout): ... and this function.
371 2017-05-08  Richard Sandiford  <richard.sandiford@arm.com>
373         * config/aarch64/constraints.md (Usa): New constraint.
374         * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
376 2017-05-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
378         * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
379         with_multilib_list after it has been checked.
381 2017-05-08  Richard Biener  <rguenther@suse.de>
383         * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
384         (bitmap_set_subtract_values): Likewise.
386 2017-05-08  Richard Biener  <rguenther@suse.de>
388         * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
389         (gimple_assign_nonzero): ... this and remove strict_overflow_p
390         argument.
391         (gimple_stmt_nonzero_warnv_p): Rename to ...
392         (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
393         argument.
394         (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
395         (extract_range_basic): Adjust, do not disable propagation on
396         strict overflow sensitive simplification.
397         (vrp_visit_cond_stmt): Likewise.
399 2017-05-05  Jan Hubicka  <hubicka@ucw.cz>
401         * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
402         body size unconditionally.
404 2017-05-07  Jeff Law  <law@redhat.com>
406         Revert:
407         2017-05-06  Jeff Law  <law@redhat.com>
408         PR tree-optimization/78496
409         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
410         code.
412         PR tree-optimization/78496
413         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
414         (simplify_stmt_using_ranges): Call it.
415         (vrp_dom_walker::before_dom_children): Extract equivalences
416         from an ASSERT_EXPR with an equality comparison against a
417         constant.
419 2017-05-06  Jeff Law  <law@redhat.com>
421         PR tree-optimization/78496
422         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
423         code.
425         PR tree-optimization/78496
426         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
427         (simplify_stmt_using_ranges): Call it.
428         (vrp_dom_walker::before_dom_children): Extract equivalences
429         from an ASSERT_EXPR with an equality comparison against a
430         constant.
432 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
434         * lra-constraints.c (lra_copy_reg_equiv): New function.
435         (split_reg): Use it to copy equivalence information from the
436         original register to the spill register.
438 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
440         PR rtl-optimization/75964
441         * simplify-rtx.c (simplify_const_relational_operation): Remove
442         invalid handling of comparisons of integer ABS.
444 2017-05-06  Uros Bizjak  <ubizjak@gmail.com>
446         * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
447         initialize to zero.
448         (init_regs): Remove declaration.
449         (function_arg_advance_32): Initialize error_p as boolean variable.
451 2017-05-05  Nathan Sidwell  <nathan@acm.org>
453         * store-motion.c (remove_reachable_equiv_notes): Reformat long
454         lines.  Use for (;;).
456 2017-05-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
458         * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
459         (rs6000_init_cost): Initialize rs6000_vect_nonmem.
460         (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
461         (rs6000_finish_cost): Avoid vectorizing simple copy loops with
462         VF=2 that require versioning.
464 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
466         * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
467         int.
469 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
471         * diagnostic.h (diagnostic_override_option_index): Convert from
472         macro to inline function.
474 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
476         * diagnostic.c (last_module_changed_p): New function.
477         (set_last_module): New function.
478         (diagnostic_report_current_module): Convert macro usage to
479         the above functions.
480         * diagnostic.h (diagnostic_context::last_module): Strengthen
481         from const line_map * to const line_map_ordinary *.
482         (diagnostic_last_module_changed): Delete macro.
483         (diagnostic_set_last_module): Delete macro.
485 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
487         * diagnostic.c (diagnostic_impl): Replace report_diagnostic
488         with diagnostic_report_diagnostic.
489         (diagnostic_n_impl_richloc): Likewise.
490         * diagnostic.h (report_diagnostic): Delete macro.
491         * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
492         with diagnostic_report_diagnostic.
493         * substring-locations.c (format_warning_va): Likewise.
495 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
497         * diagnostic.c (diagnostic_report_diagnostic): Eliminate
498         save/restor of format_spec.  Move option-printing code to...
499         (print_option_information): ...this new function, and
500         reimplement by simply printing to the pretty_printer,
501         rather than appending to the format string.
503 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
505         * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
506         handling logic into...
507         (update_effective_level_from_pragmas): ...this new function.
509 2017-05-04  Andrew Waterman  <andrew@sifive.com>
511         * config/riscv/riscv.opt (mstrict-align): New option.
512         * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it.  Update comment.
513         (SLOW_UNALIGNED_ACCESS): Define.
514         (riscv_slow_unaligned_access): Declare.
515         * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
516         field.
517         (riscv_slow_unaligned_access): New variable.
518         (rocket_tune_info): Set slow_unaligned_access to true.
519         (optimize_size_tune_info): Set slow_unaligned_access to false.
520         (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
521         (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
522         (riscv_option_override): Set riscv_slow_unaligned_access.
523         * doc/invoke.texi: Add -mstrict-align to RISC-V.
525 2017-05-04  Kito Cheng  <kito.cheng@gmail.com>
527         * config/riscv/riscv.md: Unify indentation.
529 2017-05-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
531         PR target/79038
532         PR target/79202
533         PR target/79203
534         * config/rs6000/rs6000.md (u code attribute): Add FIX and
535         UNSIGNED_FIX.
536         (extendsi<mode>2): Add support for doing sign extension via
537         VUPKHSW and XXPERMDI if the value is in Altivec registers and we
538         don't have ISA 3.0 instructions.
539         (extendsi<mode>2 splitter): Likewise.
540         (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
541         generate the normal insns since SImode can now go in vector
542         registers.  Disallow the special UNSPECs needed for previous
543         machines to hide SImode being used.  Add new insns
544         fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
545         (fix_trunc<mode>si2_stfiwx): Likewise.
546         (fix_trunc<mode>si2_internal): Likewise.
547         (fixuns_trunc<mode>si2): Likewise.
548         (fixuns_trunc<mode>si2_stfiwx): Likewise.
549         (fctiw<u>z_<mode>_smallint): Likewise.
550         (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
551         of floating point to 32-bit integer from doing a direct move to
552         the GPR registers to do a store.
553         (fctiwz_<mode>): Break long line.
555 2017-05-05  Bin Cheng  <bin.cheng@arm.com>
557         * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
558         * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
559         (addr_list, addr_offset_valid_p): New.
560         (split_address_groups): Check offset validity with above function.
561         (gt-tree-ssa-loop-ivopts.h): Include header file.
563 2017-05-05  Nathan Sidwell  <nathan@acm.org>
565         * config.gcc (arm*-*-*): Add missing 'fi'.
567 2017-05-05  Steve Ellcey  <sellcey@cavium.com>
569         * doc/invoke.texi (-fopt-info): Explicitly say order of options
570         included in -fopt-info does not matter.
571         * doc/optinfo.texi (-fopt-info): Fix description of default
572         behavour. Explicitly say order of options included in -fopt-info
573         does not matter.
575 2017-05-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
577         * config.gcc: Allow combinations of aprofile and rmprofile values for
578         --with-multilib-list.
579         * config/arm/t-multilib: New file.
580         * config/arm/t-aprofile: Remove initialization of MULTILIB_*
581         variables.  Remove setting of ISA and floating-point ABI in
582         MULTILIB_OPTIONS and MULTILIB_DIRNAMES.  Set architecture and FPU in
583         MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
584         and MULTILIB_DIRNAMES respectively.  Add comment to introduce all
585         matches.  Add architecture matches for marvel-pj4 and generic-armv7-a
586         CPU options.
587         * config/arm/t-rmprofile: Likewise except for the matches changes.
588         * doc/install.texi (--with-multilib-list): Document the combination of
589         aprofile and rmprofile values and warn about pitfalls in doing that.
591 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
593         * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
594         (movdi_aarch64): Likewise.
596 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
598         PR tree-optimization/80632
599         * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
600         field.
601         (build_arrays): Initialize it for virtual phis.
602         (fix_phi_nodes): Use it for virtual phis.
604         PR tree-optimization/80558
605         * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
606         [x, y] op z into [x op, y op z] for op & or | if conditions
607         are met.
609 2017-05-05  Andre Vieira  <andre.simoesdiasvieira@arm.com>
610             Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
612         PR target/71607
613         * config/arm/arm.md (use_literal_pool): Remove.
614         (64-bit immediate split): No longer takes cost into consideration
615         if arm_disable_literal_pool is enabled.
616         * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
617         used when arm_disable_literal_pool is enabled.
618         (arm_max_const_double_inline_cost): Remove use of
619         arm_disable_literal_pool.
620         (push_minipool_fix): Add assert.
621         (arm_reorg): Add return if arm_disable_literal_pool is enabled.
622         * config/arm/vfp.md (no_literal_pool_df_immediate): New.
623         (no_literal_pool_sf_immediate): New.
625 2017-05-05  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
627         PR tree-optimization/80613
628         * tree-ssa-dce.c (propagate_necessity): Remove cases for
629         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
631 2017-05-05  Richard Biener  <rguenther@suse.de>
633         * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
635 2017-05-05  Georg-Johann Lay  <avr@gjlay.de>
637         * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
638         of this flag from insn conditions due to removal from r247495.
640 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
642         * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
643         New function.
644         (arm_early_store_addr_dep_ptr): Likewise.
645         * config/arm/aarch-common-protos.h
646         (arm_early_load_addr_dep_ptr): Add prototype.
647         (arm_early_store_addr_dep_ptr): Likewise.
648         * config/arm/cortex-a53.md: Add new bypasses.
650 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
652         * tree.c (next_type_uid): Change type to unsigned.
653         (type_hash_canon): Decrement back next_type_uid if
654         freeing a type node with the highest TYPE_UID.  For INTEGER_TYPEs
655         also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
656         if possible.
658 2017-05-04  Martin Sebor  <msebor@redhat.com>
660         * builtins.c: Fix a trivial typo in a comment.
662         PR middle-end/79234
663         * builtins.c (check_sizes): Adjust to handle reading past the end.
664         Avoid printing excessive upper bound of ranges.  Use %E to print
665         tree nodes instead of converting them to %wu.
666         (expand_builtin_memchr): New function.
667         (compute_dest_size): Rename...
668         (compute_objsize): ...to this.
669         (expand_builtin_memcpy): Adjust.
670         (expand_builtin_mempcpy): Adjust.
671         (expand_builtin_strcat): Adjust.
672         (expand_builtin_strcpy): Adjust.
673         (check_strncat_sizes): Adjust.
674         (expand_builtin_strncat): Adjust.
675         (expand_builtin_strncpy): Adjust and simplify.
676         (expand_builtin_memset): Adjust.
677         (expand_builtin_bzero): Adjust.
678         (expand_builtin_memcmp): Adjust.
679         (expand_builtin): Handle memcmp.
680         (maybe_emit_chk_warning): Check strncat just once.
682 2017-05-04  Martin Sebor  <msebor@redhat.com>
684         PR preprocessor/79214
685         PR middle-end/79222
686         PR middle-end/79223
687         * builtins.c (check_sizes): Add inlining context and issue
688         warnings even when -Wno-system-headers is set.
689         (check_strncat_sizes): Same.
690         (expand_builtin_strncat): Same.
691         (expand_builtin_memmove): New function.
692         (expand_builtin_stpncpy): Same.
693         (expand_builtin): Handle memmove and stpncpy.
695 2017-05-04  Bin Cheng  <bin.cheng@arm.com>
697         * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
698         which is not used any more.
700 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
702         * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
704 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
706         * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
707         (cortexa53_tunings): Likewise.
708         (cortexa57_tunings): Likewise.
709         (cortexa72_tunings): Likewise.
710         (cortexa73_tunings): Likewise.
712 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
714         * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
715         Set loop alignment to 8.
717 2017-05-04  Martin Sebor  <msebor@redhat.com>
719         PR translation/80280
720         * builtins.c (expand_builtin_object_size): Add missing quoting to
721         %D and like directives.
722         * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
723         (hsa_type_for_tree_type): Same.
724         (verify_function_arguments): Same.
725         * symtab.c (symbol_table::change_decl_assembler_name): Same.
726         * varasm.c (get_section): Same.
727         (mark_weak): Same.
729 2017-05-04  Martin Sebor  <msebor@redhat.com>
731         PR translation/80280
732         * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
734 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
736         * config/aarch64/aarch64.c (generic_addrcost_table):
737         Change HI/TI mode setting.
739 2017-05-04  Martin Jambor  <mjambor@suse.cz>
741         PR tree-optimization/80622
742         * tree-sra.c (comes_initialized_p): New function.
743         (build_accesses_from_assign): Only set write lazily when
744         comes_initialized_p is false.
745         (analyze_access_subtree): Use comes_initialized_p.
746         (propagate_subaccesses_across_link): Assert !comes_initialized_p
747         instead of testing for PARM_DECL.
749 2017-05-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
751         * config/aarch64/aarch64.md (prefetch); Adjust predicate and
752         constraint on operand 0 to allow more general addressing modes.
753         Adjust output template.
754         * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
755         New function.
756         * config/aarch64/aarch64-protos.h
757         (aarch64_address_valid_for_prefetch_p): Declare prototype.
758         * config/aarch64/constraints.md (Dp): New address constraint.
759         * config/aarch64/predicates.md (aarch64_prefetch_operand): New
760         predicate.
762 2017-05-04  Jan Hubicka  <hubicka@ucw.cz>
764         * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
765         update use of estimate_ipcp_clone_size_and_time.
766         (estimate_local_effects): Update use of
767         estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
768         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
769         * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
770         Return nonspecialized time.
772 2017-05-04  Richard Biener  <rguenther@suse.de>
774         * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
775         for the last VUSE which def dominates the PHI.  Directly call
776         maybe_skip_until.
777         (get_continuation_for_phi_1): Remove.
779 2017-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
781         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
782         to explain the use of truncating division.  Cap the number of
783         iterations to the maximum given by nb_iterations_upper_bound,
784         if defined.
786 2017-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
788         * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
789         * configure: Regenerate.
790         * config.in: Regenerate.
791         * config/i386/driver-mingw32.c: new file.
792         * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
793         * config.host: Link driver-mingw32.o on MinGW host.
794         * doc/install.texi: Document new --enable-mingw-wildcard configure
795         option.
797 2017-05-04  Marek Polacek  <polacek@redhat.com>
799         PR tree-optimization/80612
800         * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
802 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
803             Andre Simoes Dias Vieira  <andre.simoesdiasvieira@arm.com>
805         * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
806         (movt splitter): Likewise.
807         * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
808         to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
809         (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
810         block for Thumb-1 with MOVT.
811         (thumb2_legitimate_address_p): Move code block ...
812         (can_avoid_literal_pool_for_label_p): ... into this new function.
813         (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
814         literal pool.
815         (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
816         * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
817         "M-profile targets with the MOVT instruction".
819 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
821         * gcc/config/arm/arm-builtins.c (arm_init_builtins): Rename
822         __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
823         __builtin_arm_stfscr to __builtin_arm_set_fpscr.
825 2017-05-04  Martin Liska  <mliska@suse.cz>
827         * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
828         variable cond_code.
830 2017-05-04  Richard Biener  <rguenther@suse.de>
832         * tree.c (array_at_struct_end_p): Handle arrays at struct
833         end with flexarrays more conservatively.  Refactor and treat
834         arrays of arrays or aggregates more strict.  Fix
835         VIEW_CONVERT_EXPR handling.  Remove allow_compref argument.
836         * tree.c (array_at_struct_end_p): Adjust prototype.
837         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
838         * gimple-fold.c (get_range_strlen): Likewise.
839         * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
841 2017-05-04  Richard Biener  <rguenther@suse.de>
843         PR tree-optimization/31130
844         * tree-vrp.c (needs_overflow_infinity): Remove as always returning
845         false.
846         (supports_overflow_infinity): Likewise.
847         (is_negative_overflow_infinity): Likewise.
848         (is_positive_overflow_infinity): Likewise.
849         (is_overflow_infinity): Likewise.
850         (stmt_overflow_infinity): Likewise.
851         (overflow_infinity_range_p): Likewise.
852         (usable_range_p): Remove as always returning true.
853         (make_overflow_infinity): Remove.
854         (negative_overflow_infinity): Likewise.
855         (positive_overflow_infinity): Likewise.
856         (avoid_overflow_infinity): Likewise.
857         (set_value_range): Adjust accordingly.
858         (set_value_range_to_nonnegative): Likewise, remove now unused
859         overflow_infinity arg.
860         (vrp_operand_equal_p): Adjust.
861         (update_value_range): Likewise.
862         (range_int_cst_singleton_p): Likewise.
863         (operand_less_p): Likewise.
864         (compare_values_warnv): Likewise.
865         (extract_range_for_var_from_comparison_expr): Likewise.
866         (vrp_int_const_binop): Likewise.
867         (zero_nonzero_bits_from_vr): Likewise.
868         (extract_range_from_multiplicative_op_1): Likewise.
869         (extract_range_from_binary_expr_1): Likewise.
870         (extract_range_from_unary_expr): Likewise.
871         (extract_range_from_comparison): Likewise.
872         (extract_range_basic): Likewise.
873         (adjust_range_with_scev): Likewise.
874         (compare_ranges): Likewise.
875         (compare_range_with_value): Likewise.
876         (dump_value_range): Likewise.
877         (test_for_singularity): Likewise, remove strict_overflow_p parameter
878         never used.
879         (simplify_cond_using_ranges): Adjust.
881 2017-05-04  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
883         * brig-builtins.def: Added a builtin for class_f64.
884         * builtin-types.def: Added a builtin type needed by class_f64.
886 2017-05-03  Jason Merrill  <jason@redhat.com>
888         * timevar.def: Add TV_CONSTEXPR.
890 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
892         * common.opt (fdiagnostics-parseable-fixits): Fix typo.
894 2017-05-03  Martin Jambor  <mjambor@suse.cz>
896         * ipa-prop.c (ipa_update_after_lto_read): Removed.
897         * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
898         * ipa-cp.c (ipcp_propagate_stage): Do not call
899         ipa_update_after_lto_read.
900         * ipa-inline.c (ipa_inline): Likewise.
902 2017-05-03  Martin Jambor  <mjambor@suse.cz>
904         * ipa-prop.h (ipa_edge_args): Make a class.  Mark with for_user GTY
905         tag.  Added a default constructor and a destructor.
906         (ipa_edge_args_sum_t): New class;
907         (ipa_edge_args_sum): Declare.
908         (ipa_edge_args_vector): Remove declaration.
909         (IPA_EDGE_REF): Use ipa_edge_args_sum.
910         (ipa_free_edge_args_substructures): Remove declaration.
911         (ipa_check_create_edge_args): Use ipa_edge_args_sum.
912         (ipa_edge_args_info_available_for_edge_p): Likewise.
913         * ipa-prop.c (ipa_edge_args_vector): Removed.
914         (edge_removal_hook_holder): Likewise.
915         (edge_duplication_hook_holder): Likewise.
916         (ipa_edge_args_sum): New variable.
917         (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
918         ipa_edge_args_vector.
919         (ipa_free_edge_args_substructures): Likewise.
920         (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
921         ipa_edge_args_vector.
922         (ipa_edge_removal_hook): Turned into method
923         ipa_edge_args_sum_t::remove.
924         (ipa_edge_duplication_hook): Turned into method
925         ipa_edge_args_sum_t::duplicate.
926         (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
927         registering edge hooks.
928         (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
929         * ipa-inline-analysis.c (estimate_function_body_sizes): Test
930         ipa_edge_args_sum instead of ipa_edge_args_vector.
931         * ipa-profile.c (ipa_profile): Likewise.
933 2017-05-03  Martin Jambor  <mjambor@suse.cz>
935         * symbol-summary.h (function_summary): New method exists.
936         (function_summary::symtab_removal): Deallocate through release.
937         (call_summary): New class.
938         (gt_ggc_mx): New overload.
939         (gt_pch_nx): Likewise.
940         (gt_pch_nx): Likewise.
942 2017-05-03  Jeff Law  <law@redhat.com>
944         PR tree-optimization/78496
945         * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
946         from simplify_cond_using_ranges.  Split off code to walk
947         backwards through casts into ...
948         (simplify_cond_using_ranges_2): New function.
949         (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
950         (execute_vrp): After identifying jump threads, call
951         simplify_cond_using_ranges_2.
953 2017-05-03  Jan Hubicka  <hubicka@ucw.cz>
955         PR bootstrap/80609
956         * ipa-inline.h (inline_summary): Add ctor.
957         (create_ggc): Do not use ggc_cleared_alloc.
959 2017-05-03  Jeff Downs  <heydowns@somuchpressure.net>
960             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
962         * gcc.c (handle_braces): Support escaping in switch matching
963         text.
964         * doc/invoke.texi (Spec Files): Document it.
965         Remove superfluous @code markup in items.
967 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
969         * diagnostic-show-locus.c (struct column_range): New struct.
970         (get_affected_columns): New function.
971         (get_printed_columns): New function.
972         (struct correction): New struct.
973         (correction::ensure_capacity): New function.
974         (correction::ensure_terminated): New function.
975         (struct line_corrections): New struct.
976         (line_corrections::~line_corrections): New dtor.
977         (line_corrections::add_hint): New function.
978         (layout::print_trailing_fixits): Reimplement in terms of the new
979         classes.
980         (selftest::test_overlapped_fixit_printing): New function.
981         (selftest::diagnostic_show_locus_c_tests): Call it.
983 2017-05-03  Nathan Sidwell  <nathan@acm.org>
985         Canonicalize canonical type hashing
986         * tree.h (type_hash_canon_hash): Declare.
987         * tree.c (type_hash_list, attribute_hash_list): Move into
988         type_hash_canon_hash.
989         (build_type_attribute_qual_variant): Break out hash code calc into
990         type_hash_canon_hash.
991         (type_hash_canon_hash): New.  Generic type hash computation.
992         (build_range_type_1, build_array_type_1, build_function_type,
993         build_method_type_directly, build_offset_type, build_complex_type,
994         make_vector_type): Call it.
996 2017-05-03  Richard Biener  <rguenther@suse.de>
998         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
999         When all DRs have unknown misaligned do not always peel
1000         when there is a store but apply the same costing model as if
1001         there were only loads.
1003 2017-05-03  Richard Biener  <rguenther@suse.de>
1005         Revert
1006         PR tree-optimization/80492
1007         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
1008         compare_base_decls returning dont-know properly.
1010 2017-05-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1012         * config/arm/iterators.md (CCSI): New mode iterator.
1013         (arch): New mode attribute.
1014         * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
1015         (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
1016         (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This.  Use CCSI
1017         code iterator for success result mode.
1018         * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
1019         the corresponding new insn generators.
1021 2017-05-03  Bin Cheng  <bin.cheng@arm.com>
1023         Revert r247509
1024         2017-05-02  Bin Cheng  <bin.cheng@arm.com>
1025         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
1027 2017-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1029         * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
1030         (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
1031         (DDR_A): Wrap DDR argument in brackets.
1032         (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
1033         (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
1034         (DDR_REVERSED_P): Likewise.
1036 2017-05-03  Jakub Jelinek  <jakub@redhat.com>
1038         PR tree-optimization/79472
1039         * tree-switch-conversion.c (struct switch_conv_info): Add
1040         contiguous_range and default_case_nonstandard fields.
1041         (collect_switch_conv_info): Compute contiguous_range and
1042         default_case_nonstandard fields, don't clear final_bb if
1043         contiguous_range and only the default case doesn't have the required
1044         structure.
1045         (check_all_empty_except_final): Set default_case_nonstandard instead
1046         of failing if contiguous_range and the default case doesn't have empty
1047         block.
1048         (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
1049         and only the default case doesn't have the required constants.  Skip
1050         virtual phis.
1051         (gather_default_values): Skip virtual phis.  Allow non-NULL CASE_LOW
1052         if default_case_nonstandard.
1053         (build_constructors): Build constant 1 just once.  Assert that default
1054         values aren't inserted in between cases if contiguous_range.  Skip
1055         virtual phis.
1056         (build_arrays): Skip virtual phis.
1057         (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
1058         (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
1059         Handle virtual phis.
1060         (gen_inbound_check): Handle default_case_nonstandard case.
1061         (process_switch): Adjust check_final_bb caller.  Call
1062         gather_default_values with the first non-default case instead of
1063         default case if default_case_nonstandard.
1065 2017-05-02  Nathan Sidwell  <nathan@acm.org>
1067         * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
1068         check.  Fix formatting.
1070 2017-05-02  Jan Hubicka  <hubicka@ucw.cz>
1072         * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
1073         errors when comparing specialized and unspecialized times.
1075 2017-05-02  David Malcolm  <dmalcolm@redhat.com>
1077         * diagnostic-show-locus.c
1078         (layout::should_print_annotation_line_p): Make private.
1079         (layout::print_annotation_line): Make private.
1080         (layout::annotation_line_showed_range_p): Make private.
1081         (layout::show_ruler): Make private.
1082         (layout::print_source_line): Make private.  Pass in line and
1083         line_width, rather than calling location_get_source_line.  Drop
1084         returned value.
1085         (layout::print_leading_fixits): New method.
1086         (layout::print_any_fixits): Rename to...
1087         (layout::print_trailing_fixits): ...this, and make private.
1088         Don't print newline fixits.
1089         (diagnostic_show_locus): Move logic for printing one row into...
1090         (layout::print_line): ...this new function.  Move the
1091         location_get_source_line call and error-handling from
1092         print_source_line to here.  Call print_leading_fixits, and rename
1093         print_any_fixits to print_trailing_fixits.
1094         (selftest::test_fixit_insert_containing_newline): Update now that
1095         newlines are partially supported.
1096         (selftest::test_fixit_insert_containing_newline_2): New test.
1097         (selftest::test_fixit_replace_containing_newline): Update comments.
1098         (selftest::diagnostic_show_locus_c_tests): Call the new test.
1099         * edit-context.c (class added_line): New class.
1100         (class edited_line): Describe newline handling in comment.
1101         (edited_line::actually_edited_p): New method.
1102         (edited_line::print_content): Delete redundant decl.
1103         (edited_line::m_predecessors): New field.
1104         (edited_file::print_content): Call edited_line::print_content.
1105         (edited_file::print_diff): Update to support newlines.
1106         (edited_file::print_diff_hunk): Likewise.
1107         (edited_file::print_run_of_changed_lines): New function.
1108         (edited_file::print_diff_line): Convert to...
1109         (print_diff_line): ...this.
1110         (edited_file::get_effective_line_count): New function.
1111         (edited_line::edited_line): Initialize new field m_predecessors.
1112         (edited_line::~edited_line): Clean up m_predecessors.
1113         (edited_line::apply_fixit): Handle newlines.
1114         (edited_line::get_effective_line_count): New function.
1115         (edited_line::print_content): New function.
1116         (edited_line::print_diff_lines): New function.
1117         (selftest::test_applying_fixits_insert_containing_newline): New
1118         test.
1119         (selftest::test_applying_fixits_replace_containing_newline): New
1120         test.
1121         (selftest::insert_line): New function.
1122         (selftest::test_applying_fixits_multiple_lines): Add example of
1123         inserting a line.
1124         (selftest::edit_context_c_tests): Call the new tests.
1126 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
1128         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
1129         parameter cand.  Update dump information.
1130         (get_computation_cost): Update uses.
1132 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
1134         * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
1135         (get_computation_aff): Reorder parameters.  Use get_computation_aff_1.
1136         (get_computation_at, rewrite_use_address): Update use of
1137         get_computation_aff.
1139 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
1141         * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
1142         (get_computation): Delete.
1143         (get_computation_cost): Implement like get_computation_cost_at.
1144         Use get_computation_at.
1145         (get_computation_cost_at): Delete.
1146         (rewrite_use_nonlinear_expr): Use get_computation_at.
1147         (rewrite_use_compare, remove_unused_ivs): Ditto.
1149 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
1151         * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
1153 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
1155         * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
1156         (ivopts_global_cost_for_size): Rename parameter and update uses.
1157         (iv_ca_recount_cost): Update uses.
1158         (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
1159         candidates seperately in n_invs and n_cands.
1160         (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
1162 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
1164         * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
1165         (find_inv_vars_cb): New.
1166         (find_depends): Renamed to ...
1167         (find_inv_vars): ... this.
1168         (add_candidate_1, force_var_cost): Call find_inv_vars.
1169         (split_address_cost, determine_group_iv_cost_cond): Ditto.
1171 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
1173         * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
1174         inv_vars.  Add inv_exprs.
1175         (struct iv_cand): Rename depends_on to inv_vars.
1176         (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
1177         max_inv_var_id/n_inv_var_uses.  Move max_inv_expr_id around.
1178         Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
1179         (dump_cand): Dump inv_vars.
1180         (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
1181         (record_invariant, find_depends, add_candidate_1): Ditto.
1182         (set_group_iv_cost, force_var_cost): Ditto.
1183         (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
1184         (get_computation_cost_at, get_computation_cost): Ditto.
1185         (determine_group_iv_cost_generic): Ditto.
1186         (determine_group_iv_cost_address): Ditto.
1187         (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
1188         (determine_group_iv_costs): Ditto.
1189         (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
1190         (iv_ca_set_remove_invariants): Renamed to ...
1191         (iv_ca_set_remove_invs): ... this.  Support inv_vars and inv_exprs.
1192         (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
1193         (iv_ca_set_add_invariants):  Renamed to ...
1194         (iv_ca_set_add_invs): ... this.  Support inv_vars and inv_exprs.
1195         (iv_ca_set_cp): Use iv_ca_set_add_invs.
1196         (iv_ca_has_deps): Support inv_vars and inv_exprs.
1197         (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
1198         (create_new_ivs): Remove useless dump.
1200 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
1202         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
1203         iv_cand code.
1204         (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
1205         (iv_ca_set_no_cp, create_new_iv): Ditto.
1207 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
1209         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
1211 2017-05-02  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
1213         * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
1214         function tree_check2.
1216 2017-05-02  Martin Liska  <mliska@suse.cz>
1218         * doc/gcov.texi: Add missing preposition.
1219         * gcov.c (function_info::function_info): Properly fill up
1220         all member variables.
1222 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
1224         * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
1226 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
1228         * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
1230 2017-05-02  Martin Liska  <mliska@suse.cz>
1232         PR lto/77954.
1233         * lto-streamer-in.c (lto_read_tree_1): Remove
1234         LTO_STREAMER_DEBUG.
1235         * lto-streamer.c (struct tree_hash_entry): Likewise.
1236         (struct tree_entry_hasher): Likewise.
1237         (tree_entry_hasher::hash): Likewise.
1238         (tree_entry_hasher::equal): Likewise.
1239         (lto_streamer_init): Likewise.
1240         (lto_orig_address_map): Likewise.
1241         (lto_orig_address_get): Likewise.
1242         (lto_orig_address_remove): Likewise.
1243         * lto-streamer.h: Likewise.
1244         * tree-streamer-in.c (streamer_alloc_tree): Likewise.
1245         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
1247 2017-05-02  Sebastian Peryt  <sebastian.peryt@intel.com>
1249         * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
1250         (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
1251         (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
1252         (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
1253         (mm_maskz_sub_round_ss, _mm_mask_add_sd)
1254         (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
1255         (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
1256         (mm_maskz_sub_ss): New intrinsics.
1257         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
1258         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
1259         * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
1260         (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
1261         (__builtin_ia32_subss_mask_round): New builtins.
1262         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
1263         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
1264         * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
1265         Renamed to ...
1266         (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
1267         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
1268         Changed to ...
1269         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
1270         ... this.
1272 2017-05-02  Martin Jambor  <mjambor@suse.cz>
1274         PR tree-optimization/78687
1275         * tree-sra.c (access): New field parent.
1276         (process_subtree_disqualification): New function.
1277         (disqualify_candidate): Call it.
1278         (build_accesses_from_assign): Reset write flag if creating an
1279         assighnment link.
1280         (build_access_subtree): Fill in parent field and also prpagate
1281         down grp_write flag.
1282         (create_artificial_child_access): New parameter set_grp_write, set
1283         grp_write to its value.
1284         (propagate_subaccesses_across_link): Also propagate grp_write flag
1285         values.
1286         (propagate_all_subaccesses): Push the closest parent back to work
1287         queue if add_access_to_work_queue returned true.
1289 2017-05-02  Richard Biener  <rguenther@suse.de>
1291         * common.opt (fstrict-overflow): Alias negative to fwrapv.
1292         * doc/invoke.texi (fstrict-overflow): Remove all traces of
1293         -fstrict-overflow documentation.
1294         * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
1295         (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
1296         flag_strict_overflow.
1297         * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
1298         * lto-opts.c (lto_write_options): Do not stream it.
1299         * lto-wrapper.c (merge_and_complain): Do not handle it.
1300         * opts.c (default_options_table): Do not set -fstrict-overflow.
1301         (finish_options): Likewise do not clear it when sanitizing.
1302         * simplify-rtx.c (simplify_const_relational_operation): Do not
1303         test flag_strict_overflow.
1305 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
1307         * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
1308         using enabled attribute.
1309         (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
1310         (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
1311         (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
1312         (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
1313         (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
1314         (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
1315         (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
1316         (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
1317         (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
1318         (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
1320 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
1322         * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
1324 2017-05-02  Richard Biener  <rguenther@suse.de>
1326         PR tree-optimization/80591
1327         Revert
1328         2017-04-10  Richard Biener  <rguenther@suse.de>
1330         * tree-ssa-structalias.c (find_func_aliases): Properly handle
1331         asm inputs.
1333 2017-05-02  Richard Biener  <rguenther@suse.de>
1335         PR tree-optimization/80549
1336         * tree-cfgcleanup.c (mfb_keep_latches): New helper.
1337         (cleanup_tree_cfg_noloop): Create forwarders to known loop
1338         headers if they do not have a preheader.
1340 2017-05-02  Martin Liska  <mliska@suse.cz>
1342         PR other/80589
1343         * common.opt: Fix typo.
1344         * doc/invoke.texi: Likewise.
1346 2017-05-01  Jan Beulich  <jbeulich@suse.com>
1348         * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
1349         swapping, add (x,x,m,x,n) alternative.
1351 2017-05-01  Nathan Sidwell  <nathan@acm.org>
1353         * calls.c (combine_pending_stack_adjustment_and_call): Remove
1354         unnecessary unadjusted_alignment check.
1356 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
1358         PR c++/80038
1359         * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
1360         operations here.
1361         * gimplify.c (gimplify_cilk_detach): New function.
1362         (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
1363         * tree-core.h: Document EXPR_CILK_SPAWN.
1364         * tree.h (EXPR_CILK_SPAWN): Define. 
1366 2017-05-01  David Malcolm  <dmalcolm@redhat.com>
1368         * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
1369         to use new fixit_hint representation, using the "replace" logic.
1370         (get_line_span_for_fixit_hint): Likewise.
1371         (layout::print_any_fixits): Likewise.
1372         (selftest::test_one_liner_many_fixits): Rename to...
1373         (selftest::test_one_liner_many_fixits_1): ...this, and update
1374         comment and expected output to reflect that the multiple fix-it
1375         hints are now consolidated into one insertion.
1376         (selftest::test_one_liner_many_fixits_2): New test.
1377         (selftest::test_diagnostic_show_locus_one_liner): Update for
1378         above.
1379         (selftest::test_fixit_consolidation): Update for fix-it API
1380         change.
1381         * diagnostic.c (print_parseable_fixits): Likewise.
1382         * edit-context.c (edited_line::m_line_events): Convert from
1383         auto_vec <line_event *> to auto_vec <line_event>.
1384         (class line_event): Convert from abstract base class to a concrete
1385         class, taking over the role of replace_event.
1386         (class insert_event): Delete.
1387         (class replace_event): Rename to class line_event.  Convert to
1388         half-open range.
1389         (edit_context::add_fixits): Reimplement.
1390         (edit_context::apply_insert): Delete.
1391         (edit_context::apply_replace): Rename to...
1392         (edit_context::apply_fixit): ...this.  Convert to half-open range.
1393         (edited_file::apply_insert): Delete.
1394         (edited_file::apply_replace): Rename to...
1395         (edited_file::apply_fixit): ...this.
1396         (edited_line::~edited_line): Drop deletion of events.
1397         (edited_line::apply_insert): Delete.
1398         (edited_line::apply_replace): Rename to...
1399         (edited_line::apply_fixit): ...this.  Convert to half-open range.
1400         Update for change to type of m_line_events.
1401         * edit-context.h (edit_context::apply_insert): Delete.
1402         (edit_context::apply_replace): Rename to...
1403         (edit_context::apply_fixit): ...this.
1405 2017-05-01  Martin Sebor  <msebor@redhat.com>
1407         * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
1408         known.
1410 2017-05-01  Uros Bizjak  <ubizjak@gmail.com>
1412         PR target/68491
1413         * config/i386/cpuid.h (__get_cpuid): Always return 0 when
1414         __get_cpuid_max returns 0.
1415         (__get_cpuid_count): Ditto.
1417 2017-05-01  Eric Botcazou  <ebotcazou@adacore.com>
1419         * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
1420         replacement expression is another instance of one of its arguments.
1422 2017-05-01  Jakub Jelinek  <jakub@redhat.com>
1424         PR target/79430
1425         * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
1426         check for stack push/pop autoinc.
1427         * config/i386/i386.c (ix86_agi_dependent): Return false
1428         if the only reason why modified_in_p returned true is that
1429         addr is SP based and set_insn is a push or pop.
1431 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
1433         * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
1434         overflow check.
1436 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
1438         PR ipa/79224
1439         * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
1440         (account_size_time): Use two predicates - exec_pred and
1441         nonconst_pred_ptr.
1442         (evaluate_conditions_for_known_args): Compute both clause and
1443         nonspec_clause.
1444         (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
1445         (inline_summary_t::duplicate): Update.
1446         (estimate_function_body_sizes): Caluculate exec and nonconst predicates
1447         separately.
1448         (compute_inline_parameters): Likewise.
1449         (estimate_edge_size_and_time): Update caluclation of time.
1450         (estimate_node_size_and_time): Compute both time and nonspecialized
1451         time.
1452         (estimate_ipcp_clone_size_and_time): Update.
1453         (inline_merge_summary): Update.
1454         (do_estimate_edge_time): Update.
1455         (do_estimate_edge_size): Update.
1456         (do_estimate_edge_hints): Update.
1457         (inline_read_section, inline_write_summary): Stream both new predicates.
1458         * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
1459         as argument.
1460         (compute_inlined_call_time): Cleanup.
1461         (big_speedup_p): Update.
1462         (edge_badness): Update.
1463         * ipa-inline.h (INLINE_TIME_SCALE): Remove.
1464         (size_time_entry): Replace predicate by exec_predicate and
1465         nonconst_predicate.
1466         (edge_growth_cache_entry): Cache both time nad nonspecialized time.
1467         (estimate_edge_time): Return also nonspec_time.
1468         (reset_edge_growth_cache): Update.
1470 2017-04-29  Jakub Jelinek  <jakub@redhat.com>
1472         PR rtl-optimization/80491
1473         * ifcvt.c (noce_process_if_block): When looking for x setter
1474         with missing else_bb, don't check only the insn right before
1475         cond_earliest, but look for the last insn that x is modified in
1476         within the same bb.
1478         PR rtl-optimization/80491
1479         * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
1481 2017-04-29  Marc Glisse  <marc.glisse@inria.fr>
1483         PR tree-optimization/80487
1484         * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
1486 2017-04-29  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1488         PR tree-optimization/79697
1489         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
1490         is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
1491         (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
1492         BUILT_IN_STRNDUP.
1493         * gimple-fold.c (gimple_fold_builtin_realloc): New function.
1494         (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
1496 2017-04-28  Martin Sebor  <msebor@redhat.com>
1498         PR tree-optimization/80523
1499         * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
1500         (init_target_to_host_charmap, target_to_host, target_strtol10): New
1501         functions.
1502         (maybe_warn, format_directive, parse_directive): Use new functions.
1503         (pass_sprintf_length::execute): Call init_target_to_host_charmap.
1505 2017-04-28  Marc Glisse  <marc.glisse@inria.fr>
1507         * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
1509 2017-04-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1511         * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
1512         target_header_dir): Set correctly.
1513         * configure: Regenerated.
1514         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
1515         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
1516         instead of SYSTEM_HEADER_DIR.
1518 2017-04-28  Jan Hubicka  <hubicka@ucw.cz>
1520         * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
1521         (estimate_local_effects): Likewise.
1522         * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
1523         edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
1524         * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
1525         estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
1526         do_estimate_edge_time, estimate_edge_time): Likewise.
1527         * ipa-inline-analysis.c (estimate_node_size_and_time,
1528         estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
1529         (estimate_time_after_inlining): Remove.
1531 2017-04-28  Martin Liska  <mliska@suse.cz>
1533         * doc/gcov.texi: Enhance documentation of gcov.
1535 2017-04-28  Martin Liska  <mliska@suse.cz>
1537         * doc/gcov.texi: Sort options in alphabetic order.
1538         * doc/gcov-dump.texi: Likewise.
1539         * doc/gcov-tool.texi: Likewise.
1540         * gcov.c (print_usage): Likewise.
1541         * gcov-dump.c (print_usage): Likewise.
1542         * gcov-tool.c (print_merge_usage_message): Likewise.
1543         (print_rewrite_usage_message): Likewise.
1544         (print_overlap_usage_message): Likewise.
1546 2017-04-28  Martin Liska  <mliska@suse.cz>
1548         PR gcov-profile/53915
1549         * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
1551 2017-04-28  Martin Liska  <mliska@suse.cz>
1553         PR gcov-profile/79891
1554         * gcov.c (add_line_counts): Assign BBs to lines just if the BB
1555         is marked by compiler as living on a line.
1556         (get_cycles_count): Remove usage of the union.
1557         (output_intermediate_file): Likewise.
1558         (find_source): Fix GNU coding style.
1559         (accumulate_line_counts): Remove old non-all block mode.
1560         (output_lines): Remove usage of the union.
1561         * profile.c (output_location): Include all BBs, even if
1562         belonging to a same line (and file) as a previous BB.
1564 2017-04-28  Martin Liska  <mliska@suse.cz>
1566         * gcov.c (process_args): Handle new argument 'w'.
1567         (read_graph_file): Assign ID to BBs.
1568         (output_branch_count): Display BB # if verbose flag is set.
1569         (output_lines): Likewise for arcs.
1570         (print_usage): Add '--verbose' option help.
1571         * doc/gcov.texi: Document --verbose (-w) option.
1573 2017-04-28  Martin Liska  <mliska@suse.cz>
1575         * gcov.c (struct block_location_info): New struct.
1576         (process_file): Fill up the new structure.
1577         (read_graph_file): Replace usage of encoding by the newly added
1578         struct.
1579         (add_line_counts): Likewise.
1580         (accumulate_line_counts): Remove usage of the union.
1581         (function_info::function_info): New function.
1582         (function_info::~function_info): Likewise.
1583         (process_file): Call delete instead of release_function.
1584         (release_function): Release the function.
1585         (release_structures): Call delete instead of release_function.
1586         (solve_flow_graph): Replace usage of num_blocks.
1587         (find_exception_blocks): Likewise.
1588         (output_lines): Fix GNU coding style.
1590 2017-04-28  Martin Liska  <mliska@suse.cz>
1592         PR driver/56469
1593         * coverage.c (coverage_remove_note_file): New function.
1594         * coverage.h: Declare the function.
1595         * toplev.c (finalize): Clean if an error has been seen.
1597 2017-04-28  Martin Liska  <mliska@suse.cz>
1599         PR gcov-profile/80031
1600         * gcov-dump.c (tag_blocks): Just print number of basic blocks.
1601         * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
1602         * gcov.c (read_graph_file): Read just number of blocks.
1603         * profile.c (branch_prob): Do not stream 0 flags per a basic
1604         block.
1606 2017-04-28  Martin Liska  <mliska@suse.cz>
1608         * gcov-dump.c (tag_*): Add new argument to declarations.
1609         (dump_gcov_file): Likewise.
1610         (tag_blocks): Add and use new argument depth.
1611         (tag_arcs): Likewise.
1612         (tag_lines): Likewise.
1613         (tag_counters): Likewise.
1614         (tag_summary): Likewise.
1615         (dump_working_sets): Use depth to do a proper indentation.
1617 2017-04-28  Jakub Jelinek  <jakub@redhat.com>
1619         PR bootstrap/80531
1620         * cgraph.h (symtab_node::debug_symtab): No longer inline.
1621         * symtab.c (symtab_node::debug_symtab): Move definition here.
1623 2017-04-28  Richard Biener  <rguenther@suse.de>
1625         * lto-streamer.h (LTO_major_version): Bump to 7.
1627 2017-04-28  Richard Biener  <rguenther@suse.de>
1629         * tree-vrp.c (assert_info): New struct.
1630         (add_assert_info): New helper.
1631         (register_edge_assert_for_2): Refactor to add asserts to a vector
1632         of assert_info.
1633         (register_edge_assert_for_1): Likewise.
1634         (register_edge_assert_for): Likewise.
1635         (finish_register_edge_assert_for): New helper actually registering
1636         asserts where live on edge.
1637         (find_conditional_asserts): Adjust.
1638         (find_switch_asserts): Likewise.
1639         (evrp_dom_walker::try_find_new_range): Generalize.
1640         (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
1642 2017-04-27  Marek Polacek  <polacek@redhat.com>
1644         PR sanitizer/80349
1645         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
1646         arg10 and arg11 to itype.
1648 2017-04-27  Jonathan Wakely  <jwakely@redhat.com>
1650         * doc/extend.texi (Object Size Checking): Improve grammar.
1652 2017-04-27  Richard Earnshaw  <rearnsha@arm.com>
1654         PR target/80530
1655         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
1656         that the logic for permitting reciprocal estimates matches that
1657         in use_rsqrt_p.
1659 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
1661         PR c++/80534
1662         * tree.c (type_cache_hasher::equal): Only compare
1663         TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
1664         (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
1665         non-aggregate element types.
1666         * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
1667         about the flag on ARRAY_TYPEs in the comment, formatting fix.
1669 2017-04-27  Richard Biener  <rguenther@suse.de>
1671         PR middle-end/80533
1672         * emit-rtl.c (set_mem_attributes_minus_bitpos): When
1673         stripping ARRAY_REFs from MEM_EXPR make sure we're not
1674         keeping a reference to a trailing array.
1676 2017-04-27  Richard Biener  <rguenther@suse.de>
1678         PR middle-end/80539
1679         * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
1680         being in loop-closed SSA form conservatively.
1681         (chrec_fold_multiply_poly_poly): Likewise.
1683 2017-04-27  Tamar Christina  <tamar.christina@arm.com>
1685         PR middle-end/79665
1686         * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
1687         CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
1689 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
1691         PR target/77728
1692         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
1693         (aarch64_function_arg_alignment): Return unsigned int again, but still
1694         ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
1695         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
1696         Don't emit -Wpsabi note.
1697         (aarch64_function_arg_boundary): Likewise.
1698         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
1699         caller.
1701 2017-04-26  Nathan Sidwell  <nathan@acm.org>
1703         * tree.h (crc32_unsigned_n): Declare.
1704         (crc32_unsigned, crc32_unsigned): Make inline.
1705         * tree.c (crc32_unsigned_bits): Replace with ...
1706         (crc32_unsigned_n): ... this.
1707         (crc32_unsigned, crc32_byte): Remove.
1708         (crc32_string): Remove unnecessary braces.
1710 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
1712         * ipa-cp.c (estimate_local_effects): Convert sreal to int.
1713         * ipa-inline-analysis.c (MAX_TIME): Remove.
1714         (account_size_time): Use sreal for time.
1715         (dump_inline_summary): Update.
1716         (estimate_function_body_sizes): Update.
1717         (estimate_edge_size_and_time): Update.
1718         (estimate_calls_size_and_time): Update.
1719         (estimate_node_size_and_time): Update.
1720         (inline_merge_summary): Update.
1721         (inline_update_overall_summary): Update.
1722         (estimate_time_after_inlining): Update.
1723         (inline_read_section): Update.
1724         (inline_write_summary): Update.
1725         * ipa-inline.c (compute_uninlined_call_time): Update.
1726         (compute_inlined_call_time): Update.
1727         (recursive_inlining): Update.
1728         (inline_small_functions): Update.
1729         (dump_overall_stats): Update.
1730         * ipa-inline.h: Include sreal.h.
1731         (size_time_entry): Turn time to sreal.
1732         (inline_summary): Turn self_time nad time to sreal.
1734 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
1736         * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
1737         data-streamer.h
1738         (sreal::stream_out, sreal::stream_in): New.
1739         * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
1741 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
1743         * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
1744         environment.
1746 2017-04-25  Uros Bizjak  <ubizjak@gmail.com>
1748         PR target/70799
1749         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
1750         Handle ASHIFTRT.
1751         (dimode_scalar_chain::compute_convert_gain): Ditto.
1752         (dimode_scalar_chain::make_vector_copies): Ditto.
1753         (dimode_scalar_chain::convert_reg): Ditto.
1754         (dimode_scalar_chain::convert_insn): Ditto.
1755         * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
1756         (VI248_AVX512BW_1): New mode iterator.
1757         (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
1758         <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
1759         mode iterator.
1761 2017-04-25  Martin Sebor  <msebor@redhat.com>
1763         PR tree-optimization/80497
1764         * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
1765         constants are representable in HOST_WIDE_INT.
1766         (parse_directive): Ditto.
1768 2017-04-25  Martin Sebor  <msebor@redhat.com>
1770         PR bootstrap/80486
1771         * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
1772         (new_zero_array): Adjust signature.
1773         (dom_info::dom_init): Used unsigned rather that size_t.
1774         (dom_info::dom_info): Same.
1776 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1777             Jakub Jelinek  <jakub@redhat.com>
1779         PR target/77728
1780         * config/arm/arm.c: Include gimple.h.
1781         (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
1782         returns negative, increment ncrn only if it returned positive.
1783         (arm_needs_doubleword_align): Return int instead of bool,
1784         ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
1785         members, but if there is any such non-FIELD_DECL
1786         > PARM_BOUNDARY aligned decl, return -1 instead of false.
1787         (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
1788         returns negative, increment nregs only if it returned positive.
1789         (arm_setup_incoming_varargs): Likewise.
1790         (arm_function_arg_boundary): Emit -Wpsabi note if
1791         arm_needs_doubleword_align returns negative, return
1792         DOUBLEWORD_ALIGNMENT only if it returned positive.
1794 2017-04-25  Marek Polacek  <polacek@redhat.com>
1796         PR sanitizer/80349
1797         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
1798         first argument to type.
1800 2017-04-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
1802         PR target/80482
1803         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
1804         type checks to test for compatibility instead of equality.
1806 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1807             Jakub Jelinek  <jakub@redhat.com>
1809         PR target/77728
1810         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
1811         type.
1812         (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
1813         struct.  Ignore DECL_ALIGN of decls other than FIELD_DECL for
1814         the alignment computation, but return their maximum in warn_alignment.
1815         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
1816         Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
1817         is smaller.
1818         (aarch64_function_arg_boundary): Likewise.  Simplify using MIN/MAX.
1819         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
1820         caller.
1822 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
1824         * config/arc/simdext.md (dmpyh): Fix typo.
1826 2017-04-25  Richard Biener  <rguenther@suse.de>
1828         PR tree-optimization/80492
1829         * alias.c (compare_base_decls): Handle registers with asm
1830         specification conservatively.
1831         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
1832         compare_base_decls returning dont-know properly.
1834 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
1836         * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
1837         (legitimate_offset_address_p): New function.
1838         (arc_legitimate_address_p): Use above function.
1840 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
1842         * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
1844 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
1846         * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
1847         ACCH registers whenever they are available.
1849 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
1851         * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
1852         double regs fix when not used.
1854 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
1856         * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
1857         core registers.
1858         (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
1859         (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
1861 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
1863         * config/arc/arc.c (arc_output_addsi): Check for h-register class
1864         when emitting short ADD instructions.
1866 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
1868         * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
1869         constraint.
1870         (cmpsi_cc_c_insn): Likewise.
1871         (cbranchsi4_scratch): Compute proper instruction length using
1872         compact_hreg_operand.
1873         * config/arc/predicates.md (compact_hreg_operand): New predicate.
1875 2017-04-25  Richard Biener  <rguenther@suse.de>
1877         PR middle-end/80509
1878         * passes.c (pass_manager::pass_manager): Initialize
1879         m_name_to_pass_map.
1881 2017-04-25  Richard Biener  <rguenther@suse.de>
1883         PR tree-optimization/79201
1884         * tree-ssa-sink.c (statement_sink_location): Handle calls.
1886 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1888         PR target/80464
1889         * config/s390/vector.md: Split MEM->GPR vector moves for
1890         non-s_operand addresses.
1892 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1894         PR target/79895
1895         * config/s390/predicates.md (reload_const_wide_int_operand): New
1896         predicate.
1897         * config/s390/s390.md ("movti"): Remove d/P alternative.
1898         ("movti_bigconst"): New pattern definition.
1900 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1902         PR target/80080
1903         * s390-protos.h (s390_expand_cs_hqi): Removed.
1904         (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
1905         * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
1906         modes as well as CCZ1mode and CCZmode.
1907         (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
1908         signature of s390_emit_compare_and_swap.
1909         (s390_expand_cs_hqi): Likewise, make static.
1910         (s390_expand_cs_tdsi): Generate an explicit compare before trying
1911         compare-and-swap, in some cases.
1912         (s390_expand_cs): Wrapper function.
1913         (s390_expand_atomic_exchange_tdsi): New backend specific expander for
1914         atomic_exchange.
1915         (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
1916         * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
1917         patterns for small and large integers.  Forbid symref memory operands.
1918         Move expander to s390.c.  Require cc register.
1919         ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
1920         ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
1921         ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
1922         ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
1923         symref memory operands.  Remove CC mode and call s390_match_ccmode
1924         instead.
1925         ("atomic_exchange<mode>"): Allow and implement all integer modes.
1927 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1929         * config/s390/s390.md (define_peephole2): New peephole to help
1930         combining the load-and-test pattern with volatile memory.
1932 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1934         * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
1935         with CCZmode for TARGET_Z196.
1937 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
1939         PR rtl-optimization/80501
1940         * combine.c (make_compound_operation_int): Set subreg_code to SET
1941         even for AND with mask of the sign bit of mode.
1943         PR rtl-optimization/80500
1944         * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
1945         sum's initial value.
1947 2017-04-25  Julian Brown  <julian@codesourcery.com>
1948             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
1950         * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
1952 2017-04-25  Marc Glisse  <marc.glisse@inria.fr>
1954         * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
1956 2017-04-25  Julian Brown  <julian@codesourcery.com>
1957             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
1959         * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
1960         (thunderx2t99_sha): New Reservation.
1962 2017-04-25  Julian Brown  <julian@codesourcery.com>
1963             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
1965         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
1966         type for 1-element load.
1968 2017-04-24  Marc Glisse  <marc.glisse@inria.fr>
1970         * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
1972 2017-04-24  Martin Jambor  <mjambor@suse.cz>
1974         PR tree-optimization/80293
1975         * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
1976         char arrays not totally scalarizable if it is false.
1977         (analyze_all_variable_accesses): Pass correct value in the new
1978         parameter.  Add a statistics counter.
1980 2017-04-24  Jan Hubicka  <hubicka@ucw.cz>
1982         PR middle-end/79931
1983         * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
1985 2017-04-24  Richard Biener  <rguenther@suse.de>
1987         PR tree-optimization/80494
1988         * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
1989         out for complex types.
1991 2017-04-24  Richard Biener  <rguenther@suse.de>
1993         * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
1994         * tree-ssa-sccvn.c (print_scc): Print SCC size.
1995         (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
1996         (DFS): Adjust and never fail.
1997         (sccvn_dom_walker::fail): Remove.
1998         (sccvn_dom_walker::before_dom_children): Adjust.
1999         (run_scc_vn): Likewise and never fail.
2000         * tree-ssa-pre.c (pass_pre::execute): Adjust.
2001         (pass_fre::execute): Likewise.
2003 2017-04-24  Richard Biener  <rguenther@suse.de>
2005         PR tree-optimization/79725
2006         * tree-ssa-sink.c (statement_sink_location): Return whether
2007         failure reason was zero uses.  Move that check later.
2008         (sink_code_in_bb): Deal with zero uses by removing the stmt
2009         if possible.
2011 2017-04-24  Richard Biener  <rguenther@suse.de>
2013         PR c++/2972
2014         * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
2015         pointer-based references.
2017 2017-04-24  Richard Biener  <rguenther@suse.de>
2019         PR bootstrap/79814
2020         * pass_manager.h (pass_manager::operator new): Remove.
2021         (pass_manager::operator delete): Likewise.
2022         * passes.c (pass_manager::operator new): Remove.
2023         (pass_manager::operator delete): Likewise.
2024         (pass_manager::pass_manager): Zero individual pass members.
2026 2017-04-23  Uros Bizjak  <ubizjak@gmail.com>
2028         PR target/70799
2029         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
2030         <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
2031         Check "XEXP (src, 1)" operand here.
2032         <case PLUS, case MINUS, case IOR, case XOR, case AND>:
2033         Check "XEXP (src, 1)" operand here.
2034         (dimode_scalar_chain::make_vector_copies): Detect count register
2035         of a shift instruction.  Zero extend count register from QImode
2036         to DImode to satisfy vector shift pattern count operand predicate.
2037         Substitute vector shift count operand with a DImode copy.
2038         (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
2039         vector register.
2041 2017-04-21  Uros Bizjak  <ubizjak@gmail.com>
2043         * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
2044         Remove UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
2045         (*insvqi_1_mem_rex64): Move above insv<mode>_1.  Remove
2046         UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
2047         (UNSPEC_NOREX_MEM): Remove definition.
2049 2017-04-21  Richard Biener  <rguenther@suse.de>
2051         PR tree-optimization/79547
2052         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2053         Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
2054         bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
2055         without any constraints.
2057 2017-04-21  Richard Biener  <rguenther@suse.de>
2059         PR tree-optimization/78847
2060         * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
2062 2017-04-21  Richard Biener  <rguenther@suse.de>
2064         * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
2065         (build_distinct_type_copy): Likewise.
2066         (build_variant_type_copy): Likewise.
2067         * tree.c (build_qualified_type): Pass down mem-stat info.
2068         (build_distinct_type_copy): Likewise.
2069         (build_variant_type_copy): Likewise.
2071 2017-04-21  Richard Biener  <rguenther@suse.de>
2073         PR tree-optimization/80237
2074         * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
2075         defaulted to NULL.
2076         (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
2077         for a simplified result.
2079 2016-04-21  Richard Biener  <rguenther@suse.de>
2081         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
2082         sth as strict as a simple_iv but a chrec without symbols and an
2083         operand defined in the loop we are peeling (and not some subloop).
2084         (propagate_constants_for_unrolling): Propagate all constants.
2086 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
2088         PR target/79804
2089         * config/i386/i386.c (print_reg): Remove assert for disalowed
2090         regno values, call output_operand_lossage instead.
2092 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
2094         PR target/78090
2095         * config/i386/constraints.md (Yc): New register constraint.
2096         * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
2097         Use Yc constraint for alternative 2 of operand 0.  Remove
2098         preferred_for_speed attribute.
2100 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
2102         * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
2103         lastprivate clauses in SIMT case.
2105 2017-04-20  Volker Reichelt  <v.reichelt@netcologne.de>
2107         * doc/invoke.texi (-Wextra-semi): Document new warning option.
2109 2017-04-20  Richard Biener  <rguenther@suse.de>
2111         PR tree-optimization/57796
2112         * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
2113         as N scalar stores.
2114         (vect_model_load_cost): Cost gathers as N scalar loads.
2116 2017-04-20  Richard Biener  <rguenther@suse.de>
2118         * ggc-page.c (ggc_allocated_p): Rename to ...
2119         (safe_lookup_page_table_entry): ... this and return the lookup
2120         result.
2121         (gt_ggc_m_S): Use safe_lookup_page_table_entry.
2123 2017-04-20  Richard Biener  <rguenther@suse.de>
2125         PR tree-optimization/80453
2126         * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
2127         * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
2128         from the conditions.
2129         (vn_phi_eq): Pass them down.
2130         (vn_phi_lookup): Record them.
2131         (vn_phi_insert): Likewise.
2133 2017-04-20  Matthew Fortune  <matthew.fortune@imgtec.com>
2135         * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
2136         uninitialized variable warning to avoid buffer overrun.
2138 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
2140         PR other/71250
2141         * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
2142         is suppressed for '{ 0 }' in C.
2144 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
2146         * BASE-VER: Set to 8.0.0.
2148 2017-04-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2150         * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
2151         priority .init_array and .fini_array section with SECTION_NOTYPE
2152         flag.
2154 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
2156         PR middle-end/80423
2157         * tree.h (build_array_type): Add typeless_storage default argument.
2158         * tree.c (type_cache_hasher::equal): Also compare
2159         TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
2160         (build_array_type): Add typeless_storage argument, set
2161         TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
2162         recursive call.
2163         (build_nonshared_array_type): Adjust build_array_type_1 caller.
2164         (build_array_type): Likewise.  Add typeless_storage argument.
2166 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
2167             Jakub Jelinek  <jakub@redhat.com>
2169         PR tree-optimization/80426
2170         * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
2171         operation on symbolic operands, also compute the overflow for the
2172         invariant part when the operation degenerates into a negation.
2174 2017-04-19  Jakub Jelinek  <jakub@redhat.com>
2176         PR debug/80461
2177         * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
2178         Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
2180         PR debug/80436
2181         * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
2183 2017-04-19  Georg-Johann Lay  <avr@gjlay.de>
2185         PR target/80462
2186         * config/avr/avr.c (tree.h): Include it.
2187         (cgraph.h): Include it.
2188         (avr_encode_section_info): Don't warn for uninitialized progmem
2189         variable if it's just an alias.
2191 2017-04-19  Richard Biener  <rguenther@suse.de>
2193         PR ipa/65972
2194         * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
2195         when needed by AutoPGO.
2197 2017-04-19  Paulo J. Matos  <paulo@matos-sorge.com>
2199         PR lto/50345
2200         * doc/lto.texi: Remove an extra 'that'.
2202 2017-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
2204         PR rtl-optimization/80429
2205         * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
2206         are only used in debug insns.
2208 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
2209             Vladimir Makarov  <vmakarov@redhat.com>
2211         * config/sparc/predicates.md (input_operand): Add comment.  Return
2212         true for any memory operand when LRA is in progress.
2213         * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
2215 2017-04-18  Jeff Law  <law@redhat.com>
2217         PR target/74563
2218         * mips.md ({return,simple_return}_internal): Do not overwrite
2219         operands[0].
2221 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
2223         PR tree-optimization/80443
2224         * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
2225         instead of adding 1, subtract -1 and similarly instead of subtracting
2226         1 add -1.
2228 2017-04-18  Richard Sandiford  <richard.sandiford@arm.com>
2230         PR rtl-optimization/80357
2231         * haifa-sched.c (tmp_bitmap): New variable.
2232         (model_recompute): Handle duplicate use records.
2233         (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
2234         (free_global_sched_pressure_data): Free it.
2236 2017-04-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2238         Revert:
2239         2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2240         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
2241         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
2242         instead of SYSTEM_HEADER_DIR.
2244 2017-04-18  Jeff Law  <law@redhat.com>
2246         PR middle-end/80422
2247         * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
2248         predecessors after walking up the insn chain.
2250 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
2252         PR debug/80263
2253         * dwarf2out.c (modified_type_die): Try harder not to emit internal
2254         sizetype type into debug info.
2256 2017-04-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
2258         PR target/80099
2259         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
2260         unneeded test for TARGET_UPPER_REGS_SF.
2261         * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
2263 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
2265         PR sanitizer/80444
2266         * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
2267         instead of gsi_after_labels.
2269 2017-04-18  Jeff Law  <law@redhat.com>
2271         * regcprop.c (maybe_mode_change): Avoid creating copies of the
2272         stack pointer.
2274         Revert:
2275         2017-04-13  Jeff Law  <law@redhat.com>
2276         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
2277         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
2279 2017-04-18  Georg-Johann Lay  <avr@gjlay.de>
2281         PR target/79453
2282         * config/avr/avr.c (intl.h): Include it.
2283         (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
2285 2017-04-18  Martin Liska  <mliska@suse.cz>
2287         PR gcov-profile/78783
2288         * gcov-tool.c (gcov_output_files): Validate that destination
2289         file is either removed by the tool or by a user.
2291 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
2292             Guy Benyei  <guybe@mellanox.com>
2294         * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
2295         block, and do not negate it, the stored id is already negative.
2297 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
2299         * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
2301 2017-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
2303         PR target/80098
2304         * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
2305         masks of options that should be turned off if the VSX vector
2306         options are turned off.
2307         (OTHER_P8_VECTOR_MASKS): Likewise.
2308         (OTHER_VSX_VECTOR_MASKS): Likewise.
2309         * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
2310         rs6000_disable_incompatible_switches to validate no type switches
2311         like -mvsx.
2312         (rs6000_incompatible_switch): New function to disallow turning on
2313         other vector options if -mno-vsx, -mno-power8-vector, or
2314         -mno-power9-vector are specified.
2316 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
2318         * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
2320 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
2322         * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
2323         * config/arc/arc.c (arc_decl_pretend_args): Likewise.
2324         * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
2325         (ARG_POINTER_CFA_OFFSET): Likewise.
2327 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
2329         * config/arc/arc.c (arc_mode_dependent_address_p): Relax
2330         conditions to take advantage of various optimizations.
2332 2017-04-13  Jeff Law  <law@redhat.com>
2334         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
2335         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
2336         (zero_extendsidi2_dext): Likewise.
2338 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
2340         PR sanitizer/80403
2341         * fold-const.c (fold_ternary_loc): Revert
2342         use op0 instead of fold_convert_loc (loc, type, arg0) part of
2343         2017-04-12 change.
2345 2017-04-13  Vladimir Makarov  <vmakarov@redhat.com>
2347         PR rtl-optimization/80343
2348         * lra-remat.c (update_scratch_ops): Assign original hard reg to
2349         new scratch pseudo.
2351 2017-04-13  Denis Khalikov <d.khalikov@partner.samsung.com>
2353         PR sanitizer/80414
2354         * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
2355         to ubsan_encode_value.
2357 2017-04-13  Jeff Law  <law@redhat.com>
2359         * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
2360         appearing in DEBUG_INSNs.
2362 2017-04-13  Martin Liska  <mliska@suse.cz>
2364         PR gcov-profile/80413
2365         * gcov-io.c (gcov_write_string): Copy to buffer just when
2366         allocated size is greater than zero.
2368 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
2370         PR debug/80321
2371         * dwarf2out.c (decls_for_scope): Ignore declarations of
2372         current_function_decl in BLOCK_NONLOCALIZED_VARS.
2374 2017-04-12  Jan Hubicka  <hubicka@ucw.cz>
2376         PR lto/69953
2377         * ipa-visibility.c (non_local_p): Fix typos.
2378         (localize_node): When localizing symbol in same comdat group,
2379         dissolve the group only when we know external symbols are going
2380         to be privatized.
2381         (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
2383 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
2385         PR tree-optimization/79390
2386         * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
2387         order does not result in usable sequence, retry with reversed operand
2388         order.
2390         PR sanitizer/80403
2391         PR sanitizer/80404
2392         PR sanitizer/80405
2393         * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
2394         to fold_build2_loc.  Convert TREE_OPERAND (tem, 0) to type.  Use
2395         op0 instead of fold_convert_loc (loc, type, arg0).
2397 2017-04-12  Jeff Law  <law@redhat.com>
2399         * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
2400         has a delay slot in the generated code.
2402         * config/cris/cris.md (cris_preferred_reload_class): Return
2403         GENNONACR_REGS rather than GENERAL_REGS.
2405 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
2407         PR c/80163
2408         * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
2409         vs. ZERO_EXTEND based on signedness of treeop0's type rather than
2410         signedness of the result type.
2412 2017-04-12  Richard Biener  <rguenther@suse.de>
2413             Jeff Law  <law@redhat.com>
2415         PR tree-optimization/80359
2416         * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
2417         trim stores to TARGET_MEM_REFs.
2419 2017-04-12  Richard Biener  <rguenther@suse.de>
2421         PR tree-optimization/79390
2422         * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
2423         threading case even more.
2425 2017-04-12  Segher Boessenkool  <segher@kernel.crashing.org>
2427         PR target/80382
2428         * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
2429         for quad_address_p for TImode, instead of just not indexed_address.
2431 2017-04-12  Richard Biener  <rguenther@suse.de>
2432             Bernd Edlinger  <bernd.edlinger@hotmail.de>
2434         PR middle-end/79671
2435         * alias.c (component_uses_parent_alias_set_from): Handle
2436         TYPE_TYPELESS_STORAGE.
2437         (get_alias_set): Likewise.
2438         * tree-core.h (tree_type_common): Add typeless_storage flag.
2439         * tree.h (TYPE_TYPELESS_STORAGE): New macro.
2440         * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
2441         for types containing members with TYPE_TYPELESS_STORAGE.
2442         (place_field): Likewise.
2443         (layout_type): Likewise for ARRAY_TYPE.
2444         * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
2445         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
2446         TYPE_TYPELESS_STORAGE.
2447         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
2449 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
2451         PR sanitizer/80349
2452         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
2453         first argument to type.
2455 2017-04-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2457         PR target/80376
2458         PR target/80315
2459         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
2460         CONST0_RTX (mode) rather than const0_rtx where appropriate.
2461         (rs6000_expand_binop_builtin): Likewise.
2462         (rs6000_expand_ternop_builtin): Likewise; also add missing
2463         vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
2464         vshasigma built-ins.
2465         * doc/extend.texi: Document that vec_xxpermdi's third argument
2466         must be a constant.
2468 2017-04-11  Uros Bizjak  <ubizjak@gmail.com>
2470         * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
2471         Use shift_const cost parameter when calculating gain of STV shifts.
2473 2017-04-11  Vladimir Makarov  <vmakarov@redhat.com>
2475         PR rtl-optimization/70478
2476         * lra-constraints.c (process_alt_operands): Check memory for
2477         disfavoring memory insn operand.
2479 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
2481         PR middle-end/80100
2482         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
2483         left shift in unsigned HOST_WIDE_INT type.
2485         PR rtl-optimization/80385
2486         * simplify-rtx.c (simplify_unary_operation_1): Don't transform
2487         (not (neg X)) into (plus X -1) for complex or non-integral modes.
2489         PR libgomp/80394
2490         * omp-low.c (scan_omp_task): Don't optimize away empty tasks
2491         if they have any depend clauses.
2493 2017-04-11  Martin Liska  <mliska@suse.cz>
2495         PR ipa/80212
2496         * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
2497         * ipa-split.c (split_function): Create a local comdat symbol
2498         if caller is in a comdat group.
2500 2017-04-11  Martin Liska  <mliska@suse.cz>
2502         PR ipa/80212
2503         * ipa-cp.c (determine_versionability): Handle calls_comdat_local
2504         flags.
2506 2017-04-11  Martin Sebor  <msebor@redhat.com>
2508         PR middle-end/80364
2509         * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
2510         always use the int type.  Use INTEGRAL_TYPE_P() rather than testing
2511         for INTEGER_TYPE.
2512         (directive::set_width, directive::set_precision, format_character):
2513         Adjust.
2514         (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
2515         INTEGER_TYPE.
2517 2017-04-11  Richard Earnshaw  <rearnsha@arm.com>
2519         PR target/80389
2520         * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
2521         conflict, set target->arch_name instead of target->cpu_name.
2523 2017-04-11  Richard Biener  <rguenther@suse.de>
2525         PR tree-optimization/80374
2526         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
2527         build_zero_cst, remove fold_convertible_p check again.
2529 2017-04-11  Martin Liska  <mliska@suse.cz>
2531         PR sanitizer/70878
2532         * ubsan.c (instrument_object_size): Do not instrument register
2533         variables.
2535 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
2537         PR target/80381
2538         * config/i386/i386-builtin-types.def
2539         (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
2540         V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
2541         V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
2542         V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
2543         V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
2544         V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
2545         V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
2546         V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
2547         V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
2548         V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
2549         V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
2550         V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
2551         V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
2552         V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
2553         V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
2554         V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
2555         V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
2556         V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
2557         * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
2558         __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
2559         __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
2560         __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
2561         __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
2562         __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
2563         __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
2564         __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
2565         __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
2566         __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
2567         __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
2568         __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
2569         __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
2570         __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
2571         __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
2572         __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
2573         __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
2574         __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
2575         __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
2576         __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
2577         __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
2578         __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
2579         __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
2580         __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
2581         __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
2582         __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
2583         __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
2584         __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
2585         aliases.
2586         * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
2587         flag to second_arg_count, handle 4 argument function type _COUNT
2588         aliases, handle second_arg_count on second argument rather than last.
2590 2017-04-10  Jeff Law  <law@redhat.com>
2592         PR tree-optimization/80374
2593         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
2594         record anything if we can not convert integer_zero_node to the
2595         desired type.
2597 2017-04-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2599         PR target/80108
2600         * config/rs6000/rs6000.c (rs6000_option_override_internal):
2601         Enhance special handling given to the TARGET_P9_MINMAX option in
2602         relation to certain other options.
2604 2017-04-10  Bin Cheng  <bin.cheng@arm.com>
2606         PR tree-optimization/80153
2607         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
2608         remove POINTER_PLUS_EXPR's base part directly, rather than through
2609         aff_tree.
2611 2017-04-10  Richard Biener  <rguenther@suse.de>
2612             Bin Cheng  <bin.cheng@arm.com>
2614         PR tree-optimization/80153
2615         * tree-affine.c (aff_combination_to_tree): Get base pointer from
2616         the first element of pointer type aff_tree.  Build result expr in
2617         aff_tree's type.
2618         (add_elt_to_tree): Convert to type unconditionally.  Remove other
2619         fold_convert calls.
2620         * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
2621         (rewrite_use_nonlinear_expr): Check invariant using iv information.
2623 2017-04-10  Richard Biener  <rguenther@suse.de>
2625         * tree-ssa-structalias.c (find_func_aliases): Properly handle
2626         asm inputs.
2628 2017-04-10  Vladimir Makarov  <vmakarov@redhat.com>
2630         PR rtl-optimization/70478
2631         * lra-constraints.c (curr_small_class_check): New.
2632         (update_and_check_small_class_inputs): New.
2633         (process_alt_operands): Update curr_small_class_check.  Disfavor
2634         alternative insn memory operands.  Check available regs for small
2635         class operands.
2637 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
2639         PR target/80057
2640         * config/mips/mips.opt (-mvirt): Update description.
2641         * doc/invoke.texi (-mvirt): Likewise.
2643 2017-04-10  Richard Biener  <rguenther@suse.de>
2645         PR middle-end/80362
2646         * fold-const.c (fold_binary_loc): Look at unstripped ops when
2647         looking for NEGATE_EXPR in -A / -B to A / B folding.
2649 2017-04-10  Martin Liska  <mliska@suse.cz>
2651         PR gcov-profile/80224
2652         * gcov.c (print_usage): Fix usage string.
2653         (get_gcov_intermediate_filename): Remove.
2654         (output_gcov_file): Use both for normal and intermediate format.
2655         (generate_results): Do not initialize special file for
2656         intermediate format.
2658 2017-04-10  Richard Biener  <rguenther@suse.de>
2660         PR tree-optimization/80304
2661         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
2662         for safelen.
2664 2017-04-10  Nathan Sidwell  <nathan@acm.org>
2666         PR target/79905
2667         * config/rs6000/rs6000.c (rs6000_vector_type): New.
2668         (rs6000_init_builtins): Use it.
2670 2016-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2672         * config/arm/arm.md (<mrc>): Add mode to SET source.
2673         (<mrrc>): Likewise.
2675 2017-04-10  Richard Biener  <rguenther@suse.de>
2677         PR middle-end/80344
2678         * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
2680 2017-04-10  Jakub Jelinek  <jakub@redhat.com>
2682         PR target/80324
2683         * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
2684         _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
2685         _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
2686         _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
2687         _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
2688         _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
2689         _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
2690         _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
2691         _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
2692         _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
2693         _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
2694         _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
2695         _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
2696         _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
2697         _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
2698         _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
2699         _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
2700         _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
2701         _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
2702         _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
2703         _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
2704         _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
2705         _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
2707 2017-04-08  Vladimir Makarov  <vmakarov@redhat.com>
2709         PR rtl-optimization/70478
2710         * lra-constraints.c: Reverse the last patch.
2712 2017-04-08  Andreas Tobler  <andreast@gcc.gnu.org>
2714         * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
2715         Add comment for WCHAR_T.
2717 2017-04-08  Martin Liska  <mliska@suse.cz>
2719         Revert:
2720         2017-04-07  Martin Liska  <mliska@suse.cz>
2722         PR ipa/80212
2723         * ipa-split.c (split_function): Add function part to a same comdat
2724         group.
2726 2017-04-08  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
2728         PR target/80358
2729         * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
2731 2017-04-07  Pat Haugen  <pthaugen@us.ibm.com>
2733         * rs6000/rs6000.c (vec_load_pendulum): Rename...
2734         (vec_pairing): ...to this.
2735         (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
2736         (rs6000_sched_init): Adjust for name change.
2737         (struct rs6000_sched_context): Likewise.
2738         (rs6000_init_sched_context): Likewise.
2739         (rs6000_set_sched_context): Likewise.
2741 2017-04-07  Jakub Jelinek  <jakub@redhat.com>
2743         PR target/80322
2744         PR target/80323
2745         PR target/80325
2746         PR target/80326
2747         * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
2748         intrinsics.
2749         * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
2750         _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
2751         _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
2753 2017-04-07  Andreas Tobler  <andreast@gcc.gnu.org>
2755         * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
2757 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
2759         PR rtl-optimization/70703
2760         * ira-color.c (update_conflict_hard_regno_costs): Use
2761         int64_t instead of HOST_WIDE_INT.
2763 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
2765         PR rtl-optimization/70478
2766         * lra-constraints.c (process_alt_operands): Disfavor alternative
2767         insn memory operands.
2769 2017-04-07  Jeff Law  <law@redhat.com>
2771         * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
2772         CALL and NOTE_INSN_CALL_ARG_LOCATION.
2774 2017-04-07  Martin Liska  <mliska@suse.cz>
2776         PR target/79889
2777         * config/aarch64/aarch64.c (aarch64_process_target_attr):
2778         Show error message instead of an ICE.
2780 2017-04-07  Martin Liska  <mliska@suse.cz>
2782         PR ipa/80212
2783         * ipa-split.c (split_function): Add function part to a same comdat
2784         group.
2786 2017-04-07  Richard Biener  <rguenther@suse.de>
2788         PR middle-end/80341
2789         * tree.c (get_unwidened): Also handle ! for_type case for
2790         INTEGER_CSTs.
2791         * convert.c (do_narrow): Split out from ...
2792         (convert_to_integer_1): ... here.  Do not pass final truncation
2793         type to get_unwidened for TRUNC_DIV_EXPR.
2795 2017-04-07  Richard Biener  <rguenther@suse.de>
2797         * tree-affine.c (wide_int_ext_for_comb): Take type rather
2798         than aff_tree.
2799         (aff_combination_const): Adjust.
2800         (aff_combination_scale): Likewise.
2801         (aff_combination_add_elt): Likewise.
2802         (aff_combination_add_cst): Likewise.
2803         (aff_combination_convert): Likewise.
2804         (add_elt_to_tree): Likewise.  Remove unused argument.
2805         (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
2807 2017-04-07  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2809         * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
2810         definition.
2811         * config/arm/arm.c (arm_default_short_enums): Use
2812         ARM_DEFAULT_SHORT_ENUMS.
2813         * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
2815 2017-04-06  Jakub Jelinek  <jakub@redhat.com>
2817         PR debug/80234
2818         * dwarf2out.c (gen_member_die): Handle C++17 inline static data
2819         members with redundant out-of-class redeclaration.
2821 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
2823         PR target/80286
2824         * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
2825         * config/i386/i386.md (*zero_extendsidi2):
2826         Add (?*x,*x) and (?*v,*v) alternatives.
2828 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
2830         PR target/79733
2831         * config/i386/i386.c (ix86_expand_builtin)
2832         <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
2833         mode from insn data. Convert operands to insn operand mode.
2834         Copy operands that don't satisfy insn predicate to a register.
2836 2017-04-06  Sam Thursfield  <sam.thursfield@codethink.co.uk>
2838         * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
2839         Update comments.
2841 2017-04-06  Richard Biener  <rguenther@suse.de>
2843         PR tree-optimization/80334
2844         * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
2845         preserve alignment of accesses.
2847 2017-04-06  Richard Biener  <rguenther@suse.de>
2849         PR tree-optimization/80262
2850         * tree-sra.c (build_ref_for_offset): Preserve address-space
2851         information.
2852         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
2853         Drop useless address-space information on MEM_REF offsets.
2855 2017-04-05  Andreas Schwab  <schwab@linux-m68k.org>
2857         * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
2859 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
2861         PR rtl-optimization/70703
2862         * ira-color.c (update_conflict_hard_regno_costs): Use
2863         HOST_WIDE_INT instead of long.
2865 2017-04-05  Uros Bizjak  <ubizjak@gmail.com>
2867         PR target/80298
2868         * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
2869         not defined for x86_64 target.  Add -mmmx target option when __SSE2__
2870         is not defined.
2871         * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
2872         for x86_64 target.  Handle -m3dnowa option.
2874 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
2876         PR rtl-optimization/70703
2877         * ira-color.c (update_costs_from_allocno): Use the smallest mode.
2878         (update_conflict_hard_regno_costs): Use long instead of unsigned
2879         arithmetic for cost calculation.
2881 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
2882             Bernd Edlinger  <bernd.edlinger@hotmail.de>
2884         PR sanitizer/80308
2885         * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
2886         for big endian.
2888 2017-04-05  Eric Botcazou  <ebotcazou@adacore.com>
2890         PR target/78002
2891         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
2892         ptr_mode with Pmode throughout.
2893         * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
2894         into probe_stack_range and use DImode.
2896 2017-04-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2898         PR target/79890
2899         * config/s390/s390.c (s390_register_info_gprtofpr): Return if
2900         call_eh_return is true.
2902 2017-04-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2904         * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
2905         Initialize last_match_fntype_index.
2907 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
2909         PR target/80310
2910         * tree-nvr.c: Include internal-fn.h.
2911         (pass_return_slot::execute): Ignore internal calls without
2912         direct optab.
2914 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
2915             Richard Biener  <rguenther@suse.de>
2917         PR c++/80297
2918         * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
2919         captures used multiple times, except for the last use.
2920         * generic-match-head.c: Include gimplify.h.
2922 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
2924         PR tree-optimization/79390
2925         * target.h (struct noce_if_info): Declare.
2926         * targhooks.h (default_noce_conversion_profitable_p): Declare.
2927         * target.def (noce_conversion_profitable_p): New target hook.
2928         * ifcvt.h (struct noce_if_info): New type, moved from ...
2929         * ifcvt.c (struct noce_if_info): ... here.
2930         (noce_conversion_profitable_p): Renamed to ...
2931         (default_noce_conversion_profitable_p): ... this.  No longer
2932         static nor inline.
2933         (noce_try_store_flag_constants, noce_try_addcc,
2934         noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
2935         noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
2936         instead of noce_conversion_profitable_p.
2937         * config/i386/i386.c: Include ifcvt.h.
2938         (ix86_option_override_internal): Don't override
2939         PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
2940         (ix86_noce_conversion_profitable_p): New function.
2941         (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
2942         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
2943         * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
2944         * doc/tm.texi: Regenerated.
2946 2017-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2948         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
2949         correction.
2951 2017-04-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2953         PR target/80307
2954         * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
2955         instructions for small multiply cores.
2957 2017-04-04  Jeff Law  <law@redhat.com>
2959         * config/mips/mips.c (mips_multi_add): Zero initialize the newly
2960         added member.
2961         (mips_expand_vec_perm_const): Initialize elements in orig_perm
2962         that are not set by the loop over the elements.
2964 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
2966         PR target/80286
2967         * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
2968         int mode, convert_modes it to mode as unsigned, otherwise use
2969         lowpart_subreg to mode rather than SImode.
2970         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
2971         ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
2972         Use DImode instead of SImode for the shift count operand.
2973         * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
2974         Likewise.
2976 2017-04-04  Richard Biener  <rguenther@suse.de>
2978         PR middle-end/80281
2979         * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
2980         arithmetic done for the negate or the plus.  Simplify.
2981         (A - (-B) -> A + B): Likewise.
2982         * fold-const.c (split_tree): Make sure to not negate pointers.
2984 2017-04-04  Segher Boessenkool  <segher@kernel.crashing.org>
2986         PR rtl-optimization/60818
2987         * simplify-rtx.c (simplify_binary_operation_1): Do not replace
2988         a compare of comparisons with the thing compared if this results
2989         in a different machine mode.
2991 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
2993         * alias.c (base_alias_check): Fix typo in comment.
2994         * cgraph.h (class ipa_polymorphic_call_context): Likewise.
2995         * cgraphunit.c (symbol_table::compile): Likewise.
2996         * collect2.c (maybe_run_lto_and_relink): Likewise.
2997         * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
2998         * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
2999         * config/avr/avr.c (avr_map_op_t): Likewise.
3000         * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
3001         * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
3002         * config/epiphany/epiphany.md (movcc): Likewise.
3003         * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
3004         * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
3005         Likewise.
3006         * config/mips/mips.c (mips_save_restore_reg): Likewise.
3007         * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
3008         * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
3009         * config/sh/sh.c (sh_rtx_costs): Likewise.
3010         * fold-const.c (fold_truth_andor): Likewise.
3011         * genautomata.c (collapse_flag): Likewise.
3012         * gengtype.h (struct type::u::s): Likewise.
3013         * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
3014         * input.c (FORMAT_AMOUNT): Likewise.
3015         * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
3016         (known_aggs_to_agg_replacement_list): Likewise.
3017         * ipa-inline-analysis.c: Likewise.
3018         * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
3019         * ipa-polymorphic-call.c
3020         (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
3021         * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
3022         * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
3023         Likewise.
3024         * modulo-sched.c (apply_reg_moves): Likewise.
3025         * omp-expand.c (build_omp_regions_1): Likewise.
3026         * trans-mem.c (struct tm_wrapper_hasher): Likewise.
3027         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
3028         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
3029         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
3030         * value-prof.c: Likewise.
3031         * var-tracking.c (val_reset): Likewise.
3033 2017-04-03  Richard Biener  <rguenther@suse.de>
3035         PR tree-optimization/80275
3036         * fold-const.c (split_address_to_core_and_offset): Handle
3037         POINTER_PLUS_EXPR.
3039 2017-04-03  Eric Botcazou  <ebotcazou@adacore.com>
3041         * tree-nested.c (get_descriptor_type): Make sure that the alignment of
3042         descriptors is at least equal to that of functions.
3044 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
3046         * config/i386/sse.md (movdi_to_sse): Add missing DONE.
3048 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
3050         PR target/80250
3051         * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
3052         (mov<IMOD4:mode>): New expander.
3053         (*mov<IMOD4:mode>_internal): New insn and split pattern.
3055 2017-03-31  Segher Boessenkool  <segher@kernel.crashing.org>
3057         PR rtl-optimization/79405
3058         * fwprop.c (propagations_left): New variable.
3059         (forward_propagate_into): Decrement it.
3060         (fwprop_init): Initialize it.
3061         (fw_prop): If the variable has reached zero, stop propagating.
3062         (fwprop_addr): Ditto.
3064 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
3066         PR debug/79255
3067         * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
3068         a FUNCTION_DECL, pass it as decl instead of origin to
3069         process_scope_var.
3071 2017-03-31  Alexander Monakov  <amonakov@ispras.ru>
3073         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
3074         string.
3076 2017-03-31  Pat Haugen  <pthaugen@us.ibm.com>
3078         PR target/80107
3079         * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
3080         TARGET_VSX_SMALL_INTEGER.
3082 2017-03-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3084         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
3085         reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
3087 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
3089         * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
3090         extraction from odd-numbered MSA register.
3092 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
3094         PR middle-end/80173
3095         * expmed.c (store_bit_field_1): Don't attempt to create
3096         a word subreg out of hard registers wider than word if they
3097         have HARD_REGNO_NREGS of 1 for their mode.
3099         PR middle-end/80163
3100         * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
3101         conversions to integer types wider than word and pointer.
3103         PR debug/80025
3104         * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
3105         (rtx_equal_for_cselib_p): Pass 0 to it.
3106         * cselib.c (cselib_hasher::equal): Likewise.
3107         (rtx_equal_for_cselib_1): Add depth argument.  If depth
3108         is 128, don't look up VALUE locs and punt.  Increment
3109         depth in recursive calls when walking VALUE locs.
3111 2017-03-31  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3113         * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
3114         (make_gcov_file_name): Use the canonical path name for generating
3115         the MD5 value.
3116         (read_line): Fix handling of files with ascii null bytes.
3118 2017-03-30  Matthew Fortune  <matthew.fortune@imgtec.com>
3120         * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
3121         to initialise a vector register instead
3122         of using a const_int.
3124 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
3126         PR translation/80189
3127         * gimplify.c (omp_default_clause): Use %qs instead of %s in
3128         diagnostic messages.
3130 2017-03-30  Peter Bergner  <bergner@vnet.ibm.com>
3132         PR target/80246
3133         * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
3134         (dfp_diex_<mode>): Update mode of operand 1.
3135         * doc/extend.texi (dxex, dxexq): Document change to return type.
3136         (diex, diexq): Document change to argument type.
3138 2017-03-30  Martin Jambor  <mjambor@suse.cz>
3140         PR ipa/77333
3141         * cgraph.h (cgraph_build_function_type_skip_args): Declare.
3142         * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
3143         it reflects the signature changes performed at the callee side.
3144         * cgraphclones.c (build_function_type_skip_args): Make public, renamed
3145         to cgraph_build_function_type_skip_args.
3146         (build_function_decl_skip_args): Adjust call to the above function.
3148 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
3150         PR target/80206
3151         * config/i386/sse.md
3152         (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
3153         register as dest whenever it is a MEM not rtx_equal_p to the
3154         corresponding dup operand, and when forcing into reg move the
3155         reg into the memory afterwards.
3156         (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
3157         Likewise.  Use <ssehalfvecmode> instead of <ssequartermode>
3158         for the force_reg mode.
3159         (avx512vl_vextractf128<mode>): Use register as dest either
3160         always when a MEM, or when it is a MEM not rtx_equal_p to the
3161         corresponding dup operand, or even not when it is a CONST_VECTOR
3162         depending on the mode and lo vs. hi.
3163         (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
3164         parens.
3165         (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
3166         (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
3167         Likewise.  Require that operands[2] is even.
3168         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
3169         Remove extraneous parens.  Require that operands[2] is a multiple
3170         of 4.
3171         (vec_extract_lo_<mode><mask_name>): Don't bother testing if
3172         operands[0] is a MEM if <mask_applied>, the predicates/constraints
3173         disallow memory then.
3175 2017-03-30  Richard Biener  <rguenther@suse.de>
3177         PR tree-optimization/77498
3178         * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
3179         to non-constants over backedges.
3181 2017-03-29  Segher Boessenkool  <segher@kernel.crashing.org>
3183         PR rtl-optimization/80233
3184         * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
3185         as last_combined_insn.  Do not test for BARRIER_P separately.
3187 2017-03-29  Andreas Schwab  <schwab@suse.de>
3189         PR ada/80146
3190         * calls.c (prepare_call_address): Convert funexp to Pmode before
3191         copying to temp reg.
3193 2017-03-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3195         PR tree-optimization/80158
3196         * gimple-ssa-strength-reduction.c (replace_mult_candidate):
3197         Handle possible future case of more than one alternate
3198         interpretation.
3199         (replace_rhs_if_not_dup): Likewise.
3200         (replace_one_candidate): Likewise.
3202 2017-03-28  Vladimir Makarov  <vmakarov@redhat.com>
3204         PR rtl-optimization/80193
3205         * ira.c (ira): Do not check allocation for LRA.
3207 2017-03-28  Alexander Monakov  <amonakov@ispras.ru>
3209         * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
3210         (nvptx_output_simt_exit): Declare.
3211         * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
3212         cfun->machine->unisimt_location.  Handle NULL unisimt_predicate.
3213         (init_softstack_frame): Move initialization of crtl->is_leaf to...
3214         (nvptx_declare_function_name): ...here.  Emit declaration of local
3215         memory space buffer for omp_simt_enter insn.
3216         (nvptx_output_unisimt_switch): New.
3217         (nvptx_output_softstack_switch): New.
3218         (nvptx_output_simt_enter): New.
3219         (nvptx_output_simt_exit): New.
3220         * config/nvptx/nvptx.h (struct machine_function): New fields
3221         has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
3222         * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
3223         (UNSPECV_SIMT_EXIT): Ditto.
3224         (omp_simt_enter_insn): New insn.
3225         (omp_simt_enter): New expansion.
3226         (omp_simt_exit): New insn.
3227         * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
3229         * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
3230         (expand_GOMP_SIMT_ENTER_ALLOC): New.
3231         (expand_GOMP_SIMT_EXIT): New.
3232         * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
3233         (GOMP_SIMT_ENTER_ALLOC): Ditto.
3234         (GOMP_SIMT_EXIT): Ditto.
3235         * target-insns.def (omp_simt_enter): New insn.
3236         (omp_simt_exit): Ditto.
3237         * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
3238         simt_dlist.
3239         (lower_rec_simd_input_clauses): Implement SIMT privatization.
3240         (lower_rec_input_clauses): Likewise.
3241         (lower_lastprivate_clauses): Handle SIMT privatization.
3243         * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
3244         (ompdevlow_adjust_simt_enter): New.
3245         (find_simtpriv_var_op): New.
3246         (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
3247         IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
3249         * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
3250         * tree-inline.c (expand_call_inline): Handle SIMT privatization.
3251         (copy_decl_for_dup_finish): Ditto.
3253         * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
3255 2017-03-28  Uros Bizjak  <ubizjak@gmail.com>
3257         PR target/53383
3258         * config/i386/i386.c (ix86_option_override_internal): Always
3259         allow -mpreferred-stack-boundary=3 for 64-bit targets.
3261 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
3263         * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
3265 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
3267         * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
3268         mark new edge's irreducible flag accordign to it.
3269         (vect_do_peeling): Check loop preheader edge's irreducible flag
3270         and pass it to function slpeel_add_loop_guard.
3272 2017-03-28  Richard Sandiford  <richard.sandiford@arm.com>
3274         PR tree-optimization/80218
3275         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
3276         Update block frequencies and counts.
3278 2017-03-28  Richard Biener  <rguenther@suse.de>
3280         PR tree-optimization/78644
3281         * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
3282         of a simplification result we may not use it at all.
3284 2017-03-28  Richard Biener  <rguenther@suse.de>
3286         PR ipa/80205
3287         * tree-inline.c (copy_phis_for_bb): Do not create PHI node
3288         without arguments, generate default definition of a SSA name.
3290 2017-03-28  Richard Biener  <rguenther@suse.de>
3292         PR middle-end/80222
3293         * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
3294         TYPE_REF_CAN_ALIAS_ALL references.
3295         * fold-const.c (fold_indirect_ref_1): Likewise.
3297 2017-03-28  Martin Liska  <mliska@suse.cz>
3299         PR ipa/80104
3300         * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
3301         thunk call as DECL_GIMPLE_REG_P when vector or complex type.
3303 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
3304             Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>
3306         * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
3307         (EXTRA_SPECS): Define.
3308         (SUBTARGET_EXTRA_SPECS): Likewise.
3309         (SUBTARGET_CPP_SPEC): Likewise.
3310         * config/arc/elf.h (EXTRA_SPECS): Renamed to
3311         SUBTARGET_EXTRA_SPECS.
3312         * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
3314 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
3316         * config/arc/simdext.md (vst64_insn): Update pattern.
3317         (vld32wh_insn): Likewise.
3318         (vld32wl_insn): Likewise.
3319         (vld64_insn): Likewise.
3320         (vld32_insn): Likewise.
3322 2017-03-28  Marek Polacek  <polacek@redhat.com>
3324         PR sanitizer/80067
3325         * fold-const.c (fold_comparison): Use protected_set_expr_location
3326         instead of SET_EXPR_LOCATION.
3328 2017-03-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
3330         * tree.c (add_expr): Avoid name lookup warning.
3332 2017-03-27  Jeff Law  <law@redhat.com>
3334         PR tree-optimization/80216
3335         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
3336         function name.  Limit recursion depth.
3337         (record_temporary_equivalences): Corresponding changes.
3339 2017-03-27  Jonathan Wakely  <jwakely@redhat.com>
3341         * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
3342         covered first.
3344 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
3346         PR target/80102
3347         * reg-notes.def (REG_CFA_NOTE): Define.  Use it for CFA related
3348         notes.
3349         * cfgcleanup.c (reg_note_cfa_p): New array.
3350         (insns_have_identical_cfa_notes): New function.
3351         (old_insns_match_p): Don't cross-jump in between /f
3352         and non-/f instructions.  If both i1 and i2 are frame related,
3353         verify all CFA notes, their order and content.
3355 2017-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
3357         PR target/78543
3358         * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
3359         HImode and SImode with zero extend to DImode to one insn.
3360         (bswap<mode>2_extenddi): Likewise.
3361         (bswapsi2_extenddi): Likewise.
3362         (bswaphi2_extendsi): Likewise.
3363         (bswaphi2): Combine bswap HImode and SImode into one insn.
3364         Separate memory insns from swapping register.
3365         (bswapsi2): Likewise.
3366         (bswap<mode>2): Likewise.
3367         (bswaphi2_internal): Delete, no longer used.
3368         (bswapsi2_internal): Likewise.
3369         (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
3370         store, and gpr<-gpr swap insns.
3371         (bswap<mode>2_store): Likewise.
3372         (bswaphi2_reg): Register only splitter, combine with the splitter.
3373         (bswaphi2 splitter): Likewise.
3374         (bswapsi2_reg): Likewise.
3375         (bswapsi2 splitter): Likewise.
3376         (bswapdi2): If we have the LDBRX and STDBRX instructions, split
3377         the insns into load, store, and register/register insns.
3378         (bswapdi2_ldbrx): Likewise.
3379         (bswapdi2_load): Likewise.
3380         (bswapdi2_store): Likewise.
3381         (bswapdi2_reg): Likewise.
3383 2017-03-27  Gunther Nikl  <gnikl@users.sourceforge.net>
3385         * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
3386         (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
3388 2017-03-27  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3390         PR target/80103
3391         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
3392         add comments.
3393         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
3394         special handling for target option conflicts between dform
3395         options (-mpower9-dform, -mpower9-dform-vector,
3396         -mpower9-dform-scalar) and -mno-direct-move.
3398 2017-03-27  Richard Biener  <rguenther@suse.de>
3400         PR tree-optimization/80181
3401         * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
3403 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
3405         * config/arc/predicates.md (move_double_src_operand): Replace the
3406         call to move_double_src_operand with a call to address_operand.
3408 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
3410         * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
3411         * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
3412         * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
3414 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
3416         * config/arc/predicates.md (long_immediate_loadstore_operand):
3417         Consider scaled addresses cases.
3419 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
3421         * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
3422         restored when in interrupt.
3423         * config/arc/arc.md (simple_return): ARCv2 rtie instruction
3424         doesn't have delay slot.
3426 2017-03-27  Richard Biener  <rguenther@suse.de>
3428         PR ipa/79776
3429         * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
3430         inlined thunk clones.
3432 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
3434         PR sanitizer/80168
3435         * asan.c (instrument_derefs): Copy over last operand from
3436         original COMPONENT_REF to the new COMPONENT_REF with
3437         DECL_BIT_FIELD_REPRESENTATIVE.
3438         * ubsan.c (instrument_object_size): Likewise.
3440 2017-03-27  Richard Biener  <rguenther@suse.de>
3442         PR tree-optimization/80170
3443         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
3444         sure DR/SCEV didnt fold in constants we do not see when looking
3445         at the reference base alignment.
3447 2017-03-27  Richard Biener  <rguenther@suse.de>
3449         PR middle-end/80171
3450         * gimple-fold.c (fold_ctor_reference): Properly guard against
3451         NULL return value from canonicalize_constructor_val.
3453 2017-03-25  Uros Bizjak  <ubizjak@gmail.com>
3455         PR target/80180
3456         * config/i386/i386.c (ix86_expand_builtin)
3457         <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
3458         flags reg setting and flags reg using instructions.
3459         <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto.  Use non-flags reg
3460         clobbering instructions to zero extend op2.
3462 2017-03-25  Gerald Pfeifer  <gerald@pfeifer.com>
3464         * doc/install.texi (Configuration) <--with-aix-soname>:
3465         Update link to AIX ld.
3467 2017-03-25  Bernd Schmidt  <bschmidt@redhat.com>
3469         PR rtl-optimization/80160
3470         PR rtl-optimization/80159
3471         * lra-assigns.c (must_not_spill_p): Tighten new test to also take
3472         reg_alternate_class into account.
3474 2017-03-24  Vladimir Makarov  <vmakarov@redhat.com>
3476         PR target/80148
3477         * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
3478         to consider in curr_insn_transform.
3480 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
3482         * genrecog.c (validate_pattern): Add VEC_SELECT validation.
3483         * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
3484         and emit_mode_inner.
3486 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3488         * config/s390/s390-builtins.def: Add VXE builtins.  Add a flags
3489         argument to the overloaded builtin variants.  Use the new flag to
3490         deprecate certain builtin variants.
3491         * config/s390/s390-builtin-types.def: Add new builtin types.
3492         * config/s390/s390-builtins.h: Support new flags field for
3493         overloaded builtins.
3494         * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
3495         (s390_macro_to_expand): Enable vector float data type.
3496         (s390_cpu_cpp_builtins_internal): Indicate support of the new
3497         builtins by incrementing the __VEC__ version number.
3498         (s390_expand_overloaded_builtin): Support expansion of vec_xl and
3499         vec_xst.
3500         (s390_resolve_overloaded_builtin): Emit error messages depending
3501         on the builtin flags.
3502         * config/s390/s390.c (s390_expand_builtin): Support additional
3503         flags argument.  Change error message to match the messages
3504         emitted in s390-c.c.
3505         * config/s390/s390.md: New UNSPEC_* constants.
3506         (op_type): Add new instruction types.
3507         * config/s390/vecintrin.h: Add new builtins and test data class
3508         constants.
3509         * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
3510         (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
3511         (VEC_INEXACT, VEC_NOINEXACT): New constants.
3512         ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
3513         ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
3514         ("vec_mergel<mode>"): V_HW -> VEC_HW.
3516         ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
3517         ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
3518         ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
3519         ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
3521         ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
3522         ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
3523         ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
3524         ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
3526         ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
3527         ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
3528         ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
3529         ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
3530         ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
3531         ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
3532         ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
3534         ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
3535         ("vec_scatter_element<V_HW_4:mode>_DI")
3536         ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
3537         ("vec_fpint<mode>", "vflls")
3538         ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
3539         ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
3540         ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
3541         ("*vec_cmphe<mode>_cc"): ... these.
3543         ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
3544         mode constant instead of magic value.
3546 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3548         * config/s390/s390.c (s390_expand_vec_compare): Support other
3549         vector floating point modes than just V2DF.
3550         (s390_expand_vcond): Likewise.
3551         (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
3552         (s390_cannot_change_mode_class): Prevent mode changes between TF
3553         and V1TF in vector registers.
3554         * config/s390/s390.md (DF, SF): New mode attributes.
3555         ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
3556         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
3557         SFmode support for VRs.
3558         * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
3559         vector fp modes.
3560         (VFT, VF_HW): New mode iterators.
3561         (vw, sdx): New mode attributes.
3562         ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
3563         ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
3564         ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
3565         ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
3566         ("vec_unorderedv2df"): Adjust the v2df only patterns to support
3567         also the new vector floating point modes.  Renaming to ...
3569         ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
3570         ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
3571         ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
3572         ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
3573         ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
3574         ("vec_unordered<mode>"): ... these.
3576         ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
3577         ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
3578         ("*vec_extendv2df"): New insn definitions.
3580 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3582         * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
3583         ("mulditi3_2", "*muldi3_sign"): New patterns.
3584         ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
3585         rename the pattern definition.
3587 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3589         * config/s390/s390.md ("indirect_jump"): Turn insn definition into
3590         expander.
3591         ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
3593 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3595         * config/s390/s390.c (s390_expand_vec_init): Use vllezl
3596         instruction if possible.
3597         * config/s390/vector.md (vec_halfnumelts): New mode
3598         attribute.
3599         ("*vec_vllezlf<mode>"): New pattern.
3601 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3603         * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
3604         ("popcountv4si2", "popcountv2di2"): Rename to ...
3605         ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
3606         ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
3607         condition.
3608         ("popcount<mode>2_vxe"): New pattern.
3610 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3612         * common/config/s390/s390-common.c (processor_flags_table): Add
3613         arch12.
3614         * config.gcc: Add arch12.
3615         * config/s390/driver-native.c (s390_host_detect_local_cpu):
3616         Default to arch12 for unknown CPU model numbers.
3617         * config/s390/s390-builtins.def: Add B_VXE builtin flag.
3618         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
3619         PROCESSOR_max sanity check.
3620         * config/s390/s390-opts.h (enum processor_type): Add
3621         PROCESSOR_ARCH12.
3622         * config/s390/s390.c (processor_table): Add arch12.
3623         (s390_expand_builtin): Add check for B_VXE flag.
3624         (s390_issue_rate): Add PROCESSOR_ARCH12.
3625         (s390_get_sched_attrmask): Likewise.
3626         (s390_get_unit_mask): Likewise.
3627         (s390_sched_score): Enable z13 scheduling for arch12.
3628         (s390_sched_reorder): Likewise.
3629         (s390_sched_variable_issue): Likewise.
3630         * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
3631         PF_VXE.
3632         (s390_tune_attr): Use z13 scheduling also for arch12.
3633         (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
3634         (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
3635         (TARGET_VXE_P): New macros.
3636         * config/s390/s390.md: Add arch12 to cpu attribute.  Add arch12
3637         and vxe to cpu_facility.  Add arch12 and vxe to enabled attribute.
3638         * config/s390/s390.opt: Add arch12 as processor_type.
3640 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3642         * config/s390/s390.md
3643         ("fixuns_truncdddi2", "fixuns_trunctddi2")
3644         ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
3645         ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
3647         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
3648         Rename expanders to ...
3650         ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
3651         ("fixuns_truncdddi2_emu"): ... these.
3653         ("fixuns_trunc<mode>si2_emu"): New expander.
3655         ("*fixuns_truncdfdi2_z13"): Rename to ...
3656         ("*fixuns_truncdfdi2_vx"): ... this.
3658 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3660         * config/s390/2964.md: Remove the single element vector compare
3661         instructions which are no longer used.
3662         * config/s390/s390.c (s390_select_ccmode): Remove handling of
3663         vector CCmodes.
3664         (s390_canonicalize_comparison): Remove handling of DFmode
3665         compares.
3666         (s390_expand_vec_compare_scalar): Remove function.
3667         (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
3668         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
3669         pattern.
3670         ("*cmp<mode>_ccs"): Add wfcdb instruction.
3672 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3674         * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
3675         FP zero.
3676         ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
3677         will anyway by matched by mov<mode>_64dfp.
3679 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3681         * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
3682         vlef/vstef.  Add missing operand to vleif.
3684 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3686         * config/s390/s390.c (s390_expand_vec_init): Enable vector load
3687         pair for all vector types with 64 bit elements.
3688         * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
3689         * config/s390/vector.md (V_HW_64): ... here.
3690         (V_128_NOSINGLE): New mode iterator.
3691         ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
3692         ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
3693         ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
3694         ("*vec_load_pairv2di"): Change to ...
3695         ("*vec_load_pair<mode>"): ... this one.
3697 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3699         * config/s390/constraints.md: Add comments.
3700         (jKK): Reject element sizes > 8 bytes.
3701         * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
3702         s_operands.
3703         * config/s390/s390.md: Add the s_operand checks formerly in
3704         s390_split_ok_p to various splitters where they are still
3705         required.
3706         * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
3707         for 128 bit vectors.  Plus two splitters.
3709 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3711         * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
3712         the file.
3714 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3716         PR target/79893
3717         * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
3718         error if the boundary argument is not constant.
3720 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
3722         PR rtl-optimization/80112
3723         * loop-doloop.c (doloop_condition_get): Don't check condition
3724         if cmp isn't SET with IF_THEN_ELSE src.
3726 2017-03-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3728         PR tree-optimization/80158
3729         * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
3730         replacing a candidate statement, also replace it for the
3731         candidate's alternate interpretation.
3732         (replace_rhs_if_not_dup): Likewise.
3733         (replace_one_candidate): Likewise.
3735 2017-03-24  Richard Biener  <rguenther@suse.de>
3737         PR tree-optimization/80167
3738         * graphite-isl-ast-to-gimple.c
3739         (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
3740         properly.
3741         (translate_isl_ast_to_gimple::get_rename): Likewise.
3743 2017-03-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3745         * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
3746         handling of certain combinations of target options, including the
3747         combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
3748         -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
3750 2017-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3752         PR target/71436
3753         * config/arm/arm.md (*load_multiple): Add reload_completed to
3754         matching condition.
3756 2017-03-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3757             Richard Biener  <rguenth@suse.de>
3759         PR tree-optimization/79908
3760         PR tree-optimization/80136
3761         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
3762         been cast away, gimplify_and_add suffices.
3764 2017-03-23  Markus Trippelsdorf  <markus@trippelsdorf.de>
3766         * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
3768 2017-03-23  Richard Biener  <rguenther@suse.de>
3770         PR tree-optimization/80032
3771         * gimplify.c (gimple_push_cleanup): Forced unconditional
3772         cleanups still have to go to the conditional_cleanups
3773         sequence.
3775 2017-03-22  Jakub Jelinek  <jakub@redhat.com>
3777         PR tree-optimization/80072
3778         * tree-ssa-reassoc.c (struct operand_entry): Change id field type
3779         to unsigned int.
3780         (next_operand_entry_id): Change type to unsigned int.
3781         (sort_by_operand_rank): Make sure to return the right return value
3782         even if unsigned fields are bigger than INT_MAX.
3783         (struct oecount): Change cnt and id type to unsigned int.
3784         (oecount_hasher::equal): Formatting fix.
3785         (oecount_cmp): Make sure to return the right return value
3786         even if unsigned fields are bigger than INT_MAX.
3787         (undistribute_ops_list): Change next_oecount_id type to unsigned int.
3789         PR c++/80129
3790         * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
3791         TREE_READONLY on result if writing it more than once.
3793         PR sanitizer/80110
3794         * doc/invoke.texi (-fsanitize=thread): Document that with
3795         -fnon-call-exceptions atomics are not able to throw
3796         exceptions.
3798         PR sanitizer/80110
3799         * tsan.c: Include tree-eh.h.
3800         (instrument_builtin_call): Call maybe_clean_eh_stmt or
3801         maybe_clean_or_replace_eh_stmt where needed.
3802         (instrument_memory_accesses): Add cfg_changed argument.
3803         Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
3804         if it returned true.
3805         (tsan_pass): Adjust caller.  Return TODO_cleanup_cfg if cfg_changed.
3807         PR rtl-optimization/63191
3808         * config/i386/i386.c (ix86_delegitimize_address): Turn into small
3809         wrapper function, moved the whole old content into ...
3810         (ix86_delegitimize_address_1): ... this.  New inline function.
3811         (ix86_find_base_term): Use ix86_delegitimize_address_1 with
3812         true as last argument instead of ix86_delegitimize_address.
3814 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
3816         * config/aarch64/aarch64.c (generic_branch_cost): Copy
3817         cortexa57_branch_cost.
3819 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
3821         * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
3823 2017-03-21  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
3825         PR target/80123
3826         * doc/md.texi (Constraints): Document wA constraint.
3827         * config/rs6000/constraints.md (wA): New.
3828         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
3829         (rs6000_init_hard_regno_mode_ok): Init wA constraint.
3830         * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
3831         * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
3833 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
3835         PR c++/80029
3836         * gimplify.c (is_oacc_declared): New function.
3837         (oacc_default_clause): Use it to set default flags for acc declared
3838         variables inside parallel regions.
3839         (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
3840         declared variables.
3841         (gimplify_oacc_declare): Gimplify the declare clauses.  Add the
3842         declare attribute to any decl as necessary.
3844 2017-03-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3846         PR target/80082
3847         * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
3848         (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
3849         * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
3850         (arm_arch_lpae): This.
3851         * config/arm/arm.c (arm_arch7ve): Rename into ...
3852         (arm_arch_lpae): This.  Define it in term of isa_bit_lpae.
3853         * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
3854         arm_arch_lpae.
3856 2017-03-22  Martin Liska  <mliska@suse.cz>
3858         PR target/79906
3859         * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
3860         error message instead of an ICE.
3862 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3864         * doc/extend.texi (6.11 Additional Floating Types): Revise.
3866 2017-03-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3868         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
3869         comments.
3870         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
3871         comments.
3873 2017-03-21  Martin Sebor  <msebor@redhat.com>
3875         * doc/extend.texi: Use "cannot" instead of "can't."
3876         * doc/hostconfig.texi: Same.
3877         * doc/install.texi: Same.
3878         * doc/invoke.texi: Same.
3879         * doc/loop.texi: Same.
3880         * doc/md.texi: Same.
3881         * doc/objc.texi: Same.
3882         * doc/rtl.texi: Same.
3883         * doc/tm.texi: Same.
3884         * doc/tm.texi.in: Same.
3885         * doc/trouble.texi: Same.
3887 2017-03-21  Alexandre Oliva <aoliva@redhat.com>
3889         PR debug/63238
3890         * dwarf2out.c (struct checksum_attributes): Add at_alignment.
3891         (collect_checksum_attributes): Set it.
3892         (die_checksum_ordered): Use it.
3894 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3896         PR tree-optimization/79908
3897         * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
3898         change: For a VA_ARG whose LHS has been cast away, use
3899         force_gimple_operand to construct the side effects.
3901 2017-03-21  David Malcolm  <dmalcolm@redhat.com>
3903         PR translation/80001
3904         * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
3905         more amenable to translation.
3906         (oacc_loop_auto_partitions): Likewise.
3908 2017-03-21  Marek Polacek  <polacek@redhat.com>
3909             Martin Sebor  <msebor@redhat.com>
3911         PR tree-optimization/80109
3912         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
3913         on INTEGRAL_TYPE_P.
3915 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
3916             Segher Boessenkool  <segher@kernel.crashing.org>
3918         PR target/80125
3919         * combine.c (can_combine_p): Revert the 2017-03-20 change, only
3920         check reg_used_between_p between insn and one of succ or succ2
3921         depending on if succ is artificial insn not inserted into insn
3922         stream.
3924 2017-03-21  Martin Liska  <mliska@suse.cz>
3926         PR gcov-profile/80081
3927         * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
3928         * doc/gcc.texi: Include gcov-dump stuff.
3929         * doc/gcov-dump.texi: New file.
3931 2017-03-21  Toma Tabacu  <toma.tabacu@imgtec.com>
3933         PR rtl-optimization/79150
3934         * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
3935         conditional jump, if the jump is the last insn of the loop.
3937 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3938             Richard Biener  <rguenth@suse.de>
3940         PR tree-optimization/79908
3941         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
3942         been cast away, use force_gimple_operand to construct the side
3943         effects.
3945 2017-03-21  Martin Liska  <mliska@suse.cz>
3947         PR libfortran/79956
3948         * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
3949         to NULL.
3951 2017-03-21  Brad Spengler <spender@grsecurity.net>
3953         PR plugins/80094
3954         * plugin.c (htab_hash_plugin): New function.
3955         (add_new_plugin): Use it and adjust.
3956         (parse_plugin_arg_opt): Adjust.
3957         (init_one_plugin): Likewise.
3959 2017-03-21  Richard Biener  <rguenther@suse.de>
3961         PR tree-optimization/80032
3962         * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
3963         if set force the cleanup to happen unconditionally.
3964         (gimplify_target_expr): Push inserted clobbers with force_uncond
3965         to avoid them being removed by control-dependent DCE.
3967 2017-03-21  Richard Biener  <rguenther@suse.de>
3969         PR tree-optimization/80122
3970         * tree-inline.c (copy_bb): Do not expans va-arg packs or
3971         va_arg_pack_len when the inlined call stmt requires pack
3972         expansion itself.
3973         * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
3975 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
3977         PR sanitizer/78158
3978         * tsan.c (instrument_builtin_call): If the memory model argument
3979         is not a constant, assume it is valid.
3981         PR c/67338
3982         * fold-const.c (round_up_loc): Negate divisor in unsigned type to
3983         avoid UB.
3985 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
3987         PR rtl-optimization/79910
3988         * combine.c (can_combine_p): Do not allow combining an I0 or I1
3989         if its dest is used by an insn before I2 (other than the combined
3990         insns themselves, which are properly handled already).
3992 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
3994         Revert:
3995         2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
3997         * combine.c (record_used_regs): New static function.
3998         (try_combine): Handle situations where there is an additional
3999         instruction between I2 and I3 which needs to have a LOG_LINK
4000         updated.
4002         Revert:
4003         2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
4005         * combine.c (try_combine): Delete redundant i1 test.  Call
4006         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
4008 2017-03-20  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
4010         PR target/80083
4011         * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
4012         alternatives 13/14.
4014 2017-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4016         PR tree-optimization/80054
4017         * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
4018         the optimization if a PHI or any of its arguments is not dominated
4019         by the candidate's basis.  Use gphi* rather than gimple* as
4020         appropriate.
4021         (replace_profitable_candidates): Clean up a gimple* variable that
4022         should be a gphi* variable.
4024 2017-03-20  Martin Sebor  <msebor@redhat.com>
4026         PR c++/52477
4027         * doc/extend.texi (attribute constructor): Document present limitation.
4029 2017-03-20  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4031         PR target/79963
4032         * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
4033         __POWER9_VECTOR__ #ifdef control, change template definition to
4034         use Power9-specific built-in function.
4035         (vec_any_eq): Likewise.
4036         * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
4037         to control outcomes from this test.
4038         (vector_ae_<mode>p): For VEC_F modes, likewise.
4040 2017-03-20  Ian Lance Taylor  <iant@google.com>
4042         * config/i386/i386.c (ix86_function_regparm): Save an extra
4043         register for -fsplit-stack with DECL_STATIC_CHAIN.
4045 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
4047         PR target/79912
4048         * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
4049         (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
4051 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
4053         * config/riscv/riscv.c (riscv_print_operand): Use "fence
4054         iorw,ow".
4055         * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
4056         iorw,iorw".
4058 2017-03-20  Marek Polacek  <polacek@redhat.com>
4060         PR sanitizer/80063
4061         * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
4063 2017-03-20  Richard Biener  <rguenther@suse.de>
4065         PR tree-optimization/80113
4066         * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
4067         allocate extra SSA name for PHI def.
4068         (add_close_phis_to_outer_loops): Likewise.
4069         (add_close_phis_to_merge_points): Likewise.
4070         (copy_loop_close_phi_args): Likewise.
4071         (copy_cond_phi_nodes): Likewise.
4073 2017-03-20  Martin Liska  <mliska@suse.cz>
4075         PR middle-end/79753
4076         * tree-chkp.c (chkp_build_returned_bound): Do not build
4077         returned bounds for a LHS that's not a BOUNDED_P type.
4079 2017-03-20  Martin Liska  <mliska@suse.cz>
4081         PR target/79769
4082         PR target/79770
4083         * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
4084         COMPLEX_CST and VECTOR_CST.
4086 2017-03-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4088         PR target/78857
4089         * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
4090         target operand.  A new splitter adds the clobber statement in case
4091         the target operand is dead anyway.
4093 2017-03-19  Gerald Pfeifer  <gerald@pfeifer.com>
4095         * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
4096         to age-old versions of binutils and glibc.
4098 2017-03-18  Segher Boessenkool  <segher@kernel.crashing.org>
4100         * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
4102 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
4104         * doc/contrib.texi (Contributors): Add Segher Boessenkool.
4106 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
4108         * doc/install.texi (Specific) <arm-*-eabi>: Remove old
4109         requirement for binutils 2.13.
4111 2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
4113         * combine.c (try_combine): Delete redundant i1 test.  Call
4114         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
4116 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com
4118         * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
4119         riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
4120         contents.
4121         <riscv64-*-elf>: Re-arrange section
4122         <riscv32-*-elf>: Add a note about requiring binutils 2.28.
4123         <riscv32-*-linux>: Likewise.
4124         <riscv64-*-elf>: Likewise
4125         <riscv64-*-linux>: Likewise.
4127 2017-03-17  Richard Earnshaw  <rearnsha@arm.com>
4129         PR target/80052
4130         * aarch64.opt(verbose-cost-dump): Fix typo.
4132 2017-03-17  Pat Haugen  <pthaugen@us.ibm.com>
4134         PR target/79951
4135         * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
4136         for VECTOR_UNIT_VSX_P (<MODE>mode) too.
4138 2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
4140         * reload.c (find_reloads): When reloading a nonoffsettable address,
4141         use RELOAD_OTHER for it and its address reloads.
4143         PR rtl-optimization/79910
4144         * combine.c (record_used_regs): New static function.
4145         (try_combine): Handle situations where there is an additional
4146         instruction between I2 and I3 which needs to have a LOG_LINK
4147         updated.
4149 2017-03-17  Jeff Law  <law@redhat.com>
4151         PR tree-optimization/71437
4152         * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
4153         conditional in the hash table first.
4154         (vrp_dom_walker::before_dom_children): Extract condition from
4155         ASSERT_EXPR.  Record condition, its inverion and any implied
4156         conditions as well.
4158 2017-03-17  Marek Polacek  <polacek@redhat.com>
4159             Markus Trippelsdorf  <markus@trippelsdorf.de>
4161         PR tree-optimization/80079
4162         * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
4163         m_stores_head.
4165 2017-03-17  Richard Biener  <rguenther@suse.de>
4167         PR middle-end/80075
4168         * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
4169         Properly verify the LHS before the RHS possibly claims to be
4170         handled.
4171         (stmt_could_throw_p): Hande gimple conds fully here.  Clobbers
4172         do not throw.
4174 2017-03-17  Martin Jambor  <mjambor@suse.cz>
4176         * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
4177         (List of -O2 options): Likewise.
4178         (-fipa-bit-cp): Replace "ipa" with "interprocedural."
4179         (-fipa-vrp) New.
4181 2017-03-17  Tom de Vries  <tom@codesourcery.com>
4183         * gcov-dump.c (print_usage): Print bug_report_url.
4185 2017-03-17  Richard Biener  <rguenther@suse.de>
4187         PR middle-end/80050
4188         * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
4189         (parser::peek): Likewise.
4191 2017-03-17  Richard Biener  <rguenther@suse.de>
4193         PR tree-optimization/80048
4194         * sese.c (free_sese_info): Properly release rename_map and
4195         copied_bb_map elements.
4197 2017-03-16  Alexandre Oliva <aoliva@redhat.com>
4199         * gimple-ssa-store-merging.c (struct imm_store_chain_info):
4200         Add linked-list forward and backlinks.  Insert on
4201         construction, remove on destruction.
4202         (class pass_store_merging): Add m_stores_head field.
4203         (pass_store_merging::terminate_and_process_all_chains):
4204         Iterate over m_stores_head list.
4205         (pass_store_merging::terminate_all_aliasing_chains):
4206         Likewise.
4207         (pass_store_merging::execute): Check for debug stmts first.
4208         Push new chains onto the m_stores_head stack.
4210 2017-03-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
4212         PR target/71294
4213         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
4214         SPLAT operation on ISA 2.07 64-bit systems that have direct move,
4215         but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
4217 2017-03-16  Jeff Law  <law@redhat.com>
4219         PR tree-optimization/71437
4220         * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
4221         member function.  Implementation moved into after_dom_children
4222         member function and into the threader's thread_outgoing_edges
4223         function.
4224         (dom_opt_dom_walker::after_dom_children): Simplify by moving
4225         some code into new thread_outgoing_edges.
4226         * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
4227         definition.  Simplify marker handling (do it here).   Assume we always
4228         have the available expression and the const/copies tables.
4229         (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
4230         and tree-vrp.c
4231         * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
4232         * tree-vrp.c (equiv_stack): No longer file scoped.
4233         (vrp_dom_walker): New class.
4234         (vrp_dom_walker::before_dom_children): New member function.
4235         (vrp_dom_walker::after_dom_children): Likewise.
4236         (identify_jump_threads):  Setup domwalker.  Use it rather than
4237         walking edges in a random order by hand.  Simplify setup/finalization.
4238         (finalize_jump_threads): Remove.
4239         (vrp_finalize): Do not call identify_jump_threads here.
4240         (execute_vrp): Do it here instead and call thread_through_all_blocks
4241         here too.
4243         PR tree-optimization/71437
4244         * tree-ssa-dom.c (pfn_simplify): Add basic_block argument.  All
4245         callers changed.
4246         (simplify_stmt_for_jump_threading): Add basic_block argument.  All
4247         callers changed.
4248         (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
4249         (dom_opt_dom_walker::thread_across_edge): Remove
4250         handle_dominating_asserts argument.  All callers changed.
4251         (record_temporary_equivalences_from_stmts_at_dest): Corresponding
4252         changes.  Remove calls to lhs_of_dominating_assert.  Other
4253         uses of handle_dominating_asserts turn into unconditional code
4254         (simplify_control_stmt_condition_1): Likewise.
4255         (simplify_control_stmt_condition): Likewise.
4256         (thread_through_normal_block, thread_across_edge): Likewise.
4257         * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
4258         * tree-vrp.c (lhs_of_dominating_assert): Move here.  Return original
4259         object if it is not an SSA_NAME.
4260         (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
4261         before calling into the VRP specific simplifiers.
4262         (identify_jump_threads): Remove handle_dominating_asserts
4263         argument.
4265 2017-03-16  Jakub Jelinek  <jakub@redhat.com>
4267         PR fortran/79886
4268         * tree-diagnostic.c (default_tree_printer): No longer static.
4269         * tree-diagnostic.h (default_tree_printer): New prototype.
4271 2017-03-16  Tamar Christina  <tamar.christina@arm.com>
4273         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
4274         Change ins into fmov.
4276 2017-03-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4278         * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
4279         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
4280         Use h_con constraint for operand 1.
4281         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
4282         (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
4284 2017-03-15  Jeff Law  <law@redhat.com>
4286         PR tree-optimization/71437
4287         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
4288         (record_temporary_equivalences): Use it.
4290         PR tree-optimization/71437
4291         * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
4292         tree-ssa-scopedtables.
4293         (lookup_avail_expr, build_and_record_new_cond): Likewise.
4294         (record_conditions, record_cond, vuse_eq): Likewise.
4295         (record_edge_info): Adjust to API tweak of record_conditions.
4296         (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
4297         (record_temporary_equivalences, optimize_stmt): Likewise.
4298         (eliminate_redundant_computations): Likewise.
4299         (record_equivalences_from_stmt): Likewise.
4300         * tree-ssa-scopedtables.c: Include options.h and params.h.
4301         (vuse_eq): New function, moved from tree-ssa-dom.c
4302         (build_and_record_new_cond): Likewise.
4303         (record_conditions): Likewise.  Accept vector of conditions rather
4304         than edge_equivalence structure for first argument.
4305         for the first argument.
4306         (avail_exprs_stack::lookup_avail_expr): New member function, moved
4307         from tree-ssa-dom.c.
4308         (avail_exprs_stack::record_cond): Likewise.
4309         * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
4310         from tree-ssa-dom.c.
4311         (avail_exprs_stack): Add new member functions lookup_avail_expr
4312         and record_cond.
4313         (record_conditions): Declare.
4315 2017-03-15  Vladimir Makarov  <vmakarov@redhat.com>
4317         PR target/80017
4318         * lra-constraints.c (process_alt_operands): Increase reject for
4319         reloading an input/output operand.
4321 2017-03-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
4323         PR target/79038
4324         * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
4325         insns to convert from signed/unsigned char/short to IEEE 128-bit
4326         floating point.
4327         (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
4329 2017-03-15  Uros Bizjak  <ubizjak@gmail.com>
4331         PR target/80019
4332         * config/i386/i386.c (ix86_vector_duplicate_value): Create
4333         subreg of inner mode for values already in registers.
4335 2017-03-15  Bernd Schmidt  <bschmidt@redhat.com>
4337         * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
4338         iteration reg is used after the loop.
4340 2017-03-14  Martin Sebor  <msebor@redhat.com>
4342         PR tree-optimization/79800
4343         * gimple-ssa-sprintf.c (format_floating: Add argument.  Handle
4344         precision in negative-positive range.
4345         (format_floating): Call non-const overload with adjusted precision.
4347 2017-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4349         PR target/79947
4350         * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
4351         -mpowerpc-gfxopt.
4353 2017-03-14  Martin Sebor  <msebor@redhat.com>
4355         PR middle-end/80020
4356         * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
4357         * builtins.def (aligned_alloc): Use it.
4359         PR c/79936
4360         * Makefile.in (GTFILES): Add calls.c.
4361         * calls.c: Include "gt-calls.h".
4363 2017-03-14  Bernd Schmidt  <bschmidt@redhat.com>
4365         PR rtl-optimization/79728
4366         * regs.h (struct target_regs): New field
4367         x_contains_allocatable_regs_of_mode.
4368         (contains_allocatable_regs_of_mode): New macro.
4369         * reginfo.c (init_reg_sets_1): Initialize it, and change
4370         contains_reg_of_mode so it includes global regs as well.
4371         * reload.c (push_reload): Use contains_allocatable_regs_of_mode
4372         rather than contains_regs_of_mode.
4374 2017-03-14  Martin Liska  <mliska@suse.cz>
4376         * doc/invoke.texi: Document options that can't be combined with
4377         -fcheck-pointer-bounds.
4379 2017-03-14  Martin Liska  <mliska@suse.cz>
4381         PR middle-end/79831
4382         * doc/invoke.texi (-Wchkp): Document the option.
4384 2017-03-14  Martin Liska  <mliska@suse.cz>
4386         * Makefile.in: Install gcov-dump.
4388 2017-03-14  Martin Liska  <mliska@suse.cz>
4390         * multiple_target.c (expand_target_clones): Bail out for
4391         an invalid attribute.
4393 2017-03-14  Richard Biener  <rguenther@suse.de>
4395         * alias.c (struct alias_set_entry): Pack properly.
4396         * cfgloop.h (struct loop): Likewise.
4397         * cse.c (struct set): Likewise.
4398         * ipa-utils.c (struct searchc_env): Likewise.
4399         * loop-invariant.c (struct invariant): Likewise.
4400         * lra-remat.c (struct cand): Likewise.
4401         * recog.c (struct change_t): Likewise.
4402         * rtl.h (struct address_info): Likewise.
4403         * symbol-summary.h (function_summary): Likewise.
4404         * tree-loop-distribution.c (struct partition): Likewise.
4405         * tree-object-size.c (struct object_size_info): Likewise.
4406         * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
4407         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
4408         * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
4409         * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
4410         * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
4411         * tree-vectorizer.h (struct _loop_vec_info): Likewise.
4412         (struct _stmt_vec_info): Likewise.
4414 2017-03-14  Martin Liska  <mliska@suse.cz>
4416         PR target/79892
4417         * multiple_target.c (create_dispatcher_calls): Check that
4418         a target can create a function dispatcher.
4420 2017-03-14  Martin Liska  <mliska@suse.cz>
4422         PR lto/66295
4423         * multiple_target.c (expand_target_clones): Drop local.local
4424         flag for default implementation.
4426 2017-03-14  Richard Biener  <rguenther@suse.de>
4428         PR tree-optimization/80030
4429         * tree-vect-stmts.c (vectorizable_store): Plug memleak.
4431 2017-03-13  Kito Cheng  <kito.cheng@gmail.com>
4433         * config/riscv/riscv.c (riscv_emit_float_compare>: Use
4434         gcc_fallthrough() instead of __attribute__((fallthrough));
4436 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
4438         * doc/gcc.texi: Remove "up" link to (DIR).
4439         * doc/gccint.texi: Ditto.
4441 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
4443         * doc/install.texi (Specific) <avr>: Remove reference to
4444         binutils 2.13.
4446 2017-03-13  Jeff Law  <law@redhat.com>
4448         * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
4449         attribute rather than comments.
4451         * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
4452         match_scratch operand is highest.
4454 2017-03-13  Martin Liska  <mliska@suse.cz>
4456         PR middle-end/78339
4457         * ipa-pure-const.c (warn_function_noreturn): If the declarations
4458         is a CHKP clone, use original declaration.
4460 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
4462         * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
4463         (arc_conditional_register_usage): Use a different allocation order
4464         when optimizing for size.
4465         * common/config/arc/arc-common.c (arc_option_optimization_table):
4466         Section anchors default on when optimizing for size.
4468 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
4470         * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
4472 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
4474         * config/arc/arc.c (arc_output_addsi): Emit code density adds.
4475         * config/arc/arc.md (cpu_facility): Add cd variant.
4476         (*movqi_insn): Add code density variant.
4477         (*movhi_insn): Likewise.
4478         (*movqi_insn): Likewise.
4479         (*addsi3_mixed): Likewise.
4480         (subsi3_insn): Likewise.
4482 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
4484         * config/arc/arc.md (movsi_cond_exec): Update constraint.
4486 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
4488         * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
4489         expressions with MINUS and UNARY ops.
4491 2017-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4493         PR target/79911
4494         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
4495         Rename to...
4496         (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
4497         between vec_select and vector argument.
4498         (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
4499         (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
4500         (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
4501         (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
4502         (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
4503         (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
4505 2017-03-13  Richard Biener  <rguenther@suse.de>
4507         PR other/79991
4508         * params.def (vect-max-peeling-for-alignment): Fix typo.
4510 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
4512         * doc/install.texi (Specific) <mips-*-*>: Remove description of
4513         issue that only occurred with binutils below 2.18.
4515 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
4517         * doc/install.texi (Specific) <cris-axis-elf>: No longer
4518         refer to binutils 2.11/2.12 minimum.
4520 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
4522         * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
4523         ftp.kernel.org and simplify binutils requirement.
4525 2017-03-11  Gerald Pfeifer  <gerald@pfeifer.com>
4527         * doc/invoke.texi (Warning Options): Fix spelling of link-time
4528         optimization.
4529         (Optimize Options): Ditto.  Also remove redundancy.
4531 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
4533         PR translation/79848
4534         * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
4535         "%qs".
4536         * ipa-pure-const.c (suggest_attribute): Likewise.  Convert _
4537         to G_ to avoid double translation.
4539 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
4541         PR translation/79923
4542         * auto-profile.c (get_combined_location): Convert leading
4543         character of diagnostics to lower case and remove trailing period.
4544         (read_profile): Likewise for various diagnostics.
4545         * config/arm/arm.c (arm_option_override): Remove trailing period
4546         from various diagnostics.
4547         * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
4548         (msp430_expand_delay_cycles): Likewise.
4550 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
4552         PR target/79925
4553         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
4554         full command-line argument, rather than just "str".
4555         (aarch64_validate_march): Likewise.
4556         (aarch64_validate_mtune): Likewise.
4558 2017-03-10  Bernd Schmidt  <bschmidt@redhat.com>
4560         PR rtl-optimization/78911
4561         * lra-assigns.c (must_not_spill_p): New function.
4562         (spill_for): Use it.
4564 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
4566         PR tree-optimization/79981
4567         * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
4568         ATOMIC_COMPARE_EXCHANGE ifn result.
4569         (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
4570         IFN_ATOMIC_COMPARE_EXCHANGE.
4572 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
4574         PR driver/79875
4575         * opts.c (parse_sanitizer_options): Add missing question mark to
4576         "did you mean" message.
4578 2017-03-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4580         * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
4581         built-in.
4582         (VMULEUH_UNS): Likewise.
4583         (VMULOUB_UNS): Likewise.
4584         (VMULOUH_UNS): Likewise.
4585         * config/rs6000/rs6000.c (builtin_function_type): Remove
4586         references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
4588 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
4590         PR bootstrap/79952
4591         * read-rtl-function.c (function_reader::read_rtx_operand): Update
4592         x with result of extra_parsing_for_operand_code_0.
4593         (function_reader::extra_parsing_for_operand_code_0): Convert
4594         return type from void to rtx, returning x.  When reading
4595         SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
4596         larger size containing struct block_symbol.
4598 2017-03-10  Segher Boessenkool  <segher@kernel.crashing.org>
4600         * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
4601         -mfloat128-hardware without -m64.
4603 2017-03-10  Will Schmidt <will_schmidt@vnet.ibm.com>
4605         PR target/79941
4606         * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
4607         entries to the case statement that marks unsigned arguments to
4608         overloaded functions.
4610 2017-03-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4612         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
4613         two typographic errors in the handling of TARGET_UPPER_REGS_DI.
4615 2017-03-10  Pat Haugen  <pthaugen@us.ibm.com>
4617         PR target/79907
4618         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
4619         TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
4621 2017-03-10  Martin Liska  <mliska@suse.cz>
4623         PR target/65705
4624         PR target/69804
4625         * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
4626         * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
4627         FIELD != NULL.
4629 2017-03-10  Olivier Hainque  <hainque@adacore.com>
4631         * tree-switch-conversion (array_value_type): Start by resetting
4632         candidate type to it's main variant.
4634 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
4636         PR rtl-optimization/79909
4637         * combine.c (try_combine): Use simplify_replace_rtx on individual
4638         CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
4639         of the whole CALL_INSN_FUNCTION_USAGE.
4641         PR tree-optimization/79972
4642         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
4643         get_range_info on SSA_NAMEs.  Formatting fixes.
4645 2017-03-10  Richard Biener  <rguenther@suse.de>
4646             Jakub Jelinek  <jakub@redhat.com>
4648         PR tree-optimization/77975
4649         * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
4650         edge to be constant.
4651         (get_val_for): For constant x return it.  Formatting fix.
4652         (loop_niter_by_eval): Avoid pointless looping if the next iteration
4653         would use the same bases as the current one.
4655 2017-03-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4657         * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
4658         instead of vec_select for V1TImode.
4659         * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
4660         longer needed.
4661         (VSX_LE_128): Add V1TI to this mode iterator.
4662         (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
4663         (*vsx_le_perm_store_<mode>): Likewise.
4664         (pre-reload splitter for VSX stores): Likewise.
4665         (post-reload splitter for VSX stores): Likewise.
4666         (*vsx_xxpermdi2_le_<mode>): Likewise.
4667         (*vsx_lxvd2x2_le_<mode>): Likewise.
4668         (*vsx_stxvd2x2_le_<mode>): Likewise.
4670 2017-03-09  Michael Eager  <eager@eagercon.com>
4672         Correct failures with --enable-checking=yes,rtl.
4674         * config/microblaze/microblaze.c (microblaze_expand_shift):
4675         Replace GET_CODE test with CONST_INT_P and INTVAL test with
4676         test for const0_rtx.
4677         * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
4678         lshrsi3_byone): Replace INTVAL with test for const1_rtx.
4680 2017-03-09  Richard Biener  <rguenther@suse.de>
4682         PR tree-optimization/79977
4683         * graphite-scop-detection.c (scop_detection::merge_sese):
4684         Handle the case of extra exits to blocks dominating the entry.
4686 2017-03-09  Toma Tabacu  <toma.tabacu@imgtec.com>
4688         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
4689         Document rdynamic.
4691 2017-03-09  Vladimir Makarov  <vmakarov@redhat.com>
4693         PR rtl-optimization/79949
4694         * lra-constraints.c (process_alt_operands): Check memory when
4695         trying to predict a cycle.  Print about the overall increase.
4697 2017-03-09  Richard Biener  <rguenther@suse.de>
4699         PR middle-end/79971
4700         * gimple-expr.c (useless_type_conversion_p): Preserve
4701         TYPE_SATURATING for fixed-point types.
4703 2017-03-09  Richard Biener  <rguenther@suse.de>
4705         PR ipa/79970
4706         * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
4707         alignment of BLKmode params.
4709 2017-03-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4711         PR target/79913
4712         * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
4713         (VALL_NO_V2Q): Likewise.
4714         (VDQF_DF): Delete.
4715         * config/aarch64/aarch64-simd.md
4716         (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
4717         iterator.
4718         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
4719         VALL_NO_V2Q mode iterator.
4720         (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
4722 2017-03-09  Martin Liska  <mliska@suse.cz>
4724         PR tree-optimization/79631
4725         * tree-chkp-opt.c (chkp_is_constant_addr): Call
4726         tree_int_cst_sign_bit just for INTEGER constants.
4728 2017-03-09  Martin Liska  <mliska@suse.cz>
4730         PR target/65705
4731         PR target/69804
4732         * toplev.c (process_options): Disable -fcheck-pointer-bounds with
4733         sanitizers.
4735 2017-03-09  Marek Polacek  <polacek@redhat.com>
4737         PR c++/79672
4738         * tree.c (inchash::add_expr): Handle TREE_VEC.
4740 2017-03-09  Martin Liska  <mliska@suse.cz>
4742         PR ipa/79764
4743         (chkp_narrow_size_and_offset): New function.
4744         (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
4745         (void chkp_parse_bit_field_ref): New function.
4746         (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
4747         (chkp_process_stmt): Use chkp_parse_bit_field_ref.
4749 2017-03-09  Martin Liska  <mliska@suse.cz>
4751         PR ipa/79761
4752         * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
4753         (chkp_find_bounds_1): Remove gcc_unreachable.
4755 2017-03-09  Jakub Jelinek  <jakub@redhat.com>
4757         PR sanitizer/79944
4758         * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
4759         BUILT_IN_SYNC*, determine the access type from the size suffix and
4760         always build a MEM_REF with that type.  Handle forgotten
4761         BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
4763         PR target/79932
4764         * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
4765         _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
4766         _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
4767         _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
4768         _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
4769         _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
4770         _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
4771         _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
4772         _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
4773         _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
4774         _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
4775         _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
4776         _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
4777         _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
4778         _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
4779         _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
4780         _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
4781         _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
4782         _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
4783         _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
4784         _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
4785         _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
4786         _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
4787         _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
4788         _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
4789         _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
4790         _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
4791         _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
4792         _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
4793         _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
4794         definitions outside of __OPTIMIZE__ guarded section.
4796         PR target/79932
4797         * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
4798         _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
4799         _mm512_packus_epi32, _mm512_maskz_packus_epi32,
4800         _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
4801         guarded section.
4803 2017-03-09  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4805         * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
4806         ("vfenez<mode>"): Add missing constraints.
4808 2017-03-08  Martin Sebor  <msebor@redhat.com>
4810         PR target/79928
4811         * config/nds32/nds32.c (nds32_option_override):
4812         Fix misspelled diagnostic.
4814 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
4816         PR c/79940
4817         * gimplify.c (gimplify_omp_for): Replace index var in outer
4818         taskloop statement with an artificial variable and add
4819         OMP_CLAUSE_PRIVATE clause for it.
4821 2017-03-08  Richard Biener  <rguenther@suse.de>
4823         PR tree-optimization/79955
4824         * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
4825         for accesses that are completely outside of the variable.
4827 2017-03-08  Andrew Haley  <aph@redhat.com>
4829         PR tree-optimization/79943
4830         * tree-ssa-loop-split.c (compute_new_first_bound): When
4831         calculating the new upper bound, (END-BEG) should be added, not
4832         subtracted.
4834 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
4836         * config/avr/avr.md (setmemhi): Make sure match_dup
4837         operand number comes before match_scratch.
4839 2017-03-08  Richard Biener  <rguenther@suse.de>
4841         PR tree-optimization/79920
4842         * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
4843         with ncopies == 1 to ...
4844         (vect_transform_slp_perm_load): ... here.  Properly compute
4845         all element loads by iterating VF times over the group.  Do
4846         not handle ncopies (computed in a broken way) in
4847         vect_create_mask_and_perm.
4849 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
4851         PR sanitizer/79904
4852         * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
4853         is a uniform vector, use uniform_vector_p return value instead of
4854         building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
4856 2017-03-07  Marek Polacek  <polacek@redhat.com>
4858         PR middle-end/79809
4859         * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
4860         (alloca_call_type): Likewise.
4862 2017-03-07  Martin Liska  <mliska@suse.cz>
4864         * gcov.c (process_args): Put comment to correct location.
4866 2017-03-07  Martin Liska  <mliska@suse.cz>
4868         PR middle-end/68270
4869         * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
4870         Use array_at_struct_end_p instead of DECL_CHAIN (field).
4871         (chkp_narrow_bounds_for_field): Likewise.
4872         (chkp_parse_array_and_component_ref): Pass one more argument to
4873         call.
4875 2017-03-07  Richard Biener  <rguenther@suse.de>
4877         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
4878         preheaders.
4880 2017-03-07  Segher Boessenkool  <segher@kernel.crashing.org>
4882         * config/i386/i386.c (ix86_local_alignment): Align most aggregates
4883         of 16 bytes and more to 16 bytes, not those of 16 bits and more.
4885 2017-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4887         PR c/79855
4888         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
4889         to end of description.
4890         (PARAM_MAX_STORES_TO_MERGE): Likewise.
4892 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
4894         PR rtl-optimization/79901
4895         * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
4896         ...
4897         (*avx512f_<code><mode>3<mask_name>): ... this.
4898         (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
4899         iterator instead of VI8_AVX2_AVX512BW.
4901         PR rtl-optimization/79901
4902         * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
4903         min/max expander, expand it using expand_vec_cond_expr.
4905         PR sanitizer/79897
4906         * ubsan.c (ubsan_encode_value): Call mark_addressable on the
4907         temporary.
4909 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
4911         PR c++/79821
4912         * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
4913         to void * for PCH reasons.
4914         * dwarf2out.c (output_loc_operands, output_die): Cast
4915         v.val_vec.array to unsigned char *.
4917 2017-03-06  John David Anglin  <danglin@gcc.gnu.org>
4919         PR target/77850
4920         * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
4921         vector types.
4923 2017-03-06  Vladimir Makarov  <vmakarov@redhat.com>
4925         PR rtl-optimization/79571
4926         * lra-constraints.c (process_alt_operands): Calculate static
4927         reject and subtract it from overall when only addresses will be
4928         reloaded.
4930 2017-03-06  Julia Koval  <julia.koval@intel.com>
4932         PR target/79793
4933         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
4934         incoming stack boundary to 128 for 64-bit targets.
4936 2017-03-06  Richard Biener  <rguenther@suse.de>
4938         PR tree-optimization/79894
4939         * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
4940         to NULL after folding it.
4942 2017-03-06  Richard Biener  <rguenther@suse.de>
4944         PR tree-optimization/79824
4945         * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
4946         check disabling peeling for gaps.
4948 2017-03-06  Toma Tabacu  <toma.tabacu@imgtec.com>
4950         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
4951         attributes): Document gettimeofday.
4953 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
4955         * config/s390/s390.c (s390_option_override_internal): Set
4956         PARAM_MIN_VECT_LOOP_BOUND
4958 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
4960         * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
4961         * config/s390/s390.md: Likewise.
4963 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
4965         PR target/79812
4966         * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
4967         (<avx2_avx512>_perm<mode>): Rename to ...
4968         (avx2_perm<mode>): ... this.  Use VI8F_256 iterator instead
4969         of VI8F_256_512.
4970         (<avx512>_perm<mode>_mask): Rename to ...
4971         (avx512vl_perm<mode>_mask): ... this.  Use VI8F_256 iterator instead
4972         of VI8F_256_512.
4973         (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
4974         (avx2_perm<mode>_1<mask_name): ... this.  Use VI8F_256 iterator
4975         instead of VI8F_256_512.
4976         (avx512f_perm<mode>): New define_expand.
4977         (avx512f_perm<mode>_mask): Likewise.
4978         (avx512f_perm<mode>_1<mask_name>): New define_insn.
4979         (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
4981 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
4983         * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
4984         msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
4985         if_then_else.
4986         (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
4988 2017-03-06  Martin Liska  <mliska@suse.cz>
4990         PR sanitize/79783
4991         * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
4992         when having a SSA NAME w/o VAR_DECL assigned to it.
4994 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
4996         * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
4997         msa_dpsub_<su>_d): Fix MODE for vec_select.
4999 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
5001         * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
5002         argument.
5003         * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
5005 2017-03-06  Richard Biener  <rguenther@suse.de>
5007         * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
5008         * plugin.c (register_plugin_info): Likewise.
5009         * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
5011 2017-03-05  Jakub Jelinek  <jakub@redhat.com>
5013         * config/i386/sse.md (sse_storehps, sse_storelps,
5014         avx_<castmode><avxsizesuffix>_<castmode>,
5015         avx512f_<castmode><avxsizesuffix>_<castmode>,
5016         avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
5017         in condition that at least one operand is not a MEM.
5019 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
5021         PR middle-end/79805
5022         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
5023         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
5024         ECF_NOTHROW.
5025         * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
5026         gimple_call_nothrow_p flag based on whether original builtin can throw.
5027         If it can, emit following stmts on the fallthrough edge.
5028         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
5029         don't create new bb if inserting just debug stmts on the edge, try to
5030         insert them on the fallthru bb or just reset debug stmts.
5032 2017-03-03  Segher Boesssenkool  <segher@kernel.crashing.org>
5034         PR target/43763
5035         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
5036         restore recog_data (including the operand rtxes inside it) around
5037         the call to get_insn_template.
5039 2017-03-03  Martin Sebor  <msebor@redhat.com>
5041         PR tree-optimization/79699
5042         * context.c (context::~context): Free MPFR caches to avoid
5043         a memory leak on program exit.
5045 2017-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5047         * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
5048         Use wide_int::ulow () instead of .elt (0).
5050 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
5052         * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
5053         (*pushxf): Limit oF constraint to 32bit targets and add oC
5054         constraint for 64bit targets.
5055         (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
5056         (*pushdf): Change rmF constraint to rmC.
5058 2017-03-03  Martin Liska  <mliska@suse.cz>
5060         * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
5061         Remove unused variable.
5063 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
5065         PR target/79807
5066         * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
5067         is a memory operand, increase num_memory.
5068         (ix86_expand_args_builtin): Likewise.
5070 2017-03-03  Jan Hubicka  <jh@suse.cz>
5072         PR lto/79760
5073         * ipa-devirt.c (maybe_record_node): Properly handle
5074         __cxa_pure_virtual visibility.
5076 2017-03-03  Martin Liska  <mliska@suse.cz>
5078         PR tree-optimization/79803
5079         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
5080         assert.
5081         (pass_loop_prefetch::execute): Disabled optimization if an
5082         assumption about L1 cache size is not met.
5084 2017-03-03  Martin Liska  <mliska@suse.cz>
5086         PR rtl-optimization/79574
5087         * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
5088         (hash_scan_set): Likewise.
5089         (dump_hash_table): Likewise.
5090         (hoist_code): Likewise.
5092 2017-03-03  Richard Biener  <rguenther@suse.de>
5094         * fixed-value.c (fixed_from_string): Restore use of elt (1)
5095         in place of uhigh ().
5096         (fixed_convert_from_real): Likewise.
5098 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
5100         PR target/79514
5101         * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
5103 2017-03-03  Richard Biener  <rguenther@suse.de>
5105         PR middle-end/79818
5106         * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
5107         TYPE_OVERFLOW_UNDEFINED check.
5109 2017-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5111         * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
5112         numbers.
5113         (vector_ae_<mode>_p): Likewise.
5114         (vector_nez_<mode>_p): Likewise.
5115         (vector_ne_v2di_p): Likewise.
5116         (vector_ae_v2di_p): Likewise.
5117         (vector_ne_<mode>_p): Likewise.
5118         * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
5119         numbers.
5120         (vsx_tsqrt<mode>2_fe): Likewise.
5122 2017-03-02  Uros Bizjak  <ubizjak@gmail.com>
5124         PR target/79514
5125         * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
5127 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
5129         PR rtl-optimization/79780
5130         * cprop.c (one_cprop_pass): When second and further conditional trap
5131         in a single basic block is turned into an unconditional trap, turn it
5132         into a deleted note to avoid RTL verification failures.
5134 2017-03-02  Richard Biener  <rguenther@suse.de>
5136         * fold-const.c (const_binop): Use ulow () instead of elt (0).
5138 2017-03-02  Richard Biener  <rguenther@suse.de>
5140         PR tree-optimization/79345
5141         PR c++/42000
5142         * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
5143         param and abort the walk, returning -1 if it is hit.
5144         (walk_aliased_vdefs): Take a limit param and pass it on.
5145         * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
5146         defaulting to 0 and return a signed int.
5147         * tree-ssa-uninit.c (struct check_defs_data): New struct.
5148         (check_defs): New helper.
5149         (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
5150         about uninitialized memory.
5151         * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
5152         bogus uninitialized warning.
5153         (fixed_convert_from_real): Likewise.
5155 2017-03-02  Bin Cheng  <bin.cheng@arm.com>
5157         PR tree-optimization/66768
5158         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
5159         iv_use if base object can't be determined.
5161 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
5163         PR tree-optimization/79345
5164         * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
5165         * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
5166         (get_pattern_stats): Initialize it.
5167         * genemit.c (gen_expand): Verify match_scratch numbers come after
5168         match_operand/match_dup numbers.
5169         * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
5170         match_scratch numbers.
5171         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
5172         Likewise.
5173         * config/s390/s390.md (trunctdsd2): Likewise.
5175 2017-03-02  Richard Biener  <rguenther@suse.de>
5177         * wide-int.h (wide_int_storage::operator=): Implement in terms
5178         of wi::copy.
5180 2017-03-02  Richard Biener  <rguenther@suse.de>
5182         PR tree-optimization/79777
5183         * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
5184         the to insert expression to sth existing.
5186 2017-03-01  Martin Sebor  <msebor@redhat.com>
5188         PR middle-end/79692
5189         * gimple-ssa-sprintf.c
5190         (directive::known_width_and_precision): New function.
5191         (format_integer): Use it.
5192         (get_mpfr_format_length): Consider the full range of precision
5193         when computing %g output with the # flag.  Set the likely byte
5194         count to 3 rather than 1 when precision is indeterminate.
5195         (format_floating): Correct the lower bound of precision.
5197 2017-03-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5199         * doc/invoke.texi: Document default code model for 64-bit Linux.
5201 2017-03-01  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
5203         PR target/79752
5204         * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
5205         udiv rather than div since input pattern is unsigned.
5207 2017-03-01  Uros Bizjak  <ubizjak@gmail.com>
5209         * config/i386/i386.c (print_reg): Warn for values of
5210         unsupported size in integer register.
5212 2017-03-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
5214         PR target/79439
5215         * config/rs6000/predicates.md (current_file_function_operand): Do
5216         not allow self calls to be local if the function is replaceable.
5218 2017-03-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5220         PR target/79395
5221         * config/rs6000/altivec.h (vec_ctz and others): Change the
5222         preprocessor macro that controls conditional compilation from
5223         _ARCH_PWR9 to __POWER9_VECTOR__.
5224         (vec_all_ne): Change parameterization of __altivec_scalar_pred
5225         macro expansion under preprocessor #ifdef __POWER9_VECTOR__
5226         control (instead of _ARCH_PWR9 control) so that template
5227         definition uses power9-specific function.
5228         (vec_any_eq): Likewise.
5229         (vec_all_ne): Change macro definition to use a power9-specific
5230         expansion under #ifdef __POWER9_VECTOR__ control (instead of
5231         _ARCH_PWR9 control).
5232         (vec_any_eq) Likewise.
5233         * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
5234         expansion for CMPNEF to remove support for xvcmpnesp instruction.
5235         (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
5236         support for xvcmpnedp instruction.
5237         (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
5238         macro expansion so that Power9 implementation of vec_all_ne does
5239         not use the AltiVec predicate framework.
5240         (VCMPNEH_P): Likewise.
5241         (VCMPNEW_P): Likewise.
5242         (VCMPNED_P): Likewise.
5243         (VCMPNEFP_P): Likewise.
5244         (VCMPNEDP_P): Likewise.
5245         (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
5246         implementation of vec_any_eq to not use AltiVec predicate
5247         framework.
5248         (VCMPAEH_P): Likewise.
5249         (VCMPAEW_P): Likewise.
5250         (VCMPAED_P): Likewise.
5251         (VCMPAEFP_P): Likewise.
5252         (VCMPAEDP_P): Likewise.
5253         (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
5254         BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
5255         not use the AltiVec predicate framework.
5256         (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
5257         of vec_any_eq to not use AltiVec predicate framework.
5258         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
5259         support for predefined __POWER9_VECTOR__ macro to indicate that
5260         Power9 instruction selection is enabled.
5261         (altivec_overloaded_builtins): Remove extraneous
5262         ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
5263         function argument types RS6000_BTI_bool_V16QI and
5264         RS6000_BTI_bool_V16QI.  Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
5265         entry for overloaded function argument types RS6000_BTI_bool_V4SI
5266         andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB.  Remove
5267         two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
5268         P9V_BUILTIN_CMPNEF to force use of instructions not specific to
5269         Power9 for implementations of vec_cmpne.  Change the signature for
5270         all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
5271         (representing vec_all_ne) to remove the previously described first
5272         argument of type RS6000_BTI_INTSI, as this was an artifact of
5273         reliance on the AltiVec predicate framework, which is no longer
5274         used in the implementation of these functions.  Add
5275         P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
5276         function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
5277         since, unlike the AltiVec predicate framework implementation, we
5278         do not share function descriptors between vec_alle and vec_anyeq.
5279         (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
5280         set of modes that receive special treatment even when
5281         TARGET_P9_VECTOR is true.  The special treatment emits code that
5282         does not depend on Power9 instructions.
5283         * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
5284         define_expand to not rely on AltiVec predicate framework.
5285         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
5286         function.
5287         (vector_ne_v2di_p): Change this define_expand to not rely on
5288         AltiVec predicate framework.
5289         (vector_ae_v2di_p): New define_expand to represent vec_any_eq
5290         function.
5291         (vector_ne_<mode>_p): Change this define_expand to not rely on
5292         AltiVec predicate framework.
5293         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
5294         function.
5295         * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
5296         (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
5297         define_insn pattern.
5298         (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
5299         define_insn pattern because the xvcmpne<VSs>. instruction is not
5300         supported.
5301         (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
5302         instruction is not supported.
5304 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
5306         * config/nvptx/nvptx.c: Include intl.h.
5308 2017-03-01  Martin Jambor  <mjambor@suse.cz>
5310         PR lto/78140
5311         * ipa-prop.h (ipa_bits): Removed field known.
5312         (ipa_jump_func): Removed field vr_known.  Changed fields bits and m_vr
5313         to pointers.  Adjusted their comments to warn about their sharing.
5314         (ipcp_transformation_summary): Change bits to a vector of pointers.
5315         (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
5316         (ipa_get_ipa_bits_for_value): Declare.
5317         * tree-vrp.h (value_range): Mark as GTY((for_user)).
5318         * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
5319         (ipa_bits_hash_table): Likewise.
5320         (ipa_vr_ggc_hash_traits): Likewise.
5321         (ipa_vr_hash_table): Likewise.
5322         (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
5323         being pointers and vr_known being removed.
5324         (ipa_set_jf_unknown): Likewise.
5325         (ipa_get_ipa_bits_for_value): New function.
5326         (ipa_set_jfunc_bits): Likewise.
5327         (ipa_get_value_range): New overloaded functions.
5328         (ipa_set_jfunc_vr): Likewise.
5329         (ipa_compute_jump_functions_for_edge): Use the above functions to
5330         construct bits and vr parts of jump functions.
5331         (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
5332         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
5333         exist.
5334         (ipcp_grow_transformations_if_necessary): Also allocate
5335         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
5336         exist.
5337         (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
5338         them.  Fix too long lines.
5339         (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
5340         vr_known being removed.
5341         (ipa_read_jump_function): Use new setter functions to construct bits
5342         and vr parts of jump functions or set them to NULL.
5343         (write_ipcp_transformation_info): Adjust for bits being pointers.
5344         (read_ipcp_transformation_info): Likewise.
5345         (ipcp_update_bits): Likewise.  Fix excessively long lines a trailing
5346         space.
5347         Include gt-ipa-prop.h.
5348         * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
5349         being pointers.
5350         (ipcp_store_bits_results): Likewise.
5351         (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
5352         Do not write to existing jump functions but use a temporary instead.
5354 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
5356         PR c++/79681
5357         * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
5358         attempt to use its first operand as BIT_FIELD_REF base.
5360 2017-03-01  Richard Biener  <rguenther@suse.de>
5362         PR middle-end/79721
5363         * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
5364         interpolating formula in wrapping arithmetic.
5365         (chrec_apply): Convert chrec_evaluate return value to wanted type.
5367 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
5369         PR tree-optimization/79734
5370         * tree-vect-generic.c (expand_vector_condition): Optimize
5371         AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
5372         Handle VEC_COND_EXPR where comparison has different inner width from
5373         type's inner width.
5375 2017-02-28  Sandra Loosemore  <sandra@codesourcery.com>
5377         * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
5378         markup, and similar issues.  Remove @opindex entries for things
5379         that aren't options.  Add missing -mmpy-option entries.
5381 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
5383         PR tree-optimization/79737
5384         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
5385         a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
5386         tmpbuf[byte_size - 1].  Call natice_encode_expr with byte_size - 1
5387         instead of byte_size.  Formatting fix.
5388         (shift_bytes_in_array_right): Formatting fix.
5390 2017-02-28  Eric Botcazou  <ebotcazou@adacore.com>
5392         PR target/79749
5393         * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
5394         condition on optimize for the leaf function test.
5396 2017-02-28  Martin Liska  <mliska@suse.cz>
5398         PR lto/79625
5399         * read-rtl-function.c (function_reader::handle_unknown_directive):
5400         Bail out when one uses -flto.
5402 2017-02-28  Martin Liska  <mliska@suse.cz>
5404         * common.opt: Replace space with tabular for options of <number>
5405         type.
5406         * config/i386/i386.opt: Show <number> value for
5407         -mlarge-data-threshold.
5408         * opts.c (print_filtered_help): Do not display number in hexadecimal
5409         format.
5411 2017-02-28  Martin Liska  <mliska@suse.cz>
5413         * common.opt: Fix --help=option -Q for options which are of
5414         an enum type.
5416 2017-02-28  Uros Bizjak  <ubizjak@gmail.com>
5418         * config/i386/i386.c (print_reg): Error out for values
5419         of 8-bit size in invalid integer register.
5421 2017-02-28  Martin Sebor  <msebor@redhat.com>
5423         PR tree-optimization/79691
5424         * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
5426 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
5428         PR target/79729
5429         * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
5430         gcc_unreachable with output_operand_lossage.
5432 2017-02-28  Richard Biener  <rguenther@suse.de>
5434         PR tree-optimization/79740
5435         * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
5436         inserts.
5437         (visit_nary_op): Insert the nary into the hashtable if we
5438         pattern-matched sth.
5439         * tree-ssa-pre.c (eliminate_insert): Robustify.
5441 2017-02-28  Richard Biener  <rguenther@suse.de>
5443         PR middle-end/79731
5444         * fold-const.c (decode_field_reference): Reject out-of-bound
5445         accesses.
5447 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
5449         * config/i386/i386.c: Include intl.h.
5450         (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
5451         instead of just cond ? "..." : "...".
5452         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
5453         * coverage.c (read_counts_file): Likewise.
5454         * omp-offload.c: Include intl.h.
5455         (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
5456         of just cond ? "..." : "...".
5457         * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
5458         of just cond ? "..." : "...".
5460 2017-02-28  Richard Earnshaw  <rearnsha@arm.com>
5462         PR target/79742
5463         * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
5464         entry, if present.
5465         * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
5466         'tune for' CPU name.
5467         * config/arm/arm-cpu-data.h: Regenerated.
5469 2017-02-28  Richard Biener  <rguenther@suse.de>
5471         PR tree-optimization/79732
5472         * tree-inline.c (expand_call_inline): Do not shadow var.
5474 2017-02-28  Richard Biener  <rguenther@suse.de>
5476         PR tree-optimization/79723
5477         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
5478         address-space properly.
5480 2017-02-28  Thomas Schwinge  <thomas@codesourcery.com>
5482         * doc/optinfo.texi (Optimization groups): Fix option used for
5483         OPTGROUP_ALL.
5484         * doc/invoke.texi (-fopt-info): Document "omp".
5485         * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
5486         (OPTGROUP_ALL): Add OPTGROUP_OMP.
5487         * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
5488         * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
5489         * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
5491         * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP.  Adjust
5492         all users.
5493         * dumpfile.c (optgroup_options): Instead of "openmp", associate
5494         OPTGROUP_OMP with "omp".
5496 2017-02-27  Pat Haugen  <pthaugen@us.ibm.com>
5498         PR target/79544
5499         * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
5500         for arithmetic shift of unsigned V2DI.
5502 2017-02-27  Claudiu Zissulescu  <claziss@synopsys.com>
5504         * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
5505         arc/linux.h headers.
5506         * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
5507         (LINK_SPEC): Likewise.
5508         (ARC_TLS_EXTRA_START_SPEC): Likewise.
5509         (EXTRA_SPECS): Likewise.
5510         (STARTFILE_SPEC): Likewise.
5511         (ENDFILE_SPEC): Likewise.
5512         (LIB_SPEC): Likewise.
5513         (TARGET_SDATA_DEFAULT): Likewise.
5514         (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
5515         (MULTILIB_DEFAULTS): Likewise.
5516         (DWARF2_UNWIND_INFO): Likewise.
5517         * config/arc/big.h: New file.
5518         * config/arc/elf.h: Likewise.
5519         * config/arc/linux.h: Likewise.
5520         * config/arc/t-uClibc: Remove.
5522 2017-02-27  Bin Cheng  <bin.cheng@arm.com>
5524         PR tree-optimization/77536
5525         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
5526         (tree_transform_and_unroll_loop): Use above function to compute the
5527         estimated niter of unrolled loop and use it when scaling profile.
5528         Also use count info rather than frequency if it's non-zero.
5529         * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
5530         * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
5531         (vect_transform_loop): Call above function.
5533 2017-02-27  Richard Biener  <rguenther@suse.de>
5535         PR tree-optimization/45397
5536         * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
5537         * tree-ssa-sccvn.c (valueized_wider_op): New helper.
5538         (visit_nary_op): Add pattern matching for CSEing sign-changed
5539         or truncated operations with wider ones.
5541 2017-02-27  Richard Biener  <rguenther@suse.de>
5543         PR tree-optimization/79690
5544         * tree-vect-stmts.c (vectorizable_store): Use vector type
5545         built from the DR with address-space.
5547 2017-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
5549         * doc/invoke.texi (Optimize Options): Refine the description
5550         of asan-use-after-return.
5552 2017-02-25  Alan Modra  <amodra@gmail.com>
5554         PR rtl-optimization/79584
5555         * lra-constraints.c (base_to_reg): Reload ad->base, the entire
5556         base, not ad->base_term, the reg within base.  Remove assertion
5557         that ad->base == ad->base_term.  Replace gen_int_mode using
5558         bogus mode with const0_rtx.
5560 2017-02-25  Jakub Jelinek  <jakub@redhat.com>
5562         PR middle-end/79396
5563         * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
5564         FMA_EXPR like tcc_binary or tcc_unary.
5566         * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
5568         PR debug/77589
5569         * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
5570         bitfield.
5571         (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
5572         (output_loc_operands): Handle DW_OP_call_ref and
5573         DW_OP_GNU_variable_value.
5574         (struct variable_value_struct): New type.
5575         (struct variable_value_hasher): Likewise.
5576         (variable_value_hash): New variable.
5577         (string_types): Remove.
5578         (copy_loc_descr): New function.
5579         (add_loc_descr_to_each): Clarify comment.  Use copy_loc_descr.
5580         (prepend_loc_descr_to_each): New function.
5581         (add_loc_list): Fix comment typo.  Use prepend_loc_descr_to_each
5582         instead of add_loc_descr_to_each if the first argument is single
5583         location list and the second has multiple.
5584         (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
5585         (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
5586         when looking for variable value which doesn't have other location info.
5587         (loc_list_from_tree): Formatting fix.
5588         (gen_array_type_die): Simplify DW_AT_string_length handling.
5589         (adjust_string_types): Remove.
5590         (gen_subprogram_die): Don't call adjust_string_types nor test/set
5591         string_types.  Call resolve_variable_values.
5592         (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
5593         (resolve_addr_in_expr): Likewise.  Add A argument.
5594         (copy_deref_exprloc): Remove deref argument.  Adjust for the
5595         original expression being DW_OP_GNU_variable_value with optionally
5596         DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
5597         optionally after it.
5598         (optimize_string_length): Rework for DW_OP_GNU_variable_value.
5599         (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
5600         callers.  Set remove_AT_byte_size if removing DW_AT_string_length.
5601         (variable_value_hasher::hash, variable_value_hasher::equal): New
5602         methods.
5603         (resolve_variable_value_in_expr, resolve_variable_value,
5604         resolve_variable_values, note_variable_value_in_expr,
5605         note_variable_value): New functions.
5606         (dwarf2out_early_finish): Call note_variable_value on all toplevel
5607         DIEs.
5609 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
5611         PR c/79677
5612         * opts.h (handle_generated_option): Add GENERATED_P argument.
5613         * opts-common.c (handle_option): Adjust function comment.
5614         (handle_generated_option): Add GENERATED_P argument, pass it to
5615         handle_option.
5616         (control_warning_option): Pass false to handle_generated_option
5617         GENERATED_P.
5618         * opts.c (maybe_default_option): Pass true to handle_generated_option
5619         GENERATED_P.
5620         * optc-gen.awk: Likewise.
5622 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
5624         * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
5625         a REG, look at the REG it is a SUBREG of.
5626         (splitter for cmpeqsi_t): Ditto.
5628 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
5630         * config/pa/pa.c (pa_combine_instructions): Do not share RTL.  Make
5631         the special USEs with the pattern of the insn, not the insn itself.
5633 2017-02-24  Matthew Fortune  <matthew.fortune@imgtec.com>
5635         PR target/79473
5636         * doc/invoke.texi: Document -mload-store-pairs.
5638 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
5639             Sandra Loosemore  <sandra@codesourcery.com>
5641         * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
5642         argument isn't a CONST_INT.
5643         (nios2_alternate_compare_const): Assert op is a CONST_INT.
5644         (nios2_valid_compare_const_p): Assert op is a CONST_INT.
5645         (nios2_validate_compare): Bypass alternate compare logic if *op2
5646         is not a CONST_INT.
5647         (ldstwm_operation_p): Return false if first_base is not a REG or
5648         if first_offset is not a CONST_INT.
5650 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
5652         * config/cris/cris.md: Use correct operand in a define_peephole2.
5654 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
5656         * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
5658 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
5660         * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
5661         this_insn if it is an INSN or JUMP_INSN.
5662         (force_offsettable): Look at base, not at addr.
5663         * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
5664         on things that aren't necessarily CONST_INTs.
5666 2017-02-24  Uros Bizjak  <ubizjak@gmail.com>
5668         * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
5669         -mfpmath=sse is the default also for x86-32 targets with SSE2
5670         instruction set when @option{-ffast-math} is enabled
5672 2017-02-24  Jeff Law  <law@redhat.com>
5674         PR rtl-optimizatoin/79286
5675         * ira.c (update_equiv_regs): Drop may_trap_p exception to
5676         dominance test.
5678 2017-02-24  Richard Biener  <rguenther@suse.de>
5680         PR tree-optimization/79389
5681         * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
5682         debug insns.
5684 2017-02-24  Aldy Hernandez  <aldyh@redhat.com>
5686         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
5687         function comment to reflect reality.
5688         (loop_exits_before_overflow): Fix typo in function description.
5690 2017-02-24  Richard Biener  <rguenther@suse.de>
5692         PR tree-optimization/79389
5693         * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
5694         properly that a threading opportunity exists.  Detect conditional
5695         copy/constant propagation opportunities.
5697 2017-02-23  Eric Botcazou  <ebotcazou@adacore.com>
5699         * config/visium/visium.md (type): Add trap.
5700         (b): New mode attribute.
5701         (*btst): Rename into...
5702         (*btst<mode>): ...this and adjust.
5703         (*cbranchsi4_btst_insn): Rename into...
5704         (*cbranch<mode>4_btst_insn): ...this and adjust.
5705         (trap): New define_insn.
5707 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
5709         PR tree-optimization/79389
5710         * ifcvt.c (struct noce_if_info): Add rev_cond field.
5711         (noce_reversed_cond_code): New function.
5712         (noce_emit_store_flag): Use rev_cond if non-NULL instead of
5713         reversed_comparison_code.  Formatting fix.
5714         (noce_try_store_flag): Test rev_cond != NULL in addition to
5715         reversed_comparison_code.
5716         (noce_try_store_flag_constants): Likewise.
5717         (noce_try_store_flag_mask): Likewise.
5718         (noce_try_addcc): Use rev_cond if non-NULL instead of
5719         reversed_comparison_code.
5720         (noce_try_cmove_arith): Likewise.  Formatting fixes.
5721         (noce_try_minmax, noce_try_abs): Clear rev_cond.
5722         (noce_find_if_block): Initialize rev_cond.
5723         (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
5724         instead of false as last argument never attempt to reverse it
5725         afterwards.
5727 2017-02-23  Bin Cheng  <bin.cheng@arm.com>
5729         PR tree-optimization/79663
5730         * tree-predcom.c (combine_chains): Process refs in reverse order
5731         only for ZERO length chains, and add explaining comment.
5733 2017-02-23  Jeff Law  <law@redhat.com>
5735         PR tree-optimization/79578
5736         * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
5737         in call to operand_equal_p.
5739 2017-01-23  Dominique d'Humieres  <dominiq@lps.ens.fr>
5741         PR target/71017
5742         * config/i386/cpuid.h: Fix another undefined behavior.
5744 2017-02-23  Richard Biener  <rguenther@suse.de>
5746         PR tree-optimization/79683
5747         * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
5748         vector types for data-refs.
5750 2017-02-23  Martin Liska  <mliska@suse.cz>
5752         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
5754 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
5756         PR middle-end/79665
5757         * internal-fn.c (get_range_pos_neg): Moved to ...
5758         * tree.c (get_range_pos_neg): ... here.  No longer static.
5759         * tree.h (get_range_pos_neg): New prototype.
5760         * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
5761         are known to be in between 0 and signed maximum inclusive, try to
5762         expand both unsigned and signed divmod and use the cheaper one from
5763         those.
5765 2017-02-22  Jeff Law  <law@redhat.com>
5767         PR tree-optimization/79578
5768         * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
5769         to compare base operands.
5771 2017-02-22  Segher Boessenkool  <segher@kernel.crashing.org>
5773         PR target/79211
5774         * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
5775         gpc_reg_operand instead of fpr_reg_operand.
5777 2017-02-22  Sameera Deshpande  <sameera.deshpande@imgtec.com>
5779         * config/mips/mips.c (mips_return_in_memory): Force FP
5780         vector types to be returned in memory for o32 ABI.
5782 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
5784         * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
5785         instead of DW_TAG_member for static data member declarations and don't
5786         set no_linkage_name for static inline data members.
5787         (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
5788         to DW_TAG_member.
5790 2017-02-22  Martin Liska  <mliska@suse.cz>
5792         * doc/invoke.texi: Replace inequality signs with square brackets
5793         for -Wnormalized.
5795 2017-02-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5797         PR tree-optimization/68644
5798         * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
5800 2017-02-22  Matthew Fortune  <matthew.fortune@imgtec.com>
5802         PR target/78660
5803         * lra-constraints.c (simplify_operand_subreg): Handle
5804         WORD_REGISTER_OPERATIONS targets.
5806 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
5808         PR target/70465
5809         * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
5810         and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
5811         elimination by swapping fld*.
5813 2017-02-22  Richard Biener  <rguenther@suse.de>
5815         PR tree-optimization/79673
5816         * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
5817         convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
5818         irrelevant address-space qualifiers and avoiding a
5819         ADDR_SPACE_CONVERT_EXPR from fold_convert.
5821 2017-02-22  Richard Biener  <rguenther@suse.de>
5823         PR tree-optimization/79666
5824         * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
5825         to not symbolically negate if that may introduce undefined
5826         overflow.
5828 2017-02-22  Martin Liska  <mliska@suse.cz>
5830         PR lto/79587
5831         * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
5832         * data-streamer-out.c (streamer_write_gcov_count_stream):
5833         Likewise.
5834         * value-prof.c (stream_out_histogram_value): Make assert more
5835         precise based on type of counter.
5837 2017-02-21  Uros Bizjak  <ubizjak@gmail.com>
5839         PR target/79593
5840         * config/i386/i386.md (standard_x87sse_constant_load splitter):
5841         Use nonimmediate_operand instead of memory_operand for operand 1.
5842         (float-extend standard_x87sse_constant_load splitter): Ditto.
5844 2017-02-21 Jeff Law  <law@redhat.com>
5846         PR tree-optimization/79621
5847         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
5848         blocks with edges to themselves.
5850 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
5852         PR target/79633
5853         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
5854         is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
5855         Use gimple_call_builtin_p.
5857         PR target/79570
5858         * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
5859         on temporarily removed DEBUG_INSNs.
5861         PR tree-optimization/79649
5862         * tree-loop-distribution.c (classify_partition): Give up on
5863         non-generic address space loads/stores.
5865 2017-02-21  Aldy Hernandez  <aldyh@redhat.com>
5867         * doc/loop.texi (Loop manipulation): Remove nonexistent
5868         tree_ssa_loop_version from the documentation.
5869         * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
5871 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
5873         PR target/79494
5874         * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
5875         make_reg_eh_region_note_nothrow_nononlocal on call_insn.
5876         * config/rs6000/rs6000.c: Include except.h.
5877         (rs6000_expand_split_stack_prologue): Call
5878         make_reg_eh_region_note_nothrow_nononlocal on the call insn.
5880 2017-02-21  Martin Jambor  <mjambor@suse.cz>
5882         PR lto/79579
5883         * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
5884         have been analyzed.
5886 2017-02-21  Martin Jambor  <mjambor@suse.cz>
5888         * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
5889         for backward compatibility only.
5890         * doc/invoke.texi (Option Summary): Remove all references to
5891         -fipa-cp-alignment.
5893 2017-02-21  Matthew Fortune  <matthew.fortune@imgtec.com>
5895         PR target/78660
5896         Revert:
5897         2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
5899         * lra-constraints.c (curr_insn_transform): Handle
5900         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
5902 2017-02-21  Martin Liska  <mliska@suse.cz>
5904         * config/i386/i386.opt: Replace -masm-dialect with -masm.
5906 2017-02-21  Thomas Schwinge  <thomas@codesourcery.com>
5908         PR translation/79638
5909         * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
5911 2017-02-21  Eric Botcazou  <ebotcazou@adacore.com>
5913         PR ada/67205
5914         * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
5915         (arm_function_ok_for_sibcall): Return false for an indirect call by
5916         descriptor if all the argument registers are used.
5917         (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
5918         alignment of the function.
5920 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
5922         PR tree-optimization/61441
5923         * simplify-rtx.c (simplify_const_unary_operation): For
5924         -fsignaling-nans and sNaN operand, return NULL_RTX rather than
5925         the sNaN unmodified.
5927 2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5929         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
5930         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
5931         instead of SYSTEM_HEADER_DIR.
5933 2017-02-20  Gerald Pfeifer  <gerald@pfeifer.com>
5934             Martin LiÅ¡ka  <mliska@suse.cz>
5936         * doc/invoke.texi (use-after-scope-direct-emission-threshold):
5937         Fix typos and grammar, use active voice, and clarify.
5939 2017-02-20  Marek Polacek  <polacek@redhat.com>
5941         PR middle-end/79537
5942         * gimplify.c (gimplify_expr): Handle unused *&&L;.
5944         PR sanitizer/79558
5945         * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
5947 2017-02-20  Jakub Jelinek  <jakub@redhat.com>
5949         PR target/79568
5950         * config/i386/i386.c (ix86_expand_builtin): Handle
5951         OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
5952         ix86_builtins_isa[fcode].isa as a requirement of those
5953         flags and any other flag in the bitmask.
5954         (ix86_init_mmx_sse_builtins): Use 0 instead of
5955         ~OPTION_MASK_ISA_64BIT as mask.
5956         * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
5957         __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
5958         __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
5959         __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
5961 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
5963         PR target/78012
5964         * lra-constraints.c (split_reg): Check requested split mode
5965         is supported by the register.
5967 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
5969         * lra-constraints.c (simplify_operand_subreg): Remove early
5970         return false.
5972 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
5974         PR target/78660
5975         * lra-constraints.c (curr_insn_transform): Tighten condition
5976         for converting SUBREG reloads from OP_OUT to OP_INOUT.
5978 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
5980         PR target/78660
5981         * lra-constraints.c (curr_insn_transform): Handle
5982         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
5984 2017-02-19  Uros Bizjak  <ubizjak@gmail.com>
5986         Revert:
5987         2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
5989         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
5991 2017-02-19  Jonathan Wakely  <jwakely@redhat.com>
5993         PR c++/69523
5994         * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
5995         description.
5997 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5999         * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
6000         for FMA_EXPR.
6002 2017-02-18  Jakub Jelinek  <jakub@redhat.com>
6004         * final.c (last_columnnum, override_columnnum): New variables.
6005         (final_start_function): Set last_columnnum, pass it to begin_prologue
6006         hook and pass 0 to dwarf2out_begin_prologue.
6007         (final_scan_insn): Update override_columnnum.  Pass last_columnnum
6008         to source_line debug hook.
6009         (notice_source_line): Compute last_columnnum and for debug_column_info
6010         return true on column changes.
6011         * debug.h (struct gcc_debug_hooks): Add column argument to
6012         source_line and begin_prologue hooks.
6013         (debug_nothing_int_charstar_int_bool): Remove prototype.
6014         (debug_nothing_int_int_charstar,
6015         debug_nothing_int_int_charstar_int_bool): New prototypes.
6016         (dwarf2out_begin_prologue): Add column argument.
6017         * debug.c (do_nothing_debug_hooks): Adjust source_line and
6018         begin_prologue hooks.
6019         (debug_nothing_int_charstar_int_bool): Remove.
6020         (debug_nothing_int_int_charstar,
6021         debug_nothing_int_int_charstar_int_bool): New functions.
6022         * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
6023         through to dwarf2out_source_line.
6024         (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
6025         (dwarf2out_source_line): Add column argument, emit it if requested.
6026         * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
6027         arguments.
6028         * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
6029         * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
6030         * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
6031         through to dwarf2out_begin_prologue.
6032         (vmsdbgout_source_line): Add column argument, pass it through to
6033         dwarf2out_source_line.
6034         * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
6035         dbxout_source_line caller.
6036         (dbxout_source_line): Add column argument.
6038         * common.opt (gno-column-info, gcolumn-info): New options.
6039         * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
6040         (check_die): Also test for multiple DW_AT_decl_column attributes.
6041         (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
6042         DW_AT_decl_column if requested.
6043         (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
6044         if requested.
6045         (gen_variable_die): Likewise.
6046         (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
6047         * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
6049         PR target/79569
6050         * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
6051         * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
6052         (ix86_handle_option): Handle OPT_m3dnowa.
6053         * doc/invoke.texi (-m3dnowa): Document.
6054         * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
6055         -m3dnowa instead of -m3dnow -march=athlon.
6057         PR target/79559
6058         * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
6059         instead of gcc_assert for K, r and R code checks.  Formatting fixes.
6061 2017-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6063         PR target/79261
6064         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
6065         support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
6066         * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
6067         generator for vsx_xxpermdi_<mode>_be.
6068         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
6069         force big-endian semantics.
6070         (vsx_xxpermdi_<mode>_be): New define_expand with same
6071         implementation as previous version of vsx_xxpermdi_<mode>.
6073 2017-02-17  Jakub Jelinek  <jakub@redhat.com>
6075         PR tree-optimization/79327
6076         * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
6077         variable, its initialization and use.
6079 2017-02-17  Julia Koval  <julia.koval@intel.com>
6081         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
6082         (OPTION_MASK_ISA_PKU_UNSET): New.
6083         (ix86_handle_option): Handle -mrdpid.
6084         * config/i386/cpuid.h (bit_RDPID): New.
6085         * config/i386/driver-i386.c (host_detect_local_cpu):
6086         Detect RDPID feature.
6087         * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
6088         * config/i386/i386-c.c (ix86_target_macros_internal):
6089         Handle RDPID flag.
6090         * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
6091         (ix86_valid_target_attribute_inner_p): Add "rdpid".
6092         (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
6093         * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
6094         * config/i386/i386.md (define_insn "rdpid"): New.
6095         * config/i386/i386.opt Add -mrdpid.
6096         * config/i386/immintrin.h (_rdpid_u32): New.
6098 2017-02-17  Vladimir Makarov  <vmakarov@redhat.com>
6100         PR rtl-optimization/79541
6101         * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
6102         instead of transforming it into USE.
6104 2017-02-17  Segher Boessenkool  <segher@kernel.crashing.org>
6106         * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
6107         If HONOR_SNANS (SFmode) force the input to a register.
6108         (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
6109         (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
6110         an frsp or similar insn.
6112 2017-02-17  Martin Liska  <mliska@suse.cz>
6114         PR rtl-optimization/79577
6115         * params.def (selsched-max-sched-times): Increase minimum to 1.
6117 2017-02-17  Martin Liska  <mliska@suse.cz>
6119         PR rtl-optimization/79574
6120         * gcse.c (want_to_gcse_p): Prevent integer overflow.
6122 2017-02-17  Martin Liska  <mliska@suse.cz>
6124         PR tree-optimization/79529
6125         * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
6126         ssa_defined_default_def_p to handle cases which are implicitly
6127         defined.
6128         * tree-ssa.c (ssa_defined_default_def_p): New function.
6129         (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
6130         which are implicitly defined.
6131         * tree-ssa.h (ssa_defined_default_def_p): Declare.
6133 2017-02-17  Richard Biener  <rguenther@suse.de>
6135         PR middle-end/79576
6136         * params.def (max-ssa-name-query-depth): Limit to 10.
6138 2017-02-17  Richard Biener  <rguenther@suse.de>
6140         PR tree-optimization/79552
6141         * tree-ssa-structalias.c (visit_loadstore): Properly verify
6142         default defs.
6144 2017-02-17  Richard Biener  <rguenther@suse.de>
6146         PR bootstrap/79567
6147         * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
6149 2017-02-17  Marek Polacek  <polacek@redhat.com>
6151         PR middle-end/79536
6152         * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
6153         (fold_negate_expr): New wrapper.
6155 2017-02-16  Sandra Loosemore  <sandra@codesourcery.com>
6157         * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]: 
6158         Correct terminology and de-emphasize pre-standard behavior.
6160 2017-02-16  Alan Modra  <amodra@gmail.com>
6162         PR rtl-optimization/79286
6163         * ira.c (def_dominates_uses): New function.
6164         (update_equiv_regs): Don't create an equivalence for insns that
6165         may trap where the register def does not dominate the use.
6167 2017-02-16  Vladimir Makarov  <vmakarov@redhat.com>
6169         PR rtl-optimization/78127
6170         * lra.c (lra): Call lra_eliminate before finish the loop after
6171         lra_constraint.
6173 2017-02-16  Richard Biener  <rguenther@suse.de>
6175         * graphite.h: Do not include isl/isl_val_gmp.h, instead include
6176         isl/isl_val.h.
6177         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
6178         (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
6179         * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
6180         (isl_val_int_from_wi): New function.
6181         (extract_affine_gmp): Rename to ...
6182         (extract_affine_wi): ... this, take a widest_int.
6183         (extract_affine_int): Just wrap extract_affine_wi.
6184         (add_param_constraints): Use isl_val_int_from_wi.
6185         (add_loop_constraints): Likewise, and extract_affine_wi.
6187 2017-02-15 Jeff Law  <law@redhat.com>
6189         PR middle-end/79521
6190         * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
6191         ira_init_register_move_cost_if_necessary.
6193 2017-02-15  Martin Sebor  <msebor@redhat.com>
6195         PR middle-end/32003
6196         * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
6197         removed in a prior commit.
6199 2017-02-15  Bin Cheng  <bin.cheng@arm.com>
6201         PR tree-optimization/79347
6202         * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
6203         counters during peeling.
6205 2017-02-15  Thomas Schwinge  <thomas@codesourcery.com>
6207         * Makefile.in (site.exp): Remove "set ISLVER".
6209 2017-02-15  Jakub Jelinek  <jakub@redhat.com>
6211         PR target/79487
6212         * real.c (real_from_integer): Call real_convert even for decimal.
6214 2017-02-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6216         PR target/79421
6217         * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
6219 2017-02-14  Andrew Pinski  <apinski@cavium.com>
6221         * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
6222         cores and change the partno/implementer to be correct.
6223         (thunderx2t99p1): New core which replaces thunderx2t99 and still has
6224         the 'B" as the implementer.
6225         * config/aarch64/aarch64-tune.md: Regenerate.
6227 2017-02-14  Carl Love  <cel@us.ibm.com>
6229         * config/rs6000/rs6000.c: Add case statement entry to make the
6230         xvcvuxdsp built-in argument unsigned.
6231         * config/rs6000/vsx.md: Fix the source and return operand types so they
6232         match the instruction definitions from the ISA document.  Fix typo
6233         in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
6234         statement.
6236 2017-02-14  Vladimir Makarov  <vmakarov@redhat.com>
6238         PR target/79282
6239         * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
6240         member early_clobber_alts.
6241         * lra-lives.c (reg_early_clobber_p): New.
6242         (process_bb_lives): Use it.
6243         * lra.c (new_insn_reg): New arg early_clobber_alts.  Use it.
6244         (debug_operand_data): Initialize early_clobber_alts.
6245         (setup_operand_alternative): Set up early_clobber_alts.
6246         (collect_non_operand_hard_regs): Ditto.  Pass early clobber
6247         alternatives to new_insn_reg.
6248         (add_regs_to_insn_regno_info): Add arg early_clobber_alts.  Use
6249         it.
6250         (lra_update_insn_regno_info): Pass the new arg.
6252 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
6254         PR middle-end/79505
6255         * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
6256         (new_oacc_loop_raw): Don't clear already cleared fields.
6258         PR target/79481
6259         * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
6260         _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
6261         _mm512_prefetch_i64gather_ps): New inline functions and macros.
6263 2017-02-14  Uros Bizjak  <ubizjak@gmail.com>
6265         PR target/79495
6266         * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
6268 2017-02-14  H.J. Lu  <hongjiu.lu@intel.com>
6270         PR target/79498
6271         * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
6272         the extra instruction to the right place to store 128-bit constant
6273         when needed.
6275 2017-02-14  Martin Sebor  <msebor@redhat.com>
6277         PR middle-end/79448
6278         * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
6279           warning for strings of unknown length.
6281 2017-02-13  Segher Boessenkool  <segher@kernel.crashing.org>
6283         * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
6285 2017-02-14 Jeff Law  <law@redhat.com>
6287         PR target/79404
6288         * ira-costs.c (scan_one_insn): Initialize register move costs
6289         for pseudos seen in USE/CLOBBER insns.
6291         PR tree-optimization/79095
6292         * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
6293         if the numerator has the range ~[0,0] make the resultant range ~[0,0].
6294         (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
6295         if the operands are known to be not equal, then the resulting range
6296         is ~[0,0].
6297         (intersect_ranges): If the new range is ~[0,0] and the old range is
6298         wide, then prefer ~[0,0].
6299         * tree-vrp.c (overflow_comparison_p_1): New function.
6300         (overflow_comparison_p): New function.
6301         * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
6302         if NAME is used in an overflow test.
6303         (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
6304         overflow check that can be expressed as an equality test, then adjust
6305         ops to be that equality test.
6307 2017-02-14  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6309         * config/s390/s390-builtin-types.def: Remove flags argument.
6310         * config/s390/s390.c (s390_init_builtins): Likewise.
6312 2017-02-14  Martin Liska  <mliska@suse.cz>
6314         * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
6315         vector.  Fix trailing white spaces.
6317 2017-02-14  James Greenhalgh  <james.greenhalgh@arm.com>
6319         * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
6320         HFmode.
6322 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6324         PR rtl-optimization/68664
6325         * config/arm/arm.c (arm_sched_can_speculate_insn):
6326         New function.  Declare prototype.
6327         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
6329 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6331         PR rtl-optimization/68664
6332         * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
6333         New function.
6334         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
6336 2017-02-14  Amit Pawar  <amit.pawar@amd.com>
6338         * config/i386/i386.c (znver1_cost): Fix the alignment for function and
6339         max skip bytes for function, loop and jump.
6341 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6343         * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
6344         ABS_EXPR for gimple dump.
6346 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
6348         PR target/79462
6349         * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
6351         PR tree-optimization/79408
6352         * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
6353         case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
6354         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
6355         also if rhs1 is INTEGER_CST.
6357 2017-02-14  Richard Biener  <rguenther@suse.de>
6359         PR middle-end/79432
6360         * tree-into-ssa.c (insert_phi_nodes): When the function can
6361         have abnormal edges rewrite SSA names with broken use-def
6362         dominance out of SSA and register them for PHI insertion.
6364 2017-02-13  Martin Sebor  <msebor@redhat.com>
6366         PR middle-end/79496
6367         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
6368         clearing info.nowrite flag when snprintf size argument is a range.
6370 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
6372         * cprop.c (cprop_jump): Add missing space in string literal.
6373         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
6374         (get_constraint_for_component_ref): Likewise.
6375         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
6376         * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
6377         * lra-constraints.c (process_alt_operands): Likewise.
6378         * ipa-inline.c (inline_small_functions): Likewise.
6379         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
6380         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
6381         * trans-mem.c (diagnose_tm_1_op): Likewise.
6382         * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
6383         (grid_parallel_clauses_gridifiable): Likewise.
6385         * config/nvptx/mkoffload.c (process): Add space in between
6386         , and %d.
6388         * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
6389         "MOD4_SSE_REGS" and "ALL_REGS".
6391         * spellcheck.c (test_data): Add , in between "foo" and "food".
6393 2017-02-13  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
6395         PR target/79449
6396         * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
6397         boundary crossing check and subsequent code generation agree.
6399 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6401         * config/aarch64/aarch64.c (has_memory_op): Delete.
6402         (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
6403         has_memory_op.
6405 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
6407         PR rtl-optimization/79388
6408         PR rtl-optimization/79450
6409         * combine.c (distribute_notes): When removing TEM_INSN for which
6410         corresponding dest has last value recorded, invalidate that last
6411         value.
6413 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6415         * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
6416         of explicit '@'.  Add missing assembly comment marker on branch costs
6417         printout.
6419 2017-02-13  Nathan Sidwell  <nathan@acm.org>
6421         * gengtype-lex.l (<in_struct>): Add '/'.
6423 2017-02-13  Martin Liska  <mliska@suse.cz>
6425         PR c/79471
6426         * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
6428 2017-02-13  Richard Biener  <rguenther@suse.de>
6430         * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
6431         Remove.
6432         * configure: Re-generate.
6433         * config.in: Likewise.
6434         * graphite-dependences.c: Simplify as if
6435         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
6436         * graphite-isl-ast-to-gimple.c: Likewise.
6437         * graphite-optimize-isl.c: Likewise.
6438         * graphite-poly.c: Likewise.
6439         * graphite-sese-to-poly.c: Likewise.
6440         * graphite.h: Likewise.
6441         * toplev.c: Include isl/version.h and use isl_version () for
6442         printing the ISL version.
6443         * doc/install.texi: Update ISL requirement.
6445 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
6447         * doc/standards.texi (Standards): Update reference to
6448         Objective-C 2.0.
6450 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
6451         
6452         * doc/extend.texi (Named Address Spaces): sourceware.org now
6453         defaults to https.
6454         * doc/install.texi (Binaries): Ditto.
6455         (Specific): Ditto.
6457 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
6459         * doc/cpp.texi: Replace "stringify"/"stringification" with C 
6460         standard terminology "stringize"/"stringizing" throughout.
6461         * doc/cppinternals.texi: Likewise.
6463 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
6465         * doc/extend.texi: Fix some spelling mistakes and typos.
6466         * doc/invoke.texi: Likewise.
6468 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
6470         PR ipa/79224
6471         * params.def (inline-min-speedup) Change from 10 to 8.
6473 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
6475         * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
6476         4.5.
6478 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
6480         PR ipa/79224
6481         * ipa-inline-analysis.c (get_minimal_bb): New function.
6482         (record_modified): Use it.
6483         (remap_edge_change_prob): Handle also ancestor functions.
6485 2017-02-11  Gerald Pfeifer  <gerald@pfeifer.com>
6487         * doc/contrib.texi (Contributors): Remove broken link into
6488         the Mauve CVS repository.
6490 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
6492         PR middle-end/79454
6493         * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
6494         result computation whenever lhs doesn't have vector mode, not
6495         just when it has BLKmode.
6497 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
6499         * doc/makefile.texi (profiledbootstrap): Refer to the
6500         installation instructions only in textual form.
6502 2017-02-10  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
6504         PR target/79295
6505         * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
6507 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
6509         * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
6510         (Specific): Update mingw-w64 reference.
6511         (Binaries): Ditto.
6512         (Specific): Remove broken link to Renesas RX processor.
6514 2017-02-10  Richard Biener  <rguenther@suse.de>
6516         * toplev.c (process_options): Do not mention obsolete graphite
6517         options when printing sorry message about missing graphite support.
6518         Mention -floop-nest-optimize.
6520 2017-02-10  Christophe Lyon  <christophe.lyon@linaro.org>
6522         * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
6523         (vtst_p16): Likewise.
6524         (vtstq_p8): Likewise.
6525         (vtstq_p16): Likewise.
6526         (vtst_p64): New.
6527         (vtstq_p64): Likewise.
6528         * config/arm/arm_neon.h (vgetq_lane_p64): New.
6529         (vset_lane_p64): New.
6530         (vsetq_lane_p64): New.
6532 2017-02-10  Jakub Jelinek  <jakub@redhat.com>
6534         PR tree-optimization/79411
6535         * tree-ssa-reassoc.c (is_reassociable_op): Return false if
6536         stmt operands are SSA_NAMEs used in abnormal phis.
6537         (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
6538         phis.
6540 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
6542         PR ipa/70795
6543         * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
6544         flag if needed.
6546 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
6548         * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
6550 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
6552         * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
6553         to avoid warning.
6555         PR c/79413
6556         * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
6557         not arbitrary TREE_CONSTANT.
6559         PR c/79431
6560         * gimplify.c (gimplify_adjust_omp_clauses): Ignore
6561         "omp declare target link" attribute unless is_global_var.
6562         * omp-offload.c (find_link_var_op): Likewise.
6564 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
6565             Chung-Lin Tang  <cltang@codesourcery.com>
6567         * gimplify.c (gimplify_scan_omp_clauses): No special handling for
6568         OMP_CLAUSE_TILE.
6569         (gimplify_adjust_omp_clauses): Don't delete TILE.
6570         (gimplify_omp_for): Deal with TILE.
6571         * internal-fn.c (expand_GOACC_TILE): New function.
6572         * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
6573         (GOACC_TILE): New.
6574         * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
6575         (expand_oacc_collapse_init): Add LOC paramter.  Initialize tile
6576         element fields.
6577         (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
6578         avoid DIV for outermost collapse var.
6579         (expand_oacc_for): Insert tile element loop as needed.  Adjust.
6580         Remove out of date comments, fix whitespace.
6581         * omp-general.c (omp_extract_for_data): Deal with tiling.
6582         * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
6583         adjust OLF_DIM_BASE value.
6584         (struct omp_for_data): Add tiling field.
6585         * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
6586         (lower_oacc_head_mark): Add OLF_TILE as appropriate.  Ensure 2 levels
6587         for auto loops.  Remove default auto determining, moved to
6588         oacc_loop_fixed_partitions.
6589         * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
6590         stmts, add e_mask field.
6591         (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
6592         (oacc_thread_numbers): Use oacc_dim_call.
6593         (oacc_xform_tile): New.
6594         (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
6595         (finish_oacc_loop): Adjust for ifns vector.
6596         (oacc_loop_discover_walk): Append loop abstraction sites to list,
6597         add case for GOACC_TILE fns.
6598         (oacc_loop_xform_loop): Delete.
6599         (oacc_loop_process): Iterate over call list directly, and add
6600         handling for GOACC_TILE fns.
6601         (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
6602         dump partitioning.
6603         (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
6604         vector partitioning to outer loops.  Assign 2 partitions to loops
6605         when available. Add TILE handling.
6606         (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
6607         (execite_oacc_device_lower): Process GOACC_TILE fns, ignore unknown specs.
6608         * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
6609         * tree.c (omp_clause_num_ops): Adjust TILE ops.
6610         * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
6612 2017-02-09  Gerald Pfeifer  <gerald@pfeifer.com>
6614         * configure.ac (ACX_BUGURL): Update.
6615         * configure: Regenerate.
6617 2017-02-09  Richard Biener  <rguenther@suse.de>
6619         PR tree-optimization/69823
6620         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
6621         Properly enumerate all BBs in the region.  Use auto_vec/auto_bitmap.
6623 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
6625         * config/arc/arc-c.def: Add __NPS400__ definition.
6626         * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
6627         (TARGET_NPS400): Define.
6629 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
6631         * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
6632         file.
6633         (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
6634         pointer, arch_info.
6635         (arc_cpu_types): Fill the arch_info field with a pointer into the
6636         arc_arch_types table.
6637         (arc_selected_cpu): Declare.
6638         * config/arc/arc.c (arc_selected_cpu): Make global.
6639         (arc_selected_arch): Delete.
6640         (arc_base_cpu): Delete.
6641         (arc_override_options): Remove references to deleted variables,
6642         update access to arch information.
6643         (ARC_OPT): Update access to arch information.
6644         (ARC_OPTX): Likewise.
6645         * config/arc/arc.h (arc_base_cpu): Remove declaration.
6646         (TARGET_ARC600): Update access to arch information.
6647         (TARGET_ARC601): Likewise.
6648         (TARGET_ARC700): Likewise.
6649         (TARGET_EM): Likewise.
6650         (TARGET_HS): Likewise.
6651         * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
6652         information.
6654 2017-02-08  Pat Haugen  <pthaugen@us.ibm.com>
6656         PR target/78604
6657         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
6658         condition/operands for integer GE/LE/GEU/LEU operations.
6660 2017-02-08  Segher Boessenkool  <segher@kernel.crashing.org>
6662         PR translation/79397
6663         * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
6664         of AltiVec.
6666 2017-02-08  Martin Jambor  <mjambor@suse.cz>
6668         PR ipa/79375
6669         * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
6670         whether allocation happened.
6671         (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
6672         nothing was allocated.
6674 2017-02-08  Jakub Jelinek  <jakub@redhat.com>
6676         PR tree-optimization/79408
6677         * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
6678         constant, but SSA_NAME with a known integer range, use the minimum
6679         of that range instead of op1 to determine if modulo can be replaced
6680         with its first operand.
6682 2016-02-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6684         * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
6686 2017-02-08  Richard Biener  <rguenther@suse.de>
6688         PR tree-optimization/71824
6689         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
6690         Check all loops contained in the merged region.
6692 2017-02-07  Andrew Pinski  <apinski@cavium.com>
6694         * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
6696 2017-02-07  Andrew Pinski  <apinski@cavium.com>
6698         * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
6699         (thunderxt88): Likewise.
6700         (thunderxt81): Disable LSE and change v8.1 to v8.
6701         (thunderxt83): Likewise.
6703 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
6704             Richard Biener  <rguenther@suse.de>
6706         PR middle-end/79399
6707         * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
6708         type from int to size_t.
6709         * ira-costs.c (struct_costs_size): Change type from int to size_t.
6711 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
6713         PR rtl-optimization/79386
6714         * cprop.c (bypass_conditional_jumps): Initialize
6715         bypass_last_basic_block already before splitting bbs after
6716         unconditional traps...
6717         (bypass_conditional_jumps): ... rather than here.
6719         PR target/79299
6720         * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
6721         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
6722         *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
6723         fix -masm=intel patterns.
6725 2017-02-07  Richard Biener  <rguenther@suse.de>
6727         PR tree-optimization/79256
6728         PR middle-end/79278
6729         * builtins.c (get_object_alignment_2): Use min_align_of_type
6730         to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
6731         and ADJUST_FIELD_ALIGN.
6733         * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
6734         type parameter.
6735         * doc/tm.texi: Regenerate.
6736         * stor-layout.c (layout_decl): Adjust.
6737         (update_alignment_for_field): Likewise.
6738         (place_field): Likewise.
6739         (min_align_of_type): Likewise.
6740         * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
6741         * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
6742         * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
6743         * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
6744         * config/frv/frv.c (frv_adjust_field_align): Likewise.
6745         * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
6746         * config/i386/i386.c (x86_field_alignment): Likewise.
6747         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
6748         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
6749         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
6750         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
6751         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
6752         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
6753          Likewise.
6755         Revert
6756         2017-01-30  Richard Biener  <rguenther@suse.de>
6758         PR tree-optimization/79256
6759         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
6760         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
6761         alignment on TYPE.
6763 2017-02-07  Toma Tabacu  <toma.tabacu@imgtec.com>
6765         * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
6766         argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
6767         builtins to SImode and emit a zero-extend, if necessary.
6769 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
6771         * docs/invoke.texi (RISC-V Options): Alphabetize.
6773 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
6775         * doc/invoke.texi (RISC-V Options): Use two spaces to separate
6776         options.
6778 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
6780         * config/riscv/riscv.c: New file.
6781         * gcc/common/config/riscv/riscv-common.c: Likewise.
6782         * config.gcc: Likewise.
6783         * config/riscv/constraints.md: Likewise.
6784         * config/riscv/elf.h: Likewise.
6785         * config/riscv/generic.md: Likewise.
6786         * config/riscv/linux.h: Likewise.
6787         * config/riscv/multilib-generator: Likewise.
6788         * config/riscv/peephole.md: Likewise.
6789         * config/riscv/pic.md: Likewise.
6790         * config/riscv/predicates.md: Likewise.
6791         * config/riscv/riscv-builtins.c: Likewise.
6792         * config/riscv/riscv-c.c: Likewise.
6793         * config/riscv/riscv-ftypes.def: Likewise.
6794         * config/riscv/riscv-modes.def: Likewise.
6795         * config/riscv/riscv-opts.h: Likewise.
6796         * config/riscv/riscv-protos.h: Likewise.
6797         * config/riscv/riscv.h: Likewise.
6798         * config/riscv/riscv.md: Likewise.
6799         * config/riscv/riscv.opt: Likewise.
6800         * config/riscv/sync.md: Likewise.
6801         * config/riscv/t-elf-multilib: Likewise.
6802         * config/riscv/t-linux: Likewise.
6803         * config/riscv/t-linux-multilib: Likewise.
6804         * config/riscv/t-riscv: Likewise.
6805         * configure.ac: Likewise.
6806         * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
6807         Waterman as RISC-V maintainers.
6808         * doc/install.texi: Add RISC-V entries.
6809         * doc/invoke.texi: Add RISC-V options section.
6810         * doc/md.texi: Add RISC-V constraints section.
6811         * configure: Regenerated.
6813 2017-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
6815         PR target/66144
6816         * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
6817         false values to be constant vectors with all 0 or all 1 bits set.
6818         (vcondu<mode><mode>): Likewise.
6819         * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
6820         predicate.
6821         (fpmask_comparison_operator): Update comment.
6822         (vecint_comparison_operator): New predicate.
6823         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
6824         vector conditionals when the true and false values are constant
6825         vectors with all 0 bits or all 1 bits set.
6827 2017-02-06  Martin Sebor  <msebor@redhat.com>
6829         PR  tree-optimization/79376
6830         * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
6832 2017-02-06  Uros Bizjak  <ubizjak@gmail.com>
6834         * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
6835         explicit subreg RTX with operand 1.  Use VECTOR_MODE_P predicate
6836         to simplify split condition.
6838 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
6840         * omp-expand.c (oxpand_omp_atomic_fetch_op,
6841         expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
6842         false.
6844 2017-02-06  Segher Boessenkool  <segher@kernel.crashing.org>
6846         PR rtl-optimization/68664
6847         * target.def (can_speculate_insn): New hook.
6848         * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
6849         * doc/tm.texi: Regenerate.
6850         * sched-rgn.c (can_schedule_ready_p): Use the new hook.
6851         * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
6852         (rs6000_sched_can_speculate_insn): New function.
6854 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
6856         PR tree-optimization/79284
6857         * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
6858         * tree-vect-stmts.c (vect_get_vec_def_for_operand,
6859         vectorizable_mask_load_store, vectorizable_operation,
6860         vect_is_simple_cond, get_same_sized_vectype): Use it instead
6861         of comparing TREE_CODE of a type against BOOLEAN_TYPE.
6862         * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
6863         vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
6864         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
6865         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
6866         Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
6867         is_gimple_assign (stmt).  Replace another such test with
6868         is_gimple_assign (stmt).
6870 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
6872         PR target/78883
6873         * config/avr/avr.c (rtl-iter.h): Include it.
6874         (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
6875         (avr_legitimate_combined_insn): ...and implementation.
6877 2017-02-06  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6879         * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
6880         * config/s390/s390.c (s390_const_operand_ok)
6881         (s390_canonicalize_comparison, s390_extract_part)
6882         (s390_single_part, s390_contiguous_bitmask_nowrap_p)
6883         (s390_contiguous_bitmask_p, s390_rtx_costs)
6884         (legitimize_pic_address): Likewise.
6885         * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
6886         * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
6887         ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
6888         ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
6889         * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
6891 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
6893         * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
6894         REGNO($0) == REGNO($1).
6896 2017-02-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6898         * config/s390/linux.h(SIZE_TYPE): Add comment.
6900 2017-02-06  Julian Brown  <julian@codesourcery.com>
6901             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
6902             Virendra Pathak  <virendra.pathak@broadcom.com>
6904         * config/aarch64/aarch64-cores.def: Change the scheduler
6905         to Thunderx2t99.
6906         * config/aarch64/aarch64.md: Include thunderx2t99.md.
6907         * config/aarch64/thunderx2t99.md: New file.
6909 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
6911         * doc/standards.texi (Go Language): Update link to language
6912         standard.
6914 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
6916         * tree-eh.c (lower_resx): Sanitize profile.
6917         (cleanup_empty_eh_move_lp): Likewise.
6919 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
6921         PR tree-ssa/79347
6922         * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
6923         ELSE_PROB.
6924         * cfgloopmanip.h (loop_version): Update prototype.
6925         * modulo-sched.c (sms_schedule): Update call of loop_version.
6926         * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
6927         * tree-parloops.c (gen_parallel_loop): Likewise.
6928         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
6929         * tree-ssa-loop-split.c (split_loop): Likewise.
6930         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
6931         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
6933 2017-02-05  Martin Liska  <mliska@suse.cz>
6935         PR bootstrap/78985
6936         * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
6937         variable to NULL.
6938         (print_operand_address): Initialize a struct to zero.
6940 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
6942         * doc/contrib.texi (Contributors): Refer to Hans Boehm's
6943         garbage collector only in textual form.
6945 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
6946         
6947         * doc/extend.texi (x86 specific memory model extensions for
6948         transactional memory): Simplify a phrase.
6950 2017-02-05  Eric Botcazou  <ebotcazou@adacore.com>
6952         PR target/79353
6953         * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
6954         'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
6955         (atomic_storedi_1): Likewise.
6957 2017-02-04  Jakub Jelinek  <jakub@redhat.com>
6959         PR tree-optimization/79338
6960         * tree-parloops.c (gather_scalar_reductions): Don't call
6961         vect_analyze_loop_form for loop->inner before destroying loop's
6962         loop_vinfo.
6964 2017-02-03  Martin Sebor  <msebor@redhat.com>
6966         PR tree-optimization/79327
6967         * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
6968         when precision has resulted in leading zeros.
6969         (format_integer): Adjust the likely counter to assume an unknown
6970         argument that may be zero is non-zero.
6972 2017-02-03  Jason Merrill  <jason@redhat.com>
6974         PR c++/78689
6975         * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
6976         avoid copying non-taken branch.
6978 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
6980         PR tree-optimization/79340
6981         * tree-vect-loop.c (vectorizable_reduction): Release
6982         vec_defs elements after safe_splicing them into other vectors.
6983         Formatting fixes.
6985         PR tree-optimization/79327
6986         * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
6987         true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
6988         dirtype.
6989         (format_integer): Use wide_int_to_tree instead of build_int_cst
6990         + to_?hwi.  If argmin is NULL, just set argmin and argmax to
6991         TYPE_{MIN,MAX}_VALUE of argtype.  Simplify and fix computation
6992         of shortest and longest sequence.
6994 2017-02-03  Uros Bizjak  <ubizjak@gmail.com>
6996         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
6997         Use pextrd for TARGET_SSE4_1 when creating scalar copy.
6999 2017-02-03  Walter Lee  <walt@tilera.com>
7001         PR target/78862
7002         * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
7003         after initial stackframe link reg save.
7004         * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
7006 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
7008         PR target/79354
7009         * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
7010         wu for stxssp alternative.
7012 2017-02-03  Martin Sebor  <msebor@redhat.com>
7014         PR tree-optimization/79352
7015         * gimple-fold.c (get_range_strlen): Add argument.
7016         (get_range_strlen): Change return type to bool.
7017         (get_maxval_strlen): Pass in a dummy argument.
7018         * gimple-fold.h (get_range_strlen): Change return type to bool.
7019         * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
7020         * tree.h (array_at_struct_end_p): Add argument.
7021         * tree.c (array_at_struct_end_p): Handle it.
7023 2017-02-03  Martin Liska  <mliska@suse.cz>
7025         PR lto/66295
7026         * multiple_target.c (create_dispatcher_calls): Redirect edge
7027         from a caller of a dispatcher.
7028         (expand_target_clones): Make the clones local.
7029         (ipa_target_clone): Do both target clones and resolvers.
7030         (ipa_dispatcher_calls): Remove the pass.
7031         (pass_dispatcher_calls::gate): Likewise.
7032         (make_pass_dispatcher_calls): Likewise.
7033         * passes.def (pass_target_clone): Put as very first IPA early
7034         pass.
7036 2017-02-03  Martin Liska  <mliska@suse.cz>
7038         * symtab.c (symtab_node::binds_to_current_def_p): Bail out
7039         in case of a function with ifunc attribute.
7041 2017-02-03  Martin Liska  <mliska@suse.cz>
7043         * cgraph.c (cgraph_node::dump): Dump function version info.
7044         * symtab.c (symtab_node::dump_base): Add missing new line.
7046 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
7048         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
7049         (ifcombine_ifandif): Use it.
7051 2017-02-03  Martin Liska  <mliska@suse.cz>
7053         * doc/invoke.texi: Document default value for
7054         use-after-scope-direct-emission-threshold.
7056 2017-02-03  Martin Liska  <mliska@suse.cz>
7058         PR tree-optimization/79339
7059         * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
7060         (format_floating): Likewise.
7062 2017-02-03  Martin Liska  <mliska@suse.cz>
7064         PR ipa/79337
7065         * ipa-prop.c (ipa_node_params_t::insert): Remove current
7066         implementation.
7067         (ipa_node_params_t::remove): Likewise.
7068         * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
7069         initialization from removed ipa_node_params_t::insert.
7070         (ipa_node_params::~ipa_node_params): Move from removed
7071         ipa_node_params_t::release.
7072         * symbol-summary.h (symbol_summary::m_released): New member.
7073         Do not release a summary twice.  Do not allow to call finalizer
7074         for types of a summary that live in GGC memory.
7076 2017-02-02  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
7078         * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
7079         cmp_branch fusion.
7081 2017-02-02  Martin Sebor  <msebor@redhat.com>
7083         PR middle-end/79275
7084         * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
7085         (format_string): Tighten up the range of output for non-constant
7086         strings and correct the expected range for wide non-constant strings.
7088 2017-02-02  Martin Sebor  <msebor@redhat.com>
7090         * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
7092         PR middle-end/32003
7093         * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
7094         index.
7095         (-fdump-tree-@var): Add to index and document how to come up
7096         with pass-specific option and dump file names.
7097         (-fdump-passes): Clarify where to look for output.
7099 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
7101         PR middle-end/77445
7102         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
7103         statistics of the analyzed path; allow threading for speed when
7104         any of BBs along the path are optimized for speed.
7106 2017-02-02  Eric Botcazou  <ebotcazou@adacore.com>
7108         PR middle-end/78468
7109         * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
7110         settings of the virtual registers.
7112         Revert again
7113         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7115         * explow.c (get_dynamic_stack_size): Take known alignment of stack
7116         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
7117         needed.
7119 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7121         * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
7122         ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
7124 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7126         * config/s390/s390.md: Add missing comments with the expanded
7127         mnemonics.
7128         * config/s390/vector.md: Likewise.
7129         * config/s390/vx-builtins.md: Likewise.
7131 2017-02-02  Jakub Jelinek  <jakub@redhat.com>
7133         PR target/79197
7134         * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
7135         (fixuns_trunc<mode>di2): ... this, remove previous expander.  Put all
7136         conditions on a single line.
7138 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7140         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
7141         __S390_VX__ to __VX__.
7143 2017-02-01  Andrew Pinski  <apinski@cavium.com>
7145         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
7146         stmt_info to record_stmt_cost.
7147         (vect_get_known_peeling_cost): Pass stmt_info if known to
7148         record_stmt_cost.
7149         * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
7150         cpu_vector_cost field into
7151         scalar_int_stmt_cost and scalar_fp_stmt_cost.  Split vec_stmt_cost
7152         field into vec_int_stmt_cost and vec_fp_stmt_cost.
7153         * config/aarch64/aarch64.c (generic_vector_cost): Update for the
7154         splitting of scalar_stmt_cost and vec_stmt_cost.
7155         (thunderx_vector_cost): Likewise.
7156         (cortexa57_vector_cost): LIkewise.
7157         (exynosm1_vector_cost): Likewise.
7158         (xgene1_vector_cost): Likewise.
7159         (thunderx2t99_vector_cost): Improve after the splitting of the two
7160         fields.
7161         (aarch64_builtin_vectorization_cost): Update for the splitting of
7162         scalar_stmt_cost and vec_stmt_cost.
7164 2017-02-01  Torvald Riegel  <triegel@redhat.com>
7165             Richard Henderson  <rth@redhat.com>
7167         * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
7168         conditional on existance of a fast atomic load.
7169         * optabs-query.c (can_atomic_load_p): New function.
7170         * optabs-query.h (can_atomic_load_p): Declare it.
7171         * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
7172         no fast atomic load is available for the particular size of access.
7173         (expand_atomic_compare_and_swap): Likewise.
7174         (expand_atomic_load): Likewise.
7175         (expand_atomic_store): Likewise.
7176         (expand_atomic_fetch_op): Likewise.
7177         * testsuite/lib/target-supports.exp
7178         (check_effective_target_sync_int_128): Remove x86 because it provides
7179         no fast atomic load.
7180         (check_effective_target_sync_int_128_runtime): Likewise.
7182 2017-02-01  Richard Biener  <rguenther@suse.de>
7184         * graphite.c: Include tree-vectorizer.h for find_loop_location.
7185         (graphite_transform_loops): Provide opt-info for optimized nests.
7186         * tree-parloop.c (parallelize_loops): Provide opt-info for
7187         parallelized loops.
7189 2017-02-01  Richard Biener  <rguenther@suse.de>
7191         PR middle-end/79315
7192         * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
7193         was not set before.
7195 2017-02-01  Richard Biener  <rguenther@suse.de>
7197         PR tree-optimization/71824
7198         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
7199         Verify the loops are valid in the merged SESE region.
7200         (scop_detection::can_represent_loop_1): Check analyzing the
7201         evolution of the number of iterations in the region succeeds.
7203 2017-01-31  Ian Lance Taylor  <iant@golang.org>
7205         * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
7206         REG_ARGS_SIZE note to 32-bit push insns and call insn.
7208 2017-01-31  David Malcolm  <dmalcolm@redhat.com>
7210         PR preprocessor/79210
7211         * input.c (get_substring_ranges_for_loc): Replace line_width
7212         assertion with error-handling.
7214 2017-01-31  Richard Biener  <rguenther@suse.de>
7216         PR tree-optimization/77318
7217         * graphite-sese-to-poly.c (extract_affine): Fix assert.
7218         (create_pw_aff_from_tree): Take loop parameter.
7219         (add_condition_to_pbb): Pass loop of the condition to
7220         create_pw_aff_from_tree.
7222 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
7224         * config/s390/s390.c (s390_asan_shadow_offset): New function.
7225         (TARGET_ASAN_SHADOW_OFFSET): Redefine.
7227 2017-01-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
7229         PR target/78597
7230         PR target/79038
7231         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
7232         no longer used.
7233         (convert_int_to_float128): Likewise.
7234         * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
7235         (convert_int_to_float128): Likewise.
7236         * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
7237         (UNSPEC_IEEE128_CONVERT): Likewise.
7238         (floatsi<mode>2, FLOAT128 iterator): Bypass calling
7239         rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
7240         Use local variables for IBM extended format.
7241         (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
7242         (fix_trunc<mode>si2_fprs): Likewise.
7243         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
7244         (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
7245         (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
7246         to know that we can now have integers of all sizes in vector
7247         registers.
7248         (fix<uns>_<mode>di2_hw): Likewise.
7249         (float<uns>_<mode>si2_hw): Likewise.
7250         (fix_<mode>si2_hw): Likewise.
7251         (fixuns_<mode>si2_hw): Likewise.
7252         (float<uns>_<mode>di2_hw): Likewise.
7253         (float_<mode>di2_hw): Likewise.
7254         (float_<mode>si2_hw): Likewise.
7255         (floatuns_<mode>di2_hw): Likewise.
7256         (floatuns_<mode>si2_hw): Likewise.
7257         (xscvqp<su>wz_<mode>): Delete, no longer used.
7258         (xscvqp<su>dz_<mode>): Likewise.
7259         (xscv<su>dqp_<mode>): Likewise.
7260         (ieee128_mfvsrd_64bit): Likewise.
7261         (ieee128_mfvsrd_32bit): Likewise.
7262         (ieee128_mfvsrwz): Likewise.
7263         (ieee128_mtvsrw): Likewise.
7264         (ieee128_mtvsrd_64bit): Likewise.
7265         (ieee128_mtvsrd_32bit): Likewise.
7267 2017-01-31  Martin Liska  <mliska@suse.cz>
7269         PR ipa/79285
7270         * ipa-prop.c (ipa_free_all_node_params): Call release method
7271         instead of ~sumbol_summary to not to trigger double times
7272         dtor of hash_map.
7274 2017-01-31  Aldy Hernandez  <aldyh@redhat.com>
7276         PR tree-optimization/71691
7277         * bitmap.h (class auto_bitmap): New.
7278         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
7279         is_maybe_undefined instead of ssa_undefined_value_p.
7281 2017-01-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7283         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
7284         __S390_ARCH_LEVEL__ to __ARCH__.
7286 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
7288         PR tree-optimization/79267
7289         * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
7290         if should_remove_lhs_p is true.
7292 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
7294         PR debug/63238
7295         * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
7296         (add_alignment_attribute): New.
7297         (base_type_die): Add alignment attribute.
7298         (subrange_type_die): Likewise.
7299         (modified_type_die): Likewise.
7300         (gen_array_type_die): Likewise.
7301         (gen_descr_array_type_die: Likewise.
7302         (gen_enumeration_type_die): Likewise.
7303         (gen_subprogram_die): Likewise.
7304         (gen_variable_die): Likewise.
7305         (gen_field_die): Likewise.
7306         (gen_ptr_to_mbr_type_die): Likewise.
7307         (gen_struct_or_union_type_die): Likewise.
7308         (gen_subroutine_type_die): Likewise.
7309         (gen_typedef_die): Likewise.
7310         (base_type_cmp): Compare alignment attribute.
7312 2017-01-30  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
7314         PR target/79170
7315         * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
7316         (setb_unsigned) New pattern for setb with CCUNS.
7317         * config/rs6000/rs6000.c (expand_block_compare): Use a different
7318         subfc./subfe sequence to avoid overflow problems.  Generate a
7319         shorter sequence with cmpld/setb for power9.
7320         * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
7321         for generating subfc. instruction.
7322         (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
7323         now uses this instruction.
7325 2017-01-30  Ian Lance Taylor  <iant@google.com>
7327         PR debug/79289
7328         * dwarf2out.c (gen_type_die_with_usage): When picking a variant
7329         for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
7331 2017-01-30  Martin Sebor  <msebor@redhat.com>
7333         * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
7334         Move constant to the right of a relational operator.
7335         (get_mpfr_format_length, format_character, format_string): Ditto.
7336         (should_warn_p, maybe_warn): Same.
7338         * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
7340 2017-01-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
7342         PR lto/79061
7343         * asan.c (get_translation_unit_decl): Remove function.
7344         (asan_add_global): Force has_dynamic_init to zero in LTO mode.
7346 2017-01-30  Martin Liska  <mliska@suse.cz>
7348         PR gcov-profile/79259
7349         * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
7350         -fprofile-generate.
7352 2017-01-30  Martin Liska  <mliska@suse.cz>
7354         PR bootstrap/78985
7355         * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
7356         Initialize variables with NULL value.
7358 2017-01-30  Richard Earnshaw  <rearnsh@arm.com>
7360         PR target/79260
7361         * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
7362         tm_p_file.
7363         * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
7365 2017-01-30  Richard Biener  <rguenther@suse.de>
7367         PR tree-optimization/79276
7368         * tree-vrp.c (process_assert_insertions): Properly adjust common
7369         when removing a duplicate.
7371         * gcc.dg/torture/pr79276.c: New testcase.
7373 2017-01-30  Richard Biener  <rguenther@suse.de>
7375         PR tree-optimization/79256
7376         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
7377         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
7378         alignment on TYPE.
7379         * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
7381 2017-01-30  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7383         PR target/79240
7384         * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
7385         ("*r<noxa>sbg_<mode>_sll_bitmask")
7386         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
7387         ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
7388         Use contiguous_bitmask_nowrap_operand.
7390 2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7392         PR target/79268
7393         * config/rs6000/altivec.h (vec_xl): Revise #define.
7394         (vec_xst): Likewise.
7396 2017-01-27  Uros Bizjak  <ubizjak@gmail.com>
7398         * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
7400 2017-01-27  Bernd Schmidt  <bschmidt@redhat.com>
7402         PR rtl-optimization/79194
7403         * cprop.c (one_cprop_pass): Move deletion of code after unconditional
7404         traps before call to bypass_conditional_jumps.
7406 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
7408         PR tree-optimization/71374
7409         * lra-constraints.c (check_conflict_input_operands): New.
7410         (match_reload): Use it.
7412 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
7414         PR target/79131
7415         * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
7416         account to calculate conflict_set.
7418 2017-01-27  Bin Cheng  <bin.cheng@arm.com>
7420         PR rtl-optimization/78559
7421         * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
7422         other_insn in combine.
7424 2017-01-27  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
7426         * builtin-types.def: Use unsigned_char_type_node for BT_UINT8.  Use
7427         uint16_type_node for BT_UINT16.
7429 2017-01-27  David Malcolm  <dmalcolm@redhat.com>
7431         * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
7432         "RTL Tests" to menu.
7433         (GIMPLE Tests): New node.
7434         (RTL Tests): New node.
7436 2017-01-27  Richard Biener  <rguenther@suse.de>
7438         PR tree-optimization/79245
7439         * tree-loop-distribution.c (distribute_loop): Apply cost
7440         modeling also to detected patterns.
7442 2017-01-27  Richard Biener  <rguenther@suse.de>
7444         PR tree-optimization/71433
7445         * tree-vrp.c (register_new_assert_for): Revert earlier changes.
7446         (compare_assert_loc): New function.
7447         (process_assert_insertions): Sort and optimize assert locations
7448         to remove duplicates and push down identical assertions on
7449         edges to their destination block.
7451 2017-01-27  Richard Biener  <rguenther@suse.de>
7453         PR tree-optimization/79244
7454         * tree-vrp.c (remove_range_assertions): Forcefully propagate
7455         out SSA names even if abnormal.
7457 2017-01-27  Jakub Jelinek  <jakub@redhat.com>
7459         * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
7460         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
7461         instead of MPFR_RNDN.
7463 2017-01-27  Richard Earnshaw  <rearnsha@arm.com>
7465         PR target/79239
7466         * arm.c (arm_option_override): Don't call build_target_option_node
7467         until after doing all option overrides.
7468         (arm_valid_target_attribute_tree): Likewise.
7470 2017-01-27  Martin Liska  <mliska@suse.cz>
7472         * doc/invoke.texi (-fprofile-arcs): Document profiling support
7473         for {cd}tors and C++ {cd}tors.
7475 2017-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7477         * config/s390/s390.md ("*setmem_long_and")
7478         ("*setmem_long_and_31z"): Use zero_extend instead of and.
7480 2017-01-26  Martin Sebor  <msebor@redhat.com>
7482         * gimple-ssa-sprintf.c (format_floating): Simplify the computation
7483         of precision.
7485 2017-01-26  Martin Sebor  <msebor@redhat.com>
7487         * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
7488         HAVE_DFmode before using XFmode or DFmode.
7489         (parse_directive): Avoid using the z length modifier to avoid
7490         the ISO C++98 does not support the â€˜z’ gnu_printf length modifier.
7492         PR middle-end/78703
7493         * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
7494         to accept adjustment as an array.
7495         (get_int_range): New function.
7496         (struct directive): Make width and prec arrays.
7497         (directive::set_width, directive::set_precision): Call get_int_range.
7498         (format_integer, format_floating): Handle width and precision ranges.
7499         (format_string, parse_directive): Same.
7501 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
7503         PR debug/79129
7504         * dwarf2out.c (generate_skeleton_bottom_up): For children with
7505         comdat_type_p set, just clone them, but keep the children in the
7506         original DIE.
7508         PR debug/78835
7509         * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
7510         which have direct callers with -fvar-tracking-assignments enabled
7511         in the current TU.
7512         (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
7513         inside of type units.
7515 2017-01-26  Martin Sebor  <msebor@redhat.com>
7517         PR middle-end/78703
7518         * gimple-ssa-sprintf.c (struct result_range): Add likely and
7519         unlikely counters.
7520         (struct format_result): Replace number_chars, number_chars_min,
7521         and number_chars_max with a single member of struct result_range.
7522         Remove bounded.
7523         (format_result::operator+=): Adjust.
7524         (struct fmtresult): Remove bounded.  Handle likely and unlikely
7525         counters.
7526         (fmtresult::adjust_for_width_or_precision): New function.
7527         (fmtresult:type_max_digits): New function.
7528         (bytes_remaining): Handle likely and unlikely counters.
7529         (min_bytes_remaining): Remove.
7530         (format_percent): Simplify.
7531         (format_integer, format_floating): Set likely and unlikely counters.
7532         (get_string_length, format_character, format_string): Same.
7533         (format_plain, should_warn_p): New function.
7534         (maybe_warn): Call should_warn_p.  Update diagnostic messages
7535         and handle those for all directives, including plain strings.
7536         (format_directive): Handle likely and unlikely counters.
7537         Remove unnecessary quoting from diagnostics.  Add an informational
7538         note.
7539         (add_bytes): Remove.
7540         (pass_sprintf_length::compute_format_length): Simplify.
7541         (try_substitute_return_value): Handle likely and unlikely counters.
7543 2017-01-26  Carl Love  <cel@us.ibm.com>
7545         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
7546         bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
7548 2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>
7550         PR target/79131
7551         * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
7552         endianess for subregs into account.
7553         * lra-constraints.c (lra_constraints): Do risky transformations
7554         always on the first iteration.
7555         * lra-lives.c (check_pseudos_live_through_calls): Add arg
7556         last_call_used_reg_set.
7557         (process_bb_lives): Define and use last_call_used_reg_set.
7558         * lra.c (lra): Always continue after lra_constraints on the first
7559         iteration.
7561 2017-01-26  Kirill Yukhin  <kirill.yukhin@gmail.com>
7563         * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
7564         constant.
7565         * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
7567 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
7569         * config/i386/avx512fintrin.h (_ktest_mask16_u8,
7570         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
7571         * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
7572         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
7573         * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
7574         __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
7575         OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
7576         * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
7577         (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
7579 2017-01-26  Marek Polacek  <polacek@redhat.com>
7581         PR c/79199
7582         * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
7583         for the third operand.
7585 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
7587         PR middle-end/79236
7588         * omp-low.c (struct omp_context): Add simt_stmt field.
7589         (scan_omp_for): Return omp_context *.
7590         (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
7591         context to the _simt_ SIMD stmt.
7592         (lower_omp_for): For combined SIMD with sibling _simt_
7593         SIMD, make sure to use the same decls in _looptemp_
7594         clauses as in the sibling.
7596 2017-01-26  David Sherwood  <david.sherwood@arm.com>
7598         PR middle-end/79212
7599         * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
7600         all contexts.
7602 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
7604         PR target/70465
7605         * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
7606         emit fld b; fld a; if possible.
7608         * brig-builtins.def: Update copyright years.
7609         * config/arm/arm_acle_builtins.def: Update copyright years.
7611 2017-01-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
7613         PR target/79179
7614         * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
7615         constraint instead of o for the stxsd instruction.
7617 2017-01-25  Carl Love  <cel@us.ibm.com>
7619         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
7620         of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
7622 2017-01-25  Jonathan Wakely  <jwakely@redhat.com>
7624         * doc/invoke.texi (C++ Dialect Options): Fix typo.
7626 2017-01-25  Richard Biener  <rguenther@suse.de>
7628         PR tree-optimization/69264
7629         * target.def (vector_alignment_reachable): Improve documentation.
7630         * doc/tm.texi: Regenerate.
7631         * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
7632         and add a comment.
7633         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
7634         earlier changes with respect to TYPE_USER_ALIGN.
7635         (vector_alignment_reachable_p): Likewise.  Improve dumping.
7637 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7639         PR target/79145
7640         * config/arm/arm.md (xordi3): Force constant operand into a register
7641         for TARGET_IWMMXT.
7643 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7645         * doc/invoke.texi (-fstore-merging): Correct default optimization
7646         levels at which it is enabled.
7647         (-O): Move -fstore-merging from list to...
7648         (-O2): ... Here.
7650 2017-01-25  Richard Biener  <rguenther@suse.de>
7652         PR debug/78363
7653         * omp-expand.c: Include debug.h.
7654         (expand_omp_taskreg): Make sure to generate early debug before
7655         outlining anything from a function.
7656         (expand_omp_target): Likewise.
7657         (grid_expand_target_grid_body): Likewise.
7659 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
7661         PR lto/79061
7662         * asan.c (get_translation_unit_decl): New function.
7663         (asan_add_global): Extract modules file name from globals
7664         TRANSLATION_UNIT_DECL name.
7666 2017-01-24  Eric Botcazou  <ebotcazou@adacore.com>
7668         PR target/77439
7669         * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
7670         for long calls with APCS frame and VFP.
7672 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
7674         * cfg.c (original_copy_tables_initialized_p): New function.
7675         * cfg.h (original_copy_tables_initialized_p): New decl.
7676         * cfgrtl.c (relink_block_chain): Guard the call to
7677         free_original_copy_tables with a call to
7678         original_copy_tables_initialized_p.
7679         * cgraph.h (symtab_node::native_rtl_p): New decl.
7680         * cgraphunit.c (symtab_node::native_rtl_p): New function.
7681         (symtab_node::needed_p): Don't assert for early assembly output
7682         for __RTL functions.
7683         (cgraph_node::finalize_function): Set "force_output" for __RTL
7684         functions.
7685         (cgraph_node::analyze): Bail out early for __RTL functions.
7686         (analyze_functions): Update assertion to support __RTL functions.
7687         (cgraph_node::expand): Bail out early for __RTL functions.
7688         * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
7689         __RTL functions.
7690         * function.h (struct function): Update comment for field
7691         "pass_startwith".
7692         * gimple-expr.c: Include "tree-pass.h".
7693         (gimple_has_body_p): Return false for __RTL functions.
7694         * Makefile.in (OBJS): Add run-rtl-passes.o.
7695         * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
7696         accessor.
7697         (gcc::pass_manager::get_clean_slate): New accessor.
7698         * passes.c: Include "insn-addr.h".
7699         (should_skip_pass_p): Add logging.  Update logic for running
7700         "expand" to be compatible with both __GIMPLE and __RTL.  Guard
7701         property-provider override so it is only done for gimple passes.
7702         Don't skip dfinit.
7703         (skip_pass): New function.
7704         (execute_one_pass): Call skip_pass when skipping passes.
7705         * read-md.c (md_reader::read_char): Support filtering
7706         the input to a subset of line numbers.
7707         (md_reader::md_reader): Initialize fields
7708         m_first_line and m_last_line.
7709         (md_reader::read_file_fragment): New function.
7710         * read-md.h (md_reader::read_file_fragment): New decl.
7711         (md_reader::m_first_line): New field.
7712         (md_reader::m_last_line): New field.
7713         * read-rtl-function.c (function_reader::create_function): Only
7714         create cfun if it doesn't already exist.  Set PROP_rtl on cfun's
7715         curr_properties.  Set DECL_INITIAL to a dummy block.
7716         (read_rtl_function_body_from_file_range): New function.
7717         * read-rtl-function.h (read_rtl_function_body_from_file_range):
7718         New decl.
7719         * run-rtl-passes.c: New file.
7720         * run-rtl-passes.h: New file.
7722 2017-01-24 Jeff Law  <law@redhat.com>
7724         * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
7725         buffer size.
7727 2017-01-24  Bin Cheng  <bin.cheng@arm.com>
7729         PR tree-optimization/79159
7730         * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
7731         (record_nonwrapping_iv): Improve boundary using above function if no
7732         value range information.
7734 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
7735             Martin Jambor  <mjambor@suse.cz>
7737         * brig-builtins.def: New file.
7738         * builtins.def (DEF_HSAIL_BUILTIN): New macro.
7739         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
7740         (DEF_HSAIL_SAT_BUILTIN): Likewise.
7741         (DEF_HSAIL_INTR_BUILTIN): Likewise.
7742         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
7743         * builtin-types.def (BT_INT8): New.
7744         (BT_INT16): Likewise.
7745         (BT_UINT8): Likewise.
7746         (BT_UINT16): Likewise.
7747         (BT_FN_ULONG): Likewise.
7748         (BT_FN_UINT_INT): Likewise.
7749         (BT_FN_UINT_ULONG): Likewise.
7750         (BT_FN_UINT_LONG): Likewise.
7751         (BT_FN_UINT_PTR): Likewise.
7752         (BT_FN_ULONG_PTR): Likewise.
7753         (BT_FN_INT8_FLOAT): Likewise.
7754         (BT_FN_INT16_FLOAT): Likewise.
7755         (BT_FN_UINT32_FLOAT): Likewise.
7756         (BT_FN_UINT16_FLOAT): Likewise.
7757         (BT_FN_UINT8_FLOAT): Likewise.
7758         (BT_FN_UINT64_FLOAT): Likewise.
7759         (BT_FN_UINT16_UINT32): Likewise.
7760         (BT_FN_UINT32_UINT16): Likewise.
7761         (BT_FN_UINT16_UINT16_UINT16): Likewise.
7762         (BT_FN_INT_PTR_INT): Likewise.
7763         (BT_FN_UINT_PTR_UINT): Likewise.
7764         (BT_FN_LONG_PTR_LONG): Likewise.
7765         (BT_FN_ULONG_PTR_ULONG): Likewise.
7766         (BT_FN_VOID_UINT64_UINT64): Likewise.
7767         (BT_FN_UINT8_UINT8_UINT8): Likewise.
7768         (BT_FN_INT8_INT8_INT8): Likewise.
7769         (BT_FN_INT16_INT16_INT16): Likewise.
7770         (BT_FN_INT_INT_INT): Likewise.
7771         (BT_FN_UINT_FLOAT_UINT): Likewise.
7772         (BT_FN_FLOAT_UINT_UINT): Likewise.
7773         (BT_FN_ULONG_UINT_UINT): Likewise.
7774         (BT_FN_ULONG_UINT_PTR): Likewise.
7775         (BT_FN_ULONG_ULONG_ULONG): Likewise.
7776         (BT_FN_UINT_UINT_UINT): Likewise.
7777         (BT_FN_VOID_UINT_PTR): Likewise.
7778         (BT_FN_UINT_UINT_PTR: Likewise.
7779         (BT_FN_UINT32_UINT64_PTR): Likewise.
7780         (BT_FN_INT_INT_UINT_UINT): Likewise.
7781         (BT_FN_UINT_UINT_UINT_UINT): Likewise.
7782         (BT_FN_UINT_UINT_UINT_PTR): Likewise.
7783         (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
7784         (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
7785         (BT_FN_LONG_LONG_UINT_UINT): Likewise.
7786         (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
7787         (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
7788         (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
7789         (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
7790         (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
7791         (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
7792         * doc/frontends.texi: List BRIG FE.
7793         * doc/install.texi (Testing): Add BRIG tesring requirements.
7794         * doc/invoke.texi (Overall Options): Mention BRIG.
7795         * doc/standards.texi (Standards): Doucment BRIG HSA version.
7797 2017-01-24  Richard Biener  <rguenther@suse.de>
7799         PR translation/79208
7800         * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
7802 2017-01-24  Martin Jambor  <mjambor@suse.cz>
7804         PR bootstrap/79198
7805         * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
7806         * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
7807         and known_contexts.
7809 2017-01-24  Aldy Hernandez  <aldyh@redhat.com>
7811         PR middle-end/79123
7812         * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
7813         casts from signed to unsigned really don't have a range.
7815 2017-01-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
7817         * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
7818         GMP_RNDx for compatiblity.
7820 2017-01-24  Martin Liska  <mliska@suse.cz>
7822         PR bootstrap/79132
7823         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
7824         that would prevent us to call alloca with -1 as argument.
7826 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
7828         * dwarf2out.c (output_compilation_unit_header, output_file_names):
7829         Avoid -Wformat-security warning.
7831 2017-01-23  Andrew Pinski  <apinski@cavium.com>
7833         * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
7834         cost table.
7836 2017-01-23  Martin Sebor  <msebor@redhat.com>
7838         PR middle-end/78703
7839         * gimple-ssa-sprintf.c (warn_level): New global.
7840         (format_integer): Use it here and throughout the rest of the file.
7841         Use the same switch to compute sign as base.
7842         (maybe_warn): New function.
7843         (format_directive): Factor out warnings into maybe_warn.
7844         Add debugging output.  Use warn_level.
7845         (add_bytes): Use warn_level.
7846         (pass_sprintf_length::compute_format_length): Add debugging output.
7847         (try_substitute_return_value): Same.
7848         (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
7850         PR middle-end/78703
7851         * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
7852         (struct fmtresult, format_integer, format_floating): Adjust.
7853         (fmtresult::fmtresult): Set max correctly in two argument ctor.
7854         (get_string_length, format_string,format_directive): Same.
7855         (pass_sprintf_length::compute_format_length): Same.
7856         (try_substitute_return_value): Simplify slightly.
7858         PR middle-end/78703
7859         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
7860         (fmtresult::operator+=): Outlined.
7861         (struct fmtresult): Add ctors.
7862         (struct conversion_spec): Rename...
7863         (struct directive): ...to this.  Add and remove data members.
7864         (directive::set_width, directive::set_precision): New functions.
7865         (format_percent): Use fmtresult ctor.
7866         (get_width_and_precision): Remove.
7867         (format_integer): Make naming changes.  Avoid computing width and
7868         precision.
7869         (format_floating): Same.  Adjust indentation.
7870         (format_character, format_none): New functions.
7871         (format_string): Moved character handling to format_character.
7872         (format_directive): Remove arguments, change return type.
7873         (parse_directive): New function.
7874         (pass_sprintf_length::compute_format_length): Move directive
7875         parsing to parse_directive.
7877 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
7879         * tree.h (assign_assembler_name_if_neeeded): Rename to ...
7880         (assign_assembler_name_if_needed): ... this.
7881         * tree.c (assign_assembler_name_if_neeeded): Rename to ...
7882         (assign_assembler_name_if_needed): ... this.
7883         (free_lang_data_in_cgraph): Adjust callers.
7884         * cgraphunit.c (cgraph_node::analyze): Likewise.
7885         * omp-expand.c (expand_omp_taskreg, expand_omp_target):
7886         Likewise.
7888 2017-01-23  Richard Biener  <rguenther@suse.de>
7890         PR tree-optimization/79088
7891         PR tree-optimization/79188
7892         * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
7893         resetting loop bounds after last path deletion.  Reset loop
7894         bounds of the target loop, make code match the comments.
7895         * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
7896         Make sure loops need no fixups.
7898 2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7900         * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
7901         exponent support with double type for first argument.
7902         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
7903         type returned by __builtin_vec_extract_sig,
7904         __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
7905         functions from "vector int" to "vector unsigned int" or from
7906         "vector long long int" to "vector unsigned long long int".
7907         Changed type returned by __builtin_vec_extract_exp,
7908         __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
7909         functions from "vector int" to "vector unsigned int" or from
7910         "vector long long int" to "vector unsigned long long int".
7911         Changed return type of __builtin_vec_test_data_class,
7912         __builtin_vec_test_data_class_sp, and
7913         __builtin_vec_test_data_class_dp from "vector int" to
7914         "vector bool int" or from "vector long long int" to "vector bool
7915         long long int" and changed second argument type from "unsigned
7916         int" to "int".  Added new overloaded function forms "vector float
7917         __builtin_vec_insert_exp (vector float, vector unsigned int)" and
7918         "vector float __builtin_vec_insert_exp_sp (vector float, vector
7919         unsigned int)" and "vector double __builtin_vec_insert_exp (vector
7920         double, vector unsigned long long int)" and "vector double
7921         __builtin_vec_insert_exp_dp (vector double, vector unsigned long
7922         long int)".  Changed return type of
7923         __builtin_scalar_test_data_class and
7924         __builtin_scalar_test_data_class_sp and
7925         __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
7926         int" and changed second argument from "unsigned int" to "int".
7927         Changed type returned by __builtin_scalar_test_neg,
7928         __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
7929         from "int" to "bool int".  Added new overloaded function form
7930         "double __builtin_scalar_insert_exp (double, unsigned long long int)".
7931         * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
7932         exponent double-precision with floating point first argument.
7933         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
7934         documentation of scalar_test_data_class, scalar_test_neg,
7935         scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
7936         vector_extract_exp, vec_extract_sig, vec_insert_exp, and
7937         vec_test_data_class built-in functions to reflect refinements in
7938         their type signatures.
7940 2017-01-23  Andreas Tobler  <andreast@gcc.gnu.org>
7942         * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
7943         size of buf.
7944         (aarch64_elf_asm_destructor): Likewise.
7946 2017-01-23  Bernd Schmidt  <bschmidt@redhat.com>
7948         PR rtl-optimization/78634
7949         * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
7950         (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
7951         * ifcvt.c (noce_try_cmove): Add missing cost check.
7953         PR rtl-optimization/71724
7954         * combine.c (if_then_else_cond): Look for situations where it is
7955         beneficial to undo the work of one of the recursive calls.
7957 2017-01-23  Bin Cheng  <bin.cheng@arm.com>
7959         PR tree-optimization/70754
7960         * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
7961         (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE.  Insert
7962         combined stmt before it if not NULL.
7963         (combine_chains): Process refs reversely and compute dominance point
7964         for root ref.
7966 2017-01-23  Martin Liska  <mliska@suse.cz>
7968         PR tree-optimization/79196
7969         * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
7970         (fold_strstr_to_strncmp): ... this.  Fold the pattern to strncmp
7971         instead of memcmp.
7972         (strlen_optimize_stmt): Call the renamed function.
7974 2017-01-23  Michael Matz  <matz@suse.de>
7976         PR tree-optimization/78384
7977         * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
7979 2017-01-23  Richard Biener  <rguenther@suse.de>
7981         PR tree-optimization/79186
7982         * tree-vrp.c (register_new_assert_for): Make sure we've seen
7983         both incoming edges before moving an assert.
7985 2017-01-23  Martin Jambor  <mjambor@suse.cz>
7987         * ipa-prop.c (load_from_param_1): Removed.
7988         (load_from_unmodified_param): Bits from load_from_param_1 put back
7989         here.
7990         (load_from_param): Removed.
7991         (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
7992         with stmt.  Reverted back to use of load_from_unmodified_param.
7994 2017-01-23  Martin Jambor  <mjambor@suse.cz>
7996         PR ipa/79108
7997         * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
7998         (ipa_node_params): Annotate with GTY((for_user)).  Make descriptors
7999         field a pointer to garbage collected vector, mark lattices and
8000         ipcp_orig_node with GTY((skip)).
8001         (ipa_get_param_count): Adjust to descriptors being a pointer.
8002         (ipa_get_param): Likewise.
8003         (ipa_get_type): Likewise.
8004         (ipa_get_param_move_cost): Likewise.
8005         (ipa_set_param_used): Likewise.
8006         (ipa_get_controlled_uses): Likewise.
8007         (ipa_set_controlled_uses): Likewise.
8008         (ipa_is_param_used): Likewise.
8009         (ipa_node_params_t): Move into garbage collector.  New methods insert
8010         and remove.
8011         (ipa_node_params_sum): Annotate wth GTY(()).
8012         (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
8013         garbage collected.
8014         (ipa_load_from_parm_agg): Adjust declaration.
8015         * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
8016         * ipa-profile.c (ipa_profile): Likewise.
8017         * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
8018         (ipa_populate_param_decls): Make descriptors parameter garbage
8019         collected.
8020         (ipa_dump_param): Adjust to descriptors being a pointer.
8021         (ipa_alloc_node_params): Likewise.
8022         (ipa_initialize_node_params): Likewise.
8023         (load_from_param_1): Make descriptors parameter garbage collected.
8024         (load_from_unmodified_param): Likewise.
8025         (load_from_param): Likewise.
8026         (ipa_load_from_parm_agg): Likewise.
8027         (ipa_node_params::~ipa_node_params): Removed.
8028         (ipa_free_all_node_params): Remove call to delete operator.
8029         (ipa_node_params_t::insert): New.
8030         (ipa_node_params_t::remove): Likewise.
8031         (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
8032         copy known_csts and known_contexts vectors.
8033         (ipa_read_node_info): Adjust to descriptors being a pointer.
8034         (ipcp_modif_dom_walker): Make m_descriptors field garbage
8035         collected.
8036         (ipcp_transform_function): Make descriptors variable garbage
8037         collected.
8039 2017-01-23  Andrew Senkevich  <andrew.senkevich@intel.com>
8041         * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
8042         * config/i386/avx512dqintrin.h: Ditto.
8043         * config/i386/avx512fintrin.h: Ditto.
8044         * gcc/config/i386/i386.c: Handle new builtins.
8045         * config/i386/i386-builtin.def: Add new builtins.
8046         * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
8047         (UNSPEC_KORTEST, UNSPEC_KTEST): New.
8049 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
8050             Martin Liska  <mliska@suse.cz>
8052         * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
8053         * asan.c (asan_expand_poison_ifn): Support stores and use
8054         appropriate ASAN report function.
8055         * internal-fn.c (expand_ASAN_POISON_USE): New function.
8056         * internal-fn.def (ASAN_POISON_USE): Declare.
8057         * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
8058         (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
8059         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
8060         ASAN_POISON calls w/o LHS.
8061         * tree-ssa.c (execute_update_addresses_taken): Create clobber
8062         for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
8063         from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
8064         * gimplify.c (asan_poison_variables): Add attribute
8065         use_after_scope_memory to variables that really needs to live
8066         in memory.
8067         * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
8068         having the attribute.
8070 2017-01-23  Martin Liska  <mliska@suse.cz>
8072         * asan.c (create_asan_shadow_var): New function.
8073         (asan_expand_poison_ifn): Likewise.
8074         * asan.h (asan_expand_poison_ifn): New declaration.
8075         * internal-fn.c (expand_ASAN_POISON): Likewise.
8076         * internal-fn.def (ASAN_POISON): New builtin.
8077         * sanopt.c (pass_sanopt::execute): Expand
8078         asan_expand_poison_ifn.
8079         * tree-inline.c (copy_decl_for_dup_finish): Make function
8080         external.
8081         * tree-inline.h (copy_decl_for_dup_finish): Likewise.
8082         * tree-ssa.c (is_asan_mark_p): New function.
8083         (execute_update_addresses_taken): Rewrite local variables
8084         (identified just by use-after-scope as addressable) into SSA.
8086 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
8088         * doc/install.texi (Specific): opensource.apple.com uses https
8089         now. Remove trailing slash.
8091 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
8093         * README.Portability: Remove note on an Irix compatibility issue.
8095 2017-01-22  Dimitry Andric <dim@FreeBSD.org>
8097         * gcov.c (INCLUDE_ALGORITHM): Define.
8098         (INCLUDE_VECTOR): Define.
8099         No longer include <vector> and <algorithm> directly.
8101 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
8103         * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
8104         to https.
8105         * doc/invoke.texi (Code Gen Options): Ditto.
8107 2017-01-21  Jan Hubicka  <hubicka@ucw.cz>
8109         PR lto/78407
8110         * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
8112 2017-01-21  Bernd Schmidt  <bschmidt@redhat.com>
8114         rtl-optimization/79125
8115         * cprop.c (local_cprop_pass): Handle cases where we make an
8116         unconditional trap.
8118 2017-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
8120         PR target/61729
8121         PR target/77850
8122         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
8123         read from, for big endian.
8125 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
8127         * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
8128         register pauth builtins for LP64 only.
8130 2017-01-20  Marek Polacek  <polacek@redhat.com>
8132         PR c/79152
8133         * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
8134         non-case labels.
8136 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
8138         * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
8139         of safelen status.
8140         * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
8141         * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
8142         * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
8144 2017-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8146         PR target/71270
8147         * config/arm/arm.c (neon_valid_immediate): Reject vector constants
8148         in big-endian mode when they are not a single duplicated value.
8150 2017-01-20  Richard Biener  <rguenther@suse.de>
8152         * BASE-VER: Bump to 7.0.1.
8154 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
8156         * omp-low.c (omplow_simd_context): New struct.  Use it...
8157         (lower_rec_simd_input_clauses): ...here and...
8158         (lower_rec_input_clauses): ...here to hold common data.  Adjust all
8159         references to idx, lane, max_vf, is_simt.
8161 2017-01-20  Graham Markall  <graham.markall@embecosm.com>
8163         * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
8164         mcpu=nps400.
8166 2017-01-20  Martin Jambor  <mjambor@suse.cz>
8168         * hsa.h: Renaed to hsa-common.h.  Adjusted a comment.
8169         * hsa.c: Renaed to hsa-common.c.  Change include of gt-hsa.h to
8170         gt-hsa-common.h.
8171         * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
8172         (GTFILES): Rename hsa.c to hsa-common.c.
8173         * hsa-brig.c: Change include of hsa.h to hsa-common.h.
8174         * hsa-dump.c: Likewise.
8175         * hsa-gen.c: Likewise.
8176         * hsa-regalloc.c: Likewise.
8177         * ipa-hsa.c: Likewise.
8178         * omp-expand.c: Likewise.
8179         * omp-low.c: Likewise.
8180         * toplev.c: Likewise.
8182 2017-01-20  Marek Polacek  <polacek@redhat.com>
8184         PR c/64279
8185         * doc/invoke.texi: Document -Wduplicated-branches.
8186         * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
8187         COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
8188         POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
8189         STATEMENT_LIST, and RETURN_EXPR.  For non-pure non-const functions
8190         return 0 only when not OEP_LEXICOGRAPHIC.
8191         (fold_build_cleanup_point_expr): Use the expression
8192         location when building CLEANUP_POINT_EXPR.
8193         * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
8194         * tree.c (add_expr): Handle error_mark_node.
8196 2017-01-20  Martin Liska  <mliska@suse.cz>
8198         PR lto/69188
8199         * tree-profile.c (init_ic_make_global_vars): Do not call
8200         finalize_decl.
8201         (gimple_init_gcov_profiler): Likewise.
8203 2017-01-20  Martin Liska  <mliska@suse.cz>
8205         PR ipa/71190
8206         * cgraph.h (maybe_create_reference): Remove argument and
8207         update comment.
8208         * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
8209         argument.
8210         * ipa-cp.c (create_specialized_node): Likewise.
8211         * symtab.c (symtab_node::maybe_create_reference): Handle
8212         VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
8214 2017-01-20  Martin Liska  <mliska@suse.cz>
8216         * read-rtl-function.c (function_reader::create_function): Use
8217         build_decl instread of build_decl_stat.
8219 2017-01-20  Andrew Senkevich  <andrew.senkevich@intel.com>
8221         * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
8222         * config/i386/avx512dqintrin.h: Ditto.
8223         * config/i386/avx512fintrin.h: Ditto.
8224         * config/i386/i386-builtin-types.def: Add new types.
8225         * gcc/config/i386/i386.c: Handle new types.
8226         * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
8227         (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
8228         (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
8229         (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
8230         (__builtin_ia32_kshiftridi): New.
8231         * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
8233 2017-01-19  Segher Boessenkool  <segher@kernel.crashing.org>
8235         PR target/78875
8236         PR target/79140
8237         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
8238         define to rs6000_init_stack_protect_guard.
8239         (rs6000_init_stack_protect_guard): New function.
8241 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
8242             Yunqiang Su  <yunqiang.su@imgtec.com>
8244         * config.gcc (supported_defaults): Add madd4.
8245         (with_madd4): Add validation.
8246         (all_defaults): Add madd4.
8247         * config/mips/mips.opt (mmadd4): New option.
8248         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
8249         mmadd4.
8250         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
8251         __mips_no_madd4.
8252         (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
8253         (ISA_HAS_FUSED_MADD4): Likewise.
8254         * gcc/doc/invoke.texi (-mmadd4): Document the new option.
8255         * gcc/doc/install.texi (--with-madd4): Document the new option.
8257 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
8259         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
8260         entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
8261         AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
8262         (aarch64_init_pauth_hint_builtins): New.
8263         (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
8264         (aarch64_expand_builtin): Expand new builtins.
8266 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
8268         * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
8269         * combine-stack-adj.c (no_unhandled_cfa): Handle
8270         REG_CFA_TOGGLE_RA_MANGLE.
8271         * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
8272         * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
8273         info for return address signing.
8274         (aarch64_expand_epilogue): Likewise.
8276 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
8278         * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
8279         * config/aarch64/aarch64-protos.h
8280         (aarch64_return_address_signing_enabled): New declaration.
8281         * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
8282         New function.
8283         (aarch64_expand_prologue): Sign return address before it's pushed onto
8284         stack.
8285         (aarch64_expand_epilogue): Authenticate return address fetched from
8286         stack.
8287         (aarch64_override_options): Sanity check for ILP32 and ISA level.
8288         (aarch64_attributes): New function attributes for "sign-return-address".
8289         * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
8290         UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
8291         ("*do_return"): Generate combined instructions according to key index.
8292         ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
8293         * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
8294         iterators.
8295         (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
8296         * config/aarch64/aarch64.opt (msign-return-address=): New.
8297         * doc/extend.texi (AArch64 Function Attributes): Documents
8298         "sign-return-address=".
8299         * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
8301 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
8303         * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
8304         overall option summary.
8306 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
8308         * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
8309         * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
8310         AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
8311         * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
8313 2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
8315         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
8316         -mpower9-minmax by default for -mcpu=power9.
8317         (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
8318         128-bit floating point.
8320 2017-01-20  Alan Modra  <amodra@gmail.com>
8322         * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
8323         optimizing for size.
8325 2017-01-20  Alan Modra  <amodra@gmail.com>
8327         PR target/79144
8328         * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
8329         for strcmp and strncmp from corresponding builtin decl.
8331 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
8333         * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
8334         instead of i386/rtems-64.h.
8335         * config/i386/rtems-64.h: Remove.
8337 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
8339         PR target/78478
8340         Revert:
8341         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
8343         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
8345 2017-01-19  Tamar Christina  <tamar.christina@arm.com>
8347         * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
8348         Change int to HOST_WIDE_INT.
8349         * config/aarch64/aarch64-protos.h
8350         (aarch64_simd_gen_const_vector_dup): Likewise.
8351         * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
8353 2017-01-19  David Malcolm  <dmalcolm@redhat.com>
8355         * langhooks-def.h (lhd_type_for_size): New decl.
8356         (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
8357         * langhooks.c (lhd_type_for_size): New function, taken from
8358         lto_type_for_size.
8360 2017-01-19  Pat Haugen  <pthaugen@us.ibm.com>
8362         * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
8363         define_bypass for CR latency.
8364         (power9-cracked-alu): Update bypass latency and remove power9-branch.
8365         (power9-alu2): Add define_bypass for CR latency.
8366         (power9-cmp): New.
8367         (power9-mul): Update insn latency.
8368         (power9-mul-compare): Update insn latency, bypass latency and remove
8369         power9-branch.
8371 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8373         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
8374         Delete.
8375         * config/aarch64/aarch64.md
8376         (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
8377         aarch64_nopcrelative_literal_loads.
8378         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
8380 2017-01-19  Chenghua Xu  <paul.hua.gm@gmail.com>
8382         * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
8383         TARGET_LOONGSON_3A.
8384         (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
8386 2017-01-19  Doug Gilmore  <doug.gilmore@imgtec.com>
8388         PR target/78176
8389         * config.gcc (supported_defaults): Add lxc1-sxc1.
8390         (with_lxc1_sxc1): Add validation.
8391         (all_defaults): Add lxc1-sxc1.
8392         * config/mips/mips.opt (mlxc1-sxc1): New option.
8393         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
8394         mlxc1-sxc1.
8395         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
8396         __mips_no_lxc1_sxc1.
8397         (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
8398         * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
8399         * doc/install.texi (--with-lxc1-sxc1): Document the new option.
8401 2017-01-19  Richard Biener  <rguenther@suse.de>
8403         PR tree-optimization/72488
8404         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
8405         sure to restore SSA info.
8406         * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
8408 2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
8410         PR rtl-optimization/79121
8411         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
8412         of the inner type when shifting an extended value.
8414 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
8416         PR lto/78407
8417         * symtab.c (symtab_node::equal_address_to): Fix comparing of
8418         interposable aliases.
8420 2017-01-18  Peter Bergner  <bergner@vnet.ibm.com>
8422         PR target/78516
8423         * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
8424         Use the evmergelohi instruction.
8425         (mov_si<mode>_e500_subreg4_2_le): Likewise.
8426         (mov_sitf_e500_subreg8_2_be): Likewise.
8427         (mov_sitf_e500_subreg12_2_le): Likewise.
8428         (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
8429         (mov_si<mode>_e500_subreg4_2_be): Likewise.
8430         (mov_sitf_e500_subreg8_2_le): Likewise.
8431         (mov_sitf_e500_subreg12_2_be): Likewise.
8433 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8435         * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
8436         attribute from vecsimple to vecperm.
8437         (altivec_vbpermq2): Likewise.
8439 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8441         PR target/79040
8442         * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
8444 2017-01-18  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
8445         * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
8446         * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
8447         strcmp. Fix bug where comparison didn't stop with zero byte. Fix
8448         case where N arg is SIZE_MAX.
8449         * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
8450         (cmpstrsi): Add pattern.
8452 2017-01-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
8454         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8455         __builtin_vec_revb builtins.
8456         * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
8457         built-in functions to support generation of the ISA 3.0 XXBR<x>
8458         vector byte reverse instructions.
8459         (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
8460         (P9V_BUILTIN_XXBRD_V2DI): Likewise.
8461         (P9V_BUILTIN_XXBRD_V2DF): Likewise.
8462         (P9V_BUILTIN_XXBGW_V4SI): Likewise.
8463         (P9V_BUILTIN_XXBGW_V4SF): Likewise.
8464         (P9V_BUILTIN_XXBGH_V8HI): Likewise.
8465         (P9V_BUILTIN_VEC_REVB): Likewise.
8466         * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
8467         generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
8468         (p9_xxbrq_v16qi): Likewise.
8469         (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
8470         (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
8471         (p9_xxbrh_v8hi): Likewise.
8472         * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
8473         * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
8474         vec_revb built-in functions.
8476 2017-01-18  Uros Bizjak  <ubizjak@gmail.com>
8478         PR rtl-optimization/78952
8479         * config/i386/i386.md (any_extract): New code iterator.
8480         (*insvqi_2): Use any_extract for source operand.
8481         (*insvqi_3): Use any_shiftrt for source operand.
8483 2017-01-18  Wilco Dijkstra  <wdijkstr@arm.com>
8485         * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
8486         New function.
8487         (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
8489 2017-01-18  Matthias Klose  <doko@ubuntu.com>
8491         * doc/install.texi: Allow default for --with-target-bdw-gc-include.
8493 2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8495         * config/rs6000/altivec.h (vec_bperm): Change #define.
8496         * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
8497         (altivec_vbpermq2): New define_insn.
8498         (altivec_vbpermd): Likewise.
8499         * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
8500         function interface.
8501         (VBPERMD): Likewise.
8502         (VBPERM): New polymorphic function interface.
8503         * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
8504         Add entries for P9V_BUILTIN_VEC_VBPERM.
8505         * doc/extend.texi: Add interfaces for vec_bperm.
8507 2017-01-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8509         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
8510         first letter of error messages.
8511         (s390_resolve_overloaded_builtin): Likewise.
8512         * config/s390/s390.c (s390_expand_builtin): Likewise.
8513         (s390_invalid_arg_for_unprototyped_fn): Likewise.
8514         (s390_valid_target_attribute_inner_p): Likewise.
8515         * config/s390/s390.md ("tabort"): Likewise.
8517 2017-01-18  Toma Tabacu  <toma.tabacu@imgtec.com>
8519         * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
8520         (ISA_AVOID_DIV_HILO): New macro.
8521         (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
8522         (ISA_HAS_DDIV): Likewise.
8524 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
8526         * doc/invoke.texi (fabi-version): Correct number of occurrences.
8528 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
8530         * doc/invoke.texi (fabi-version): Spelling fix.
8532 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
8534         PR c++/70182
8535         * doc/invoke.texi (fabi-version): Mention mangling fix for
8536         operator names.
8538 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
8540         PR c++/77489
8541         * doc/invoke.texi (fabi-version): Document discriminator mangling.
8543 2017-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
8545         PR target/78875
8546         * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
8547         * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
8548         the new options.
8549         * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
8550         flexible settings.
8551         (stack_protect_test): Ditto.
8552         * config/rs6000/rs6000.opt (mstack-protector-guard=,
8553         mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
8554         options.
8555         * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
8556         Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
8557         -mstack-protector-guard-offset=.
8558         (RS/6000 and PowerPC Options): Ditto.
8560 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
8562         * config/i386/i386.h (MASK_CLASS_P): New define.
8563         * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
8564         there are no registers from different register sets also when
8565         mask registers are used.  Update function comment.
8566         * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
8567         to (*k/*r) and (*k/*km) alternatives.
8569 2017-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
8571         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
8572         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
8573         (EH_RETURN_HANDLER_RTX): New define.
8574         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
8575         Force frame pointer in EH return functions.
8576         (aarch64_expand_epilogue): Add barrier for eh_return.
8577         (aarch64_final_eh_return_addr): Remove.
8578         (aarch64_eh_return_handler_rtx): New function.
8579         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
8580         Remove.
8581         (aarch64_eh_return_handler_rtx): New prototype.
8583 2017-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8585         * config/rs6000/altivec.h (vec_rlmi): New #define.
8586         (vec_vrlnm): Likewise.
8587         (vec_rlnm): Likewise.
8588         * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
8589         (UNSPEC_VRLNM): Likewise.
8590         (VIlong): New mode iterator.
8591         (altivec_vrl<VI_char>mi): New define_insn.
8592         (altivec_vrl<VI_char>nm): Likewise.
8593         * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
8594         function entry.
8595         (VRLDNM): Likewise.
8596         (RLNM): New polymorphic function entry.
8597         (VRLWMI): New monomorphic function entry.
8598         (VRLDMI): Likewise.
8599         (RLMI): New polymorphic function entry.
8600         * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
8601         new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
8602         * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
8603         vec_vrlnm.
8605 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
8607         PR debug/78839
8608         * dwarf2out.c (field_byte_offset): Restore the
8609         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
8610         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
8611         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
8612         of build2 + fold.
8614 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
8616         PR ada/67205
8617         * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
8619 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
8621         PR debug/71669
8622         * dwarf2out.c (add_data_member_location_attribute): For constant
8623         offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
8624         instead of DW_AT_data_member_location, DW_AT_bit_offset and
8625         DW_AT_byte_size attributes.
8627 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
8629         * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
8630         after forcing to constant memory when the code model is medium.
8632 2017-01-17  Julia Koval  <julia.koval@intel.com>
8634         PR target/76731
8635         * config/i386/avx512fintrin.h
8636         (_mm512_i32gather_ps): Change __addr type to void const*.
8637         (_mm512_mask_i32gather_ps): Ditto.
8638         (_mm512_i32gather_pd): Ditto.
8639         (_mm512_mask_i32gather_pd): Ditto.
8640         (_mm512_i64gather_ps): Ditto.
8641         (_mm512_mask_i64gather_ps): Ditto.
8642         (_mm512_i64gather_pd): Ditto.
8643         (_mm512_mask_i64gather_pd): Ditto.
8644         (_mm512_i32gather_epi32): Ditto.
8645         (_mm512_mask_i32gather_epi32): Ditto.
8646         (_mm512_i32gather_epi64): Ditto.
8647         (_mm512_mask_i32gather_epi64): Ditto.
8648         (_mm512_i64gather_epi32): Ditto.
8649         (_mm512_mask_i64gather_epi32): Ditto.
8650         (_mm512_i64gather_epi64): Ditto.
8651         (_mm512_mask_i64gather_epi64): Ditto.
8652         (_mm512_i32scatter_ps): Change __addr type to void*.
8653         (_mm512_mask_i32scatter_ps): Ditto.
8654         (_mm512_i32scatter_pd): Ditto.
8655         (_mm512_mask_i32scatter_pd): Ditto.
8656         (_mm512_i64scatter_ps): Ditto.
8657         (_mm512_mask_i64scatter_ps): Ditto.
8658         (_mm512_i64scatter_pd): Ditto.
8659         (_mm512_mask_i64scatter_pd): Ditto.
8660         (_mm512_i32scatter_epi32): Ditto.
8661         (_mm512_mask_i32scatter_epi32): Ditto.
8662         (_mm512_i32scatter_epi64): Ditto.
8663         (_mm512_mask_i32scatter_epi64): Ditto.
8664         (_mm512_i64scatter_epi32): Ditto.
8665         (_mm512_mask_i64scatter_epi32): Ditto.
8666         (_mm512_i64scatter_epi64): Ditto.
8667         (_mm512_mask_i64scatter_epi64): Ditto.
8668         * config/i386/avx512pfintrin.h
8669         (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
8670         (_mm512_mask_prefetch_i32gather_ps): Ditto.
8671         (_mm512_mask_prefetch_i64gather_pd): Ditto.
8672         (_mm512_mask_prefetch_i64gather_ps): Ditto.
8673         (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
8674         (_mm512_prefetch_i32scatter_ps): Ditto.
8675         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
8676         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
8677         (_mm512_prefetch_i64scatter_pd): Ditto.
8678         (_mm512_prefetch_i64scatter_ps): Ditto.
8679         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
8680         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
8681         * config/i386/avx512vlintrin.h
8682         (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
8683         (_mm_mmask_i32gather_ps): Ditto.
8684         (_mm256_mmask_i32gather_pd): Ditto.
8685         (_mm_mmask_i32gather_pd): Ditto.
8686         (_mm256_mmask_i64gather_ps): Ditto.
8687         (_mm_mmask_i64gather_ps): Ditto.
8688         (_mm256_mmask_i64gather_pd): Ditto.
8689         (_mm_mmask_i64gather_pd): Ditto.
8690         (_mm256_mmask_i32gather_epi32): Ditto.
8691         (_mm_mmask_i32gather_epi32): Ditto.
8692         (_mm256_mmask_i32gather_epi64): Ditto.
8693         (_mm_mmask_i32gather_epi64): Ditto.
8694         (_mm256_mmask_i64gather_epi32): Ditto.
8695         (_mm_mmask_i64gather_epi32): Ditto.
8696         (_mm256_mmask_i64gather_epi64): Ditto.
8697         (_mm_mmask_i64gather_epi64): Ditto.
8698         (_mm256_i32scatter_ps): Change __addr type to void*.
8699         (_mm256_mask_i32scatter_ps): Ditto.
8700         (_mm_i32scatter_ps): Ditto.
8701         (_mm_mask_i32scatter_ps): Ditto.
8702         (_mm256_i32scatter_pd): Ditto.
8703         (_mm256_mask_i32scatter_pd): Ditto.
8704         (_mm_i32scatter_pd): Ditto.
8705         (_mm_mask_i32scatter_pd): Ditto.
8706         (_mm256_i64scatter_ps): Ditto.
8707         (_mm256_mask_i64scatter_ps): Ditto.
8708         (_mm_i64scatter_ps): Ditto.
8709         (_mm_mask_i64scatter_ps): Ditto.
8710         (_mm256_i64scatter_pd): Ditto.
8711         (_mm256_mask_i64scatter_pd): Ditto.
8712         (_mm_i64scatter_pd): Ditto.
8713         (_mm_mask_i64scatter_pd): Ditto.
8714         (_mm256_i32scatter_epi32): Ditto.
8715         (_mm256_mask_i32scatter_epi32): Ditto.
8716         (_mm_i32scatter_epi32): Ditto.
8717         (_mm_mask_i32scatter_epi32): Ditto.
8718         (_mm256_i32scatter_epi64): Ditto.
8719         (_mm256_mask_i32scatter_epi64): Ditto.
8720         (_mm_i32scatter_epi64): Ditto.
8721         (_mm_mask_i32scatter_epi64): Ditto.
8722         (_mm256_i64scatter_epi32): Ditto.
8723         (_mm256_mask_i64scatter_epi32): Ditto.
8724         (_mm_i64scatter_epi32): Ditto.
8725         (_mm_mask_i64scatter_epi32): Ditto.
8726         (_mm256_i64scatter_epi64): Ditto.
8727         (_mm256_mask_i64scatter_epi64): Ditto.
8728         (_mm_i64scatter_epi64): Ditto.
8729         (_mm_mask_i64scatter_epi64): Ditto.
8730         * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
8731         (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
8732         (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
8733         (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
8734         (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
8735         (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
8736         (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
8737         (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
8738         (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
8739         (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
8740         (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
8741         (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
8742         (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
8743         (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
8744         (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
8745         (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
8746         (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
8747         (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
8748         (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
8749         (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
8750         (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
8751         (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
8752         (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
8753         (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
8754         (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
8755         (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
8756         (VOID_QI_V8DI_PCINT_INT_INT): Remove.
8757         (V16SF_V16SF_PCVOID_V16SI_HI_INT,  V8DF_V8DF_PCVOID_V8SI_QI_INT)
8758         (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
8759         (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
8760         (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
8761         (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
8762         (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
8763         (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
8764         (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
8765         (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
8766         (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
8767         (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
8768         (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
8769         (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
8770         (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
8771         (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
8772         (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
8773         (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
8774         (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
8775         (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
8776         (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
8777         (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
8778         (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
8779         (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
8780         (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
8781         (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
8782         (VOID_QI_V8DI_PCVOID_INT_INT): Add.
8783         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
8784         definitions accordingly.
8786 2017-01-17  Kito Cheng  <kito.cheng@gmail.com>
8787             Kuan-Lin Chen  <kuanlinchentw@gmail.com>
8789         PR target/79079
8790         * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
8791         gen_lowpart.
8793 2017-01-17  Vladimir Makarov  <vmakarov@redhat.com>
8795         PR target/79058
8796         * ira-conflicts.c (ira_build_conflicts): Update total conflict
8797         hard regs for inner regno.
8799 2017-01-17  Martin Liska  <mliska@suse.cz>
8801         PR ipa/71207
8802         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
8803         assumption and add comment.
8805 2017-01-17  Nathan Sidwell  <nathan@acm.org>
8807         * ipa-visibility.c (localize_node): New function, broken out of ...
8808         (function_and_variable_visibility): ... here. Call it.
8810 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
8812         PR middle-end/77445
8813         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
8814         correctly set frequency of oudgoing edge.
8815         (duplicate_thread_path): Fix profile updating.
8817 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
8819         PR other/79046
8820         * configure.ac: Add GCC_BASE_VER.
8821         * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
8822         version from BASE-VER file.
8823         (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
8824         (gcc.o): Depend on $(BASEVER).
8825         * common.opt (dumpfullversion): New option.
8826         * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
8827         * doc/invoke.texi: Document -dumpfullversion.
8828         * doc/install.texi: Document --with-gcc-major-version-only.
8829         * configure: Regenerated.
8831 2017-01-17  Richard Biener  <rguenther@suse.de>
8833         PR tree-optimization/71433
8834         * tree-vrp.c (register_new_assert_for): Merge same asserts
8835         on all incoming edges.
8836         (process_assert_insertions_for): Handle insertions at the
8837         beginning of BBs.
8839 2017-01-17  Gerald Pfeifer  <gerald@pfeifer.com>
8841         * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
8842         * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
8844 2017-01-17  Kaz Kojima  <kkojima@gcc.gnu.org>
8846         PR target/78633
8847         * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
8848         RTL sharing.
8850 2017-01-17  Alan Modra  <amodra@gmail.com>
8852         PR target/79066
8853         * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
8854         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
8855         symbolic stack limit when pic.
8857 2017-01-16  Martin Sebor  <msebor@redhat.com>
8859         PR tree-optimization/78608
8860         * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
8862 2017-01-16  Jeff Law  <law@redhat.com>
8864         Revert:
8865         2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
8866         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
8867         for several include directories that may be relative to sysroot.
8868         * config/i386/x-mingw32 (gplus_includedir): Define.
8869         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
8870         (native_system_includedir): Likewise.
8871         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
8872         override if TARGET_SYSTEM_ROOT is defined.
8873         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
8875         PR tree-optimization/79090
8876         PR tree-optimization/33562
8877         PR tree-optimization/61912
8878         PR tree-optimization/77485
8879         * tree-ssa-dse.c (compute_trims): Accept STMT argument.  Dump STMT
8880         and computed trims into the dump file.
8882 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
8884         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
8886 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
8888         PR c/79089
8889         * gimplify.c (gimplify_init_constructor): If want_value and
8890         object == lhs, unshare lhs to avoid invalid tree sharing.  Formatting
8891         fix.
8893         PR target/79080
8894         * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
8895         sequence.  Formatting fixes.
8896         (doloop_optimize): Formatting fixes.
8898         PR driver/49726
8899         * gcc.c (debug_level_greater_than_spec_func): New function.
8900         (static_spec_functions): Add debug-level-gt spec function.
8901         (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
8902         !g0.
8903         * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
8904         * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
8905         * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
8906         gpubnames, ggnu-pubnames, gno-record-gcc-switches,
8907         grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
8908         gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
8910 2017-01-16  Uros Bizjak  <ubizjak@gmail.com>
8912         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
8913         QImode fixups to general and mask registers only.
8915 2017-01-16  Carl Love  <cel@us.ibm.com>
8917         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
8918         for built-in functions
8919         vector signed char vec_nabs (vector signed char)
8920         vector signed short vec_nabs (vector signed short)
8921         vector signed int vec_nabs (vector signed int)
8922         vector signed long long vec_nabs (vector signed long long)
8923         vector float vec_nabs (vector float)
8924         vector double vec_nabs (vector double)
8925         * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
8926         and NABS overload.
8927         * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
8928         * config/rs6000/altivec.h: New define for vec_nabs built-in function.
8929         * doc/extend.texi: Update the documentation file for the new built-in
8930         functions.
8932 2017-01-16  Martin Sebor  <msebor@redhat.com>
8934         * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
8935         message.
8937 2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8939         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
8940         UNSPEC_VSX__XXSPLTD to require special splat handling.
8942 2017-01-16  David Malcolm  <dmalcolm@redhat.com>
8944         PR bootstrap/78616
8945         * system.h: Poison strndup.
8947 2017-01-16  Alan Modra  <amodra@gmail.com>
8949         PR target/79098
8950         * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
8951         use a switch.
8953 2017-01-16  Georg-Johann Lay  <avr@gjlay.de>
8955         * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
8957 2017-01-15  Uros Bizjak  <ubizjak@gmail.com>
8959         * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
8960         call recog here.  Assert that INSN_CODE (insn) is non-negative.
8962 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
8964         PR target/72749
8965         * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
8966         fallthrough.
8967         * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
8968         in the currently scheduled RTL fragment.
8970 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
8972         PR rtl-optimization/78751
8973         * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
8974         give up.
8976 2017-01-14  Jeff Law  <law@redhat.com>
8978         PR tree-optimization/79090
8979         * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
8980         variable length stores.
8981         (compute_trims): Delete dead assignment to *trim_tail.
8982         (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
8983         zero length.
8985 2017-01-14  Bernd Schmidt  <bschmidt@redhat.com>
8987         PR rtl-optimization/78626
8988         PR rtl-optimization/78727
8989         * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
8990         of a block, and split such blocks after everything else is finished.
8992 2017-01-14  Alan Modra  <amodra@gmail.com>
8994         PR target/72749
8995         * combine.c (recog_for_combine_1): Set INSN_CODE before calling
8996         target legitimate_combined_insn.
8997         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
8998         (rs6000_legitimate_combined_insn): New function.
8999         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
9000         all uses.
9001         (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
9002         (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
9003         (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
9005 2017-01-14  Gerald Pfeifer  <gerald@pfeifer.com>
9007         * doc/frontends.texi (G++ and GCC): Remove references to Java.
9009 2017-01-13  Jeff Law  <law@redhat.com>
9011         PR tree-optimization/33562
9012         PR tree-optimization/61912
9013         PR tree-optimization/77485
9014         * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
9015         a statement.
9016         (delete_dead_assignment): Likewise.
9017         (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
9018         statement to delete_dead_call and delete_dead_assignment.
9020 2017-01-13  David Malcolm  <dmalcolm@redhat.com>
9022         PR c/78304
9023         * substring-locations.c (format_warning_va): Strengthen case 1 so
9024         that both endpoints of the substring must be within the format
9025         range for just the substring to be printed.
9027 2017-01-13  Uros Bizjak  <ubizjak@gmail.com>
9029         * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
9030         * config/i386/i386.c (ix86_target_string): Add missing options
9031         to isa_opts and reorder options by implied ISAs.  Rename isa_opts2 to
9032         isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
9033         flags_other and ix86_target_other to flags2_other.  Display unknown
9034         isa2 options.
9035         (ix86_valid_target_attribute_inner_p): Add missing options and
9036         reorder options by implied ISAs, as in ix86_target_string.
9038 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
9040         * hash-table.h (hash_table::too_empty_p): New function.
9041         (hash_table::expand): Use it.
9042         (hash_table::traverse): Likewise.
9043         (hash_table::empty_slot): Use sizeof (value_type) instead of
9044         sizeof (PTR) to convert bytes to elements.  Shrink the table
9045         if the current size is excessive for the current number of
9046         elements.
9048 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
9050         * ira-costs.c (record_reg_classes): Break from the inner loop
9051         early once alt_fail is known to be true.  Update outer loop
9052         handling accordingly.
9054 2017-01-13  Jeff Law  <law@redhat.com>
9056         * tree-ssa-dse.c (decrement_count): New function.
9057         (increment_start_addr, maybe_trim_memstar_call): Likewise.
9058         (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
9059         when we know the partially dead statement is a mem* function.
9061         PR tree-optimization/61912
9062         PR tree-optimization/77485
9063         * tree-ssa-dse.c: Include expr.h.
9064         (maybe_trim_constructor_store): New function.
9065         (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
9067         PR tree-optimization/33562
9068         PR tree-optimization/61912
9069         PR tree-optimization/77485
9070         * doc/invoke.texi: Document new dse-max-object-size param.
9071         * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
9072         * tree-ssa-dse.c: Include params.h.
9073         (dse_store_status): New enum.
9074         (initialize_ao_ref_for_dse): New, partially extracted from
9075         dse_optimize_stmt.
9076         (valid_ao_ref_for_dse, normalize_ref): New.
9077         (setup_live_bytes_from_ref, compute_trims): Likewise.
9078         (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
9079         (maybe_trim_partially_dead_store): Likewise.
9080         (maybe_trim_complex_store): Likewise.
9081         (dse_classify_store): Renamed from dse_possibly_dead_store_p.
9082         Track what bytes live from the original store.  Return tri-state
9083         for dead, partially dead or live.
9084         (dse_dom_walker): Add constructor, destructor and new private members.
9085         (delete_dead_call, delete_dead_assignment): New extracted from
9086         dse_optimize_stmt.
9087         (dse_optimize_stmt): Make a member of dse_dom_walker.
9088         Use initialize_ao_ref_for_dse.
9090         PR tree-optimization/33562
9091         PR tree-optimization/61912
9092         PR tree-optimization/77485
9093         * sbitmap.h (bitmap_count_bits): Prototype.
9094         (bitmap_clear_range, bitmap_set_range): Likewise.
9095         * sbitmap.c (bitmap_clear_range): New function.
9096         (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
9098 2017-01-13  Martin Liska  <mliska@suse.cz>
9100         PR ipa/79043
9101         * function.c (set_cfun): Add new argument force.
9102         * function.h (set_cfun): Likewise.
9103         * ipa-inline-transform.c (inline_call): Use the function when
9104         strict alising from is dropped for function we inline to.
9106 2017-01-13  Richard Biener  <rguenther@suse.de>
9108         * tree-pretty-print.c (dump_generic_node): Fix inverted condition
9109         for dumping GIMPLE INTEGER_CSTs.
9111 2017-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9113         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
9114         to 201112L since C++17.
9116 2017-01-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
9118         PR sanitizer/78887
9119         * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
9120         if -fsanitize=kernel-address is present.
9122 2017-01-13  Richard Biener  <rguenther@suse.de>
9124         * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
9125         as _Literal ( type ) number in case usual suffixes do not
9126         preserve all information.
9128 2017-01-13  Richard Biener  <rguenther@suse.de>
9130         PR tree-optimization/77283
9131         * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
9132         and ssa-iterators.h.
9133         (is_feasible_trace): Implement a cost model based on joiner
9134         PHI node uses.
9136 2017-01-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
9138         PR target/79004
9139         * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
9140         char or short to __float128/_Float128 directly.
9142 2017-01-12  Martin Sebor  <msebor@redhat.com>
9144         to -Wformat-overflow.
9145         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
9146         (min_bytes_remaining): Same.
9147         (get_string_length): Same.
9148         (format_string): Same.
9149         (format_directive): Same.
9150         (add_bytes): Same.
9151         (pass_sprintf_length::handle_gimple_call): Same.
9153 2017-01-12  Jakub Jelinek  <jakub@redhat.com>
9155         * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
9156         info.nowrite calls with no lhs that can't throw.  Return bool
9157         whether gsi_remove has been called or not.
9158         (pass_sprintf_length::handle_gimple_call): Return bool whether
9159         try_substitute_return_value called gsi_remove.  Formatting fix.
9160         (pass_sprintf_length::execute): Don't use gsi_remove if
9161         handle_gimple_call returned true.
9163         PR bootstrap/79069
9164         * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
9165         be removed due to side-effects, don't remove following barrier nor
9166         turn the successor edge into fallthru edge.
9168 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9170         PR target/79044
9171         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
9172         element-reversing loads and stores as not swappable.
9174 2017-01-12  Nathan Sidwell  <nathan@acm.org>
9175             Nicolai Stange  <nicstange@gmail.com>
9177         * combine.c (try_combine): Don't ignore result of overlap checking
9178         loop.  Combine overlap & asm check into single loop.
9180 2017-01-12  Richard Biener  <rguenther@suse.de>
9182         * tree-pretty-print.c (dump_generic_node): Provide -gimple
9183         variant for MEM_REF.  Sanitize INTEGER_CST for -gimple.
9185 2017-01-12  Richard Biener  <rguenther@suse.de>
9187         * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
9188         and TS_TARGET_OPTION directly derive from TS_BASE.
9189         * tree-core.h (tree_optimization_option): Derive from tree_base.
9190         (tree_target_option): Likewise.
9192 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
9194         * config/i386/i386.c (memory_address_length): Increase len
9195         only when rip_relative_addr_p returns false.
9197 2017-01-11  Julia Koval  <julia.koval@intel.com>
9199         * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
9200         (OPTION_MASK_ISA_SGX_SET): New.
9201         (ix86_handle_option): Handle OPT_msgx.
9202         * config.gcc: Added sgxintrin.h.
9203         * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
9204         * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
9205         * config/i386/i386.c (ix86_target_string): Add -msgx.
9206         (PTA_SGX): New.
9207         (ix86_option_override_internal): Handle new options.
9208         (ix86_valid_target_attribute_inner_p): Add sgx.
9209         * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
9210         * config/i386/i386.opt: Add msgx.
9211         * config/i386/sgxintrin.h: New file.
9212         * config/i386/x86intrin.h: Add sgxintrin.h.
9214 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
9216         PR c++/71537
9217         * fold-const.c (maybe_nonzero_address): Return 1 for function
9218         local objects.
9219         (tree_single_nonzero_warnv_p): Don't handle function local objects
9220         here.
9222         PR c++/72813
9223         * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
9224         of c-header.
9226 2017-01-11  David Malcolm  <dmalcolm@redhat.com>
9228         PR driver/78877
9229         * opts.c: Include "spellcheck.h"
9230         (struct string_fragment): New struct.
9231         (struct edit_distance_traits<const string_fragment &>): New
9232         struct.
9233         (get_closest_sanitizer_option): New function.
9234         (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
9236 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
9238         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
9239         by 12.
9240         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
9241         DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
9242         (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
9243         (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
9244         for initial die_offset if dwarf_split_debug_info.
9245         (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
9246         initial next_die_offset if dwo_id is non-NULL.  Don't emit padding
9247         fields.
9248         (output_skeleton_debug_sections): Formatting fix.  Use
9249         DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
9250         DWARF_COMPILE_UNIT_HEADER_SIZE.  Don't emit padding.
9252 2017-01-11  Wilco Dijkstra  <wdijkstr@arm.com>
9254         * config/arm/cortex-a53.md: Add bypasses for
9255         cortex_a53_r2f_cvt.
9256         (cortex_a53_r2f): Only use for transfers.
9257         (cortex_a53_f2r): Likewise.
9258         (cortex_a53_r2f_cvt): Add reservation for conversions.
9259         (cortex_a53_f2r_cvt): Likewise.
9261 2017-01-11  Tamar Christina  <tamar.christina@arm.com>
9263         * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
9264         to all inlined functions, change static to extern.
9266 2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
9268         PR target/78253
9269         * config/arm/arm.c (legitimize_pic_address): Handle reference to
9270         weak symbol.
9271         (arm_assemble_integer): Likewise.
9273 2017-01-11  Richard Earnshaw  <rearnsha@arm.com>
9275         * config.gcc: Use new awk script to check CPU, FPU and architecture
9276         parameters for --with-... options.
9277         * config/arm/parsecpu.awk: New file
9278         * config/arm/arm-cpus.in: New file.
9279         * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
9280         files.
9281         * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
9282         files.
9283         * config/arm/t-arm: Update dependency rules.
9284         * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
9285         of processing .def files.
9286         * config/arm/genopt.sh: Deleted.
9287         * config/arm/gentune.sh: Deleted.
9288         * config/arm/arm-cores.def: Deleted.
9289         * config/arm/arm-arches.def: Deleted.
9290         * config/arm/arm-fpus.def: Deleted.
9291         * config/arm/arm-tune.md: Regenerated.
9292         * config/arm/arm-tables.opt: Regenerated.
9293         * config/arm/arm-cpu.h: New generated file.
9294         * config/arm/arm-cpu-data.h: New generated file.
9295         * config/arm/arm-cpu-cdata.h: New generated file.
9297 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
9299         PR lto/79042
9300         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
9301         bit.
9302         (input_varpool_node): Unpack dynamically_initialized bit.
9304 2017-01-11  Eric Botcazou  <ebotcazou@adacore.com>
9306         PR rtl-optimization/79032
9307         * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
9308         the alignment of the adjusted memory reference against that of MODE,
9309         instead of the alignment of the original memory reference.
9311 2017-01-11  Martin Jambor  <mjambor@suse.cz>
9313         * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
9314         test.
9315         * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
9316         decorated functions.
9318 2017-01-11  Richard Biener  <rguenther@suse.de>
9320         * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
9321         set range/nonnull info for PHI results.  Do not set it on
9322         stmts marked for removal.
9324 2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
9326         * expr.c (store_field): In the bitfield case, fetch the return value
9327         from the registers before applying a single big-endian adjustment.
9328         Always do a final load for a BLKmode value not larger than a word.
9330 2017-01-10  David Malcolm  <dmalcolm@redhat.com>
9332         PR c++/77949
9333         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
9334         that we correctly handle column numbers greater than
9335         LINE_MAP_MAX_COLUMN_NUMBER.
9337 2017-01-10  Martin Sebor  <msebor@redhat.com>
9339         PR middle-end/78245
9340         * gimple-ssa-sprintf.c (get_destination_size): Call
9341         {init,fini}object_sizes.
9342         * tree-object-size.c (addr_object_size): Adjust.
9343         (pass_through_call): Adjust.
9344         (pass_object_sizes::execute): Adjust.
9345         * tree-object-size.h (fini_object_sizes): Declare.
9347 2017-01-10  Martin Sebor  <msebor@redhat.com>
9349         PR tree-optimization/78775
9350         * builtins.c (get_size_range): Move...
9351         * calls.c: ...to here.
9352         (alloc_max_size): Accept zero argument.
9353         (operand_signed_p): Remove.
9354         (maybe_warn_alloc_args_overflow): Call get_size_range.
9355         * calls.h (get_size_range): Declare.
9357 2017-01-10  Joe Seymour  <joe.s@somniumtech.com>
9359         * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
9360         from TI's devices.csv file as of September 2016.
9361         * config/msp430/msp430.c (msp430_mcu_data): Likewise.
9363 2017-01-10  Sandra Loosemore  <sandra@codesourcery.com>
9365         * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
9366         * doc/invoke.texi: Likewise.
9367         * doc/md.texi: Likewise.
9368         * doc/objc.texi: Likewise.
9370 2017-01-10  Joshua Conner  <joshconner@google.com>
9372         * config/arm/fuchsia-elf.h: New file.
9373         * config/fuchsia.h: New file.
9374         * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
9375         (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
9376         targets.
9377         * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
9379 2016-01-10  Richard Biener  <rguenther@suse.de>
9381         PR tree-optimization/79034
9382         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
9383         Propagate out degenerate PHIs in the joiner.
9385 2017-01-10  Martin Liska  <mliska@suse.cz>
9387         * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
9388         (sort_congruence_classes_by_decl_uid): Likewise.
9389         (sort_congruence_class_groups_by_decl_uid): Likewise.
9390         (sem_item_optimizer::merge_classes): Sort class, groups in these
9391         classes and members in the groups by DECL_UID of declarations.
9392         This would make merge operations stable.
9394 2017-01-10  Martin Liska  <mliska@suse.cz>
9396         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
9397         usage of m_classes_vec.
9398         (sem_item_optimizer::~sem_item_optimizer):  Likewise.
9399         (sem_item_optimizer::get_group_by_hash): Likewise.
9400         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
9401         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
9402         (sem_item_optimizer::verify_classes): Likewise.
9403         (sem_item_optimizer::process_cong_reduction): Likewise.
9404         (sem_item_optimizer::dump_cong_classes): Likewise.
9405         (sem_item_optimizer::merge_classes): Likewise.
9406         * ipa-icf.h (congruence_class_hash): Rename from
9407         congruence_class_group_hash.  Remove declaration of m_classes_vec.
9409 2017-01-10  Andrew Senkevich  <andrew.senkevich@intel.com>
9411         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
9412         OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
9413         * config.gcc: Add avx512vpopcntdqintrin.h.
9414         * config/i386/avx512vpopcntdqintrin.h: New.
9415         * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
9416         * config/i386/i386-builtin-types.def: Add new types.
9417         * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
9418         __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
9419         __builtin_ia32_vpopcountq_v8di_mask): New.
9420         * config/i386/i386-c.c (ix86_target_macros_internal): Define
9421         __AVX512VPOPCNTDQ__.
9422         * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
9423         (PTA_AVX512VPOPCNTDQ): Define.
9424         * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
9425         TARGET_AVX512VPOPCNTDQ_P): Define.
9426         * config/i386/i386.opt: Add mavx512vpopcntdq.
9427         * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
9428         * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
9430 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
9432         PR middle-end/77484
9433         * predict.def (PRED_CALL): Set to 67.
9435 2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
9437         * expr.c (store_field): In the bitfield case, if the value comes from
9438         a function call and is of an aggregate type returned in registers, do
9439         not modify the field mode; extract the value in all cases if the mode
9440         is BLKmode and the size is not larger than a word.
9442 2017-01-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
9444         PR target/71017
9445         * config/i386/cpuid.h: Fix undefined behavior.
9447 2017-01-04  Jeff Law  <law@redhat.com>
9449         PR tree-optimization/79007
9450         PR tree-optimization/67955
9451         * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
9452         conservative for pt.null when flag_non_call_exceptions is on.
9454 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
9456         PR translation/79019
9457         PR translation/79020
9458         * params.def (PARAM_INLINE_MIN_SPEEDUP,
9459         PARAM_IPA_CP_SINGLE_CALL_PENALTY,
9460         PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
9461         in descriptions.
9462         * config/avr/avr.opt (maccumulate-args): Likewise.
9463         * config/msp430/msp430.opt (mwarn-mcu): Likewise.
9464         * common.opt (freport-bug): Likewise.
9465         * cif-code.def (CIF_FINAL_ERROR): Likewise.
9466         * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
9467         * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
9468         translatable string.
9469         * config/i386/i386.c (function_value_32): Likewise.
9470         * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
9471         * config/msp430/msp430.c (msp430_option_override, msp430_attr):
9472         Likewise.
9473         * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
9474         * common/config/msp430/msp430-common.c (msp430_handle_option):
9475         Likewise.
9476         * symtab.c (symtab_node::verify_base): Likewise.
9477         * opts.c (set_debug_level): Likewise.
9478         * tree.c (verify_type_variant): Likewise.  Fix typo in comment.
9479         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
9480         missing whitespace to translatable strings.
9481         * config/avr/avr.md (bswapsi2): Fix typo in comment.
9482         * config/sh/superh.h: Likewise.
9483         * config/i386/xopintrin.h: Likewise.
9484         * config/i386/znver1.md: Likewise.
9485         * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
9486         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
9487         * double-int.h (struct double_int): Likewise.
9488         * double-int.c (div_and_round_double): Likewise.
9489         * wide-int.cc: Likewise.
9490         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
9491         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
9492         * cfgcleanup.c (crossjumps_occured): Renamed to ...
9493         (crossjumps_occurred): ... this.
9494         (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
9495         Adjust all uses.
9497         PR tree-optimization/78899
9498         * tree-if-conv.c (version_loop_for_if_conversion): Instead of
9499         returning bool return struct loop *, NULL for failure and the new
9500         loop on success.
9501         (versionable_outer_loop_p): Don't version outer loop if it has
9502         dont_vectorized bit set.
9503         (tree_if_conversion): When versioning outer loop, ensure
9504         tree_if_conversion is performed also on the inner loop of the
9505         non-vectorizable outer loop copy.
9506         * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix.  Fold
9507         LOOP_VECTORIZED in inner loop of the scalar outer loop and
9508         prevent vectorization of it.
9509         (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
9510         the outer loop vectorization of the non-scalar version is attempted
9511         before vectorization of the inner loop in scalar version.  If
9512         outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
9513         vectorization of its inner loop.
9514         * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
9515         has 2 inner loops, rename also on edges from bb whose single pred
9516         is outer_loop->header.  Fix typo in function comment.
9518 2017-01-09  Martin Sebor  <msebor@redhat.com>
9520         PR bootstrap/79033
9521         * asan.c (asan_emit_stack_protection): Increase local buffer size
9522         to avoid snprintf truncation warning.
9524 2017-01-09  Andrew Pinski  <apinski@cavium.com>
9526         * config/aarch64/aarch64-cores.def: Add thunderx2t99.  Change vulcan
9527         to reference thunderx2t99 for the tuning structure
9528         * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
9529         Rename to ...
9530         (thunderx2t99_extra_costs): This.
9531         * config/aarch64/aarch64-tune.md: Regenerate.
9532         * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
9533         (vulcan_addrcost_table): This.
9534         (vulcan_regmove_cost): Rename to ...
9535         (thunderx2t99_regmove_cost): This.
9536         (vulcan_vector_cost): Rename to ...
9537         (thunderx2t99_vector_cost): this.
9538         (vulcan_branch_cost): Rename to ...
9539         (thunderx2t99_branch_cost): This.
9540         (vulcan_tunings): Rename to ...
9541         (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
9542         * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
9544 2017-01-09  Martin Jambor  <mjambor@suse.cz>
9546         PR ipa/78365
9547         PR ipa/78599
9548         * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
9549         * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
9550         (propagate_vr_accross_jump_function): Use the above function for all
9551         value range computations for pass-through jump functions and type
9552         converasion from explicit value range values.
9553         (ipcp_propagate_stage): Do not attempt to deduce types of formal
9554         parameters from TYPE_ARG_TYPES.
9555         * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
9556         (ipa_write_node_info): Stream type of the actual argument.
9557         (ipa_read_node_info): Likewise. Also remove trailing whitespace.
9559 2017-01-09  Martin Liska  <mliska@suse.cz>
9561         PR pch/78970
9562         * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
9563         (lookup_compiler): Do not show error message with have_E.
9565 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
9567         PR tree-optimization/78938
9568         * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
9569         where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
9570         BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
9571         {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR.  Formatting
9572         fixes.
9574 2017-01-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9576         * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
9577         is const0_rtx.
9579 2017-01-09  Richard Biener  <rguenther@suse.de>
9581         PR tree-optimization/78997
9582         * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
9583         name condition properly.
9585 2017-01-09  Richard Biener  <rguenther@suse.de>
9587         PR debug/79000
9588         * dwarf2out.c (is_cxx): New overload with context.
9589         (is_naming_typedef_decl): Use it.
9591 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
9593         * invoke.texi (Option Summary): Correct spacing in option lists
9594         and add line breaks to fix over-long lines.
9596 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
9598         PR middle-end/17660
9600         * extend.texi (Common Variable Attributes): Add xref to GCC
9601         Internals manual to explain mode attribute keywords.
9603 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
9605         PR other/16519
9606         * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
9607         and Preprocessor Options.
9608         (Options for Linking): Document -pthread here....
9609         (RS/6000 and PowerPC Options): ...not here.
9610         (Solaris 2 Options): ...or here.
9611         * doc/cppopts.texi: Document -pthread.
9613 2017-01-08  Martin Sebor  <msebor@redhat.com>
9615         PR middle-end/77708
9616         * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
9617         * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
9618         New member functions.
9619         (format_directive): Used them.
9620         (add_bytes): Same.
9621         (pass_sprintf_length::handle_gimple_call): Same.
9622         * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
9623         to avoid truncation for any argument.
9624         (extract_affine_mul): Same.
9625         * tree.c (get_file_function_name): Same.
9627 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
9629         PR middle-end/77484
9630         * predict.def (PRED_INDIR_CALL): Set to 86.
9632 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
9634         PR preprocessor/54124
9635         * doc/cppopts.texi: Reformat -d subtable to list the full name
9636         of the options.  Add cross-reference to the docs for the general
9637         compiler -d options.
9638         * doc/invoke.texi (Developer Options): Add cross-reference to the
9639         preprocessor-specific -d option documentation.
9641 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
9643         PR preprocessor/13498
9644         * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
9645         redudant material, and reflect new command-line options.
9646         (System Headers): Likewise.
9648 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
9650         * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
9651         -isystem, and -idirafter.  Copy-edit.
9652         * doc/cppopts.texi: Copy-edit.  Remove contradiction about
9653         default for -ftrack-macro-expansion.  Delete obsolete and
9654         badly-formatted implementation details about -fdebug-cpp output.
9655         * doc/cppwarnopts.texi: Copy-edit.
9657 2017-01-07  David Malcolm  <dmalcolm@redhat.com>
9659         PR c++/72803
9660         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
9661         that the transition from a max line width >= 1<<10 to narrower
9662         lines works correctly.
9664 2017-01-07  Alexandre Oliva <aoliva@redhat.com>
9666         * doc/options.texi (PerFunction): New.
9667         * opt-functions.awk (switch_flags): Map both Optimization and
9668         PerFunction to CL_OPTIMIZATION.
9669         * opth-gen.awk: Test for PerFunction flag along with
9670         Optimization.
9671         * optc-save-gen.awk: Likewise.  Introduce var_opt_hash and set
9672         it only when the latter is present.  Skip those that don't in
9673         the hash function generator.
9674         * common.opt (fvar-tracking): Mark as PerFunction instead of
9675         Optimization.
9676         (fvar-tracking-assignments): Likewise.
9677         (fvar-tracking-assignments-toggle): Likewise.
9678         (fvar-tracking-uninit): Likewise.
9680 2017-01-07  Jakub Jelinek  <jakub@redhat.com>
9682         PR translation/79018
9683         * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
9684         the and store.
9686 2017-01-06  Mikael Pettersson  <mikpelinux@gmail.com>
9688         PR target/57583
9689         * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
9690         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
9691         TARGET_LONG_JUMP_TABLE_OFFSETS.
9692         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
9693         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
9694         * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
9695         (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
9696         * config/m68k/m68k.md (tablejump expander): Likewise.
9697         (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
9698         TARGET_LONG_JUMP_TABLE_OFFSETS.
9699         (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
9700         * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
9702 2017-01-06  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
9703             David Holsgrove <david.holsgrove@xilinx.com>
9705         * common/config/microblaze/microblaze-common.c
9706         (TARGET_EXCEPT_UNWIND_INFO): Remove.
9707         * config/microblaze/microblaze-protos.h (microblaze_eh_return):
9708         New prototype.
9709         * config/microblaze/microblaze.c (microblaze_must_save_register)
9710         (microblaze_expand_epilogue, microblaze_return_addr): Handle
9711         calls_eh_return.
9712         (microblaze_eh_return): New function.
9713         * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
9714         (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
9715         (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
9716         * config/microblaze/microblaze.md (eh_return): New pattern.
9718 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
9720         * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
9721         GCC_DIAGNOSTIC_STRINGIFY): Define.
9723         * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
9725 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9727         * config/arm/arm.md (<mcrr>): New.
9728         (<mrrc>): New.
9729         * config/arm/arm.c (arm_arch5te): New.
9730         (arm_option_override): Set arm_arch5te.
9731         (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
9732         and mrrc2.
9733         * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
9734         (arm_mcrr_qualifiers): ... this. New.
9735         (MRRC_QUALIFIERS): Define to...
9736         (arm_mrrc_qualifiers): ... this. New.
9737         * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
9738         __arm_mrrc2): New.
9739         * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
9740         * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
9741         (MRRCI, mrrc, MRRC): New.
9742         * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
9743         VUNSPEC_MRRC2): New.
9745 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9747         * config/arm/arm.md (<mcr>): New.
9748         (<mrc>): New.
9749         * config/arm/arm.c (arm_coproc_builtin_available): Add
9750         support for mcr, mrc, mcr2 and mrc2.
9751         * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
9752         (arm_mcr_qualifiers): ... this. New.
9753         (MRC_QUALIFIERS): Define to ...
9754         (arm_mrc_qualifiers): ... this. New.
9755         (MCR_QUALIFIERS): Define to ...
9756         (arm_mcr_qualifiers): ... this. New.
9757         * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
9758         __arm_mrc2): New.
9759         * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
9760         * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
9761         * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
9762         VUNSPEC_MRC2): New.
9764 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9766         * config/arm/arm.md (*ldc): New.
9767         (*stc): New.
9768         (<ldc>): New.
9769         (<stc>): New.
9770         * config/arm/arm.c (arm_coproc_builtin_available): Add
9771         support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
9772         (arm_coproc_ldc_stc_legitimate_address): New.
9773         * config/arm/arm-builtins.c (arm_type_qualifiers): Add
9774         'qualifier_const_pointer'.
9775         (LDC_QUALIFIERS): Define to...
9776         (arm_ldc_qualifiers): ... this. New.
9777         (STC_QUALIFIERS): Define to...
9778         (arm_stc_qualifiers): ... this. New.
9779         * config/arm/arm-protos.h
9780         (arm_coproc_ldc_stc_legitimate_address): New.
9781         * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
9782         __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
9783         * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
9784         stc2, stcl, stc2l): New.
9785         * config/arm/constraints.md (Uz): New.
9786         * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
9787         * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
9788         VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
9789         VUNSPEC_STC2L): New.
9791 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9793         * config/arm/arm.md (<cdp>): New.
9794         * config/arm/arm.c (neon_const_bounds): Rename this ...
9795         (arm_const_bounds): ... this.
9796         (arm_coproc_builtin_available): New.
9797         * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
9798         (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
9799         (CDP_QUALIFIERS): Define to...
9800         (arm_cdp_qualifiers): ... this. New.
9801         (void_UP): Define.
9802         (arm_expand_builtin_args): Add case for 6 arguments.
9803         * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
9804         (arm_const_bounds): ... this.
9805         (arm_coproc_builtin_available): New.
9806         * config/arm/arm_acle.h (__arm_cdp): New.
9807         (__arm_cdp2): New.
9808         * config/arm/arm_acle_builtins.def (cdp): New.
9809         (cdp2): New.
9810         * config/arm/iterators.md (CDPI,CDP,cdp): New.
9811         * config/arm/neon.md: Rename all 'neon_const_bounds' to
9812         'arm_const_bounds'.
9813         * config/arm/types.md (coproc): New.
9814         * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
9815         * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
9816         * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
9817         arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
9819 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9821         * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
9822         (UBINOP_QUALIFIERS): New.
9823         (si_UP): Define.
9824         (acle_builtin_data): New. Change comment.
9825         (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
9826         ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
9827         ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
9828         arm_acle_builtins.def.
9829         (ARM_BUILTIN_ACLE_PATTERN_START): Define.
9830         (arm_init_acle_builtins): New.
9831         (CRC32_BUILTIN): Remove.
9832         (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
9833         crc32cb, crc32ch and crc32cw.
9834         (arm_init_crc32_builtins): Remove.
9835         (arm_init_builtins): Use arm_init_acle_builtins rather
9836         than arm_init_crc32_builtins.
9837         (arm_expand_acle_builtin): New.
9838         (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
9839         * config/arm/arm_acle_builtins.def: New.
9841 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9843         * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
9844         (arm_builtin_datum): ... this.
9845         (arm_init_neon_builtin): Rename to ...
9846         (arm_init_builtin): ... this. Add a new parameters PREFIX
9847         and USE_SIG_IN_NAME.
9848         (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
9849         'arm_init_builtin'. Replace type 'neon_builtin_datum' with
9850         'arm_builtin_datum'.
9851         (arm_init_vfp_builtins): Likewise.
9852         (builtin_arg): Rename enum's replacing 'NEON_ARG' with
9853         'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
9854         (arm_expand_neon_args): Rename to ...
9855         (arm_expand_builtin_args): ... this. Rename builtin_arg
9856         enum values and differentiate between ARG_BUILTIN_MEMORY
9857         and ARG_BUILTIN_NEON_MEMORY.
9858         (arm_expand_neon_builtin_1): Rename to ...
9859         (arm_expand_builtin_1): ... this. Rename builtin_arg enum
9860         values, arm_expand_builtin_args and add bool parameter NEON.
9861         (arm_expand_neon_builtin): Use arm_expand_builtin_1.
9862         (arm_expand_vfp_builtin): Likewise.
9863         (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
9865 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
9867         PR middle-end/77484
9868         * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
9869         * predict.c (tree_estimate_probability_bb): Reverse direction of
9870         polymorphic call predictor.
9872 2017-01-06  David Malcolm  <dmalcolm@redhat.com>
9874         * passes.c (execute_one_pass): Split out pass-skipping logic into...
9875         (determine_pass_name_match): ...this new function and...
9876         (should_skip_pass_p): ...this new function.
9878 2017-01-06  Nathan Sidwell  <nathan@acm.org>
9880         * ipa-visibility.c (function_and_variable_visibility): Reformat
9881         comments and long lines.  Remove extrneous if.
9882         * symtab.c (symtab_node::make_decl_local): Fix code format.
9883         (symtab_node::set_section_for_node): Fix comment typo.
9885 2017-01-06  Martin Liska  <mliska@suse.cz>
9887         PR bootstrap/79003
9888         * lra-constraints.c: Rename invariant to lra_invariant.
9889         * predict.c (set_even_probabilities): Initialize e to NULL.
9891 2017-01-05  Martin Sebor  <msebor@redhat.com>
9893         PR tree-optimization/78910
9894         * gimple-ssa-sprintf.c (tree_digits): Add an argument.
9895         (format_integer): Correct off-by-one error in the handling
9896         of precision with negative numbers in signed conversions..
9898 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
9900         * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
9902 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
9904         PR tree-optimization/71016
9905         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
9906         factor_out_conditional_conversion.  Formatting fix.
9907         (factor_out_conditional_conversion): Add cond_stmt argument.
9908         If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
9909         cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
9910         Formatting fix.
9912 2017-01-05  David Malcolm  <dmalcolm@redhat.com>
9914         * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
9915         read-rtl-function.o, and selftest-rtl.o.
9916         * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
9917         (selftest::aarch64_test_loading_full_dump): New function.
9918         (selftest::aarch64_run_selftests): New function.
9919         (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
9920         selftest::aarch64_run_selftests.
9921         * config/i386/i386.c
9922         (selftest::ix86_test_loading_dump_fragment_1): New function.
9923         (selftest::ix86_test_loading_call_insn): New function.
9924         (selftest::ix86_test_loading_full_dump): New function.
9925         (selftest::ix86_test_loading_unspec): New function.
9926         (selftest::ix86_run_selftests): Call the new functions.
9927         * emit-rtl.c (maybe_set_max_label_num): New function.
9928         * emit-rtl.h (maybe_set_max_label_num): New decl.
9929         * function.c (instantiate_decls): Guard call to
9930         instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
9931         * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
9932         "static".
9933         * gensupport.c (gen_reader::gen_reader): Pass "false"
9934         for new "compact" param of rtx_reader.
9935         * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
9936         rather than an empty string for NULL strings.
9937         * read-md.c: Potentially include config.h rather than bconfig.h.
9938         Wrap include of errors.h with #ifdef GENERATOR_FILE.
9939         (have_error): New global, copied from errors.c.
9940         (md_reader::read_name): Rename to...
9941         (md_reader::read_name_1): ...this, adding "out_loc" param,
9942         and converting "missing name or number" to returning false, rather
9943         than failing.
9944         (md_reader::read_name): Reimplement in terms of read_name_1.
9945         (md_reader::read_name_or_nil): New function.
9946         (md_reader::read_string): Handle "(nil)" by returning NULL.
9947         (md_reader::md_reader): Add new param "compact".
9948         (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
9949         (md_reader::read_file): New method.
9950         * read-md.h (md_reader::md_reader): Add new param "compact".
9951         (md_reader::read_file): New method.
9952         (md_reader::is_compact): New accessor.
9953         (md_reader::read_name): Convert return type from void to file_location.
9954         (md_reader::read_name_or_nil): New decl.
9955         (md_reader::read_name_1): New decl.
9956         (md_reader::m_compact): New field.
9957         (noop_reader::noop_reader): Pass "false" for new "compact" param
9958         of rtx_reader.
9959         (rtx_reader::rtx_reader): Add new "compact" param.
9960         (rtx_reader::read_rtx_operand): Make virtual and convert return
9961         type from void to rtx.
9962         (rtx_reader::read_until): New decl.
9963         (rtx_reader::handle_any_trailing_information): New virtual function.
9964         (rtx_reader::postprocess): New virtual function.
9965         (rtx_reader::finalize_string): New virtual function.
9966         (rtx_reader::m_in_call_function_usage): New field.
9967         (rtx_reader::m_reuse_rtx_by_id): New field.
9968         * read-rtl-function.c: New file.
9969         * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
9970         * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
9971         (selftest::verify_three_block_rtl_cfg): New decl.
9972         * read-rtl-function.h: New file.
9973         * read-rtl.c: Potentially include config.h rather than bconfig.h.
9974         For host, include function.h, memmodel.h, and emit-rtl.h.
9975         (one_time_initialization): New function.
9976         (struct compact_insn_name): New struct.
9977         (compact_insn_names): New array.
9978         (find_code): Handle insn codes in compact dumps.
9979         (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
9980         (bind_subst_iter_and_attr): Likewise.
9981         (add_condition_to_string): Likewise.
9982         (add_condition_to_rtx): Likewise.
9983         (apply_attribute_uses): Likewise.
9984         (add_current_iterators): Likewise.
9985         (apply_iterators): Likewise.
9986         (initialize_iterators): Guard usage of apply_subst_iterator with
9987         #ifdef GENERATOR_FILE.
9988         (read_conditions): Wrap with #ifdef GENERATOR_FILE.
9989         (md_reader::read_mapping): Likewise.
9990         (add_define_attr_for_define_subst): Likewise.
9991         (add_define_subst_attr): Likewise.
9992         (read_subst_mapping): Likewise.
9993         (check_code_iterator): Likewise.
9994         (rtx_reader::read_rtx): Likewise.  Move one-time initialization
9995         logic to...
9996         (one_time_initialization): New function.
9997         (rtx_reader::read_until): New method.
9998         (read_flags): New function.
9999         (parse_reg_note_name): New function.
10000         (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
10001         Handle reuse_rtx ids.
10002         Wrap iterator lookup within #ifdef GENERATOR_FILE.
10003         Add parsing support for RTL dumps, mirroring the special-cases in
10004         print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
10005         values, and calling handle_any_trailing_information.
10006         (rtx_reader::read_rtx_operand): Convert return type from void
10007         to rtx, returning return_rtx.  Handle case 'e'.  Call
10008         finalize_string on XSTR and XTMPL fields.
10009         (rtx_reader::read_nested_rtx):  Handle dumps in which trailing
10010          "(nil)" values were omitted.  Call the postprocess vfunc on the
10011         return_rtx.
10012         (rtx_reader::rtx_reader): Add new "compact" param and pass to base
10013         class ctor.  Initialize m_in_call_function_usage.  Call
10014         one_time_initialization.
10015         * rtl-tests.c (selftest::test_uncond_jump): Call
10016         set_new_first_and_last_insn.
10017         * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
10018         * selftest-rtl.c: New file.
10019         * selftest-rtl.h (class selftest::rtl_dump_test): New class.
10020         (selftest::get_insn_by_uid): New decl.
10021         * selftest-run-tests.c (selftest::run_tests): Call
10022         read_rtl_function_c_tests.
10023         * selftest.h  (selftest::read_rtl_function_c_tests): New decl.
10024         * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
10025         dumps.
10027 2017-01-05  Uros Bizjak  <ubizjak@gmail.com>
10029         * config/i386/i386.md (*testqi_ext_3): No need to handle memory
10030         operands in a special way.  Assert that pos+len <= mode precision.
10032 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
10034         * common.opt (fvect-cost-model): Remove RejectNegative flag, use
10035         3 argument Alias with unlimited for the negative form.
10036         (fno-vect-cost-model): Removed.
10038 2017-01-05  Martin Liska  <mliska@suse.cz>
10040         * hsa-gen.c (gen_hsa_divmod): New function.
10041         (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
10043 2017-01-05  Martin Liska  <mliska@suse.cz>
10045         PR pch/78970
10046         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
10047         header.
10049 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10051         * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
10052         small constant length operands.
10054 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10056         * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
10057         between loop iterations.
10059 2017-01-05  Martin Liska  <mliska@suse.cz>
10061         PR sanitizer/78815
10062         * gimplify.c (gimplify_decl_expr): Compare to
10063         asan_poisoned_variables instread of checking flags.
10064         (gimplify_target_expr): Likewise.
10065         (gimplify_expr): Likewise.
10066         (gimplify_function_tree): Conditionally initialize
10067         asan_poisoned_variables.
10069 2017-01-04  Jeff Law  <law@redhat.com>
10071         PR tree-optimizatin/78812
10072         * rtl.h (contains_mem_rtx_p): Prototype.
10073         * ifcvt.c (containts_mem_rtx_p): Move from here to...
10074         * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
10075         * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
10076         and prune MEMs that are not at the toplevel of a SET_SRC rtx.  Look
10077         through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
10079 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
10081         * input.c (assert_char_at_range): Default-initialize actual_range.
10083 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
10085         * df-scan.c (df_ref_create_structure): Make regno unsigned,
10086         to match the caller.
10088 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
10090         * cfgexpand.c (expand_gimple_basic_block): Disregard debug
10091         insns after final jump in test to emit dummy move.
10093 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
10095         * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
10096         * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
10098 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
10100         * multiple_target.c (create_dispatcher_calls): Init e_next.
10101         * tree-ssa-loop-split.c (split_loop): Init border.
10102         * tree-vect-loop.c (vect_determine_vectorization_factor): Init
10103         scalar_type.
10105 2017-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
10107         PR target/71977
10108         PR target/70568
10109         PR target/78823
10110         * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
10111         (altivec_register_operand): Do not return true if the operand
10112         contains a SUBREG mixing SImode and SFmode.
10113         (vsx_register_operand): Likewise.
10114         (vsx_reg_sfsubreg_ok): New predicate.
10115         (vfloat_operand): Do not return true if the operand contains a
10116         SUBREG mixing SImode and SFmode.
10117         (vint_operand): Likewise.
10118         (vlogical_operand): Likewise.
10119         (gpc_reg_operand): Likewise.
10120         (int_reg_operand): Likewise.
10121         * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
10122         * config/rs6000/rs6000.c (valid_sf_si_move): New function to
10123         determine if a MOVSI or MOVSF operation contains SUBREGs that mix
10124         SImode and SFmode.
10125         (rs6000_emit_move_si_sf_subreg): New helper function.
10126         (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
10127         fixup SUBREGs involving SImode and SFmode.
10128         * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
10129         numbers for the new peephole2 optimization.
10130         (peephole2 for SFmode unions): New peephole2 to optimize cases in
10131         the GLIBC math library that do AND/IOR/XOR operations on single
10132         precision floating point.
10133         * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
10134         target macros to say whether we need to avoid SUBREGs mixing
10135         SImode and SFmode.
10136         (TARGET_ALLOW_SF_SUBREG): Likewise.
10137         * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
10138         (UNSPEC_SI_FROM_SF): Likewise.
10139         (iorxor): Change spacing.
10140         (and_ior_xor): New iterator for AND, IOR, and XOR.
10141         (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
10142         (movdi_from_sf_zero_ext): Likewise.
10143         (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
10144         instead of gpc_reg_operand.  Add SImode/SFmode SUBREG support.
10145         (movsf_from_si): New insn for SImode/SFmode SUBREG support.
10146         (fma<mode>4): Use gpc_reg_operand instead of register_operand.
10147         (fms<mode>4): Likewise.
10148         (fnma<mode>4): Likewise.
10149         (fnms<mode>4): Likewise.
10150         (nfma<mode>4): Likewise.
10151         (nfms<mode>4): Likewise.
10153 2017-01-04  Marek Polacek  <polacek@redhat.com>
10155         PR c++/64767
10156         * doc/invoke.texi: Document -Wpointer-compare.
10158 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
10160         * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
10161         RejectNegative.
10163         * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
10164         descriptions for -gdwarf-5 and emit them as uleb128 instead of
10165         2-byte data.
10167 2017-01-04  Kelvin Nilsen  <kelvin@gcc.gnu.org>
10169         PR target/78056
10170         * doc/sourcebuild.texi (PowerPC-specific attributes): Add
10171         documentation of the powerpc_popcntb_ok attribute.
10172         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10173         code to issue warning messages if a requested CPU configuration is
10174         not supported by the binary (assembler and loader) toolchain.
10175         (spe_init_builtins): Add two assertions to prevent ICE if attempt is
10176         made to define a built-in function that has been disabled.
10177         (paired_init_builtins): Add assertion to prevent ICE if attempt is
10178         made to define a built-in function that has been disabled.
10179         (altivec_init_builtins): Add comment explaining why definition
10180         of the DST built-in functions is not preceded by an assertion
10181         check.  Add assertions to prevent ICE if attempts are made to
10182         define an altivec predicate or an abs* built-in function that has
10183         been disabled.
10184         (htm_init_builtins): Add comment explaining why definition of the
10185         htm built-in functions is not preceded by an assertion check.
10187 2017-01-04  Jeff Law  <law@redhat.com>
10189         PR tree-optimizatin/67955
10190         * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
10191         Allow any SSA_VAR_P as the base objects.  Use integer_zerop.  Verify
10192         the points-to solution does not include pt_null.  Use DECL_PT_UID
10193         unconditionally.
10195 2017-01-04  Uros Bizjak  <ubizjak@gmail.com>
10197         * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
10198         Use gen_int_mode instead of gen_lopwart for const_int operands.
10200 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
10202         PR tree-optimization/71563
10203         * match.pd: Simplify X << Y into X if Y is known to be 0 or
10204         out of range value - has low bits known to be zero.
10206 2017-01-04  Alan Modra  <amodra@gmail.com>
10208         * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
10209         * configure: Regenerate.
10210         * config.in: Regenerate.
10212 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
10214         PR bootstrap/77569
10215         * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
10216         a substring of the message, but strcmp with the whole message.  Ifdef
10217         ENABLE_NLS, translate the message first using dgettext.
10219 2017-01-03  Jeff Law  <law@redhat.com>
10221         PR tree-optimizatin/78856
10222         * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
10223         (mark_threaded_blocks): Remove code to truncate thread paths that
10224         cross multiple loop headers.  Instead invalidate the cached loop
10225         iteration information and handle case of a thread path walking
10226         into an irreducible region.
10228 2017-01-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
10230         PR target/78900
10231         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
10232         assertions.  Add support for doing the signbit if the IEEE 128-bit
10233         floating point value is in a GPR.
10234         * config/rs6000/rs6000.md (Fsignbit): Delete.
10235         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
10236         Update the length attribute if the value is in a GPR.
10237         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
10238         the sign or zero extension instruction, since the value is always 0/1.
10239         (signbit<mode>2_dm2): Delete using <Fsignbit>.
10241         PR target/78953
10242         * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
10243         extracting SImode to a GPR register so that we can generate a
10244         store, limit the vector to be in a traditional Altivec register
10245         for the vextuwrx instruction.
10247 2017-01-03  Ian Lance Taylor  <iant@google.com>
10249         * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
10251 2017-01-03  Martin Sebor  <msebor@redhat.com>
10253         PR tree-optimization/78696
10254         * gimple-ssa-sprintf.c (format_floating): Correct handling of
10255         precision.  Use MPFR for %f for greater fidelity.  Correct handling
10256         of %g.
10257         (pass_sprintf_length::compute_format_length): Set width and precision
10258         specified by asrerisk to void_node for vararg functions.
10259         (try_substitute_return_value): Adjust dump output.
10261 2017-01-03  David Edelsohn  <dje.gcc@gmail.com>
10263         * doc/invoke.texi (RS6000 options): LRA is enabled by default.
10265 2017-01-03  Eric Botcazou  <ebotcazou@adacore.com>
10267         * doc/invoke.texi (SPARC options): Document -mlra as the default.
10268         * config/sparc/sparc.c (sparc_option_override): Force LRA unless
10269         -mlra/-mno-lra was passed to the compiler.
10271 2017-01-03  James Cowgill  <James.Cowgill@imgtec.com>
10273         PR rtl-optimization/65618
10274         * emit-rtl.c (try_split): Move initialization of "before" and
10275         "after" to just before the call to emit_insn_after_setloc.
10277 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
10279         * doc/md.texi (Standard Names): Remove reference to Java frontend.
10281 2017-01-03  Pierre-Marie de Rodat  <derodat@adacore.com>
10283         * dwarf2out.c (gen_enumeration_type_die): When
10284         -gno-strict-dwarf, add a DW_AT_encoding attribute.
10286 2017-01-03  Jakub Jelinek  <jakub@redhat.com>
10288         PR tree-optimization/78965
10289         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
10290         Change first argument from const call_info & to call_info &.  For %n
10291         set info.nowrite to false.
10293         PR middle-end/78901
10294         * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
10295         possibly throwing calls.
10297         * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
10298         and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
10299         and fns handling, rather than in a separate case SSA_NAME.
10301 2017-01-02  Jeff Law  <law@redhat.com>
10303         * config/darwin-driver.c (darwin_driver_init): Const-correctness
10304         fixes for first_period and second_period variables.
10306 2017-01-02  Uros Bizjak  <ubizjak@gmail.com>
10308         PR target/78967
10309         * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
10310         (*insvqi_1): New insn pattern.
10311         (*insvqi_1_mem_rex64): Ditto.
10312         (*insvqi_2): Ditto.
10313         (*insvqi_3): Rename from *insvqi.
10315         (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
10317 2017-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
10319         * doc/cfg.texi (Edges): Remove reference to Java.
10320         (Maintaining the CFG): Ditto.
10322 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
10324         PR middle-end/77674
10325         * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
10326         transparent aliases.
10328 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
10330         PR middle-end/77484
10331         * predict.def (PRED_CALL): Update hitrate.
10332         (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
10333         * predict.c (tree_estimate_probability_bb): Split CALL predictor
10334         into direct/indirect/polymorphic variants.
10336 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
10338         Update copyright years.
10340         * gcc.c (process_command): Update copyright notice dates.
10341         * gcov-dump.c (print_version): Ditto.
10342         * gcov.c (print_version): Ditto.
10343         * gcov-tool.c (print_version): Ditto.
10344         * gengtype.c (create_file): Ditto.
10345         * doc/cpp.texi: Bump @copying's copyright year.
10346         * doc/cppinternals.texi: Ditto.
10347         * doc/gcc.texi: Ditto.
10348         * doc/gccint.texi: Ditto.
10349         * doc/gcov.texi: Ditto.
10350         * doc/install.texi: Ditto.
10351         * doc/invoke.texi: Ditto.
10353 Copyright (C) 2017 Free Software Foundation, Inc.
10355 Copying and distribution of this file, with or without modification,
10356 are permitted in any medium without royalty provided the copyright
10357 notice and this notice are preserved.