]> git.proxmox.com Git - mirror_qemu.git/commitdiff
configure: Add signed*signed check to [u]int128_t test
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 21 Jun 2013 13:01:31 +0000 (14:01 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 21 Jun 2013 18:54:24 +0000 (22:54 +0400)
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

index bb126e836403fe7904ffa8503d88eed6ccf597eb..0e0adde4105adafafcb7e95edb4d0d37afc21277 100755 (executable)
--- 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