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]

Re: GCC commandline option names for thread support


> 	It seems that -pthread is the GNU and open source operating system
> definition.  Should we bite the bullet and convert to that as part of
> gcc-3.0?  In other words, define -pthread (maybe -pthread* or -pthreads
> synonym) as the commandline option for thread support, document that
> option, and convert AIX, HP/UX, Lynx, Mingw32, and Solaris to use that
> option name?

It seems like a good idea to have a standard option when the library
being used is the Posix threads library. However, on some targets
(e.g. Solaris), you have two different libraries, so you need two
different options. Furthermore, on some targets, gcc would link a
thread library, but it won't be pthreads. I don't know how intuitive
it would be to call the option -pthread in this case; perhaps this is
what you meant with "bite the bullet"?

Regards,
Martin

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