Check for void type in top-level decls
[tinycc.git] / lib / alloca-arm.S
blob68556e36d6b501f1cea1617be9d4bef326df987f
1         .text
2         .align  2
3         .global alloca
4         .type   alloca, %function
5 alloca:
6 #ifdef __TINYC__
7         .int 0xe060d00d
8         .int 0xe3cdd007
9         .int 0xe1a0000d
10         .int 0xe1a0f00e
11 #else
12         rsb     sp, r0, sp
13         bic     sp, sp, #7
14         mov     r0, sp
15         mov     pc, lr
16 #endif
17         .size   alloca, .-alloca