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]

Solaris -pthreads specs ?


I see in the specs file for gcc 2.95.2 and 3.0 that when given the
-pthreads flag, -D_REENTRANT is defined.  It is also defined when given
the -threads flag for Solaris threads.

According to my documentation in the Solaris AnswerBook, -D_REENTRANT
means that Solaris threads semantics prevail over posix thread
symantics.  This seems like the wrong thing to do when given -pthreads.

Would it not be better to define -D_POSIX_C_SOURCE=199506L like the
AnswerBook suggests to have posix sematics prevail?

--
Brian Ford
Software Engineer
Vital Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444


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