gthr-posix.h (__gthread_objc_init_thread_system): If pthread_key_create fails, it...
authorNicola Pero <nicola@brainstorm.co.uk>
Sat, 9 Jun 2001 18:06:54 +0000 (18:06 +0000)
committerOvidiu Predescu <ovidiu@gcc.gnu.org>
Sat, 9 Jun 2001 18:06:54 +0000 (18:06 +0000)
2001-06-09  Nicola Pero <nicola@brainstorm.co.uk>

* gthr-posix.h (__gthread_objc_init_thread_system): If
pthread_key_create fails, it's not clear what the return value is.
This obvious fix makes sure it always returns -1 if a problem
occurs.

From-SVN: r43092

gcc/ChangeLog

index 12f8649657ba5d4f856354b9fe440408be0d624b..71a20f8adcd6fe3ee217455d5b5644e1b554c1fb 100644 (file)
@@ -1,3 +1,10 @@
+2001-06-09  Nicola Pero <nicola@brainstorm.co.uk>
+
+       * gthr-posix.h (__gthread_objc_init_thread_system): If
+       pthread_key_create fails, it's not clear what the return value is.
+       This obvious fix makes sure it always returns -1 if a problem
+       occurs.
+
 2001-06-09  Joseph S. Myers  <jsm28@cam.ac.uk>
 
        * doc/gcc.texi: Use @defcodeindex for the index of options.  Add