qemu-trivial
[Top][All Lists]
Advanced

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

[Qemu-trivial] [PATCH] configure: Don't use __int128_t for clang version


From: Stefan Weil
Subject: [Qemu-trivial] [PATCH] configure: Don't use __int128_t for clang versions before 3.2
Date: Fri, 7 Mar 2014 10:43:38 +0100

Those versions don't fully support __int128_t.

Cc: address@hidden
Signed-off-by: Stefan Weil <address@hidden>
---

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




reply via email to

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