Commit f5e2061b by Eric Botcazou Committed by Eric Botcazou

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
parent 7931b1be
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> 2006-02-07 Geoffrey Keating <geoffk@apple.com>
* config/i386/i386.c (ix86_delegitimize_address): Support Darwin * config/i386/i386.c (ix86_delegitimize_address): Support Darwin
......
...@@ -47,8 +47,8 @@ Boston, MA 02110-1301, USA. */ ...@@ -47,8 +47,8 @@ Boston, MA 02110-1301, USA. */
#undef CPP_SUBTARGET_SPEC #undef CPP_SUBTARGET_SPEC
#define CPP_SUBTARGET_SPEC "\ #define CPP_SUBTARGET_SPEC "\
%{pthreads:-D_REENTRANT -D_PTHREADS} \ %{pthreads|pthread:-D_REENTRANT -D_PTHREADS} \
%{!pthreads:%{threads:-D_REENTRANT -D_SOLARIS_THREADS}} \ %{!pthreads:%{!pthread:%{threads:-D_REENTRANT -D_SOLARIS_THREADS}}} \
%{compat-bsd:-iwithprefixbefore ucbinclude -I/usr/ucbinclude} \ %{compat-bsd:-iwithprefixbefore ucbinclude -I/usr/ucbinclude} \
" "
...@@ -93,8 +93,8 @@ Boston, MA 02110-1301, USA. */ ...@@ -93,8 +93,8 @@ Boston, MA 02110-1301, USA. */
"%{compat-bsd:-lucb -lsocket -lnsl -lelf -laio} \ "%{compat-bsd:-lucb -lsocket -lnsl -lelf -laio} \
%{!shared:\ %{!shared:\
%{!symbolic:\ %{!symbolic:\
%{pthreads:-lpthread} \ %{pthreads|pthread:-lpthread} \
%{!pthreads:%{threads:-lthread}} \ %{!pthreads:%{!pthread:%{threads:-lthread}}} \
%{p|pg:-ldl} -lc}}" %{p|pg:-ldl} -lc}}"
#undef ENDFILE_SPEC #undef ENDFILE_SPEC
......
...@@ -21,7 +21,7 @@ Boston, MA 02110-1301, USA. */ ...@@ -21,7 +21,7 @@ Boston, MA 02110-1301, USA. */
#undef CPP_SUBTARGET_SPEC #undef CPP_SUBTARGET_SPEC
#define CPP_SUBTARGET_SPEC "\ #define CPP_SUBTARGET_SPEC "\
%{pthreads:-D_REENTRANT -D_PTHREADS95} \ %{pthreads|pthread:-D_REENTRANT -D_PTHREADS95} \
%{!pthreads:%{threads:-D_REENTRANT -D_SOLARIS_THREADS}} \ %{!pthreads:%{!pthread:%{threads:-D_REENTRANT -D_SOLARIS_THREADS}}} \
%{compat-bsd:-iwithprefixbefore ucbinclude -I/usr/ucbinclude} \ %{compat-bsd:-iwithprefixbefore ucbinclude -I/usr/ucbinclude} \
" "
...@@ -708,7 +708,7 @@ See RS/6000 and PowerPC Options. ...@@ -708,7 +708,7 @@ See RS/6000 and PowerPC Options.
-mstack-bias -mno-stack-bias @gol -mstack-bias -mno-stack-bias @gol
-munaligned-doubles -mno-unaligned-doubles @gol -munaligned-doubles -mno-unaligned-doubles @gol
-mv8plus -mno-v8plus -mvis -mno-vis -mv8plus -mno-v8plus -mvis -mno-vis
-threads -pthreads} -threads -pthreads -pthread}
@emph{System V Options} @emph{System V Options}
@gccoptlist{-Qy -Qn -YP,@var{paths} -Ym,@var{dir}} @gccoptlist{-Qy -Qn -YP,@var{paths} -Ym,@var{dir}}
...@@ -12397,6 +12397,10 @@ Add support for multithreading using the POSIX threads library. This ...@@ -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 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 not affect the thread safety of object code produced by the compiler or
that of libraries supplied with it. that of libraries supplied with it.
@item -pthread
@opindex pthread
This is a synonym for @option{-pthreads}.
@end table @end table
@node System V Options @node System V Options
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment