$NetBSD: patch-af,v 1.2 2006/08/09 17:55:51 mrg Exp $

--- video/reconstruct.c.orig	2001-05-19 20:05:26.000000000 -0700
+++ video/reconstruct.c	2006-08-09 10:43:50.000000000 -0700
@@ -270,8 +270,14 @@
 }
 
 #else  // HAVE_3DNOW
-	static long long ADD_1	=	0x0101010101010101LL;
-	static long long MASK_AND = 0x7f7f7f7f7f7f7f7fLL;
+#if defined(__GNUC__) && __GNUC__ > 3
+#define LMUSED	__attribute__((__used__))
+#else
+#define LMUSED
+#endif
+
+	static long long ADD_1	  LMUSED = 0x0101010101010101LL;
+	static long long MASK_AND LMUSED = 0x7f7f7f7f7f7f7f7fLL;
 #endif
 
 static inline void rec_mmx(unsigned char *s, unsigned char *d, int lx2, int h)
@@ -572,7 +578,7 @@
 	}
 }
 
-static inline void recv(unsigned char *s, unsigned char *d, int lx, int lx2, int h)
+static inline void xxrecv(unsigned char *s, unsigned char *d, int lx, int lx2, int h)
 {
 	unsigned char *dp,*sp,*sp2;
 	int j;
@@ -971,7 +977,7 @@
 			case 0x0:	recc(s, d, lx2, h);       break;
 			case 0x7:   recva(s, d, lx, lx2, h);  break;
 			case 0x6:   recvac(s, d, lx, lx2, h); break;
-			case 0x5:	recv(s, d, lx, lx2, h);   break;
+			case 0x5:	xxrecv(s, d, lx, lx2, h);   break;
 			case 0x4:	recvc(s, d, lx, lx2, h);  break;
 			case 0x9:	rech(s, d, lx2, h);       break;
 			case 0x8:   rechc(s, d, lx2, h);      break;
