PR middle-end/61734
commit46d85442680fa0d518d59b35a794a85341a20dc3
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Jul 2014 08:55:17 +0000 (28 08:55 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Jul 2014 08:55:17 +0000 (28 08:55 +0000)
tree4cbd10b26a3a22de64e5caa3f5a3068b6b4a77ba
parent2069f8e125ae1dc7bb290dde2a04c64d213f12b9
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213118 138bc75d-0d04-0410-961f-82ee72b054a4
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