aboutsummaryrefslogtreecommitdiff
path: root/gcc/gthr-dce.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gthr-dce.h')
-rw-r--r--gcc/gthr-dce.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/gthr-dce.h b/gcc/gthr-dce.h
index afefaca7329..957f2272924 100644
--- a/gcc/gthr-dce.h
+++ b/gcc/gthr-dce.h
@@ -87,11 +87,10 @@ typedef pthread_mutex_t __gthread_mutex_t;
#pragma weak pthread_yield
#endif
-static void *__gthread_active_ptr = (void *) &pthread_create;
-
static inline int
__gthread_active_p (void)
{
+ static void *const __gthread_active_ptr = (void *) &pthread_create;
return __gthread_active_ptr != 0;
}