diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-02-03 20:16:39 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-02-03 20:16:39 +0100 |
commit | 5b00f9d236e181c3ef427989126009f21243a007 (patch) | |
tree | 354ee345451eb296eb87adff9df1b1c87ad8b2ef /gcc/tree-vect-loop.c | |
parent | b333e8ebb0d4b63acd52249b350de410e6f77e5f (diff) | |
download | gcc-5b00f9d236e181c3ef427989126009f21243a007.zip gcc-5b00f9d236e181c3ef427989126009f21243a007.tar.gz gcc-5b00f9d236e181c3ef427989126009f21243a007.tar.bz2 |
re PR tree-optimization/79327 (wrong code at -O2 and -fprintf-return-value)
PR tree-optimization/79327
* gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
dirtype.
(format_integer): Use wide_int_to_tree instead of build_int_cst
+ to_?hwi. If argmin is NULL, just set argmin and argmax to
TYPE_{MIN,MAX}_VALUE of argtype. Simplify and fix computation
of shortest and longest sequence.
* gcc.dg/tree-ssa/pr79327.c: New test.
* gcc.dg/tree-ssa/builtin-sprintf-warn-1.c
(test_sprintf_chk_hh_nonconst): Don't expect 2 bogus warnings.
* gcc.dg/tree-ssa/builtin-sprintf-warn-3.c
(test_sprintf_chk_range_schar): Adjust dg-message.
* gcc.dg/tree-ssa/builtin-sprintf-warn-12.c: New test.
* gcc.c-torture/execute/pr79327.c: New test.
Co-Authored-By: Martin Sebor <msebor@redhat.com>
From-SVN: r245166
Diffstat (limited to 'gcc/tree-vect-loop.c')
0 files changed, 0 insertions, 0 deletions