Hi Sandra,
thanks for doing this.
> gcc/ChangeLog
> PR other/122243
> * doc/invoke.texi (Option Summary) <Solaris 2 Options>:
> Remove redundant negative option forms from list.
> (Solaris 2 Options): Index and list the negative forms here.
> Combine the two @table environments.
This is ok with one exception:
> @opindex pthreads
> @item -pthreads
> -This is a synonym for @option{-pthread}.
> +This is a synonym for the linker option @option{-pthread}.
> @end table
This is wrong: -pthreads isn't a linker option at all on Solaris.
Instead it causes two macros to be defined:
gcc/config/sol2.h:
%{pthreads|pthread:-D_REENTRANT -D_PTHREADS}"
Even those are no longer necessary: various man pages state,
e.g. tmpnam(3c):
Solaris 11.4.0 also removed the requirement to define _REENTRANT
before including the header to expose the tempnam_r definition.
In fact, they are no longer referenced in any system header.
The only possible caveat might be that user code uses either of them for
their own purposes.
Only on Linux and the BSDs does it cause linking with -lpthread, which
is unnecessary on Solaris since libpthread has been folded into libc.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University