Hi Alexey,

the attached patch fixes at least 3 test suite errors for me.
tst-cancel20/21/4.
Tested with latest 2017.09 ARC binutils/gcc.

Okay to apply?

best regards
 Waldemar

>From 761b5a4fd0aa8327738223b00c72ff53e7ab171f Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <w...@openadk.org>
Date: Sun, 5 Nov 2017 10:50:31 +0100
Subject: [PATCH] arc: fix some thread cancelation problems

Following a recent ARC glibc commit
db1d4d56c71181703917e8c22516ada9fbff5879

Signed-off-by: Waldemar Brodkorb <w...@openadk.org>
---
 libc/sysdeps/linux/arc/bits/syscalls.h | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/libc/sysdeps/linux/arc/bits/syscalls.h b/libc/sysdeps/linux/arc/bits/syscalls.h
index 248ef7844..ab69cf6b3 100644
--- a/libc/sysdeps/linux/arc/bits/syscalls.h
+++ b/libc/sysdeps/linux/arc/bits/syscalls.h
@@ -45,14 +45,12 @@ extern int __syscall_error (int);
 
 #define ERRNO_ERRANDS(_sys_result)          \
         __asm__ volatile (                  \
-        "st.a blink, [sp, -4] \n\t"         \
         CALL_ERRNO_SETTER                   \
-        "ld.ab blink, [sp, 4] \n\t"         \
         :"+r" (_sys_result)                 \
         :                                   \
         :"r1","r2","r3","r4","r5","r6",     \
-         "r7","r8","r9","r10","r11","r12"   \
-        );
+         "r7","r8","r9","r10","r11","r12",  \
+	 "blink");
 
 #endif /* IS_IN_rtld */
 
-- 
2.11.0

_______________________________________________
devel mailing list
devel@uclibc-ng.org
https://mailman.uclibc-ng.org/cgi-bin/mailman/listinfo/devel

Reply via email to