From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kp2T3-0005Lr-Vr for qemu-devel@nongnu.org; Sun, 12 Oct 2008 11:02:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kp2T1-0005JT-If for qemu-devel@nongnu.org; Sun, 12 Oct 2008 11:02:48 -0400 Received: from [199.232.76.173] (port=55844 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kp2T1-0005J1-8R for qemu-devel@nongnu.org; Sun, 12 Oct 2008 11:02:47 -0400 Received: from mx2.redhat.com ([66.187.237.31]:52892) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kp2T0-00082R-Ee for qemu-devel@nongnu.org; Sun, 12 Oct 2008 11:02:46 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id m9CF2jKf023756 for ; Sun, 12 Oct 2008 11:02:45 -0400 Message-ID: <48F21193.3000809@redhat.com> Date: Sun, 12 Oct 2008 17:02:43 +0200 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] [5466] Only use __builtin_* with GCC >= 3.4 References: <48F1EE9B.6040706@redhat.com> <20081012142348.GA18814@shareable.org> In-Reply-To: <20081012142348.GA18814@shareable.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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 Jamie Lokier wrote: > Glibc uses "#if __GNUC_PREREQ (3,4)" which is quite neat. > Do "grep -R GNUC_PREREQ /usr/include". > > I use (and define if not already defined) the same macro in my > programs, on the assumption that the macro's meaning is unlikely to > ever change or be different elsewhere. > It's illegal to define or use an identifier beginning with two underscores, unless it's documented by the implementation. What if glibc adds a third argument? All your apps wil break. You should define your own macros for this, with a non-__ name. -- error compiling committee.c: too many arguments to function