OSDN Git Service

* fold-const.c (fold) [EQ_EXPR]: Place both integer and real
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Jun 2002 23:42:53 +0000 (23:42 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Jun 2002 23:42:53 +0000 (23:42 +0000)
commitf4185d2ba140576f0b8caa16dc495d8c4e122fc7
treebfcf15db0019b5665c4cb88b677704f02c0b89ad
parente0d505fa2f027fb8ea53af89e7aebfb5be4f1103
* fold-const.c (fold) [EQ_EXPR]:  Place both integer and real
constants last in comparisons.  Optimize (x+1.0)>0.0 into the
equivalent x > -1.0 when -ffast-math.

* gcc.dg/20020607-2.c: New test case.

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