PR tree-optimization/80497 - ICE at -O1 and above on valid code on x86_64-linux-gnu...
authorMartin Sebor <msebor@redhat.com>
Tue, 25 Apr 2017 17:40:58 +0000 (17:40 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Tue, 25 Apr 2017 17:40:58 +0000 (11:40 -0600)
commite602bbfc30cd7d40509edaba120429dc4a92cbce
tree46f475ef5106615483c9a5128dfd8f3f33fd2ff2
parent8e640712d5af13fec089a36c6f7fa089ffc2d062
PR tree-optimization/80497 - ICE at -O1 and above on valid code on x86_64-linux-gnu in tree_to_uhwi

gcc/ChangeLog:

PR tree-optimization/80497
* gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
constants are representable in HOST_WIDE_INT.
(parse_directive): Ditto.

gcc/testsuite/ChangeLog:

PR tree-optimization/80497
* gcc.dg/tree-ssa/builtin-sprintf-warn-17.c: New test.

From-SVN: r247262
gcc/ChangeLog
gcc/gimple-ssa-sprintf.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-17.c [new file with mode: 0644]