mirror of
https://github.com/reactos/reactos.git
synced 2025-07-02 03:41:22 +00:00
changes in alloca because gcc push only ebp at begin of function
svn path=/trunk/; revision=1590
This commit is contained in:
parent
51c7c6091a
commit
c8f92d26a9
1 changed files with 3 additions and 5 deletions
|
@ -38,8 +38,7 @@ void *alloca(size_t s)
|
||||||
|
|
||||||
__asm__ __volatile__(
|
__asm__ __volatile__(
|
||||||
"mov %0, %%edx \n"
|
"mov %0, %%edx \n"
|
||||||
"popl %%ebx \n"
|
"popl %%ebp \n"
|
||||||
"popl %%esi \n"
|
|
||||||
"leave \n"
|
"leave \n"
|
||||||
"popl %%ecx \n"
|
"popl %%ecx \n"
|
||||||
"subl %%edx, %%esp \n"
|
"subl %%edx, %%esp \n"
|
||||||
|
@ -71,8 +70,7 @@ void *_alloca(size_t s)
|
||||||
|
|
||||||
__asm__ __volatile__(
|
__asm__ __volatile__(
|
||||||
"mov %0, %%edx \n"
|
"mov %0, %%edx \n"
|
||||||
"popl %%ebx \n"
|
"popl %%ebp \n"
|
||||||
"popl %%esi \n"
|
|
||||||
"leave \n"
|
"leave \n"
|
||||||
"popl %%ecx \n"
|
"popl %%ecx \n"
|
||||||
"subl %%edx, %%esp \n"
|
"subl %%edx, %%esp \n"
|
||||||
|
@ -86,4 +84,4 @@ void *_alloca(size_t s)
|
||||||
|
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue