population of libstdc++-v3/libsupc++/fundamental_type_info.o
Jonathan Wakely
jwakely.gcc@gmail.com
Wed Jun 19 08:30:00 GMT 2013
On 19 June 2013 08:03, Korisk wrote:
> Hello!
> File fundamental_type_info.o comprises symbols of typeinfo for fundamental types (typeinfo of int, typeinfo of char ... etc).
> Source file (libstdc++-v3/libsupc++/fundamental_type_info.cc) contains a small piece of code:
> #include "tinfo.h"
> namespace __cxxabiv1 {
> __fundamental_type_info::
> ~__fundamental_type_info ()
> {}
> }
> Compilation command for the source file doesn´t contain any unusual options.
>
> So the question:
> How fundamental_type_info.o is populated with symbols? Any hints or suggestions would be helpful.
The compiler front-end performs some magic when it sees the definition
of that type's destructor, see emit_support_tinfos in cp/rtti.c
More information about the Libstdc++
mailing list