Dumb question w.r.t. thread safety...

Nathan Myers ncm@nospam.cantrip.org
Sat Apr 1 00:00:00 GMT 2000


On Wed, Mar 15, 2000 at 12:57:29PM -0500, George T. Talbot wrote:
> ...In addition to hacking up basic_string<> to make it thread safe, would I
> also have to compile with -fnew-abi (Linux x86, GCC 2.95.2) for exceptions 
> to be thread-safe?  Isn't the old exception model not thread-safe?  I know
> -fnew-abi is not the default in 2.95.2 as I looked in the source.

I think this is correct.  Furthermore, the compiler itself (or at
least its support libraries) and all the other object files linked
with must also be built -fnew-abi.

Probably the right approach is to configure a gcc with -fnew-abi as
the default, and build everything with that compiler.

Note that until we get the compiler support we need to finish making
conforming C headers, we also need -fno-honor-std.  See DESIGN, section
17, for details.

Nathan Myers
ncm@cantrip.org



More information about the Libstdc++ mailing list