Add 16-byte alignment for ppc (required by eabi too)

svn path=/trunk/; revision=28811
This commit is contained in:
Art Yerkes
2007-09-03 10:29:14 +00:00
parent b3ab8c804e
commit 8d262dd954
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -222,6 +222,9 @@ __mingw_CRTStartup (void)
#elif defined(__mips__)
/* Align the stack to 16 bytes */
asm __volatile__ ("andi %sp,%sp,-16" : : : "%sp");
#elif defined(__PowerPC__)
/* Align the stack to 16 bytes */
asm __volatile__ ("li 0,15\n\tandc 1,1,0" : : : "r1");
#else
#error Unsupported architecture
#endif
+3
View File
@@ -223,6 +223,9 @@ __mingw_wCRTStartup (void)
#elif defined(__mips__)
/* Align the stack to 16 bytes */
asm __volatile__ ("andi %sp,%sp,-16" : : : "%sp");
#elif defined(__PowerPC__)
/* Align the stack to 16 bytes */
asm __volatile__ ("li 0,15\n\tandc 1,1,0" : : : "r1");
#else
#error Unsupported architecture
#endif