From 754d1a92e65d7a8fdfdc36e2b72e8abfdcf70f5b Mon Sep 17 00:00:00 2001
From: Teemu Torma <tot@trema.com>
Date: Wed, 11 Mar 1998 12:07:25 +0000
Subject: Patch from Teemu Torma to fix Solaris 2.6 EH failures.

	* gthr.h: Changed the comment about return values.
	* gthr-solaris.h (__gthread_once): Do not use errno; return the
	error number instead of -1.
	(__gthread_key_create): Any non-zero return value is an error.
	* libgcc2.c (eh_context_initialize): Check for non-zero return
	value from __gthread_once.
	Check that the value of get_eh_context was really changed.

From-SVN: r18480
---
 gcc/gthr.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'gcc/gthr.h')

diff --git a/gcc/gthr.h b/gcc/gthr.h
index 54ad6b0..9c53654 100644
--- a/gcc/gthr.h
+++ b/gcc/gthr.h
@@ -65,7 +65,8 @@ Boston, MA 02111-1307, USA.  */
      int __gthread_mutex_trylock (__gthread_mutex_t *mutex);
      int __gthread_mutex_unlock (__gthread_mutex_t *mutex);
 
-   All functions returning int should return 0 on success, -1 on error.
+   All functions returning int should return zero on success or the error
+   number.  If the operation is not supported, -1 is returned.
 
    Currently supported threads packages are
      POSIX threads with -D_PTHREADS
-- 
cgit v1.1