From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=59179 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OkLpn-0007gP-1r for qemu-devel@nongnu.org; Sat, 14 Aug 2010 14:51:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OkLpl-0004ZM-A6 for qemu-devel@nongnu.org; Sat, 14 Aug 2010 14:51:58 -0400 Received: from fmmailgate03.web.de ([217.72.192.234]:44590) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OkLpl-0004ZF-2a for qemu-devel@nongnu.org; Sat, 14 Aug 2010 14:51:57 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Sat, 14 Aug 2010 20:51:50 +0200 Message-Id: <1281811910-8824-1-git-send-email-andreas.faerber@web.de> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: andreas.faerber@web.de Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH] TCG: Fix Darwin/ppc calling convention recognition List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , =?UTF-8?q?Andreas=20F=C3=A4rber?= , =?UTF-8?q?J=C3=BCrgen=20Lock?= 5da79c86a3744e3a901c7986c109dd06951befd2 broke compilation on Mac OS X v1= 0.5 ppc. Apple's GCC 4.0.1 does not define _CALL_DARWIN. Recognize __APPLE__ again= as well. Signed-off-by: Andreas F=C3=A4rber Cc: malc Cc: Paolo Bonzini Cc: J=C3=BCrgen Lock Cc: Stefan Weil --- Been using a similar patch for some time but apparently hadn't posted it= yet... Together with one of Cam's KVM-related patches this fixes the build for = me. =20 Regards, Andreas =20 tcg/ppc/tcg-target.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tcg/ppc/tcg-target.h b/tcg/ppc/tcg-target.h index 5302428..a1f8599 100644 --- a/tcg/ppc/tcg-target.h +++ b/tcg/ppc/tcg-target.h @@ -65,7 +65,7 @@ enum { /* used for function call generation */ #define TCG_REG_CALL_STACK TCG_REG_R1 #define TCG_TARGET_STACK_ALIGN 16 -#if defined _CALL_DARWIN +#if defined _CALL_DARWIN || defined __APPLE__ #define TCG_TARGET_CALL_STACK_OFFSET 24 #elif defined _CALL_AIX #define TCG_TARGET_CALL_STACK_OFFSET 52 --=20 1.7.0.4