This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]