qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] meson: Adjust check for __int128_t
@ 2023-05-23 22:38 Richard Henderson
  2023-05-24 10:30 ` Peter Maydell
  2023-05-24 12:31 ` Paolo Bonzini
  0 siblings, 2 replies; 6+ messages in thread
From: Richard Henderson @ 2023-05-23 22:38 UTC (permalink / raw)
  To: qemu-devel

Remove the signed * signed check, leaving the signed * unsigned check.
This link test runs foul of -fsanitize=undefined, where clang-11 has
an undefined reference to __muloti4 to check for signed overflow.

This failure prevents us properly detecting atomic128 support.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 meson.build | 2 --
 1 file changed, 2 deletions(-)

diff --git a/meson.build b/meson.build
index ef181ff2df..865bdd8d11 100644
--- a/meson.build
+++ b/meson.build
@@ -2542,10 +2542,8 @@ has_int128 = cc.links('''
   int main (void) {
     a = a + b;
     b = a * b;
-    a = a * a;
     return 0;
   }''')
-
 config_host_data.set('CONFIG_INT128', has_int128)
 
 if has_int128
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-05-24 12:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-23 22:38 [PATCH] meson: Adjust check for __int128_t Richard Henderson
2023-05-24 10:30 ` Peter Maydell
2023-05-24 12:37   ` Paolo Bonzini
2023-05-24 12:31 ` Paolo Bonzini
2023-05-24 12:33   ` Peter Maydell
2023-05-24 12:41     ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).