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]

MT-safe exception and thread library


    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



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