summaryrefslogtreecommitdiff
path: root/gcc/gthr-dce.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gthr-dce.h')
-rw-r--r--gcc/gthr-dce.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gthr-dce.h b/gcc/gthr-dce.h
index 517f5a30443..fe4bba769d9 100644
--- a/gcc/gthr-dce.h
+++ b/gcc/gthr-dce.h
@@ -64,7 +64,7 @@ typedef pthread_mutex_t __gthread_recursive_mutex_t;
#if SUPPORTS_WEAK && GTHREAD_USE_WEAK
# define __gthrw(name) \
- extern __typeof(name) __gthrw_ ## name __attribute__ ((__weakref__(#name)))
+ static __typeof(name) __gthrw_ ## name __attribute__ ((__weakref__(#name)))
#else
# define __gthrw_asmname(cname) __gthrw_asmnamep (__USER_LABEL_PREFIX__, cname)
# define __gthrw_asmnamep(prefix, cname) __gthrw_string (prefix) cname