OSDN Git Service

2011-12-06 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Dec 2011 20:03:25 +0000 (20:03 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Dec 2011 20:03:25 +0000 (20:03 +0000)
commitd2b14329ba53c66247bd91177ff0a33187b93739
treed7d90c64c9fb734a886b94cbda14b7158939c565
parenta26202386fdf96c951efefd4809f00cc267b3779
2011-12-06  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/51438
* libsupc++/nested_exception.h (nested_exception::~nested_exception):
Declare noexcept.
* libsupc++/nested_exception.cc: Adjust.
* testsuite/18_support/nested_exception/51438.cc: New.
* testsuite/18_support/nested_exception/throw_with_nested.cc: Adjust.
* testsuite/18_support/nested_exception/rethrow_if_nested.cc:
Likewise.

* src/shared_ptr.cc: Use noexcept where appropriate.
* include/std/system_error: Likewise.
* include/std/functional: Likewise.
* include/bits/shared_ptr_base.h: Likewise.
* src/stdexcept.cc: Use _GLIBCXX_USE_NOEXCEPT where appropriate.
* include/std/stdexcept: Likewise.
* libsupc++/bad_cast.cc: Likewise.
* libsupc++/bad_typeid.cc: Likewise.
* libsupc++/eh_exception.cc: Likewise.
* libsupc++/typeinfo: Likewise.
* libsupc++/exception: Likewise.
* libsupc++/eh_ptr.cc: Likewise.
* libsupc++/bad_alloc.cc: Likewise.
* libsupc++/exception_ptr.h: Likewise.

* include/std/chrono: Use noexcept where appropriate.
* src/chrono.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182064 138bc75d-0d04-0410-961f-82ee72b054a4
22 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/shared_ptr_base.h
libstdc++-v3/include/std/chrono
libstdc++-v3/include/std/functional
libstdc++-v3/include/std/stdexcept
libstdc++-v3/include/std/system_error
libstdc++-v3/libsupc++/bad_alloc.cc
libstdc++-v3/libsupc++/bad_cast.cc
libstdc++-v3/libsupc++/bad_typeid.cc
libstdc++-v3/libsupc++/eh_exception.cc
libstdc++-v3/libsupc++/eh_ptr.cc
libstdc++-v3/libsupc++/exception
libstdc++-v3/libsupc++/exception_ptr.h
libstdc++-v3/libsupc++/nested_exception.cc
libstdc++-v3/libsupc++/nested_exception.h
libstdc++-v3/libsupc++/typeinfo
libstdc++-v3/src/chrono.cc
libstdc++-v3/src/shared_ptr.cc
libstdc++-v3/src/stdexcept.cc
libstdc++-v3/testsuite/18_support/nested_exception/51438.cc [new file with mode: 0644]
libstdc++-v3/testsuite/18_support/nested_exception/rethrow_if_nested.cc
libstdc++-v3/testsuite/18_support/nested_exception/throw_with_nested.cc