pkgsrc/devel/ffcall/patches/patch-vacall_vacall-x86_64.c
2015-03-19 14:04:45 +00:00

16 lines
525 B
C

$NetBSD: patch-vacall_vacall-x86_64.c,v 1.1 2015/03/19 14:04:45 jperkin Exp $
Don't use the frame pointer on SunOS.
--- vacall/vacall-x86_64.c.orig 2004-06-02 19:01:34.000000000 +0000
+++ vacall/vacall-x86_64.c
@@ -48,7 +48,9 @@ register double dret __asm__("xmm0");
* from the stack.
*/
register void* dummy1 __asm__("%rbx");
+#ifndef __sun
register void* dummy2 __asm__("%rbp");
+#endif
void /* the return type is variable, not void! */
__vacall (__vaword word1, __vaword word2, __vaword word3, __vaword word4,