mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +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__(
|
||||
"mov %0, %%edx \n"
|
||||
"popl %%ebx \n"
|
||||
"popl %%esi \n"
|
||||
"popl %%ebp \n"
|
||||
"leave \n"
|
||||
"popl %%ecx \n"
|
||||
"subl %%edx, %%esp \n"
|
||||
|
@ -71,8 +70,7 @@ void *_alloca(size_t s)
|
|||
|
||||
__asm__ __volatile__(
|
||||
"mov %0, %%edx \n"
|
||||
"popl %%ebx \n"
|
||||
"popl %%esi \n"
|
||||
"popl %%ebp \n"
|
||||
"leave \n"
|
||||
"popl %%ecx \n"
|
||||
"subl %%edx, %%esp \n"
|
||||
|
@ -86,4 +84,4 @@ void *_alloca(size_t s)
|
|||
|
||||
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue