Received: from eggs.gnu.org ([208.118.235.92]:46830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVoZj-0001uG-Nk for qemu-devel@nongnu.org; Fri, 26 Apr 2013 15:44:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVoZf-0007BT-IU for qemu-devel@nongnu.org; Fri, 26 Apr 2013 15:44:55 -0400 Received: from gelbbaer.kn-bremen.de ([78.46.108.116]:54579 helo=smtp.kn-bremen.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVoZf-0007BH-CM for qemu-devel@nongnu.org; Fri, 26 Apr 2013 15:44:51 -0400 From: Juergen Lock Date: Fri, 26 Apr 2013 21:44:03 +0200 Message-ID: <20130426194403.GA84862@triton8.kn-bremen.de> References: <20130426191141.GA81647@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130426191141.GA81647@triton8.kn-bremen.de> Subject: [Qemu-devel] [PATCH] tcg/i386: Workaround for clang not defining bit_CMOV List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juergen Lock Cc: qemu-devel@nongnu.org I guess I should have put [PATCH] in the Subject, sorry. On Fri, Apr 26, 2013 at 09:11:41PM +0200, Juergen Lock wrote: This fixes the build with clang on 32 bit x86. Signed-off-by: Juergen Lock --- a/tcg/i386/tcg-target.c +++ b/tcg/i386/tcg-target.c @@ -104,6 +104,10 @@ static const int tcg_target_call_oarg_re # define have_cmov 1 #elif defined(CONFIG_CPUID_H) #include +#ifndef bit_CMOV +/* clang's doesn't define bit_* */ +#define bit_CMOV (1 << 15) +#endif static bool have_cmov; #else # define have_cmov 0