Patchwork [PULL,17/17] configure: Add signed*signed check to [u]int128_t test

login
register
mail settings
Submitter Michael Tokarev
Date June 22, 2013, 9:24 a.m.
Message ID <1371893076-9643-18-git-send-email-mjt@msgid.tls.msk.ru>
Download mbox | patch
Permalink /patch/253399/
State New
Headers show

Comments

Michael Tokarev - June 22, 2013, 9:24 a.m.
From: Peter Maydell <peter.maydell@linaro.org>

clang 3.3 with -fsanitize=undefined will fail to link code containing an
int128_t * int128_t multiply (http://llvm.org/bugs/show_bug.cgi?id=16404)
so add this to our configure test for whether [u]int128_t are usable.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 configure |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/configure b/configure
index bb126e8..0e0adde 100755
--- a/configure
+++ b/configure
@@ -3329,6 +3329,7 @@  __uint128_t b;
 int main (void) {
   a = a + b;
   b = a * b;
+  a = a * a;
   return 0;
 }
 EOF