From: Jonathan Wakely Date: Fri, 22 Nov 2013 16:59:25 +0000 (+0000) Subject: re PR libstdc++/59247 (Bootstrap fails due to errors in libstdc++ sources with `... X-Git-Tag: releases/gcc-4.9.0~2522 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=237c8b9d2f2cc0858ed6950f366cdb6d39f5c900;p=thirdparty%2Fgcc.git re PR libstdc++/59247 (Bootstrap fails due to errors in libstdc++ sources with `--enable-symvers=gnu-versioned-namespace') PR libstdc++/59247 * include/bits/c++config (_GLIBCXX_INLINE_VERSION): Declare namespace std::experimental::__7 as inline. * include/bits/regex.h (_GLIBCXX_BEGIN_NAMESPACE_VERSION): Do not enclose namespace __detail. * include/bits/regex.tcc (_GLIBCXX_BEGIN_NAMESPACE_VERSION): Likewise. * include/std/iomanip (_GLIBCXX_BEGIN_NAMESPACE_VERSION): Likewise. * include/ext/pb_ds/tag_and_trait.hpp (detail): Fix comment. * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust line number. From-SVN: r205277 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 3580a88d65c9..4aca7a7b4bde 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -4,6 +4,16 @@ * configure: Regenerate. * doc/xml/manual/abi.xml: Update version information. + PR libstdc++/59247 + * include/bits/c++config (_GLIBCXX_INLINE_VERSION): Declare namespace + std::experimental::__7 as inline. + * include/bits/regex.h (_GLIBCXX_BEGIN_NAMESPACE_VERSION): Do not + enclose namespace __detail. + * include/bits/regex.tcc (_GLIBCXX_BEGIN_NAMESPACE_VERSION): Likewise. + * include/std/iomanip (_GLIBCXX_BEGIN_NAMESPACE_VERSION): Likewise. + * include/ext/pb_ds/tag_and_trait.hpp (detail): Fix comment. + * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust line number. + 2013-11-22 Paolo Carlini * testsuite/ext/random/hypergeometric_distribution/operators/ diff --git a/libstdc++-v3/include/bits/c++config b/libstdc++-v3/include/bits/c++config index aca8484e222f..b00bc41d634f 100644 --- a/libstdc++-v3/include/bits/c++config +++ b/libstdc++-v3/include/bits/c++config @@ -169,6 +169,8 @@ namespace placeholders { } namespace regex_constants { } namespace this_thread { } + + namespace experimental { } } namespace abi { } @@ -222,6 +224,8 @@ namespace std namespace regex_constants { inline namespace __7 { } } namespace this_thread { inline namespace __7 { } } + namespace experimental { inline namespace __7 { } } + namespace __detail { inline namespace __7 { } } } diff --git a/libstdc++-v3/include/bits/regex.h b/libstdc++-v3/include/bits/regex.h index 84b8cf1dd4fd..9f8a0ebf3fe9 100644 --- a/libstdc++-v3/include/bits/regex.h +++ b/libstdc++-v3/include/bits/regex.h @@ -30,8 +30,6 @@ namespace std _GLIBCXX_VISIBILITY(default) { -_GLIBCXX_BEGIN_NAMESPACE_VERSION - namespace __detail { _GLIBCXX_BEGIN_NAMESPACE_VERSION @@ -53,6 +51,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _GLIBCXX_END_NAMESPACE_VERSION } +_GLIBCXX_BEGIN_NAMESPACE_VERSION + /** * @addtogroup regex * @{ diff --git a/libstdc++-v3/include/bits/regex.tcc b/libstdc++-v3/include/bits/regex.tcc index 2ac095d9881c..f58b32d296a3 100644 --- a/libstdc++-v3/include/bits/regex.tcc +++ b/libstdc++-v3/include/bits/regex.tcc @@ -37,8 +37,6 @@ namespace std _GLIBCXX_VISIBILITY(default) { -_GLIBCXX_BEGIN_NAMESPACE_VERSION - namespace __detail { _GLIBCXX_BEGIN_NAMESPACE_VERSION @@ -137,6 +135,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _GLIBCXX_END_NAMESPACE_VERSION } +_GLIBCXX_BEGIN_NAMESPACE_VERSION + template template typename regex_traits<_Ch_type>::string_type diff --git a/libstdc++-v3/include/ext/pb_ds/tag_and_trait.hpp b/libstdc++-v3/include/ext/pb_ds/tag_and_trait.hpp index 90bda95d2081..3d16e5229e42 100644 --- a/libstdc++-v3/include/ext/pb_ds/tag_and_trait.hpp +++ b/libstdc++-v3/include/ext/pb_ds/tag_and_trait.hpp @@ -447,7 +447,7 @@ namespace __gnu_pbds template struct container_base_dispatch; - } // namespace __detail + } // namespace detail //@} } // namespace __gnu_pbds diff --git a/libstdc++-v3/include/std/iomanip b/libstdc++-v3/include/std/iomanip index 47284e82a5a6..e135d08be335 100644 --- a/libstdc++-v3/include/std/iomanip +++ b/libstdc++-v3/include/std/iomanip @@ -336,7 +336,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION #if __cplusplus > 201103L +_GLIBCXX_END_NAMESPACE_VERSION namespace __detail { + _GLIBCXX_BEGIN_NAMESPACE_VERSION /** * @brief Struct for delimited strings. @@ -447,8 +449,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION return __is; } - + _GLIBCXX_END_NAMESPACE_VERSION } // namespace __detail +_GLIBCXX_BEGIN_NAMESPACE_VERSION /** * @brief Manipulator for quoted strings. diff --git a/libstdc++-v3/testsuite/ext/profile/mutex_extensions_neg.cc b/libstdc++-v3/testsuite/ext/profile/mutex_extensions_neg.cc index 23c551b0b6ef..a691e8d16f2f 100644 --- a/libstdc++-v3/testsuite/ext/profile/mutex_extensions_neg.cc +++ b/libstdc++-v3/testsuite/ext/profile/mutex_extensions_neg.cc @@ -25,4 +25,4 @@ #include -// { dg-error "multiple inlined namespaces" "" { target *-*-* } 275 } +// { dg-error "multiple inlined namespaces" "" { target *-*-* } 279 }