]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix simd build failure on clang
authorMatthias Kretz <m.kretz@gsi.de>
Mon, 20 Feb 2023 10:13:44 +0000 (11:13 +0100)
committerMatthias Kretz <m.kretz@gsi.de>
Thu, 23 Feb 2023 14:01:49 +0000 (15:01 +0100)
commit92c47b15d5af3e7f93d11ad69a45b6d1cb8661c5
tree5b001de53d138da8fb0d642707154b155ff637d9
parent2e29e2fbeb8936e5c85cefaf547cba42e17e137b
libstdc++: Fix simd build failure on clang

Clang does not support __attribute__ on lambdas. Therefore, only set
_GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA if __clang__ is not defined.

Signed-off-by: Matthias Kretz <m.kretz@gsi.de>
libstdc++-v3/ChangeLog:

PR libstdc++/108030
* include/experimental/bits/simd_detail.h
(_GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA): Define as empty for
__clang__.
libstdc++-v3/include/experimental/bits/simd_detail.h