diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2014-11-14 12:17:57 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2014-11-14 12:17:57 +0000 |
commit | a5dde6ddac80b3a6e4cb3d988c5c449108411704 (patch) | |
tree | 7608d5f540586abdbb3a9159b02a5def19043a66 /libstdc++-v3/src/c++98 | |
parent | 78d7f09fff5d074f6c0917559d005e9a2a156be8 (diff) | |
download | gcc-a5dde6ddac80b3a6e4cb3d988c5c449108411704.zip gcc-a5dde6ddac80b3a6e4cb3d988c5c449108411704.tar.gz gcc-a5dde6ddac80b3a6e4cb3d988c5c449108411704.tar.bz2 |
Define C++11 version of std::ios_base::failure.
* config/abi/pre/gnu.ver: Add new exports.
* include/bits/ios_base.h (ios_base::failure): New definition using
abi_tag.
(io_errc, make_error_code, make_error_category, iostream_category):
Define.
* include/std/system_error (system_error): Add char* constructors.
* src/c++11/Makefile.am: Add new file.
* src/c++11/Makefile.in: Regenerate.
* src/c++11/cxx11-ios_failure.cc: New file.
* src/c++98/ios_failure.cc: Compile old definition without abi_tag.
* testsuite/27_io/ios_base/failure/cxx11.cc: New.
* testsuite/27_io/ios_base/failure/what-1.cc: Allow string returned by
ios_base::failure::what() to contain additional data.
* testsuite/27_io/ios_base/failure/what-2.cc: Likewise..
* testsuite/27_io/ios_base/failure/what-3.cc: Likewise..
* testsuite/27_io/ios_base/failure/what-big.cc: Likewise..
From-SVN: r217559
Diffstat (limited to 'libstdc++-v3/src/c++98')
-rw-r--r-- | libstdc++-v3/src/c++98/ios_failure.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libstdc++-v3/src/c++98/ios_failure.cc b/libstdc++-v3/src/c++98/ios_failure.cc index 9d32e51..0f45178 100644 --- a/libstdc++-v3/src/c++98/ios_failure.cc +++ b/libstdc++-v3/src/c++98/ios_failure.cc @@ -23,9 +23,10 @@ // <http://www.gnu.org/licenses/>. // -// ISO C++ 14882: 27.4.2.1.1 Class ios_base::failure +// ISO C++ 14882:1998: 27.4.2.1.1 Class ios_base::failure // +#define _GLIBCXX_USE_CXX11_ABI 0 #include <ios> namespace std _GLIBCXX_VISIBILITY(default) |