re PR sanitizer/81097 (UBSAN: false positive for not existing negation operator and...
authorRichard Biener <rguenther@suse.de>
Tue, 20 Jun 2017 12:46:46 +0000 (12:46 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 20 Jun 2017 12:46:46 +0000 (12:46 +0000)
commit531f0b3879b09b53d738b5bf84790c49bdd60977
tree3c25275be71f3163116ccc276f24bd4c4a6d6d8e
parentc7a980b80b3a46ad24940269f6b85a75cdb94a60
re PR sanitizer/81097 (UBSAN: false positive for not existing negation operator and a bogus message)

2017-06-20  Richard Biener  <rguenther@suse.de>

PR middle-end/81097
* fold-const.c (split_tree): Fold to type before negating.

* c-c++-common/ubsan/pr81097.c: New testcase.

From-SVN: r249407
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/ubsan/pr81097.c [new file with mode: 0644]