From cee68eb12f67394f89388b9acffc550a01f15428 Mon Sep 17 00:00:00 2001 From: jason Date: Wed, 13 Mar 2002 17:15:46 +0000 Subject: * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr into the function and constify it. * gthr-dce.h, gthr-solaris.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50741 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/gthr-dce.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/gthr-dce.h') 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; } -- cgit v1.2.1