This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Advise needed on varasm.c constant recording bug
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: geoffk at redhat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 31 Dec 01 21:36:43 EST
- Subject: Re: Advise needed on varasm.c constant recording bug
If the types can still be referenced, they shouldn't be garbage
collected; if they're not garbage collected, the memory can't be
reused.
The point is that the type is not referenced by virtue of it being in
that descriptor: all that happens is the address of the type node is
compared. As I said, we could teach GC about the address buried in
there, but it isn't even always properly aligned, so that would be much
more trouble than it's worth.