diff options
| author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-11 22:54:55 +0000 |
|---|---|---|
| committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-11 22:54:55 +0000 |
| commit | d237b94bc1f40c06410c6100b3b4c8b47675c008 (patch) | |
| tree | b12fdcb70ae8e1bc44423f7a7916debc04efeaa4 /gcc/ada/utils.c | |
| parent | a70ef067b597521f2b6f00be979a980ac5c74a60 (diff) | |
| download | ppe42-gcc-d237b94bc1f40c06410c6100b3b4c8b47675c008.tar.gz ppe42-gcc-d237b94bc1f40c06410c6100b3b4c8b47675c008.zip | |
* utils.c (max_size): Use MIN_EXPR to find the minimum value of a
COND_EXPR.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81721 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/utils.c')
| -rw-r--r-- | gcc/ada/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/utils.c b/gcc/ada/utils.c index 4213e8a3a15..e1aac178a9e 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) |

