+2015-03-20 Jonathan Wakely <jwakely@redhat.com>
+
+ * include/bits/c++config (__gnu_cxx::__cxx11): Define new namespace.
+ * include/ext/codecvt_specializations.h (encoding_state,
+ encoding_char_traits): Remove abi-tag and use inline namespace.
+ * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line.
+
2015-03-19 Jason Merrill <jason@redhat.com>
* config/locale/gnu/messages_members.cc: Revert abi-tag change.
{
inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { }
}
+namespace __gnu_cxx
+{
+ inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { }
+}
# define _GLIBCXX_NAMESPACE_CXX11 __cxx11::
# define _GLIBCXX_BEGIN_NAMESPACE_CXX11 namespace __cxx11 {
# define _GLIBCXX_END_NAMESPACE_CXX11 }
namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
{
+_GLIBCXX_BEGIN_NAMESPACE_CXX11
_GLIBCXX_BEGIN_NAMESPACE_VERSION
/// Extension to use iconv for dealing with character encodings.
// This includes conversions and comparisons between various character
// sets. This object encapsulates data that may need to be shared between
// char_traits, codecvt and ctype.
- class _GLIBCXX_DEFAULT_ABI_TAG encoding_state
+ class encoding_state
{
public:
// Types:
// associated fpos<encoding_state> for the position type, all other
// bits equivalent to the required char_traits instantiations.
template<typename _CharT>
- struct _GLIBCXX_DEFAULT_ABI_TAG encoding_char_traits
+ struct encoding_char_traits
: public std::char_traits<_CharT>
{
typedef encoding_state state_type;
};
_GLIBCXX_END_NAMESPACE_VERSION
+_GLIBCXX_END_NAMESPACE_CXX11
} // namespace