libstdc++-v3/ChangeLog:

        * testsuite/17_intro/names.cc: Undefine 'u' on powerpc*-linux*.

Tested powerpc64le-linux. Committed to trunk.

commit d0453cf5c68b6aa0e8c57a7a99d4285f047387b7
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Wed Feb 24 16:24:34 2021

    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 77d89203b83..4534d790772 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__)
+// <asm/types.h> defines __vector128::u
+#undef u
+#endif
+
 #if defined (__linux__) && defined (__sparc__)
 #undef y
 #endif

Reply via email to