This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]