MT-safe exception and thread library

Teemu Torma tot@trema.com
Wed Dec 17 04:48:00 GMT 1997


    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




More information about the Gcc mailing list