This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: population of libstdc++-v3/libsupc++/fundamental_type_info.o


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


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