Re: [PATCH v2 2/2] meson: fix CONFIG_ATOMIC128 check

2022-02-28 Thread Philippe Mathieu-Daudé
On 28/2/22 21:00, marcandre.lur...@redhat.com wrote: From: Marc-André Lureau The current testing code isn't correct and matching QEMU usage: testfile.c: In function 'main': testfile.c:5:11: error: incorrect number of arguments to function '__atomic_load' 5 | y = __atomic_load(&x, 0

Re: [PATCH v2 2/2] meson: fix CONFIG_ATOMIC128 check

2022-02-28 Thread Richard Henderson
On 2/28/22 10:00, marcandre.lur...@redhat.com wrote: -# See if 64-bit atomic operations are supported. -# Note that without __atomic builtins, we can only -# assume atomic loads/stores max at pointer size. -config_host_data.set('CONFIG_ATOMIC64', cc.links(''' +atomic_test = ''' #include

[PATCH v2 2/2] meson: fix CONFIG_ATOMIC128 check

2022-02-28 Thread marcandre . lureau
From: Marc-André Lureau The current testing code isn't correct and matching QEMU usage: testfile.c: In function 'main': testfile.c:5:11: error: incorrect number of arguments to function '__atomic_load' 5 | y = __atomic_load(&x, 0); | ^ testfile.c:6:7: error