diff options
author | Jason Merrill <jason@redhat.com> | 2002-03-13 12:15:46 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2002-03-13 12:15:46 -0500 |
commit | 7a8de19b4c54f6920786b650892e3bd591b53f81 (patch) | |
tree | 128c72e469f0ec2bafd1f380a5bbd79a81facec7 /gcc/gthr-solaris.h | |
parent | 872c9284b0283df0058eff41316778a9b324b8b7 (diff) | |
download | gcc-7a8de19b4c54f6920786b650892e3bd591b53f81.tar.gz |
gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr into the function and constify it.
* gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
into the function and constify it.
* gthr-dce.h, gthr-solaris.h: Likewise.
From-SVN: r50741
Diffstat (limited to 'gcc/gthr-solaris.h')
-rw-r--r-- | gcc/gthr-solaris.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/gthr-solaris.h b/gcc/gthr-solaris.h index 291210d4e8c..6d7ff2538cd 100644 --- a/gcc/gthr-solaris.h +++ b/gcc/gthr-solaris.h @@ -81,11 +81,10 @@ typedef mutex_t __gthread_mutex_t; /* This will not actually work in Solaris 2.5, since libc contains dummy symbols of all thr_* routines. */ -static void *__gthread_active_ptr = (void *) &thr_create; - static inline int __gthread_active_p (void) { + static void *const __gthread_active_ptr = (void *) &thr_create; return __gthread_active_ptr != 0; } |