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]
Other format: [Raw text]

Re: at exit alternative for AIX


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.


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