This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/2606
- To: gcc-gnats at gcc dot gnu dot org, pavenis at latnet dot lv, gcc-bugs at gcc dot gnu dot org
- Subject: Re: c++/2606
- From: "Mark E." <snowball3 at softhome dot net>
- Date: Mon, 23 Apr 2001 14:26:19 -0400
Andris,
I have this problem too. The following patch allowed libstdc++ to build,
but I don't know if it's the right solution or not. If it is, I can submit
it to gcc-patches.
Before the patch, what appears to be the virtual table pointer is output
as:
.def __vptr$basic_ios<char,std::char_traits<char> >; .val 0; .scl 8; .type
01124; .endef
After the patch, the output is:
.def _$vf; .val 0; .scl 8; .type 01124; .endef
Also, I notice the .type directive is different from 2.953. I don't know
if that's a bug or not.
Index: sdbout.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/sdbout.c,v
retrieving revision 1.42
diff -c -p -r1.42 sdbout.c
*** sdbout.c 2001/04/03 15:05:29 1.42
--- sdbout.c 2001/04/23 18:07:00
*************** sdbout_one_type (type)
*** 1225,1231 ****
const char *name;
CONTIN;
! name = IDENTIFIER_POINTER (DECL_NAME (tem));
PUT_SDB_DEF (name);
if (DECL_BIT_FIELD_TYPE (tem))
{
--- 1225,1234 ----
const char *name;
CONTIN;
! if (DECL_ASSEMBLER_NAME_SET_P (tem))
! name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (tem));
! else
! name = IDENTIFIER_POINTER (DECL_NAME (tem));
PUT_SDB_DEF (name);
if (DECL_BIT_FIELD_TYPE (tem))
{