[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200611121450.24859.bero@arklinux.org>
Date: Sun, 12 Nov 2006 14:50:24 +0100
From: Bernhard Rosenkraenzer <bero@...linux.org>
To: Avi Kivity <avi@...ranet.com>
Cc: linux-kernel@...r.kernel.org, akpm@...l.org
Subject: Re: 2.6.19-rc5-mm1 fails to compile with gcc 4.2
On Sunday, 12. November 2006 14:43, Avi Kivity wrote:
> 'sel' is a variable, so gcc can't provide it as an immediate operand.
> Specifying it as "rm" instead of "g" would have been better, but can't
> have any real influence.
Specifying it as "rm" instead of "g" does fix it -- patch attached.
> Well, for the code you posted in in the gcc bug, it probaby generated
> something like
>
> mov $0, %fs
>
> which is indeed invalid assembly. But the kvm miscompile is something
> else (running out of registers or something like that).
What am I overlooking? The code is the exact same (except I replaced "u16"
with "unsigned short" to avoid the #include), and produces the exact same
error message, and the fix is the same ("g" -> "rm").
View attachment "kvm_main-compilefix.patch" of type "text/x-diff" (425 bytes)
Powered by blists - more mailing lists