diff options
author | wiz <wiz> | 2006-06-30 22:22:58 +0000 |
---|---|---|
committer | wiz <wiz> | 2006-06-30 22:22:58 +0000 |
commit | 5fef4d8b29dc5311ce16376790c7041cf5e28d59 (patch) | |
tree | e5ab69cb092751255c9755961cc27df0933564ed /editors/biew/patches/patch-ad | |
parent | 74b01dc79f9255f50fb79b888319624f094e2df9 (diff) | |
download | pkgsrc-5fef4d8b29dc5311ce16376790c7041cf5e28d59.tar.gz |
Remove some lvalue casts to make this compile with gcc-4.1.
Diffstat (limited to 'editors/biew/patches/patch-ad')
-rw-r--r-- | editors/biew/patches/patch-ad | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/editors/biew/patches/patch-ad b/editors/biew/patches/patch-ad new file mode 100644 index 00000000000..018088b28df --- /dev/null +++ b/editors/biew/patches/patch-ad @@ -0,0 +1,35 @@ +$NetBSD: patch-ad,v 1.1 2006/06/30 22:22:58 wiz Exp $ + +--- biewlib/sysdep/ia32/aclib_template.c.orig 2002-12-13 15:31:20.000000000 +0000 ++++ biewlib/sysdep/ia32/aclib_template.c +@@ -209,8 +209,8 @@ static void * RENAME(fast_memcpy)(void * + MOVNTQ" %%mm6, 48(%1)\n" + MOVNTQ" %%mm7, 56(%1)\n" + :: "r" (from), "r" (to) : "memory"); +- ((const unsigned char *)from)+=64; +- ((unsigned char *)to)+=64; ++ from = ((const unsigned char *)from)+64; ++ to = ((unsigned char *)to)+64; + } + + // Pure Assembly cuz gcc is a bit unpredictable ;) +@@ -297,8 +297,8 @@ static void * RENAME(fast_memcpy)(void * + MOVNTQ" %%mm6, 48(%1)\n" + MOVNTQ" %%mm7, 56(%1)\n" + :: "r" (from), "r" (to) : "memory"); +- ((const unsigned char *)from)+=64; +- ((unsigned char *)to)+=64; ++ from = ((const unsigned char *)from)+64; ++ to = ((unsigned char *)to)+64; + } + + #endif /* Have SSE */ +@@ -393,7 +393,7 @@ static void * RENAME(fast_memset)(void * + MOVNTQ" %%mm0, 112(%0)\n" + MOVNTQ" %%mm0, 120(%0)\n" + :: "r" (to) : "memory"); +- ((unsigned char *)to)+=128; ++ to = ((unsigned char *)to)+128; + } + #endif /* Have SSE */ + #ifdef HAVE_MMX2 |