[PATCH] Fix sparc TLS make check problem
Jakub Jelinek
jakub@redhat.com
Sun Feb 2 13:30:00 GMT 2003
Hi!
make check on sparc-*-linux* (as opposed to sparcv9-*-linux* where
everything passed) revealed a bug in tls-macros.
Fixed thusly:
2003-02-02 Jakub Jelinek <jakub@redhat.com>
* elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
--- libc/elf/tls-macros.h.jj Wed Jan 29 08:36:32 2003
+++ libc/elf/tls-macros.h Sun Feb 2 12:47:12 2003
@@ -347,7 +347,7 @@ register void *__gp __asm__("$29");
" nop" \
: "=r" (__o0) : "0" (__o0) \
: "g1", "g2", "g3", "g4", "g5", "g6", "o1", "o2", "o3", "o4", \
- "o5", "o7"); \
+ "o5", "o7", "cc"); \
asm ("sethi %%tldo_hix22(" #x "), %0" : "=r" (__o)); \
asm ("xor %1, %%tldo_lox10(" #x "), %0" : "=r" (__o) : "r" (__o)); \
asm ("add %1, %2, %0, %%tldo_add(" #x ")" : "=r" (__l) \
@@ -364,7 +364,7 @@ register void *__gp __asm__("$29");
" nop" \
: "=r" (__o0) : "0" (__o0) \
: "g1", "g2", "g3", "g4", "g5", "g6", "o1", "o2", "o3", "o4", \
- "o5", "o7"); \
+ "o5", "o7", "cc"); \
__o0; })
#elif defined __s390x__
Jakub
More information about the Libc-hacker
mailing list