This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


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