Commit for blight: fix stack alignment.
Modified: trunk/reactos/lib/crtdll/stdlib/alloca.c
_____
Modified: trunk/reactos/lib/crtdll/stdlib/alloca.c
--- trunk/reactos/lib/crtdll/stdlib/alloca.c 2005-04-11 12:49:25 UTC
(rev 14587)
+++ trunk/reactos/lib/crtdll/stdlib/alloca.c 2005-04-11 15:43:04 UTC
(rev 14588)
@@ -11,12 +11,8 @@
if ( s == 0 )
return NULL;
-
- if ( (s & 0xfffffffc) != 0 )
- as += 4;
-
- as &= 0xfffffffc;
-
+ as = (as + 3) & (~3);
+
__asm__ __volatile__(
"mov %0, %%edx \n"
// "popl %%ebp \n"
Show replies by date