aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/utils.c
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2004-05-11 22:54:55 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2004-05-11 22:54:55 +0000
commit4413b636d9a9a3250e963168e0c33c6aa387c3ca (patch)
treeb12fdcb70ae8e1bc44423f7a7916debc04efeaa4 /gcc/ada/utils.c
parentdaca85ca4f36a704ad0490ed9f71cb3eee6e0cb0 (diff)
downloadgcc-4413b636d9a9a3250e963168e0c33c6aa387c3ca.zip
gcc-4413b636d9a9a3250e963168e0c33c6aa387c3ca.tar.gz
gcc-4413b636d9a9a3250e963168e0c33c6aa387c3ca.tar.bz2
utils.c (max_size): Use MIN_EXPR to find the minimum value of a COND_EXPR.
* utils.c (max_size): Use MIN_EXPR to find the minimum value of a COND_EXPR. From-SVN: r81721
Diffstat (limited to 'gcc/ada/utils.c')
-rw-r--r--gcc/ada/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/utils.c b/gcc/ada/utils.c
index 4213e8a..e1aac17 100644
--- a/gcc/ada/utils.c
+++ b/gcc/ada/utils.c
@@ -2215,7 +2215,7 @@ max_size (tree exp, int max_p)
if (code == SAVE_EXPR)
return exp;
else if (code == COND_EXPR)
- return fold (build (MAX_EXPR, type,
+ return fold (build (max_p ? MAX_EXPR : MIN_EXPR, type,
max_size (TREE_OPERAND (exp, 1), max_p),
max_size (TREE_OPERAND (exp, 2), max_p)));
else if (code == CALL_EXPR && TREE_OPERAND (exp, 1) != 0)