re PR middle-end/61734 (Regression in ABS_EXPR recognition)
commit32b436c0b9ba7050e26f4b9a858a4b186c6998ef
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 28 Jul 2014 08:55:17 +0000 (28 08:55 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 28 Jul 2014 08:55:17 +0000 (28 08:55 +0000)
tree4cbd10b26a3a22de64e5caa3f5a3068b6b4a77ba
parent2637bd27e86c30bce73f6753e922b1b2f03ad47d
re PR middle-end/61734 (Regression in ABS_EXPR recognition)

PR middle-end/61734
* fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
operators other than the equality operators.

From-SVN: r213118
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wstrict-overflow-25.c
gcc/testsuite/gcc.dg/fold-abs-5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/fold-compare-8.c