From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2T2r-0001gS-7f for qemu-devel@nongnu.org; Wed, 01 Sep 2004 07:12:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2T2q-0001g7-GK for qemu-devel@nongnu.org; Wed, 01 Sep 2004 07:12:52 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2T2q-0001fh-Bz for qemu-devel@nongnu.org; Wed, 01 Sep 2004 07:12:52 -0400 Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C2Sxi-000062-Rv for qemu-devel@nongnu.org; Wed, 01 Sep 2004 07:07:35 -0400 Received: from [62.241.160.73] (helo=colossus.systems.pipex.net) by mx20.gnu.org with esmtp (Exim 4.34) id 1C2IJG-0002WP-SK for qemu-devel@nongnu.org; Tue, 31 Aug 2004 19:45:07 -0400 From: Paul Brook Subject: Re: [Qemu-devel] Re: port to netbsd Date: Wed, 1 Sep 2004 00:44:52 +0100 References: <4134FC39.700@ecs.umass.edu> <87hdqjhqp1.fsf@benpfaff.org> <41353613.8080304@fastmail.fm> In-Reply-To: <41353613.8080304@fastmail.fm> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409010044.52182.paul@codesourcery.com> 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 On Wednesday 01 September 2004 03:38, David Howland wrote: > Ben Pfaff wrote: > > Rename one set of functions or the other. It's probably easier > > to rename qemu's set. > > ya, I did that. Just took the hacksaw to it. I similarly hacked up a > few other places. I guess I'll just hack it until it compiles, then > I'll worry about making it clean. Anyway, it gets somewhat further now, > but stops at the following... > > --------------------------------------------------------------- > /usr/pkg/gcc3/bin/gcc -Wall -O2 -g -fno-strict-aliasing > -fomit-frame-pointe referred-stack-boundary=2 -malign-functions=0 > -I. -I/home/dave/build/qemu-0 target-i386 > -I/home/dave/build/qemu-0.6.0 -D_GNU_SOURCE -I/home/dave/build/ > 0.6.0/slirp -c -o op.o /home/dave/build/qemu-0.6.0/target-i386/op.c > cc1: warning: -malign-functions is obsolete, use -falign-functions > ../dyngen -o op.h op.o > dyngen: ret or jmp expected at the end of op_divb_AL_T0 > gmake[1]: *** [op.h] Error 1 > gmake[1]: Leaving directory `/home/dave/build/qemu-0.6.0/i386-softmmu' > --------------------------------------------------------------- > > This one actually does have me stumped. I don't really see how this is > a NetBSD issue. So...any hints? Sorry if you've already mentioned this, but what gcc version are you using? There are known problems with some versions of gcc (3.4.x at least). Other versions need specific flags, eg. -fno-reorder-blocks. Basically dyngen expects each function to end in a single "ret" instruction. Some gcc versions break this assumption. Paul