diff options
author | Loren J. Rittle <ljrittle@acm.org> | 2001-05-30 22:38:43 +0000 |
---|---|---|
committer | Loren J. Rittle <ljrittle@gcc.gnu.org> | 2001-05-30 22:38:43 +0000 |
commit | f5fa23843eb971689d7d9e62fa879c98e038ffc6 (patch) | |
tree | c3eae3462fa788da0370dbeaf1b5838304c92fe2 | |
parent | 462b73969e020210f9a13e63045095af8788fb6a (diff) | |
download | gcc-f5fa23843eb971689d7d9e62fa879c98e038ffc6.zip gcc-f5fa23843eb971689d7d9e62fa879c98e038ffc6.tar.gz gcc-f5fa23843eb971689d7d9e62fa879c98e038ffc6.tar.bz2 |
gthr-posix.h (__gthread_active_ptr): Cast function pointer to target type to allow ISO C++ compiler to accept it.
* gthr-posix.h (__gthread_active_ptr): Cast function pointer
to target type to allow ISO C++ compiler to accept it.
* gthr-dce.h (__gthread_active_ptr): Likewise.
* gthr-solaris.h (__gthread_active_ptr): Likewise.
Co-Authored-By: John David Anglin <dave@hiauly1.hia.nrc.ca>
From-SVN: r42725
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/gthr-dce.h | 2 | ||||
-rw-r--r-- | gcc/gthr-posix.h | 2 | ||||
-rw-r--r-- | gcc/gthr-solaris.h | 2 |
4 files changed, 11 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 30e91df..464d625 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2001-05-30 Loren J. Rittle <ljrittle@acm.org> + John David Anglin <dave@hiauly1.hia.nrc.ca> + + * gthr-posix.h (__gthread_active_ptr): Cast function pointer + to target type to allow ISO C++ compiler to accept it. + * gthr-dce.h (__gthread_active_ptr): Likewise. + * gthr-solaris.h (__gthread_active_ptr): Likewise. + 2001-05-30 Neil Booth <neil@daikokuya.demon.co.uk> * cpplex.c (_cpp_lex_token): Revert patch of 16 May 2001 diff --git a/gcc/gthr-dce.h b/gcc/gthr-dce.h index ce77bf1..96660a3 100644 --- a/gcc/gthr-dce.h +++ b/gcc/gthr-dce.h @@ -79,7 +79,7 @@ typedef pthread_mutex_t __gthread_mutex_t; #pragma weak pthread_yield #endif -static void *__gthread_active_ptr = &pthread_create; +static void *__gthread_active_ptr = (void *) &pthread_create; static inline int __gthread_active_p (void) diff --git a/gcc/gthr-posix.h b/gcc/gthr-posix.h index 7ffb0a0..b5a4637 100644 --- a/gcc/gthr-posix.h +++ b/gcc/gthr-posix.h @@ -75,7 +75,7 @@ typedef pthread_mutex_t __gthread_mutex_t; #pragma weak pthread_setschedparam #endif -static void *__gthread_active_ptr = &pthread_create; +static void *__gthread_active_ptr = (void *) &pthread_create; static inline int __gthread_active_p (void) diff --git a/gcc/gthr-solaris.h b/gcc/gthr-solaris.h index 1499610..6955753 100644 --- a/gcc/gthr-solaris.h +++ b/gcc/gthr-solaris.h @@ -81,7 +81,7 @@ 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 = &thr_create; +static void *__gthread_active_ptr = (void *) &thr_create; static inline int __gthread_active_p (void) |