History

Revert "Disable C99 VLA when alloca is unavailable."

This reverts commit e3e5d4ad7a475e30ea13ad1ba9f23e6210d5d431.

Thomas Preud'homme committed 15 years ago

Commit 4b8470f1 parent b0c50fb2 files · +2 −10Browse files

Showing the changes to tests (1 of 2 files). Show all

Unified · Split

tests/tcctest.c+2−2
@@ -2010,7 +2010,7 @@ void old_style_function(void) · 2009 unmodified lines
20102010
20112011 void alloca_test()
20122012 {
2013−#ifdef TOK_alloca
2013+#if defined __i386__ || defined __x86_64__
20142014 char *p = alloca(16);
20152015 strcpy(p,"123456789012345");
20162016 printf("alloca: p is %s\n", p);
@@ -2022,7 +2022,7 @@ void alloca_test() · 5 unmodified lines
20222022
20232023 void c99_vla_test(int size1, int size2)
20242024 {
2025−#ifdef TOK_alloca
2025+#if defined __i386__ || defined __x86_64__
20262026 int tab1[size1 * size2][2], tab2[10][2];
20272027 void *tab1_ptr, *tab2_ptr;
20282028

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t