This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFA] gcj PR debug/40990
Andrew Haley wrote:
> Dodji Seketeli wrote:
>> I noticed that gcj was emitting some "unnamed" methods for the class
>> java.lang.String. I am not sure what those methods are. Maybe the
>> contructors ? I am talking about the methods represented the DIE 0x88, for
>> instance. In any case, before this patch, gcj was emitting the string "()"
>> as method name, in the .debug_pubnames section. Now with the patch, it just
>> emits an empty string. This is weird, but I think the patch doesn't make
>> the situation worse.
>
> I don't know. I'll have a look.
It's quite explicit:
if (! DECL_CONSTRUCTOR_P (node))
put_decl_node (DECL_NAME (node));
So, constructors don't have names. What does C++ do for constructors?
Andrew.