mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-03 01:30:42 +08:00
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:
parent
2495e20b5d
commit
81fbecace5
@ -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.
|
||||
|
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user