From 263d438231a3b46389373b0ea53d4a782106add7 Mon Sep 17 00:00:00 2001 From: ian Date: Fri, 25 Jan 2013 23:43:23 +0000 Subject: PR other/56076 runtime: Support sparc64 in lfstack. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195479 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgo/runtime/lfstack.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'libgo') diff --git a/libgo/runtime/lfstack.c b/libgo/runtime/lfstack.c index 0f8ea6ea6bc..783595abe7a 100644 --- a/libgo/runtime/lfstack.c +++ b/libgo/runtime/lfstack.c @@ -15,6 +15,15 @@ # define PTR_BITS 32 #endif #define PTR_MASK ((1ull<pushcnt++; - new = (uint64)(uintptr)node|(((uint64)node->pushcnt)<pushcnt&CNT_MASK)<next = (LFNode*)(uintptr)(old&PTR_MASK); @@ -50,7 +59,7 @@ runtime_lfstackpop(uint64 *head) node2 = runtime_atomicloadp(&node->next); new = 0; if(node2 != nil) - new = (uint64)(uintptr)node2|(((uint64)node2->pushcnt)<pushcnt&CNT_MASK)<