From: Jonathan Wakely Date: Wed, 24 Feb 2021 16:24:34 +0000 (+0000) Subject: libstdc++: Fix failing tests due to 'u' identifier in kernel header X-Git-Tag: basepoints/gcc-12~893 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d0453cf5c68b6aa0e8c57a7a99d4285f047387b7;p=thirdparty%2Fgcc.git libstdc++: Fix failing tests due to 'u' identifier in kernel header libstdc++-v3/ChangeLog: * testsuite/17_intro/names.cc: Undefine 'u' on powerpc*-linux*. --- diff --git a/libstdc++-v3/testsuite/17_intro/names.cc b/libstdc++-v3/testsuite/17_intro/names.cc index 77d89203b83a..4534d7907721 100644 --- a/libstdc++-v3/testsuite/17_intro/names.cc +++ b/libstdc++-v3/testsuite/17_intro/names.cc @@ -202,6 +202,11 @@ #undef r #endif +#if defined (__linux__) && defined (__powerpc__) +// defines __vector128::u +#undef u +#endif + #if defined (__linux__) && defined (__sparc__) #undef y #endif