diff options
| author | Thomas Preud'homme <thomas.preudhomme@celest.fr> | 2011-02-04 13:25:38 +0100 |
|---|---|---|
| committer | Thomas Preud'homme <thomas.preudhomme@celest.fr> | 2011-02-04 13:25:38 +0100 |
| commit | af26ac56bfc584b70e20158e67f7035024076ec8 (patch) | |
| tree | 40d1b6446778f3c224bcfc9ff8b470e8c84f85b7 | |
| parent | 7f00523e2e1938fc3558164521fe3ecefd9e1747 (diff) | |
| download | tinycc-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.
| -rw-r--r-- | tcctok.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |
