gcc 4.5.1 / as 2.20.51.0.11 miscompiling drivers/char/i8k.c ?
Jim
jim876@xs4all.nl
Tue Nov 9 17:45:00 GMT 2010
On 11/09/2010 02:57 PM, Andreas Schwab wrote:
> Andi Kleen <andi@firstfloor.org> writes:
>
>> @@ -142,7 +142,7 @@ static int i8k_smm(struct smm_regs *regs)
>> "lahf\n\t"
>> "shrl $8,%%eax\n\t"
>> "andl $1,%%eax\n"
>> - :"=a"(rc)
>> + :"=a"(rc), "=m" (*regs)
>
> I think this should be "+m".
>
> Andreas.
>
Just tested Andi's patch with Andreas' suggestion to make it +m,
i.e. like attached and can confirm it solves the issue.
Thanks guys,
Jim Bos
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: PATCH.i8k.c
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20101109/d01fe38b/attachment.c>
More information about the Gcc
mailing list