diff options
author | Eric Botcazou <ebotcazou@act-europe.fr> | 2004-02-25 19:15:52 +0100 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2004-02-25 18:15:52 +0000 |
commit | 81fbecace5525cf0cb6d938652cfb997ddaab741 (patch) | |
tree | 5f25edf871f3b8f29f4073b811ac08e06283a01b /gcc/fold-const.c | |
parent | 2495e20b5d855d6d8679ba0f98758b0d7053ffdd (diff) | |
download | gcc-81fbecace5525cf0cb6d938652cfb997ddaab741.zip gcc-81fbecace5525cf0cb6d938652cfb997ddaab741.tar.gz gcc-81fbecace5525cf0cb6d938652cfb997ddaab741.tar.bz2 |
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
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index eaefe02..2b2e874 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -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. */ |