[gcc r11-7364] libstdc++: Fix failing tests due to 'u' identifier in kernel header
Jonathan Wakely
redi@gcc.gnu.org
Wed Feb 24 16:37:57 GMT 2021
https://gcc.gnu.org/g:d0453cf5c68b6aa0e8c57a7a99d4285f047387b7
commit r11-7364-gd0453cf5c68b6aa0e8c57a7a99d4285f047387b7
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Feb 24 16:24:34 2021 +0000
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:
---
libstdc++-v3/testsuite/17_intro/names.cc | 5 +++++
1 file changed, 5 insertions(+)
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
More information about the Libstdc++-cvs
mailing list