From 4b8470f3ae85fccd63d751969a237998bd4a00a2 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Sat, 5 Feb 2011 02:31:11 +0100 Subject: Revert "Disable C99 VLA when alloca is unavailable." This reverts commit e3e5d4ad7a475e30ea13ad1ba9f23e6210d5d431. --- tests/tcctest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/tcctest.c') diff --git a/tests/tcctest.c b/tests/tcctest.c index a8ec2fa..499a071 100644 --- a/tests/tcctest.c +++ b/tests/tcctest.c @@ -2010,7 +2010,7 @@ void old_style_function(void) void alloca_test() { -#ifdef TOK_alloca +#if defined __i386__ || defined __x86_64__ char *p = alloca(16); strcpy(p,"123456789012345"); printf("alloca: p is %s\n", p); @@ -2022,7 +2022,7 @@ void alloca_test() void c99_vla_test(int size1, int size2) { -#ifdef TOK_alloca +#if defined __i386__ || defined __x86_64__ int tab1[size1 * size2][2], tab2[10][2]; void *tab1_ptr, *tab2_ptr; -- cgit v1.3.1