Commit graph

1 commit

Author SHA1 Message Date
Javier Martinez Canillas
0e9100b78f
Fix build due a clang bug on nested macros
Prior to GCC14, the `__arm_streaming` macro was not spelled as an attribute
using the CXX11 syntax (e.g: [[arm::streaming]]) and so clang expanded that
macro macro.

But since GCC14, it's spelled as `[[arm::streaming]]` which makes clang to
try expanding the attribute again and generating an invalid preprocessing
token due the nested macro usage:

/usr/include/clang/Basic/AttrTokenKinds.inc:9:1: error: pasting "kw_" and "[" does not give a valid preprocessing token
    9 | KEYWORD_ATTRIBUTE(__arm_streaming)

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
2024-01-19 14:20:19 +01:00