qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [5466] Only use __builtin_* with GCC >= 3.4


From: Avi Kivity
Subject: Re: [Qemu-devel] [5466] Only use __builtin_* with GCC >= 3.4
Date: Sun, 12 Oct 2008 14:33:31 +0200
User-agent: Thunderbird 2.0.0.16 (X11/20080723)

Aurelien Jarno wrote:
Revision: 5466
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5466
Author:   aurel32
Date:     2008-10-12 11:44:36 +0000 (Sun, 12 Oct 2008)

Log Message:
-----------
Only use __builtin_* with GCC >= 3.4

Fix gcc 3.3 builds, broken in revision 5465.

static always_inline int clz32(uint32_t val)
 {
-#if defined(__GNUC__)
+#if defined(__GNUC__) && ((__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ 
>= 4))

Couldn't this be wrapped in GCC_BUILTINS_AVAILABLE or GCC_ATLEAST_3_4? My eyes hurt.


--
error compiling committee.c: too many arguments to function





reply via email to

[Prev in Thread] Current Thread [Next in Thread]