summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/tls/tls-macros-riscv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/tls/tls-macros-riscv.h b/test/tls/tls-macros-riscv.h
index eddcfc0..b780b4f 100644
--- a/test/tls/tls-macros-riscv.h
+++ b/test/tls/tls-macros-riscv.h
@@ -17,6 +17,7 @@
#define TLS_GD(x) \
({ void *__result; \
+ extern void *__tls_get_addr (void *); \
asm ("la.tls.gd %0, " #x "\n\t" \
: "=r" (__result)); \
__tls_get_addr (__result); })