This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix sibcall related failure in g++.old-deja/g++.other/eh1.C
- To: Jakub Jelinek <jakub at redhat dot com>
- Subject: Re: [PATCH] Fix sibcall related failure in g++.old-deja/g++.other/eh1.C
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Wed, 21 Jun 2000 11:30:55 -0600
- cc: Nathan Sidwell <nathan at codesourcery dot com>, Mark Mitchell <mark at codesourcery dot com>, rth at cygnus dot com, gcc-patches at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <20000616184049.W474@sunsite.ms.mff.cuni.cz>you write:
> > FWIW, I'd have written it as,
> > if (insn)
> > {
> > tree probe;
> >
> > while ((probe = NEXT_INSN (insn)))
> > insn = probe;
> > set_last_insn (insn);
> > }
> >
> > Which, I find clearer. (maybe a != NULL_TREE should be put in there
> > for good measure too ...
>
> I wanted to optimize for the common case (ie. insn != NULL_RTX, NEXT_INSN
> (insn) == NULL_RTX) and avoid calling set_last_insn in that case.
> But I'm of course open to changing it to be more readable.
Given the initial confusion about the code, I think it is worth trying
to make it more readable.
In general, if people have to ask questions about the code, then the code
either needs to be rewritten or needs additional comments to make the
author's intent clearer.
Jeff