summaryrefslogtreecommitdiff
path: root/devel/ffcall/patches/patch-ai
blob: 8aac6fcbb49c44517790af13a0f11d82013ebc6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$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 */