aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2024-08-27 13:15:38 -0400
committerJason Merrill <jason@redhat.com>2024-09-06 07:47:57 -0400
commitc0da27f37df2fcfd59c6cd234793ed24705f1997 (patch)
treec9aef4de2765c57677a122913f36de4db5fede9e
parent4ce9e0a579fcd216c1a3439525201473402a895d (diff)
downloadgcc-c0da27f37df2fcfd59c6cd234793ed24705f1997.zip
gcc-c0da27f37df2fcfd59c6cd234793ed24705f1997.tar.gz
gcc-c0da27f37df2fcfd59c6cd234793ed24705f1997.tar.bz2
libstdc++: avoid __GLIBCXX__ redefinition
testsuite/lib/dg-options.exp defines __GLIBCXX__ to 9999999; avoid a macro redefinition warning in that case. libstdc++-v3/ChangeLog: * include/bits/c++config: Avoid redefining __GLIBCXX__.
-rw-r--r--libstdc++-v3/include/bits/c++config1
1 files changed, 1 insertions, 0 deletions
diff --git a/libstdc++-v3/include/bits/c++config b/libstdc++-v3/include/bits/c++config
index 0f0cc7c..54d455b 100644
--- a/libstdc++-v3/include/bits/c++config
+++ b/libstdc++-v3/include/bits/c++config
@@ -36,6 +36,7 @@
#define _GLIBCXX_RELEASE
// The datestamp of the C++ library in compressed ISO date format.
+#undef __GLIBCXX__ /* The testsuite defines it to 99999999 to block PCH. */
#define __GLIBCXX__
// Macros for various attributes.