[superh-gnu-discuss] [PATCH] sh: Work around GCC bug in set_bl_bit()
Matt Fleming
matt at console-pimps.org
Sun Sep 26 19:51:50 UTC 2010
On Sun, Sep 26, 2010 at 12:48:02PM -0700, Mark Mitchell wrote:
> On 9/26/2010 4:08 AM, Matt Fleming wrote:
>
> > It seems that some versions of GCC do not handle negative constants in
> > inline assembly very well, specifically any negative constant less that
> > -129. Here is a reduced example of the problematic code,
>
> Matt, I've filed a report about this issue in our internal tracking
> system. Our team will review the GCC behavior.
Hi Mark,
I was just about to send a follow-up mail....
Someone pointed out to me that my diagnosis is incorrect as the mov.w
instruction sign-extends the value it loads from memory before storing
it in a register. So I'm now pretty certain that there's no GCC
bug. There's still a problem in the kernel, but that's clearly not
Codesourcery's department ;-) So, sorry for the noise.
Thanks for the quick reply!
More information about the superh-gnu-discuss
mailing list