From acc6151f4a91aff299533fb260ef0a67478e09cc Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 25 Jan 2013 23:43:23 +0000 Subject: [PATCH] re PR other/56076 (Several 64-bit libgo tests FAIL in read_line_header) PR other/56076 runtime: Support sparc64 in lfstack. From-SVN: r195479 --- libgo/runtime/lfstack.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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)<