gcc/libstdc++-v3/src
Chris Fairles 92010a793b system_error (is_error_code_enum): Specialize for errc.
2008-10-22  Chris Fairles  <cfairles@gcc.gnu.org>

        * include/std/system_error (is_error_code_enum): Specialize for errc.
        (error_category::error_category): Defaulted and protected.
        (error_category::~error_category): New, virtual.
        (error_category::error_category(const error_category&),
        error_category::operator=(const error_category&)): Deleted.
        (get_system_category, get_posix_category): Remove (DR 890).
        (system_category): External linkage (DR 890).
        (posix_category): Remove.
        (generic_category): Add. External linkage (DR 890).
        (error_code::error_code<>(_ErrorCodeEnum)): Use generic_category.
        (error_code::clear, error_code::operator=<>(_ErrorCodeEnum)): Forward to
        error_code::assign, use generic_category.
        (error_condition::error_condition,
        error_condition::error_condition<>(_ErrorConditionEnum)): Use
        generic_category.
        (error_condition::clear,
        error_condition::operator=<>(_ErrorConditionEnum)): Forward to
        error_code::assign, use generic_category.
        (make_error_code, make_error_condition): Define in namespace std.
        * include/std/mutex (unique_lock<>::lock, unique_lock<>::try_lock,
        unique_lock<>::try_lock_until<>(duration),
        unique_lock<>::try_lock_for<>(duration)): Replace posix_error with errc.
        * src/system_error.cc (system_error_category, generic_error_category):
        New.
        (gnu_error_category): Remove.
        (get_system_category, get_posix_category): Remove (DR 890).
        (system_category, generic_category): Define.
        * src/functexcept.cc (__throw_system_error): Use generic_category.
        * config/abi/pre/gnu.ver: Export system_category and generic_category,
        remove get_system_category and get_generic_category (DR 890).
        * config/os/generic/error_constants.h (posix_errno): Rename to errc, use
        enum class type. Fix spelling.
        * config/os/mingw32/error_constants.h (posix_errno): Likewise.
        * testsuite/19_diagnostics/error_code/cons/1.cc: Use errc and
        generic_category.
        * testsuite/19_diagnostics/error_code/operators/bool.cc: Use errc.
        * testsuite/19_diagnostics/error_code/operators/equal.cc: Likewise.
        * testsuite/19_diagnostics/error_code/operators/not_equal.cc: Likewise.
        * testsuite/19_diagnostics/error_category/cons/copy_neg.cc: Update
        dg-error line numbers.
        * testsuite/19_diagnostics/error_condition/cons/1.cc: Use
        generic_category.
        * testsuite/19_diagnostics/error_condition/operators/bool.cc: Use errc.
        * testsuite/19_diagnostics/error_condition/operators/equal.cc: Likewise.
        * testsuite/19_diagnostics/error_condition/operators/not_equal.cc:
        Likewise.
        * testsuite/19_diagnostics/headers/system_error/errc_std_c++0x.cc: New.
        * testsuite/19_diagnostics/headers/system_error/types_std_c++0x.cc:
        Remove using tests since errc is not a namespace.
        * testsuite/19_diagnostics/system_error/cons-1.cc: Use errc.
        * testsuite/19_diagnostics/system_error/what-4.cc: Likewise.
        * testsuite/27_io/basic_ostream/inserters_other/wchar_t/error_code.cc:
        Likewise.
        * testsuite/27_io/basic_ostream/inserters_other/char/error_code.cc:
        Likewise.
        * testsuite/30_threads/unique_lock/locking/2.cc: Likewise.

From-SVN: r141297
2008-10-22 15:27:44 +00:00
..
Makefile.am thread: New. 2008-09-13 00:32:37 +00:00
Makefile.in configure: Regenerate for new libtool. 2008-09-26 16:32:26 +00:00
allocator-inst.cc
atomic.cc atomic.cc (atomic_flag_test_and_set_explicit, [...]): Suppress unused parameter warnings. 2008-05-24 10:47:14 +00:00
bitmap_allocator.cc
chrono.cc chrono: If _GLIBCXX_USE_MONOTONIC_CLOCK is defined... 2008-09-23 17:34:29 +00:00
codecvt.cc
compatibility-ldbl.cc gnu.ver: Remove _ZNKSt3tr14hashIgEclEg@@GLIBCXX_3.4.10 and... 2008-03-01 20:15:17 +01:00
compatibility.cc
complex_io.cc
concept-inst.cc
condition_variable.cc chrono: If _GLIBCXX_USE_MONOTONIC_CLOCK is defined... 2008-09-23 17:34:29 +00:00
ctype.cc ctype.cc (use_facet<ctype<char> >, [...]): Remove specializations. 2008-09-10 21:34:38 +00:00
debug.cc
debug_list.cc
ext-inst.cc
fstream-inst.cc
functexcept.cc system_error (is_error_code_enum): Specialize for errc. 2008-10-22 15:27:44 +00:00
globals_io.cc
hash.cc gnu.ver: Remove _ZNKSt3tr14hashIgEclEg@@GLIBCXX_3.4.10 and... 2008-03-01 20:15:17 +01:00
hash_c++0x.cc
hashtable.cc hashtable.cc (__prime_list): Use __SIZEOF_LONG__. 2007-12-03 23:20:22 +00:00
hashtable_c++0x.cc hashtable.cc: New. 2007-12-03 17:22:44 +00:00
ios-inst.cc
ios.cc
ios_failure.cc
ios_init.cc
ios_locale.cc
iostream-inst.cc
istream-inst.cc
istream.cc
limits.cc
limits_c++0x.cc PR c++/33979 (partial) 2008-05-20 18:11:34 +00:00
list.cc
locale-inst.cc ctype.cc (use_facet<ctype<char> >, [...]): Remove specializations. 2008-09-10 21:34:38 +00:00
locale.cc
locale_facets.cc
locale_init.cc
localename.cc
misc-inst.cc
mt_allocator.cc * src/mt_allocator.cc (__pool): Fix error in comment. 2008-08-27 10:42:39 +10:00
mutex.cc condition_variable: Use new deleted ctors. 2008-09-03 17:46:09 +00:00
ostream-inst.cc
parallel_list.cc types.h: Move enum parallelism here. 2008-02-15 22:55:14 +00:00
parallel_settings.cc re PR libstdc++/34797 ([parallel mode] Settings are separated for each compilation unit) 2008-02-18 00:00:00 +00:00
pool_allocator.cc
sstream-inst.cc
stdexcept.cc
streambuf-inst.cc
streambuf.cc
string-inst.cc
strstream.cc
system_error.cc system_error (is_error_code_enum): Specialize for errc. 2008-10-22 15:27:44 +00:00
thread.cc thread: New. 2008-09-13 00:32:37 +00:00
tree.cc
valarray-inst.cc
wlocale-inst.cc
wstring-inst.cc