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: Fri, 18 Mar 2016 21:22:22 -0500 (CDT)

 As of rxvt-unicode 9.22, the symbol definition test has been changed,
 but is still inadequate for plain sparc w/o "-mcpu=v8".  As such, the
 revised patch is as follows:
 
 +--- libev/ev.c.orig	2015-12-20 15:12:53.000000000 -0600
 ++++ libev/ev.c	2016-03-18 21:08:43.000000000 -0500
 +@@ -681,7 +681,7 @@ struct signalfd_siginfo
 +       #define ECB_MEMORY_FENCE         __asm__ __volatile__ ("dmb"      : : : "memory")
 +     #elif __aarch64__
 +       #define ECB_MEMORY_FENCE         __asm__ __volatile__ ("dmb ish"  : : : "memory")
 +-    #elif (__sparc || __sparc__) && !(__sparc_v8__ || defined __sparcv8)
 ++    #elif (__sparc || __sparc__) && (__sparcv9 || __sparcv9__ || __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