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
This commit is contained in:
Eric Botcazou 2006-02-07 21:50:37 +01:00 committed by Eric Botcazou
parent 7931b1be50
commit f5e2061b45
4 changed files with 18 additions and 7 deletions

View 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

View 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

View 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} \
"

View 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