From 2cbd75bbab472b6861dc0ae806e41cf139518fe6 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Fri, 22 Feb 2019 12:25:50 -0800 Subject: Implement __builtin_alloca --- qbe.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qbe.c') diff --git a/qbe.c b/qbe.c index 7cc0719..4332b9c 100644 --- a/qbe.c +++ b/qbe.c @@ -830,6 +830,9 @@ funcexpr(struct function *f, struct expression *e) case BUILTINVAEND: /* no-op */ break; + case BUILTINALLOCA: + l = funcexpr(f, e->builtin.arg); + return funcinst(f, IALLOC16, &iptr, (struct value *[]){l}); default: fatal("internal error: unimplemented builtin"); } -- cgit v1.2.3