changes in alloca because gcc push only ebp at begin of function

svn path=/trunk/; revision=1590
This commit is contained in:
jean 2001-02-01 16:37:08 +00:00
parent 51c7c6091a
commit c8f92d26a9

View file

@ -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;
}
}