Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ec5ES-0000Kq-M7 for qemu-devel@nongnu.org; Tue, 15 Nov 2005 13:08:36 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ec5EQ-0000Id-EB for qemu-devel@nongnu.org; Tue, 15 Nov 2005 13:08:35 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ec5EQ-0000IP-86 for qemu-devel@nongnu.org; Tue, 15 Nov 2005 13:08:34 -0500 Received: from [206.46.252.48] (helo=vms048pub.verizon.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ec5EQ-0004Ws-54 for qemu-devel@nongnu.org; Tue, 15 Nov 2005 13:08:34 -0500 Received: from [71.97.178.169] by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IQ000HCSCX8D88A@vms048.mailsrvcs.net> for qemu-devel@nongnu.org; Tue, 15 Nov 2005 12:05:33 -0600 (CST) Date: Tue, 15 Nov 2005 13:05:31 -0500 From: Dave Feustel Subject: Re: [Qemu-devel] Many syntax errors in op.h In-reply-to: <20051115172320.GC4959@mail.shareable.org> Message-id: <200511151305.32054.dfeustel@verizon.net> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit Content-disposition: inline References: <200511150950.20856.dfeustel@verizon.net> <20051115172320.GC4959@mail.shareable.org> Reply-To: dfeustel@mindspring.com, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jamie Lokier Cc: qemu-devel@nongnu.org On Tuesday 15 November 2005 12:23, Jamie Lokier wrote: > 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)). > > "(&)" is not valid C. That's what I thought too. "&" requires an operand. So why are these lines of code in op.h? Should they be commented out? Should a dummy operand be inserted? What is the fix? Thanks. > > Similar statements with a symbol following the "&" (eg "(&xyz)") do > > not generate syntax errors. > > Because that is valid C. > > -- Jamie > -- Switch to Secure OpenBSD with a KDE desktop!!! NOW with Virtual PC OS support via QEMU and Beowulf clustering using PETSc and MPICH2!