re PR sanitizer/81505 (ICE in tree-ssa-loop-manip.c:95 with -fsanitize=signed-integer...
authorRichard Biener <rguenther@suse.de>
Tue, 25 Jul 2017 07:04:07 +0000 (07:04 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 25 Jul 2017 07:04:07 +0000 (07:04 +0000)
commit3d99332b9a3fb72aca3c724949cb5373858245cf
tree6ae53eef543af749b8dd916ddea68a34c9d5b6ed
parent7ad5808da9f37f615e0d7ee585b89d1ba1a02264
re PR sanitizer/81505 (ICE in tree-ssa-loop-manip.c:95 with -fsanitize=signed-integer-overflow)

2017-07-25  Richard Biener  <rguenther@suse.de>

PR middle-end/81505
* fold-const.c (fold_negate_const): TREE_OVERFLOW should be
sticky.

* gcc.dg/ubsan/pr81505.c: New testcase.

From-SVN: r250494
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ubsan/pr81505.c [new file with mode: 0644]