Skip to contentSkip to conversation

configure: Add signed*signed check to [u]int128_t test

PATCH Applied Peter Maydell 3 participants 4 messages Jun 21, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure: Add signed*signed check to [u]int128_t test

clang 3.8 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.

---
 configure |    1 +
 1 file changed, 1 insertion(+)
configure +1 -0
index ad32f87..6465e05 100755
@@ -3329,6 +3329,7 @@ __uint128_t b;
 int main (void) {
   a = a + b;
   b = a * b;
+  a = a * a;
   return 0;
 }
 EOF
Signature · 1 line
1.7.9.5
#2 lore raw
In reply to Peter Maydell
Quoted 3 lines · Peter Maydell

clang 3.8 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.

I meant "clang 3.3" here -- can this be fixed when the patch is committed to -trivial or do you want a respin?

thanks
-- PMM

#3 lore raw
In reply to Peter Maydell
Quoted 3 lines · Peter Maydell

clang 3.8 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.

I accept it as granted (with the fixup s/3.8/3.3/), I didn't try to verify whenever it's actually true for clang.

Applied to the trivial patches queue (with the fixup), thanks!

/mjt