This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
AUTOMATON_STATE_ALTS not used, yet takes 60KB of insn-attrtab.c
- From: Zack Weinberg <zack at codesourcery dot com>
- To: gcc at gcc dot gnu dot org, Vladimir Makarov <vmakarov at redhat dot com>
- Date: Sun, 19 Jan 2003 15:41:31 -0800
- Subject: AUTOMATON_STATE_ALTS not used, yet takes 60KB of insn-attrtab.c
As far as I can tell, the code in insn-attrtab.c controlled by #if
AUTOMATON_STATE_ALTS is used nowhere. To be more precise, I can find
no circumstance under which that macro is defined with value 1, in CVS
mainline.
Having a facility which is not currently used is no big deal.
However, the process of generating this unused code creates the
derived attribute function insn_alts() as a side effect. This
function is not used either, but it is *not* wrapped in #if -- and
it takes up 64129 bytes of space in insn-attrtab.o.
I am tempted to take a chainsaw to all the AUTOMATON_STATE_ALTS code.
However, I can be persuaded to just figure out a way to put
insn_alts() under #if too. Do you plan to have AUTOMATON_STATE_ALTS
be used for anything - even on just one platform - in GCC 3.4?
zw