Revert "Disable C99 VLA when alloca is unavailable."

This reverts commit e3e5d4ad7a.
This commit is contained in:
Thomas Preud'homme
2011-02-05 02:33:45 +01:00
parent b0c50fbd4d
commit 4b8470f3ae
2 changed files with 2 additions and 10 deletions
+2 -2
View File
@@ -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;