aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-alias.c
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2017-03-01 23:39:59 +0000
committerMartin Sebor <msebor@gcc.gnu.org>2017-03-01 16:39:59 -0700
commit71dedb336f2cbcfa71ca3ed2d153ebd4eb6e9389 (patch)
tree28ec2ca75443c8ea750c038f35b7ff911bc6d702 /gcc/tree-ssa-alias.c
parent538d7dba84ff54f8be6632797f4e636d7af0a734 (diff)
downloadgcc-71dedb336f2cbcfa71ca3ed2d153ebd4eb6e9389.zip
gcc-71dedb336f2cbcfa71ca3ed2d153ebd4eb6e9389.tar.gz
gcc-71dedb336f2cbcfa71ca3ed2d153ebd4eb6e9389.tar.bz2
PR middle-end/79692 - [7 Regression] -Wformat-overflow false positive
gcc/ChangeLog: PR middle-end/79692 * gimple-ssa-sprintf.c (directive::known_width_and_precision): New function. (format_integer): Use it. (get_mpfr_format_length): Consider the full range of precision when computing %g output with the # flag. Set the likely byte count to 3 rather than 1 when precision is indeterminate. (format_floating): Correct the lower bound of precision. gcc/testsuite/ChangeLog: PR middle-end/79692 * gcc.dg/tree-ssa/builtin-sprintf-2.c: Add test cases. * gcc.dg/tree-ssa/builtin-sprintf-warn-10.c: Correct %#g. * gcc.dg/tree-ssa/builtin-sprintf-warn-15.c: New test. * gcc.dg/tree-ssa/builtin-snprintf-3.c: Ditto. From-SVN: r245822
Diffstat (limited to 'gcc/tree-ssa-alias.c')
0 files changed, 0 insertions, 0 deletions