This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Remove LABEL_NEXTREF
- From: Steven Bosscher <stevenb dot gcc at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Bernd Schmidt <bernds_cb1 at t-online dot de>, Steven Bosscher <stevenb dot gcc at gmail dot com>
- Date: Sat, 11 Mar 2006 23:05:57 +0100
- Subject: Re: [PATCH] Remove LABEL_NEXTREF
- References: <200603111402.24572.steven@gcc.gnu.org> <4412CE6D.4010308@t-online.de>
On Saturday 11 March 2006 14:19, Bernd Schmidt wrote:
> Steven Bosscher wrote:
> > Hi,
> >
> > My recent patch to sh.c has made LABEL_NEXTREF unused. The patch
> > below removes it. Bootstrapped&tested on x86_64-linux and also
> > built&tested on sh-elf. OK?
>
> Seems to qualify as obvious.
Thanks.
> > Now that LABEL_REF has only a single field, I'm wondering, should
> > LABEL_REF be removed? Could things that now take a LABEL_REF as
> > an operand just refer to a CODE_LABEL instead?
>
> What about LABEL_REF_NONLOCAL_P?
I may be mistaken, but I think this is a property of the referenced
label, and not of the label reference. So I think we could use a
flag on the CODE_LABEL itself instead of on the LABEL_REF. I have
not thought enough about it yet to be sure.
Gr.
Steven