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
This commit is contained in:
Eric Botcazou 2004-02-25 19:15:52 +01:00 committed by Eric Botcazou
parent 2495e20b5d
commit 81fbecace5
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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.

View File

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