aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@libertysurf.fr>2006-02-07 21:50:37 +0100
committerEric Botcazou <ebotcazou@gcc.gnu.org>2006-02-07 20:50:37 +0000
commitf5e2061b4576b23ffa446c5b11344edb4dc56ac7 (patch)
treeb96282e6a5e9e612485b3412fae97a6ab998b9e0
parent7931b1be5085e60b308a7d6c4d7e26c6ab9bc1ef (diff)
downloadgcc-f5e2061b4576b23ffa446c5b11344edb4dc56ac7.zip
gcc-f5e2061b4576b23ffa446c5b11344edb4dc56ac7.tar.gz
gcc-f5e2061b4576b23ffa446c5b11344edb4dc56ac7.tar.bz2
sol26.h (CPP_SUBTARGET_SPEC): Accept -pthread.
* config/sol26.h (CPP_SUBTARGET_SPEC): Accept -pthread. * config/sol2.h (CPP_SUBTARGET_SPEC): Likewise. (LIB_SPEC): Likewise. * doc/invoke.texi (SPARC options): Document -pthread. From-SVN: r110717
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/sol2.h8
-rw-r--r--gcc/config/sol26.h4
-rw-r--r--gcc/doc/invoke.texi6
4 files changed, 18 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 71da549..da642fa 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
+
+ * config/sol26.h (CPP_SUBTARGET_SPEC): Accept -pthread.
+ * config/sol2.h (CPP_SUBTARGET_SPEC): Likewise.
+ (LIB_SPEC): Likewise.
+ * doc/invoke.texi (SPARC options): Document -pthread.
+
2006-02-07 Geoffrey Keating <geoffk@apple.com>
* config/i386/i386.c (ix86_delegitimize_address): Support Darwin
diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h
index 51f9bd8..5ffaf57 100644
--- a/gcc/config/sol2.h
+++ b/gcc/config/sol2.h
@@ -47,8 +47,8 @@ Boston, MA 02110-1301, USA. */
#undef CPP_SUBTARGET_SPEC
#define CPP_SUBTARGET_SPEC "\
-%{pthreads:-D_REENTRANT -D_PTHREADS} \
-%{!pthreads:%{threads:-D_REENTRANT -D_SOLARIS_THREADS}} \
+%{pthreads|pthread:-D_REENTRANT -D_PTHREADS} \
+%{!pthreads:%{!pthread:%{threads:-D_REENTRANT -D_SOLARIS_THREADS}}} \
%{compat-bsd:-iwithprefixbefore ucbinclude -I/usr/ucbinclude} \
"
@@ -93,8 +93,8 @@ Boston, MA 02110-1301, USA. */
"%{compat-bsd:-lucb -lsocket -lnsl -lelf -laio} \
%{!shared:\
%{!symbolic:\
- %{pthreads:-lpthread} \
- %{!pthreads:%{threads:-lthread}} \
+ %{pthreads|pthread:-lpthread} \
+ %{!pthreads:%{!pthread:%{threads:-lthread}}} \
%{p|pg:-ldl} -lc}}"
#undef ENDFILE_SPEC
diff --git a/gcc/config/sol26.h b/gcc/config/sol26.h
index 5d92033..d5b7dda 100644
--- a/gcc/config/sol26.h
+++ b/gcc/config/sol26.h
@@ -21,7 +21,7 @@ Boston, MA 02110-1301, USA. */
#undef CPP_SUBTARGET_SPEC
#define CPP_SUBTARGET_SPEC "\
-%{pthreads:-D_REENTRANT -D_PTHREADS95} \
-%{!pthreads:%{threads:-D_REENTRANT -D_SOLARIS_THREADS}} \
+%{pthreads|pthread:-D_REENTRANT -D_PTHREADS95} \
+%{!pthreads:%{!pthread:%{threads:-D_REENTRANT -D_SOLARIS_THREADS}}} \
%{compat-bsd:-iwithprefixbefore ucbinclude -I/usr/ucbinclude} \
"
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index f9b65f8..d68e94d 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -708,7 +708,7 @@ See RS/6000 and PowerPC Options.
-mstack-bias -mno-stack-bias @gol
-munaligned-doubles -mno-unaligned-doubles @gol
-mv8plus -mno-v8plus -mvis -mno-vis
--threads -pthreads}
+-threads -pthreads -pthread}
@emph{System V Options}
@gccoptlist{-Qy -Qn -YP,@var{paths} -Ym,@var{dir}}
@@ -12397,6 +12397,10 @@ Add support for multithreading using the POSIX threads library. This
option sets flags for both the preprocessor and linker. This option does
not affect the thread safety of object code produced by the compiler or
that of libraries supplied with it.
+
+@item -pthread
+@opindex pthread
+This is a synonym for @option{-pthreads}.
@end table
@node System V Options