]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/83198 (ICE in format_floating, at gimple-ssa-sprintf.c:1900)
authorJakub Jelinek <jakub@redhat.com>
Thu, 14 Dec 2017 11:01:17 +0000 (12:01 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 14 Dec 2017 11:01:17 +0000 (12:01 +0100)
commitaa215959c5f6c6ec2e877d976f305eb8c9e08f2c
tree43598faf2cd837cd2eac5bdcc2a1bd2d9092b792
parent8332c5ee8c5f3bf91eb97666793e9589f2578a05
re PR tree-optimization/83198 (ICE in format_floating, at gimple-ssa-sprintf.c:1900)

PR tree-optimization/83198
* gimple-ssa-sprintf.c (format_floating): Set type solely based on
dir.modifier, regardless of TREE_TYPE (arg).  Assume non-REAL_CST
value if arg is a REAL_CST with incompatible type.

* gcc.dg/pr83198.c: New test.
* gcc.dg/tree-ssa/pr83198.c: New test.

From-SVN: r255626
gcc/ChangeLog
gcc/gimple-ssa-sprintf.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr83198.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr83198.c [new file with mode: 0644]