sol26.h (CPP_SUBTARGET_SPEC): Accept -pthread.
authorEric Botcazou <ebotcazou@libertysurf.fr>
Tue, 7 Feb 2006 20:50:37 +0000 (21:50 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 7 Feb 2006 20:50:37 +0000 (20:50 +0000)
* 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

gcc/ChangeLog
gcc/config/sol2.h
gcc/config/sol26.h
gcc/doc/invoke.texi

index 71da549d4bd5a5ba8149577afd438aa004cf7834..da642fadff14d958084d257bb801217eec0035ad 100644 (file)
@@ -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
index 51f9bd82e977e9974f981e1fade9ced7c0a85cf0..5ffaf575830c6ff3a489aa1486bb7ac601c3274c 100644 (file)
@@ -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
index 5d9203397123217703c0162c50b3dea99f66dc28..d5b7dda2a5febbb6bdf4ac71f624ac7e7ac7efeb 100644 (file)
@@ -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} \
 "
index f9b65f8fd25a94da31868a864f7828d74301cda9..d68e94d31e6d4984292d8bb6d6ddc0cad989cf43 100644 (file)
@@ -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