From 22ca1336dcfb663d86a6892dbe1e48eee20bb6db Mon Sep 17 00:00:00 2001 From: dim Date: Wed, 5 Mar 2014 19:30:36 +0000 Subject: MFC r261283: Import libc++ 3.4 release. This contains a lot of bugfixes, and some preliminary support for C++1y. MFC r261604: HEAD is not buildable for the past day. Commit a 'quick fix' in order to permit buildworld to complete. Reviewed by: theraven MFC r261608: Apply a cleaner solution for the sign warnings that can occur when compiling libc++'s header with -Wsystem-headers on. This has also been submitted upstream. Reported by: asomers MFC r261801: An ABI incompatibility crept into the libc++ 3.4 import in r261283. It was caused by upstream libc++ commit r194536, which aimed to make the headers more standards-compliant, by making std::pair's copy constructor trivial. Unfortunately, this could cause certain C++ applications using shared libraries built against the previous version of libc++ to crash. Fix the ABI incompatibility by making std::pair's copy constructor non-trivial again. Please note: Any C++ applications or shared libraries built with libc++ between r261283 and this revision should be recompiled. Reported by: stefanf --- contrib/libc++/include/codecvt | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) (limited to 'contrib/libc++/include/codecvt') diff --git a/contrib/libc++/include/codecvt b/contrib/libc++/include/codecvt index a6e4308..6eff107 100644 --- a/contrib/libc++/include/codecvt +++ b/contrib/libc++/include/codecvt @@ -29,7 +29,8 @@ template { - // unspecified + explicit codecvt_utf8(size_t refs = 0); + ~codecvt_utf8(); }; template { - // unspecified + explicit codecvt_utf16(size_t refs = 0); + ~codecvt_utf16(); }; template { - // unspecified + explicit codecvt_utf8_utf16(size_t refs = 0); + ~codecvt_utf8_utf16(); }; } // std @@ -73,7 +76,7 @@ enum codecvt_mode template class __codecvt_utf8; template <> -class __codecvt_utf8 +class _LIBCPP_TYPE_VIS __codecvt_utf8 : public codecvt { unsigned long _Maxcode_; @@ -108,7 +111,7 @@ protected: }; template <> -class __codecvt_utf8 +class _LIBCPP_TYPE_VIS __codecvt_utf8 : public codecvt { unsigned long _Maxcode_; @@ -143,7 +146,7 @@ protected: }; template <> -class __codecvt_utf8 +class _LIBCPP_TYPE_VIS __codecvt_utf8 : public codecvt { unsigned long _Maxcode_; @@ -179,7 +182,7 @@ protected: template -class _LIBCPP_TYPE_VIS codecvt_utf8 +class _LIBCPP_TYPE_VIS_ONLY codecvt_utf8 : public __codecvt_utf8<_Elem> { public: @@ -196,7 +199,7 @@ public: template class __codecvt_utf16; template <> -class __codecvt_utf16 +class _LIBCPP_TYPE_VIS __codecvt_utf16 : public codecvt { unsigned long _Maxcode_; @@ -231,7 +234,7 @@ protected: }; template <> -class __codecvt_utf16 +class _LIBCPP_TYPE_VIS __codecvt_utf16 : public codecvt { unsigned long _Maxcode_; @@ -266,7 +269,7 @@ protected: }; template <> -class __codecvt_utf16 +class _LIBCPP_TYPE_VIS __codecvt_utf16 : public codecvt { unsigned long _Maxcode_; @@ -301,7 +304,7 @@ protected: }; template <> -class __codecvt_utf16 +class _LIBCPP_TYPE_VIS __codecvt_utf16 : public codecvt { unsigned long _Maxcode_; @@ -336,7 +339,7 @@ protected: }; template <> -class __codecvt_utf16 +class _LIBCPP_TYPE_VIS __codecvt_utf16 : public codecvt { unsigned long _Maxcode_; @@ -371,7 +374,7 @@ protected: }; template <> -class __codecvt_utf16 +class _LIBCPP_TYPE_VIS __codecvt_utf16 : public codecvt { unsigned long _Maxcode_; @@ -407,7 +410,7 @@ protected: template -class _LIBCPP_TYPE_VIS codecvt_utf16 +class _LIBCPP_TYPE_VIS_ONLY codecvt_utf16 : public __codecvt_utf16<_Elem, _Mode & little_endian> { public: @@ -424,7 +427,7 @@ public: template class __codecvt_utf8_utf16; template <> -class __codecvt_utf8_utf16 +class _LIBCPP_TYPE_VIS __codecvt_utf8_utf16 : public codecvt { unsigned long _Maxcode_; @@ -459,7 +462,7 @@ protected: }; template <> -class __codecvt_utf8_utf16 +class _LIBCPP_TYPE_VIS __codecvt_utf8_utf16 : public codecvt { unsigned long _Maxcode_; @@ -494,7 +497,7 @@ protected: }; template <> -class __codecvt_utf8_utf16 +class _LIBCPP_TYPE_VIS __codecvt_utf8_utf16 : public codecvt { unsigned long _Maxcode_; @@ -530,7 +533,7 @@ protected: template -class _LIBCPP_TYPE_VIS codecvt_utf8_utf16 +class _LIBCPP_TYPE_VIS_ONLY codecvt_utf8_utf16 : public __codecvt_utf8_utf16<_Elem> { public: -- cgit v1.1