This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC commandline option names for thread support
- To: dje at watson dot ibm dot com
- Subject: Re: GCC commandline option names for thread support
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Thu, 1 Jun 2000 12:22:26 +0200
- CC: gcc at gcc dot gnu dot org
- References: <200005312220.SAA28198@mal-ach.watson.ibm.com>
> 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