re PR middle-end/56956 (ftrapv traps on valid abs-like code)
authorRichard Biener <rguenther@suse.de>
Thu, 29 Oct 2015 08:21:50 +0000 (08:21 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 29 Oct 2015 08:21:50 +0000 (08:21 +0000)
commitfcbb6b483667d4c3f7bf77fca5683c688e7b3c92
tree988682d93098dc6128f90e4efb0513170f1f9a2e
parent384aedfcf16640be3b3250743304207f63d4cde9
re PR middle-end/56956 (ftrapv traps on valid abs-like code)

2015-10-29  Richard Biener  <rguenther@suse.de>

PR middle-end/56956
* fold-const.c (fold_cond_expr_with_comparison): Do not fold
unsigned conditonal negation to ABS_EXPR.

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

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