2015-10-29 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Oct 2015 08:21:50 +0000 (08:21 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Oct 2015 08:21:50 +0000 (08:21 +0000)
commit6d6ad0cc0fb748f5f9fe5b2d0719e7f90e2dc70a
tree988682d93098dc6128f90e4efb0513170f1f9a2e
parenta7a322da90f03f24f7a96766858a4a3cd3fe2a4a
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229517 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/ubsan/pr56956.c [new file with mode: 0644]