This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Add CONSTRUCTOR case to loc_descriptor_from_tree in dwarf2out.c
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: rth at redhat dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 31 Jul 03 19:25:27 EDT
- Subject: Re: Add CONSTRUCTOR case to loc_descriptor_from_tree in dwarf2out.c
Well, you add a new varasm function that looks at the hash table
but *doesn't* write data. Seems easy enough.
Sure, but is it worth it for just that case? Remember that if we do that, we
have to return 0, which will cause the Dwarf writer to say it can't figure
out the location. Plus, it's hard to see how the location or position of
something can depend on a CONSTRUCTOR that was never used. And the case of a
CONSTRUCTOR is very rare anyway. Finally, it's the data segment, not the
code segment.