This is the mail archive of the gcc-patches@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: [tree-ssa mudflap] more C++ support


Hi -

jason wrote:

> > +	/* The gcc/cp decl_printable_name hook doesn't do as good a job as
> > +	   the libiberty demangler.  */
> 
> How so?

The example I came across was a virtual function table being
__mf_register'd during static initialization.  Its symbol
was _Z...blah, which demangled/c++filt'd to "vtable for foo::bar",
but decl_printable_name'd to "void (*foo::bar::__Z...blah)[3] (...)".
The latter was approximately a declaration of an equivalent type of
a virtual function table.

- FChE


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