Received: from eggs.gnu.org ([140.186.70.92]:49119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rcwhm-00018z-QC for qemu-devel@nongnu.org; Tue, 20 Dec 2011 05:14:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rcwhf-0000Kh-0W for qemu-devel@nongnu.org; Tue, 20 Dec 2011 05:13:54 -0500 Received: from mail-ee0-f45.google.com ([74.125.83.45]:60901) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rcwhe-0000KX-SP for qemu-devel@nongnu.org; Tue, 20 Dec 2011 05:13:46 -0500 Received: by eekb45 with SMTP id b45so7136950eek.4 for ; Tue, 20 Dec 2011 02:13:45 -0800 (PST) Date: Tue, 20 Dec 2011 10:13:43 +0000 From: Stefan Hajnoczi Message-ID: <20111220101343.GC10603@stefanha-thinkpad.localdomain> References: <1324371827-25099-1-git-send-email-wdongxu@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1324371827-25099-1-git-send-email-wdongxu@linux.vnet.ibm.com> Subject: Re: [Qemu-devel] [PATCH] rewrite QEMU_BUILD_BUG_ON List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dong Xu Wang Cc: qemu-devel@nongnu.org On Tue, Dec 20, 2011 at 05:03:47PM +0800, Dong Xu Wang wrote: > From: Dong Xu Wang > > On some platforms, __LINE__ will not expand to real number in QEMU_BUILD_BUG_ON, > so if using QEMU_BUILD_BUG_ON twice, compiler will report errors. This patch will > fix it. > > BTW, I got error message on RHEL 6.1/gcc 4.4.5. Can you post the gcc -E output of the file that produces the error as well as the gcc error output? Stefan