Received: from eggs.gnu.org ([2001:4830:134:3::10]:60389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLrJh-0006tn-EM for qemu-devel@nongnu.org; Fri, 07 Mar 2014 04:43:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLrJg-0001tk-Dr for qemu-devel@nongnu.org; Fri, 07 Mar 2014 04:43:45 -0500 From: Stefan Weil Date: Fri, 7 Mar 2014 10:43:38 +0100 Message-Id: <1394185418-30197-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH] configure: Don't use __int128_t for clang versions before 3.2 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-trivial@nongnu.org Cc: Peter Maydell , Stefan Weil , qemu-stable@nongnu.org, qemu-devel@nongnu.org, Richard Henderson Those versions don't fully support __int128_t. Cc: qemu-stable@nongnu.org Signed-off-by: Stefan Weil --- See http://stackoverflow.com/questions/16447808/bug-with-int128-t-in-clang for more details. Debian wheezy uses clang 3.0 and shows this bug. I did not test whether the QEMU code will work nevertheless, but I think it's better to be on the safe side and disable __int128_t for old clang versions. Regards Stefan configure | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure b/configure index 1212d2d..761a1a4 100755 --- a/configure +++ b/configure @@ -3820,6 +3820,11 @@ fi int128=no cat > $TMPC << EOF +#if defined(__clang_major__) && defined(__clang_minor__) +# if ((__clang_major__ < 3) || (__clang_major__ == 3) && (__clang_minor__ < 2)) +# error __int128_t does not work in CLANG before 3.2 +# endif +#endif __int128_t a; __uint128_t b; int main (void) { -- 1.7.10.4