Commit 81fbecac by Eric Botcazou Committed by Eric Botcazou

fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like comparisons with regard to signedness.

	* fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
	comparisons with regard to signedness.

From-SVN: r78441
parent 2495e20b
2004-02-25 Eric Botcazou <ebotcazou@act-europe.fr>
* fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
comparisons with regard to signedness.
2004-02-25 Richard Earnshaw <rearnsha@arm.com>
* arm.c (thumb_legitimize_address): New function.
......
......@@ -5423,7 +5423,10 @@ fold (tree expr)
if (op == 0)
continue; /* Valid for CALL_EXPR, at least. */
if (kind == '<' || code == RSHIFT_EXPR)
if (kind == '<'
|| code == MAX_EXPR
|| code == MIN_EXPR
|| code == RSHIFT_EXPR)
{
/* Signedness matters here. Perhaps we can refine this
later. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment