Define C++11 version of std::ios_base::failure.
commit84e41970756d1c3882aaf6a9368c7f282b294250
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Nov 2014 12:17:57 +0000 (14 12:17 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Nov 2014 12:17:57 +0000 (14 12:17 +0000)
tree7608d5f540586abdbb3a9159b02a5def19043a66
parentd5f9f518fbf45d3d91a0eb7eca0b1471d6a03bba
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..

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217559 138bc75d-0d04-0410-961f-82ee72b054a4
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 [copied from libstdc++-v3/src/c++98/ios_failure.cc with 50% similarity]
libstdc++-v3/src/c++98/ios_failure.cc
libstdc++-v3/testsuite/27_io/ios_base/failure/cxx11.cc [copied from libstdc++-v3/testsuite/27_io/ios_base/failure/what-big.cc with 55% similarity]
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