summaryrefslogtreecommitdiff
path: root/gcc/config/sol26.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/config/sol26.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/config/sol26.h')
-rw-r--r--gcc/config/sol26.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/gcc/config/sol26.h b/gcc/config/sol26.h
new file mode 100644
index 00000000000..2c34cb2c352
--- /dev/null
+++ b/gcc/config/sol26.h
@@ -0,0 +1,27 @@
+/* Operating system specific defines to be used when targeting GCC for any
+ Solaris 2 system up to Solaris 2.6.
+ Copyright 2004 Free Software Foundation, Inc.
+
+This file is part of GCC.
+
+GCC is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GCC is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; see the file COPYING. If not, write to
+the Free Software Foundation, 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA. */
+
+#undef CPP_SUBTARGET_SPEC
+#define CPP_SUBTARGET_SPEC "\
+%{pthreads:-D_REENTRANT -D_PTHREADS95} \
+%{!pthreads:%{threads:-D_REENTRANT -D_SOLARIS_THREADS}} \
+%{compat-bsd:-iwithprefixbefore ucbinclude -I/usr/ucbinclude} \
+"