aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-08-01 20:17:28 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:02:30 -0700
commitc3b6ccf01b43193b705a1f4332e9b28b7ace3938 (patch)
tree1f18fb793b26914ceed6f52ff5387731b2ed1fb9 /compile-i386.c
parent[be] fix amazingly stupid conditional expression handling (diff)
downloadsparse-c3b6ccf01b43193b705a1f4332e9b28b7ace3938.tar.gz
sparse-c3b6ccf01b43193b705a1f4332e9b28b7ace3938.tar.bz2
sparse-c3b6ccf01b43193b705a1f4332e9b28b7ace3938.zip
Add "select" expression.
It's the same as a regular C conditional, except you could evaluate both sides first. Right now we treat it exactly the same as an EXPR_CONDITIONAL.
Diffstat (limited to 'compile-i386.c')
-rw-r--r--compile-i386.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/compile-i386.c b/compile-i386.c
index 289bfe4..dace971 100644
--- a/compile-i386.c
+++ b/compile-i386.c
@@ -2144,6 +2144,7 @@ static struct storage *x86_expression(struct expression *expr)
case EXPR_INITIALIZER:
x86_initializer_expr(expr, expr->ctype);
return NULL;
+ case EXPR_SELECT:
case EXPR_CONDITIONAL:
return emit_conditional_expr(expr);
case EXPR_STATEMENT: