summaryrefslogtreecommitdiff
path: root/gcc/gthr.h
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@libertysurf.fr>2004-11-22 23:26:11 +0100
committerEric Botcazou <ebotcazou@gcc.gnu.org>2004-11-22 22:26:11 +0000
commit181674429bc9e230b405b98694ab423c8bdb42eb (patch)
tree429455b0553bb86246e8d7679840ae2346140ce4 /gcc/gthr.h
parent515a17919798a2c9597b2cf02660b9b07afd3fc4 (diff)
downloadgcc-181674429bc9e230b405b98694ab423c8bdb42eb.tar.gz
re PR target/18444 (Multithreading broken on Unix95-class platforms)
PR target/18444 * configure.ac (threading): Accept 'posix95'. * configure: Regenerate. * config.gcc (i[34567]86-*-solaris2*): On Solaris up to 2.6, include sol26.h and default to posix95 threads if have_pthread_h. (sparc-*-solaris2*): Likewise. * gthr.h: Include gthr-posix95.h if _PTHREADS95 is defined. * gthr-posix95.h: New file. * config/sol26.h: New file. * doc/install.texi (--enable-threads): Document 'posix95'. From-SVN: r91041
Diffstat (limited to 'gcc/gthr.h')
-rw-r--r--gcc/gthr.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/gthr.h b/gcc/gthr.h
index 42f58c9dff6..70345a57c6a 100644
--- a/gcc/gthr.h
+++ b/gcc/gthr.h
@@ -83,7 +83,9 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
number. If the operation is not supported, -1 is returned.
Currently supported threads packages are
- POSIX threads with -D_PTHREADS
+ TPF threads with -D__tpf__
+ POSIX/Unix98 threads with -D_PTHREADS
+ POSIX/Unix95 threads with -D_PTHREADS95
DCE threads with -D_DCE_THREADS
Solaris/UI threads with -D_SOLARIS_THREADS
*/
@@ -93,6 +95,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "gthr-tpf.h"
#elif _PTHREADS
#include "gthr-posix.h"
+#elif _PTHREADS95
+#include "gthr-posix95.h"
#elif _DCE_THREADS
#include "gthr-dce.h"
#elif _SOLARIS_THREADS