diff options
author | Martin Sebor <msebor@redhat.com> | 2017-01-05 22:32:09 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2017-01-05 15:32:09 -0700 |
commit | 5b8999d67ec8c7ab68dc85fabf3445102a2e4b06 (patch) | |
tree | aa71123de95c075e66fe8598afb85c01002ef5f0 /gcc/fortran/simplify.c | |
parent | 4e89adf9709dba511949a65a211d9bf702fe5753 (diff) | |
download | gcc-5b8999d67ec8c7ab68dc85fabf3445102a2e4b06.zip gcc-5b8999d67ec8c7ab68dc85fabf3445102a2e4b06.tar.gz gcc-5b8999d67ec8c7ab68dc85fabf3445102a2e4b06.tar.bz2 |
PR tree-optimization/78910 - Wrong print-return-value for a negative number
gcc/ChangeLog:
PR tree-optimization/78910
* gimple-ssa-sprintf.c (tree_digits): Add an argument.
(format_integer): Correct off-by-one error in the handling
of precision with negative numbers in signed conversions..
gcc/testsuite/ChangeLog:
PR tree-optimization/78910
* gcc.dg/tree-ssa/builtin-sprintf-warn-7.c: Adjust text of expected
diagnostics.
* gcc.dg/tree-ssa/builtin-sprintf.c: Add test cases.
* gcc.dg/tree-ssa/pr78910.c: New test.
From-SVN: r244116
Diffstat (limited to 'gcc/fortran/simplify.c')
0 files changed, 0 insertions, 0 deletions