gthr-posix.h (__gthread_active_ptr): Cast function pointer to target type to allow...
authorLoren J. Rittle <ljrittle@acm.org>
Wed, 30 May 2001 22:38:43 +0000 (22:38 +0000)
committerLoren J. Rittle <ljrittle@gcc.gnu.org>
Wed, 30 May 2001 22:38:43 +0000 (22:38 +0000)
* 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

gcc/ChangeLog
gcc/gthr-dce.h
gcc/gthr-posix.h
gcc/gthr-solaris.h

index 30e91df77a377756da5300dda1faaae093cf0f71..464d625744074928aa824603e060aaf9ad49384b 100644 (file)
@@ -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
index ce77bf12915e175aba863eca692acd1357ccd250..96660a334ef54cf0b475cc6f19ee2128c1518ccd 100644 (file)
@@ -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)
index 7ffb0a08f54ad5c704076df800d39f046905d981..b5a4637f592e216ad3da944f788297036da0419d 100644 (file)
@@ -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)
index 14996101824bd00c8a6cce6e7d79ec4d234936ae..6955753d782bd3c6177af2bdbb19ac454fe945ae 100644 (file)
@@ -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)