--enable-__cxa_atexit

Scott Robert Ladd scott@coyotegulch.com
Tue Feb 11 19:10:00 GMT 2003


Mark Mitchell wrote
> It's not required for ABI conformance -- but it is required to get a
> correct C++ compiler, if you're concerned about the exact order of static
> destructors.

Wonderful! I appreciate the answer.

I had, by the way, dug into the compiler source code finally to figure out
exactly what __cxa_atexit actually *did*. I'm curious as to why this is not
the default option, and why it is listed in the documentation as a
requirement for ABI conformance when it is, in fact, related to C++
correctness.

..Scott



More information about the Gcc mailing list