Skip to content
Snippets Groups Projects
Commit 437f1df1 authored by Roger Sayle's avatar Roger Sayle Committed by Roger Sayle
Browse files

fold-const.c (fold): Place both integer and real constants last in comparisons.

	* 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.

From-SVN: r54356
parent cd24b8a4
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment