mirror of
https://github.com/reactos/reactos.git
synced 2024-07-31 08:39:05 +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
|
@ -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…
Reference in a new issue