diff options
| author | Michael Matz <matz@suse.de> | 2014-04-05 22:54:11 +0200 |
|---|---|---|
| committer | Michael Matz <matz@suse.de> | 2014-04-05 22:54:11 +0200 |
| commit | c4427747e6e5890b65c70e8fad5b30309b2b0279 (patch) | |
| tree | c3c841302d0918a594324ef0ec97341eee69b8ce /tests/tcctest.c | |
| parent | b0f8ca5e0306b09077866d959b307618755513cd (diff) | |
| download | tinycc-c4427747e6e5890b65c70e8fad5b30309b2b0279.tar.gz tinycc-c4427747e6e5890b65c70e8fad5b30309b2b0279.tar.bz2 | |
arm: Provide alloca()
This provides a simple implementation of alloca for ARM (and enables
the associated testcase). As tcc for ARM doesn't contain an assembler,
we'll have to resort using gcc for compiling it.
Diffstat (limited to 'tests/tcctest.c')
| -rw-r--r-- | tests/tcctest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tcctest.c b/tests/tcctest.c index 1653927..c48c1bc 100644 --- a/tests/tcctest.c +++ b/tests/tcctest.c @@ -2221,7 +2221,7 @@ void old_style_function(void) void alloca_test() { -#if defined __i386__ || defined __x86_64__ +#if defined __i386__ || defined __x86_64__ || defined __arm__ char *p = alloca(16); strcpy(p,"123456789012345"); printf("alloca: p is %s\n", p); @@ -2794,7 +2794,7 @@ double get100 () { return 100.0; } void callsave_test(void) { -#if defined __i386__ || defined __x86_64__ +#if defined __i386__ || defined __x86_64__ || defined __arm__ int i, s; double *d; double t; s = sizeof (double); printf ("callsavetest: %d\n", s); |
