From af26ac56bfc584b70e20158e67f7035024076ec8 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Fri, 4 Feb 2011 13:25:38 +0100 Subject: [PATCH] Make TOK_alloca available for x86-64 TOK_alloca is now available on x86-64 so make put definition of TOK_alloca outside the BCHECK conditional macro definition but test if arch is i386 or x86-64. This makes C99 VLA works (understand compile) on x86-64. --- tcctok.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tcctok.h b/tcctok.h index ec14c1ae..43113452 100644 --- a/tcctok.h +++ b/tcctok.h @@ -237,6 +237,8 @@ DEF(TOK_memmove, "memmove") DEF(TOK_strlen, "strlen") DEF(TOK_strcpy, "strcpy") +#endif +#if defined __i386__ || defined __x86_64__ DEF(TOK_alloca, "alloca") #endif