Add linker's --export-dynamic flag alias
[tinycc.git] / lib / alloca86.S
blobbb7a2c24aade6327dfa90521f983b8a5f5c43dbf
1 /* ---------------------------------------------- */
2 /* alloca86.S */
4 .globl alloca
6 alloca:
7     pop     %edx
8     pop     %eax
9     add     $3,%eax
10     and     $-4,%eax
11     jz      p3
13 #ifdef _WIN32
14 p1:
15     cmp     $4096,%eax
16     jbe     p2
17     test    %eax,-4096(%esp)
18     sub     $4096,%esp
19     sub     $4096,%eax
20     jmp p1
21 p2:
22 #endif
24     sub     %eax,%esp
25     mov     %esp,%eax
26 p3:
27     push    %edx
28     push    %edx
29     ret
31 /* ---------------------------------------------- */