Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KMju5-00024l-MA for qemu-devel@nongnu.org; Sat, 26 Jul 2008 09:33:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KMju4-00024N-3t for qemu-devel@nongnu.org; Sat, 26 Jul 2008 09:33:45 -0400 Received: from [199.232.76.173] (port=38811 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KMju3-00024K-TM for qemu-devel@nongnu.org; Sat, 26 Jul 2008 09:33:43 -0400 Received: from fmmailgate02.web.de ([217.72.192.227]:47080) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KMju3-0006Do-Dn for qemu-devel@nongnu.org; Sat, 26 Jul 2008 09:33:43 -0400 Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate02.web.de (Postfix) with ESMTP id 8385CE73B57D for ; Sat, 26 Jul 2008 15:33:42 +0200 (CEST) Received: from [91.18.74.226] (helo=[10.0.1.1]) by smtp06.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.109 #226) id 1KMju1-0002dh-00 for qemu-devel@nongnu.org; Sat, 26 Jul 2008 15:33:42 +0200 Message-Id: <519D5FD7-7807-4BD0-B2EE-43092554D212@web.de> From: =?ISO-8859-1?Q?Andreas_F=E4rber?= Content-Type: multipart/mixed; boundary=Apple-Mail-16-401315502 Mime-Version: 1.0 (Apple Message framework v926) Date: Sat, 26 Jul 2008 15:33:20 +0200 Sender: andreas.faerber@web.de Subject: [Qemu-devel] [PATCH] Compilation fix for OSX/ppc64 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 --Apple-Mail-16-401315502 Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Hello, The attached patch should fix the compilation error (type conflict for =20= [u]int64_t) reported by Ren=E9 Rebe for Mac OS X ppc64. Like on OSX/x86-64 we should not define [u]int64_t in dyngen-exec.h =20 for OSX/ppc64 because they are already defined in the system headers =20 (to [unsigned] long long). The comments are updated to match the code. Not tested on OSX/ppc64, but that's not yet working anyway. Signed-off-by: Andreas Faerber Andreas --Apple-Mail-16-401315502 Content-Disposition: attachment; filename=qemu-osx-ppc64-int64error.diff Content-Type: application/octet-stream; x-unix-mode=0644; name="qemu-osx-ppc64-int64error.diff" Content-Transfer-Encoding: 7bit diff --git a/dyngen-exec.h b/dyngen-exec.h index 2b616a9..40f1e3e 100644 --- a/dyngen-exec.h +++ b/dyngen-exec.h @@ -35,8 +35,8 @@ typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned int uint32_t; -// Linux/Sparc64 defines uint64_t -#if !(defined (__sparc_v9__) && defined(__linux__)) && !(defined(__APPLE__) && defined(__x86_64__)) +// Linux/Sparc64, OSX/ppc64 and OSX/x86-64 define uint64_t +#if !(defined (__sparc_v9__) && defined(__linux__)) && !(defined(__APPLE__) && (defined(__ppc64__) || defined(__x86_64__))) /* XXX may be done for all 64 bits targets ? */ #if defined (__x86_64__) || defined(__ia64) || defined(__s390x__) || defined(__alpha__) || defined(__powerpc64__) typedef unsigned long uint64_t; @@ -53,8 +53,8 @@ typedef signed char int8_t; #endif typedef signed short int16_t; typedef signed int int32_t; -// Linux/Sparc64 defines int64_t -#if !(defined (__sparc_v9__) && defined(__linux__)) && !(defined(__APPLE__) && defined(__x86_64__)) +// Linux/Sparc64, OSX/ppc64 and OSX/x86-64 define int64_t +#if !(defined (__sparc_v9__) && defined(__linux__)) && !(defined(__APPLE__) && (defined(__ppc64__) || defined(__x86_64__))) #if defined (__x86_64__) || defined(__ia64) || defined(__s390x__) || defined(__alpha__) || defined(__powerpc64__) typedef signed long int64_t; #else --Apple-Mail-16-401315502 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit --Apple-Mail-16-401315502--