From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ec2xu-00049Z-8R for qemu-devel@nongnu.org; Tue, 15 Nov 2005 10:43:22 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ec2xs-00047o-4x for qemu-devel@nongnu.org; Tue, 15 Nov 2005 10:43:21 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ec2xr-00047Y-I1 for qemu-devel@nongnu.org; Tue, 15 Nov 2005 10:43:19 -0500 Received: from [65.74.133.11] (helo=mail.codesourcery.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1Ec2xr-0001VD-J8 for qemu-devel@nongnu.org; Tue, 15 Nov 2005 10:43:19 -0500 From: Paul Brook Subject: Re: [Qemu-devel] Many syntax errors in op.h Date: Tue, 15 Nov 2005 15:43:15 +0000 References: <200511150950.20856.dfeustel@verizon.net> In-Reply-To: <200511150950.20856.dfeustel@verizon.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511151543.16092.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, dfeustel@mindspring.com On Tuesday 15 November 2005 14:50, Dave Feustel wrote: > I am making progress as I modify the Qemu source code to work > around a number of OpenBSD deficiencies. I don't yet know how > to fix the following problem which occurs about 25 times in op.h: > > C statements of the form > > *(uint32_t *)(gen_code_ptr + 210) = (long)(&) + 14; > > generate syntax errors (apparently because of the use of "(&)") > with the c compiler used in OpenBSD 3.7 (gcc (GCC) 3.3.5 (propolice)). > > Similar statements with a symbol following the "&" (eg "(&xyz)") do not > generate syntax errors. Has this been seen before? Is there a fix? Make sure you disable any stack protection systems (ProPolice, SSP, etc) when compiling op.c. Paul