libstdc++: Move std::iostream_category() definition to new file
authorJonathan Wakely <jwakely@redhat.com>
Thu, 26 May 2022 14:42:50 +0000 (15:42 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 26 May 2022 21:28:57 +0000 (22:28 +0100)
commitae3ea143ef4222707ce751f89f7b45d8f913caf3
tree033be710b6bd908baa422842fe242d9b4b3241c3
parent6f56efa94e845db0d5c934ca202295019bf334c1
libstdc++: Move std::iostream_category() definition to new file

This fixes a missing symbol when the dual ABI is disabled, e.g. for the
versioned namespace build.

libstdc++-v3/ChangeLog:

* src/c++11/Makefile.am: Add new source file.
* src/c++11/Makefile.in: Regenerate.
* src/c++11/cxx11-ios_failure.cc (iostream_category):
Move to ...
* src/c++11/ios_errcat.cc: New file.
* testsuite/27_io/ios_base/failure/error_code.cc: Check that
std::iostream_category() is defined and used for std::io_errc.
libstdc++-v3/src/c++11/Makefile.am
libstdc++-v3/src/c++11/Makefile.in
libstdc++-v3/src/c++11/cxx11-ios_failure.cc
libstdc++-v3/src/c++11/ios_errcat.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/ios_base/failure/error_code.cc