pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/48252: x11/rxvt-unicode invalid assembly macro for sparc
The following reply was made to PR pkg/48252; it has been noted by GNATS.
From: "John D. Baker" <jdbaker%mylinuxisp.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/48252: x11/rxvt-unicode invalid assembly macro for sparc
Date: Mon, 30 Sep 2013 09:47:47 -0500 (CDT)
Changing the affected conditionals to "__sparc_v9" and "__sparc_v9__"
respectively, allows build to succeed on NetBSD/sparc-6.1_STABLE.
I do not currently have a sparc64 system set up, so I cannot test whether
the change does the right thing for that platform.
--- libev/ev.c.orig 2013-09-29 14:52:28.000000000 -0500
+++ libev/ev.c 2013-09-29 14:53:15.000000000 -0500
@@ -622,7 +622,7 @@
#elif defined __ARM_ARCH_7__ || defined __ARM_ARCH_7A__ \
|| defined __ARM_ARCH_7M__ || defined __ARM_ARCH_7R__
#define ECB_MEMORY_FENCE __asm__ __volatile__ ("dmb" : :
: "memory")
- #elif __sparc || __sparc__
+ #elif __sparc_v9 || __sparc_v9__
#define ECB_MEMORY_FENCE __asm__ __volatile__ ("membar
#LoadStore | #LoadLoad | #StoreStore | #StoreLoad" : : : "memory")
#define ECB_MEMORY_FENCE_ACQUIRE __asm__ __volatile__ ("membar
#LoadStore | #LoadLoad" : : : "memory")
#define ECB_MEMORY_FENCE_RELEASE __asm__ __volatile__ ("membar
#LoadStore | #StoreStore")
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
Home |
Main Index |
Thread Index |
Old Index