From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DP113-0000l6-9B for qemu-devel@nongnu.org; Fri, 22 Apr 2005 12:28:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DP111-0000ju-Cm for qemu-devel@nongnu.org; Fri, 22 Apr 2005 12:28:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DP111-0008CM-1h for qemu-devel@nongnu.org; Fri, 22 Apr 2005 12:28:27 -0400 Received: from [213.131.232.117] (helo=mail4.srv.syswebcom.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DP0zV-0000Q9-J2 for qemu-devel@nongnu.org; Fri, 22 Apr 2005 12:26:53 -0400 Received: from localhost (localhost [127.0.0.1]) by mail4.srv.syswebcom.net (Postfix) with ESMTP id CE2EB289952 for ; Fri, 22 Apr 2005 18:24:33 +0200 (CEST) Received: from mail4.srv.syswebcom.net ([127.0.0.1]) by localhost (mail4 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17811-06 for ; Fri, 22 Apr 2005 18:24:33 +0200 (CEST) Received: from smirftschs.home.tld (p54A93231.dip.t-dialin.net [84.169.50.49]) by mail4.srv.syswebcom.net (Postfix) with ESMTP id 95B8C289958 for ; Fri, 22 Apr 2005 18:24:32 +0200 (CEST) Date: Fri, 22 Apr 2005 18:30:19 +0200 From: "developer@isl-gbr.de" Subject: Re: [Qemu-devel] X86_64 (AMD64) build segfaults Message-ID: <20050422183019.228a8cfd@smirftschs.home.tld> In-Reply-To: <8737c432399be6c4c8b349c300916cd8@elis.ugent.be> References: <20050421163413.37378212@smirftschs.home.tld> <200504211542.19046.paul@codesourcery.com> <20050421165923.0f4f1185@smirftschs.home.tld> <200504211601.52827.paul@codesourcery.com> <20050422165042.6da168de@smirftschs.home.tld> <1e4ee963664f770c5ba5890f3e66e469@elis.ugent.be> <20050422174131.779509e3@smirftschs.home.tld> <8737c432399be6c4c8b349c300916cd8@elis.ugent.be> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org I don't think it'll be possible for me to fix this, i don't have any knowledge about these functions at all... On Fri, 22 Apr 2005 18:12:10 +0200 Jonas Maebe wrote: > > On 22 apr 2005, at 17:41, developer@isl-gbr.de wrote: > > > Hello Jonas, here is the output of the command you gave me for this > > function, does this help ? > > It helps in the sense that it confirms my suspicion, although I don't > know why it creates such convoluted code. Maybe in order to have as > small code as possible with at the same time as many aligned jump > targets as possible. It's definitely not trivial to parse this, and > even less trivial to rewrite it so it is usable for qemu's purposes (in > this particular case, the retq could be replaced by a jmp, but you > can't count on there being 4 padding bytes after each ret). > > You (or someone else) will have to find a way to force gcc 4.0 to put > one ret (or jump) at the very end of the code it generates. If that's > not possible, it will be quite hard to support gcc 4.0 in qemu... > > > Jonas > > > > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel