This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix SUBREG_BYTE bug in dbxout.c
On Fri, Aug 03, 2001 at 01:46:36PM -0700, Richard Henderson wrote:
> On Fri, Aug 03, 2001 at 08:24:26PM +0200, Jakub Jelinek wrote:
> > + regno = REGNO (alter_subreg (home));
> > }
> > - regno = REGNO (alter_subreg (home));
> > + else
> > + alter_subreg (home);
>
> I don't understand this logic. Particularly, calling alter_subreg and
> discarding the result. Wouldn't something like this make more sense?
The problem is that home can be SUBREG of some pseudo, not hard register.
Then alter_subreg will abort (well, subreg_hard_regno).
Jakub