This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
MT-safe exception and thread library
- To: egcs at cygnus dot com
- Subject: MT-safe exception and thread library
- From: Teemu Torma <tot at trema dot com>
- Date: Wed, 17 Dec 1997 13:48:26 +0100
- Organization: Trema Laboratories SARL
- Reply-To: egcs at cygnus dot com
From: Jason Merrill <jason@cygnus.com>
Date: 17 Dec 1997 02:52:12 -0800
One more thing: the flag. How about -fthreads instead of -threads?
And what if there are multiple thread libraries? There are, at
least in Solaris 2.5.
Personally I would prefer the flag to define all necessary pre-processor symbols and link against right libraries. So -pthreads (or whatever
the name would be) would do the right thing in all platforms to use
pthread library. Similiary, -threads would do the same thing with
a platform-specific threads library. I don't know if there are
any other standards that would deserve an own flag.
Just some random thoughts.
Teemu