aboutsummaryrefslogtreecommitdiff
path: root/tcctok.h
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@celest.fr>2011-02-04 13:25:38 +0100
committerThomas Preud'homme <thomas.preudhomme@celest.fr>2011-02-04 13:25:38 +0100
commitaf26ac56bfc584b70e20158e67f7035024076ec8 (patch)
tree40d1b6446778f3c224bcfc9ff8b470e8c84f85b7 /tcctok.h
parent7f00523e2e1938fc3558164521fe3ecefd9e1747 (diff)
downloadtinycc-af26ac56bfc584b70e20158e67f7035024076ec8.tar.gz
tinycc-af26ac56bfc584b70e20158e67f7035024076ec8.tar.bz2
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.
Diffstat (limited to 'tcctok.h')
-rw-r--r--tcctok.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tcctok.h b/tcctok.h
index ec14c1a..4311345 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