This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: population of libstdc++-v3/libsupc++/fundamental_type_info.o
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Korisk <korisk at yandex dot ru>
- Cc: "libstdc++" <libstdc++ at gcc dot gnu dot org>
- Date: Wed, 19 Jun 2013 09:30:40 +0100
- Subject: Re: population of libstdc++-v3/libsupc++/fundamental_type_info.o
- References: <470961371625431 at web13h dot yandex dot ru>
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