[PATCH] tst-atomic.c: Mark as UNSUPPORTED when compiled with Clang
Maciej W. Rozycki
macro@orcam.me.uk
Thu Jan 2 15:33:07 GMT 2025
On Tue, 17 Dec 2024, Andrew Pinski wrote:
> This is also a bug in how clang implements inline-asm and should be
> filed upstream as a bug. If clang folks think this is not a bug, then
> clang does not implement GCC semantics for inline-asm and clang should
> not mention it implements GCC inline-asm.
Yeah, I've seen Clang people demand that we pessimise code produced by
GCC for the Linux kernel to satisfy their approach with inline-asm, cf.
<https://lore.kernel.org/r/1611722507-12017-1-git-send-email-yangtiezhu@loongson.cn/>,
<https://lore.kernel.org/r/CAG_fn=W0JHf8QyUX==+rQMp8PoULHrsQCa9Htffws31ga8k-iw@mail.gmail.com/>,
<https://github.com/ClangBuiltLinux/linux/issues/836>,
<https://lore.kernel.org/r/20150203133717.Qybyu_GdZw-gLyVnKXyaLf3gRspDZISDvWRzBvgVnBE@z/>;
10 years on and still not fixed: I guess they mean not to and by the look
of it I need to conclude that they won.
Maciej
More information about the Libc-alpha
mailing list