Fixed #32 a SEGFAULT bug with gcc-4.6. According to i386 calling convention, The called funtion should remove the hidden return value address from the stack.

This commit is contained in:
Xianyi 2011-06-03 13:19:54 +08:00
parent 3d7e62eb8b
commit 31040e4d80
2 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,7 @@ common:
x86/x86_64:
* Fixed #28 a wrong result of dsdot on x86_64.
* Fixed #32 a SEGFAULT bug of zdotc with gcc-4.6.
MIPS64:
* Fixed #28 a wrong result of dsdot on Loongson3A/MIPS64.

View File

@ -1541,5 +1541,8 @@
popl %ebx
popl %esi
popl %edi
/*remove the hidden return value address from the stack.*/
popl %ecx
xchgl %ecx, 0(%esp)
ret
EPILOGUE