diff options
author | Martin Sebor <msebor@redhat.com> | 2017-03-15 04:31:27 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2017-03-14 22:31:27 -0600 |
commit | a983542b60dc245aa37ac57a643389e7b2021f28 (patch) | |
tree | e75ecafa247efe6b929769f5d5da3ec40e64f3d9 /libgfortran/libgfortran.h | |
parent | 76ca5f401d53091221b634f4e9774bc03dc8ffbe (diff) | |
download | gcc-a983542b60dc245aa37ac57a643389e7b2021f28.zip gcc-a983542b60dc245aa37ac57a643389e7b2021f28.tar.gz gcc-a983542b60dc245aa37ac57a643389e7b2021f28.tar.bz2 |
re PR tree-optimization/79800 (wrong snprintf result range with precision in a narrow negative-positive range)
PR tree-optimization/79800
* gimple-ssa-sprintf.c (format_floating: Add argument. Handle
precision in negative-positive range.
(format_floating): Call non-const overload with adjusted precision.
PR tree-optimization/79800
* gcc.dg/tree-ssa/builtin-sprintf-warn-15.c: Add test cases.
* gcc.dg/tree-ssa/pr79800.c: New test.
From-SVN: r246151
Diffstat (limited to 'libgfortran/libgfortran.h')
0 files changed, 0 insertions, 0 deletions