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
2010 2010
2011void alloca_test()2011void alloca_test()
2012{2012{
2013#ifdef TOK_alloca2013#if defined __i386__ || defined __x86_64__
2014 char *p = alloca(16);2014 char *p = alloca(16);
2015 strcpy(p,"123456789012345");2015 strcpy(p,"123456789012345");
2016 printf("alloca: p is %s\n", p);2016 printf("alloca: p is %s\n", p);
@@ -2022,7 +2022,7 @@ void alloca_test() · 5 unmodified lines
2022 2022
2023void c99_vla_test(int size1, int size2)2023void c99_vla_test(int size1, int size2)
2024{2024{
2025#ifdef TOK_alloca2025#if defined __i386__ || defined __x86_64__
2026 int tab1[size1 * size2][2], tab2[10][2];2026 int tab1[size1 * size2][2], tab2[10][2];
2027 void *tab1_ptr, *tab2_ptr;2027 void *tab1_ptr, *tab2_ptr;
2028 2028

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