This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Make -pthread the generic Posix-threads option for gcc (was: Re:cc1plus errors)
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: Phil Edwards <phil at jaj dot com>
- Cc: "Nathan ." <snmptoddler at hotmail dot com>, <gcc at gcc dot gnu dot org>
- Date: Sat, 5 Oct 2002 00:32:44 -0400 (EDT)
- Subject: Make -pthread the generic Posix-threads option for gcc (was: Re:cc1plus errors)
On Fri, 4 Oct 2002, Phil Edwards wrote:
> On Fri, Oct 04, 2002 at 11:25:28PM -0400, Hans-Peter Nilsson wrote:
> > Maybe "-pthread" can be offered as a synonym to
> > "-pthreads" on Solaris for interoperability reasons?
>
> And on other systems it's -mthread, or it used to be. And some platforms
> know about multiple threading options.
>
> The goal of whoever "designed" the rat's nest of threading options seems
> to have been to make the spelling of the option(s) as close as possible
> to the equivalent option(s) of the native compiler. Thus the lack of
> consistency across platforms.
Well, GNU/Linux has no (more so) native compiler, and it has the
largest installed base (he says, blatantly ignoring to check up
on that), so I think offering "-pthread" as the generic gcc
option to enable Posix-threads would be useful. At least it'd
be more useful than throwing up ones hands ;-) at the maze of
phread-options all alike.
brgds, H-P