From: Richard Henderson <richard.henderson@linaro.org>
To: qemu-devel@nongnu.org
Subject: [PATCH] meson: Adjust check for __int128_t
Date: Tue, 23 May 2023 15:38:44 -0700 [thread overview]
Message-ID: <20230523223844.719056-1-richard.henderson@linaro.org> (raw)
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
next reply other threads:[~2023-05-23 22:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-23 22:38 Richard Henderson [this message]
2023-05-24 10:30 ` [PATCH] meson: Adjust check for __int128_t 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230523223844.719056-1-richard.henderson@linaro.org \
--to=richard.henderson@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).