This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] make LABEL_DECL has its own rtx field for its associated CODE_LABEL
- From: Nathan Froyd <froydnj at codesourcery dot com>
- To: Steven Bosscher <stevenb dot gcc at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 4 Apr 2011 09:00:38 -0700
- Subject: Re: [PATCH] make LABEL_DECL has its own rtx field for its associated CODE_LABEL
- References: <BANLkTimbxEN_sso=NKdB8A18t8Qtp2QOQQ@mail.gmail.com>
On Mon, Apr 04, 2011 at 05:52:00PM +0200, Steven Bosscher wrote:
> Have you looked into maybe putting the CODE_LABEL for a LABEL_DECL in
> an on-the-side structure (hash table, whatever)? It looks like it is
> only used during expansion of SWITCH statements.
I haven't, though it'd be easy enough once all accesses go through
label_rtx. I'd be equally happy doing that instead of pushing DECL_RTX
down.
-Nathan