Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ic18F-000428-67 for qemu-devel@nongnu.org; Sun, 30 Sep 2007 11:54:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ic18E-00040w-Cs for qemu-devel@nongnu.org; Sun, 30 Sep 2007 11:54:58 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ic18E-00040i-7m for qemu-devel@nongnu.org; Sun, 30 Sep 2007 11:54:58 -0400 Received: from fmmailgate03.web.de ([217.72.192.234]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ic18D-0002xp-Hs for qemu-devel@nongnu.org; Sun, 30 Sep 2007 11:54:57 -0400 Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate03.web.de (Postfix) with ESMTP id BE2409F6A2AF for ; Sun, 30 Sep 2007 17:54:56 +0200 (CEST) Received: from [91.18.86.153] (helo=[10.0.1.1]) by smtp08.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.108 #197) id 1Ic18C-00067q-00 for qemu-devel@nongnu.org; Sun, 30 Sep 2007 17:54:56 +0200 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <6610E5F6-24CA-4DF0-83F5-0E63683CBF51@web.de> References: <9DF95EE0-A0EB-443E-850F-881F2A7B3318@web.de> <1191152728.29900.102.camel@rapid> <494D52E6-D90D-4426-A866-8D413F9333B6@web.de> <1191154622.29900.118.camel@rapid> <5CD94FD2-E210-4C08-8CBA-11B0EFDC0AA4@web.de> <1191158854.29900.131.camel@rapid> <1191163048.29900.138.camel@rapid> <6610E5F6-24CA-4DF0-83F5-0E63683CBF51@web.de> Content-Type: multipart/mixed; boundary=Apple-Mail-5-259614173 Message-Id: <6E216391-AFD2-4037-A2DF-6AA491F9EB23@web.de> From: =?ISO-8859-1?Q?Andreas_F=E4rber?= Subject: Re: [Qemu-devel] Build failure on OS X Date: Sun, 30 Sep 2007 17:54:55 +0200 Sender: andreas.faerber@web.de 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-5-259614173 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Am 30.09.2007 um 17:05 schrieb Andreas F=E4rber: > Am 30.09.2007 um 16:37 schrieb J. Mayer: > >>> If someone has a speedup idea for the __APPLE__ case, that could >>> still be applied separately. >> >> I guess there are some already defined macros in the Apple build >> environmnet that should be used instead. But I don't know too much =20= >> about >> this environment... The slowdown is really not an issue in that >> particular case. > > Actually, I am now seeing that in math.h Apple itself uses =20 > __attribute__ ((always_inline)) for __MATH_H_ALWAYS_INLINE__ if =20 > __GNUC__ is defined ... so I now believe the issue is rather the =20 > "recursive" definition of always_inline: QEMU defines always_inline =20= > and it subsequently tries to replace always_inline inside the =20 > __attribute__(()) in math.h! Could this be it? Puzzling, the attached patch works. It appears to be the trailing =20 inline that it doesn't like for some reason. Regards, Andreas --Apple-Mail-5-259614173 Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name=vl.h-exec-all.h-inline-2007-09-30.diff Content-Disposition: attachment; filename=vl.h-exec-all.h-inline-2007-09-30.diff Index: vl.h =================================================================== RCS file: /sources/qemu/qemu/vl.h,v retrieving revision 1.273 diff -r1.273 vl.h 113c113 < #if (__GNUC__ < 3) || defined(__APPLE__) --- > #if (__GNUC__ < 3) 114a115,116 > #elif defined(__APPLE__) > #define always_inline __attribute__ (( always_inline )) Index: exec-all.h =================================================================== RCS file: /sources/qemu/qemu/exec-all.h,v retrieving revision 1.66 diff -r1.66 exec-all.h 41c41 < #if (__GNUC__ < 3) || defined(__APPLE__) --- > #if (__GNUC__ < 3) 42a43,44 > #elif defined(__APPLE__) > #define always_inline __attribute__ (( always_inline )) --Apple-Mail-5-259614173 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed --Apple-Mail-5-259614173--