PATCH: Add access restriction check for application registers (was Re: Is this a gas bug?)

H. J. Lu hjl@lucon.org
Thu May 27 15:38:00 GMT 2004


On Thu, May 27, 2004 at 09:44:09PM +0800, Jie Zhang wrote:
> On Thu, 2004-05-27 at 02:28, H. J. Lu wrote:
> > 
> > The patch is not corrrect. I am testing this patch now.
> > 
> 
> Yes, I agree. But then why not define ar_is_in_integer_unit (int reg) as
> following now: 
> 
> static int
> ar_is_in_integer_unit (int reg)
> {
>   reg -= REG_AR;
>   return reg >= 48 && reg <= 127;
> }

I tried it. Both old and new are correct. But this does change the
selection.  I don't want to change the testsuite because of it.


H.J.



More information about the Binutils mailing list