Fix problem using alloca function, executable crashed even with a exception handler...
[tinycc.git] / lib / alloca-arm.S
blob9deae630530ece025e9f97491380092b7a184d48
1         .text
2         .align  2
3         .global alloca
4         .type   alloca, %function
5 alloca:
6         rsb     sp, r0, sp
7         bic     sp, sp, #7
8         mov     r0, sp
9         mov     pc, lr
10         .size   alloca, .-alloca
11         .section        .note.GNU-stack,"",%progbits