at exit alternative for AIX

Jonathan Wakely jwakely.gcc@gmail.com
Tue Aug 21 08:28:00 GMT 2012


On 21 August 2012 00:55, Perry Smith wrote:
>
>  I have added __cxa_atexit and __cxa_finalize in the libstdc++ library instead of the libgcc library because it is only used by g++ and not gcc.

That doesn't sound right, not all C++ programs link to libstdc++ and
not all C++ programs are compiled with g++.

gcc and g++ are both simply drivers that invoke the actually compiler
(cc1 for C and cc1plus for C++) so you can use either driver for C++
code, allowing the driver to invoke the right compiler by inferring
the source language from the file extension or being told it with the
-x option.



More information about the Gcc mailing list