This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Regression test for thread safety?
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- To: phil at jaj dot com
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Mon, 15 Jul 2002 23:12:00 -0500 (CDT)
- Subject: Re: Regression test for thread safety?
- Organization: Networks and Infrastructure Lab (IL02/2240), Motorola Labs
- References: <3D31E45B.3010100@ixiacom.com>
> Something you should know if you haven't discovered it since your email:
> turning thread support on and off is only supported by the command-line flags
> like "-pthread" or "-mthreads" or whatever is appropriate for your platform.
> Preprocessor symbol hacks like _NOTHREADS were never documented and aren't
> really supported.
Phil, what you say about being undocumented is completely true for all
early GCC releases that included SGI STL. What you say about using
"-pthread" or "-mthreads" or whatever verses defining _NOTHREADS is
finally true in GCC 3.1 and beyond.
GCC 3.0.X still allowed a user to define _NOTHREADS. Dan was asking
about 3.0.2. There are known SMP bugs in that release. Due to my
fault, I don't think they were all ever fixed on the 3.0.X branch.
Regards,
Loren
--
Loren J. Rittle, Principal Staff Engineer, Motorola Labs (IL02/2240)
rittle@labs.mot.com, KeyID: 2048/ADCE34A5, FDC0292446937F2A240BC07D42763672