This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: TREE_SYMBOL_REFERENCED, assemble_name, memory wastage
On Sat, Nov 18, 2000 at 09:15:12AM -0800, Richard Henderson wrote:
> On Fri, Nov 17, 2000 at 10:19:00PM -0800, Zack Weinberg wrote:
> > To put TREE_SYMBOL_REFERENCED in decls instead, we'd need to set it
> > way upstream, in tree->RTL conversion. And then we'd need to make all
> > the optimizers update it when they deleted dead code. This is not
> > happening.
>
> Have assemble_name put all the strings that it outputs into
> a hash table. TREE_SYMBOL_REFERENCED becomes the property
> of being in that data structure.
Good idea. Unfortunately it turns out there's several other flags
that are relevant on identifier nodes (at least TREE_ADDRESSABLE and
TREE_USED). I have to think about this some more.
zw