Define C++11 version of std::ios_base::failure.
authorJonathan Wakely <jwakely@redhat.com>
Fri, 14 Nov 2014 12:17:57 +0000 (12:17 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 14 Nov 2014 12:17:57 +0000 (12:17 +0000)
commita5dde6ddac80b3a6e4cb3d988c5c449108411704
tree7608d5f540586abdbb3a9159b02a5def19043a66
parent78d7f09fff5d074f6c0917559d005e9a2a156be8
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
13 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/config/abi/pre/gnu.ver
libstdc++-v3/include/bits/ios_base.h
libstdc++-v3/include/std/system_error
libstdc++-v3/src/c++11/Makefile.am
libstdc++-v3/src/c++11/Makefile.in
libstdc++-v3/src/c++11/cxx11-ios_failure.cc [new file with mode: 0644]
libstdc++-v3/src/c++98/ios_failure.cc
libstdc++-v3/testsuite/27_io/ios_base/failure/cxx11.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/ios_base/failure/what-1.cc
libstdc++-v3/testsuite/27_io/ios_base/failure/what-2.cc
libstdc++-v3/testsuite/27_io/ios_base/failure/what-3.cc
libstdc++-v3/testsuite/27_io/ios_base/failure/what-big.cc