pkgsrc/devel/ffcall/patches/patch-ai
tnn 77a0443568 Merge sparc and sparc64 avcall patches, taken from clisp-2.43.
Needed for clisp-2.44 now that it doesn't ship bundled avcall.
Hinted by uwe@
Bump PKGREVISION.
XXX untested
2008-03-03 21:41:30 +00:00

13 lines
522 B
Text

$NetBSD: patch-ai,v 1.1 2008/03/03 21:41:30 tnn Exp $
--- avcall/avcall-sparc64.c.orig 2004-01-26 15:58:39.000000000 +0100
+++ avcall/avcall-sparc64.c
@@ -185,7 +185,7 @@ __builtin_avcall(av_alist* l)
}
/* call function with 1st 6 args */
- i = ({ __avword iret; /* %o0 */
+ i = ({ register __avword iret __asm__ ("%o0");
iret = (*l->func)(l->args[0], l->args[1], l->args[2],
l->args[3], l->args[4], l->args[5]);
asm ("nop"); /* struct returning functions skip this instruction */